@tonyclaw/agent-inspector 4.0.8 → 4.0.10

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.
Files changed (119) hide show
  1. package/.output/backend/nitro.json +1 -1
  2. package/.output/cli.js +915 -25970
  3. package/.output/server/_chunks/ssr-renderer.mjs +1 -38
  4. package/.output/server/_libs/@opentelemetry/semantic-conventions+[...].mjs +1 -2658
  5. package/.output/server/_libs/agent-base.mjs +2 -234
  6. package/.output/server/_libs/ajv-formats.mjs +1 -330
  7. package/.output/server/_libs/ajv.mjs +8 -6080
  8. package/.output/server/_libs/anthropic-ai__sdk.mjs +19 -6021
  9. package/.output/server/_libs/atomically.mjs +1 -155
  10. package/.output/server/_libs/base64-js.mjs +1 -102
  11. package/.output/server/_libs/bignumber.js.mjs +1 -1353
  12. package/.output/server/_libs/buffer-equal-constant-time.mjs +1 -38
  13. package/.output/server/_libs/conf.mjs +1 -635
  14. package/.output/server/_libs/cookie-es.mjs +1 -44
  15. package/.output/server/_libs/core-util-is.mjs +1 -75
  16. package/.output/server/_libs/data-uri-to-buffer.mjs +1 -39
  17. package/.output/server/_libs/debounce-fn.mjs +1 -69
  18. package/.output/server/_libs/debug.mjs +5 -547
  19. package/.output/server/_libs/dot-prop.mjs +1 -265
  20. package/.output/server/_libs/ecdsa-sig-formatter.mjs +1 -162
  21. package/.output/server/_libs/env-paths.mjs +1 -57
  22. package/.output/server/_libs/extend.mjs +1 -94
  23. package/.output/server/_libs/fast-deep-equal.mjs +1 -38
  24. package/.output/server/_libs/fast-uri.mjs +1 -812
  25. package/.output/server/_libs/fetch-blob.mjs +1 -287
  26. package/.output/server/_libs/formdata-polyfill.mjs +9 -86
  27. package/.output/server/_libs/gaxios.mjs +5 -926
  28. package/.output/server/_libs/gcp-metadata.mjs +1 -322
  29. package/.output/server/_libs/google-auth-library.mjs +16 -6339
  30. package/.output/server/_libs/google-logging-utils.mjs +1 -385
  31. package/.output/server/_libs/google__genai.mjs +13 -18034
  32. package/.output/server/_libs/h3-v2.mjs +2 -287
  33. package/.output/server/_libs/h3.mjs +2 -408
  34. package/.output/server/_libs/has-flag.mjs +1 -16
  35. package/.output/server/_libs/https-proxy-agent.mjs +7 -280
  36. package/.output/server/_libs/immediate.mjs +1 -74
  37. package/.output/server/_libs/inherits.mjs +1 -50
  38. package/.output/server/_libs/isarray.mjs +1 -14
  39. package/.output/server/_libs/isbot.mjs +1 -20
  40. package/.output/server/_libs/json-bigint.mjs +8 -413
  41. package/.output/server/_libs/json-schema-traverse.mjs +1 -91
  42. package/.output/server/_libs/jszip.mjs +2 -3051
  43. package/.output/server/_libs/jwa.mjs +3 -233
  44. package/.output/server/_libs/jws.mjs +1 -298
  45. package/.output/server/_libs/lie.mjs +1 -273
  46. package/.output/server/_libs/mariozechner__pi-agent-core.mjs +1 -824
  47. package/.output/server/_libs/mariozechner__pi-ai.mjs +34 -22887
  48. package/.output/server/_libs/mimic-function.mjs +2 -47
  49. package/.output/server/_libs/mistralai__mistralai.mjs +7 -32045
  50. package/.output/server/_libs/modelcontextprotocol__core.mjs +1 -1121
  51. package/.output/server/_libs/modelcontextprotocol__server.mjs +13 -13205
  52. package/.output/server/_libs/ms.mjs +1 -120
  53. package/.output/server/_libs/node-domexception.mjs +1 -17
  54. package/.output/server/_libs/node-fetch.mjs +4 -1578
  55. package/.output/server/_libs/ohash.mjs +1 -1
  56. package/.output/server/_libs/openai.mjs +23 -6766
  57. package/.output/server/_libs/opentelemetry__api.mjs +1 -1678
  58. package/.output/server/_libs/p-retry.mjs +1 -87
  59. package/.output/server/_libs/pako.mjs +1 -4223
  60. package/.output/server/_libs/partial-json.mjs +2 -244
  61. package/.output/server/_libs/process-nextick-args.mjs +1 -48
  62. package/.output/server/_libs/react-dom.mjs +62 -10778
  63. package/.output/server/_libs/react.mjs +1 -519
  64. package/.output/server/_libs/readable-stream.mjs +1 -1518
  65. package/.output/server/_libs/retry.mjs +1 -236
  66. package/.output/server/_libs/rou3.mjs +1 -14
  67. package/.output/server/_libs/safe-buffer.mjs +1 -126
  68. package/.output/server/_libs/semver.mjs +1 -1938
  69. package/.output/server/_libs/seroval-plugins.mjs +1 -58
  70. package/.output/server/_libs/seroval.mjs +3 -1775
  71. package/.output/server/_libs/setimmediate.mjs +1 -152
  72. package/.output/server/_libs/srvx.mjs +4 -1390
  73. package/.output/server/_libs/stubborn-fs.mjs +1 -91
  74. package/.output/server/_libs/stubborn-utils.mjs +1 -66
  75. package/.output/server/_libs/supports-color.mjs +1 -108
  76. package/.output/server/_libs/tanstack__history.mjs +1 -230
  77. package/.output/server/_libs/tanstack__react-router.mjs +1 -848
  78. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  79. package/.output/server/_libs/tanstack__router-core.mjs +1 -4839
  80. package/.output/server/_libs/typebox.mjs +3 -6596
  81. package/.output/server/_libs/ufo.mjs +1 -54
  82. package/.output/server/_libs/uint8array-extras.mjs +1 -69
  83. package/.output/server/_libs/util-deprecate.mjs +1 -12
  84. package/.output/server/_libs/web-streams-polyfill.mjs +1 -4282
  85. package/.output/server/_libs/when-exit.mjs +1 -53
  86. package/.output/server/_libs/ws.mjs +7 -3715
  87. package/.output/server/_libs/zod-to-json-schema.mjs +5 -1207
  88. package/.output/server/_libs/zod.mjs +59 -9958
  89. package/.output/server/_ssr/empty-plugin-adapters-C3Q1xu4u.mjs +1 -0
  90. package/.output/server/_ssr/index.mjs +2 -1512
  91. package/.output/server/_ssr/publicBasePathContext--TAQS2_5.mjs +1 -0
  92. package/.output/server/_ssr/router-B3jax4sN.mjs +341 -0
  93. package/.output/server/_ssr/start-PDVGOqUN.mjs +1 -0
  94. package/.output/server/_tanstack-start-manifest_v-D7cKwKzM.mjs +1 -0
  95. package/.output/server/index.mjs +1 -320
  96. package/.output/ui/assets/{CompareDrawer-DafpfgaT.js → CompareDrawer-D8fg0prL.js} +1 -1
  97. package/.output/ui/assets/{InspectorPet-Brsmmfzx.js → InspectorPet-BAY7SAee.js} +1 -1
  98. package/.output/ui/assets/{ProxyViewerContainer-D2pq1fUr.js → ProxyViewerContainer-BPITPKYp.js} +4 -4
  99. package/.output/ui/assets/{ReplayDialog-D4mXXgT9.js → ReplayDialog-NLGOmBsc.js} +1 -1
  100. package/.output/ui/assets/{RequestAnatomy-Ccnsq12U.js → RequestAnatomy-DBhRhis7.js} +1 -1
  101. package/.output/ui/assets/{ResponseView-CJv3vB5X.js → ResponseView-DNXX-dzj.js} +1 -1
  102. package/.output/ui/assets/{StreamingChunkSequence-CEkLnOF6.js → StreamingChunkSequence-CLiT5Xun.js} +1 -1
  103. package/.output/ui/assets/{_sessionId-C7s68UH3.js → _sessionId-CY0Jj2Xv.js} +1 -1
  104. package/.output/ui/assets/{_sessionId-DlG-yHoI.js → _sessionId-Cf0So2vy.js} +1 -1
  105. package/.output/ui/assets/{index-ChZZrVHa.js → index-BIMJaHOR.js} +1 -1
  106. package/.output/ui/assets/{index-CFqnSirZ.js → index-DLG3AIXx.js} +1 -1
  107. package/.output/ui/assets/{index-B0NCZQ93.js → index-DTj5ErVh.js} +2 -2
  108. package/.output/ui/assets/{index-Cqh47jeU.js → index-ujyZ2AyC.js} +1 -1
  109. package/.output/ui/assets/{json-viewer-DvpI0vbY.js → json-viewer-BwPQ5x7s.js} +1 -1
  110. package/.output/ui/assets/{jszip.min-5AG8hW2c.js → jszip.min-CDwYiHmS.js} +1 -1
  111. package/.output/ui/index.html +1 -1
  112. package/.output/workers/logFinalizer.worker.js +41 -17739
  113. package/.output/workers/sessionWorkerEntry.js +41 -17735
  114. package/package.json +7 -7
  115. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +0 -6
  116. package/.output/server/_ssr/publicBasePathContext-IH2ilOfu.mjs +0 -176
  117. package/.output/server/_ssr/router-BDyF-OMB.mjs +0 -27187
  118. package/.output/server/_ssr/start-COQu_AgD.mjs +0 -57
  119. package/.output/server/_tanstack-start-manifest_v-ClTaMkEj.mjs +0 -4
