@fre4x/yahoo-finance 1.0.15 → 1.0.16
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/dist/index.js +458 -452
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import{createRequire}from'module';const require=createRequire(import.meta.url);
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var
|
|
9
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
10
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
11
|
+
}) : x)(function(x) {
|
|
12
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
13
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
10
16
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
17
|
};
|
|
12
18
|
var __export = (target, all) => {
|
|
@@ -32,18 +38,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
38
|
|
|
33
39
|
// ../node_modules/ajv/dist/compile/codegen/code.js
|
|
34
40
|
var require_code = __commonJS({
|
|
35
|
-
"../node_modules/ajv/dist/compile/codegen/code.js"(
|
|
41
|
+
"../node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
36
42
|
"use strict";
|
|
37
|
-
Object.defineProperty(
|
|
38
|
-
|
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
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 = void 0;
|
|
39
45
|
var _CodeOrName = class {
|
|
40
46
|
};
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
exports._CodeOrName = _CodeOrName;
|
|
48
|
+
exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
43
49
|
var Name = class extends _CodeOrName {
|
|
44
50
|
constructor(s) {
|
|
45
51
|
super();
|
|
46
|
-
if (!
|
|
52
|
+
if (!exports.IDENTIFIER.test(s))
|
|
47
53
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
48
54
|
this.str = s;
|
|
49
55
|
}
|
|
@@ -57,7 +63,7 @@ var require_code = __commonJS({
|
|
|
57
63
|
return { [this.str]: 1 };
|
|
58
64
|
}
|
|
59
65
|
};
|
|
60
|
-
|
|
66
|
+
exports.Name = Name;
|
|
61
67
|
var _Code = class extends _CodeOrName {
|
|
62
68
|
constructor(code) {
|
|
63
69
|
super();
|
|
@@ -85,8 +91,8 @@ var require_code = __commonJS({
|
|
|
85
91
|
}, {});
|
|
86
92
|
}
|
|
87
93
|
};
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
exports._Code = _Code;
|
|
95
|
+
exports.nil = new _Code("");
|
|
90
96
|
function _(strs, ...args) {
|
|
91
97
|
const code = [strs[0]];
|
|
92
98
|
let i = 0;
|
|
@@ -96,7 +102,7 @@ var require_code = __commonJS({
|
|
|
96
102
|
}
|
|
97
103
|
return new _Code(code);
|
|
98
104
|
}
|
|
99
|
-
|
|
105
|
+
exports._ = _;
|
|
100
106
|
var plus = new _Code("+");
|
|
101
107
|
function str(strs, ...args) {
|
|
102
108
|
const expr = [safeStringify(strs[0])];
|
|
@@ -109,7 +115,7 @@ var require_code = __commonJS({
|
|
|
109
115
|
optimize(expr);
|
|
110
116
|
return new _Code(expr);
|
|
111
117
|
}
|
|
112
|
-
|
|
118
|
+
exports.str = str;
|
|
113
119
|
function addCodeArg(code, arg) {
|
|
114
120
|
if (arg instanceof _Code)
|
|
115
121
|
code.push(...arg._items);
|
|
@@ -118,7 +124,7 @@ var require_code = __commonJS({
|
|
|
118
124
|
else
|
|
119
125
|
code.push(interpolate(arg));
|
|
120
126
|
}
|
|
121
|
-
|
|
127
|
+
exports.addCodeArg = addCodeArg;
|
|
122
128
|
function optimize(expr) {
|
|
123
129
|
let i = 1;
|
|
124
130
|
while (i < expr.length - 1) {
|
|
@@ -154,42 +160,42 @@ var require_code = __commonJS({
|
|
|
154
160
|
function strConcat(c1, c2) {
|
|
155
161
|
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
|
|
156
162
|
}
|
|
157
|
-
|
|
163
|
+
exports.strConcat = strConcat;
|
|
158
164
|
function interpolate(x) {
|
|
159
165
|
return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
|
|
160
166
|
}
|
|
161
167
|
function stringify(x) {
|
|
162
168
|
return new _Code(safeStringify(x));
|
|
163
169
|
}
|
|
164
|
-
|
|
170
|
+
exports.stringify = stringify;
|
|
165
171
|
function safeStringify(x) {
|
|
166
172
|
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
167
173
|
}
|
|
168
|
-
|
|
174
|
+
exports.safeStringify = safeStringify;
|
|
169
175
|
function getProperty(key) {
|
|
170
|
-
return typeof key == "string" &&
|
|
176
|
+
return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
|
|
171
177
|
}
|
|
172
|
-
|
|
178
|
+
exports.getProperty = getProperty;
|
|
173
179
|
function getEsmExportName(key) {
|
|
174
|
-
if (typeof key == "string" &&
|
|
180
|
+
if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
|
|
175
181
|
return new _Code(`${key}`);
|
|
176
182
|
}
|
|
177
183
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
178
184
|
}
|
|
179
|
-
|
|
185
|
+
exports.getEsmExportName = getEsmExportName;
|
|
180
186
|
function regexpCode(rx) {
|
|
181
187
|
return new _Code(rx.toString());
|
|
182
188
|
}
|
|
183
|
-
|
|
189
|
+
exports.regexpCode = regexpCode;
|
|
184
190
|
}
|
|
185
191
|
});
|
|
186
192
|
|
|
187
193
|
// ../node_modules/ajv/dist/compile/codegen/scope.js
|
|
188
194
|
var require_scope = __commonJS({
|
|
189
|
-
"../node_modules/ajv/dist/compile/codegen/scope.js"(
|
|
195
|
+
"../node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
190
196
|
"use strict";
|
|
191
|
-
Object.defineProperty(
|
|
192
|
-
|
|
197
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
198
|
+
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
193
199
|
var code_1 = require_code();
|
|
194
200
|
var ValueError = class extends Error {
|
|
195
201
|
constructor(name) {
|
|
@@ -201,8 +207,8 @@ var require_scope = __commonJS({
|
|
|
201
207
|
(function(UsedValueState2) {
|
|
202
208
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
203
209
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
204
|
-
})(UsedValueState || (
|
|
205
|
-
|
|
210
|
+
})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
|
|
211
|
+
exports.varKinds = {
|
|
206
212
|
const: new code_1.Name("const"),
|
|
207
213
|
let: new code_1.Name("let"),
|
|
208
214
|
var: new code_1.Name("var")
|
|
@@ -231,7 +237,7 @@ var require_scope = __commonJS({
|
|
|
231
237
|
return this._names[prefix] = { prefix, index: 0 };
|
|
232
238
|
}
|
|
233
239
|
};
|
|
234
|
-
|
|
240
|
+
exports.Scope = Scope;
|
|
235
241
|
var ValueScopeName = class extends code_1.Name {
|
|
236
242
|
constructor(prefix, nameStr) {
|
|
237
243
|
super(nameStr);
|
|
@@ -242,7 +248,7 @@ var require_scope = __commonJS({
|
|
|
242
248
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
243
249
|
}
|
|
244
250
|
};
|
|
245
|
-
|
|
251
|
+
exports.ValueScopeName = ValueScopeName;
|
|
246
252
|
var line = (0, code_1._)`\n`;
|
|
247
253
|
var ValueScope = class extends Scope {
|
|
248
254
|
constructor(opts) {
|
|
@@ -312,7 +318,7 @@ var require_scope = __commonJS({
|
|
|
312
318
|
nameSet.set(name, UsedValueState.Started);
|
|
313
319
|
let c = valueCode(name);
|
|
314
320
|
if (c) {
|
|
315
|
-
const def = this.opts.es5 ?
|
|
321
|
+
const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
|
|
316
322
|
code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
|
|
317
323
|
} else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
|
|
318
324
|
code = (0, code_1._)`${code}${c}${this.opts._n}`;
|
|
@@ -325,57 +331,57 @@ var require_scope = __commonJS({
|
|
|
325
331
|
return code;
|
|
326
332
|
}
|
|
327
333
|
};
|
|
328
|
-
|
|
334
|
+
exports.ValueScope = ValueScope;
|
|
329
335
|
}
|
|
330
336
|
});
|
|
331
337
|
|
|
332
338
|
// ../node_modules/ajv/dist/compile/codegen/index.js
|
|
333
339
|
var require_codegen = __commonJS({
|
|
334
|
-
"../node_modules/ajv/dist/compile/codegen/index.js"(
|
|
340
|
+
"../node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
335
341
|
"use strict";
|
|
336
|
-
Object.defineProperty(
|
|
337
|
-
|
|
342
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
343
|
+
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._ = void 0;
|
|
338
344
|
var code_1 = require_code();
|
|
339
345
|
var scope_1 = require_scope();
|
|
340
346
|
var code_2 = require_code();
|
|
341
|
-
Object.defineProperty(
|
|
347
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
342
348
|
return code_2._;
|
|
343
349
|
} });
|
|
344
|
-
Object.defineProperty(
|
|
350
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
345
351
|
return code_2.str;
|
|
346
352
|
} });
|
|
347
|
-
Object.defineProperty(
|
|
353
|
+
Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
|
|
348
354
|
return code_2.strConcat;
|
|
349
355
|
} });
|
|
350
|
-
Object.defineProperty(
|
|
356
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
351
357
|
return code_2.nil;
|
|
352
358
|
} });
|
|
353
|
-
Object.defineProperty(
|
|
359
|
+
Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
|
|
354
360
|
return code_2.getProperty;
|
|
355
361
|
} });
|
|
356
|
-
Object.defineProperty(
|
|
362
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
357
363
|
return code_2.stringify;
|
|
358
364
|
} });
|
|
359
|
-
Object.defineProperty(
|
|
365
|
+
Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
|
|
360
366
|
return code_2.regexpCode;
|
|
361
367
|
} });
|
|
362
|
-
Object.defineProperty(
|
|
368
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
363
369
|
return code_2.Name;
|
|
364
370
|
} });
|
|
365
371
|
var scope_2 = require_scope();
|
|
366
|
-
Object.defineProperty(
|
|
372
|
+
Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
|
|
367
373
|
return scope_2.Scope;
|
|
368
374
|
} });
|
|
369
|
-
Object.defineProperty(
|
|
375
|
+
Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
|
|
370
376
|
return scope_2.ValueScope;
|
|
371
377
|
} });
|
|
372
|
-
Object.defineProperty(
|
|
378
|
+
Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
|
|
373
379
|
return scope_2.ValueScopeName;
|
|
374
380
|
} });
|
|
375
|
-
Object.defineProperty(
|
|
381
|
+
Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
|
|
376
382
|
return scope_2.varKinds;
|
|
377
383
|
} });
|
|
378
|
-
|
|
384
|
+
exports.operators = {
|
|
379
385
|
GT: new code_1._Code(">"),
|
|
380
386
|
GTE: new code_1._Code(">="),
|
|
381
387
|
LT: new code_1._Code("<"),
|
|
@@ -788,7 +794,7 @@ var require_codegen = __commonJS({
|
|
|
788
794
|
}
|
|
789
795
|
// `+=` code
|
|
790
796
|
add(lhs, rhs) {
|
|
791
|
-
return this._leafNode(new AssignOp(lhs,
|
|
797
|
+
return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
|
|
792
798
|
}
|
|
793
799
|
// appends passed SafeExpr to code or executes Block
|
|
794
800
|
code(c) {
|
|
@@ -988,7 +994,7 @@ var require_codegen = __commonJS({
|
|
|
988
994
|
ns[ns.length - 1] = node;
|
|
989
995
|
}
|
|
990
996
|
};
|
|
991
|
-
|
|
997
|
+
exports.CodeGen = CodeGen;
|
|
992
998
|
function addNames(names, from) {
|
|
993
999
|
for (const n in from)
|
|
994
1000
|
names[n] = (names[n] || 0) + (from[n] || 0);
|
|
@@ -1029,17 +1035,17 @@ var require_codegen = __commonJS({
|
|
|
1029
1035
|
function not(x) {
|
|
1030
1036
|
return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
|
|
1031
1037
|
}
|
|
1032
|
-
|
|
1033
|
-
var andCode = mappend(
|
|
1038
|
+
exports.not = not;
|
|
1039
|
+
var andCode = mappend(exports.operators.AND);
|
|
1034
1040
|
function and(...args) {
|
|
1035
1041
|
return args.reduce(andCode);
|
|
1036
1042
|
}
|
|
1037
|
-
|
|
1038
|
-
var orCode = mappend(
|
|
1043
|
+
exports.and = and;
|
|
1044
|
+
var orCode = mappend(exports.operators.OR);
|
|
1039
1045
|
function or(...args) {
|
|
1040
1046
|
return args.reduce(orCode);
|
|
1041
1047
|
}
|
|
1042
|
-
|
|
1048
|
+
exports.or = or;
|
|
1043
1049
|
function mappend(op) {
|
|
1044
1050
|
return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
|
|
1045
1051
|
}
|
|
@@ -1051,10 +1057,10 @@ var require_codegen = __commonJS({
|
|
|
1051
1057
|
|
|
1052
1058
|
// ../node_modules/ajv/dist/compile/util.js
|
|
1053
1059
|
var require_util = __commonJS({
|
|
1054
|
-
"../node_modules/ajv/dist/compile/util.js"(
|
|
1060
|
+
"../node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1055
1061
|
"use strict";
|
|
1056
|
-
Object.defineProperty(
|
|
1057
|
-
|
|
1062
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1063
|
+
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 = void 0;
|
|
1058
1064
|
var codegen_1 = require_codegen();
|
|
1059
1065
|
var code_1 = require_code();
|
|
1060
1066
|
function toHash(arr) {
|
|
@@ -1063,7 +1069,7 @@ var require_util = __commonJS({
|
|
|
1063
1069
|
hash2[item] = true;
|
|
1064
1070
|
return hash2;
|
|
1065
1071
|
}
|
|
1066
|
-
|
|
1072
|
+
exports.toHash = toHash;
|
|
1067
1073
|
function alwaysValidSchema(it, schema) {
|
|
1068
1074
|
if (typeof schema == "boolean")
|
|
1069
1075
|
return schema;
|
|
@@ -1072,7 +1078,7 @@ var require_util = __commonJS({
|
|
|
1072
1078
|
checkUnknownRules(it, schema);
|
|
1073
1079
|
return !schemaHasRules(schema, it.self.RULES.all);
|
|
1074
1080
|
}
|
|
1075
|
-
|
|
1081
|
+
exports.alwaysValidSchema = alwaysValidSchema;
|
|
1076
1082
|
function checkUnknownRules(it, schema = it.schema) {
|
|
1077
1083
|
const { opts, self: self2 } = it;
|
|
1078
1084
|
if (!opts.strictSchema)
|
|
@@ -1085,7 +1091,7 @@ var require_util = __commonJS({
|
|
|
1085
1091
|
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
1086
1092
|
}
|
|
1087
1093
|
}
|
|
1088
|
-
|
|
1094
|
+
exports.checkUnknownRules = checkUnknownRules;
|
|
1089
1095
|
function schemaHasRules(schema, rules) {
|
|
1090
1096
|
if (typeof schema == "boolean")
|
|
1091
1097
|
return !schema;
|
|
@@ -1094,7 +1100,7 @@ var require_util = __commonJS({
|
|
|
1094
1100
|
return true;
|
|
1095
1101
|
return false;
|
|
1096
1102
|
}
|
|
1097
|
-
|
|
1103
|
+
exports.schemaHasRules = schemaHasRules;
|
|
1098
1104
|
function schemaHasRulesButRef(schema, RULES) {
|
|
1099
1105
|
if (typeof schema == "boolean")
|
|
1100
1106
|
return !schema;
|
|
@@ -1103,7 +1109,7 @@ var require_util = __commonJS({
|
|
|
1103
1109
|
return true;
|
|
1104
1110
|
return false;
|
|
1105
1111
|
}
|
|
1106
|
-
|
|
1112
|
+
exports.schemaHasRulesButRef = schemaHasRulesButRef;
|
|
1107
1113
|
function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
|
|
1108
1114
|
if (!$data) {
|
|
1109
1115
|
if (typeof schema == "number" || typeof schema == "boolean")
|
|
@@ -1113,25 +1119,25 @@ var require_util = __commonJS({
|
|
|
1113
1119
|
}
|
|
1114
1120
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1115
1121
|
}
|
|
1116
|
-
|
|
1122
|
+
exports.schemaRefOrVal = schemaRefOrVal;
|
|
1117
1123
|
function unescapeFragment(str) {
|
|
1118
1124
|
return unescapeJsonPointer(decodeURIComponent(str));
|
|
1119
1125
|
}
|
|
1120
|
-
|
|
1126
|
+
exports.unescapeFragment = unescapeFragment;
|
|
1121
1127
|
function escapeFragment(str) {
|
|
1122
1128
|
return encodeURIComponent(escapeJsonPointer(str));
|
|
1123
1129
|
}
|
|
1124
|
-
|
|
1130
|
+
exports.escapeFragment = escapeFragment;
|
|
1125
1131
|
function escapeJsonPointer(str) {
|
|
1126
1132
|
if (typeof str == "number")
|
|
1127
1133
|
return `${str}`;
|
|
1128
1134
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1129
1135
|
}
|
|
1130
|
-
|
|
1136
|
+
exports.escapeJsonPointer = escapeJsonPointer;
|
|
1131
1137
|
function unescapeJsonPointer(str) {
|
|
1132
1138
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1133
1139
|
}
|
|
1134
|
-
|
|
1140
|
+
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
1135
1141
|
function eachItem(xs, f) {
|
|
1136
1142
|
if (Array.isArray(xs)) {
|
|
1137
1143
|
for (const x of xs)
|
|
@@ -1140,14 +1146,14 @@ var require_util = __commonJS({
|
|
|
1140
1146
|
f(xs);
|
|
1141
1147
|
}
|
|
1142
1148
|
}
|
|
1143
|
-
|
|
1149
|
+
exports.eachItem = eachItem;
|
|
1144
1150
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues4, resultToName }) {
|
|
1145
1151
|
return (gen, from, to, toName) => {
|
|
1146
1152
|
const res = to === void 0 ? 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) : mergeValues4(from, to);
|
|
1147
1153
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
1148
1154
|
};
|
|
1149
1155
|
}
|
|
1150
|
-
|
|
1156
|
+
exports.mergeEvaluated = {
|
|
1151
1157
|
props: makeMergeEvaluated({
|
|
1152
1158
|
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1153
1159
|
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})`));
|
|
@@ -1178,11 +1184,11 @@ var require_util = __commonJS({
|
|
|
1178
1184
|
setEvaluated(gen, props, ps);
|
|
1179
1185
|
return props;
|
|
1180
1186
|
}
|
|
1181
|
-
|
|
1187
|
+
exports.evaluatedPropsToName = evaluatedPropsToName;
|
|
1182
1188
|
function setEvaluated(gen, props, ps) {
|
|
1183
1189
|
Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
|
|
1184
1190
|
}
|
|
1185
|
-
|
|
1191
|
+
exports.setEvaluated = setEvaluated;
|
|
1186
1192
|
var snippets = {};
|
|
1187
1193
|
function useFunc(gen, f) {
|
|
1188
1194
|
return gen.scopeValue("func", {
|
|
@@ -1190,12 +1196,12 @@ var require_util = __commonJS({
|
|
|
1190
1196
|
code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
|
|
1191
1197
|
});
|
|
1192
1198
|
}
|
|
1193
|
-
|
|
1199
|
+
exports.useFunc = useFunc;
|
|
1194
1200
|
var Type2;
|
|
1195
1201
|
(function(Type3) {
|
|
1196
1202
|
Type3[Type3["Num"] = 0] = "Num";
|
|
1197
1203
|
Type3[Type3["Str"] = 1] = "Str";
|
|
1198
|
-
})(Type2 || (
|
|
1204
|
+
})(Type2 || (exports.Type = Type2 = {}));
|
|
1199
1205
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1200
1206
|
if (dataProp instanceof codegen_1.Name) {
|
|
1201
1207
|
const isNumber = dataPropType === Type2.Num;
|
|
@@ -1203,7 +1209,7 @@ var require_util = __commonJS({
|
|
|
1203
1209
|
}
|
|
1204
1210
|
return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
1205
1211
|
}
|
|
1206
|
-
|
|
1212
|
+
exports.getErrorPath = getErrorPath;
|
|
1207
1213
|
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
1208
1214
|
if (!mode)
|
|
1209
1215
|
return;
|
|
@@ -1212,15 +1218,15 @@ var require_util = __commonJS({
|
|
|
1212
1218
|
throw new Error(msg);
|
|
1213
1219
|
it.self.logger.warn(msg);
|
|
1214
1220
|
}
|
|
1215
|
-
|
|
1221
|
+
exports.checkStrictMode = checkStrictMode;
|
|
1216
1222
|
}
|
|
1217
1223
|
});
|
|
1218
1224
|
|
|
1219
1225
|
// ../node_modules/ajv/dist/compile/names.js
|
|
1220
1226
|
var require_names = __commonJS({
|
|
1221
|
-
"../node_modules/ajv/dist/compile/names.js"(
|
|
1227
|
+
"../node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1222
1228
|
"use strict";
|
|
1223
|
-
Object.defineProperty(
|
|
1229
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1224
1230
|
var codegen_1 = require_codegen();
|
|
1225
1231
|
var names = {
|
|
1226
1232
|
// validation function arguments
|
|
@@ -1251,26 +1257,26 @@ var require_names = __commonJS({
|
|
|
1251
1257
|
jsonLen: new codegen_1.Name("jsonLen"),
|
|
1252
1258
|
jsonPart: new codegen_1.Name("jsonPart")
|
|
1253
1259
|
};
|
|
1254
|
-
|
|
1260
|
+
exports.default = names;
|
|
1255
1261
|
}
|
|
1256
1262
|
});
|
|
1257
1263
|
|
|
1258
1264
|
// ../node_modules/ajv/dist/compile/errors.js
|
|
1259
1265
|
var require_errors = __commonJS({
|
|
1260
|
-
"../node_modules/ajv/dist/compile/errors.js"(
|
|
1266
|
+
"../node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1261
1267
|
"use strict";
|
|
1262
|
-
Object.defineProperty(
|
|
1263
|
-
|
|
1268
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1269
|
+
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
1264
1270
|
var codegen_1 = require_codegen();
|
|
1265
1271
|
var util_1 = require_util();
|
|
1266
1272
|
var names_1 = require_names();
|
|
1267
|
-
|
|
1273
|
+
exports.keywordError = {
|
|
1268
1274
|
message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
|
|
1269
1275
|
};
|
|
1270
|
-
|
|
1276
|
+
exports.keyword$DataError = {
|
|
1271
1277
|
message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
|
|
1272
1278
|
};
|
|
1273
|
-
function reportError(cxt, error48 =
|
|
1279
|
+
function reportError(cxt, error48 = exports.keywordError, errorPaths, overrideAllErrors) {
|
|
1274
1280
|
const { it } = cxt;
|
|
1275
1281
|
const { gen, compositeRule, allErrors } = it;
|
|
1276
1282
|
const errObj = errorObjectCode(cxt, error48, errorPaths);
|
|
@@ -1280,8 +1286,8 @@ var require_errors = __commonJS({
|
|
|
1280
1286
|
returnErrors(it, (0, codegen_1._)`[${errObj}]`);
|
|
1281
1287
|
}
|
|
1282
1288
|
}
|
|
1283
|
-
|
|
1284
|
-
function reportExtraError(cxt, error48 =
|
|
1289
|
+
exports.reportError = reportError;
|
|
1290
|
+
function reportExtraError(cxt, error48 = exports.keywordError, errorPaths) {
|
|
1285
1291
|
const { it } = cxt;
|
|
1286
1292
|
const { gen, compositeRule, allErrors } = it;
|
|
1287
1293
|
const errObj = errorObjectCode(cxt, error48, errorPaths);
|
|
@@ -1290,12 +1296,12 @@ var require_errors = __commonJS({
|
|
|
1290
1296
|
returnErrors(it, names_1.default.vErrors);
|
|
1291
1297
|
}
|
|
1292
1298
|
}
|
|
1293
|
-
|
|
1299
|
+
exports.reportExtraError = reportExtraError;
|
|
1294
1300
|
function resetErrorsCount(gen, errsCount) {
|
|
1295
1301
|
gen.assign(names_1.default.errors, errsCount);
|
|
1296
1302
|
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)));
|
|
1297
1303
|
}
|
|
1298
|
-
|
|
1304
|
+
exports.resetErrorsCount = resetErrorsCount;
|
|
1299
1305
|
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
|
|
1300
1306
|
if (errsCount === void 0)
|
|
1301
1307
|
throw new Error("ajv implementation error");
|
|
@@ -1310,7 +1316,7 @@ var require_errors = __commonJS({
|
|
|
1310
1316
|
}
|
|
1311
1317
|
});
|
|
1312
1318
|
}
|
|
1313
|
-
|
|
1319
|
+
exports.extendErrors = extendErrors;
|
|
1314
1320
|
function addError(gen, errObj) {
|
|
1315
1321
|
const err = gen.const("err", errObj);
|
|
1316
1322
|
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})`);
|
|
@@ -1379,10 +1385,10 @@ var require_errors = __commonJS({
|
|
|
1379
1385
|
|
|
1380
1386
|
// ../node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1381
1387
|
var require_boolSchema = __commonJS({
|
|
1382
|
-
"../node_modules/ajv/dist/compile/validate/boolSchema.js"(
|
|
1388
|
+
"../node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1383
1389
|
"use strict";
|
|
1384
|
-
Object.defineProperty(
|
|
1385
|
-
|
|
1390
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1391
|
+
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
1386
1392
|
var errors_1 = require_errors();
|
|
1387
1393
|
var codegen_1 = require_codegen();
|
|
1388
1394
|
var names_1 = require_names();
|
|
@@ -1400,7 +1406,7 @@ var require_boolSchema = __commonJS({
|
|
|
1400
1406
|
gen.return(true);
|
|
1401
1407
|
}
|
|
1402
1408
|
}
|
|
1403
|
-
|
|
1409
|
+
exports.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
1404
1410
|
function boolOrEmptySchema(it, valid) {
|
|
1405
1411
|
const { gen, schema } = it;
|
|
1406
1412
|
if (schema === false) {
|
|
@@ -1410,7 +1416,7 @@ var require_boolSchema = __commonJS({
|
|
|
1410
1416
|
gen.var(valid, true);
|
|
1411
1417
|
}
|
|
1412
1418
|
}
|
|
1413
|
-
|
|
1419
|
+
exports.boolOrEmptySchema = boolOrEmptySchema;
|
|
1414
1420
|
function falseSchemaError(it, overrideAllErrors) {
|
|
1415
1421
|
const { gen, data } = it;
|
|
1416
1422
|
const cxt = {
|
|
@@ -1430,16 +1436,16 @@ var require_boolSchema = __commonJS({
|
|
|
1430
1436
|
|
|
1431
1437
|
// ../node_modules/ajv/dist/compile/rules.js
|
|
1432
1438
|
var require_rules = __commonJS({
|
|
1433
|
-
"../node_modules/ajv/dist/compile/rules.js"(
|
|
1439
|
+
"../node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1434
1440
|
"use strict";
|
|
1435
|
-
Object.defineProperty(
|
|
1436
|
-
|
|
1441
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1442
|
+
exports.getRules = exports.isJSONType = void 0;
|
|
1437
1443
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
1438
1444
|
var jsonTypes = new Set(_jsonTypes);
|
|
1439
1445
|
function isJSONType(x) {
|
|
1440
1446
|
return typeof x == "string" && jsonTypes.has(x);
|
|
1441
1447
|
}
|
|
1442
|
-
|
|
1448
|
+
exports.isJSONType = isJSONType;
|
|
1443
1449
|
function getRules() {
|
|
1444
1450
|
const groups = {
|
|
1445
1451
|
number: { type: "number", rules: [] },
|
|
@@ -1455,39 +1461,39 @@ var require_rules = __commonJS({
|
|
|
1455
1461
|
keywords: {}
|
|
1456
1462
|
};
|
|
1457
1463
|
}
|
|
1458
|
-
|
|
1464
|
+
exports.getRules = getRules;
|
|
1459
1465
|
}
|
|
1460
1466
|
});
|
|
1461
1467
|
|
|
1462
1468
|
// ../node_modules/ajv/dist/compile/validate/applicability.js
|
|
1463
1469
|
var require_applicability = __commonJS({
|
|
1464
|
-
"../node_modules/ajv/dist/compile/validate/applicability.js"(
|
|
1470
|
+
"../node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1465
1471
|
"use strict";
|
|
1466
|
-
Object.defineProperty(
|
|
1467
|
-
|
|
1472
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1473
|
+
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
1468
1474
|
function schemaHasRulesForType({ schema, self: self2 }, type) {
|
|
1469
1475
|
const group = self2.RULES.types[type];
|
|
1470
1476
|
return group && group !== true && shouldUseGroup(schema, group);
|
|
1471
1477
|
}
|
|
1472
|
-
|
|
1478
|
+
exports.schemaHasRulesForType = schemaHasRulesForType;
|
|
1473
1479
|
function shouldUseGroup(schema, group) {
|
|
1474
1480
|
return group.rules.some((rule) => shouldUseRule(schema, rule));
|
|
1475
1481
|
}
|
|
1476
|
-
|
|
1482
|
+
exports.shouldUseGroup = shouldUseGroup;
|
|
1477
1483
|
function shouldUseRule(schema, rule) {
|
|
1478
1484
|
var _a2;
|
|
1479
1485
|
return schema[rule.keyword] !== void 0 || ((_a2 = rule.definition.implements) === null || _a2 === void 0 ? void 0 : _a2.some((kwd) => schema[kwd] !== void 0));
|
|
1480
1486
|
}
|
|
1481
|
-
|
|
1487
|
+
exports.shouldUseRule = shouldUseRule;
|
|
1482
1488
|
}
|
|
1483
1489
|
});
|
|
1484
1490
|
|
|
1485
1491
|
// ../node_modules/ajv/dist/compile/validate/dataType.js
|
|
1486
1492
|
var require_dataType = __commonJS({
|
|
1487
|
-
"../node_modules/ajv/dist/compile/validate/dataType.js"(
|
|
1493
|
+
"../node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1488
1494
|
"use strict";
|
|
1489
|
-
Object.defineProperty(
|
|
1490
|
-
|
|
1495
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1496
|
+
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
1491
1497
|
var rules_1 = require_rules();
|
|
1492
1498
|
var applicability_1 = require_applicability();
|
|
1493
1499
|
var errors_1 = require_errors();
|
|
@@ -1497,7 +1503,7 @@ var require_dataType = __commonJS({
|
|
|
1497
1503
|
(function(DataType2) {
|
|
1498
1504
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
1499
1505
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
1500
|
-
})(DataType || (
|
|
1506
|
+
})(DataType || (exports.DataType = DataType = {}));
|
|
1501
1507
|
function getSchemaTypes(schema) {
|
|
1502
1508
|
const types = getJSONTypes(schema.type);
|
|
1503
1509
|
const hasNull = types.includes("null");
|
|
@@ -1513,14 +1519,14 @@ var require_dataType = __commonJS({
|
|
|
1513
1519
|
}
|
|
1514
1520
|
return types;
|
|
1515
1521
|
}
|
|
1516
|
-
|
|
1522
|
+
exports.getSchemaTypes = getSchemaTypes;
|
|
1517
1523
|
function getJSONTypes(ts) {
|
|
1518
1524
|
const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
|
|
1519
1525
|
if (types.every(rules_1.isJSONType))
|
|
1520
1526
|
return types;
|
|
1521
1527
|
throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
|
|
1522
1528
|
}
|
|
1523
|
-
|
|
1529
|
+
exports.getJSONTypes = getJSONTypes;
|
|
1524
1530
|
function coerceAndCheckDataType(it, types) {
|
|
1525
1531
|
const { gen, data, opts } = it;
|
|
1526
1532
|
const coerceTo = coerceToTypes(types, opts.coerceTypes);
|
|
@@ -1536,7 +1542,7 @@ var require_dataType = __commonJS({
|
|
|
1536
1542
|
}
|
|
1537
1543
|
return checkTypes;
|
|
1538
1544
|
}
|
|
1539
|
-
|
|
1545
|
+
exports.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
1540
1546
|
var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1541
1547
|
function coerceToTypes(types, coerceTypes) {
|
|
1542
1548
|
return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
|
|
@@ -1616,7 +1622,7 @@ var require_dataType = __commonJS({
|
|
|
1616
1622
|
return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
|
|
1617
1623
|
}
|
|
1618
1624
|
}
|
|
1619
|
-
|
|
1625
|
+
exports.checkDataType = checkDataType;
|
|
1620
1626
|
function checkDataTypes(dataTypes, data, strictNums, correct) {
|
|
1621
1627
|
if (dataTypes.length === 1) {
|
|
1622
1628
|
return checkDataType(dataTypes[0], data, strictNums, correct);
|
|
@@ -1638,7 +1644,7 @@ var require_dataType = __commonJS({
|
|
|
1638
1644
|
cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
|
|
1639
1645
|
return cond;
|
|
1640
1646
|
}
|
|
1641
|
-
|
|
1647
|
+
exports.checkDataTypes = checkDataTypes;
|
|
1642
1648
|
var typeError = {
|
|
1643
1649
|
message: ({ schema }) => `must be ${schema}`,
|
|
1644
1650
|
params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
|
|
@@ -1647,7 +1653,7 @@ var require_dataType = __commonJS({
|
|
|
1647
1653
|
const cxt = getTypeErrorContext(it);
|
|
1648
1654
|
(0, errors_1.reportError)(cxt, typeError);
|
|
1649
1655
|
}
|
|
1650
|
-
|
|
1656
|
+
exports.reportTypeError = reportTypeError;
|
|
1651
1657
|
function getTypeErrorContext(it) {
|
|
1652
1658
|
const { gen, data, schema } = it;
|
|
1653
1659
|
const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
|
|
@@ -1668,10 +1674,10 @@ var require_dataType = __commonJS({
|
|
|
1668
1674
|
|
|
1669
1675
|
// ../node_modules/ajv/dist/compile/validate/defaults.js
|
|
1670
1676
|
var require_defaults = __commonJS({
|
|
1671
|
-
"../node_modules/ajv/dist/compile/validate/defaults.js"(
|
|
1677
|
+
"../node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1672
1678
|
"use strict";
|
|
1673
|
-
Object.defineProperty(
|
|
1674
|
-
|
|
1679
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1680
|
+
exports.assignDefaults = void 0;
|
|
1675
1681
|
var codegen_1 = require_codegen();
|
|
1676
1682
|
var util_1 = require_util();
|
|
1677
1683
|
function assignDefaults(it, ty) {
|
|
@@ -1684,7 +1690,7 @@ var require_defaults = __commonJS({
|
|
|
1684
1690
|
items.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
1685
1691
|
}
|
|
1686
1692
|
}
|
|
1687
|
-
|
|
1693
|
+
exports.assignDefaults = assignDefaults;
|
|
1688
1694
|
function assignDefault(it, prop, defaultValue) {
|
|
1689
1695
|
const { gen, compositeRule, data, opts } = it;
|
|
1690
1696
|
if (defaultValue === void 0)
|
|
@@ -1705,10 +1711,10 @@ var require_defaults = __commonJS({
|
|
|
1705
1711
|
|
|
1706
1712
|
// ../node_modules/ajv/dist/vocabularies/code.js
|
|
1707
1713
|
var require_code2 = __commonJS({
|
|
1708
|
-
"../node_modules/ajv/dist/vocabularies/code.js"(
|
|
1714
|
+
"../node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1709
1715
|
"use strict";
|
|
1710
|
-
Object.defineProperty(
|
|
1711
|
-
|
|
1716
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1717
|
+
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 = void 0;
|
|
1712
1718
|
var codegen_1 = require_codegen();
|
|
1713
1719
|
var util_1 = require_util();
|
|
1714
1720
|
var names_1 = require_names();
|
|
@@ -1720,16 +1726,16 @@ var require_code2 = __commonJS({
|
|
|
1720
1726
|
cxt.error();
|
|
1721
1727
|
});
|
|
1722
1728
|
}
|
|
1723
|
-
|
|
1729
|
+
exports.checkReportMissingProp = checkReportMissingProp;
|
|
1724
1730
|
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
1725
1731
|
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
|
|
1726
1732
|
}
|
|
1727
|
-
|
|
1733
|
+
exports.checkMissingProp = checkMissingProp;
|
|
1728
1734
|
function reportMissingProp(cxt, missing) {
|
|
1729
1735
|
cxt.setParams({ missingProperty: missing }, true);
|
|
1730
1736
|
cxt.error();
|
|
1731
1737
|
}
|
|
1732
|
-
|
|
1738
|
+
exports.reportMissingProp = reportMissingProp;
|
|
1733
1739
|
function hasPropFunc(gen) {
|
|
1734
1740
|
return gen.scopeValue("func", {
|
|
1735
1741
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1737,29 +1743,29 @@ var require_code2 = __commonJS({
|
|
|
1737
1743
|
code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
|
|
1738
1744
|
});
|
|
1739
1745
|
}
|
|
1740
|
-
|
|
1746
|
+
exports.hasPropFunc = hasPropFunc;
|
|
1741
1747
|
function isOwnProperty(gen, data, property) {
|
|
1742
1748
|
return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
1743
1749
|
}
|
|
1744
|
-
|
|
1750
|
+
exports.isOwnProperty = isOwnProperty;
|
|
1745
1751
|
function propertyInData(gen, data, property, ownProperties) {
|
|
1746
1752
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
1747
1753
|
return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
1748
1754
|
}
|
|
1749
|
-
|
|
1755
|
+
exports.propertyInData = propertyInData;
|
|
1750
1756
|
function noPropertyInData(gen, data, property, ownProperties) {
|
|
1751
1757
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
1752
1758
|
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
1753
1759
|
}
|
|
1754
|
-
|
|
1760
|
+
exports.noPropertyInData = noPropertyInData;
|
|
1755
1761
|
function allSchemaProperties(schemaMap) {
|
|
1756
1762
|
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
1757
1763
|
}
|
|
1758
|
-
|
|
1764
|
+
exports.allSchemaProperties = allSchemaProperties;
|
|
1759
1765
|
function schemaProperties(it, schemaMap) {
|
|
1760
1766
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
1761
1767
|
}
|
|
1762
|
-
|
|
1768
|
+
exports.schemaProperties = schemaProperties;
|
|
1763
1769
|
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
1764
1770
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
1765
1771
|
const valCxt = [
|
|
@@ -1773,7 +1779,7 @@ var require_code2 = __commonJS({
|
|
|
1773
1779
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
1774
1780
|
return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
1775
1781
|
}
|
|
1776
|
-
|
|
1782
|
+
exports.callValidateCode = callValidateCode;
|
|
1777
1783
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
1778
1784
|
function usePattern({ gen, it: { opts } }, pattern) {
|
|
1779
1785
|
const u = opts.unicodeRegExp ? "u" : "";
|
|
@@ -1785,7 +1791,7 @@ var require_code2 = __commonJS({
|
|
|
1785
1791
|
code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
|
|
1786
1792
|
});
|
|
1787
1793
|
}
|
|
1788
|
-
|
|
1794
|
+
exports.usePattern = usePattern;
|
|
1789
1795
|
function validateArray(cxt) {
|
|
1790
1796
|
const { gen, data, keyword, it } = cxt;
|
|
1791
1797
|
const valid = gen.name("valid");
|
|
@@ -1809,7 +1815,7 @@ var require_code2 = __commonJS({
|
|
|
1809
1815
|
});
|
|
1810
1816
|
}
|
|
1811
1817
|
}
|
|
1812
|
-
|
|
1818
|
+
exports.validateArray = validateArray;
|
|
1813
1819
|
function validateUnion(cxt) {
|
|
1814
1820
|
const { gen, schema, keyword, it } = cxt;
|
|
1815
1821
|
if (!Array.isArray(schema))
|
|
@@ -1832,16 +1838,16 @@ var require_code2 = __commonJS({
|
|
|
1832
1838
|
}));
|
|
1833
1839
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
1834
1840
|
}
|
|
1835
|
-
|
|
1841
|
+
exports.validateUnion = validateUnion;
|
|
1836
1842
|
}
|
|
1837
1843
|
});
|
|
1838
1844
|
|
|
1839
1845
|
// ../node_modules/ajv/dist/compile/validate/keyword.js
|
|
1840
1846
|
var require_keyword = __commonJS({
|
|
1841
|
-
"../node_modules/ajv/dist/compile/validate/keyword.js"(
|
|
1847
|
+
"../node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1842
1848
|
"use strict";
|
|
1843
|
-
Object.defineProperty(
|
|
1844
|
-
|
|
1849
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1850
|
+
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
1845
1851
|
var codegen_1 = require_codegen();
|
|
1846
1852
|
var names_1 = require_names();
|
|
1847
1853
|
var code_1 = require_code2();
|
|
@@ -1862,7 +1868,7 @@ var require_keyword = __commonJS({
|
|
|
1862
1868
|
}, valid);
|
|
1863
1869
|
cxt.pass(valid, () => cxt.error(true));
|
|
1864
1870
|
}
|
|
1865
|
-
|
|
1871
|
+
exports.macroKeywordCode = macroKeywordCode;
|
|
1866
1872
|
function funcKeywordCode(cxt, def) {
|
|
1867
1873
|
var _a2;
|
|
1868
1874
|
const { gen, keyword, schema, parentSchema, $data, it } = cxt;
|
|
@@ -1906,7 +1912,7 @@ var require_keyword = __commonJS({
|
|
|
1906
1912
|
gen.if((0, codegen_1.not)((_a3 = def.valid) !== null && _a3 !== void 0 ? _a3 : valid), errors2);
|
|
1907
1913
|
}
|
|
1908
1914
|
}
|
|
1909
|
-
|
|
1915
|
+
exports.funcKeywordCode = funcKeywordCode;
|
|
1910
1916
|
function modifyData(cxt) {
|
|
1911
1917
|
const { gen, data, it } = cxt;
|
|
1912
1918
|
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
@@ -1930,7 +1936,7 @@ var require_keyword = __commonJS({
|
|
|
1930
1936
|
function validSchemaType(schema, schemaType, allowUndefined = false) {
|
|
1931
1937
|
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");
|
|
1932
1938
|
}
|
|
1933
|
-
|
|
1939
|
+
exports.validSchemaType = validSchemaType;
|
|
1934
1940
|
function validateKeywordUsage({ schema, opts, self: self2, errSchemaPath }, def, keyword) {
|
|
1935
1941
|
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
|
|
1936
1942
|
throw new Error("ajv implementation error");
|
|
@@ -1950,16 +1956,16 @@ var require_keyword = __commonJS({
|
|
|
1950
1956
|
}
|
|
1951
1957
|
}
|
|
1952
1958
|
}
|
|
1953
|
-
|
|
1959
|
+
exports.validateKeywordUsage = validateKeywordUsage;
|
|
1954
1960
|
}
|
|
1955
1961
|
});
|
|
1956
1962
|
|
|
1957
1963
|
// ../node_modules/ajv/dist/compile/validate/subschema.js
|
|
1958
1964
|
var require_subschema = __commonJS({
|
|
1959
|
-
"../node_modules/ajv/dist/compile/validate/subschema.js"(
|
|
1965
|
+
"../node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1960
1966
|
"use strict";
|
|
1961
|
-
Object.defineProperty(
|
|
1962
|
-
|
|
1967
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1968
|
+
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
1963
1969
|
var codegen_1 = require_codegen();
|
|
1964
1970
|
var util_1 = require_util();
|
|
1965
1971
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
@@ -1991,7 +1997,7 @@ var require_subschema = __commonJS({
|
|
|
1991
1997
|
}
|
|
1992
1998
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
1993
1999
|
}
|
|
1994
|
-
|
|
2000
|
+
exports.getSubschema = getSubschema;
|
|
1995
2001
|
function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
1996
2002
|
if (data !== void 0 && dataProp !== void 0) {
|
|
1997
2003
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
@@ -2022,7 +2028,7 @@ var require_subschema = __commonJS({
|
|
|
2022
2028
|
subschema.dataNames = [...it.dataNames, _nextData];
|
|
2023
2029
|
}
|
|
2024
2030
|
}
|
|
2025
|
-
|
|
2031
|
+
exports.extendSubschemaData = extendSubschemaData;
|
|
2026
2032
|
function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
|
|
2027
2033
|
if (compositeRule !== void 0)
|
|
2028
2034
|
subschema.compositeRule = compositeRule;
|
|
@@ -2033,15 +2039,15 @@ var require_subschema = __commonJS({
|
|
|
2033
2039
|
subschema.jtdDiscriminator = jtdDiscriminator;
|
|
2034
2040
|
subschema.jtdMetadata = jtdMetadata;
|
|
2035
2041
|
}
|
|
2036
|
-
|
|
2042
|
+
exports.extendSubschemaMode = extendSubschemaMode;
|
|
2037
2043
|
}
|
|
2038
2044
|
});
|
|
2039
2045
|
|
|
2040
2046
|
// ../node_modules/fast-deep-equal/index.js
|
|
2041
2047
|
var require_fast_deep_equal = __commonJS({
|
|
2042
|
-
"../node_modules/fast-deep-equal/index.js"(
|
|
2048
|
+
"../node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2043
2049
|
"use strict";
|
|
2044
|
-
|
|
2050
|
+
module.exports = function equal(a, b) {
|
|
2045
2051
|
if (a === b) return true;
|
|
2046
2052
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
2047
2053
|
if (a.constructor !== b.constructor) return false;
|
|
@@ -2074,9 +2080,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2074
2080
|
|
|
2075
2081
|
// ../node_modules/json-schema-traverse/index.js
|
|
2076
2082
|
var require_json_schema_traverse = __commonJS({
|
|
2077
|
-
"../node_modules/json-schema-traverse/index.js"(
|
|
2083
|
+
"../node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2078
2084
|
"use strict";
|
|
2079
|
-
var traverse =
|
|
2085
|
+
var traverse = module.exports = function(schema, opts, cb) {
|
|
2080
2086
|
if (typeof opts == "function") {
|
|
2081
2087
|
cb = opts;
|
|
2082
2088
|
opts = {};
|
|
@@ -2162,10 +2168,10 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2162
2168
|
|
|
2163
2169
|
// ../node_modules/ajv/dist/compile/resolve.js
|
|
2164
2170
|
var require_resolve = __commonJS({
|
|
2165
|
-
"../node_modules/ajv/dist/compile/resolve.js"(
|
|
2171
|
+
"../node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2166
2172
|
"use strict";
|
|
2167
|
-
Object.defineProperty(
|
|
2168
|
-
|
|
2173
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2174
|
+
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
2169
2175
|
var util_1 = require_util();
|
|
2170
2176
|
var equal = require_fast_deep_equal();
|
|
2171
2177
|
var traverse = require_json_schema_traverse();
|
|
@@ -2196,7 +2202,7 @@ var require_resolve = __commonJS({
|
|
|
2196
2202
|
return false;
|
|
2197
2203
|
return countKeys(schema) <= limit;
|
|
2198
2204
|
}
|
|
2199
|
-
|
|
2205
|
+
exports.inlineRef = inlineRef;
|
|
2200
2206
|
var REF_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2201
2207
|
"$ref",
|
|
2202
2208
|
"$recursiveRef",
|
|
@@ -2238,22 +2244,22 @@ var require_resolve = __commonJS({
|
|
|
2238
2244
|
const p = resolver.parse(id);
|
|
2239
2245
|
return _getFullPath(resolver, p);
|
|
2240
2246
|
}
|
|
2241
|
-
|
|
2247
|
+
exports.getFullPath = getFullPath;
|
|
2242
2248
|
function _getFullPath(resolver, p) {
|
|
2243
2249
|
const serialized = resolver.serialize(p);
|
|
2244
2250
|
return serialized.split("#")[0] + "#";
|
|
2245
2251
|
}
|
|
2246
|
-
|
|
2252
|
+
exports._getFullPath = _getFullPath;
|
|
2247
2253
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
2248
2254
|
function normalizeId(id) {
|
|
2249
2255
|
return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
|
|
2250
2256
|
}
|
|
2251
|
-
|
|
2257
|
+
exports.normalizeId = normalizeId;
|
|
2252
2258
|
function resolveUrl(resolver, baseId, id) {
|
|
2253
2259
|
id = normalizeId(id);
|
|
2254
2260
|
return resolver.resolve(baseId, id);
|
|
2255
2261
|
}
|
|
2256
|
-
|
|
2262
|
+
exports.resolveUrl = resolveUrl;
|
|
2257
2263
|
var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
|
|
2258
2264
|
function getSchemaRefs(schema, baseId) {
|
|
2259
2265
|
if (typeof schema == "boolean")
|
|
@@ -2312,16 +2318,16 @@ var require_resolve = __commonJS({
|
|
|
2312
2318
|
return new Error(`reference "${ref}" resolves to more than one schema`);
|
|
2313
2319
|
}
|
|
2314
2320
|
}
|
|
2315
|
-
|
|
2321
|
+
exports.getSchemaRefs = getSchemaRefs;
|
|
2316
2322
|
}
|
|
2317
2323
|
});
|
|
2318
2324
|
|
|
2319
2325
|
// ../node_modules/ajv/dist/compile/validate/index.js
|
|
2320
2326
|
var require_validate = __commonJS({
|
|
2321
|
-
"../node_modules/ajv/dist/compile/validate/index.js"(
|
|
2327
|
+
"../node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2322
2328
|
"use strict";
|
|
2323
|
-
Object.defineProperty(
|
|
2324
|
-
|
|
2329
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2330
|
+
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
2325
2331
|
var boolSchema_1 = require_boolSchema();
|
|
2326
2332
|
var dataType_1 = require_dataType();
|
|
2327
2333
|
var applicability_1 = require_applicability();
|
|
@@ -2344,7 +2350,7 @@ var require_validate = __commonJS({
|
|
|
2344
2350
|
}
|
|
2345
2351
|
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
2346
2352
|
}
|
|
2347
|
-
|
|
2353
|
+
exports.validateFunctionCode = validateFunctionCode;
|
|
2348
2354
|
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
|
|
2349
2355
|
if (opts.code.es5) {
|
|
2350
2356
|
gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
|
|
@@ -2765,7 +2771,7 @@ var require_validate = __commonJS({
|
|
|
2765
2771
|
}
|
|
2766
2772
|
}
|
|
2767
2773
|
};
|
|
2768
|
-
|
|
2774
|
+
exports.KeywordCxt = KeywordCxt;
|
|
2769
2775
|
function keywordCode(it, keyword, def, ruleType) {
|
|
2770
2776
|
const cxt = new KeywordCxt(it, def, keyword);
|
|
2771
2777
|
if ("code" in def) {
|
|
@@ -2820,15 +2826,15 @@ var require_validate = __commonJS({
|
|
|
2820
2826
|
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
|
|
2821
2827
|
}
|
|
2822
2828
|
}
|
|
2823
|
-
|
|
2829
|
+
exports.getData = getData;
|
|
2824
2830
|
}
|
|
2825
2831
|
});
|
|
2826
2832
|
|
|
2827
2833
|
// ../node_modules/ajv/dist/runtime/validation_error.js
|
|
2828
2834
|
var require_validation_error = __commonJS({
|
|
2829
|
-
"../node_modules/ajv/dist/runtime/validation_error.js"(
|
|
2835
|
+
"../node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2830
2836
|
"use strict";
|
|
2831
|
-
Object.defineProperty(
|
|
2837
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2832
2838
|
var ValidationError = class extends Error {
|
|
2833
2839
|
constructor(errors2) {
|
|
2834
2840
|
super("validation failed");
|
|
@@ -2836,15 +2842,15 @@ var require_validation_error = __commonJS({
|
|
|
2836
2842
|
this.ajv = this.validation = true;
|
|
2837
2843
|
}
|
|
2838
2844
|
};
|
|
2839
|
-
|
|
2845
|
+
exports.default = ValidationError;
|
|
2840
2846
|
}
|
|
2841
2847
|
});
|
|
2842
2848
|
|
|
2843
2849
|
// ../node_modules/ajv/dist/compile/ref_error.js
|
|
2844
2850
|
var require_ref_error = __commonJS({
|
|
2845
|
-
"../node_modules/ajv/dist/compile/ref_error.js"(
|
|
2851
|
+
"../node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2846
2852
|
"use strict";
|
|
2847
|
-
Object.defineProperty(
|
|
2853
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2848
2854
|
var resolve_1 = require_resolve();
|
|
2849
2855
|
var MissingRefError = class extends Error {
|
|
2850
2856
|
constructor(resolver, baseId, ref, msg) {
|
|
@@ -2853,16 +2859,16 @@ var require_ref_error = __commonJS({
|
|
|
2853
2859
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
2854
2860
|
}
|
|
2855
2861
|
};
|
|
2856
|
-
|
|
2862
|
+
exports.default = MissingRefError;
|
|
2857
2863
|
}
|
|
2858
2864
|
});
|
|
2859
2865
|
|
|
2860
2866
|
// ../node_modules/ajv/dist/compile/index.js
|
|
2861
2867
|
var require_compile = __commonJS({
|
|
2862
|
-
"../node_modules/ajv/dist/compile/index.js"(
|
|
2868
|
+
"../node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2863
2869
|
"use strict";
|
|
2864
|
-
Object.defineProperty(
|
|
2865
|
-
|
|
2870
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2871
|
+
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
2866
2872
|
var codegen_1 = require_codegen();
|
|
2867
2873
|
var validation_error_1 = require_validation_error();
|
|
2868
2874
|
var names_1 = require_names();
|
|
@@ -2888,7 +2894,7 @@ var require_compile = __commonJS({
|
|
|
2888
2894
|
this.refs = {};
|
|
2889
2895
|
}
|
|
2890
2896
|
};
|
|
2891
|
-
|
|
2897
|
+
exports.SchemaEnv = SchemaEnv;
|
|
2892
2898
|
function compileSchema(sch) {
|
|
2893
2899
|
const _sch = getCompilingSchema.call(this, sch);
|
|
2894
2900
|
if (_sch)
|
|
@@ -2974,7 +2980,7 @@ var require_compile = __commonJS({
|
|
|
2974
2980
|
this._compilations.delete(sch);
|
|
2975
2981
|
}
|
|
2976
2982
|
}
|
|
2977
|
-
|
|
2983
|
+
exports.compileSchema = compileSchema;
|
|
2978
2984
|
function resolveRef2(root, baseId, ref) {
|
|
2979
2985
|
var _a2;
|
|
2980
2986
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
@@ -2992,7 +2998,7 @@ var require_compile = __commonJS({
|
|
|
2992
2998
|
return;
|
|
2993
2999
|
return root.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
2994
3000
|
}
|
|
2995
|
-
|
|
3001
|
+
exports.resolveRef = resolveRef2;
|
|
2996
3002
|
function inlineOrCompile(sch) {
|
|
2997
3003
|
if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
|
|
2998
3004
|
return sch.schema;
|
|
@@ -3004,7 +3010,7 @@ var require_compile = __commonJS({
|
|
|
3004
3010
|
return sch;
|
|
3005
3011
|
}
|
|
3006
3012
|
}
|
|
3007
|
-
|
|
3013
|
+
exports.getCompilingSchema = getCompilingSchema;
|
|
3008
3014
|
function sameSchemaEnv(s1, s2) {
|
|
3009
3015
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
3010
3016
|
}
|
|
@@ -3043,7 +3049,7 @@ var require_compile = __commonJS({
|
|
|
3043
3049
|
}
|
|
3044
3050
|
return getJsonPointer.call(this, p, schOrRef);
|
|
3045
3051
|
}
|
|
3046
|
-
|
|
3052
|
+
exports.resolveSchema = resolveSchema;
|
|
3047
3053
|
var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
|
|
3048
3054
|
"properties",
|
|
3049
3055
|
"patternProperties",
|
|
@@ -3083,8 +3089,8 @@ var require_compile = __commonJS({
|
|
|
3083
3089
|
|
|
3084
3090
|
// ../node_modules/ajv/dist/refs/data.json
|
|
3085
3091
|
var require_data = __commonJS({
|
|
3086
|
-
"../node_modules/ajv/dist/refs/data.json"(
|
|
3087
|
-
|
|
3092
|
+
"../node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3093
|
+
module.exports = {
|
|
3088
3094
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3089
3095
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
3090
3096
|
type: "object",
|
|
@@ -3102,7 +3108,7 @@ var require_data = __commonJS({
|
|
|
3102
3108
|
|
|
3103
3109
|
// ../node_modules/fast-uri/lib/utils.js
|
|
3104
3110
|
var require_utils = __commonJS({
|
|
3105
|
-
"../node_modules/fast-uri/lib/utils.js"(
|
|
3111
|
+
"../node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3106
3112
|
"use strict";
|
|
3107
3113
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3108
3114
|
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);
|
|
@@ -3344,7 +3350,7 @@ var require_utils = __commonJS({
|
|
|
3344
3350
|
}
|
|
3345
3351
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3346
3352
|
}
|
|
3347
|
-
|
|
3353
|
+
module.exports = {
|
|
3348
3354
|
nonSimpleDomain,
|
|
3349
3355
|
recomposeAuthority,
|
|
3350
3356
|
normalizeComponentEncoding,
|
|
@@ -3359,7 +3365,7 @@ var require_utils = __commonJS({
|
|
|
3359
3365
|
|
|
3360
3366
|
// ../node_modules/fast-uri/lib/schemes.js
|
|
3361
3367
|
var require_schemes = __commonJS({
|
|
3362
|
-
"../node_modules/fast-uri/lib/schemes.js"(
|
|
3368
|
+
"../node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3363
3369
|
"use strict";
|
|
3364
3370
|
var { isUUID } = require_utils();
|
|
3365
3371
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3558,7 +3564,7 @@ var require_schemes = __commonJS({
|
|
|
3558
3564
|
scheme.toLowerCase()
|
|
3559
3565
|
]) || void 0;
|
|
3560
3566
|
}
|
|
3561
|
-
|
|
3567
|
+
module.exports = {
|
|
3562
3568
|
wsIsSecure,
|
|
3563
3569
|
SCHEMES,
|
|
3564
3570
|
isValidSchemeName,
|
|
@@ -3569,7 +3575,7 @@ var require_schemes = __commonJS({
|
|
|
3569
3575
|
|
|
3570
3576
|
// ../node_modules/fast-uri/index.js
|
|
3571
3577
|
var require_fast_uri = __commonJS({
|
|
3572
|
-
"../node_modules/fast-uri/index.js"(
|
|
3578
|
+
"../node_modules/fast-uri/index.js"(exports, module) {
|
|
3573
3579
|
"use strict";
|
|
3574
3580
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3575
3581
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3816,50 +3822,50 @@ var require_fast_uri = __commonJS({
|
|
|
3816
3822
|
serialize,
|
|
3817
3823
|
parse: parse3
|
|
3818
3824
|
};
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3825
|
+
module.exports = fastUri;
|
|
3826
|
+
module.exports.default = fastUri;
|
|
3827
|
+
module.exports.fastUri = fastUri;
|
|
3822
3828
|
}
|
|
3823
3829
|
});
|
|
3824
3830
|
|
|
3825
3831
|
// ../node_modules/ajv/dist/runtime/uri.js
|
|
3826
3832
|
var require_uri = __commonJS({
|
|
3827
|
-
"../node_modules/ajv/dist/runtime/uri.js"(
|
|
3833
|
+
"../node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
3828
3834
|
"use strict";
|
|
3829
|
-
Object.defineProperty(
|
|
3835
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3830
3836
|
var uri = require_fast_uri();
|
|
3831
3837
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
3832
|
-
|
|
3838
|
+
exports.default = uri;
|
|
3833
3839
|
}
|
|
3834
3840
|
});
|
|
3835
3841
|
|
|
3836
3842
|
// ../node_modules/ajv/dist/core.js
|
|
3837
3843
|
var require_core = __commonJS({
|
|
3838
|
-
"../node_modules/ajv/dist/core.js"(
|
|
3844
|
+
"../node_modules/ajv/dist/core.js"(exports) {
|
|
3839
3845
|
"use strict";
|
|
3840
|
-
Object.defineProperty(
|
|
3841
|
-
|
|
3846
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3847
|
+
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
3842
3848
|
var validate_1 = require_validate();
|
|
3843
|
-
Object.defineProperty(
|
|
3849
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
3844
3850
|
return validate_1.KeywordCxt;
|
|
3845
3851
|
} });
|
|
3846
3852
|
var codegen_1 = require_codegen();
|
|
3847
|
-
Object.defineProperty(
|
|
3853
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
3848
3854
|
return codegen_1._;
|
|
3849
3855
|
} });
|
|
3850
|
-
Object.defineProperty(
|
|
3856
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
3851
3857
|
return codegen_1.str;
|
|
3852
3858
|
} });
|
|
3853
|
-
Object.defineProperty(
|
|
3859
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
3854
3860
|
return codegen_1.stringify;
|
|
3855
3861
|
} });
|
|
3856
|
-
Object.defineProperty(
|
|
3862
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
3857
3863
|
return codegen_1.nil;
|
|
3858
3864
|
} });
|
|
3859
|
-
Object.defineProperty(
|
|
3865
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
3860
3866
|
return codegen_1.Name;
|
|
3861
3867
|
} });
|
|
3862
|
-
Object.defineProperty(
|
|
3868
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
|
|
3863
3869
|
return codegen_1.CodeGen;
|
|
3864
3870
|
} });
|
|
3865
3871
|
var validation_error_1 = require_validation_error();
|
|
@@ -4313,7 +4319,7 @@ var require_core = __commonJS({
|
|
|
4313
4319
|
};
|
|
4314
4320
|
Ajv2.ValidationError = validation_error_1.default;
|
|
4315
4321
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
4316
|
-
|
|
4322
|
+
exports.default = Ajv2;
|
|
4317
4323
|
function checkOptions(checkOpts, options3, msg, log = "error") {
|
|
4318
4324
|
for (const key in checkOpts) {
|
|
4319
4325
|
const opt = key;
|
|
@@ -4446,25 +4452,25 @@ var require_core = __commonJS({
|
|
|
4446
4452
|
|
|
4447
4453
|
// ../node_modules/ajv/dist/vocabularies/core/id.js
|
|
4448
4454
|
var require_id = __commonJS({
|
|
4449
|
-
"../node_modules/ajv/dist/vocabularies/core/id.js"(
|
|
4455
|
+
"../node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4450
4456
|
"use strict";
|
|
4451
|
-
Object.defineProperty(
|
|
4457
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4452
4458
|
var def = {
|
|
4453
4459
|
keyword: "id",
|
|
4454
4460
|
code() {
|
|
4455
4461
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
4456
4462
|
}
|
|
4457
4463
|
};
|
|
4458
|
-
|
|
4464
|
+
exports.default = def;
|
|
4459
4465
|
}
|
|
4460
4466
|
});
|
|
4461
4467
|
|
|
4462
4468
|
// ../node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4463
4469
|
var require_ref = __commonJS({
|
|
4464
|
-
"../node_modules/ajv/dist/vocabularies/core/ref.js"(
|
|
4470
|
+
"../node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4465
4471
|
"use strict";
|
|
4466
|
-
Object.defineProperty(
|
|
4467
|
-
|
|
4472
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4473
|
+
exports.callRef = exports.getValidate = void 0;
|
|
4468
4474
|
var ref_error_1 = require_ref_error();
|
|
4469
4475
|
var code_1 = require_code2();
|
|
4470
4476
|
var codegen_1 = require_codegen();
|
|
@@ -4515,7 +4521,7 @@ var require_ref = __commonJS({
|
|
|
4515
4521
|
const { gen } = cxt;
|
|
4516
4522
|
return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
4517
4523
|
}
|
|
4518
|
-
|
|
4524
|
+
exports.getValidate = getValidate;
|
|
4519
4525
|
function callRef(cxt, v, sch, $async) {
|
|
4520
4526
|
const { gen, it } = cxt;
|
|
4521
4527
|
const { allErrors, schemaEnv: env, opts } = it;
|
|
@@ -4576,16 +4582,16 @@ var require_ref = __commonJS({
|
|
|
4576
4582
|
}
|
|
4577
4583
|
}
|
|
4578
4584
|
}
|
|
4579
|
-
|
|
4580
|
-
|
|
4585
|
+
exports.callRef = callRef;
|
|
4586
|
+
exports.default = def;
|
|
4581
4587
|
}
|
|
4582
4588
|
});
|
|
4583
4589
|
|
|
4584
4590
|
// ../node_modules/ajv/dist/vocabularies/core/index.js
|
|
4585
4591
|
var require_core2 = __commonJS({
|
|
4586
|
-
"../node_modules/ajv/dist/vocabularies/core/index.js"(
|
|
4592
|
+
"../node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4587
4593
|
"use strict";
|
|
4588
|
-
Object.defineProperty(
|
|
4594
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4589
4595
|
var id_1 = require_id();
|
|
4590
4596
|
var ref_1 = require_ref();
|
|
4591
4597
|
var core = [
|
|
@@ -4598,15 +4604,15 @@ var require_core2 = __commonJS({
|
|
|
4598
4604
|
id_1.default,
|
|
4599
4605
|
ref_1.default
|
|
4600
4606
|
];
|
|
4601
|
-
|
|
4607
|
+
exports.default = core;
|
|
4602
4608
|
}
|
|
4603
4609
|
});
|
|
4604
4610
|
|
|
4605
4611
|
// ../node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4606
4612
|
var require_limitNumber = __commonJS({
|
|
4607
|
-
"../node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(
|
|
4613
|
+
"../node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4608
4614
|
"use strict";
|
|
4609
|
-
Object.defineProperty(
|
|
4615
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4610
4616
|
var codegen_1 = require_codegen();
|
|
4611
4617
|
var ops = codegen_1.operators;
|
|
4612
4618
|
var KWDs = {
|
|
@@ -4630,15 +4636,15 @@ var require_limitNumber = __commonJS({
|
|
|
4630
4636
|
cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
|
|
4631
4637
|
}
|
|
4632
4638
|
};
|
|
4633
|
-
|
|
4639
|
+
exports.default = def;
|
|
4634
4640
|
}
|
|
4635
4641
|
});
|
|
4636
4642
|
|
|
4637
4643
|
// ../node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4638
4644
|
var require_multipleOf = __commonJS({
|
|
4639
|
-
"../node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(
|
|
4645
|
+
"../node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
4640
4646
|
"use strict";
|
|
4641
|
-
Object.defineProperty(
|
|
4647
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4642
4648
|
var codegen_1 = require_codegen();
|
|
4643
4649
|
var error48 = {
|
|
4644
4650
|
message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
|
|
@@ -4658,15 +4664,15 @@ var require_multipleOf = __commonJS({
|
|
|
4658
4664
|
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
4659
4665
|
}
|
|
4660
4666
|
};
|
|
4661
|
-
|
|
4667
|
+
exports.default = def;
|
|
4662
4668
|
}
|
|
4663
4669
|
});
|
|
4664
4670
|
|
|
4665
4671
|
// ../node_modules/ajv/dist/runtime/ucs2length.js
|
|
4666
4672
|
var require_ucs2length = __commonJS({
|
|
4667
|
-
"../node_modules/ajv/dist/runtime/ucs2length.js"(
|
|
4673
|
+
"../node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4668
4674
|
"use strict";
|
|
4669
|
-
Object.defineProperty(
|
|
4675
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4670
4676
|
function ucs2length(str) {
|
|
4671
4677
|
const len = str.length;
|
|
4672
4678
|
let length = 0;
|
|
@@ -4683,16 +4689,16 @@ var require_ucs2length = __commonJS({
|
|
|
4683
4689
|
}
|
|
4684
4690
|
return length;
|
|
4685
4691
|
}
|
|
4686
|
-
|
|
4692
|
+
exports.default = ucs2length;
|
|
4687
4693
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4688
4694
|
}
|
|
4689
4695
|
});
|
|
4690
4696
|
|
|
4691
4697
|
// ../node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4692
4698
|
var require_limitLength = __commonJS({
|
|
4693
|
-
"../node_modules/ajv/dist/vocabularies/validation/limitLength.js"(
|
|
4699
|
+
"../node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
4694
4700
|
"use strict";
|
|
4695
|
-
Object.defineProperty(
|
|
4701
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4696
4702
|
var codegen_1 = require_codegen();
|
|
4697
4703
|
var util_1 = require_util();
|
|
4698
4704
|
var ucs2length_1 = require_ucs2length();
|
|
@@ -4716,15 +4722,15 @@ var require_limitLength = __commonJS({
|
|
|
4716
4722
|
cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
|
|
4717
4723
|
}
|
|
4718
4724
|
};
|
|
4719
|
-
|
|
4725
|
+
exports.default = def;
|
|
4720
4726
|
}
|
|
4721
4727
|
});
|
|
4722
4728
|
|
|
4723
4729
|
// ../node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4724
4730
|
var require_pattern = __commonJS({
|
|
4725
|
-
"../node_modules/ajv/dist/vocabularies/validation/pattern.js"(
|
|
4731
|
+
"../node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
4726
4732
|
"use strict";
|
|
4727
|
-
Object.defineProperty(
|
|
4733
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4728
4734
|
var code_1 = require_code2();
|
|
4729
4735
|
var util_1 = require_util();
|
|
4730
4736
|
var codegen_1 = require_codegen();
|
|
@@ -4753,15 +4759,15 @@ var require_pattern = __commonJS({
|
|
|
4753
4759
|
}
|
|
4754
4760
|
}
|
|
4755
4761
|
};
|
|
4756
|
-
|
|
4762
|
+
exports.default = def;
|
|
4757
4763
|
}
|
|
4758
4764
|
});
|
|
4759
4765
|
|
|
4760
4766
|
// ../node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4761
4767
|
var require_limitProperties = __commonJS({
|
|
4762
|
-
"../node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(
|
|
4768
|
+
"../node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
4763
4769
|
"use strict";
|
|
4764
|
-
Object.defineProperty(
|
|
4770
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4765
4771
|
var codegen_1 = require_codegen();
|
|
4766
4772
|
var error48 = {
|
|
4767
4773
|
message({ keyword, schemaCode }) {
|
|
@@ -4782,15 +4788,15 @@ var require_limitProperties = __commonJS({
|
|
|
4782
4788
|
cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
|
|
4783
4789
|
}
|
|
4784
4790
|
};
|
|
4785
|
-
|
|
4791
|
+
exports.default = def;
|
|
4786
4792
|
}
|
|
4787
4793
|
});
|
|
4788
4794
|
|
|
4789
4795
|
// ../node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4790
4796
|
var require_required = __commonJS({
|
|
4791
|
-
"../node_modules/ajv/dist/vocabularies/validation/required.js"(
|
|
4797
|
+
"../node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
4792
4798
|
"use strict";
|
|
4793
|
-
Object.defineProperty(
|
|
4799
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4794
4800
|
var code_1 = require_code2();
|
|
4795
4801
|
var codegen_1 = require_codegen();
|
|
4796
4802
|
var util_1 = require_util();
|
|
@@ -4864,15 +4870,15 @@ var require_required = __commonJS({
|
|
|
4864
4870
|
}
|
|
4865
4871
|
}
|
|
4866
4872
|
};
|
|
4867
|
-
|
|
4873
|
+
exports.default = def;
|
|
4868
4874
|
}
|
|
4869
4875
|
});
|
|
4870
4876
|
|
|
4871
4877
|
// ../node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4872
4878
|
var require_limitItems = __commonJS({
|
|
4873
|
-
"../node_modules/ajv/dist/vocabularies/validation/limitItems.js"(
|
|
4879
|
+
"../node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
4874
4880
|
"use strict";
|
|
4875
|
-
Object.defineProperty(
|
|
4881
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4876
4882
|
var codegen_1 = require_codegen();
|
|
4877
4883
|
var error48 = {
|
|
4878
4884
|
message({ keyword, schemaCode }) {
|
|
@@ -4893,26 +4899,26 @@ var require_limitItems = __commonJS({
|
|
|
4893
4899
|
cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
|
|
4894
4900
|
}
|
|
4895
4901
|
};
|
|
4896
|
-
|
|
4902
|
+
exports.default = def;
|
|
4897
4903
|
}
|
|
4898
4904
|
});
|
|
4899
4905
|
|
|
4900
4906
|
// ../node_modules/ajv/dist/runtime/equal.js
|
|
4901
4907
|
var require_equal = __commonJS({
|
|
4902
|
-
"../node_modules/ajv/dist/runtime/equal.js"(
|
|
4908
|
+
"../node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
4903
4909
|
"use strict";
|
|
4904
|
-
Object.defineProperty(
|
|
4910
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4905
4911
|
var equal = require_fast_deep_equal();
|
|
4906
4912
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
4907
|
-
|
|
4913
|
+
exports.default = equal;
|
|
4908
4914
|
}
|
|
4909
4915
|
});
|
|
4910
4916
|
|
|
4911
4917
|
// ../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4912
4918
|
var require_uniqueItems = __commonJS({
|
|
4913
|
-
"../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(
|
|
4919
|
+
"../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
4914
4920
|
"use strict";
|
|
4915
|
-
Object.defineProperty(
|
|
4921
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4916
4922
|
var dataType_1 = require_dataType();
|
|
4917
4923
|
var codegen_1 = require_codegen();
|
|
4918
4924
|
var util_1 = require_util();
|
|
@@ -4971,15 +4977,15 @@ var require_uniqueItems = __commonJS({
|
|
|
4971
4977
|
}
|
|
4972
4978
|
}
|
|
4973
4979
|
};
|
|
4974
|
-
|
|
4980
|
+
exports.default = def;
|
|
4975
4981
|
}
|
|
4976
4982
|
});
|
|
4977
4983
|
|
|
4978
4984
|
// ../node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4979
4985
|
var require_const = __commonJS({
|
|
4980
|
-
"../node_modules/ajv/dist/vocabularies/validation/const.js"(
|
|
4986
|
+
"../node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
4981
4987
|
"use strict";
|
|
4982
|
-
Object.defineProperty(
|
|
4988
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4983
4989
|
var codegen_1 = require_codegen();
|
|
4984
4990
|
var util_1 = require_util();
|
|
4985
4991
|
var equal_1 = require_equal();
|
|
@@ -5000,15 +5006,15 @@ var require_const = __commonJS({
|
|
|
5000
5006
|
}
|
|
5001
5007
|
}
|
|
5002
5008
|
};
|
|
5003
|
-
|
|
5009
|
+
exports.default = def;
|
|
5004
5010
|
}
|
|
5005
5011
|
});
|
|
5006
5012
|
|
|
5007
5013
|
// ../node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5008
5014
|
var require_enum = __commonJS({
|
|
5009
|
-
"../node_modules/ajv/dist/vocabularies/validation/enum.js"(
|
|
5015
|
+
"../node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5010
5016
|
"use strict";
|
|
5011
|
-
Object.defineProperty(
|
|
5017
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5012
5018
|
var codegen_1 = require_codegen();
|
|
5013
5019
|
var util_1 = require_util();
|
|
5014
5020
|
var equal_1 = require_equal();
|
|
@@ -5049,15 +5055,15 @@ var require_enum = __commonJS({
|
|
|
5049
5055
|
}
|
|
5050
5056
|
}
|
|
5051
5057
|
};
|
|
5052
|
-
|
|
5058
|
+
exports.default = def;
|
|
5053
5059
|
}
|
|
5054
5060
|
});
|
|
5055
5061
|
|
|
5056
5062
|
// ../node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5057
5063
|
var require_validation = __commonJS({
|
|
5058
|
-
"../node_modules/ajv/dist/vocabularies/validation/index.js"(
|
|
5064
|
+
"../node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5059
5065
|
"use strict";
|
|
5060
|
-
Object.defineProperty(
|
|
5066
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5061
5067
|
var limitNumber_1 = require_limitNumber();
|
|
5062
5068
|
var multipleOf_1 = require_multipleOf();
|
|
5063
5069
|
var limitLength_1 = require_limitLength();
|
|
@@ -5087,16 +5093,16 @@ var require_validation = __commonJS({
|
|
|
5087
5093
|
const_1.default,
|
|
5088
5094
|
enum_1.default
|
|
5089
5095
|
];
|
|
5090
|
-
|
|
5096
|
+
exports.default = validation;
|
|
5091
5097
|
}
|
|
5092
5098
|
});
|
|
5093
5099
|
|
|
5094
5100
|
// ../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5095
5101
|
var require_additionalItems = __commonJS({
|
|
5096
|
-
"../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(
|
|
5102
|
+
"../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5097
5103
|
"use strict";
|
|
5098
|
-
Object.defineProperty(
|
|
5099
|
-
|
|
5104
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5105
|
+
exports.validateAdditionalItems = void 0;
|
|
5100
5106
|
var codegen_1 = require_codegen();
|
|
5101
5107
|
var util_1 = require_util();
|
|
5102
5108
|
var error48 = {
|
|
@@ -5139,17 +5145,17 @@ var require_additionalItems = __commonJS({
|
|
|
5139
5145
|
});
|
|
5140
5146
|
}
|
|
5141
5147
|
}
|
|
5142
|
-
|
|
5143
|
-
|
|
5148
|
+
exports.validateAdditionalItems = validateAdditionalItems;
|
|
5149
|
+
exports.default = def;
|
|
5144
5150
|
}
|
|
5145
5151
|
});
|
|
5146
5152
|
|
|
5147
5153
|
// ../node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5148
5154
|
var require_items = __commonJS({
|
|
5149
|
-
"../node_modules/ajv/dist/vocabularies/applicator/items.js"(
|
|
5155
|
+
"../node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5150
5156
|
"use strict";
|
|
5151
|
-
Object.defineProperty(
|
|
5152
|
-
|
|
5157
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5158
|
+
exports.validateTuple = void 0;
|
|
5153
5159
|
var codegen_1 = require_codegen();
|
|
5154
5160
|
var util_1 = require_util();
|
|
5155
5161
|
var code_1 = require_code2();
|
|
@@ -5196,16 +5202,16 @@ var require_items = __commonJS({
|
|
|
5196
5202
|
}
|
|
5197
5203
|
}
|
|
5198
5204
|
}
|
|
5199
|
-
|
|
5200
|
-
|
|
5205
|
+
exports.validateTuple = validateTuple;
|
|
5206
|
+
exports.default = def;
|
|
5201
5207
|
}
|
|
5202
5208
|
});
|
|
5203
5209
|
|
|
5204
5210
|
// ../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5205
5211
|
var require_prefixItems = __commonJS({
|
|
5206
|
-
"../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(
|
|
5212
|
+
"../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5207
5213
|
"use strict";
|
|
5208
|
-
Object.defineProperty(
|
|
5214
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5209
5215
|
var items_1 = require_items();
|
|
5210
5216
|
var def = {
|
|
5211
5217
|
keyword: "prefixItems",
|
|
@@ -5214,15 +5220,15 @@ var require_prefixItems = __commonJS({
|
|
|
5214
5220
|
before: "uniqueItems",
|
|
5215
5221
|
code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
|
|
5216
5222
|
};
|
|
5217
|
-
|
|
5223
|
+
exports.default = def;
|
|
5218
5224
|
}
|
|
5219
5225
|
});
|
|
5220
5226
|
|
|
5221
5227
|
// ../node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5222
5228
|
var require_items2020 = __commonJS({
|
|
5223
|
-
"../node_modules/ajv/dist/vocabularies/applicator/items2020.js"(
|
|
5229
|
+
"../node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5224
5230
|
"use strict";
|
|
5225
|
-
Object.defineProperty(
|
|
5231
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5226
5232
|
var codegen_1 = require_codegen();
|
|
5227
5233
|
var util_1 = require_util();
|
|
5228
5234
|
var code_1 = require_code2();
|
|
@@ -5249,15 +5255,15 @@ var require_items2020 = __commonJS({
|
|
|
5249
5255
|
cxt.ok((0, code_1.validateArray)(cxt));
|
|
5250
5256
|
}
|
|
5251
5257
|
};
|
|
5252
|
-
|
|
5258
|
+
exports.default = def;
|
|
5253
5259
|
}
|
|
5254
5260
|
});
|
|
5255
5261
|
|
|
5256
5262
|
// ../node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5257
5263
|
var require_contains = __commonJS({
|
|
5258
|
-
"../node_modules/ajv/dist/vocabularies/applicator/contains.js"(
|
|
5264
|
+
"../node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5259
5265
|
"use strict";
|
|
5260
|
-
Object.defineProperty(
|
|
5266
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5261
5267
|
var codegen_1 = require_codegen();
|
|
5262
5268
|
var util_1 = require_util();
|
|
5263
5269
|
var error48 = {
|
|
@@ -5343,20 +5349,20 @@ var require_contains = __commonJS({
|
|
|
5343
5349
|
}
|
|
5344
5350
|
}
|
|
5345
5351
|
};
|
|
5346
|
-
|
|
5352
|
+
exports.default = def;
|
|
5347
5353
|
}
|
|
5348
5354
|
});
|
|
5349
5355
|
|
|
5350
5356
|
// ../node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5351
5357
|
var require_dependencies = __commonJS({
|
|
5352
|
-
"../node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(
|
|
5358
|
+
"../node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5353
5359
|
"use strict";
|
|
5354
|
-
Object.defineProperty(
|
|
5355
|
-
|
|
5360
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5361
|
+
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
5356
5362
|
var codegen_1 = require_codegen();
|
|
5357
5363
|
var util_1 = require_util();
|
|
5358
5364
|
var code_1 = require_code2();
|
|
5359
|
-
|
|
5365
|
+
exports.error = {
|
|
5360
5366
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
5361
5367
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
5362
5368
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
@@ -5371,7 +5377,7 @@ var require_dependencies = __commonJS({
|
|
|
5371
5377
|
keyword: "dependencies",
|
|
5372
5378
|
type: "object",
|
|
5373
5379
|
schemaType: "object",
|
|
5374
|
-
error:
|
|
5380
|
+
error: exports.error,
|
|
5375
5381
|
code(cxt) {
|
|
5376
5382
|
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
5377
5383
|
validatePropertyDeps(cxt, propDeps);
|
|
@@ -5417,7 +5423,7 @@ var require_dependencies = __commonJS({
|
|
|
5417
5423
|
}
|
|
5418
5424
|
}
|
|
5419
5425
|
}
|
|
5420
|
-
|
|
5426
|
+
exports.validatePropertyDeps = validatePropertyDeps;
|
|
5421
5427
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
5422
5428
|
const { gen, data, keyword, it } = cxt;
|
|
5423
5429
|
const valid = gen.name("valid");
|
|
@@ -5436,16 +5442,16 @@ var require_dependencies = __commonJS({
|
|
|
5436
5442
|
cxt.ok(valid);
|
|
5437
5443
|
}
|
|
5438
5444
|
}
|
|
5439
|
-
|
|
5440
|
-
|
|
5445
|
+
exports.validateSchemaDeps = validateSchemaDeps;
|
|
5446
|
+
exports.default = def;
|
|
5441
5447
|
}
|
|
5442
5448
|
});
|
|
5443
5449
|
|
|
5444
5450
|
// ../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5445
5451
|
var require_propertyNames = __commonJS({
|
|
5446
|
-
"../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(
|
|
5452
|
+
"../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5447
5453
|
"use strict";
|
|
5448
|
-
Object.defineProperty(
|
|
5454
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5449
5455
|
var codegen_1 = require_codegen();
|
|
5450
5456
|
var util_1 = require_util();
|
|
5451
5457
|
var error48 = {
|
|
@@ -5480,15 +5486,15 @@ var require_propertyNames = __commonJS({
|
|
|
5480
5486
|
cxt.ok(valid);
|
|
5481
5487
|
}
|
|
5482
5488
|
};
|
|
5483
|
-
|
|
5489
|
+
exports.default = def;
|
|
5484
5490
|
}
|
|
5485
5491
|
});
|
|
5486
5492
|
|
|
5487
5493
|
// ../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5488
5494
|
var require_additionalProperties = __commonJS({
|
|
5489
|
-
"../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(
|
|
5495
|
+
"../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5490
5496
|
"use strict";
|
|
5491
|
-
Object.defineProperty(
|
|
5497
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5492
5498
|
var code_1 = require_code2();
|
|
5493
5499
|
var codegen_1 = require_codegen();
|
|
5494
5500
|
var names_1 = require_names();
|
|
@@ -5586,15 +5592,15 @@ var require_additionalProperties = __commonJS({
|
|
|
5586
5592
|
}
|
|
5587
5593
|
}
|
|
5588
5594
|
};
|
|
5589
|
-
|
|
5595
|
+
exports.default = def;
|
|
5590
5596
|
}
|
|
5591
5597
|
});
|
|
5592
5598
|
|
|
5593
5599
|
// ../node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5594
5600
|
var require_properties = __commonJS({
|
|
5595
|
-
"../node_modules/ajv/dist/vocabularies/applicator/properties.js"(
|
|
5601
|
+
"../node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5596
5602
|
"use strict";
|
|
5597
|
-
Object.defineProperty(
|
|
5603
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5598
5604
|
var validate_1 = require_validate();
|
|
5599
5605
|
var code_1 = require_code2();
|
|
5600
5606
|
var util_1 = require_util();
|
|
@@ -5644,15 +5650,15 @@ var require_properties = __commonJS({
|
|
|
5644
5650
|
}
|
|
5645
5651
|
}
|
|
5646
5652
|
};
|
|
5647
|
-
|
|
5653
|
+
exports.default = def;
|
|
5648
5654
|
}
|
|
5649
5655
|
});
|
|
5650
5656
|
|
|
5651
5657
|
// ../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5652
5658
|
var require_patternProperties = __commonJS({
|
|
5653
|
-
"../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(
|
|
5659
|
+
"../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
5654
5660
|
"use strict";
|
|
5655
|
-
Object.defineProperty(
|
|
5661
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5656
5662
|
var code_1 = require_code2();
|
|
5657
5663
|
var codegen_1 = require_codegen();
|
|
5658
5664
|
var util_1 = require_util();
|
|
@@ -5718,15 +5724,15 @@ var require_patternProperties = __commonJS({
|
|
|
5718
5724
|
}
|
|
5719
5725
|
}
|
|
5720
5726
|
};
|
|
5721
|
-
|
|
5727
|
+
exports.default = def;
|
|
5722
5728
|
}
|
|
5723
5729
|
});
|
|
5724
5730
|
|
|
5725
5731
|
// ../node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5726
5732
|
var require_not = __commonJS({
|
|
5727
|
-
"../node_modules/ajv/dist/vocabularies/applicator/not.js"(
|
|
5733
|
+
"../node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
5728
5734
|
"use strict";
|
|
5729
|
-
Object.defineProperty(
|
|
5735
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5730
5736
|
var util_1 = require_util();
|
|
5731
5737
|
var def = {
|
|
5732
5738
|
keyword: "not",
|
|
@@ -5749,15 +5755,15 @@ var require_not = __commonJS({
|
|
|
5749
5755
|
},
|
|
5750
5756
|
error: { message: "must NOT be valid" }
|
|
5751
5757
|
};
|
|
5752
|
-
|
|
5758
|
+
exports.default = def;
|
|
5753
5759
|
}
|
|
5754
5760
|
});
|
|
5755
5761
|
|
|
5756
5762
|
// ../node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5757
5763
|
var require_anyOf = __commonJS({
|
|
5758
|
-
"../node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(
|
|
5764
|
+
"../node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
5759
5765
|
"use strict";
|
|
5760
|
-
Object.defineProperty(
|
|
5766
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5761
5767
|
var code_1 = require_code2();
|
|
5762
5768
|
var def = {
|
|
5763
5769
|
keyword: "anyOf",
|
|
@@ -5766,15 +5772,15 @@ var require_anyOf = __commonJS({
|
|
|
5766
5772
|
code: code_1.validateUnion,
|
|
5767
5773
|
error: { message: "must match a schema in anyOf" }
|
|
5768
5774
|
};
|
|
5769
|
-
|
|
5775
|
+
exports.default = def;
|
|
5770
5776
|
}
|
|
5771
5777
|
});
|
|
5772
5778
|
|
|
5773
5779
|
// ../node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5774
5780
|
var require_oneOf = __commonJS({
|
|
5775
|
-
"../node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(
|
|
5781
|
+
"../node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
5776
5782
|
"use strict";
|
|
5777
|
-
Object.defineProperty(
|
|
5783
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5778
5784
|
var codegen_1 = require_codegen();
|
|
5779
5785
|
var util_1 = require_util();
|
|
5780
5786
|
var error48 = {
|
|
@@ -5824,15 +5830,15 @@ var require_oneOf = __commonJS({
|
|
|
5824
5830
|
}
|
|
5825
5831
|
}
|
|
5826
5832
|
};
|
|
5827
|
-
|
|
5833
|
+
exports.default = def;
|
|
5828
5834
|
}
|
|
5829
5835
|
});
|
|
5830
5836
|
|
|
5831
5837
|
// ../node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5832
5838
|
var require_allOf = __commonJS({
|
|
5833
|
-
"../node_modules/ajv/dist/vocabularies/applicator/allOf.js"(
|
|
5839
|
+
"../node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
5834
5840
|
"use strict";
|
|
5835
|
-
Object.defineProperty(
|
|
5841
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5836
5842
|
var util_1 = require_util();
|
|
5837
5843
|
var def = {
|
|
5838
5844
|
keyword: "allOf",
|
|
@@ -5851,15 +5857,15 @@ var require_allOf = __commonJS({
|
|
|
5851
5857
|
});
|
|
5852
5858
|
}
|
|
5853
5859
|
};
|
|
5854
|
-
|
|
5860
|
+
exports.default = def;
|
|
5855
5861
|
}
|
|
5856
5862
|
});
|
|
5857
5863
|
|
|
5858
5864
|
// ../node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5859
5865
|
var require_if = __commonJS({
|
|
5860
|
-
"../node_modules/ajv/dist/vocabularies/applicator/if.js"(
|
|
5866
|
+
"../node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
5861
5867
|
"use strict";
|
|
5862
|
-
Object.defineProperty(
|
|
5868
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5863
5869
|
var codegen_1 = require_codegen();
|
|
5864
5870
|
var util_1 = require_util();
|
|
5865
5871
|
var error48 = {
|
|
@@ -5920,15 +5926,15 @@ var require_if = __commonJS({
|
|
|
5920
5926
|
const schema = it.schema[keyword];
|
|
5921
5927
|
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
5922
5928
|
}
|
|
5923
|
-
|
|
5929
|
+
exports.default = def;
|
|
5924
5930
|
}
|
|
5925
5931
|
});
|
|
5926
5932
|
|
|
5927
5933
|
// ../node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5928
5934
|
var require_thenElse = __commonJS({
|
|
5929
|
-
"../node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(
|
|
5935
|
+
"../node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
5930
5936
|
"use strict";
|
|
5931
|
-
Object.defineProperty(
|
|
5937
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5932
5938
|
var util_1 = require_util();
|
|
5933
5939
|
var def = {
|
|
5934
5940
|
keyword: ["then", "else"],
|
|
@@ -5938,15 +5944,15 @@ var require_thenElse = __commonJS({
|
|
|
5938
5944
|
(0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
|
|
5939
5945
|
}
|
|
5940
5946
|
};
|
|
5941
|
-
|
|
5947
|
+
exports.default = def;
|
|
5942
5948
|
}
|
|
5943
5949
|
});
|
|
5944
5950
|
|
|
5945
5951
|
// ../node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5946
5952
|
var require_applicator = __commonJS({
|
|
5947
|
-
"../node_modules/ajv/dist/vocabularies/applicator/index.js"(
|
|
5953
|
+
"../node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
5948
5954
|
"use strict";
|
|
5949
|
-
Object.defineProperty(
|
|
5955
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5950
5956
|
var additionalItems_1 = require_additionalItems();
|
|
5951
5957
|
var prefixItems_1 = require_prefixItems();
|
|
5952
5958
|
var items_1 = require_items();
|
|
@@ -5986,15 +5992,15 @@ var require_applicator = __commonJS({
|
|
|
5986
5992
|
applicator.push(contains_1.default);
|
|
5987
5993
|
return applicator;
|
|
5988
5994
|
}
|
|
5989
|
-
|
|
5995
|
+
exports.default = getApplicator;
|
|
5990
5996
|
}
|
|
5991
5997
|
});
|
|
5992
5998
|
|
|
5993
5999
|
// ../node_modules/ajv/dist/vocabularies/format/format.js
|
|
5994
6000
|
var require_format = __commonJS({
|
|
5995
|
-
"../node_modules/ajv/dist/vocabularies/format/format.js"(
|
|
6001
|
+
"../node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
5996
6002
|
"use strict";
|
|
5997
|
-
Object.defineProperty(
|
|
6003
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5998
6004
|
var codegen_1 = require_codegen();
|
|
5999
6005
|
var error48 = {
|
|
6000
6006
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
@@ -6076,28 +6082,28 @@ var require_format = __commonJS({
|
|
|
6076
6082
|
}
|
|
6077
6083
|
}
|
|
6078
6084
|
};
|
|
6079
|
-
|
|
6085
|
+
exports.default = def;
|
|
6080
6086
|
}
|
|
6081
6087
|
});
|
|
6082
6088
|
|
|
6083
6089
|
// ../node_modules/ajv/dist/vocabularies/format/index.js
|
|
6084
6090
|
var require_format2 = __commonJS({
|
|
6085
|
-
"../node_modules/ajv/dist/vocabularies/format/index.js"(
|
|
6091
|
+
"../node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6086
6092
|
"use strict";
|
|
6087
|
-
Object.defineProperty(
|
|
6093
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6088
6094
|
var format_1 = require_format();
|
|
6089
6095
|
var format = [format_1.default];
|
|
6090
|
-
|
|
6096
|
+
exports.default = format;
|
|
6091
6097
|
}
|
|
6092
6098
|
});
|
|
6093
6099
|
|
|
6094
6100
|
// ../node_modules/ajv/dist/vocabularies/metadata.js
|
|
6095
6101
|
var require_metadata = __commonJS({
|
|
6096
|
-
"../node_modules/ajv/dist/vocabularies/metadata.js"(
|
|
6102
|
+
"../node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6097
6103
|
"use strict";
|
|
6098
|
-
Object.defineProperty(
|
|
6099
|
-
|
|
6100
|
-
|
|
6104
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6105
|
+
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
6106
|
+
exports.metadataVocabulary = [
|
|
6101
6107
|
"title",
|
|
6102
6108
|
"description",
|
|
6103
6109
|
"default",
|
|
@@ -6106,7 +6112,7 @@ var require_metadata = __commonJS({
|
|
|
6106
6112
|
"writeOnly",
|
|
6107
6113
|
"examples"
|
|
6108
6114
|
];
|
|
6109
|
-
|
|
6115
|
+
exports.contentVocabulary = [
|
|
6110
6116
|
"contentMediaType",
|
|
6111
6117
|
"contentEncoding",
|
|
6112
6118
|
"contentSchema"
|
|
@@ -6116,9 +6122,9 @@ var require_metadata = __commonJS({
|
|
|
6116
6122
|
|
|
6117
6123
|
// ../node_modules/ajv/dist/vocabularies/draft7.js
|
|
6118
6124
|
var require_draft7 = __commonJS({
|
|
6119
|
-
"../node_modules/ajv/dist/vocabularies/draft7.js"(
|
|
6125
|
+
"../node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6120
6126
|
"use strict";
|
|
6121
|
-
Object.defineProperty(
|
|
6127
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6122
6128
|
var core_1 = require_core2();
|
|
6123
6129
|
var validation_1 = require_validation();
|
|
6124
6130
|
var applicator_1 = require_applicator();
|
|
@@ -6132,29 +6138,29 @@ var require_draft7 = __commonJS({
|
|
|
6132
6138
|
metadata_1.metadataVocabulary,
|
|
6133
6139
|
metadata_1.contentVocabulary
|
|
6134
6140
|
];
|
|
6135
|
-
|
|
6141
|
+
exports.default = draft7Vocabularies;
|
|
6136
6142
|
}
|
|
6137
6143
|
});
|
|
6138
6144
|
|
|
6139
6145
|
// ../node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6140
6146
|
var require_types = __commonJS({
|
|
6141
|
-
"../node_modules/ajv/dist/vocabularies/discriminator/types.js"(
|
|
6147
|
+
"../node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6142
6148
|
"use strict";
|
|
6143
|
-
Object.defineProperty(
|
|
6144
|
-
|
|
6149
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6150
|
+
exports.DiscrError = void 0;
|
|
6145
6151
|
var DiscrError;
|
|
6146
6152
|
(function(DiscrError2) {
|
|
6147
6153
|
DiscrError2["Tag"] = "tag";
|
|
6148
6154
|
DiscrError2["Mapping"] = "mapping";
|
|
6149
|
-
})(DiscrError || (
|
|
6155
|
+
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
6150
6156
|
}
|
|
6151
6157
|
});
|
|
6152
6158
|
|
|
6153
6159
|
// ../node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6154
6160
|
var require_discriminator = __commonJS({
|
|
6155
|
-
"../node_modules/ajv/dist/vocabularies/discriminator/index.js"(
|
|
6161
|
+
"../node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6156
6162
|
"use strict";
|
|
6157
|
-
Object.defineProperty(
|
|
6163
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6158
6164
|
var codegen_1 = require_codegen();
|
|
6159
6165
|
var types_1 = require_types();
|
|
6160
6166
|
var compile_1 = require_compile();
|
|
@@ -6251,14 +6257,14 @@ var require_discriminator = __commonJS({
|
|
|
6251
6257
|
}
|
|
6252
6258
|
}
|
|
6253
6259
|
};
|
|
6254
|
-
|
|
6260
|
+
exports.default = def;
|
|
6255
6261
|
}
|
|
6256
6262
|
});
|
|
6257
6263
|
|
|
6258
6264
|
// ../node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6259
6265
|
var require_json_schema_draft_07 = __commonJS({
|
|
6260
|
-
"../node_modules/ajv/dist/refs/json-schema-draft-07.json"(
|
|
6261
|
-
|
|
6266
|
+
"../node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6267
|
+
module.exports = {
|
|
6262
6268
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6263
6269
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
6264
6270
|
title: "Core schema meta-schema",
|
|
@@ -6414,10 +6420,10 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6414
6420
|
|
|
6415
6421
|
// ../node_modules/ajv/dist/ajv.js
|
|
6416
6422
|
var require_ajv = __commonJS({
|
|
6417
|
-
"../node_modules/ajv/dist/ajv.js"(
|
|
6423
|
+
"../node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6418
6424
|
"use strict";
|
|
6419
|
-
Object.defineProperty(
|
|
6420
|
-
|
|
6425
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6426
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
6421
6427
|
var core_1 = require_core();
|
|
6422
6428
|
var draft7_1 = require_draft7();
|
|
6423
6429
|
var discriminator_1 = require_discriminator();
|
|
@@ -6443,40 +6449,40 @@ var require_ajv = __commonJS({
|
|
|
6443
6449
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
6444
6450
|
}
|
|
6445
6451
|
};
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
Object.defineProperty(
|
|
6450
|
-
|
|
6452
|
+
exports.Ajv = Ajv2;
|
|
6453
|
+
module.exports = exports = Ajv2;
|
|
6454
|
+
module.exports.Ajv = Ajv2;
|
|
6455
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6456
|
+
exports.default = Ajv2;
|
|
6451
6457
|
var validate_1 = require_validate();
|
|
6452
|
-
Object.defineProperty(
|
|
6458
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
6453
6459
|
return validate_1.KeywordCxt;
|
|
6454
6460
|
} });
|
|
6455
6461
|
var codegen_1 = require_codegen();
|
|
6456
|
-
Object.defineProperty(
|
|
6462
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
6457
6463
|
return codegen_1._;
|
|
6458
6464
|
} });
|
|
6459
|
-
Object.defineProperty(
|
|
6465
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
6460
6466
|
return codegen_1.str;
|
|
6461
6467
|
} });
|
|
6462
|
-
Object.defineProperty(
|
|
6468
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
6463
6469
|
return codegen_1.stringify;
|
|
6464
6470
|
} });
|
|
6465
|
-
Object.defineProperty(
|
|
6471
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
6466
6472
|
return codegen_1.nil;
|
|
6467
6473
|
} });
|
|
6468
|
-
Object.defineProperty(
|
|
6474
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
6469
6475
|
return codegen_1.Name;
|
|
6470
6476
|
} });
|
|
6471
|
-
Object.defineProperty(
|
|
6477
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
|
|
6472
6478
|
return codegen_1.CodeGen;
|
|
6473
6479
|
} });
|
|
6474
6480
|
var validation_error_1 = require_validation_error();
|
|
6475
|
-
Object.defineProperty(
|
|
6481
|
+
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
|
|
6476
6482
|
return validation_error_1.default;
|
|
6477
6483
|
} });
|
|
6478
6484
|
var ref_error_1 = require_ref_error();
|
|
6479
|
-
Object.defineProperty(
|
|
6485
|
+
Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
|
|
6480
6486
|
return ref_error_1.default;
|
|
6481
6487
|
} });
|
|
6482
6488
|
}
|
|
@@ -6484,14 +6490,14 @@ var require_ajv = __commonJS({
|
|
|
6484
6490
|
|
|
6485
6491
|
// ../node_modules/ajv-formats/dist/formats.js
|
|
6486
6492
|
var require_formats = __commonJS({
|
|
6487
|
-
"../node_modules/ajv-formats/dist/formats.js"(
|
|
6493
|
+
"../node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
6488
6494
|
"use strict";
|
|
6489
|
-
Object.defineProperty(
|
|
6490
|
-
|
|
6495
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6496
|
+
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
6491
6497
|
function fmtDef(validate, compare) {
|
|
6492
6498
|
return { validate, compare };
|
|
6493
6499
|
}
|
|
6494
|
-
|
|
6500
|
+
exports.fullFormats = {
|
|
6495
6501
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
6496
6502
|
date: fmtDef(date5, compareDate),
|
|
6497
6503
|
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -6538,8 +6544,8 @@ var require_formats = __commonJS({
|
|
|
6538
6544
|
// unchecked string payload
|
|
6539
6545
|
binary: true
|
|
6540
6546
|
};
|
|
6541
|
-
|
|
6542
|
-
...
|
|
6547
|
+
exports.fastFormats = {
|
|
6548
|
+
...exports.fullFormats,
|
|
6543
6549
|
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
6544
6550
|
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
6545
6551
|
"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),
|
|
@@ -6553,7 +6559,7 @@ var require_formats = __commonJS({
|
|
|
6553
6559
|
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
6554
6560
|
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
|
|
6555
6561
|
};
|
|
6556
|
-
|
|
6562
|
+
exports.formatNames = Object.keys(exports.fullFormats);
|
|
6557
6563
|
function isLeapYear(year) {
|
|
6558
6564
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
6559
6565
|
}
|
|
@@ -6687,10 +6693,10 @@ var require_formats = __commonJS({
|
|
|
6687
6693
|
|
|
6688
6694
|
// ../node_modules/ajv-formats/dist/limit.js
|
|
6689
6695
|
var require_limit = __commonJS({
|
|
6690
|
-
"../node_modules/ajv-formats/dist/limit.js"(
|
|
6696
|
+
"../node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
6691
6697
|
"use strict";
|
|
6692
|
-
Object.defineProperty(
|
|
6693
|
-
|
|
6698
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6699
|
+
exports.formatLimitDefinition = void 0;
|
|
6694
6700
|
var ajv_1 = require_ajv();
|
|
6695
6701
|
var codegen_1 = require_codegen();
|
|
6696
6702
|
var ops = codegen_1.operators;
|
|
@@ -6704,7 +6710,7 @@ var require_limit = __commonJS({
|
|
|
6704
6710
|
message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
6705
6711
|
params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
|
|
6706
6712
|
};
|
|
6707
|
-
|
|
6713
|
+
exports.formatLimitDefinition = {
|
|
6708
6714
|
keyword: Object.keys(KWDs),
|
|
6709
6715
|
type: "string",
|
|
6710
6716
|
schemaType: "string",
|
|
@@ -6750,18 +6756,18 @@ var require_limit = __commonJS({
|
|
|
6750
6756
|
dependencies: ["format"]
|
|
6751
6757
|
};
|
|
6752
6758
|
var formatLimitPlugin = (ajv) => {
|
|
6753
|
-
ajv.addKeyword(
|
|
6759
|
+
ajv.addKeyword(exports.formatLimitDefinition);
|
|
6754
6760
|
return ajv;
|
|
6755
6761
|
};
|
|
6756
|
-
|
|
6762
|
+
exports.default = formatLimitPlugin;
|
|
6757
6763
|
}
|
|
6758
6764
|
});
|
|
6759
6765
|
|
|
6760
6766
|
// ../node_modules/ajv-formats/dist/index.js
|
|
6761
6767
|
var require_dist = __commonJS({
|
|
6762
|
-
"../node_modules/ajv-formats/dist/index.js"(
|
|
6768
|
+
"../node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
6763
6769
|
"use strict";
|
|
6764
|
-
Object.defineProperty(
|
|
6770
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6765
6771
|
var formats_1 = require_formats();
|
|
6766
6772
|
var limit_1 = require_limit();
|
|
6767
6773
|
var codegen_1 = require_codegen();
|
|
@@ -6793,15 +6799,15 @@ var require_dist = __commonJS({
|
|
|
6793
6799
|
for (const f of list)
|
|
6794
6800
|
ajv.addFormat(f, fs[f]);
|
|
6795
6801
|
}
|
|
6796
|
-
|
|
6797
|
-
Object.defineProperty(
|
|
6798
|
-
|
|
6802
|
+
module.exports = exports = formatsPlugin;
|
|
6803
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6804
|
+
exports.default = formatsPlugin;
|
|
6799
6805
|
}
|
|
6800
6806
|
});
|
|
6801
6807
|
|
|
6802
6808
|
// ../node_modules/punycode/punycode.js
|
|
6803
6809
|
var require_punycode = __commonJS({
|
|
6804
|
-
"../node_modules/punycode/punycode.js"(
|
|
6810
|
+
"../node_modules/punycode/punycode.js"(exports, module) {
|
|
6805
6811
|
"use strict";
|
|
6806
6812
|
var maxInt = 2147483647;
|
|
6807
6813
|
var base = 36;
|
|
@@ -7034,15 +7040,15 @@ var require_punycode = __commonJS({
|
|
|
7034
7040
|
"toASCII": toASCII,
|
|
7035
7041
|
"toUnicode": toUnicode
|
|
7036
7042
|
};
|
|
7037
|
-
|
|
7043
|
+
module.exports = punycode;
|
|
7038
7044
|
}
|
|
7039
7045
|
});
|
|
7040
7046
|
|
|
7041
7047
|
// ../node_modules/requires-port/index.js
|
|
7042
7048
|
var require_requires_port = __commonJS({
|
|
7043
|
-
"../node_modules/requires-port/index.js"(
|
|
7049
|
+
"../node_modules/requires-port/index.js"(exports, module) {
|
|
7044
7050
|
"use strict";
|
|
7045
|
-
|
|
7051
|
+
module.exports = function required2(port, protocol) {
|
|
7046
7052
|
protocol = protocol.split(":")[0];
|
|
7047
7053
|
port = +port;
|
|
7048
7054
|
if (!port) return false;
|
|
@@ -7067,7 +7073,7 @@ var require_requires_port = __commonJS({
|
|
|
7067
7073
|
|
|
7068
7074
|
// ../node_modules/querystringify/index.js
|
|
7069
7075
|
var require_querystringify = __commonJS({
|
|
7070
|
-
"../node_modules/querystringify/index.js"(
|
|
7076
|
+
"../node_modules/querystringify/index.js"(exports) {
|
|
7071
7077
|
"use strict";
|
|
7072
7078
|
var has = Object.prototype.hasOwnProperty;
|
|
7073
7079
|
var undef;
|
|
@@ -7112,14 +7118,14 @@ var require_querystringify = __commonJS({
|
|
|
7112
7118
|
}
|
|
7113
7119
|
return pairs.length ? prefix + pairs.join("&") : "";
|
|
7114
7120
|
}
|
|
7115
|
-
|
|
7116
|
-
|
|
7121
|
+
exports.stringify = querystringify;
|
|
7122
|
+
exports.parse = querystring;
|
|
7117
7123
|
}
|
|
7118
7124
|
});
|
|
7119
7125
|
|
|
7120
7126
|
// ../node_modules/url-parse/index.js
|
|
7121
7127
|
var require_url_parse = __commonJS({
|
|
7122
|
-
"../node_modules/url-parse/index.js"(
|
|
7128
|
+
"../node_modules/url-parse/index.js"(exports, module) {
|
|
7123
7129
|
"use strict";
|
|
7124
7130
|
var required2 = require_requires_port();
|
|
7125
7131
|
var qs = require_querystringify();
|
|
@@ -7421,15 +7427,15 @@ var require_url_parse = __commonJS({
|
|
|
7421
7427
|
Url.location = lolcation;
|
|
7422
7428
|
Url.trimLeft = trimLeft;
|
|
7423
7429
|
Url.qs = qs;
|
|
7424
|
-
|
|
7430
|
+
module.exports = Url;
|
|
7425
7431
|
}
|
|
7426
7432
|
});
|
|
7427
7433
|
|
|
7428
7434
|
// ../node_modules/psl/dist/psl.cjs
|
|
7429
7435
|
var require_psl = __commonJS({
|
|
7430
|
-
"../node_modules/psl/dist/psl.cjs"(
|
|
7436
|
+
"../node_modules/psl/dist/psl.cjs"(exports) {
|
|
7431
7437
|
"use strict";
|
|
7432
|
-
Object.defineProperties(
|
|
7438
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
7433
7439
|
function K(e) {
|
|
7434
7440
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7435
7441
|
}
|
|
@@ -7584,17 +7590,17 @@ var require_psl = __commonJS({
|
|
|
7584
7590
|
return !!(s.domain && s.listed);
|
|
7585
7591
|
};
|
|
7586
7592
|
var sa = { parse: _, get: N, isValid: R };
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7593
|
+
exports.default = sa;
|
|
7594
|
+
exports.errorCodes = H;
|
|
7595
|
+
exports.get = N;
|
|
7596
|
+
exports.isValid = R;
|
|
7597
|
+
exports.parse = _;
|
|
7592
7598
|
}
|
|
7593
7599
|
});
|
|
7594
7600
|
|
|
7595
7601
|
// ../node_modules/tough-cookie/lib/pubsuffix-psl.js
|
|
7596
7602
|
var require_pubsuffix_psl = __commonJS({
|
|
7597
|
-
"../node_modules/tough-cookie/lib/pubsuffix-psl.js"(
|
|
7603
|
+
"../node_modules/tough-cookie/lib/pubsuffix-psl.js"(exports) {
|
|
7598
7604
|
"use strict";
|
|
7599
7605
|
var psl = require_psl();
|
|
7600
7606
|
var SPECIAL_USE_DOMAINS = [
|
|
@@ -7625,13 +7631,13 @@ var require_pubsuffix_psl = __commonJS({
|
|
|
7625
7631
|
}
|
|
7626
7632
|
return psl.get(domain2);
|
|
7627
7633
|
}
|
|
7628
|
-
|
|
7634
|
+
exports.getPublicSuffix = getPublicSuffix;
|
|
7629
7635
|
}
|
|
7630
7636
|
});
|
|
7631
7637
|
|
|
7632
7638
|
// ../node_modules/tough-cookie/lib/store.js
|
|
7633
7639
|
var require_store = __commonJS({
|
|
7634
|
-
"../node_modules/tough-cookie/lib/store.js"(
|
|
7640
|
+
"../node_modules/tough-cookie/lib/store.js"(exports) {
|
|
7635
7641
|
"use strict";
|
|
7636
7642
|
var Store = class {
|
|
7637
7643
|
constructor() {
|
|
@@ -7664,15 +7670,15 @@ var require_store = __commonJS({
|
|
|
7664
7670
|
);
|
|
7665
7671
|
}
|
|
7666
7672
|
};
|
|
7667
|
-
|
|
7673
|
+
exports.Store = Store;
|
|
7668
7674
|
}
|
|
7669
7675
|
});
|
|
7670
7676
|
|
|
7671
7677
|
// ../node_modules/universalify/index.js
|
|
7672
7678
|
var require_universalify = __commonJS({
|
|
7673
|
-
"../node_modules/universalify/index.js"(
|
|
7679
|
+
"../node_modules/universalify/index.js"(exports) {
|
|
7674
7680
|
"use strict";
|
|
7675
|
-
|
|
7681
|
+
exports.fromCallback = function(fn) {
|
|
7676
7682
|
return Object.defineProperty(function() {
|
|
7677
7683
|
if (typeof arguments[arguments.length - 1] === "function") fn.apply(this, arguments);
|
|
7678
7684
|
else {
|
|
@@ -7687,7 +7693,7 @@ var require_universalify = __commonJS({
|
|
|
7687
7693
|
}
|
|
7688
7694
|
}, "name", { value: fn.name });
|
|
7689
7695
|
};
|
|
7690
|
-
|
|
7696
|
+
exports.fromPromise = function(fn) {
|
|
7691
7697
|
return Object.defineProperty(function() {
|
|
7692
7698
|
const cb = arguments[arguments.length - 1];
|
|
7693
7699
|
if (typeof cb !== "function") return fn.apply(this, arguments);
|
|
@@ -7703,7 +7709,7 @@ var require_universalify = __commonJS({
|
|
|
7703
7709
|
|
|
7704
7710
|
// ../node_modules/tough-cookie/lib/permuteDomain.js
|
|
7705
7711
|
var require_permuteDomain = __commonJS({
|
|
7706
|
-
"../node_modules/tough-cookie/lib/permuteDomain.js"(
|
|
7712
|
+
"../node_modules/tough-cookie/lib/permuteDomain.js"(exports) {
|
|
7707
7713
|
"use strict";
|
|
7708
7714
|
var pubsuffix = require_pubsuffix_psl();
|
|
7709
7715
|
function permuteDomain(domain2, allowSpecialUseDomain) {
|
|
@@ -7729,13 +7735,13 @@ var require_permuteDomain = __commonJS({
|
|
|
7729
7735
|
}
|
|
7730
7736
|
return permutations;
|
|
7731
7737
|
}
|
|
7732
|
-
|
|
7738
|
+
exports.permuteDomain = permuteDomain;
|
|
7733
7739
|
}
|
|
7734
7740
|
});
|
|
7735
7741
|
|
|
7736
7742
|
// ../node_modules/tough-cookie/lib/pathMatch.js
|
|
7737
7743
|
var require_pathMatch = __commonJS({
|
|
7738
|
-
"../node_modules/tough-cookie/lib/pathMatch.js"(
|
|
7744
|
+
"../node_modules/tough-cookie/lib/pathMatch.js"(exports) {
|
|
7739
7745
|
"use strict";
|
|
7740
7746
|
function pathMatch(reqPath, cookiePath) {
|
|
7741
7747
|
if (cookiePath === reqPath) {
|
|
@@ -7752,16 +7758,16 @@ var require_pathMatch = __commonJS({
|
|
|
7752
7758
|
}
|
|
7753
7759
|
return false;
|
|
7754
7760
|
}
|
|
7755
|
-
|
|
7761
|
+
exports.pathMatch = pathMatch;
|
|
7756
7762
|
}
|
|
7757
7763
|
});
|
|
7758
7764
|
|
|
7759
7765
|
// ../node_modules/tough-cookie/lib/utilHelper.js
|
|
7760
7766
|
var require_utilHelper = __commonJS({
|
|
7761
|
-
"../node_modules/tough-cookie/lib/utilHelper.js"(
|
|
7767
|
+
"../node_modules/tough-cookie/lib/utilHelper.js"(exports) {
|
|
7762
7768
|
function requireUtil() {
|
|
7763
7769
|
try {
|
|
7764
|
-
return
|
|
7770
|
+
return __require("util");
|
|
7765
7771
|
} catch (e) {
|
|
7766
7772
|
return null;
|
|
7767
7773
|
}
|
|
@@ -7774,14 +7780,14 @@ var require_utilHelper = __commonJS({
|
|
|
7774
7780
|
const util3 = _requireUtil();
|
|
7775
7781
|
return util3 ? util3.inspect.custom : null;
|
|
7776
7782
|
}
|
|
7777
|
-
|
|
7783
|
+
exports.getUtilInspect = function getUtilInspect(fallback, options3 = {}) {
|
|
7778
7784
|
const _requireUtil = options3.requireUtil || requireUtil;
|
|
7779
7785
|
const util3 = _requireUtil();
|
|
7780
7786
|
return function inspect(value, showHidden, depth) {
|
|
7781
7787
|
return util3 ? util3.inspect(value, showHidden, depth) : fallback(value);
|
|
7782
7788
|
};
|
|
7783
7789
|
};
|
|
7784
|
-
|
|
7790
|
+
exports.getCustomInspectSymbol = function getCustomInspectSymbol(options3 = {}) {
|
|
7785
7791
|
const _lookupCustomInspectSymbol = options3.lookupCustomInspectSymbol || lookupCustomInspectSymbol;
|
|
7786
7792
|
return _lookupCustomInspectSymbol() || tryReadingCustomSymbolFromUtilInspect(options3);
|
|
7787
7793
|
};
|
|
@@ -7790,7 +7796,7 @@ var require_utilHelper = __commonJS({
|
|
|
7790
7796
|
|
|
7791
7797
|
// ../node_modules/tough-cookie/lib/memstore.js
|
|
7792
7798
|
var require_memstore = __commonJS({
|
|
7793
|
-
"../node_modules/tough-cookie/lib/memstore.js"(
|
|
7799
|
+
"../node_modules/tough-cookie/lib/memstore.js"(exports) {
|
|
7794
7800
|
"use strict";
|
|
7795
7801
|
var { fromCallback } = require_universalify();
|
|
7796
7802
|
var Store = require_store().Store;
|
|
@@ -7930,7 +7936,7 @@ var require_memstore = __commonJS({
|
|
|
7930
7936
|
MemoryCookieStore.prototype[name]
|
|
7931
7937
|
);
|
|
7932
7938
|
});
|
|
7933
|
-
|
|
7939
|
+
exports.MemoryCookieStore = MemoryCookieStore;
|
|
7934
7940
|
function inspectFallback(val) {
|
|
7935
7941
|
const domains = Object.keys(val);
|
|
7936
7942
|
if (domains.length === 0) {
|
|
@@ -7976,13 +7982,13 @@ var require_memstore = __commonJS({
|
|
|
7976
7982
|
result += `${indent}}`;
|
|
7977
7983
|
return result;
|
|
7978
7984
|
}
|
|
7979
|
-
|
|
7985
|
+
exports.inspectFallback = inspectFallback;
|
|
7980
7986
|
}
|
|
7981
7987
|
});
|
|
7982
7988
|
|
|
7983
7989
|
// ../node_modules/tough-cookie/lib/validators.js
|
|
7984
7990
|
var require_validators = __commonJS({
|
|
7985
|
-
"../node_modules/tough-cookie/lib/validators.js"(
|
|
7991
|
+
"../node_modules/tough-cookie/lib/validators.js"(exports) {
|
|
7986
7992
|
"use strict";
|
|
7987
7993
|
var toString = Object.prototype.toString;
|
|
7988
7994
|
function isFunction(data) {
|
|
@@ -8035,28 +8041,28 @@ var require_validators = __commonJS({
|
|
|
8035
8041
|
super(...params);
|
|
8036
8042
|
}
|
|
8037
8043
|
};
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8044
|
+
exports.ParameterError = ParameterError;
|
|
8045
|
+
exports.isFunction = isFunction;
|
|
8046
|
+
exports.isNonEmptyString = isNonEmptyString;
|
|
8047
|
+
exports.isDate = isDate2;
|
|
8048
|
+
exports.isEmptyString = isEmptyString;
|
|
8049
|
+
exports.isString = isString;
|
|
8050
|
+
exports.isObject = isObject2;
|
|
8051
|
+
exports.isUrlStringOrObject = isUrlStringOrObject;
|
|
8052
|
+
exports.validate = validate;
|
|
8047
8053
|
}
|
|
8048
8054
|
});
|
|
8049
8055
|
|
|
8050
8056
|
// ../node_modules/tough-cookie/lib/version.js
|
|
8051
8057
|
var require_version = __commonJS({
|
|
8052
|
-
"../node_modules/tough-cookie/lib/version.js"(
|
|
8053
|
-
|
|
8058
|
+
"../node_modules/tough-cookie/lib/version.js"(exports, module) {
|
|
8059
|
+
module.exports = "4.1.4";
|
|
8054
8060
|
}
|
|
8055
8061
|
});
|
|
8056
8062
|
|
|
8057
8063
|
// ../node_modules/tough-cookie/lib/cookie.js
|
|
8058
8064
|
var require_cookie = __commonJS({
|
|
8059
|
-
"../node_modules/tough-cookie/lib/cookie.js"(
|
|
8065
|
+
"../node_modules/tough-cookie/lib/cookie.js"(exports) {
|
|
8060
8066
|
"use strict";
|
|
8061
8067
|
var punycode = require_punycode();
|
|
8062
8068
|
var urlParse = require_url_parse();
|
|
@@ -9212,25 +9218,25 @@ var require_cookie = __commonJS({
|
|
|
9212
9218
|
return syncResult;
|
|
9213
9219
|
};
|
|
9214
9220
|
}
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9221
|
+
exports.version = VERSION;
|
|
9222
|
+
exports.CookieJar = CookieJar2;
|
|
9223
|
+
exports.Cookie = Cookie3;
|
|
9224
|
+
exports.Store = Store;
|
|
9225
|
+
exports.MemoryCookieStore = MemoryCookieStore;
|
|
9226
|
+
exports.parseDate = parseDate;
|
|
9227
|
+
exports.formatDate = formatDate;
|
|
9228
|
+
exports.parse = parse3;
|
|
9229
|
+
exports.fromJSON = fromJSON;
|
|
9230
|
+
exports.domainMatch = domainMatch;
|
|
9231
|
+
exports.defaultPath = defaultPath;
|
|
9232
|
+
exports.pathMatch = pathMatch;
|
|
9233
|
+
exports.getPublicSuffix = pubsuffix.getPublicSuffix;
|
|
9234
|
+
exports.cookieCompare = cookieCompare;
|
|
9235
|
+
exports.permuteDomain = require_permuteDomain().permuteDomain;
|
|
9236
|
+
exports.permutePath = permutePath;
|
|
9237
|
+
exports.canonicalDomain = canonicalDomain;
|
|
9238
|
+
exports.PrefixSecurityEnum = PrefixSecurityEnum;
|
|
9239
|
+
exports.ParameterError = validators.ParameterError;
|
|
9234
9240
|
}
|
|
9235
9241
|
});
|
|
9236
9242
|
|
|
@@ -32677,7 +32683,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
32677
32683
|
};
|
|
32678
32684
|
|
|
32679
32685
|
// ../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
32680
|
-
|
|
32686
|
+
import process3 from "node:process";
|
|
32681
32687
|
|
|
32682
32688
|
// ../node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
32683
32689
|
var ReadBuffer = class {
|
|
@@ -32709,7 +32715,7 @@ function serializeMessage(message) {
|
|
|
32709
32715
|
|
|
32710
32716
|
// ../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
32711
32717
|
var StdioServerTransport = class {
|
|
32712
|
-
constructor(_stdin =
|
|
32718
|
+
constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
|
|
32713
32719
|
this._stdin = _stdin;
|
|
32714
32720
|
this._stdout = _stdout;
|
|
32715
32721
|
this._readBuffer = new ReadBuffer();
|
|
@@ -46581,10 +46587,10 @@ var processQuery = function(queryOptions) {
|
|
|
46581
46587
|
} else if (!FundamentalsTimeSeries_Modules.includes(queryOptions.module || "")) {
|
|
46582
46588
|
throw new Error("yahooFinance.fundamentalsTimeSeries() option module invalid.");
|
|
46583
46589
|
}
|
|
46584
|
-
const keys = Object.entries(timeseries_default).reduce((previous, [
|
|
46590
|
+
const keys = Object.entries(timeseries_default).reduce((previous, [module, keys2]) => {
|
|
46585
46591
|
if (queryOptions.module == "all") {
|
|
46586
46592
|
return previous.concat(keys2);
|
|
46587
|
-
} else if (
|
|
46593
|
+
} else if (module == queryOptions.module) {
|
|
46588
46594
|
return previous.concat(keys2);
|
|
46589
46595
|
} else
|
|
46590
46596
|
return previous;
|
|
@@ -47394,10 +47400,10 @@ var index_common_default = {
|
|
|
47394
47400
|
};
|
|
47395
47401
|
|
|
47396
47402
|
// ../node_modules/yahoo-finance2/dist/esm/src/env-node.js
|
|
47397
|
-
|
|
47403
|
+
import { URLSearchParams } from "url";
|
|
47398
47404
|
var env_node_default = {
|
|
47399
47405
|
fetch,
|
|
47400
|
-
URLSearchParams
|
|
47406
|
+
URLSearchParams
|
|
47401
47407
|
};
|
|
47402
47408
|
|
|
47403
47409
|
// ../node_modules/yahoo-finance2/dist/esm/src/index-node.js
|
|
@@ -47488,9 +47494,9 @@ var financialDataKey = {
|
|
|
47488
47494
|
quarterly_cashflow: "cashflowStatements"
|
|
47489
47495
|
};
|
|
47490
47496
|
async function getFinancialStatement(ticker, financialType) {
|
|
47491
|
-
const
|
|
47492
|
-
const summary = await callQuoteSummary(ticker, [
|
|
47493
|
-
const moduleData = summary[
|
|
47497
|
+
const module = financialModuleMap[financialType];
|
|
47498
|
+
const summary = await callQuoteSummary(ticker, [module]);
|
|
47499
|
+
const moduleData = summary[module];
|
|
47494
47500
|
if (!moduleData || typeof moduleData !== "object") return [];
|
|
47495
47501
|
const statements = moduleData[financialDataKey[financialType]];
|
|
47496
47502
|
return Array.isArray(statements) ? statements : [];
|
|
@@ -47512,9 +47518,9 @@ var holderDataKey = {
|
|
|
47512
47518
|
insider_roster_holders: "holders"
|
|
47513
47519
|
};
|
|
47514
47520
|
async function getHolderInfo(ticker, holderType) {
|
|
47515
|
-
const
|
|
47516
|
-
const summary = await callQuoteSummary(ticker, [
|
|
47517
|
-
const moduleData = summary[
|
|
47521
|
+
const module = holderModuleMap[holderType];
|
|
47522
|
+
const summary = await callQuoteSummary(ticker, [module]);
|
|
47523
|
+
const moduleData = summary[module];
|
|
47518
47524
|
if (!moduleData) return null;
|
|
47519
47525
|
const dataKey = holderDataKey[holderType];
|
|
47520
47526
|
if (!dataKey) return moduleData;
|