@agentproto/adapter-pi 0.3.11 → 0.3.13

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.mjs CHANGED
@@ -61,17 +61,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
61
61
 
62
62
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
63
63
  var require_code = __commonJS({
64
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports$1) {
65
- Object.defineProperty(exports$1, "__esModule", { value: true });
66
- exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
64
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
65
+ Object.defineProperty(exports, "__esModule", { value: true });
66
+ 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;
67
67
  var _CodeOrName = class {
68
68
  };
69
- exports$1._CodeOrName = _CodeOrName;
70
- exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
69
+ exports._CodeOrName = _CodeOrName;
70
+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
71
71
  var Name = class extends _CodeOrName {
72
72
  constructor(s) {
73
73
  super();
74
- if (!exports$1.IDENTIFIER.test(s))
74
+ if (!exports.IDENTIFIER.test(s))
75
75
  throw new Error("CodeGen: name must be a valid identifier");
76
76
  this.str = s;
77
77
  }
@@ -85,7 +85,7 @@ var require_code = __commonJS({
85
85
  return { [this.str]: 1 };
86
86
  }
87
87
  };
88
- exports$1.Name = Name;
88
+ exports.Name = Name;
89
89
  var _Code = class extends _CodeOrName {
90
90
  constructor(code) {
91
91
  super();
@@ -113,8 +113,8 @@ var require_code = __commonJS({
113
113
  }, {});
114
114
  }
115
115
  };
116
- exports$1._Code = _Code;
117
- exports$1.nil = new _Code("");
116
+ exports._Code = _Code;
117
+ exports.nil = new _Code("");
118
118
  function _(strs, ...args) {
119
119
  const code = [strs[0]];
120
120
  let i = 0;
@@ -124,7 +124,7 @@ var require_code = __commonJS({
124
124
  }
125
125
  return new _Code(code);
126
126
  }
127
- exports$1._ = _;
127
+ exports._ = _;
128
128
  var plus = new _Code("+");
129
129
  function str(strs, ...args) {
130
130
  const expr = [safeStringify(strs[0])];
@@ -137,7 +137,7 @@ var require_code = __commonJS({
137
137
  optimize(expr);
138
138
  return new _Code(expr);
139
139
  }
140
- exports$1.str = str;
140
+ exports.str = str;
141
141
  function addCodeArg(code, arg) {
142
142
  if (arg instanceof _Code)
143
143
  code.push(...arg._items);
@@ -146,7 +146,7 @@ var require_code = __commonJS({
146
146
  else
147
147
  code.push(interpolate(arg));
148
148
  }
149
- exports$1.addCodeArg = addCodeArg;
149
+ exports.addCodeArg = addCodeArg;
150
150
  function optimize(expr) {
151
151
  let i = 1;
152
152
  while (i < expr.length - 1) {
@@ -182,41 +182,41 @@ var require_code = __commonJS({
182
182
  function strConcat(c1, c2) {
183
183
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
184
184
  }
185
- exports$1.strConcat = strConcat;
185
+ exports.strConcat = strConcat;
186
186
  function interpolate(x) {
187
187
  return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
188
188
  }
189
189
  function stringify(x) {
190
190
  return new _Code(safeStringify(x));
191
191
  }
192
- exports$1.stringify = stringify;
192
+ exports.stringify = stringify;
193
193
  function safeStringify(x) {
194
194
  return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
195
195
  }
196
- exports$1.safeStringify = safeStringify;
196
+ exports.safeStringify = safeStringify;
197
197
  function getProperty(key) {
198
- return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
198
+ return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
199
199
  }
200
- exports$1.getProperty = getProperty;
200
+ exports.getProperty = getProperty;
201
201
  function getEsmExportName(key) {
202
- if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
202
+ if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
203
203
  return new _Code(`${key}`);
204
204
  }
205
205
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
206
206
  }
207
- exports$1.getEsmExportName = getEsmExportName;
207
+ exports.getEsmExportName = getEsmExportName;
208
208
  function regexpCode(rx) {
209
209
  return new _Code(rx.toString());
210
210
  }
211
- exports$1.regexpCode = regexpCode;
211
+ exports.regexpCode = regexpCode;
212
212
  }
213
213
  });
214
214
 
215
215
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
216
216
  var require_scope = __commonJS({
217
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports$1) {
218
- Object.defineProperty(exports$1, "__esModule", { value: true });
219
- exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
217
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
218
+ Object.defineProperty(exports, "__esModule", { value: true });
219
+ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
220
220
  var code_1 = require_code();
221
221
  var ValueError = class extends Error {
222
222
  constructor(name) {
@@ -228,8 +228,8 @@ var require_scope = __commonJS({
228
228
  (function(UsedValueState2) {
229
229
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
230
230
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
231
- })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
232
- exports$1.varKinds = {
231
+ })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
232
+ exports.varKinds = {
233
233
  const: new code_1.Name("const"),
234
234
  let: new code_1.Name("let"),
235
235
  var: new code_1.Name("var")
@@ -258,7 +258,7 @@ var require_scope = __commonJS({
258
258
  return this._names[prefix] = { prefix, index: 0 };
259
259
  }
260
260
  };
261
- exports$1.Scope = Scope;
261
+ exports.Scope = Scope;
262
262
  var ValueScopeName = class extends code_1.Name {
263
263
  constructor(prefix, nameStr) {
264
264
  super(nameStr);
@@ -269,7 +269,7 @@ var require_scope = __commonJS({
269
269
  this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
270
270
  }
271
271
  };
272
- exports$1.ValueScopeName = ValueScopeName;
272
+ exports.ValueScopeName = ValueScopeName;
273
273
  var line = (0, code_1._)`\n`;
274
274
  var ValueScope = class extends Scope {
275
275
  constructor(opts) {
@@ -339,7 +339,7 @@ var require_scope = __commonJS({
339
339
  nameSet.set(name, UsedValueState.Started);
340
340
  let c = valueCode(name);
341
341
  if (c) {
342
- const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
342
+ const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
343
343
  code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
344
344
  } else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
345
345
  code = (0, code_1._)`${code}${c}${this.opts._n}`;
@@ -352,56 +352,56 @@ var require_scope = __commonJS({
352
352
  return code;
353
353
  }
354
354
  };
355
- exports$1.ValueScope = ValueScope;
355
+ exports.ValueScope = ValueScope;
356
356
  }
357
357
  });
358
358
 
359
359
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
360
360
  var require_codegen = __commonJS({
361
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports$1) {
362
- Object.defineProperty(exports$1, "__esModule", { value: true });
363
- exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
361
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
362
+ Object.defineProperty(exports, "__esModule", { value: true });
363
+ 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;
364
364
  var code_1 = require_code();
365
365
  var scope_1 = require_scope();
366
366
  var code_2 = require_code();
367
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
367
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
368
368
  return code_2._;
369
369
  } });
370
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
370
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
371
371
  return code_2.str;
372
372
  } });
373
- Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function() {
373
+ Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
374
374
  return code_2.strConcat;
375
375
  } });
376
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
376
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
377
377
  return code_2.nil;
378
378
  } });
379
- Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function() {
379
+ Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
380
380
  return code_2.getProperty;
381
381
  } });
382
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
382
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
383
383
  return code_2.stringify;
384
384
  } });
385
- Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function() {
385
+ Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
386
386
  return code_2.regexpCode;
387
387
  } });
388
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
388
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
389
389
  return code_2.Name;
390
390
  } });
391
391
  var scope_2 = require_scope();
392
- Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function() {
392
+ Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
393
393
  return scope_2.Scope;
394
394
  } });
395
- Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function() {
395
+ Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
396
396
  return scope_2.ValueScope;
397
397
  } });
398
- Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function() {
398
+ Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
399
399
  return scope_2.ValueScopeName;
400
400
  } });
401
- Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function() {
401
+ Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
402
402
  return scope_2.varKinds;
403
403
  } });