@@ -1,413 +1,8 @@
1
- import { r as requireBignumber } from "./bignumber.js.mjs";
2
- var jsonBigint = { exports: {} };
3
- var stringify = { exports: {} };
4
- var hasRequiredStringify;
5
- function requireStringify() {
6
- if (hasRequiredStringify) return stringify.exports;
7
- hasRequiredStringify = 1;
8
- (function(module) {
9
- var BigNumber = requireBignumber();
10
- var JSON = module.exports;
11
- (function() {
12
- var escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = {
13
- // table of character substitutions
14
- "\b": "\\b",
15
- " ": "\\t",
16
- "\n": "\\n",
17
- "\f": "\\f",
18
- "\r": "\\r",
19
- '"': '\\"',
20
- "\\": "\\\\"
21
- }, rep;
22
- function quote(string) {
23
- escapable.lastIndex = 0;
24
- return escapable.test(string) ? '"' + string.replace(escapable, function(a) {
25
- var c = meta[a];
26
- return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
27
- }) + '"' : '"' + string + '"';
28
- }
29
- function str(key, holder) {
30
- var i, k, v, length, mind = gap, partial, value = holder[key], isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value));
31
- if (value && typeof value === "object" && typeof value.toJSON === "function") {
32
- value = value.toJSON(key);
33
- }
34
- if (typeof rep === "function") {
35
- value = rep.call(holder, key, value);
36
- }
37
- switch (typeof value) {
38
- case "string":
39
- if (isBigNumber) {
40
- return value;
41
- } else {
42
- return quote(value);
43
- }
44
- case "number":
45
- return isFinite(value) ? String(value) : "null";
46
- case "boolean":
47
- case "null":
48
- case "bigint":
49
- return String(value);
50
- // If the type is 'object', we might be dealing with an object or an array or
51
- // null.
52
- case "object":
53
- if (!value) {
54
- return "null";
55
- }
56
- gap += indent;
57
- partial = [];
58
- if (Object.prototype.toString.apply(value) === "[object Array]") {
59
- length = value.length;
60
- for (i = 0; i < length; i += 1) {
61
- partial[i] = str(i, value) || "null";
62
- }
63
- v = partial.length === 0 ? "[]" : gap ? "[\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "]" : "[" + partial.join(",") + "]";
64
- gap = mind;
65
- return v;
66
- }
67
- if (rep && typeof rep === "object") {
68
- length = rep.length;
69
- for (i = 0; i < length; i += 1) {
70
- if (typeof rep[i] === "string") {
71
- k = rep[i];
72
- v = str(k, value);
73
- if (v) {
74
- partial.push(quote(k) + (gap ? ": " : ":") + v);
75
- }
76
- }
77
- }
78
- } else {
79
- Object.keys(value).forEach(function(k2) {
80
- var v2 = str(k2, value);
81
- if (v2) {
82
- partial.push(quote(k2) + (gap ? ": " : ":") + v2);
83
- }
84
- });
85
- }
86
- v = partial.length === 0 ? "{}" : gap ? "{\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "}" : "{" + partial.join(",") + "}";
87
- gap = mind;
88
- return v;
89
- }
90
- }
91
- if (typeof JSON.stringify !== "function") {
92
- JSON.stringify = function(value, replacer, space) {
93
- var i;
94
- gap = "";
95
- indent = "";
96
- if (typeof space === "number") {
97
- for (i = 0; i < space; i += 1) {
98
- indent += " ";
99
- }
100
- } else if (typeof space === "string") {
101
- indent = space;
102
- }
103
- rep = replacer;
104
- if (replacer && typeof replacer !== "function" && (typeof replacer !== "object" || typeof replacer.length !== "number")) {
105
- throw new Error("JSON.stringify");
106
- }
107
- return str("", { "": value });
108
- };
109
- }
110
- })();
111
- })(stringify);
112
- return stringify.exports;
113
- }
114
- var parse;
115
- var hasRequiredParse;
116
- function requireParse() {
117
- if (hasRequiredParse) return parse;
118
- hasRequiredParse = 1;
119
- var BigNumber = null;
120
- const suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/;
121
- const suspectConstructorRx = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
122
- var json_parse = function(options) {
123
- var _options = {
124
- strict: false,
125
- // not being strict means do not generate syntax errors for "duplicate key"
126
- storeAsString: false,
127
- // toggles whether the values should be stored as BigNumber (default) or a string
128
- alwaysParseAsBig: false,
129
- // toggles whether all numbers should be Big
130
- useNativeBigInt: false,
131
- // toggles whether to use native BigInt instead of bignumber.js
132
- protoAction: "error",
133
- constructorAction: "error"
134
- };
135
- if (options !== void 0 && options !== null) {
136
- if (options.strict === true) {
137
- _options.strict = true;
138
- }
139
- if (options.storeAsString === true) {
140
- _options.storeAsString = true;
141
- }
142
- _options.alwaysParseAsBig = options.alwaysParseAsBig === true ? options.alwaysParseAsBig : false;
143
- _options.useNativeBigInt = options.useNativeBigInt === true ? options.useNativeBigInt : false;
144
- if (typeof options.constructorAction !== "undefined") {
145
- if (options.constructorAction === "error" || options.constructorAction === "ignore" || options.constructorAction === "preserve") {
146
- _options.constructorAction = options.constructorAction;
147
- } else {
148
- throw new Error(
149
- `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${options.constructorAction}`
150
- );
151
- }
152
- }
153
- if (typeof options.protoAction !== "undefined") {
154
- if (options.protoAction === "error" || options.protoAction === "ignore" || options.protoAction === "preserve") {
155
- _options.protoAction = options.protoAction;
156
- } else {
157
- throw new Error(
158
- `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${options.protoAction}`
159
- );
160
- }
161
- }
162
- }
163
- var at, ch, escapee = {
164
- '"': '"',
165
- "\\": "\\",
166
- "/": "/",
167
- b: "\b",
168
- f: "\f",
169
- n: "\n",
170
- r: "\r",
171
- t: " "
172
- }, text, error = function(m) {
173
- throw {
174
- name: "SyntaxError",
175
- message: m,
176
- at,
177
- text
178
- };
179
- }, next = function(c) {
180
- if (c && c !== ch) {
181
- error("Expected '" + c + "' instead of '" + ch + "'");
182
- }
183
- ch = text.charAt(at);
184
- at += 1;
185
- return ch;
186
- }, number = function() {
187
- var number2, string2 = "";
188
- if (ch === "-") {
189
- string2 = "-";
190
- next("-");
191
- }
192
- while (ch >= "0" && ch <= "9") {
193
- string2 += ch;
194
- next();
195
- }
196
- if (ch === ".") {
197
- string2 += ".";
198
- while (next() && ch >= "0" && ch <= "9") {
199
- string2 += ch;
200
- }
201
- }
202
- if (ch === "e" || ch === "E") {
203
- string2 += ch;
204
- next();
205
- if (ch === "-" || ch === "+") {
206
- string2 += ch;
207
- next();
208
- }
209
- while (ch >= "0" && ch <= "9") {
210
- string2 += ch;
211
- next();
212
- }
213
- }
214
- number2 = +string2;
215
- if (!isFinite(number2)) {
216
- error("Bad number");
217
- } else {
218
- if (BigNumber == null) BigNumber = requireBignumber();
219
- if (string2.length > 15)
220
- return _options.storeAsString ? string2 : _options.useNativeBigInt ? BigInt(string2) : new BigNumber(string2);
221
- else
222
- return !_options.alwaysParseAsBig ? number2 : _options.useNativeBigInt ? BigInt(number2) : new BigNumber(number2);
223
- }
224
- }, string = function() {
225
- var hex, i, string2 = "", uffff;
226
- if (ch === '"') {
227
- var startAt = at;
228
- while (next()) {
229
- if (ch === '"') {
230
- if (at - 1 > startAt) string2 += text.substring(startAt, at - 1);
231
- next();
232
- return string2;
233
- }
234
- if (ch === "\\") {
235
- if (at - 1 > startAt) string2 += text.substring(startAt, at - 1);
236
- next();
237
- if (ch === "u") {
238
- uffff = 0;
239
- for (i = 0; i < 4; i += 1) {
240
- hex = parseInt(next(), 16);
241
- if (!isFinite(hex)) {
242
- break;
243
- }
244
- uffff = uffff * 16 + hex;
245
- }
246
- string2 += String.fromCharCode(uffff);
247
- } else if (typeof escapee[ch] === "string") {
248
- string2 += escapee[ch];
249
- } else {
250
- break;
251
- }
252
- startAt = at;
253
- }
254
- }
255
- }
256
- error("Bad string");
257
- }, white = function() {
258
- while (ch && ch <= " ") {
259
- next();
260
- }
261
- }, word = function() {
262
- switch (ch) {
263
- case "t":
264
- next("t");
265
- next("r");
266
- next("u");
267
- next("e");
268
- return true;
269
- case "f":
270
- next("f");
271
- next("a");
272
- next("l");
273
- next("s");
274
- next("e");
275
- return false;
276
- case "n":
277
- next("n");
278
- next("u");
279
- next("l");
280
- next("l");
281
- return null;
282
- }
283
- error("Unexpected '" + ch + "'");
284
- }, value, array = function() {
285
- var array2 = [];
286
- if (ch === "[") {
287
- next("[");
288
- white();
289
- if (ch === "]") {
290
- next("]");
291
- return array2;
292
- }
293
- while (ch) {
294
- array2.push(value());
295
- white();
296
- if (ch === "]") {
297
- next("]");
298
- return array2;
299
- }
300
- next(",");
301
- white();
302
- }
303
- }
304
- error("Bad array");
305
- }, object = function() {
306
- var key, object2 = /* @__PURE__ */ Object.create(null);
307
- if (ch === "{") {
308
- next("{");
309
- white();
310
- if (ch === "}") {
311
- next("}");
312
- return object2;
313
- }
314
- while (ch) {
315
- key = string();
316
- white();
317
- next(":");
318
- if (_options.strict === true && Object.hasOwnProperty.call(object2, key)) {
319
- error('Duplicate key "' + key + '"');
320
- }
321
- if (suspectProtoRx.test(key) === true) {
322
- if (_options.protoAction === "error") {
323
- error("Object contains forbidden prototype property");
324
- } else if (_options.protoAction === "ignore") {
325
- value();
326
- } else {
327
- object2[key] = value();
328
- }
329
- } else if (suspectConstructorRx.test(key) === true) {
330
- if (_options.constructorAction === "error") {
331
- error("Object contains forbidden constructor property");
332
- } else if (_options.constructorAction === "ignore") {
333
- value();
334
- } else {
335
- object2[key] = value();
336
- }
337
- } else {
338
- object2[key] = value();
339
- }
340
- white();
341
- if (ch === "}") {
342
- next("}");
343
- return object2;
344
- }
345
- next(",");
346
- white();
347
- }
348
- }
349
- error("Bad object");
350
- };
351
- value = function() {
352
- white();
353
- switch (ch) {
354
- case "{":
355
- return object();
356
- case "[":
357
- return array();
358
- case '"':
359
- return string();
360
- case "-":
361
- return number();
362
- default:
363
- return ch >= "0" && ch <= "9" ? number() : word();
364
- }
365
- };
366
- return function(source, reviver) {
367
- var result;
368
- text = source + "";
369
- at = 0;
370
- ch = " ";
371
- result = value();
372
- white();
373
- if (ch) {
374
- error("Syntax error");
375
- }
376
- return typeof reviver === "function" ? (function walk(holder, key) {
377
- var v, value2 = holder[key];
378
- if (value2 && typeof value2 === "object") {
379
- Object.keys(value2).forEach(function(k) {
380
- v = walk(value2, k);
381
- if (v !== void 0) {
382
- value2[k] = v;
383
- } else {
384
- delete value2[k];
385
- }
386
- });
387
- }
388
- return reviver.call(holder, key, value2);
389
- })({ "": result }, "") : result;
390
- };
391
- };
392
- parse = json_parse;
393
- return parse;
394
- }
395
- var hasRequiredJsonBigint;
396
- function requireJsonBigint() {
397
- if (hasRequiredJsonBigint) return jsonBigint.exports;
398
- hasRequiredJsonBigint = 1;
399
- var json_stringify = requireStringify().stringify;
400
- var json_parse = requireParse();
401
- jsonBigint.exports = function(options) {
402
- return {
403
- parse: json_parse(options),
404
- stringify: json_stringify
405
- };
406
- };
407
- jsonBigint.exports.parse = json_parse();
408
- jsonBigint.exports.stringify = json_stringify;
409
- return jsonBigint.exports;
410
- }
411
- export {
412
- requireJsonBigint as r
413
- };
1
+ import{r as J}from"./bignumber.js.mjs";var S={exports:{}},O={exports:{}},P;function R(){return P||(P=1,(function(v){var h=J(),w=v.exports;(function(){var m=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t,f,l={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},r;function x(s){return m.lastIndex=0,m.test(s)?'"'+s.replace(m,function(e){var o=l[e];return typeof o=="string"?o:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+s+'"'}function b(s,e){var o,y,c,B,a=t,g,u=e[s],n=u!=null&&(u instanceof h||h.isBigNumber(u));switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(s)),typeof r=="function"&&(u=r.call(e,s,u)),typeof u){case"string":return n?u:x(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":case"bigint":return String(u);case"object":if(!u)return"null";if(t+=f,g=[],Object.prototype.toString.apply(u)==="[object Array]"){for(B=u.length,o=0;o<B;o+=1)g[o]=b(o,u)||"null";return c=g.length===0?"[]":t?`[
2
+ `+t+g.join(`,
3
+ `+t)+`
4
+ `+a+"]":"["+g.join(",")+"]",t=a,c}if(r&&typeof r=="object")for(B=r.length,o=0;o<B;o+=1)typeof r[o]=="string"&&(y=r[o],c=b(y,u),c&&g.push(x(y)+(t?": ":":")+c));else Object.keys(u).forEach(function(i){var p=b(i,u);p&&g.push(x(i)+(t?": ":":")+p)});return c=g.length===0?"{}":t?`{
5
+ `+t+g.join(`,
6
+ `+t)+`
7
+ `+a+"}":"{"+g.join(",")+"}",t=a,c}}typeof w.stringify!="function"&&(w.stringify=function(s,e,o){var y;if(t="",f="",typeof o=="number")for(y=0;y<o;y+=1)f+=" ";else typeof o=="string"&&(f=o);if(r=e,e&&typeof e!="function"&&(typeof e!="object"||typeof e.length!="number"))throw new Error("JSON.stringify");return b("",{"":s})})})()})(O)),O.exports}var F,q;function C(){if(q)return F;q=1;var v=null;const h=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,w=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var m=function(t){var f={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(t!=null){if(t.strict===!0&&(f.strict=!0),t.storeAsString===!0&&(f.storeAsString=!0),f.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,f.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<"u")if(t.constructorAction==="error"||t.constructorAction==="ignore"||t.constructorAction==="preserve")f.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<"u")if(t.protoAction==="error"||t.protoAction==="ignore"||t.protoAction==="preserve")f.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`)}var l,r,x={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
8
+ `,r:"\r",t:" "},b,s=function(n){throw{name:"SyntaxError",message:n,at:l,text:b}},e=function(n){return n&&n!==r&&s("Expected '"+n+"' instead of '"+r+"'"),r=b.charAt(l),l+=1,r},o=function(){var n,i="";for(r==="-"&&(i="-",e("-"));r>="0"&&r<="9";)i+=r,e();if(r===".")for(i+=".";e()&&r>="0"&&r<="9";)i+=r;if(r==="e"||r==="E")for(i+=r,e(),(r==="-"||r==="+")&&(i+=r,e());r>="0"&&r<="9";)i+=r,e();if(n=+i,!isFinite(n))s("Bad number");else return v==null&&(v=J()),i.length>15?f.storeAsString?i:f.useNativeBigInt?BigInt(i):new v(i):f.alwaysParseAsBig?f.useNativeBigInt?BigInt(n):new v(n):n},y=function(){var n,i,p="",j;if(r==='"')for(var d=l;e();){if(r==='"')return l-1>d&&(p+=b.substring(d,l-1)),e(),p;if(r==="\\"){if(l-1>d&&(p+=b.substring(d,l-1)),e(),r==="u"){for(j=0,i=0;i<4&&(n=parseInt(e(),16),!!isFinite(n));i+=1)j=j*16+n;p+=String.fromCharCode(j)}else if(typeof x[r]=="string")p+=x[r];else break;d=l}}s("Bad string")},c=function(){for(;r&&r<=" ";)e()},B=function(){switch(r){case"t":return e("t"),e("r"),e("u"),e("e"),!0;case"f":return e("f"),e("a"),e("l"),e("s"),e("e"),!1;case"n":return e("n"),e("u"),e("l"),e("l"),null}s("Unexpected '"+r+"'")},a,g=function(){var n=[];if(r==="["){if(e("["),c(),r==="]")return e("]"),n;for(;r;){if(n.push(a()),c(),r==="]")return e("]"),n;e(","),c()}}s("Bad array")},u=function(){var n,i=Object.create(null);if(r==="{"){if(e("{"),c(),r==="}")return e("}"),i;for(;r;){if(n=y(),c(),e(":"),f.strict===!0&&Object.hasOwnProperty.call(i,n)&&s('Duplicate key "'+n+'"'),h.test(n)===!0?f.protoAction==="error"?s("Object contains forbidden prototype property"):f.protoAction==="ignore"?a():i[n]=a():w.test(n)===!0?f.constructorAction==="error"?s("Object contains forbidden constructor property"):f.constructorAction==="ignore"?a():i[n]=a():i[n]=a(),c(),r==="}")return e("}"),i;e(","),c()}}s("Bad object")};return a=function(){switch(c(),r){case"{":return u();case"[":return g();case'"':return y();case"-":return o();default:return r>="0"&&r<="9"?o():B()}},function(n,i){var p;return b=n+"",l=0,r=" ",p=a(),c(),r&&s("Syntax error"),typeof i=="function"?(function j(d,E){var N,A=d[E];return A&&typeof A=="object"&&Object.keys(A).forEach(function(I){N=j(A,I),N!==void 0?A[I]=N:delete A[I]}),i.call(d,E,A)})({"":p},""):p}};return F=m,F}var _;function $(){if(_)return S.exports;_=1;var v=R().stringify,h=C();return S.exports=function(w){return{parse:h(w),stringify:v}},S.exports.parse=h(),S.exports.stringify=v,S.exports}export{$ as r};
@@ -1,91 +1 @@
1
- var jsonSchemaTraverse = { exports: {} };
2
- var hasRequiredJsonSchemaTraverse;
3
- function requireJsonSchemaTraverse() {
4
- if (hasRequiredJsonSchemaTraverse) return jsonSchemaTraverse.exports;
5
- hasRequiredJsonSchemaTraverse = 1;
6
- var traverse = jsonSchemaTraverse.exports = function(schema, opts, cb) {
7
- if (typeof opts == "function") {
8
- cb = opts;
9
- opts = {};
10
- }
11
- cb = opts.cb || cb;
12
- var pre = typeof cb == "function" ? cb : cb.pre || function() {
13
- };
14
- var post = cb.post || function() {
15
- };
16
- _traverse(opts, pre, post, schema, "", schema);
17
- };
18
- traverse.keywords = {
19
- additionalItems: true,
20
- items: true,
21
- contains: true,
22
- additionalProperties: true,
23
- propertyNames: true,
24
- not: true,
25
- if: true,
26
- then: true,
27
- else: true
28
- };
29
- traverse.arrayKeywords = {
30
- items: true,
31
- allOf: true,
32
- anyOf: true,
33
- oneOf: true
34
- };
35
- traverse.propsKeywords = {
36
- $defs: true,
37
- definitions: true,
38
- properties: true,
39
- patternProperties: true,
40
- dependencies: true
41
- };
42
- traverse.skipKeywords = {
43
- default: true,
44
- enum: true,
45
- const: true,
46
- required: true,
47
- maximum: true,
48
- minimum: true,
49
- exclusiveMaximum: true,
50
- exclusiveMinimum: true,
51
- multipleOf: true,
52
- maxLength: true,
53
- minLength: true,
54
- pattern: true,
55
- format: true,
56
- maxItems: true,
57
- minItems: true,
58
- uniqueItems: true,
59
- maxProperties: true,
60
- minProperties: true
61
- };
62
- function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
63
- if (schema && typeof schema == "object" && !Array.isArray(schema)) {
64
- pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
65
- for (var key in schema) {
66
- var sch = schema[key];
67
- if (Array.isArray(sch)) {
68
- if (key in traverse.arrayKeywords) {
69
- for (var i = 0; i < sch.length; i++)
70
- _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
71
- }
72
- } else if (key in traverse.propsKeywords) {
73
- if (sch && typeof sch == "object") {
74
- for (var prop in sch)
75
- _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
76
- }
77
- } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) {
78
- _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema);
79
- }
80
- }
81
- post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
82
- }
83
- }
84
- function escapeJsonPtr(str) {
85
- return str.replace(/~/g, "~0").replace(/\//g, "~1");
86
- }
87
- return jsonSchemaTraverse.exports;
88
- }
89
- export {
90
- requireJsonSchemaTraverse as r
91
- };
1
+ var v={exports:{}},w;function g(){if(w)return v.exports;w=1;var f=v.exports=function(n,u,e){typeof u=="function"&&(e=u,u={}),e=u.cb||e;var r=typeof e=="function"?e:e.pre||function(){},i=e.post||function(){};d(u,r,i,n,"",n)};f.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},f.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},f.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},f.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function d(n,u,e,r,i,o,m,p,x,y){if(r&&typeof r=="object"&&!Array.isArray(r)){u(r,i,o,m,p,x,y);for(var t in r){var a=r[t];if(Array.isArray(a)){if(t in f.arrayKeywords)for(var s=0;s<a.length;s++)d(n,u,e,a[s],i+"/"+t+"/"+s,o,i,t,r,s)}else if(t in f.propsKeywords){if(a&&typeof a=="object")for(var l in a)d(n,u,e,a[l],i+"/"+t+"/"+K(l),o,i,t,r,l)}else(t in f.keywords||n.allKeys&&!(t in f.skipKeywords))&&d(n,u,e,a,i+"/"+t,o,i,t,r)}e(r,i,o,m,p,x,y)}}function K(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return v.exports}export{g as r};