404
- exports$1.operators = {
404
+ exports.operators = {
405
405
  GT: new code_1._Code(">"),
406
406
  GTE: new code_1._Code(">="),
407
407
  LT: new code_1._Code("<"),
@@ -814,7 +814,7 @@ var require_codegen = __commonJS({
814
814
  }
815
815
  // `+=` code
816
816
  add(lhs, rhs) {
817
- return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
817
+ return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
818
818
  }
819
819
  // appends passed SafeExpr to code or executes Block
820
820
  code(c) {
@@ -1014,7 +1014,7 @@ var require_codegen = __commonJS({
1014
1014
  ns[ns.length - 1] = node2;
1015
1015
  }
1016
1016
  };
1017
- exports$1.CodeGen = CodeGen;
1017
+ exports.CodeGen = CodeGen;
1018
1018
  function addNames(names, from) {
1019
1019
  for (const n in from)
1020
1020
  names[n] = (names[n] || 0) + (from[n] || 0);
@@ -1055,17 +1055,17 @@ var require_codegen = __commonJS({
1055
1055
  function not(x) {
1056
1056
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
1057
1057
  }
1058
- exports$1.not = not;
1059
- var andCode = mappend(exports$1.operators.AND);
1058
+ exports.not = not;
1059
+ var andCode = mappend(exports.operators.AND);
1060
1060
  function and(...args) {
1061
1061
  return args.reduce(andCode);
1062
1062
  }
1063
- exports$1.and = and;
1064
- var orCode = mappend(exports$1.operators.OR);
1063
+ exports.and = and;
1064
+ var orCode = mappend(exports.operators.OR);
1065
1065
  function or(...args) {
1066
1066
  return args.reduce(orCode);
1067
1067
  }
1068
- exports$1.or = or;
1068
+ exports.or = or;
1069
1069
  function mappend(op) {
1070
1070
  return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
1071
1071
  }
@@ -1077,9 +1077,9 @@ var require_codegen = __commonJS({
1077
1077
 
1078
1078
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
1079
1079
  var require_util = __commonJS({
1080
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports$1) {
1081
- Object.defineProperty(exports$1, "__esModule", { value: true });
1082
- exports$1.checkStrictMode = exports$1.getErrorPath = exports$1.Type = exports$1.useFunc = exports$1.setEvaluated = exports$1.evaluatedPropsToName = exports$1.mergeEvaluated = exports$1.eachItem = exports$1.unescapeJsonPointer = exports$1.escapeJsonPointer = exports$1.escapeFragment = exports$1.unescapeFragment = exports$1.schemaRefOrVal = exports$1.schemaHasRulesButRef = exports$1.schemaHasRules = exports$1.checkUnknownRules = exports$1.alwaysValidSchema = exports$1.toHash = void 0;
1080
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports) {
1081
+ Object.defineProperty(exports, "__esModule", { value: true });
1082
+ 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;
1083
1083
  var codegen_1 = require_codegen();
1084
1084
  var code_1 = require_code();
1085
1085
  function toHash(arr) {
@@ -1088,7 +1088,7 @@ var require_util = __commonJS({
1088
1088
  hash[item] = true;
1089
1089
  return hash;
1090
1090
  }
1091
- exports$1.toHash = toHash;
1091
+ exports.toHash = toHash;
1092
1092
  function alwaysValidSchema(it, schema) {
1093
1093
  if (typeof schema == "boolean")
1094
1094
  return schema;
@@ -1097,7 +1097,7 @@ var require_util = __commonJS({
1097
1097
  checkUnknownRules(it, schema);
1098
1098
  return !schemaHasRules(schema, it.self.RULES.all);
1099
1099
  }
1100
- exports$1.alwaysValidSchema = alwaysValidSchema;
1100
+ exports.alwaysValidSchema = alwaysValidSchema;
1101
1101
  function checkUnknownRules(it, schema = it.schema) {
1102
1102
  const { opts, self } = it;
1103
1103
  if (!opts.strictSchema)
@@ -1110,7 +1110,7 @@ var require_util = __commonJS({
1110
1110
  checkStrictMode(it, `unknown keyword: "${key}"`);
1111
1111
  }
1112
1112
  }
1113
- exports$1.checkUnknownRules = checkUnknownRules;
1113
+ exports.checkUnknownRules = checkUnknownRules;
1114
1114
  function schemaHasRules(schema, rules) {
1115
1115
  if (typeof schema == "boolean")
1116
1116
  return !schema;
@@ -1119,7 +1119,7 @@ var require_util = __commonJS({
1119
1119
  return true;
1120
1120
  return false;
1121
1121
  }
1122
- exports$1.schemaHasRules = schemaHasRules;
1122
+ exports.schemaHasRules = schemaHasRules;
1123
1123
  function schemaHasRulesButRef(schema, RULES) {
1124
1124
  if (typeof schema == "boolean")
1125
1125
  return !schema;
@@ -1128,7 +1128,7 @@ var require_util = __commonJS({
1128
1128
  return true;
1129
1129
  return false;
1130
1130
  }
1131
- exports$1.schemaHasRulesButRef = schemaHasRulesButRef;
1131
+ exports.schemaHasRulesButRef = schemaHasRulesButRef;
1132
1132
  function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
1133
1133
  if (!$data) {
1134
1134
  if (typeof schema == "number" || typeof schema == "boolean")
@@ -1138,25 +1138,25 @@ var require_util = __commonJS({
1138
1138
  }
1139
1139
  return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
1140
1140
  }
1141
- exports$1.schemaRefOrVal = schemaRefOrVal;
1141
+ exports.schemaRefOrVal = schemaRefOrVal;
1142
1142
  function unescapeFragment(str) {
1143
1143
  return unescapeJsonPointer(decodeURIComponent(str));
1144
1144
  }
1145
- exports$1.unescapeFragment = unescapeFragment;
1145
+ exports.unescapeFragment = unescapeFragment;
1146
1146
  function escapeFragment(str) {
1147
1147
  return encodeURIComponent(escapeJsonPointer(str));
1148
1148
  }
1149
- exports$1.escapeFragment = escapeFragment;
1149
+ exports.escapeFragment = escapeFragment;
1150
1150
  function escapeJsonPointer(str) {
1151
1151
  if (typeof str == "number")
1152
1152
  return `${str}`;
1153
1153
  return str.replace(/~/g, "~0").replace(/\//g, "~1");
1154
1154
  }
1155
- exports$1.escapeJsonPointer = escapeJsonPointer;
1155
+ exports.escapeJsonPointer = escapeJsonPointer;
1156
1156
  function unescapeJsonPointer(str) {
1157
1157
  return str.replace(/~1/g, "/").replace(/~0/g, "~");
1158
1158
  }
1159
- exports$1.unescapeJsonPointer = unescapeJsonPointer;
1159
+ exports.unescapeJsonPointer = unescapeJsonPointer;
1160
1160
  function eachItem(xs, f) {
1161
1161
  if (Array.isArray(xs)) {
1162
1162
  for (const x of xs)
@@ -1165,14 +1165,14 @@ var require_util = __commonJS({
1165
1165
  f(xs);
1166
1166
  }
1167
1167
  }
1168
- exports$1.eachItem = eachItem;
1168
+ exports.eachItem = eachItem;
1169
1169
  function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues2, resultToName }) {
1170
1170
  return (gen, from, to, toName) => {
1171
1171
  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) : mergeValues2(from, to);
1172
1172
  return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
1173
1173
  };
1174
1174
  }
1175
- exports$1.mergeEvaluated = {
1175
+ exports.mergeEvaluated = {
1176
1176
  props: makeMergeEvaluated({
1177
1177
  mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
1178
1178
  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})`));
@@ -1203,11 +1203,11 @@ var require_util = __commonJS({
1203
1203
  setEvaluated(gen, props, ps);
1204
1204
  return props;
1205
1205
  }
1206
- exports$1.evaluatedPropsToName = evaluatedPropsToName;
1206
+ exports.evaluatedPropsToName = evaluatedPropsToName;
1207
1207
  function setEvaluated(gen, props, ps) {
1208
1208
  Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
1209
1209
  }
1210
- exports$1.setEvaluated = setEvaluated;
1210
+ exports.setEvaluated = setEvaluated;
1211
1211
  var snippets = {};
1212
1212
  function useFunc(gen, f) {
1213
1213
  return gen.scopeValue("func", {
@@ -1215,12 +1215,12 @@ var require_util = __commonJS({
1215
1215
  code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
1216
1216
  });
1217
1217
  }
1218
- exports$1.useFunc = useFunc;
1218
+ exports.useFunc = useFunc;
1219
1219
  var Type;
1220
1220
  (function(Type2) {
1221
1221
  Type2[Type2["Num"] = 0] = "Num";
1222
1222
  Type2[Type2["Str"] = 1] = "Str";
1223
- })(Type || (exports$1.Type = Type = {}));
1223
+ })(Type || (exports.Type = Type = {}));
1224
1224
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
1225
1225
  if (dataProp instanceof codegen_1.Name) {
1226
1226
  const isNumber = dataPropType === Type.Num;
@@ -1228,7 +1228,7 @@ var require_util = __commonJS({
1228
1228
  }
1229
1229
  return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
1230
1230
  }
1231
- exports$1.getErrorPath = getErrorPath;
1231
+ exports.getErrorPath = getErrorPath;
1232
1232
  function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
1233
1233
  if (!mode)
1234
1234
  return;
@@ -1237,14 +1237,14 @@ var require_util = __commonJS({
1237
1237
  throw new Error(msg);
1238
1238
  it.self.logger.warn(msg);
1239
1239
  }
1240
- exports$1.checkStrictMode = checkStrictMode;
1240
+ exports.checkStrictMode = checkStrictMode;
1241
1241
  }
1242
1242
  });
1243
1243
 
1244
1244
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
1245
1245
  var require_names = __commonJS({
1246
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports$1) {
1247
- Object.defineProperty(exports$1, "__esModule", { value: true });
1246
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports) {
1247
+ Object.defineProperty(exports, "__esModule", { value: true });
1248
1248
  var codegen_1 = require_codegen();
1249
1249
  var names = {
1250
1250
  // validation function arguments
@@ -1275,25 +1275,25 @@ var require_names = __commonJS({
1275
1275
  jsonLen: new codegen_1.Name("jsonLen"),
1276
1276
  jsonPart: new codegen_1.Name("jsonPart")
1277
1277
  };
1278
- exports$1.default = names;
1278
+ exports.default = names;
1279
1279
  }
1280
1280
  });
1281
1281
 
1282
1282
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
1283
1283
  var require_errors = __commonJS({
1284
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports$1) {
1285
- Object.defineProperty(exports$1, "__esModule", { value: true });
1286
- exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
1284
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports) {
1285
+ Object.defineProperty(exports, "__esModule", { value: true });
1286
+ exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
1287
1287
  var codegen_1 = require_codegen();
1288
1288
  var util_1 = require_util();
1289
1289
  var names_1 = require_names();
1290
- exports$1.keywordError = {
1290
+ exports.keywordError = {
1291
1291
  message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
1292
1292
  };
1293
- exports$1.keyword$DataError = {
1293
+ exports.keyword$DataError = {
1294
1294
  message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
1295
1295
  };
1296
- function reportError(cxt, error2 = exports$1.keywordError, errorPaths, overrideAllErrors) {
1296
+ function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
1297
1297
  const { it } = cxt;
1298
1298
  const { gen, compositeRule, allErrors } = it;
1299
1299
  const errObj = errorObjectCode(cxt, error2, errorPaths);
@@ -1303,8 +1303,8 @@ var require_errors = __commonJS({
1303
1303
  returnErrors(it, (0, codegen_1._)`[${errObj}]`);
1304
1304
  }
1305
1305
  }
1306
- exports$1.reportError = reportError;
1307
- function reportExtraError(cxt, error2 = exports$1.keywordError, errorPaths) {
1306
+ exports.reportError = reportError;
1307
+ function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
1308
1308
  const { it } = cxt;
1309
1309
  const { gen, compositeRule, allErrors } = it;
1310
1310
  const errObj = errorObjectCode(cxt, error2, errorPaths);
@@ -1313,12 +1313,12 @@ var require_errors = __commonJS({
1313
1313
  returnErrors(it, names_1.default.vErrors);
1314
1314
  }
1315
1315
  }
1316
- exports$1.reportExtraError = reportExtraError;
1316
+ exports.reportExtraError = reportExtraError;
1317
1317
  function resetErrorsCount(gen, errsCount) {
1318
1318
  gen.assign(names_1.default.errors, errsCount);
1319
1319
  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)));
1320
1320
  }
1321
- exports$1.resetErrorsCount = resetErrorsCount;
1321
+ exports.resetErrorsCount = resetErrorsCount;
1322
1322
  function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
1323
1323
  if (errsCount === void 0)
1324
1324
  throw new Error("ajv implementation error");
@@ -1333,7 +1333,7 @@ var require_errors = __commonJS({
1333
1333
  }
1334
1334
  });
1335
1335
  }
1336
- exports$1.extendErrors = extendErrors;
1336
+ exports.extendErrors = extendErrors;
1337
1337
  function addError(gen, errObj) {
1338
1338
  const err = gen.const("err", errObj);
1339
1339
  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})`);
@@ -1402,9 +1402,9 @@ var require_errors = __commonJS({
1402
1402
 
1403
1403
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
1404
1404
  var require_boolSchema = __commonJS({
1405
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports$1) {
1406
- Object.defineProperty(exports$1, "__esModule", { value: true });
1407
- exports$1.boolOrEmptySchema = exports$1.topBoolOrEmptySchema = void 0;
1405
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
1406
+ Object.defineProperty(exports, "__esModule", { value: true });
1407
+ exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
1408
1408
  var errors_1 = require_errors();
1409
1409
  var codegen_1 = require_codegen();
1410
1410
  var names_1 = require_names();
@@ -1422,7 +1422,7 @@ var require_boolSchema = __commonJS({
1422
1422
  gen.return(true);
1423
1423
  }
1424
1424
  }
1425
- exports$1.topBoolOrEmptySchema = topBoolOrEmptySchema;
1425
+ exports.topBoolOrEmptySchema = topBoolOrEmptySchema;
1426
1426
  function boolOrEmptySchema(it, valid) {
1427
1427
  const { gen, schema } = it;
1428
1428
  if (schema === false) {
@@ -1432,7 +1432,7 @@ var require_boolSchema = __commonJS({
1432
1432
  gen.var(valid, true);
1433
1433
  }
1434
1434
  }
1435
- exports$1.boolOrEmptySchema = boolOrEmptySchema;
1435
+ exports.boolOrEmptySchema = boolOrEmptySchema;
1436
1436
  function falseSchemaError(it, overrideAllErrors) {
1437
1437
  const { gen, data } = it;
1438
1438
  const cxt = {
@@ -1452,15 +1452,15 @@ var require_boolSchema = __commonJS({
1452
1452
 
1453
1453
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
1454
1454
  var require_rules = __commonJS({
1455
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports$1) {
1456
- Object.defineProperty(exports$1, "__esModule", { value: true });
1457
- exports$1.getRules = exports$1.isJSONType = void 0;
1455
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports) {
1456
+ Object.defineProperty(exports, "__esModule", { value: true });
1457
+ exports.getRules = exports.isJSONType = void 0;
1458
1458
  var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
1459
1459
  var jsonTypes = new Set(_jsonTypes);
1460
1460
  function isJSONType(x) {
1461
1461
  return typeof x == "string" && jsonTypes.has(x);
1462
1462
  }
1463
- exports$1.isJSONType = isJSONType;
1463
+ exports.isJSONType = isJSONType;
1464
1464
  function getRules() {
1465
1465
  const groups = {
1466
1466
  number: { type: "number", rules: [] },
@@ -1476,37 +1476,37 @@ var require_rules = __commonJS({
1476
1476
  keywords: {}
1477
1477
  };
1478
1478
  }
1479
- exports$1.getRules = getRules;
1479
+ exports.getRules = getRules;
1480
1480
  }
1481
1481
  });
1482
1482
 
1483
1483
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
1484
1484
  var require_applicability = __commonJS({
1485
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports$1) {
1486
- Object.defineProperty(exports$1, "__esModule", { value: true });
1487
- exports$1.shouldUseRule = exports$1.shouldUseGroup = exports$1.schemaHasRulesForType = void 0;
1485
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
1486
+ Object.defineProperty(exports, "__esModule", { value: true });
1487
+ exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
1488
1488
  function schemaHasRulesForType({ schema, self }, type) {
1489
1489
  const group = self.RULES.types[type];
1490
1490
  return group && group !== true && shouldUseGroup(schema, group);
1491
1491
  }
1492
- exports$1.schemaHasRulesForType = schemaHasRulesForType;
1492
+ exports.schemaHasRulesForType = schemaHasRulesForType;
1493
1493
  function shouldUseGroup(schema, group) {
1494
1494
  return group.rules.some((rule) => shouldUseRule(schema, rule));
1495
1495
  }
1496
- exports$1.shouldUseGroup = shouldUseGroup;
1496
+ exports.shouldUseGroup = shouldUseGroup;
1497
1497
  function shouldUseRule(schema, rule) {
1498
1498
  var _a3;
1499
1499
  return schema[rule.keyword] !== void 0 || ((_a3 = rule.definition.implements) === null || _a3 === void 0 ? void 0 : _a3.some((kwd) => schema[kwd] !== void 0));
1500
1500
  }
1501
- exports$1.shouldUseRule = shouldUseRule;
1501
+ exports.shouldUseRule = shouldUseRule;
1502
1502
  }
1503
1503
  });
1504
1504
 
1505
1505
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
1506
1506
  var require_dataType = __commonJS({
1507
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports$1) {
1508
- Object.defineProperty(exports$1, "__esModule", { value: true });
1509
- exports$1.reportTypeError = exports$1.checkDataTypes = exports$1.checkDataType = exports$1.coerceAndCheckDataType = exports$1.getJSONTypes = exports$1.getSchemaTypes = exports$1.DataType = void 0;
1507
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
1508
+ Object.defineProperty(exports, "__esModule", { value: true });
1509
+ exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
1510
1510
  var rules_1 = require_rules();
1511
1511
  var applicability_1 = require_applicability();
1512
1512
  var errors_1 = require_errors();
@@ -1516,7 +1516,7 @@ var require_dataType = __commonJS({
1516
1516
  (function(DataType2) {
1517
1517
  DataType2[DataType2["Correct"] = 0] = "Correct";
1518
1518
  DataType2[DataType2["Wrong"] = 1] = "Wrong";
1519
- })(DataType || (exports$1.DataType = DataType = {}));
1519
+ })(DataType || (exports.DataType = DataType = {}));
1520
1520
  function getSchemaTypes(schema) {
1521
1521
  const types = getJSONTypes(schema.type);
1522
1522
  const hasNull = types.includes("null");
@@ -1532,14 +1532,14 @@ var require_dataType = __commonJS({
1532
1532
  }
1533
1533
  return types;
1534
1534
  }
1535
- exports$1.getSchemaTypes = getSchemaTypes;
1535
+ exports.getSchemaTypes = getSchemaTypes;
1536
1536
  function getJSONTypes(ts) {
1537
1537
  const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
1538
1538
  if (types.every(rules_1.isJSONType))
1539
1539
  return types;
1540
1540
  throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
1541
1541
  }
1542
- exports$1.getJSONTypes = getJSONTypes;
1542
+ exports.getJSONTypes = getJSONTypes;
1543
1543
  function coerceAndCheckDataType(it, types) {
1544
1544
  const { gen, data, opts } = it;
1545
1545
  const coerceTo = coerceToTypes(types, opts.coerceTypes);
@@ -1555,7 +1555,7 @@ var require_dataType = __commonJS({
1555
1555
  }
1556
1556
  return checkTypes;
1557
1557
  }
1558
- exports$1.coerceAndCheckDataType = coerceAndCheckDataType;
1558
+ exports.coerceAndCheckDataType = coerceAndCheckDataType;
1559
1559
  var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1560
1560
  function coerceToTypes(types, coerceTypes) {
1561
1561
  return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
@@ -1635,7 +1635,7 @@ var require_dataType = __commonJS({
1635
1635
  return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
1636
1636
  }
1637
1637
  }
1638
- exports$1.checkDataType = checkDataType;
1638
+ exports.checkDataType = checkDataType;
1639
1639
  function checkDataTypes(dataTypes, data, strictNums, correct) {
1640
1640
  if (dataTypes.length === 1) {
1641
1641
  return checkDataType(dataTypes[0], data, strictNums, correct);
@@ -1657,7 +1657,7 @@ var require_dataType = __commonJS({
1657
1657
  cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
1658
1658
  return cond;
1659
1659
  }
1660
- exports$1.checkDataTypes = checkDataTypes;
1660
+ exports.checkDataTypes = checkDataTypes;
1661
1661
  var typeError = {
1662
1662
  message: ({ schema }) => `must be ${schema}`,
1663
1663
  params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
@@ -1666,7 +1666,7 @@ var require_dataType = __commonJS({
1666
1666
  const cxt = getTypeErrorContext(it);
1667
1667
  (0, errors_1.reportError)(cxt, typeError);
1668
1668
  }
1669
- exports$1.reportTypeError = reportTypeError;
1669
+ exports.reportTypeError = reportTypeError;
1670
1670
  function getTypeErrorContext(it) {
1671
1671
  const { gen, data, schema } = it;
1672
1672
  const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
@@ -1687,9 +1687,9 @@ var require_dataType = __commonJS({
1687
1687
 
1688
1688
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
1689
1689
  var require_defaults = __commonJS({
1690
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports$1) {
1691
- Object.defineProperty(exports$1, "__esModule", { value: true });
1692
- exports$1.assignDefaults = void 0;
1690
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
1691
+ Object.defineProperty(exports, "__esModule", { value: true });
1692
+ exports.assignDefaults = void 0;
1693
1693
  var codegen_1 = require_codegen();
1694
1694
  var util_1 = require_util();
1695
1695
  function assignDefaults(it, ty) {
@@ -1702,7 +1702,7 @@ var require_defaults = __commonJS({
1702
1702
  items.forEach((sch, i) => assignDefault(it, i, sch.default));
1703
1703
  }
1704
1704
  }
1705
- exports$1.assignDefaults = assignDefaults;
1705
+ exports.assignDefaults = assignDefaults;
1706
1706
  function assignDefault(it, prop, defaultValue) {
1707
1707
  const { gen, compositeRule, data, opts } = it;
1708
1708
  if (defaultValue === void 0)
@@ -1723,9 +1723,9 @@ var require_defaults = __commonJS({
1723
1723
 
1724
1724
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
1725
1725
  var require_code2 = __commonJS({
1726
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports$1) {
1727
- Object.defineProperty(exports$1, "__esModule", { value: true });
1728
- exports$1.validateUnion = exports$1.validateArray = exports$1.usePattern = exports$1.callValidateCode = exports$1.schemaProperties = exports$1.allSchemaProperties = exports$1.noPropertyInData = exports$1.propertyInData = exports$1.isOwnProperty = exports$1.hasPropFunc = exports$1.reportMissingProp = exports$1.checkMissingProp = exports$1.checkReportMissingProp = void 0;
1726
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
1727
+ Object.defineProperty(exports, "__esModule", { value: true });
1728
+ 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;
1729
1729
  var codegen_1 = require_codegen();
1730
1730
  var util_1 = require_util();
1731
1731
  var names_1 = require_names();
@@ -1737,16 +1737,16 @@ var require_code2 = __commonJS({
1737
1737
  cxt.error();
1738
1738
  });
1739
1739
  }
1740
- exports$1.checkReportMissingProp = checkReportMissingProp;
1740
+ exports.checkReportMissingProp = checkReportMissingProp;
1741
1741
  function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
1742
1742
  return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
1743
1743
  }
1744
- exports$1.checkMissingProp = checkMissingProp;
1744
+ exports.checkMissingProp = checkMissingProp;
1745
1745
  function reportMissingProp(cxt, missing) {
1746
1746
  cxt.setParams({ missingProperty: missing }, true);
1747
1747
  cxt.error();
1748
1748
  }
1749
- exports$1.reportMissingProp = reportMissingProp;
1749
+ exports.reportMissingProp = reportMissingProp;
1750
1750
  function hasPropFunc(gen) {
1751
1751
  return gen.scopeValue("func", {
1752
1752
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -1754,29 +1754,29 @@ var require_code2 = __commonJS({
1754
1754
  code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
1755
1755
  });
1756
1756
  }
1757
- exports$1.hasPropFunc = hasPropFunc;
1757
+ exports.hasPropFunc = hasPropFunc;
1758
1758
  function isOwnProperty(gen, data, property) {
1759
1759
  return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
1760
1760
  }
1761
- exports$1.isOwnProperty = isOwnProperty;
1761
+ exports.isOwnProperty = isOwnProperty;
1762
1762
  function propertyInData(gen, data, property, ownProperties) {
1763
1763
  const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
1764
1764
  return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
1765
1765
  }
1766
- exports$1.propertyInData = propertyInData;
1766
+ exports.propertyInData = propertyInData;
1767
1767
  function noPropertyInData(gen, data, property, ownProperties) {
1768
1768
  const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
1769
1769
  return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
1770
1770
  }
1771
- exports$1.noPropertyInData = noPropertyInData;
1771
+ exports.noPropertyInData = noPropertyInData;
1772
1772
  function allSchemaProperties(schemaMap) {
1773
1773
  return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
1774
1774
  }
1775
- exports$1.allSchemaProperties = allSchemaProperties;
1775
+ exports.allSchemaProperties = allSchemaProperties;
1776
1776
  function schemaProperties(it, schemaMap) {
1777
1777
  return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
1778
1778
  }
1779
- exports$1.schemaProperties = schemaProperties;
1779
+ exports.schemaProperties = schemaProperties;
1780
1780
  function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
1781
1781
  const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
1782
1782
  const valCxt = [
@@ -1790,7 +1790,7 @@ var require_code2 = __commonJS({
1790
1790
  const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
1791
1791
  return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
1792
1792
  }
1793
- exports$1.callValidateCode = callValidateCode;
1793
+ exports.callValidateCode = callValidateCode;
1794
1794
  var newRegExp = (0, codegen_1._)`new RegExp`;
1795
1795
  function usePattern({ gen, it: { opts } }, pattern) {
1796
1796
  const u = opts.unicodeRegExp ? "u" : "";
@@ -1802,7 +1802,7 @@ var require_code2 = __commonJS({
1802
1802
  code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
1803
1803
  });
1804
1804
  }
1805
- exports$1.usePattern = usePattern;
1805
+ exports.usePattern = usePattern;
1806
1806
  function validateArray(cxt) {
1807
1807
  const { gen, data, keyword, it } = cxt;
1808
1808
  const valid = gen.name("valid");
@@ -1826,7 +1826,7 @@ var require_code2 = __commonJS({
1826
1826
  });
1827
1827
  }
1828
1828
  }
1829
- exports$1.validateArray = validateArray;
1829
+ exports.validateArray = validateArray;
1830
1830
  function validateUnion(cxt) {
1831
1831
  const { gen, schema, keyword, it } = cxt;
1832
1832
  if (!Array.isArray(schema))
@@ -1849,15 +1849,15 @@ var require_code2 = __commonJS({
1849
1849
  }));
1850
1850
  cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
1851
1851
  }
1852
- exports$1.validateUnion = validateUnion;
1852
+ exports.validateUnion = validateUnion;
1853
1853
  }
1854
1854
  });
1855
1855
 
1856
1856
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
1857
1857
  var require_keyword = __commonJS({
1858
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports$1) {
1859
- Object.defineProperty(exports$1, "__esModule", { value: true });
1860
- exports$1.validateKeywordUsage = exports$1.validSchemaType = exports$1.funcKeywordCode = exports$1.macroKeywordCode = void 0;
1858
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
1859
+ Object.defineProperty(exports, "__esModule", { value: true });
1860
+ exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
1861
1861
  var codegen_1 = require_codegen();
1862
1862
  var names_1 = require_names();
1863
1863
  var code_1 = require_code2();
@@ -1878,7 +1878,7 @@ var require_keyword = __commonJS({
1878
1878
  }, valid);
1879
1879
  cxt.pass(valid, () => cxt.error(true));
1880
1880
  }
1881
- exports$1.macroKeywordCode = macroKeywordCode;
1881
+ exports.macroKeywordCode = macroKeywordCode;
1882
1882
  function funcKeywordCode(cxt, def) {
1883
1883
  var _a3;
1884
1884
  const { gen, keyword, schema, parentSchema, $data, it } = cxt;
@@ -1922,7 +1922,7 @@ var require_keyword = __commonJS({
1922
1922
  gen.if((0, codegen_1.not)((_a4 = def.valid) !== null && _a4 !== void 0 ? _a4 : valid), errors);
1923
1923
  }
1924
1924
  }
1925
- exports$1.funcKeywordCode = funcKeywordCode;
1925
+ exports.funcKeywordCode = funcKeywordCode;
1926
1926
  function modifyData(cxt) {
1927
1927
  const { gen, data, it } = cxt;
1928
1928
  gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
@@ -1946,7 +1946,7 @@ var require_keyword = __commonJS({
1946
1946
  function validSchemaType(schema, schemaType, allowUndefined = false) {
1947
1947
  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");
1948
1948
  }
1949
- exports$1.validSchemaType = validSchemaType;
1949
+ exports.validSchemaType = validSchemaType;
1950
1950
  function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {
1951
1951
  if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
1952
1952
  throw new Error("ajv implementation error");
@@ -1966,15 +1966,15 @@ var require_keyword = __commonJS({
1966
1966
  }
1967
1967
  }
1968
1968
  }
1969
- exports$1.validateKeywordUsage = validateKeywordUsage;
1969
+ exports.validateKeywordUsage = validateKeywordUsage;
1970
1970
  }
1971
1971
  });
1972
1972
 
1973
1973
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
1974
1974
  var require_subschema = __commonJS({
1975
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports$1) {
1976
- Object.defineProperty(exports$1, "__esModule", { value: true });
1977
- exports$1.extendSubschemaMode = exports$1.extendSubschemaData = exports$1.getSubschema = void 0;
1975
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
1976
+ Object.defineProperty(exports, "__esModule", { value: true });
1977
+ exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
1978
1978
  var codegen_1 = require_codegen();
1979
1979
  var util_1 = require_util();
1980
1980
  function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
@@ -2006,7 +2006,7 @@ var require_subschema = __commonJS({
2006
2006
  }
2007
2007
  throw new Error('either "keyword" or "schema" must be passed');
2008
2008
  }
2009
- exports$1.getSubschema = getSubschema;
2009
+ exports.getSubschema = getSubschema;
2010
2010
  function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
2011
2011
  if (data !== void 0 && dataProp !== void 0) {
2012
2012
  throw new Error('both "data" and "dataProp" passed, only one allowed');
@@ -2037,7 +2037,7 @@ var require_subschema = __commonJS({
2037
2037
  subschema.dataNames = [...it.dataNames, _nextData];
2038
2038
  }
2039
2039
  }
2040
- exports$1.extendSubschemaData = extendSubschemaData;
2040
+ exports.extendSubschemaData = extendSubschemaData;
2041
2041
  function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
2042
2042
  if (compositeRule !== void 0)
2043
2043
  subschema.compositeRule = compositeRule;
@@ -2048,13 +2048,13 @@ var require_subschema = __commonJS({
2048
2048
  subschema.jtdDiscriminator = jtdDiscriminator;
2049
2049
  subschema.jtdMetadata = jtdMetadata;
2050
2050
  }
2051
- exports$1.extendSubschemaMode = extendSubschemaMode;
2051
+ exports.extendSubschemaMode = extendSubschemaMode;
2052
2052
  }
2053
2053
  });
2054
2054
 
2055
2055
  // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
2056
2056
  var require_fast_deep_equal = __commonJS({
2057
- "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports$1, module) {
2057
+ "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
2058
2058
  module.exports = function equal(a, b) {
2059
2059
  if (a === b) return true;
2060
2060
  if (a && b && typeof a == "object" && typeof b == "object") {
@@ -2088,7 +2088,7 @@ var require_fast_deep_equal = __commonJS({
2088
2088
 
2089
2089
  // ../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
2090
2090
  var require_json_schema_traverse = __commonJS({
2091
- "../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports$1, module) {
2091
+ "../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) {
2092
2092
  var traverse = module.exports = function(schema, opts, cb) {
2093
2093
  if (typeof opts == "function") {
2094
2094
  cb = opts;
@@ -2175,9 +2175,9 @@ var require_json_schema_traverse = __commonJS({
2175
2175
 
2176
2176
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
2177
2177
  var require_resolve = __commonJS({
2178
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports$1) {
2179
- Object.defineProperty(exports$1, "__esModule", { value: true });
2180
- exports$1.getSchemaRefs = exports$1.resolveUrl = exports$1.normalizeId = exports$1._getFullPath = exports$1.getFullPath = exports$1.inlineRef = void 0;
2178
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
2179
+ Object.defineProperty(exports, "__esModule", { value: true });
2180
+ exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
2181
2181
  var util_1 = require_util();
2182
2182
  var equal = require_fast_deep_equal();
2183
2183
  var traverse = require_json_schema_traverse();
@@ -2208,7 +2208,7 @@ var require_resolve = __commonJS({
2208
2208
  return false;
2209
2209
  return countKeys(schema) <= limit;
2210
2210
  }
2211
- exports$1.inlineRef = inlineRef;
2211
+ exports.inlineRef = inlineRef;
2212
2212
  var REF_KEYWORDS = /* @__PURE__ */ new Set([
2213
2213
  "$ref",
2214
2214
  "$recursiveRef",
@@ -2250,22 +2250,22 @@ var require_resolve = __commonJS({
2250
2250
  const p = resolver.parse(id);
2251
2251
  return _getFullPath(resolver, p);
2252
2252
  }
2253
- exports$1.getFullPath = getFullPath;
2253
+ exports.getFullPath = getFullPath;
2254
2254
  function _getFullPath(resolver, p) {
2255
2255
  const serialized = resolver.serialize(p);
2256
2256
  return serialized.split("#")[0] + "#";
2257
2257
  }
2258
- exports$1._getFullPath = _getFullPath;
2258
+ exports._getFullPath = _getFullPath;
2259
2259
  var TRAILING_SLASH_HASH = /#\/?$/;
2260
2260
  function normalizeId(id) {
2261
2261
  return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
2262
2262
  }
2263
- exports$1.normalizeId = normalizeId;
2263
+ exports.normalizeId = normalizeId;
2264
2264
  function resolveUrl(resolver, baseId, id) {
2265
2265
  id = normalizeId(id);
2266
2266
  return resolver.resolve(baseId, id);
2267
2267
  }
2268
- exports$1.resolveUrl = resolveUrl;
2268
+ exports.resolveUrl = resolveUrl;
2269
2269
  var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
2270
2270
  function getSchemaRefs(schema, baseId) {
2271
2271
  if (typeof schema == "boolean")
@@ -2324,15 +2324,15 @@ var require_resolve = __commonJS({
2324
2324
  return new Error(`reference "${ref}" resolves to more than one schema`);
2325
2325
  }
2326
2326
  }
2327
- exports$1.getSchemaRefs = getSchemaRefs;
2327
+ exports.getSchemaRefs = getSchemaRefs;
2328
2328
  }
2329
2329
  });
2330
2330
 
2331
2331
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
2332
2332
  var require_validate = __commonJS({
2333
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports$1) {
2334
- Object.defineProperty(exports$1, "__esModule", { value: true });
2335
- exports$1.getData = exports$1.KeywordCxt = exports$1.validateFunctionCode = void 0;
2333
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
2334
+ Object.defineProperty(exports, "__esModule", { value: true });
2335
+ exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
2336
2336
  var boolSchema_1 = require_boolSchema();
2337
2337
  var dataType_1 = require_dataType();
2338
2338
  var applicability_1 = require_applicability();
@@ -2355,7 +2355,7 @@ var require_validate = __commonJS({
2355
2355
  }
2356
2356
  validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
2357
2357
  }
2358
- exports$1.validateFunctionCode = validateFunctionCode;
2358
+ exports.validateFunctionCode = validateFunctionCode;
2359
2359
  function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
2360
2360
  if (opts.code.es5) {
2361
2361
  gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
@@ -2775,7 +2775,7 @@ var require_validate = __commonJS({
2775
2775
  }
2776
2776
  }
2777
2777
  };
2778
- exports$1.KeywordCxt = KeywordCxt;
2778
+ exports.KeywordCxt = KeywordCxt;
2779
2779
  function keywordCode(it, keyword, def, ruleType) {
2780
2780
  const cxt = new KeywordCxt(it, def, keyword);
2781
2781
  if ("code" in def) {
@@ -2830,14 +2830,14 @@ var require_validate = __commonJS({
2830
2830
  return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
2831
2831
  }
2832
2832
  }
2833
- exports$1.getData = getData;
2833
+ exports.getData = getData;
2834
2834
  }
2835
2835
  });
2836
2836
 
2837
2837
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
2838
2838
  var require_validation_error = __commonJS({
2839
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports$1) {
2840
- Object.defineProperty(exports$1, "__esModule", { value: true });
2839
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
2840
+ Object.defineProperty(exports, "__esModule", { value: true });
2841
2841
  var ValidationError = class extends Error {
2842
2842
  constructor(errors) {
2843
2843
  super("validation failed");
@@ -2845,14 +2845,14 @@ var require_validation_error = __commonJS({
2845
2845
  this.ajv = this.validation = true;
2846
2846
  }
2847
2847
  };
2848
- exports$1.default = ValidationError;
2848
+ exports.default = ValidationError;
2849
2849
  }
2850
2850
  });
2851
2851
 
2852
2852
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
2853
2853
  var require_ref_error = __commonJS({
2854
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports$1) {
2855
- Object.defineProperty(exports$1, "__esModule", { value: true });
2854
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
2855
+ Object.defineProperty(exports, "__esModule", { value: true });
2856
2856
  var resolve_1 = require_resolve();
2857
2857
  var MissingRefError = class extends Error {
2858
2858
  constructor(resolver, baseId, ref, msg) {
@@ -2861,15 +2861,15 @@ var require_ref_error = __commonJS({
2861
2861
  this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
2862
2862
  }
2863
2863
  };
2864
- exports$1.default = MissingRefError;
2864
+ exports.default = MissingRefError;
2865
2865
  }
2866
2866
  });
2867
2867
 
2868
2868
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
2869
2869
  var require_compile = __commonJS({
2870
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports$1) {
2871
- Object.defineProperty(exports$1, "__esModule", { value: true });
2872
- exports$1.resolveSchema = exports$1.getCompilingSchema = exports$1.resolveRef = exports$1.compileSchema = exports$1.SchemaEnv = void 0;
2870
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports) {
2871
+ Object.defineProperty(exports, "__esModule", { value: true });
2872
+ exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
2873
2873
  var codegen_1 = require_codegen();
2874
2874
  var validation_error_1 = require_validation_error();
2875
2875
  var names_1 = require_names();
@@ -2895,7 +2895,7 @@ var require_compile = __commonJS({
2895
2895
  this.refs = {};
2896
2896
  }
2897
2897
  };
2898
- exports$1.SchemaEnv = SchemaEnv;
2898
+ exports.SchemaEnv = SchemaEnv;
2899
2899
  function compileSchema(sch) {
2900
2900
  const _sch = getCompilingSchema.call(this, sch);
2901
2901
  if (_sch)
@@ -2981,7 +2981,7 @@ var require_compile = __commonJS({
2981
2981
  this._compilations.delete(sch);
2982
2982
  }
2983
2983
  }
2984
- exports$1.compileSchema = compileSchema;
2984
+ exports.compileSchema = compileSchema;
2985
2985
  function resolveRef(root, baseId, ref) {
2986
2986
  var _a3;
2987
2987
  ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
@@ -2999,7 +2999,7 @@ var require_compile = __commonJS({
2999
2999
  return;
3000
3000
  return root.refs[ref] = inlineOrCompile.call(this, _sch);
3001
3001
  }
3002
- exports$1.resolveRef = resolveRef;
3002
+ exports.resolveRef = resolveRef;
3003
3003
  function inlineOrCompile(sch) {
3004
3004
  if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
3005
3005
  return sch.schema;
@@ -3011,7 +3011,7 @@ var require_compile = __commonJS({
3011
3011
  return sch;
3012
3012
  }
3013
3013
  }
3014
- exports$1.getCompilingSchema = getCompilingSchema;
3014
+ exports.getCompilingSchema = getCompilingSchema;
3015
3015
  function sameSchemaEnv(s1, s2) {
3016
3016
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
3017
3017
  }
@@ -3050,7 +3050,7 @@ var require_compile = __commonJS({
3050
3050
  }
3051
3051
  return getJsonPointer.call(this, p, schOrRef);
3052
3052
  }
3053
- exports$1.resolveSchema = resolveSchema;
3053
+ exports.resolveSchema = resolveSchema;
3054
3054
  var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
3055
3055
  "properties",
3056
3056
  "patternProperties",
@@ -3090,7 +3090,7 @@ var require_compile = __commonJS({
3090
3090
 
3091
3091
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
3092
3092
  var require_data = __commonJS({
3093
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports$1, module) {
3093
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
3094
3094
  module.exports = {
3095
3095
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3096
3096
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3107,11 +3107,33 @@ var require_data = __commonJS({
3107
3107
  }
3108
3108
  });
3109
3109
 
3110
- // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
3110
+ // ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js
3111
3111
  var require_utils = __commonJS({
3112
- "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports$1, module) {
3112
+ "../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js"(exports, module) {
3113
3113
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3114
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);
3115
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3116
+ var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3117
+ var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3118
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
3119
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
3120
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
3121
+ var BYTE_HEX = new Array(256);
3122
+ {
3123
+ const HEX_DIGITS = "0123456789ABCDEF";
3124
+ for (let i = 0; i < 256; i++) {
3125
+ BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
3126
+ }
3127
+ }
3128
+ function percentEncodeNonAscii(cp) {
3129
+ if (cp < 2048) {
3130
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
3131
+ }
3132
+ if (cp < 65536) {
3133
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3134
+ }
3135
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3136
+ }
3115
3137
  function stringArrayToHexStripped(input) {
3116
3138
  let acc = "";
3117
3139
  let code = 0;
@@ -3136,91 +3158,105 @@ var require_utils = __commonJS({
3136
3158
  }
3137
3159
  return acc;
3138
3160
  }
3161
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
3162
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
3163
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
3139
3164
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3140
- function consumeIsZone(buffer) {
3141
- buffer.length = 0;
3142
- return true;
3143
- }
3144
- function consumeHextets(buffer, address, output) {
3145
- if (buffer.length) {
3146
- const hex = stringArrayToHexStripped(buffer);
3147
- if (hex !== "") {
3148
- address.push(hex);
3149
- } else {
3150
- output.error = true;
3151
- return false;
3165
+ function isZoneIdentifier(zone) {
3166
+ if (zone.length === 0) return false;
3167
+ for (let i = 0; i < zone.length; i++) {
3168
+ if (isZoneCharacter(zone[i])) continue;
3169
+ if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
3170
+ i += 2;
3171
+ continue;
3152
3172
  }
3153
- buffer.length = 0;
3173
+ return false;
3154
3174
  }
3155
3175
  return true;
3156
3176
  }
3157
- function getIPV6(input) {
3158
- let tokenCount = 0;
3159
- const output = { error: false, address: "", zone: "" };
3160
- const address = [];
3161
- const buffer = [];
3162
- let endipv6Encountered = false;
3163
- let endIpv6 = false;
3164
- let consume = consumeHextets;
3165
- for (let i = 0; i < input.length; i++) {
3166
- const cursor = input[i];
3167
- if (cursor === "[" || cursor === "]") {
3168
- continue;
3169
- }
3170
- if (cursor === ":") {
3171
- if (endipv6Encountered === true) {
3172
- endIpv6 = true;
3173
- }
3174
- if (!consume(buffer, address, output)) {
3175
- break;
3177
+ function compressIPv6ZeroRun(hextets) {
3178
+ let bestStart = -1;
3179
+ let bestLength = 0;
3180
+ let runStart = -1;
3181
+ let runLength = 0;
3182
+ for (let i = 0; i < hextets.length; i++) {
3183
+ if (hextets[i] === "0") {
3184
+ if (runStart === -1) runStart = i;
3185
+ runLength++;
3186
+ if (runLength > bestLength) {
3187
+ bestLength = runLength;
3188
+ bestStart = runStart;
3176
3189
  }
3177
- if (++tokenCount > 7) {
3178
- output.error = true;
3179
- break;
3180
- }
3181
- if (i > 0 && input[i - 1] === ":") {
3182
- endipv6Encountered = true;
3183
- }
3184
- address.push(":");
3185
- continue;
3186
- } else if (cursor === "%") {
3187
- if (!consume(buffer, address, output)) {
3188
- break;
3189
- }
3190
- consume = consumeIsZone;
3191
3190
  } else {
3192
- buffer.push(cursor);
3191
+ runStart = -1;
3192
+ runLength = 0;
3193
+ }
3194
+ }
3195
+ if (bestLength < 2) return hextets.join(":");
3196
+ const head = hextets.slice(0, bestStart).join(":");
3197
+ const tail = hextets.slice(bestStart + bestLength).join(":");
3198
+ return head + "::" + tail;
3199
+ }
3200
+ function normalizeIPv6Address(input) {
3201
+ const compression = input.indexOf("::");
3202
+ if (compression !== -1 && input.indexOf("::", compression + 1) !== -1) return void 0;
3203
+ const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
3204
+ const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
3205
+ if (compression !== -1) {
3206
+ if (left.length === 1 && left[0] === "") left.length = 0;
3207
+ if (right.length === 1 && right[0] === "") right.length = 0;
3208
+ }
3209
+ const parts = left.concat(right);
3210
+ let hextetCount = 0;
3211
+ for (let i = 0; i < parts.length; i++) {
3212
+ const part = parts[i];
3213
+ if (part === "") return void 0;
3214
+ if (part.indexOf(".") !== -1) {
3215
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part)) return void 0;
3216
+ hextetCount += 2;
3193
3217
  continue;
3194
3218
  }
3219
+ if (!isHextet(part)) return void 0;
3220
+ parts[i] = parseInt(part, 16).toString(16);
3221
+ hextetCount++;
3195
3222
  }
3196
- if (buffer.length) {
3197
- if (consume === consumeIsZone) {
3198
- output.zone = buffer.join("");
3199
- } else if (endIpv6) {
3200
- address.push(buffer.join(""));
3201
- } else {
3202
- address.push(stringArrayToHexStripped(buffer));
3203
- }
3223
+ if (compression === -1) {
3224
+ if (hextetCount !== 8) return void 0;
3225
+ return compressIPv6ZeroRun(parts);
3204
3226
  }
3205
- output.address = address.join("");
3206
- return output;
3227
+ if (hextetCount >= 8) return void 0;
3228
+ const expanded = parts.slice(0, left.length);
3229
+ for (let i = hextetCount; i < 8; i++) expanded.push("0");
3230
+ for (let i = left.length; i < parts.length; i++) expanded.push(parts[i]);
3231
+ return compressIPv6ZeroRun(expanded);
3207
3232
  }
3208
3233
  function normalizeIPv6(host) {
3209
- if (findToken(host, ":") < 2) {
3210
- return { host, isIPV6: false };
3211
- }
3212
- const ipv62 = getIPV6(host);
3213
- if (!ipv62.error) {
3214
- let newHost = ipv62.address;
3215
- let escapedHost = ipv62.address;
3216
- if (ipv62.zone) {
3217
- newHost += "%" + ipv62.zone;
3218
- escapedHost += "%25" + ipv62.zone;
3219
- }
3220
- return { host: newHost, isIPV6: true, escapedHost };
3221
- } else {
3222
- return { host, isIPV6: false };
3223
- }
3234
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
3235
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
3236
+ if (hasBracket && !bracketed) return { host, isIPV6: false, error: true };
3237
+ let input = bracketed ? host.slice(1, -1) : host;
3238
+ if (bracketed && isIPvFuture(input)) {
3239
+ input = input.toLowerCase();
3240
+ return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
3241
+ }
3242
+ if (findToken(input, ":") < 2) {
3243
+ return { host, isIPV6: false, error: bracketed };
3244
+ }
3245
+ let zoneIdentifier = "";
3246
+ const zoneSeparator = input.indexOf("%");
3247
+ if (zoneSeparator !== -1) {
3248
+ const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
3249
+ zoneIdentifier = input.slice(zoneSeparator + separatorLength);
3250
+ if (!isZoneIdentifier(zoneIdentifier)) return { host, isIPV6: false, error: true };
3251
+ input = input.slice(0, zoneSeparator);
3252
+ }
3253
+ const address = normalizeIPv6Address(input);
3254
+ if (address === void 0) return { host, isIPV6: false, error: true };
3255
+ return {
3256
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
3257
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
3258
+ isIPV6: true
3259
+ };
3224
3260
  }
3225
3261
  function findToken(str, token) {
3226
3262
  let ind = 0;
@@ -3304,56 +3340,265 @@ var require_utils = __commonJS({
3304
3340
  }
3305
3341
  return output.join("");
3306
3342
  }
3307
- function normalizeComponentEncoding(component, esc2) {
3308
- const func = esc2 !== true ? escape : unescape;
3309
- if (component.scheme !== void 0) {
3310
- component.scheme = func(component.scheme);
3343
+ var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3344
+ var HOST_DELIM_RE = /[@/?#:]/g;
3345
+ var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
3346
+ function reescapeHostDelimiters(host, isIP) {
3347
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
3348
+ re.lastIndex = 0;
3349
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
3350
+ }
3351
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
3352
+ if (input.indexOf("%") === -1) {
3353
+ return input;
3311
3354
  }
3312
- if (component.userinfo !== void 0) {
3313
- component.userinfo = func(component.userinfo);
3355
+ let output = "";
3356
+ for (let i = 0; i < input.length; i++) {
3357
+ if (input[i] === "%" && i + 2 < input.length) {
3358
+ const hex = input.slice(i + 1, i + 3);
3359
+ if (isHexPair(hex)) {
3360
+ const normalizedHex = hex.toUpperCase();
3361
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3362
+ if (decodeUnreserved && isUnreserved(decoded)) {
3363
+ output += decoded;
3364
+ } else {
3365
+ output += "%" + normalizedHex;
3366
+ }
3367
+ i += 2;
3368
+ continue;
3369
+ }
3370
+ }
3371
+ output += input[i];
3314
3372
  }
3315
- if (component.host !== void 0) {
3316
- component.host = func(component.host);
3373
+ return output;
3374
+ }
3375
+ function normalizePathEncoding(input) {
3376
+ let output = "";
3377
+ for (let i = 0; i < input.length; i++) {
3378
+ const ch = input[i];
3379
+ if (ch === "%" && i + 2 < input.length) {
3380
+ const hex = input.slice(i + 1, i + 3);
3381
+ if (isHexPair(hex)) {
3382
+ const normalizedHex = hex.toUpperCase();
3383
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3384
+ if (decoded !== "." && isUnreserved(decoded)) {
3385
+ output += decoded;
3386
+ } else {
3387
+ output += "%" + normalizedHex;
3388
+ }
3389
+ i += 2;
3390
+ continue;
3391
+ }
3392
+ }
3393
+ if (isPathCharacter(ch)) {
3394
+ output += ch;
3395
+ } else {
3396
+ const code = input.charCodeAt(i);
3397
+ if (code < 128) {
3398
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3399
+ } else if (code < 55296 || code > 57343) {
3400
+ output += percentEncodeNonAscii(code);
3401
+ } else if (code <= 56319 && i + 1 < input.length) {
3402
+ const low = input.charCodeAt(i + 1);
3403
+ if (low >= 56320 && low <= 57343) {
3404
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3405
+ i++;
3406
+ } else {
3407
+ output += percentEncodeNonAscii(65533);
3408
+ }
3409
+ } else {
3410
+ output += percentEncodeNonAscii(65533);
3411
+ }
3412
+ }
3317
3413
  }
3318
- if (component.path !== void 0) {
3319
- component.path = func(component.path);
3414
+ return output;
3415
+ }
3416
+ function serializePathEncoding(input, pathNoScheme = false) {
3417
+ let output = "";
3418
+ let firstSegment = pathNoScheme && input[0] !== "/";
3419
+ for (let i = 0; i < input.length; i++) {
3420
+ const ch = input[i];
3421
+ if (ch === "%" && i + 2 < input.length) {
3422
+ const hex = input.slice(i + 1, i + 3);
3423
+ if (isHexPair(hex)) {
3424
+ output += "%" + hex.toUpperCase();
3425
+ i += 2;
3426
+ continue;
3427
+ }
3428
+ }
3429
+ if (ch === "/") {
3430
+ firstSegment = false;
3431
+ }
3432
+ if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
3433
+ output += ch;
3434
+ } else {
3435
+ const code = input.charCodeAt(i);
3436
+ if (code < 128) {
3437
+ output += BYTE_HEX[code];
3438
+ } else if (code < 55296 || code > 57343) {
3439
+ output += percentEncodeNonAscii(code);
3440
+ } else if (code <= 56319 && i + 1 < input.length) {
3441
+ const low = input.charCodeAt(i + 1);
3442
+ if (low >= 56320 && low <= 57343) {
3443
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3444
+ i++;
3445
+ } else {
3446
+ output += percentEncodeNonAscii(65533);
3447
+ }
3448
+ } else {
3449
+ output += percentEncodeNonAscii(65533);
3450
+ }
3451
+ }
3320
3452
  }
3321
- if (component.query !== void 0) {
3322
- component.query = func(component.query);
3453
+ return output;
3454
+ }
3455
+ function encodeComponent(input, isAllowed) {
3456
+ let output = "";
3457
+ for (let i = 0; i < input.length; i++) {
3458
+ const ch = input[i];
3459
+ if (ch === "%" && i + 2 < input.length) {
3460
+ const hex = input.slice(i + 1, i + 3);
3461
+ if (isHexPair(hex)) {
3462
+ output += "%" + hex.toUpperCase();
3463
+ i += 2;
3464
+ continue;
3465
+ }
3466
+ }
3467
+ if (isAllowed(ch)) {
3468
+ output += ch;
3469
+ } else {
3470
+ const code = input.charCodeAt(i);
3471
+ if (code < 128) {
3472
+ output += BYTE_HEX[code];
3473
+ } else if (code < 55296 || code > 57343) {
3474
+ output += percentEncodeNonAscii(code);
3475
+ } else if (code <= 56319 && i + 1 < input.length) {
3476
+ const low = input.charCodeAt(i + 1);
3477
+ if (low >= 56320 && low <= 57343) {
3478
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3479
+ i++;
3480
+ } else {
3481
+ output += percentEncodeNonAscii(65533);
3482
+ }
3483
+ } else {
3484
+ output += percentEncodeNonAscii(65533);
3485
+ }
3486
+ }
3323
3487
  }
3324
- if (component.fragment !== void 0) {
3325
- component.fragment = func(component.fragment);
3488
+ return output;
3489
+ }
3490
+ function encodeUserinfo(input) {
3491
+ return encodeComponent(input, isUserinfoCharacter);
3492
+ }
3493
+ function encodeQuery(input) {
3494
+ return encodeComponent(input, isQueryFragmentCharacter);
3495
+ }
3496
+ function encodeFragment(input) {
3497
+ return encodeComponent(input, isQueryFragmentCharacter);
3498
+ }
3499
+ function isEscapeSafe(cp) {
3500
+ return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
3501
+ }
3502
+ function normalizeQueryFragmentEncoding(input) {
3503
+ let output = "";
3504
+ for (let i = 0; i < input.length; i++) {
3505
+ const ch = input[i];
3506
+ if (ch === "%" && i + 2 < input.length) {
3507
+ const hex = input.slice(i + 1, i + 3);
3508
+ if (isHexPair(hex)) {
3509
+ const normalizedHex = hex.toUpperCase();
3510
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3511
+ if (isUnreserved(decoded)) {
3512
+ output += decoded;
3513
+ } else {
3514
+ output += "%" + normalizedHex;
3515
+ }
3516
+ i += 2;
3517
+ continue;
3518
+ }
3519
+ }
3520
+ if (isQueryFragmentCharacter(ch)) {
3521
+ output += ch;
3522
+ } else {
3523
+ const code = input.charCodeAt(i);
3524
+ if (code < 128) {
3525
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3526
+ } else if (code < 55296 || code > 57343) {
3527
+ output += percentEncodeNonAscii(code);
3528
+ } else if (code <= 56319 && i + 1 < input.length) {
3529
+ const low = input.charCodeAt(i + 1);
3530
+ if (low >= 56320 && low <= 57343) {
3531
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3532
+ i++;
3533
+ } else {
3534
+ output += percentEncodeNonAscii(65533);
3535
+ }
3536
+ } else {
3537
+ output += percentEncodeNonAscii(65533);
3538
+ }
3539
+ }
3326
3540
  }
3327
- return component;
3541
+ return output;
3542
+ }
3543
+ function escapePreservingEscapes(input) {
3544
+ let output = "";
3545
+ for (let i = 0; i < input.length; i++) {
3546
+ if (input[i] === "%" && i + 2 < input.length) {
3547
+ const hex = input.slice(i + 1, i + 3);
3548
+ if (isHexPair(hex)) {
3549
+ output += "%" + hex.toUpperCase();
3550
+ i += 2;
3551
+ continue;
3552
+ }
3553
+ }
3554
+ output += escape(input[i]);
3555
+ }
3556
+ return output;
3328
3557
  }
3329
3558
  function recomposeAuthority(component) {
3330
3559
  const uriTokens = [];
3331
3560
  if (component.userinfo !== void 0) {
3332
- uriTokens.push(component.userinfo);
3561
+ uriTokens.push(encodeUserinfo(component.userinfo));
3333
3562
  uriTokens.push("@");
3334
3563
  }
3335
3564
  if (component.host !== void 0) {
3336
- let host = unescape(component.host);
3565
+ let host = component.host;
3337
3566
  if (!isIPv4(host)) {
3338
- const ipV6res = normalizeIPv6(host);
3339
- if (ipV6res.isIPV6 === true) {
3567
+ let ipV6res = normalizeIPv6(host);
3568
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
3569
+ host = normalizePercentEncoding(host, true);
3570
+ ipV6res = normalizeIPv6(host);
3571
+ }
3572
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
3340
3573
  host = `[${ipV6res.escapedHost}]`;
3341
3574
  } else {
3342
- host = component.host;
3575
+ host = reescapeHostDelimiters(host, false);
3343
3576
  }
3344
3577
  }
3345
3578
  uriTokens.push(host);
3346
3579
  }
3347
3580
  if (typeof component.port === "number" || typeof component.port === "string") {
3581
+ const port = String(component.port);
3582
+ if (!isPort(port)) {
3583
+ throw new TypeError("URI port is malformed.");
3584
+ }
3348
3585
  uriTokens.push(":");
3349
- uriTokens.push(String(component.port));
3586
+ uriTokens.push(port);
3350
3587
  }
3351
3588
  return uriTokens.length ? uriTokens.join("") : void 0;
3352
3589
  }
3353
3590
  module.exports = {
3354
3591
  nonSimpleDomain,
3355
3592
  recomposeAuthority,
3356
- normalizeComponentEncoding,
3593
+ reescapeHostDelimiters,
3594
+ normalizePercentEncoding,
3595
+ normalizePathEncoding,
3596
+ serializePathEncoding,
3597
+ normalizeQueryFragmentEncoding,
3598
+ encodeUserinfo,
3599
+ encodeQuery,
3600
+ encodeFragment,
3601
+ escapePreservingEscapes,
3357
3602
  removeDotSegments,
3358
3603
  isIPv4,
3359
3604
  isUUID,
@@ -3363,11 +3608,11 @@ var require_utils = __commonJS({
3363
3608
  }
3364
3609
  });
3365
3610
 
3366
- // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
3611
+ // ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js
3367
3612
  var require_schemes = __commonJS({
3368
- "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports$1, module) {
3613
+ "../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3369
3614
  var { isUUID } = require_utils();
3370
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3615
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
3371
3616
  var supportedSchemeNames = (
3372
3617
  /** @type {const} */
3373
3618
  [
@@ -3428,9 +3673,10 @@ var require_schemes = __commonJS({
3428
3673
  wsComponent.secure = void 0;
3429
3674
  }
3430
3675
  if (wsComponent.resourceName) {
3431
- const [path, query] = wsComponent.resourceName.split("?");
3676
+ const queryIndex = wsComponent.resourceName.indexOf("?");
3677
+ const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
3432
3678
  wsComponent.path = path && path !== "/" ? path : void 0;
3433
- wsComponent.query = query;
3679
+ wsComponent.query = queryIndex === -1 ? void 0 : wsComponent.resourceName.slice(queryIndex + 1);
3434
3680
  wsComponent.resourceName = void 0;
3435
3681
  }
3436
3682
  wsComponent.fragment = void 0;
@@ -3442,7 +3688,7 @@ var require_schemes = __commonJS({
3442
3688
  return urnComponent;
3443
3689
  }
3444
3690
  const matches = urnComponent.path.match(URN_REG);
3445
- if (matches) {
3691
+ if (matches && matches[0] === urnComponent.path) {
3446
3692
  const scheme = options.scheme || urnComponent.scheme || "urn";
3447
3693
  urnComponent.nid = matches[1].toLowerCase();
3448
3694
  urnComponent.nss = matches[2];
@@ -3572,15 +3818,24 @@ var require_schemes = __commonJS({
3572
3818
  }
3573
3819
  });
3574
3820
 
3575
- // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js
3821
+ // ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js
3576
3822
  var require_fast_uri = __commonJS({
3577
- "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports$1, module) {
3578
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3823
+ "../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js"(exports, module) {
3824
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3579
3825
  var { SCHEMES, getSchemeHandler } = require_schemes();
3826
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3827
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3828
+ function decodeValidScheme(scheme) {
3829
+ const decodedScheme = unescape(String(scheme));
3830
+ if (!VALID_SCHEME.test(decodedScheme)) {
3831
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
3832
+ }
3833
+ return decodedScheme;
3834
+ }
3580
3835
  function normalize(uri, options) {
3581
3836
  if (typeof uri === "string") {
3582
3837
  uri = /** @type {T} */
3583
- serialize(parse3(uri, options), options);
3838
+ normalizeString(uri, options);
3584
3839
  } else if (typeof uri === "object") {
3585
3840
  uri = /** @type {T} */
3586
3841
  parse3(serialize(uri, options), options);
@@ -3589,7 +3844,34 @@ var require_fast_uri = __commonJS({
3589
3844
  }
3590
3845
  function resolve(baseURI, relativeURI, options) {
3591
3846
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3592
- const resolved = resolveComponent(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true);
3847
+ const {
3848
+ parsed: baseParsed,
3849
+ malformedAuthorityOrPort: baseMalformed,
3850
+ malformedPercentEncoding: baseMalformedPercentEncoding,
3851
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
3852
+ malformedHost: baseMalformedHost,
3853
+ malformedScheme: baseMalformedScheme
3854
+ } = parseWithStatus(baseURI, schemelessOptions);
3855
+ const {
3856
+ parsed: relativeParsed,
3857
+ malformedAuthorityOrPort: relativeMalformed,
3858
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
3859
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
3860
+ malformedHost: relativeMalformedHost,
3861
+ malformedScheme: relativeMalformedScheme
3862
+ } = parseWithStatus(relativeURI, schemelessOptions);
3863
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
3864
+ throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
3865
+ }
3866
+ const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
3867
+ const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
3868
+ const resolvedHost = resolved.host;
3869
+ const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
3870
+ canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
3871
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
3872
+ if (resolved.error && !encodedASCIIHost) {
3873
+ throw new Error(resolved.error);
3874
+ }
3593
3875
  schemelessOptions.skipEscape = true;
3594
3876
  return serialize(resolved, schemelessOptions);
3595
3877
  }
@@ -3647,19 +3929,9 @@ var require_fast_uri = __commonJS({
3647
3929
  return target;
3648
3930
  }
3649
3931
  function equal(uriA, uriB, options) {
3650
- if (typeof uriA === "string") {
3651
- uriA = unescape(uriA);
3652
- uriA = serialize(normalizeComponentEncoding(parse3(uriA, options), true), { ...options, skipEscape: true });
3653
- } else if (typeof uriA === "object") {
3654
- uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3655
- }
3656
- if (typeof uriB === "string") {
3657
- uriB = unescape(uriB);
3658
- uriB = serialize(normalizeComponentEncoding(parse3(uriB, options), true), { ...options, skipEscape: true });
3659
- } else if (typeof uriB === "object") {
3660
- uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3661
- }
3662
- return uriA.toLowerCase() === uriB.toLowerCase();
3932
+ const normalizedA = normalizeComparableURI(uriA, options);
3933
+ const normalizedB = normalizeComparableURI(uriB, options);
3934
+ return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA === normalizedB;
3663
3935
  }
3664
3936
  function serialize(cmpts, opts) {
3665
3937
  const component = {
@@ -3680,19 +3952,22 @@ var require_fast_uri = __commonJS({
3680
3952
  };
3681
3953
  const options = Object.assign({}, opts);
3682
3954
  const uriTokens = [];
3955
+ if (component.scheme) {
3956
+ component.scheme = decodeValidScheme(component.scheme);
3957
+ }
3683
3958
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3684
3959
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
3960
+ const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
3961
+ const pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
3685
3962
  if (component.path !== void 0) {
3686
3963
  if (!options.skipEscape) {
3687
- component.path = escape(component.path);
3688
- if (component.scheme !== void 0) {
3689
- component.path = component.path.split("%3A").join(":");
3690
- }
3964
+ component.path = serializePathEncoding(component.path, pathNoScheme);
3691
3965
  } else {
3692
- component.path = unescape(component.path);
3966
+ component.path = normalizePercentEncoding(component.path);
3693
3967
  }
3694
3968
  }
3695
3969
  if (options.reference !== "suffix" && component.scheme) {
3970
+ component.scheme = decodeValidScheme(component.scheme);
3696
3971
  uriTokens.push(component.scheme, ":");
3697
3972
  }
3698
3973
  const authority = recomposeAuthority(component);
@@ -3710,21 +3985,64 @@ var require_fast_uri = __commonJS({
3710
3985
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3711
3986
  s = removeDotSegments(s);
3712
3987
  }
3988
+ if (pathNoScheme) {
3989
+ s = serializePathEncoding(s, true);
3990
+ }
3713
3991
  if (authority === void 0 && s[0] === "/" && s[1] === "/") {
3714
3992
  s = "/%2F" + s.slice(2);
3715
3993
  }
3716
3994
  uriTokens.push(s);
3717
3995
  }
3718
3996
  if (component.query !== void 0) {
3719
- uriTokens.push("?", component.query);
3997
+ uriTokens.push("?", encodeQuery(component.query));
3720
3998
  }
3721
3999
  if (component.fragment !== void 0) {
3722
- uriTokens.push("#", component.fragment);
4000
+ uriTokens.push("#", encodeFragment(component.fragment));
3723
4001
  }
3724
4002
  return uriTokens.join("");
3725
4003
  }
3726
4004
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3727
- function parse3(uri, opts) {
4005
+ var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
4006
+ var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
4007
+ function getParseError(parsed, matches) {
4008
+ if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
4009
+ return 'URI path must start with "/" when authority is present.';
4010
+ }
4011
+ if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
4012
+ return "URI port is malformed.";
4013
+ }
4014
+ return void 0;
4015
+ }
4016
+ function hasMalformedPercentEncoding(component) {
4017
+ if (component === void 0) return false;
4018
+ let percent = component.indexOf("%");
4019
+ while (percent !== -1) {
4020
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
4021
+ return true;
4022
+ }
4023
+ percent = component.indexOf("%", percent + 3);
4024
+ }
4025
+ return false;
4026
+ }
4027
+ function isIPLiteral(host) {
4028
+ return host[0] === "[" && host[host.length - 1] === "]";
4029
+ }
4030
+ function hasMalformedComponentPercentEncoding(matches) {
4031
+ const host = matches[4];
4032
+ return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4033
+ }
4034
+ function canonicalizeHost(parsed, options, schemeHandler, isIP) {
4035
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4036
+ try {
4037
+ parsed.host = new URL("http://" + parsed.host).hostname;
4038
+ } catch (e) {
4039
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
4040
+ return true;
4041
+ }
4042
+ }
4043
+ return false;
4044
+ }
4045
+ function parseWithStatus(uri, opts) {
3728
4046
  const options = Object.assign({}, opts);
3729
4047
  const parsed = {
3730
4048
  scheme: void 0,
@@ -3735,6 +4053,12 @@ var require_fast_uri = __commonJS({
3735
4053
  query: void 0,
3736
4054
  fragment: void 0
3737
4055
  };
4056
+ let malformedAuthorityOrPort = false;
4057
+ let malformedPercentEncoding = false;
4058
+ let malformedSchemeSpecific = false;
4059
+ let malformedHost = false;
4060
+ let malformedIPLiteral = false;
4061
+ let malformedScheme = false;
3738
4062
  let isIP = false;
3739
4063
  if (options.reference === "suffix") {
3740
4064
  if (options.scheme) {
@@ -3743,6 +4067,25 @@ var require_fast_uri = __commonJS({
3743
4067
  uri = "//" + uri;
3744
4068
  }
3745
4069
  }
4070
+ const authorityMatch = uri.match(AUTHORITY_PREFIX);
4071
+ if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
4072
+ parsed.error = "URI authority must not contain a literal backslash.";
4073
+ malformedAuthorityOrPort = true;
4074
+ }
4075
+ const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
4076
+ if (introducerMatch !== null) {
4077
+ const region = introducerMatch[1];
4078
+ const normalizedRegion = region.replace(/[\t\n\r]/g, "");
4079
+ if (normalizedRegion.length >= 2) {
4080
+ if (normalizedRegion.slice(0, 2) !== "//") {
4081
+ parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
4082
+ malformedAuthorityOrPort = true;
4083
+ } else if (region.length !== normalizedRegion.length) {
4084
+ parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
4085
+ malformedAuthorityOrPort = true;
4086
+ }
4087
+ }
4088
+ }
3746
4089
  const matches = uri.match(URI_PARSE);
3747
4090
  if (matches) {
3748
4091
  parsed.scheme = matches[1];
@@ -3752,15 +4095,40 @@ var require_fast_uri = __commonJS({
3752
4095
  parsed.path = matches[6] || "";
3753
4096
  parsed.query = matches[7];
3754
4097
  parsed.fragment = matches[8];
4098
+ if (parsed.scheme !== void 0) {
4099
+ const decodedScheme = unescape(parsed.scheme);
4100
+ if (VALID_SCHEME.test(decodedScheme)) {
4101
+ parsed.scheme = decodedScheme.toLowerCase();
4102
+ } else {
4103
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
4104
+ malformedScheme = true;
4105
+ }
4106
+ }
4107
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
4108
+ if (malformedPercentEncoding) {
4109
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
4110
+ }
3755
4111
  if (isNaN(parsed.port)) {
3756
4112
  parsed.port = matches[5];
3757
4113
  }
4114
+ const parseError = getParseError(parsed, matches);
4115
+ if (parseError !== void 0) {
4116
+ parsed.error = parsed.error || parseError;
4117
+ malformedAuthorityOrPort = true;
4118
+ }
3758
4119
  if (parsed.host) {
3759
4120
  const ipv4result = isIPv4(parsed.host);
3760
4121
  if (ipv4result === false) {
4122
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4123
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
3761
4124
  const ipv6result = normalizeIPv6(parsed.host);
3762
- parsed.host = ipv6result.host.toLowerCase();
3763
- isIP = ipv6result.isIPV6;
4125
+ isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4126
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4127
+ parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4128
+ if (malformedIPLiteral) {
4129
+ parsed.error = parsed.error || "URI host is malformed.";
4130
+ malformedAuthorityOrPort = true;
4131
+ }
3764
4132
  } else {
3765
4133
  isIP = true;
3766
4134
  }
@@ -3778,38 +4146,66 @@ var require_fast_uri = __commonJS({
3778
4146
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3779
4147
  }
3780
4148
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
3781
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3782
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3783
- try {
3784
- parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
3785
- } catch (e) {
3786
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3787
- }
3788
- }
4149
+ if (!malformedIPLiteral) {
4150
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
3789
4151
  }
3790
4152
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3791
4153
  if (uri.indexOf("%") !== -1) {
3792
- if (parsed.scheme !== void 0) {
3793
- parsed.scheme = unescape(parsed.scheme);
3794
- }
3795
- if (parsed.host !== void 0) {
3796
- parsed.host = unescape(parsed.host);
4154
+ if (parsed.host !== void 0 && !malformedIPLiteral) {
4155
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4156
+ parsed.host = reescapeHostDelimiters(host, isIP);
3797
4157
  }
3798
4158
  }
3799
4159
  if (parsed.path) {
3800
- parsed.path = escape(unescape(parsed.path));
4160
+ parsed.path = normalizePathEncoding(parsed.path);
4161
+ }
4162
+ if (parsed.query) {
4163
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
3801
4164
  }
3802
4165
  if (parsed.fragment) {
3803
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
4166
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
3804
4167
  }
3805
4168
  }
3806
4169
  if (schemeHandler && schemeHandler.parse) {
3807
4170
  schemeHandler.parse(parsed, options);
4171
+ if (schemeHandler === SCHEMES.urn && parsed.nid === void 0) {
4172
+ malformedSchemeSpecific = true;
4173
+ }
3808
4174
  }
3809
4175
  } else {
3810
4176
  parsed.error = parsed.error || "URI can not be parsed.";
3811
4177
  }
3812
- return parsed;
4178
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
4179
+ }
4180
+ function parse3(uri, opts) {
4181
+ return parseWithStatus(uri, opts).parsed;
4182
+ }
4183
+ function normalizeString(uri, opts) {
4184
+ return normalizeStringWithStatus(uri, opts).normalized;
4185
+ }
4186
+ function normalizeStringWithStatus(uri, opts) {
4187
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
4188
+ return {
4189
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
4190
+ malformedAuthorityOrPort,
4191
+ malformedPercentEncoding,
4192
+ malformedSchemeSpecific,
4193
+ malformedHost,
4194
+ malformedScheme
4195
+ };
4196
+ }
4197
+ function normalizeComparableURI(uri, opts) {
4198
+ if (typeof uri !== "string" && typeof uri !== "object") {
4199
+ return void 0;
4200
+ }
4201
+ let value;
4202
+ try {
4203
+ value = typeof uri === "string" ? uri : serialize(uri, opts);
4204
+ } catch {
4205
+ return void 0;
4206
+ }
4207
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
4208
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? void 0 : normalized;
3813
4209
  }
3814
4210
  var fastUri = {
3815
4211
  SCHEMES,
@@ -3828,40 +4224,40 @@ var require_fast_uri = __commonJS({
3828
4224
 
3829
4225
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
3830
4226
  var require_uri = __commonJS({
3831
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports$1) {
3832
- Object.defineProperty(exports$1, "__esModule", { value: true });
4227
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
4228
+ Object.defineProperty(exports, "__esModule", { value: true });
3833
4229
  var uri = require_fast_uri();
3834
4230
  uri.code = 'require("ajv/dist/runtime/uri").default';
3835
- exports$1.default = uri;
4231
+ exports.default = uri;
3836
4232
  }
3837
4233
  });
3838
4234
 
3839
4235
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
3840
4236
  var require_core = __commonJS({
3841
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports$1) {
3842
- Object.defineProperty(exports$1, "__esModule", { value: true });
3843
- exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
4237
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports) {
4238
+ Object.defineProperty(exports, "__esModule", { value: true });
4239
+ exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
3844
4240
  var validate_1 = require_validate();
3845
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
4241
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
3846
4242
  return validate_1.KeywordCxt;
3847
4243
  } });
3848
4244
  var codegen_1 = require_codegen();
3849
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
4245
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
3850
4246
  return codegen_1._;
3851
4247
  } });
3852
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
4248
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
3853
4249
  return codegen_1.str;
3854
4250
  } });
3855
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
4251
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
3856
4252
  return codegen_1.stringify;
3857
4253
  } });
3858
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
4254
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
3859
4255
  return codegen_1.nil;
3860
4256
  } });
3861
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
4257
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
3862
4258
  return codegen_1.Name;
3863
4259
  } });
3864
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
4260
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
3865
4261
  return codegen_1.CodeGen;
3866
4262
  } });
3867
4263
  var validation_error_1 = require_validation_error();
@@ -4315,7 +4711,7 @@ var require_core = __commonJS({
4315
4711
  };
4316
4712
  Ajv2.ValidationError = validation_error_1.default;
4317
4713
  Ajv2.MissingRefError = ref_error_1.default;
4318
- exports$1.default = Ajv2;
4714
+ exports.default = Ajv2;
4319
4715
  function checkOptions(checkOpts, options, msg, log = "error") {
4320
4716
  for (const key in checkOpts) {
4321
4717
  const opt = key;
@@ -4448,23 +4844,23 @@ var require_core = __commonJS({
4448
4844
 
4449
4845
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
4450
4846
  var require_id = __commonJS({
4451
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports$1) {
4452
- Object.defineProperty(exports$1, "__esModule", { value: true });
4847
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
4848
+ Object.defineProperty(exports, "__esModule", { value: true });
4453
4849
  var def = {
4454
4850
  keyword: "id",
4455
4851
  code() {
4456
4852
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
4457
4853
  }
4458
4854
  };
4459
- exports$1.default = def;
4855
+ exports.default = def;
4460
4856
  }
4461
4857
  });
4462
4858
 
4463
4859
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
4464
4860
  var require_ref = __commonJS({
4465
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports$1) {
4466
- Object.defineProperty(exports$1, "__esModule", { value: true });
4467
- exports$1.callRef = exports$1.getValidate = void 0;
4861
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
4862
+ Object.defineProperty(exports, "__esModule", { value: true });
4863
+ exports.callRef = exports.getValidate = void 0;
4468
4864
  var ref_error_1 = require_ref_error();
4469
4865
  var code_1 = require_code2();
4470
4866
  var codegen_1 = require_codegen();
@@ -4515,7 +4911,7 @@ var require_ref = __commonJS({
4515
4911
  const { gen } = cxt;
4516
4912
  return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
4517
4913
  }
4518
- exports$1.getValidate = getValidate;
4914
+ exports.getValidate = getValidate;
4519
4915
  function callRef(cxt, v, sch, $async) {
4520
4916
  const { gen, it } = cxt;
4521
4917
  const { allErrors, schemaEnv: env, opts } = it;
@@ -4576,15 +4972,15 @@ var require_ref = __commonJS({
4576
4972
  }
4577
4973
  }
4578
4974
  }
4579
- exports$1.callRef = callRef;
4580
- exports$1.default = def;
4975
+ exports.callRef = callRef;
4976
+ exports.default = def;
4581
4977
  }
4582
4978
  });
4583
4979
 
4584
4980
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
4585
4981
  var require_core2 = __commonJS({
4586
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports$1) {
4587
- Object.defineProperty(exports$1, "__esModule", { value: true });
4982
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
4983
+ Object.defineProperty(exports, "__esModule", { value: true });
4588
4984
  var id_1 = require_id();
4589
4985
  var ref_1 = require_ref();
4590
4986
  var core = [
@@ -4597,14 +4993,14 @@ var require_core2 = __commonJS({
4597
4993
  id_1.default,
4598
4994
  ref_1.default
4599
4995
  ];
4600
- exports$1.default = core;
4996
+ exports.default = core;
4601
4997
  }
4602
4998
  });
4603
4999
 
4604
5000
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4605
5001
  var require_limitNumber = __commonJS({
4606
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports$1) {
4607
- Object.defineProperty(exports$1, "__esModule", { value: true });
5002
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
5003
+ Object.defineProperty(exports, "__esModule", { value: true });
4608
5004
  var codegen_1 = require_codegen();
4609
5005
  var ops = codegen_1.operators;
4610
5006
  var KWDs = {
@@ -4628,14 +5024,14 @@ var require_limitNumber = __commonJS({
4628
5024
  cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
4629
5025
  }
4630
5026
  };
4631
- exports$1.default = def;
5027
+ exports.default = def;
4632
5028
  }
4633
5029
  });
4634
5030
 
4635
5031
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4636
5032
  var require_multipleOf = __commonJS({
4637
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports$1) {
4638
- Object.defineProperty(exports$1, "__esModule", { value: true });
5033
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
5034
+ Object.defineProperty(exports, "__esModule", { value: true });
4639
5035
  var codegen_1 = require_codegen();
4640
5036
  var error2 = {
4641
5037
  message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
@@ -4655,14 +5051,14 @@ var require_multipleOf = __commonJS({
4655
5051
  cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
4656
5052
  }
4657
5053
  };
4658
- exports$1.default = def;
5054
+ exports.default = def;
4659
5055
  }
4660
5056
  });
4661
5057
 
4662
5058
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
4663
5059
  var require_ucs2length = __commonJS({
4664
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports$1) {
4665
- Object.defineProperty(exports$1, "__esModule", { value: true });
5060
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
5061
+ Object.defineProperty(exports, "__esModule", { value: true });
4666
5062
  function ucs2length(str) {
4667
5063
  const len = str.length;
4668
5064
  let length = 0;
@@ -4679,15 +5075,15 @@ var require_ucs2length = __commonJS({
4679
5075
  }
4680
5076
  return length;
4681
5077
  }
4682
- exports$1.default = ucs2length;
5078
+ exports.default = ucs2length;
4683
5079
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
4684
5080
  }
4685
5081
  });
4686
5082
 
4687
5083
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4688
5084
  var require_limitLength = __commonJS({
4689
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports$1) {
4690
- Object.defineProperty(exports$1, "__esModule", { value: true });
5085
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
5086
+ Object.defineProperty(exports, "__esModule", { value: true });
4691
5087
  var codegen_1 = require_codegen();
4692
5088
  var util_1 = require_util();
4693
5089
  var ucs2length_1 = require_ucs2length();
@@ -4711,14 +5107,14 @@ var require_limitLength = __commonJS({
4711
5107
  cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
4712
5108
  }
4713
5109
  };
4714
- exports$1.default = def;
5110
+ exports.default = def;
4715
5111
  }
4716
5112
  });
4717
5113
 
4718
5114
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
4719
5115
  var require_pattern = __commonJS({
4720
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports$1) {
4721
- Object.defineProperty(exports$1, "__esModule", { value: true });
5116
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
5117
+ Object.defineProperty(exports, "__esModule", { value: true });
4722
5118
  var code_1 = require_code2();
4723
5119
  var util_1 = require_util();
4724
5120
  var codegen_1 = require_codegen();
@@ -4747,14 +5143,14 @@ var require_pattern = __commonJS({
4747
5143
  }
4748
5144
  }
4749
5145
  };
4750
- exports$1.default = def;
5146
+ exports.default = def;
4751
5147
  }
4752
5148
  });
4753
5149
 
4754
5150
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4755
5151
  var require_limitProperties = __commonJS({
4756
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports$1) {
4757
- Object.defineProperty(exports$1, "__esModule", { value: true });
5152
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
5153
+ Object.defineProperty(exports, "__esModule", { value: true });
4758
5154
  var codegen_1 = require_codegen();
4759
5155
  var error2 = {
4760
5156
  message({ keyword, schemaCode }) {
@@ -4775,14 +5171,14 @@ var require_limitProperties = __commonJS({
4775
5171
  cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
4776
5172
  }
4777
5173
  };
4778
- exports$1.default = def;
5174
+ exports.default = def;
4779
5175
  }
4780
5176
  });
4781
5177
 
4782
5178
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
4783
5179
  var require_required = __commonJS({
4784
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports$1) {
4785
- Object.defineProperty(exports$1, "__esModule", { value: true });
5180
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
5181
+ Object.defineProperty(exports, "__esModule", { value: true });
4786
5182
  var code_1 = require_code2();
4787
5183
  var codegen_1 = require_codegen();
4788
5184
  var util_1 = require_util();
@@ -4856,14 +5252,14 @@ var require_required = __commonJS({
4856
5252
  }
4857
5253
  }
4858
5254
  };
4859
- exports$1.default = def;
5255
+ exports.default = def;
4860
5256
  }
4861
5257
  });
4862
5258
 
4863
5259
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4864
5260
  var require_limitItems = __commonJS({
4865
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports$1) {
4866
- Object.defineProperty(exports$1, "__esModule", { value: true });
5261
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
5262
+ Object.defineProperty(exports, "__esModule", { value: true });
4867
5263
  var codegen_1 = require_codegen();
4868
5264
  var error2 = {
4869
5265
  message({ keyword, schemaCode }) {
@@ -4884,24 +5280,24 @@ var require_limitItems = __commonJS({
4884
5280
  cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
4885
5281
  }
4886
5282
  };
4887
- exports$1.default = def;
5283
+ exports.default = def;
4888
5284
  }
4889
5285
  });
4890
5286
 
4891
5287
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
4892
5288
  var require_equal = __commonJS({
4893
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports$1) {
4894
- Object.defineProperty(exports$1, "__esModule", { value: true });
5289
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
5290
+ Object.defineProperty(exports, "__esModule", { value: true });
4895
5291
  var equal = require_fast_deep_equal();
4896
5292
  equal.code = 'require("ajv/dist/runtime/equal").default';
4897
- exports$1.default = equal;
5293
+ exports.default = equal;
4898
5294
  }
4899
5295
  });
4900
5296
 
4901
5297
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4902
5298
  var require_uniqueItems = __commonJS({
4903
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports$1) {
4904
- Object.defineProperty(exports$1, "__esModule", { value: true });
5299
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
5300
+ Object.defineProperty(exports, "__esModule", { value: true });
4905
5301
  var dataType_1 = require_dataType();
4906
5302
  var codegen_1 = require_codegen();
4907
5303
  var util_1 = require_util();
@@ -4960,14 +5356,14 @@ var require_uniqueItems = __commonJS({
4960
5356
  }
4961
5357
  }
4962
5358
  };
4963
- exports$1.default = def;
5359
+ exports.default = def;
4964
5360
  }
4965
5361
  });
4966
5362
 
4967
5363
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
4968
5364
  var require_const = __commonJS({
4969
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports$1) {
4970
- Object.defineProperty(exports$1, "__esModule", { value: true });
5365
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
5366
+ Object.defineProperty(exports, "__esModule", { value: true });
4971
5367
  var codegen_1 = require_codegen();
4972
5368
  var util_1 = require_util();
4973
5369
  var equal_1 = require_equal();
@@ -4988,14 +5384,14 @@ var require_const = __commonJS({
4988
5384
  }
4989
5385
  }
4990
5386
  };
4991
- exports$1.default = def;
5387
+ exports.default = def;
4992
5388
  }
4993
5389
  });
4994
5390
 
4995
5391
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
4996
5392
  var require_enum = __commonJS({
4997
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports$1) {
4998
- Object.defineProperty(exports$1, "__esModule", { value: true });
5393
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
5394
+ Object.defineProperty(exports, "__esModule", { value: true });
4999
5395
  var codegen_1 = require_codegen();
5000
5396
  var util_1 = require_util();
5001
5397
  var equal_1 = require_equal();
@@ -5036,14 +5432,14 @@ var require_enum = __commonJS({
5036
5432
  }
5037
5433
  }
5038
5434
  };
5039
- exports$1.default = def;
5435
+ exports.default = def;
5040
5436
  }
5041
5437
  });
5042
5438
 
5043
5439
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
5044
5440
  var require_validation = __commonJS({
5045
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports$1) {
5046
- Object.defineProperty(exports$1, "__esModule", { value: true });
5441
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
5442
+ Object.defineProperty(exports, "__esModule", { value: true });
5047
5443
  var limitNumber_1 = require_limitNumber();
5048
5444
  var multipleOf_1 = require_multipleOf();
5049
5445
  var limitLength_1 = require_limitLength();
@@ -5073,15 +5469,15 @@ var require_validation = __commonJS({
5073
5469
  const_1.default,
5074
5470
  enum_1.default
5075
5471
  ];
5076
- exports$1.default = validation;
5472
+ exports.default = validation;
5077
5473
  }
5078
5474
  });
5079
5475
 
5080
5476
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5081
5477
  var require_additionalItems = __commonJS({
5082
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports$1) {
5083
- Object.defineProperty(exports$1, "__esModule", { value: true });
5084
- exports$1.validateAdditionalItems = void 0;
5478
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
5479
+ Object.defineProperty(exports, "__esModule", { value: true });
5480
+ exports.validateAdditionalItems = void 0;
5085
5481
  var codegen_1 = require_codegen();
5086
5482
  var util_1 = require_util();
5087
5483
  var error2 = {
@@ -5124,16 +5520,16 @@ var require_additionalItems = __commonJS({
5124
5520
  });
5125
5521
  }
5126
5522
  }
5127
- exports$1.validateAdditionalItems = validateAdditionalItems;
5128
- exports$1.default = def;
5523
+ exports.validateAdditionalItems = validateAdditionalItems;
5524
+ exports.default = def;
5129
5525
  }
5130
5526
  });
5131
5527
 
5132
5528
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
5133
5529
  var require_items = __commonJS({
5134
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports$1) {
5135
- Object.defineProperty(exports$1, "__esModule", { value: true });
5136
- exports$1.validateTuple = void 0;
5530
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
5531
+ Object.defineProperty(exports, "__esModule", { value: true });
5532
+ exports.validateTuple = void 0;
5137
5533
  var codegen_1 = require_codegen();
5138
5534
  var util_1 = require_util();
5139
5535
  var code_1 = require_code2();
@@ -5180,15 +5576,15 @@ var require_items = __commonJS({
5180
5576
  }
5181
5577
  }
5182
5578
  }
5183
- exports$1.validateTuple = validateTuple;
5184
- exports$1.default = def;
5579
+ exports.validateTuple = validateTuple;
5580
+ exports.default = def;
5185
5581
  }
5186
5582
  });
5187
5583
 
5188
5584
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5189
5585
  var require_prefixItems = __commonJS({
5190
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports$1) {
5191
- Object.defineProperty(exports$1, "__esModule", { value: true });
5586
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
5587
+ Object.defineProperty(exports, "__esModule", { value: true });
5192
5588
  var items_1 = require_items();
5193
5589
  var def = {
5194
5590
  keyword: "prefixItems",
@@ -5197,14 +5593,14 @@ var require_prefixItems = __commonJS({
5197
5593
  before: "uniqueItems",
5198
5594
  code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
5199
5595
  };
5200
- exports$1.default = def;
5596
+ exports.default = def;
5201
5597
  }
5202
5598
  });
5203
5599
 
5204
5600
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5205
5601
  var require_items2020 = __commonJS({
5206
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports$1) {
5207
- Object.defineProperty(exports$1, "__esModule", { value: true });
5602
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
5603
+ Object.defineProperty(exports, "__esModule", { value: true });
5208
5604
  var codegen_1 = require_codegen();
5209
5605
  var util_1 = require_util();
5210
5606
  var code_1 = require_code2();
@@ -5231,14 +5627,14 @@ var require_items2020 = __commonJS({
5231
5627
  cxt.ok((0, code_1.validateArray)(cxt));
5232
5628
  }
5233
5629
  };
5234
- exports$1.default = def;
5630
+ exports.default = def;
5235
5631
  }
5236
5632
  });
5237
5633
 
5238
5634
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
5239
5635
  var require_contains = __commonJS({
5240
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports$1) {
5241
- Object.defineProperty(exports$1, "__esModule", { value: true });
5636
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
5637
+ Object.defineProperty(exports, "__esModule", { value: true });
5242
5638
  var codegen_1 = require_codegen();
5243
5639
  var util_1 = require_util();
5244
5640
  var error2 = {
@@ -5324,19 +5720,19 @@ var require_contains = __commonJS({
5324
5720
  }
5325
5721
  }
5326
5722
  };
5327
- exports$1.default = def;
5723
+ exports.default = def;
5328
5724
  }
5329
5725
  });
5330
5726
 
5331
5727
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5332
5728
  var require_dependencies = __commonJS({
5333
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports$1) {
5334
- Object.defineProperty(exports$1, "__esModule", { value: true });
5335
- exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
5729
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
5730
+ Object.defineProperty(exports, "__esModule", { value: true });
5731
+ exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
5336
5732
  var codegen_1 = require_codegen();
5337
5733
  var util_1 = require_util();
5338
5734
  var code_1 = require_code2();
5339
- exports$1.error = {
5735
+ exports.error = {
5340
5736
  message: ({ params: { property, depsCount, deps } }) => {
5341
5737
  const property_ies = depsCount === 1 ? "property" : "properties";
5342
5738
  return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
@@ -5351,7 +5747,7 @@ var require_dependencies = __commonJS({
5351
5747
  keyword: "dependencies",
5352
5748
  type: "object",
5353
5749
  schemaType: "object",
5354
- error: exports$1.error,
5750
+ error: exports.error,
5355
5751
  code(cxt) {
5356
5752
  const [propDeps, schDeps] = splitDependencies(cxt);
5357
5753
  validatePropertyDeps(cxt, propDeps);
@@ -5397,7 +5793,7 @@ var require_dependencies = __commonJS({
5397
5793
  }
5398
5794
  }
5399
5795
  }
5400
- exports$1.validatePropertyDeps = validatePropertyDeps;
5796
+ exports.validatePropertyDeps = validatePropertyDeps;
5401
5797
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
5402
5798
  const { gen, data, keyword, it } = cxt;
5403
5799
  const valid = gen.name("valid");
@@ -5416,15 +5812,15 @@ var require_dependencies = __commonJS({
5416
5812
  cxt.ok(valid);
5417
5813
  }
5418
5814
  }
5419
- exports$1.validateSchemaDeps = validateSchemaDeps;
5420
- exports$1.default = def;
5815
+ exports.validateSchemaDeps = validateSchemaDeps;
5816
+ exports.default = def;
5421
5817
  }
5422
5818
  });
5423
5819
 
5424
5820
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5425
5821
  var require_propertyNames = __commonJS({
5426
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports$1) {
5427
- Object.defineProperty(exports$1, "__esModule", { value: true });
5822
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
5823
+ Object.defineProperty(exports, "__esModule", { value: true });
5428
5824
  var codegen_1 = require_codegen();
5429
5825
  var util_1 = require_util();
5430
5826
  var error2 = {
@@ -5459,14 +5855,14 @@ var require_propertyNames = __commonJS({
5459
5855
  cxt.ok(valid);
5460
5856
  }
5461
5857
  };
5462
- exports$1.default = def;
5858
+ exports.default = def;
5463
5859
  }
5464
5860
  });
5465
5861
 
5466
5862
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5467
5863
  var require_additionalProperties = __commonJS({
5468
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports$1) {
5469
- Object.defineProperty(exports$1, "__esModule", { value: true });
5864
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
5865
+ Object.defineProperty(exports, "__esModule", { value: true });
5470
5866
  var code_1 = require_code2();
5471
5867
  var codegen_1 = require_codegen();
5472
5868
  var names_1 = require_names();
@@ -5564,14 +5960,14 @@ var require_additionalProperties = __commonJS({
5564
5960
  }
5565
5961
  }
5566
5962
  };
5567
- exports$1.default = def;
5963
+ exports.default = def;
5568
5964
  }
5569
5965
  });
5570
5966
 
5571
5967
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
5572
5968
  var require_properties = __commonJS({
5573
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports$1) {
5574
- Object.defineProperty(exports$1, "__esModule", { value: true });
5969
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
5970
+ Object.defineProperty(exports, "__esModule", { value: true });
5575
5971
  var validate_1 = require_validate();
5576
5972
  var code_1 = require_code2();
5577
5973
  var util_1 = require_util();
@@ -5621,14 +6017,14 @@ var require_properties = __commonJS({
5621
6017
  }
5622
6018
  }
5623
6019
  };
5624
- exports$1.default = def;
6020
+ exports.default = def;
5625
6021
  }
5626
6022
  });
5627
6023
 
5628
6024
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5629
6025
  var require_patternProperties = __commonJS({
5630
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports$1) {
5631
- Object.defineProperty(exports$1, "__esModule", { value: true });
6026
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
6027
+ Object.defineProperty(exports, "__esModule", { value: true });
5632
6028
  var code_1 = require_code2();
5633
6029
  var codegen_1 = require_codegen();
5634
6030
  var util_1 = require_util();
@@ -5694,14 +6090,14 @@ var require_patternProperties = __commonJS({
5694
6090
  }
5695
6091
  }
5696
6092
  };
5697
- exports$1.default = def;
6093
+ exports.default = def;
5698
6094
  }
5699
6095
  });
5700
6096
 
5701
6097
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
5702
6098
  var require_not = __commonJS({
5703
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports$1) {
5704
- Object.defineProperty(exports$1, "__esModule", { value: true });
6099
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
6100
+ Object.defineProperty(exports, "__esModule", { value: true });
5705
6101
  var util_1 = require_util();
5706
6102
  var def = {
5707
6103
  keyword: "not",
@@ -5724,14 +6120,14 @@ var require_not = __commonJS({
5724
6120
  },
5725
6121
  error: { message: "must NOT be valid" }
5726
6122
  };
5727
- exports$1.default = def;
6123
+ exports.default = def;
5728
6124
  }
5729
6125
  });
5730
6126
 
5731
6127
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5732
6128
  var require_anyOf = __commonJS({
5733
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports$1) {
5734
- Object.defineProperty(exports$1, "__esModule", { value: true });
6129
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
6130
+ Object.defineProperty(exports, "__esModule", { value: true });
5735
6131
  var code_1 = require_code2();
5736
6132
  var def = {
5737
6133
  keyword: "anyOf",
@@ -5740,14 +6136,14 @@ var require_anyOf = __commonJS({
5740
6136
  code: code_1.validateUnion,
5741
6137
  error: { message: "must match a schema in anyOf" }
5742
6138
  };
5743
- exports$1.default = def;
6139
+ exports.default = def;
5744
6140
  }
5745
6141
  });
5746
6142
 
5747
6143
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5748
6144
  var require_oneOf = __commonJS({
5749
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports$1) {
5750
- Object.defineProperty(exports$1, "__esModule", { value: true });
6145
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
6146
+ Object.defineProperty(exports, "__esModule", { value: true });
5751
6147
  var codegen_1 = require_codegen();
5752
6148
  var util_1 = require_util();
5753
6149
  var error2 = {
@@ -5797,14 +6193,14 @@ var require_oneOf = __commonJS({
5797
6193
  }
5798
6194
  }
5799
6195
  };
5800
- exports$1.default = def;
6196
+ exports.default = def;
5801
6197
  }
5802
6198
  });
5803
6199
 
5804
6200
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5805
6201
  var require_allOf = __commonJS({
5806
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports$1) {
5807
- Object.defineProperty(exports$1, "__esModule", { value: true });
6202
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
6203
+ Object.defineProperty(exports, "__esModule", { value: true });
5808
6204
  var util_1 = require_util();
5809
6205
  var def = {
5810
6206
  keyword: "allOf",
@@ -5823,14 +6219,14 @@ var require_allOf = __commonJS({
5823
6219
  });
5824
6220
  }
5825
6221
  };
5826
- exports$1.default = def;
6222
+ exports.default = def;
5827
6223
  }
5828
6224
  });
5829
6225
 
5830
6226
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
5831
6227
  var require_if = __commonJS({
5832
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports$1) {
5833
- Object.defineProperty(exports$1, "__esModule", { value: true });
6228
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
6229
+ Object.defineProperty(exports, "__esModule", { value: true });
5834
6230
  var codegen_1 = require_codegen();
5835
6231
  var util_1 = require_util();
5836
6232
  var error2 = {
@@ -5891,14 +6287,14 @@ var require_if = __commonJS({
5891
6287
  const schema = it.schema[keyword];
5892
6288
  return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
5893
6289
  }
5894
- exports$1.default = def;
6290
+ exports.default = def;
5895
6291
  }
5896
6292
  });
5897
6293
 
5898
6294
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5899
6295
  var require_thenElse = __commonJS({
5900
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports$1) {
5901
- Object.defineProperty(exports$1, "__esModule", { value: true });
6296
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
6297
+ Object.defineProperty(exports, "__esModule", { value: true });
5902
6298
  var util_1 = require_util();
5903
6299
  var def = {
5904
6300
  keyword: ["then", "else"],
@@ -5908,14 +6304,14 @@ var require_thenElse = __commonJS({
5908
6304
  (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
5909
6305
  }
5910
6306
  };
5911
- exports$1.default = def;
6307
+ exports.default = def;
5912
6308
  }
5913
6309
  });
5914
6310
 
5915
6311
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
5916
6312
  var require_applicator = __commonJS({
5917
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports$1) {
5918
- Object.defineProperty(exports$1, "__esModule", { value: true });
6313
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
6314
+ Object.defineProperty(exports, "__esModule", { value: true });
5919
6315
  var additionalItems_1 = require_additionalItems();
5920
6316
  var prefixItems_1 = require_prefixItems();
5921
6317
  var items_1 = require_items();
@@ -5955,14 +6351,14 @@ var require_applicator = __commonJS({
5955
6351
  applicator.push(contains_1.default);
5956
6352
  return applicator;
5957
6353
  }
5958
- exports$1.default = getApplicator;
6354
+ exports.default = getApplicator;
5959
6355
  }
5960
6356
  });
5961
6357
 
5962
6358
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
5963
6359
  var require_format = __commonJS({
5964
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports$1) {
5965
- Object.defineProperty(exports$1, "__esModule", { value: true });
6360
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
6361
+ Object.defineProperty(exports, "__esModule", { value: true });
5966
6362
  var codegen_1 = require_codegen();
5967
6363
  var error2 = {
5968
6364
  message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
@@ -6044,26 +6440,26 @@ var require_format = __commonJS({
6044
6440
  }
6045
6441
  }
6046
6442
  };
6047
- exports$1.default = def;
6443
+ exports.default = def;
6048
6444
  }
6049
6445
  });
6050
6446
 
6051
6447
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
6052
6448
  var require_format2 = __commonJS({
6053
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports$1) {
6054
- Object.defineProperty(exports$1, "__esModule", { value: true });
6449
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
6450
+ Object.defineProperty(exports, "__esModule", { value: true });
6055
6451
  var format_1 = require_format();
6056
6452
  var format = [format_1.default];
6057
- exports$1.default = format;
6453
+ exports.default = format;
6058
6454
  }
6059
6455
  });
6060
6456
 
6061
6457
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
6062
6458
  var require_metadata = __commonJS({
6063
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports$1) {
6064
- Object.defineProperty(exports$1, "__esModule", { value: true });
6065
- exports$1.contentVocabulary = exports$1.metadataVocabulary = void 0;
6066
- exports$1.metadataVocabulary = [
6459
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
6460
+ Object.defineProperty(exports, "__esModule", { value: true });
6461
+ exports.contentVocabulary = exports.metadataVocabulary = void 0;
6462
+ exports.metadataVocabulary = [
6067
6463
  "title",
6068
6464
  "description",
6069
6465
  "default",
@@ -6072,7 +6468,7 @@ var require_metadata = __commonJS({
6072
6468
  "writeOnly",
6073
6469
  "examples"
6074
6470
  ];
6075
- exports$1.contentVocabulary = [
6471
+ exports.contentVocabulary = [
6076
6472
  "contentMediaType",
6077
6473
  "contentEncoding",
6078
6474
  "contentSchema"
@@ -6082,8 +6478,8 @@ var require_metadata = __commonJS({
6082
6478
 
6083
6479
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
6084
6480
  var require_draft7 = __commonJS({
6085
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports$1) {
6086
- Object.defineProperty(exports$1, "__esModule", { value: true });
6481
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
6482
+ Object.defineProperty(exports, "__esModule", { value: true });
6087
6483
  var core_1 = require_core2();
6088
6484
  var validation_1 = require_validation();
6089
6485
  var applicator_1 = require_applicator();
@@ -6097,27 +6493,27 @@ var require_draft7 = __commonJS({
6097
6493
  metadata_1.metadataVocabulary,
6098
6494
  metadata_1.contentVocabulary
6099
6495
  ];
6100
- exports$1.default = draft7Vocabularies;
6496
+ exports.default = draft7Vocabularies;
6101
6497
  }
6102
6498
  });
6103
6499
 
6104
6500
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
6105
6501
  var require_types = __commonJS({
6106
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports$1) {
6107
- Object.defineProperty(exports$1, "__esModule", { value: true });
6108
- exports$1.DiscrError = void 0;
6502
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
6503
+ Object.defineProperty(exports, "__esModule", { value: true });
6504
+ exports.DiscrError = void 0;
6109
6505
  var DiscrError;
6110
6506
  (function(DiscrError2) {
6111
6507
  DiscrError2["Tag"] = "tag";
6112
6508
  DiscrError2["Mapping"] = "mapping";
6113
- })(DiscrError || (exports$1.DiscrError = DiscrError = {}));
6509
+ })(DiscrError || (exports.DiscrError = DiscrError = {}));
6114
6510
  }
6115
6511
  });
6116
6512
 
6117
6513
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
6118
6514
  var require_discriminator = __commonJS({
6119
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports$1) {
6120
- Object.defineProperty(exports$1, "__esModule", { value: true });
6515
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
6516
+ Object.defineProperty(exports, "__esModule", { value: true });
6121
6517
  var codegen_1 = require_codegen();
6122
6518
  var types_1 = require_types();
6123
6519
  var compile_1 = require_compile();
@@ -6214,13 +6610,13 @@ var require_discriminator = __commonJS({
6214
6610
  }
6215
6611
  }
6216
6612
  };
6217
- exports$1.default = def;
6613
+ exports.default = def;
6218
6614
  }
6219
6615
  });
6220
6616
 
6221
6617
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
6222
6618
  var require_json_schema_draft_07 = __commonJS({
6223
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports$1, module) {
6619
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
6224
6620
  module.exports = {
6225
6621
  $schema: "http://json-schema.org/draft-07/schema#",
6226
6622
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6377,9 +6773,9 @@ var require_json_schema_draft_07 = __commonJS({
6377
6773
 
6378
6774
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js
6379
6775
  var require_ajv = __commonJS({
6380
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports$1, module) {
6381
- Object.defineProperty(exports$1, "__esModule", { value: true });
6382
- exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
6776
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports, module) {
6777
+ Object.defineProperty(exports, "__esModule", { value: true });
6778
+ exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
6383
6779
  var core_1 = require_core();
6384
6780
  var draft7_1 = require_draft7();
6385
6781
  var discriminator_1 = require_discriminator();
@@ -6405,40 +6801,40 @@ var require_ajv = __commonJS({
6405
6801
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
6406
6802
  }
6407
6803
  };
6408
- exports$1.Ajv = Ajv2;
6409
- module.exports = exports$1 = Ajv2;
6804
+ exports.Ajv = Ajv2;
6805
+ module.exports = exports = Ajv2;
6410
6806
  module.exports.Ajv = Ajv2;
6411
- Object.defineProperty(exports$1, "__esModule", { value: true });
6412
- exports$1.default = Ajv2;
6807
+ Object.defineProperty(exports, "__esModule", { value: true });
6808
+ exports.default = Ajv2;
6413
6809
  var validate_1 = require_validate();
6414
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
6810
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
6415
6811
  return validate_1.KeywordCxt;
6416
6812
  } });
6417
6813
  var codegen_1 = require_codegen();
6418
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
6814
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
6419
6815
  return codegen_1._;
6420
6816
  } });
6421
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
6817
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
6422
6818
  return codegen_1.str;
6423
6819
  } });
6424
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
6820
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
6425
6821
  return codegen_1.stringify;
6426
6822
  } });
6427
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
6823
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
6428
6824
  return codegen_1.nil;
6429
6825
  } });
6430
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
6826
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
6431
6827
  return codegen_1.Name;
6432
6828
  } });
6433
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
6829
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
6434
6830
  return codegen_1.CodeGen;
6435
6831
  } });
6436
6832
  var validation_error_1 = require_validation_error();
6437
- Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
6833
+ Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
6438
6834
  return validation_error_1.default;
6439
6835
  } });
6440
6836
  var ref_error_1 = require_ref_error();
6441
- Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
6837
+ Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
6442
6838
  return ref_error_1.default;
6443
6839
  } });
6444
6840
  }
@@ -6446,13 +6842,13 @@ var require_ajv = __commonJS({
6446
6842
 
6447
6843
  // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
6448
6844
  var require_formats = __commonJS({
6449
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports$1) {
6450
- Object.defineProperty(exports$1, "__esModule", { value: true });
6451
- exports$1.formatNames = exports$1.fastFormats = exports$1.fullFormats = void 0;
6845
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports) {
6846
+ Object.defineProperty(exports, "__esModule", { value: true });
6847
+ exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
6452
6848
  function fmtDef(validate2, compare) {
6453
6849
  return { validate: validate2, compare };
6454
6850
  }
6455
- exports$1.fullFormats = {
6851
+ exports.fullFormats = {
6456
6852
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
6457
6853
  date: fmtDef(date4, compareDate),
6458
6854
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -6499,8 +6895,8 @@ var require_formats = __commonJS({
6499
6895
  // unchecked string payload
6500
6896
  binary: true
6501
6897
  };
6502
- exports$1.fastFormats = {
6503
- ...exports$1.fullFormats,
6898
+ exports.fastFormats = {
6899
+ ...exports.fullFormats,
6504
6900
  date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
6505
6901
  time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
6506
6902
  "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),
@@ -6514,7 +6910,7 @@ var require_formats = __commonJS({
6514
6910
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
6515
6911
  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
6516
6912
  };
6517
- exports$1.formatNames = Object.keys(exports$1.fullFormats);
6913
+ exports.formatNames = Object.keys(exports.fullFormats);
6518
6914
  function isLeapYear(year) {
6519
6915
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
6520
6916
  }
@@ -6648,9 +7044,9 @@ var require_formats = __commonJS({
6648
7044
 
6649
7045
  // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
6650
7046
  var require_limit = __commonJS({
6651
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports$1) {
6652
- Object.defineProperty(exports$1, "__esModule", { value: true });
6653
- exports$1.formatLimitDefinition = void 0;
7047
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports) {
7048
+ Object.defineProperty(exports, "__esModule", { value: true });
7049
+ exports.formatLimitDefinition = void 0;
6654
7050
  var ajv_1 = require_ajv();
6655
7051
  var codegen_1 = require_codegen();
6656
7052
  var ops = codegen_1.operators;
@@ -6664,7 +7060,7 @@ var require_limit = __commonJS({
6664
7060
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
6665
7061
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
6666
7062
  };
6667
- exports$1.formatLimitDefinition = {
7063
+ exports.formatLimitDefinition = {
6668
7064
  keyword: Object.keys(KWDs),
6669
7065
  type: "string",
6670
7066
  schemaType: "string",
@@ -6710,17 +7106,17 @@ var require_limit = __commonJS({
6710
7106
  dependencies: ["format"]
6711
7107
  };
6712
7108
  var formatLimitPlugin = (ajv) => {
6713
- ajv.addKeyword(exports$1.formatLimitDefinition);
7109
+ ajv.addKeyword(exports.formatLimitDefinition);
6714
7110
  return ajv;
6715
7111
  };
6716
- exports$1.default = formatLimitPlugin;
7112
+ exports.default = formatLimitPlugin;
6717
7113
  }
6718
7114
  });
6719
7115
 
6720
7116
  // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
6721
7117
  var require_dist = __commonJS({
6722
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports$1, module) {
6723
- Object.defineProperty(exports$1, "__esModule", { value: true });
7118
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
7119
+ Object.defineProperty(exports, "__esModule", { value: true });
6724
7120
  var formats_1 = require_formats();
6725
7121
  var limit_1 = require_limit();
6726
7122
  var codegen_1 = require_codegen();
@@ -6752,15 +7148,15 @@ var require_dist = __commonJS({
6752
7148
  for (const f of list)
6753
7149
  ajv.addFormat(f, fs[f]);
6754
7150
  }
6755
- module.exports = exports$1 = formatsPlugin;
6756
- Object.defineProperty(exports$1, "__esModule", { value: true });
6757
- exports$1.default = formatsPlugin;
7151
+ module.exports = exports = formatsPlugin;
7152
+ Object.defineProperty(exports, "__esModule", { value: true });
7153
+ exports.default = formatsPlugin;
6758
7154
  }
6759
7155
  });
6760
7156
 
6761
7157
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
6762
7158
  var require_windows = __commonJS({
6763
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports$1, module) {
7159
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
6764
7160
  module.exports = isexe;
6765
7161
  isexe.sync = sync;
6766
7162
  var fs = __require("fs");
@@ -6800,7 +7196,7 @@ var require_windows = __commonJS({
6800
7196
 
6801
7197
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
6802
7198
  var require_mode = __commonJS({
6803
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports$1, module) {
7199
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
6804
7200
  module.exports = isexe;
6805
7201
  isexe.sync = sync;
6806
7202
  var fs = __require("fs");
@@ -6833,7 +7229,7 @@ var require_mode = __commonJS({
6833
7229
 
6834
7230
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
6835
7231
  var require_isexe = __commonJS({
6836
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports$1, module) {
7232
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
6837
7233
  __require("fs");
6838
7234
  var core;
6839
7235
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -6888,7 +7284,7 @@ var require_isexe = __commonJS({
6888
7284
 
6889
7285
  // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
6890
7286
  var require_which = __commonJS({
6891
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports$1, module) {
7287
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
6892
7288
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
6893
7289
  var path = __require("path");
6894
7290
  var COLON = isWindows ? ";" : ":";
@@ -6984,7 +7380,7 @@ var require_which = __commonJS({
6984
7380
 
6985
7381
  // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
6986
7382
  var require_path_key = __commonJS({
6987
- "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports$1, module) {
7383
+ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
6988
7384
  var pathKey = (options = {}) => {
6989
7385
  const environment = options.env || process.env;
6990
7386
  const platform = options.platform || process.platform;
@@ -7000,7 +7396,7 @@ var require_path_key = __commonJS({
7000
7396
 
7001
7397
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
7002
7398
  var require_resolveCommand = __commonJS({
7003
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports$1, module) {
7399
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
7004
7400
  var path = __require("path");
7005
7401
  var which = require_which();
7006
7402
  var getPathKey = require_path_key();
@@ -7041,7 +7437,7 @@ var require_resolveCommand = __commonJS({
7041
7437
 
7042
7438
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
7043
7439
  var require_escape = __commonJS({
7044
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports$1, module) {
7440
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
7045
7441
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
7046
7442
  function escapeCommand(arg) {
7047
7443
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -7065,14 +7461,14 @@ var require_escape = __commonJS({
7065
7461
 
7066
7462
  // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
7067
7463
  var require_shebang_regex = __commonJS({
7068
- "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports$1, module) {
7464
+ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
7069
7465
  module.exports = /^#!(.*)/;
7070
7466
  }
7071
7467
  });
7072
7468
 
7073
7469
  // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
7074
7470
  var require_shebang_command = __commonJS({
7075
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports$1, module) {
7471
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
7076
7472
  var shebangRegex = require_shebang_regex();
7077
7473
  module.exports = (string4 = "") => {
7078
7474
  const match = string4.match(shebangRegex);
@@ -7091,7 +7487,7 @@ var require_shebang_command = __commonJS({
7091
7487
 
7092
7488
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
7093
7489
  var require_readShebang = __commonJS({
7094
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports$1, module) {
7490
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
7095
7491
  var fs = __require("fs");
7096
7492
  var shebangCommand = require_shebang_command();
7097
7493
  function readShebang(command) {
@@ -7112,7 +7508,7 @@ var require_readShebang = __commonJS({
7112
7508
 
7113
7509
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
7114
7510
  var require_parse = __commonJS({
7115
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports$1, module) {
7511
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
7116
7512
  var path = __require("path");
7117
7513
  var resolveCommand = require_resolveCommand();
7118
7514
  var escape2 = require_escape();
@@ -7173,7 +7569,7 @@ var require_parse = __commonJS({
7173
7569
 
7174
7570
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
7175
7571
  var require_enoent = __commonJS({
7176
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports$1, module) {
7572
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
7177
7573
  var isWin = process.platform === "win32";
7178
7574
  function notFoundError(original, syscall) {
7179
7575
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -7222,7 +7618,7 @@ var require_enoent = __commonJS({
7222
7618
 
7223
7619
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
7224
7620
  var require_cross_spawn = __commonJS({
7225
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports$1, module) {
7621
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
7226
7622
  var cp = __require("child_process");
7227
7623
  var parse3 = require_parse();
7228
7624
  var enoent = require_enoent();
@@ -7248,15 +7644,15 @@ var require_cross_spawn = __commonJS({
7248
7644
 
7249
7645
  // ../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js
7250
7646
  var require_content_type = __commonJS({
7251
- "../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js"(exports$1) {
7647
+ "../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js"(exports) {
7252
7648
  var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
7253
7649
  var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
7254
7650
  var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
7255
7651
  var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
7256
7652
  var QUOTE_REGEXP = /([\\"])/g;
7257
7653
  var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
7258
- exports$1.format = format;
7259
- exports$1.parse = parse3;
7654
+ exports.format = format;
7655
+ exports.parse = parse3;
7260
7656
  function format(obj) {
7261
7657
  if (!obj || typeof obj !== "object") {
7262
7658
  throw new TypeError("argument obj is required");