apiuikit 2.3.0 → 2.3.1

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.
@@ -1,4 +1,4 @@
1
- const ct = [
1
+ const dt = [
2
2
  "get",
3
3
  "put",
4
4
  "post",
@@ -7,18 +7,18 @@ const ct = [
7
7
  "head",
8
8
  "patch",
9
9
  "trace"
10
- ], Tt = (t, n) => `${t} ${n}`;
11
- function ft(t) {
10
+ ], Rt = (t, n) => `${t} ${n}`;
11
+ function mt(t) {
12
12
  return Object.keys(t).sort().flatMap((n) => {
13
13
  const r = t[n];
14
- return r ? ct.filter((u) => r[u]).map((u) => ({
15
- key: Tt(u, n),
14
+ return r ? dt.filter((u) => r[u]).map((u) => ({
15
+ key: Rt(u, n),
16
16
  method: u,
17
17
  path: n
18
18
  })) : [];
19
19
  });
20
20
  }
21
- const V = (t) => typeof t == "object" && t !== null && !Array.isArray(t), X = (t) => V(t) ? t : null, tt = "^[\0-ÿ]*$", wt = Math.pow(-2, 31), At = Math.pow(2, 31) - 1, bt = Math.pow(-2, 63), Rt = Math.pow(2, 63) - 1, $t = {
21
+ const Z = (t) => typeof t == "object" && t !== null && !Array.isArray(t), V = (t) => Z(t) ? t : null, rt = "^[\0-ÿ]*$", $t = Math.pow(-2, 31), Ot = Math.pow(2, 31) - 1, kt = Math.pow(-2, 63), jt = Math.pow(2, 63) - 1, Ct = {
22
22
  null: "null",
23
23
  boolean: "boolean",
24
24
  int: "integer",
@@ -33,21 +33,21 @@ const V = (t) => typeof t == "object" && t !== null && !Array.isArray(t), X = (t
33
33
  enum: "string",
34
34
  record: "object",
35
35
  uuid: "string"
36
- }, Ue = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : {};
36
+ }, He = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : {};
37
37
  function ye(t) {
38
- const n = Ue(t);
38
+ const n = He(t);
39
39
  if (typeof n.name == "string")
40
40
  return typeof n.namespace == "string" ? `${n.namespace}.${n.name}` : n.name;
41
41
  }
42
- function Me(t, n, r) {
42
+ function Le(t, n, r) {
43
43
  t.doc && (n.description = t.doc), t.default !== void 0 && (n.default = t.default);
44
44
  const u = ye(t);
45
45
  u !== void 0 && r[u] && (n["x-parser-schema-id"] = u);
46
46
  }
47
- function nt(t, n, r) {
47
+ function ot(t, n, r) {
48
48
  !(Array.isArray(t.type) && t.type.includes("null")) && !r && (n.required = n.required || [], n.required.push(t.name));
49
49
  }
50
- function St(t, n) {
50
+ function Pt(t, n) {
51
51
  let r = t, u = n;
52
52
  if (Array.isArray(t) && t.length > 0) {
53
53
  const i = t.length > 1 && t[0] === "null";
@@ -55,7 +55,7 @@ function St(t, n) {
55
55
  }
56
56
  return { type: r, jsonSchema: u };
57
57
  }
58
- function kt(t, n, r) {
58
+ function Mt(t, n, r) {
59
59
  if (!(n === void 0 || r.examples || Array.isArray(t)))
60
60
  switch (t) {
61
61
  case "boolean":
@@ -70,21 +70,21 @@ function kt(t, n, r) {
70
70
  r.examples = [n];
71
71
  }
72
72
  }
73
- function Ne(t) {
73
+ function Ie(t) {
74
74
  return Object.keys(t).some(
75
75
  (n) => n !== "type" && n !== "name" && n !== "namespace"
76
76
  );
77
77
  }
78
- function Le(t, n, r) {
79
- const { type: u, jsonSchema: i } = St(
78
+ function Ue(t, n, r) {
79
+ const { type: u, jsonSchema: i } = Pt(
80
80
  t,
81
81
  r
82
82
  );
83
- kt(u, n.example, i);
84
- function a(...p) {
85
- p.forEach((y) => {
83
+ Mt(u, n.example, i);
84
+ function a(...c) {
85
+ c.forEach((f) => {
86
86
  let h = !0;
87
- y === "minLength" || y === "maxLength" ? h = n[y] > -1 : y === "multipleOf" && (h = n[y] > 0), n[y] !== void 0 && h && (i[y] = n[y]);
87
+ f === "minLength" || f === "maxLength" ? h = n[f] > -1 : f === "multipleOf" && (h = n[f] > 0), n[f] !== void 0 && h && (i[f] = n[f]);
88
88
  });
89
89
  }
90
90
  switch (u) {
@@ -109,29 +109,29 @@ function Le(t, n, r) {
109
109
  break;
110
110
  }
111
111
  }
112
- function Ye(t, n, r) {
112
+ function qe(t, n, r) {
113
113
  n !== void 0 && (t[n] = r);
114
114
  }
115
115
  function he(t, n) {
116
116
  let r = {};
117
117
  if (Array.isArray(t))
118
- return jt(r, t, n);
119
- const u = Ue(t), i = typeof t == "string" ? t : u.type;
120
- switch (r.type = $t[i], i) {
118
+ return Lt(r, t, n);
119
+ const u = He(t), i = typeof t == "string" ? t : u.type;
120
+ switch (r.type = Ct[i], i) {
121
121
  case "int": {
122
- r.minimum = wt, r.maximum = At;
122
+ r.minimum = $t, r.maximum = Ot;
123
123
  break;
124
124
  }
125
125
  case "long": {
126
- r.minimum = bt, r.maximum = Rt;
126
+ r.minimum = kt, r.maximum = jt;
127
127
  break;
128
128
  }
129
129
  case "bytes": {
130
- r.pattern = tt;
130
+ r.pattern = rt;
131
131
  break;
132
132
  }
133
133
  case "fixed": {
134
- r.pattern = tt, r.minLength = u.size, r.maxLength = u.size;
134
+ r.pattern = rt, r.minLength = u.size, r.maxLength = u.size;
135
135
  break;
136
136
  }
137
137
  case "map": {
@@ -159,8 +159,8 @@ function he(t, n) {
159
159
  break;
160
160
  }
161
161
  case "record": {
162
- const a = Ot(u, n, r);
163
- Ye(
162
+ const a = Nt(u, n, r);
163
+ qe(
164
164
  n,
165
165
  ye(t),
166
166
  r
@@ -169,39 +169,39 @@ function he(t, n) {
169
169
  }
170
170
  default: {
171
171
  const a = n[ye(t)] ?? (typeof i == "string" ? n[i] : void 0);
172
- a && (r = Ne(u) ? { ...a } : a);
172
+ a && (r = Ie(u) ? { ...a } : a);
173
173
  break;
174
174
  }
175
175
  }
176
- return Me(u, r, n), Le(i, u, r), r;
176
+ return Le(u, r, n), Ue(i, u, r), r;
177
177
  }
178
- function Ot(t, n, r) {
178
+ function Nt(t, n, r) {
179
179
  const u = /* @__PURE__ */ new Map();
180
180
  for (const i of t.fields ?? []) {
181
181
  const a = typeof i.type == "string" ? n[i.type] : void 0;
182
182
  if (a) {
183
- const p = Ne(i) ? { ...a } : a;
184
- nt(i, r, i.default !== void 0), Ne(i) && (Me(i, p, n), Le(i.type, i, p)), u.set(i.name, p);
183
+ const c = Ie(i) ? { ...a } : a;
184
+ ot(i, r, i.default !== void 0), Ie(i) && (Le(i, c, n), Ue(i.type, i, c)), u.set(i.name, c);
185
185
  } else {
186
- const p = he(i.type, n);
187
- nt(i, r, i.default !== void 0), Me(i, p, n), Le(i.type, i, p), u.set(i.name, p), Ye(n, ye(i.type), p);
186
+ const c = he(i.type, n);
187
+ ot(i, r, i.default !== void 0), Le(i, c, n), Ue(i.type, i, c), u.set(i.name, c), qe(n, ye(i.type), c);
188
188
  }
189
189
  }
190
190
  return u;
191
191
  }
192
- function jt(t, n, r) {
192
+ function Lt(t, n, r) {
193
193
  const u = [];
194
194
  let i = null;
195
195
  for (const a of n) {
196
- const p = he(a, r);
197
- (typeof a == "string" ? a : Ue(a).type) === "null" ? i = p : (u.push(p), Ye(r, ye(a), p));
196
+ const c = he(a, r);
197
+ (typeof a == "string" ? a : He(a).type) === "null" ? i = c : (u.push(c), qe(r, ye(a), c));
198
198
  }
199
199
  return i && u.push(i), t.oneOf = u, t;
200
200
  }
201
- function Ct(t) {
201
+ function It(t) {
202
202
  return he(t, {});
203
203
  }
204
- const rt = /* @__PURE__ */ new Set([
204
+ const st = /* @__PURE__ */ new Set([
205
205
  "null",
206
206
  "boolean",
207
207
  "int",
@@ -211,23 +211,23 @@ const rt = /* @__PURE__ */ new Set([
211
211
  "bytes",
212
212
  "string",
213
213
  "uuid"
214
- ]), Pt = /* @__PURE__ */ new Set(["record", "enum", "array", "map", "fixed"]), ot = /^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$/;
215
- function Mt(t) {
214
+ ]), Ut = /* @__PURE__ */ new Set(["record", "enum", "array", "map", "fixed"]), it = /^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$/;
215
+ function Yt(t) {
216
216
  const n = [];
217
- return se(t, "schema", n, /* @__PURE__ */ new Set()), n;
217
+ return ie(t, "schema", n, /* @__PURE__ */ new Set()), n;
218
218
  }
219
- function se(t, n, r, u) {
219
+ function ie(t, n, r, u) {
220
220
  if (typeof t == "string") {
221
- !rt.has(t) && !ot.test(t) && r.push(`${n}: "${t}" is not a valid Avro type name`);
221
+ !st.has(t) && !it.test(t) && r.push(`${n}: "${t}" is not a valid Avro type name`);
222
222
  return;
223
223
  }
224
224
  if (Array.isArray(t)) {
225
225
  t.length === 0 && r.push(`${n}: union must have at least one alternative`), t.forEach(
226
- (a, p) => se(a, `${n}[${p}]`, r, u)
226
+ (a, c) => ie(a, `${n}[${c}]`, r, u)
227
227
  );
228
228
  return;
229
229
  }
230
- if (!V(t)) {
230
+ if (!Z(t)) {
231
231
  r.push(`${n}: expected an Avro type string, object, or union`);
232
232
  return;
233
233
  }
@@ -235,10 +235,10 @@ function se(t, n, r, u) {
235
235
  u.add(t);
236
236
  const i = t.type;
237
237
  if (typeof i != "string") {
238
- Array.isArray(i) || V(i) ? se(i, `${n}.type`, r, u) : r.push(`${n}: missing "type"`);
238
+ Array.isArray(i) || Z(i) ? ie(i, `${n}.type`, r, u) : r.push(`${n}: missing "type"`);
239
239
  return;
240
240
  }
241
- if (!rt.has(i) && !Pt.has(i) && !ot.test(i)) {
241
+ if (!st.has(i) && !Ut.has(i) && !it.test(i)) {
242
242
  r.push(`${n}: unknown Avro type "${i}"`);
243
243
  return;
244
244
  }
@@ -248,27 +248,27 @@ function se(t, n, r, u) {
248
248
  r.push(`${n}: record must have a "fields" array`);
249
249
  return;
250
250
  }
251
- t.fields.forEach((a, p) => {
252
- const y = `${n}.fields[${p}]`;
253
- if (!V(a) || typeof a.name != "string") {
254
- r.push(`${y}: field must have a string "name"`);
251
+ t.fields.forEach((a, c) => {
252
+ const f = `${n}.fields[${c}]`;
253
+ if (!Z(a) || typeof a.name != "string") {
254
+ r.push(`${f}: field must have a string "name"`);
255
255
  return;
256
256
  }
257
- se(a.type, `${y}.type`, r, u);
257
+ ie(a.type, `${f}.type`, r, u);
258
258
  });
259
259
  break;
260
260
  }
261
261
  case "enum": {
262
262
  const a = t.symbols;
263
- (!Array.isArray(a) || a.some((p) => typeof p != "string")) && r.push(`${n}: enum must have a "symbols" array of strings`);
263
+ (!Array.isArray(a) || a.some((c) => typeof c != "string")) && r.push(`${n}: enum must have a "symbols" array of strings`);
264
264
  break;
265
265
  }
266
266
  case "array": {
267
- t.items === void 0 ? r.push(`${n}: array must have "items"`) : se(t.items, `${n}.items`, r, u);
267
+ t.items === void 0 ? r.push(`${n}: array must have "items"`) : ie(t.items, `${n}.items`, r, u);
268
268
  break;
269
269
  }
270
270
  case "map": {
271
- t.values === void 0 ? r.push(`${n}: map must have "values"`) : se(t.values, `${n}.values`, r, u);
271
+ t.values === void 0 ? r.push(`${n}: map must have "values"`) : ie(t.values, `${n}.values`, r, u);
272
272
  break;
273
273
  }
274
274
  case "fixed": {
@@ -277,7 +277,7 @@ function se(t, n, r, u) {
277
277
  }
278
278
  }
279
279
  }
280
- var Re = { exports: {} }, T = {};
280
+ var be = { exports: {} }, w = {};
281
281
  /**
282
282
  * @license React
283
283
  * react.production.js
@@ -287,15 +287,15 @@ var Re = { exports: {} }, T = {};
287
287
  * This source code is licensed under the MIT license found in the
288
288
  * LICENSE file in the root directory of this source tree.
289
289
  */
290
- var st;
291
- function Nt() {
292
- if (st) return T;
293
- st = 1;
294
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), p = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), w = Symbol.for("react.view_transition"), N = Symbol.iterator;
295
- function U(o) {
296
- return o === null || typeof o != "object" ? null : (o = N && o[N] || o["@@iterator"], typeof o == "function" ? o : null);
290
+ var ut;
291
+ function Ht() {
292
+ if (ut) return w;
293
+ ut = 1;
294
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), T = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), E = Symbol.for("react.view_transition"), $ = Symbol.iterator;
295
+ function k(o) {
296
+ return o === null || typeof o != "object" ? null : (o = $ && o[$] || o["@@iterator"], typeof o == "function" ? o : null);
297
297
  }
298
- var Y = {
298
+ var I = {
299
299
  isMounted: function() {
300
300
  return !1;
301
301
  },
@@ -305,56 +305,56 @@ function Nt() {
305
305
  },
306
306
  enqueueSetState: function() {
307
307
  }
308
- }, D = Object.assign, Z = {};
309
- function B(o, c, v) {
310
- this.props = o, this.context = c, this.refs = Z, this.updater = v || Y;
308
+ }, Y = Object.assign, W = {};
309
+ function z(o, l, v) {
310
+ this.props = o, this.context = l, this.refs = W, this.updater = v || I;
311
311
  }
312
- B.prototype.isReactComponent = {}, B.prototype.setState = function(o, c) {
312
+ z.prototype.isReactComponent = {}, z.prototype.setState = function(o, l) {
313
313
  if (typeof o != "object" && typeof o != "function" && o != null)
314
314
  throw Error(
315
315
  "takes an object of state variables to update or a function which returns an object of state variables."
316
316
  );
317
- this.updater.enqueueSetState(this, o, c, "setState");
318
- }, B.prototype.forceUpdate = function(o) {
317
+ this.updater.enqueueSetState(this, o, l, "setState");
318
+ }, z.prototype.forceUpdate = function(o) {
319
319
  this.updater.enqueueForceUpdate(this, o, "forceUpdate");
320
320
  };
321
321
  function ge() {
322
322
  }
323
- ge.prototype = B.prototype;
324
- function J(o, c, v) {
325
- this.props = o, this.context = c, this.refs = Z, this.updater = v || Y;
323
+ ge.prototype = z.prototype;
324
+ function J(o, l, v) {
325
+ this.props = o, this.context = l, this.refs = W, this.updater = v || I;
326
326
  }
327
- var W = J.prototype = new ge();
328
- W.constructor = J, D(W, B.prototype), W.isPureReactComponent = !0;
327
+ var x = J.prototype = new ge();
328
+ x.constructor = J, Y(x, z.prototype), x.isPureReactComponent = !0;
329
329
  var ve = Array.isArray;
330
- function Q() {
330
+ function X() {
331
331
  }
332
- var C = { H: null, A: null, T: null, S: null }, x = Object.prototype.hasOwnProperty;
333
- function F(o, c, v) {
332
+ var M = { H: null, A: null, T: null, S: null }, G = Object.prototype.hasOwnProperty;
333
+ function K(o, l, v) {
334
334
  var _ = v.ref;
335
335
  return {
336
336
  $$typeof: t,
337
337
  type: o,
338
- key: c,
338
+ key: l,
339
339
  ref: _ !== void 0 ? _ : null,
340
340
  props: v
341
341
  };
342
342
  }
343
- function Oe(o, c) {
344
- return F(o.type, c, o.props);
343
+ function je(o, l) {
344
+ return K(o.type, l, o.props);
345
345
  }
346
- function M(o) {
346
+ function L(o) {
347
347
  return typeof o == "object" && o !== null && o.$$typeof === t;
348
348
  }
349
349
  function _e(o) {
350
- var c = { "=": "=0", ":": "=2" };
350
+ var l = { "=": "=0", ":": "=2" };
351
351
  return "$" + o.replace(/[=:]/g, function(v) {
352
- return c[v];
352
+ return l[v];
353
353
  });
354
354
  }
355
- var ue = /\/+/g;
356
- function ee(o, c) {
357
- return typeof o == "object" && o !== null && o.key != null ? _e("" + o.key) : c.toString(36);
355
+ var ce = /\/+/g;
356
+ function ee(o, l) {
357
+ return typeof o == "object" && o !== null && o.key != null ? _e("" + o.key) : l.toString(36);
358
358
  }
359
359
  function te(o) {
360
360
  switch (o.status) {
@@ -363,12 +363,12 @@ function Nt() {
363
363
  case "rejected":
364
364
  throw o.reason;
365
365
  default:
366
- switch (typeof o.status == "string" ? o.then(Q, Q) : (o.status = "pending", o.then(
367
- function(c) {
368
- o.status === "pending" && (o.status = "fulfilled", o.value = c);
366
+ switch (typeof o.status == "string" ? o.then(X, X) : (o.status = "pending", o.then(
367
+ function(l) {
368
+ o.status === "pending" && (o.status = "fulfilled", o.value = l);
369
369
  },
370
- function(c) {
371
- o.status === "pending" && (o.status = "rejected", o.reason = c);
370
+ function(l) {
371
+ o.status === "pending" && (o.status = "rejected", o.reason = l);
372
372
  }
373
373
  )), o.status) {
374
374
  case "fulfilled":
@@ -379,89 +379,89 @@ function Nt() {
379
379
  }
380
380
  throw o;
381
381
  }
382
- function q(o, c, v, _, S) {
383
- var k = typeof o;
384
- (k === "undefined" || k === "boolean") && (o = null);
385
- var P = !1;
386
- if (o === null) P = !0;
382
+ function D(o, l, v, _, R) {
383
+ var j = typeof o;
384
+ (j === "undefined" || j === "boolean") && (o = null);
385
+ var N = !1;
386
+ if (o === null) N = !0;
387
387
  else
388
- switch (k) {
388
+ switch (j) {
389
389
  case "bigint":
390
390
  case "string":
391
391
  case "number":
392
- P = !0;
392
+ N = !0;
393
393
  break;
394
394
  case "object":
395
395
  switch (o.$$typeof) {
396
396
  case t:
397
397
  case n:
398
- P = !0;
398
+ N = !0;
399
399
  break;
400
- case E:
401
- return P = o._init, q(
402
- P(o._payload),
403
- c,
400
+ case A:
401
+ return N = o._init, D(
402
+ N(o._payload),
403
+ l,
404
404
  v,
405
405
  _,
406
- S
406
+ R
407
407
  );
408
408
  }
409
409
  }
410
- if (P)
411
- return S = S(o), P = _ === "" ? "." + ee(o, 0) : _, ve(S) ? (v = "", P != null && (v = P.replace(ue, "$&/") + "/"), q(S, c, v, "", function(Ee) {
410
+ if (N)
411
+ return R = R(o), N = _ === "" ? "." + ee(o, 0) : _, ve(R) ? (v = "", N != null && (v = N.replace(ce, "$&/") + "/"), D(R, l, v, "", function(Ee) {
412
412
  return Ee;
413
- })) : S != null && (M(S) && (S = Oe(
414
- S,
415
- v + (S.key == null || o && o.key === S.key ? "" : ("" + S.key).replace(
416
- ue,
413
+ })) : R != null && (L(R) && (R = je(
414
+ R,
415
+ v + (R.key == null || o && o.key === R.key ? "" : ("" + R.key).replace(
416
+ ce,
417
417
  "$&/"
418
- ) + "/") + P
419
- )), c.push(S)), 1;
420
- P = 0;
421
- var H = _ === "" ? "." : _ + ":";
418
+ ) + "/") + N
419
+ )), l.push(R)), 1;
420
+ N = 0;
421
+ var q = _ === "" ? "." : _ + ":";
422
422
  if (ve(o))
423
- for (var I = 0; I < o.length; I++)
424
- _ = o[I], k = H + ee(_, I), P += q(
423
+ for (var H = 0; H < o.length; H++)
424
+ _ = o[H], j = q + ee(_, H), N += D(
425
425
  _,
426
- c,
426
+ l,
427
427
  v,
428
- k,
429
- S
428
+ j,
429
+ R
430
430
  );
431
- else if (I = U(o), typeof I == "function")
432
- for (o = I.call(o), I = 0; !(_ = o.next()).done; )
433
- _ = _.value, k = H + ee(_, I++), P += q(
431
+ else if (H = k(o), typeof H == "function")
432
+ for (o = H.call(o), H = 0; !(_ = o.next()).done; )
433
+ _ = _.value, j = q + ee(_, H++), N += D(
434
434
  _,
435
- c,
435
+ l,
436
436
  v,
437
- k,
438
- S
437
+ j,
438
+ R
439
439
  );
440
- else if (k === "object") {
440
+ else if (j === "object") {
441
441
  if (typeof o.then == "function")
442
- return q(
442
+ return D(
443
443
  te(o),
444
- c,
444
+ l,
445
445
  v,
446
446
  _,
447
- S
447
+ R
448
448
  );
449
- throw c = String(o), Error(
450
- "Objects are not valid as a React child (found: " + (c === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : c) + "). If you meant to render a collection of children, use an array instead."
449
+ throw l = String(o), Error(
450
+ "Objects are not valid as a React child (found: " + (l === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : l) + "). If you meant to render a collection of children, use an array instead."
451
451
  );
452
452
  }
453
- return P;
453
+ return N;
454
454
  }
455
- function G(o, c, v) {
455
+ function F(o, l, v) {
456
456
  if (o == null) return o;
457
- var _ = [], S = 0;
458
- return q(o, _, "", "", function(k) {
459
- return c.call(v, k, S++);
457
+ var _ = [], R = 0;
458
+ return D(o, _, "", "", function(j) {
459
+ return l.call(v, j, R++);
460
460
  }), _;
461
461
  }
462
- function ae(o) {
462
+ function fe(o) {
463
463
  if (o._status === -1) {
464
- var c = o._result, v = c();
464
+ var l = o._result, v = l();
465
465
  v.then(
466
466
  function(_) {
467
467
  (o._status === 0 || o._status === -1) && (o._status = 1, o._result = _, v.status === void 0 && (v.status = "fulfilled", v.value = _));
@@ -476,13 +476,13 @@ function Nt() {
476
476
  }
477
477
  var ne = typeof reportError == "function" ? reportError : function(o) {
478
478
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
479
- var c = new window.ErrorEvent("error", {
479
+ var l = new window.ErrorEvent("error", {
480
480
  bubbles: !0,
481
481
  cancelable: !0,
482
482
  message: typeof o == "object" && o !== null && typeof o.message == "string" ? String(o.message) : String(o),
483
483
  error: o
484
484
  });
485
- if (!window.dispatchEvent(c)) return;
485
+ if (!window.dispatchEvent(l)) return;
486
486
  } else if (typeof process == "object" && typeof process.emit == "function") {
487
487
  process.emit("uncaughtException", o);
488
488
  return;
@@ -490,85 +490,85 @@ function Nt() {
490
490
  console.error(o);
491
491
  };
492
492
  function re(o) {
493
- var c = C.T, v = {};
494
- v.types = c !== null ? c.types : null, C.T = v;
493
+ var l = M.T, v = {};
494
+ v.types = l !== null ? l.types : null, M.T = v;
495
495
  try {
496
- var _ = o(), S = C.S;
497
- S !== null && S(v, _), typeof _ == "object" && _ !== null && typeof _.then == "function" && _.then(Q, ne);
498
- } catch (k) {
499
- ne(k);
496
+ var _ = o(), R = M.S;
497
+ R !== null && R(v, _), typeof _ == "object" && _ !== null && typeof _.then == "function" && _.then(X, ne);
498
+ } catch (j) {
499
+ ne(j);
500
500
  } finally {
501
- c !== null && v.types !== null && (c.types = v.types), C.T = c;
501
+ l !== null && v.types !== null && (l.types = v.types), M.T = l;
502
502
  }
503
503
  }
504
- function ce(o) {
505
- var c = C.T;
506
- if (c !== null) {
507
- var v = c.types;
508
- v === null ? c.types = [o] : v.indexOf(o) === -1 && v.push(o);
509
- } else re(ce.bind(null, o));
504
+ function le(o) {
505
+ var l = M.T;
506
+ if (l !== null) {
507
+ var v = l.types;
508
+ v === null ? l.types = [o] : v.indexOf(o) === -1 && v.push(o);
509
+ } else re(le.bind(null, o));
510
510
  }
511
- var fe = {
512
- map: G,
513
- forEach: function(o, c, v) {
514
- G(
511
+ var pe = {
512
+ map: F,
513
+ forEach: function(o, l, v) {
514
+ F(
515
515
  o,
516
516
  function() {
517
- c.apply(this, arguments);
517
+ l.apply(this, arguments);
518
518
  },
519
519
  v
520
520
  );
521
521
  },
522
522
  count: function(o) {
523
- var c = 0;
524
- return G(o, function() {
525
- c++;
526
- }), c;
523
+ var l = 0;
524
+ return F(o, function() {
525
+ l++;
526
+ }), l;
527
527
  },
528
528
  toArray: function(o) {
529
- return G(o, function(c) {
530
- return c;
529
+ return F(o, function(l) {
530
+ return l;
531
531
  }) || [];
532
532
  },
533
533
  only: function(o) {
534
- if (!M(o))
534
+ if (!L(o))
535
535
  throw Error(
536
536
  "React.Children.only expected to receive a single React element child."
537
537
  );
538
538
  return o;
539
539
  }
540
540
  };
541
- return T.Activity = $, T.Children = fe, T.Component = B, T.Fragment = r, T.Profiler = i, T.PureComponent = J, T.StrictMode = u, T.Suspense = h, T.ViewTransition = w, T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, T.__COMPILER_RUNTIME = {
541
+ return w.Activity = O, w.Children = pe, w.Component = z, w.Fragment = r, w.Profiler = i, w.PureComponent = J, w.StrictMode = u, w.Suspense = h, w.ViewTransition = E, w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = M, w.__COMPILER_RUNTIME = {
542
542
  __proto__: null,
543
543
  c: function(o) {
544
- return C.H.useMemoCache(o);
544
+ return M.H.useMemoCache(o);
545
545
  }
546
- }, T.addTransitionType = ce, T.cache = function(o) {
546
+ }, w.addTransitionType = le, w.cache = function(o) {
547
547
  return function() {
548
548
  return o.apply(null, arguments);
549
549
  };
550
- }, T.cacheSignal = function() {
550
+ }, w.cacheSignal = function() {
551
551
  return null;
552
- }, T.cloneElement = function(o, c, v) {
552
+ }, w.cloneElement = function(o, l, v) {
553
553
  if (o == null)
554
554
  throw Error(
555
555
  "The argument must be a React element, but you passed " + o + "."
556
556
  );
557
- var _ = D({}, o.props), S = o.key;
558
- if (c != null)
559
- for (k in c.key !== void 0 && (S = "" + c.key), c)
560
- !x.call(c, k) || k === "key" || k === "__self" || k === "__source" || k === "ref" && c.ref === void 0 || (_[k] = c[k]);
561
- var k = arguments.length - 2;
562
- if (k === 1) _.children = v;
563
- else if (1 < k) {
564
- for (var P = Array(k), H = 0; H < k; H++)
565
- P[H] = arguments[H + 2];
566
- _.children = P;
557
+ var _ = Y({}, o.props), R = o.key;
558
+ if (l != null)
559
+ for (j in l.key !== void 0 && (R = "" + l.key), l)
560
+ !G.call(l, j) || j === "key" || j === "__self" || j === "__source" || j === "ref" && l.ref === void 0 || (_[j] = l[j]);
561
+ var j = arguments.length - 2;
562
+ if (j === 1) _.children = v;
563
+ else if (1 < j) {
564
+ for (var N = Array(j), q = 0; q < j; q++)
565
+ N[q] = arguments[q + 2];
566
+ _.children = N;
567
567
  }
568
- return F(o.type, S, _);
569
- }, T.createContext = function(o) {
568
+ return K(o.type, R, _);
569
+ }, w.createContext = function(o) {
570
570
  return o = {
571
- $$typeof: p,
571
+ $$typeof: c,
572
572
  _currentValue: o,
573
573
  _currentValue2: o,
574
574
  _threadCount: 0,
@@ -578,84 +578,84 @@ function Nt() {
578
578
  $$typeof: a,
579
579
  _context: o
580
580
  }, o;
581
- }, T.createElement = function(o, c, v) {
582
- var _, S = {}, k = null;
583
- if (c != null)
584
- for (_ in c.key !== void 0 && (k = "" + c.key), c)
585
- x.call(c, _) && _ !== "key" && _ !== "__self" && _ !== "__source" && (S[_] = c[_]);
586
- var P = arguments.length - 2;
587
- if (P === 1) S.children = v;
588
- else if (1 < P) {
589
- for (var H = Array(P), I = 0; I < P; I++)
590
- H[I] = arguments[I + 2];
591
- S.children = H;
581
+ }, w.createElement = function(o, l, v) {
582
+ var _, R = {}, j = null;
583
+ if (l != null)
584
+ for (_ in l.key !== void 0 && (j = "" + l.key), l)
585
+ G.call(l, _) && _ !== "key" && _ !== "__self" && _ !== "__source" && (R[_] = l[_]);
586
+ var N = arguments.length - 2;
587
+ if (N === 1) R.children = v;
588
+ else if (1 < N) {
589
+ for (var q = Array(N), H = 0; H < N; H++)
590
+ q[H] = arguments[H + 2];
591
+ R.children = q;
592
592
  }
593
593
  if (o && o.defaultProps)
594
- for (_ in P = o.defaultProps, P)
595
- S[_] === void 0 && (S[_] = P[_]);
596
- return F(o, k, S);
597
- }, T.createRef = function() {
594
+ for (_ in N = o.defaultProps, N)
595
+ R[_] === void 0 && (R[_] = N[_]);
596
+ return K(o, j, R);
597
+ }, w.createRef = function() {
598
598
  return { current: null };
599
- }, T.forwardRef = function(o) {
600
- return { $$typeof: y, render: o };
601
- }, T.isValidElement = M, T.lazy = function(o) {
599
+ }, w.forwardRef = function(o) {
600
+ return { $$typeof: f, render: o };
601
+ }, w.isValidElement = L, w.lazy = function(o) {
602
602
  return {
603
- $$typeof: E,
603
+ $$typeof: A,
604
604
  _payload: { _status: -1, _result: o },
605
- _init: ae
605
+ _init: fe
606
606
  };
607
- }, T.memo = function(o, c) {
607
+ }, w.memo = function(o, l) {
608
608
  return {
609
- $$typeof: R,
609
+ $$typeof: T,
610
610
  type: o,
611
- compare: c === void 0 ? null : c
611
+ compare: l === void 0 ? null : l
612
612
  };
613
- }, T.startTransition = re, T.unstable_useCacheRefresh = function() {
614
- return C.H.useCacheRefresh();
615
- }, T.use = function(o) {
616
- return C.H.use(o);
617
- }, T.useActionState = function(o, c, v) {
618
- return C.H.useActionState(o, c, v);
619
- }, T.useCallback = function(o, c) {
620
- return C.H.useCallback(o, c);
621
- }, T.useContext = function(o) {
622
- return C.H.useContext(o);
623
- }, T.useDebugValue = function() {
624
- }, T.useDeferredValue = function(o, c) {
625
- return C.H.useDeferredValue(o, c);
626
- }, T.useEffect = function(o, c) {
627
- return C.H.useEffect(o, c);
628
- }, T.useEffectEvent = function(o) {
629
- return C.H.useEffectEvent(o);
630
- }, T.useId = function() {
631
- return C.H.useId();
632
- }, T.useImperativeHandle = function(o, c, v) {
633
- return C.H.useImperativeHandle(o, c, v);
634
- }, T.useInsertionEffect = function(o, c) {
635
- return C.H.useInsertionEffect(o, c);
636
- }, T.useLayoutEffect = function(o, c) {
637
- return C.H.useLayoutEffect(o, c);
638
- }, T.useMemo = function(o, c) {
639
- return C.H.useMemo(o, c);
640
- }, T.useOptimistic = function(o, c) {
641
- return C.H.useOptimistic(o, c);
642
- }, T.useReducer = function(o, c, v) {
643
- return C.H.useReducer(o, c, v);
644
- }, T.useRef = function(o) {
645
- return C.H.useRef(o);
646
- }, T.useState = function(o) {
647
- return C.H.useState(o);
648
- }, T.useSyncExternalStore = function(o, c, v) {
649
- return C.H.useSyncExternalStore(
613
+ }, w.startTransition = re, w.unstable_useCacheRefresh = function() {
614
+ return M.H.useCacheRefresh();
615
+ }, w.use = function(o) {
616
+ return M.H.use(o);
617
+ }, w.useActionState = function(o, l, v) {
618
+ return M.H.useActionState(o, l, v);
619
+ }, w.useCallback = function(o, l) {
620
+ return M.H.useCallback(o, l);
621
+ }, w.useContext = function(o) {
622
+ return M.H.useContext(o);
623
+ }, w.useDebugValue = function() {
624
+ }, w.useDeferredValue = function(o, l) {
625
+ return M.H.useDeferredValue(o, l);
626
+ }, w.useEffect = function(o, l) {
627
+ return M.H.useEffect(o, l);
628
+ }, w.useEffectEvent = function(o) {
629
+ return M.H.useEffectEvent(o);
630
+ }, w.useId = function() {
631
+ return M.H.useId();
632
+ }, w.useImperativeHandle = function(o, l, v) {
633
+ return M.H.useImperativeHandle(o, l, v);
634
+ }, w.useInsertionEffect = function(o, l) {
635
+ return M.H.useInsertionEffect(o, l);
636
+ }, w.useLayoutEffect = function(o, l) {
637
+ return M.H.useLayoutEffect(o, l);
638
+ }, w.useMemo = function(o, l) {
639
+ return M.H.useMemo(o, l);
640
+ }, w.useOptimistic = function(o, l) {
641
+ return M.H.useOptimistic(o, l);
642
+ }, w.useReducer = function(o, l, v) {
643
+ return M.H.useReducer(o, l, v);
644
+ }, w.useRef = function(o) {
645
+ return M.H.useRef(o);
646
+ }, w.useState = function(o) {
647
+ return M.H.useState(o);
648
+ }, w.useSyncExternalStore = function(o, l, v) {
649
+ return M.H.useSyncExternalStore(
650
650
  o,
651
- c,
651
+ l,
652
652
  v
653
653
  );
654
- }, T.useTransition = function() {
655
- return C.H.useTransition();
656
- }, T.version = "19.3.0", T;
654
+ }, w.useTransition = function() {
655
+ return M.H.useTransition();
656
+ }, w.version = "19.3.0", w;
657
657
  }
658
- var de = { exports: {} };
658
+ var me = { exports: {} };
659
659
  /**
660
660
  * @license React
661
661
  * react.development.js
@@ -665,10 +665,10 @@ var de = { exports: {} };
665
665
  * This source code is licensed under the MIT license found in the
666
666
  * LICENSE file in the root directory of this source tree.
667
667
  */
668
- de.exports;
669
- var it;
670
- function Lt() {
671
- return it || (it = 1, (function(t, n) {
668
+ me.exports;
669
+ var at;
670
+ function qt() {
671
+ return at || (at = 1, (function(t, n) {
672
672
  process.env.NODE_ENV !== "production" && (function() {
673
673
  function r(e, s) {
674
674
  Object.defineProperty(a.prototype, e, {
@@ -682,146 +682,146 @@ function Lt() {
682
682
  });
683
683
  }
684
684
  function u(e) {
685
- return e === null || typeof e != "object" ? null : (e = ze && e[ze] || e["@@iterator"], typeof e == "function" ? e : null);
685
+ return e === null || typeof e != "object" ? null : (e = Be && e[Be] || e["@@iterator"], typeof e == "function" ? e : null);
686
686
  }
687
687
  function i(e, s) {
688
688
  e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
689
- var f = e + "." + s;
690
- De[f] || (console.error(
689
+ var p = e + "." + s;
690
+ We[p] || (console.error(
691
691
  "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
692
692
  s,
693
693
  e
694
- ), De[f] = !0);
694
+ ), We[p] = !0);
695
695
  }
696
- function a(e, s, f) {
697
- this.props = e, this.context = s, this.refs = je, this.updater = f || Be;
696
+ function a(e, s, p) {
697
+ this.props = e, this.context = s, this.refs = Ce, this.updater = p || xe;
698
698
  }
699
- function p() {
699
+ function c() {
700
700
  }
701
- function y(e, s, f) {
702
- this.props = e, this.context = s, this.refs = je, this.updater = f || Be;
701
+ function f(e, s, p) {
702
+ this.props = e, this.context = s, this.refs = Ce, this.updater = p || xe;
703
703
  }
704
704
  function h() {
705
705
  }
706
- function R(e) {
706
+ function T(e) {
707
707
  return "" + e;
708
708
  }
709
- function E(e) {
709
+ function A(e) {
710
710
  try {
711
- R(e);
711
+ T(e);
712
712
  var s = !1;
713
713
  } catch {
714
714
  s = !0;
715
715
  }
716
716
  if (s) {
717
717
  s = console;
718
- var f = s.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
719
- return f.call(
718
+ var p = s.error, d = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
719
+ return p.call(
720
720
  s,
721
721
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
722
- l
723
- ), R(e);
722
+ d
723
+ ), T(e);
724
724
  }
725
725
  }
726
- function $(e) {
726
+ function O(e) {
727
727
  if (e == null) return null;
728
728
  if (typeof e == "function")
729
- return e.$$typeof === ht ? null : e.displayName || e.name || null;
729
+ return e.$$typeof === Tt ? null : e.displayName || e.name || null;
730
730
  if (typeof e == "string") return e;
731
731
  switch (e) {
732
- case fe:
732
+ case pe:
733
733
  return "Fragment";
734
- case c:
734
+ case l:
735
735
  return "Profiler";
736
736
  case o:
737
737
  return "StrictMode";
738
- case k:
738
+ case j:
739
739
  return "Suspense";
740
- case P:
740
+ case N:
741
741
  return "SuspenseList";
742
742
  case Ee:
743
743
  return "Activity";
744
- case qe:
744
+ case De:
745
745
  return "ViewTransition";
746
746
  }
747
747
  if (typeof e == "object")
748
748
  switch (typeof e.tag == "number" && console.error(
749
749
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
750
750
  ), e.$$typeof) {
751
- case ce:
751
+ case le:
752
752
  return "Portal";
753
753
  case _:
754
754
  return e.displayName || "Context";
755
755
  case v:
756
756
  return (e._context.displayName || "Context") + ".Consumer";
757
- case S:
757
+ case R:
758
758
  var s = e.render;
759
759
  return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
760
+ case q:
761
+ return s = e.displayName || null, s !== null ? s : O(e.type) || "Memo";
760
762
  case H:
761
- return s = e.displayName || null, s !== null ? s : $(e.type) || "Memo";
762
- case I:
763
763
  s = e._payload, e = e._init;
764
764
  try {
765
- return $(e(s));
765
+ return O(e(s));
766
766
  } catch {
767
767
  }
768
768
  }
769
769
  return null;
770
770
  }
771
- function w(e) {
772
- if (e === fe) return "<>";
773
- if (typeof e == "object" && e !== null && e.$$typeof === I)
771
+ function E(e) {
772
+ if (e === pe) return "<>";
773
+ if (typeof e == "object" && e !== null && e.$$typeof === H)
774
774
  return "<...>";
775
775
  try {
776
- var s = $(e);
776
+ var s = O(e);
777
777
  return s ? "<" + s + ">" : "<...>";
778
778
  } catch {
779
779
  return "<...>";
780
780
  }
781
781
  }
782
- function N() {
782
+ function $() {
783
783
  var e = b.A;
784
784
  return e === null ? null : e.getOwner();
785
785
  }
786
- function U() {
786
+ function k() {
787
787
  return Error("react-stack-top-frame");
788
788
  }
789
- function Y(e) {
789
+ function I(e) {
790
790
  if (Te.call(e, "key")) {
791
791
  var s = Object.getOwnPropertyDescriptor(e, "key").get;
792
792
  if (s && s.isReactWarning) return !1;
793
793
  }
794
794
  return e.key !== void 0;
795
795
  }
796
- function D(e, s) {
797
- function f() {
798
- Fe || (Fe = !0, console.error(
796
+ function Y(e, s) {
797
+ function p() {
798
+ Qe || (Qe = !0, console.error(
799
799
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
800
800
  s
801
801
  ));
802
802
  }
803
- f.isReactWarning = !0, Object.defineProperty(e, "key", {
804
- get: f,
803
+ p.isReactWarning = !0, Object.defineProperty(e, "key", {
804
+ get: p,
805
805
  configurable: !0
806
806
  });
807
807
  }
808
- function Z() {
809
- var e = $(this.type);
810
- return Qe[e] || (Qe[e] = !0, console.error(
808
+ function W() {
809
+ var e = O(this.type);
810
+ return Ve[e] || (Ve[e] = !0, console.error(
811
811
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
812
812
  )), e = this.props.ref, e !== void 0 ? e : null;
813
813
  }
814
- function B(e, s, f, l, m, j) {
815
- var g = f.ref;
814
+ function z(e, s, p, d, y, P) {
815
+ var g = p.ref;
816
816
  return e = {
817
817
  $$typeof: re,
818
818
  type: e,
819
819
  key: s,
820
- props: f,
821
- _owner: l
820
+ props: p,
821
+ _owner: d
822
822
  }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(e, "ref", {
823
823
  enumerable: !1,
824
- get: Z
824
+ get: W
825
825
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
826
826
  configurable: !1,
827
827
  enumerable: !1,
@@ -836,16 +836,16 @@ function Lt() {
836
836
  configurable: !1,
837
837
  enumerable: !1,
838
838
  writable: !0,
839
- value: m
839
+ value: y
840
840
  }), Object.defineProperty(e, "_debugTask", {
841
841
  configurable: !1,
842
842
  enumerable: !1,
843
843
  writable: !0,
844
- value: j
844
+ value: P
845
845
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
846
846
  }
847
847
  function ge(e, s) {
848
- return s = B(
848
+ return s = z(
849
849
  e.type,
850
850
  s,
851
851
  e.props,
@@ -855,21 +855,21 @@ function Lt() {
855
855
  ), e._store && (s._store.validated = e._store.validated), s;
856
856
  }
857
857
  function J(e) {
858
- W(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === I && (e._payload.status === "fulfilled" ? W(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
858
+ x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === H && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
859
859
  }
860
- function W(e) {
860
+ function x(e) {
861
861
  return typeof e == "object" && e !== null && e.$$typeof === re;
862
862
  }
863
863
  function ve(e) {
864
864
  var s = { "=": "=0", ":": "=2" };
865
- return "$" + e.replace(/[=:]/g, function(f) {
866
- return s[f];
865
+ return "$" + e.replace(/[=:]/g, function(p) {
866
+ return s[p];
867
867
  });
868
868
  }
869
- function Q(e, s) {
870
- return typeof e == "object" && e !== null && e.key != null ? (E(e.key), ve("" + e.key)) : s.toString(36);
869
+ function X(e, s) {
870
+ return typeof e == "object" && e !== null && e.key != null ? (A(e.key), ve("" + e.key)) : s.toString(36);
871
871
  }
872
- function C(e) {
872
+ function M(e) {
873
873
  switch (e.status) {
874
874
  case "fulfilled":
875
875
  return e.value;
@@ -892,13 +892,13 @@ function Lt() {
892
892
  }
893
893
  throw e;
894
894
  }
895
- function x(e, s, f, l, m) {
896
- var j = typeof e;
897
- (j === "undefined" || j === "boolean") && (e = null);
895
+ function G(e, s, p, d, y) {
896
+ var P = typeof e;
897
+ (P === "undefined" || P === "boolean") && (e = null);
898
898
  var g = !1;
899
899
  if (e === null) g = !0;
900
900
  else
901
- switch (j) {
901
+ switch (P) {
902
902
  case "bigint":
903
903
  case "string":
904
904
  case "number":
@@ -907,60 +907,60 @@ function Lt() {
907
907
  case "object":
908
908
  switch (e.$$typeof) {
909
909
  case re:
910
- case ce:
910
+ case le:
911
911
  g = !0;
912
912
  break;
913
- case I:
914
- return g = e._init, x(
913
+ case H:
914
+ return g = e._init, G(
915
915
  g(e._payload),
916
916
  s,
917
- f,
918
- l,
919
- m
917
+ p,
918
+ d,
919
+ y
920
920
  );
921
921
  }
922
922
  }
923
923
  if (g) {
924
- g = e, m = m(g);
925
- var A = l === "" ? "." + Q(g, 0) : l;
926
- return xe(m) ? (f = "", A != null && (f = A.replace(Ve, "$&/") + "/"), x(m, s, f, "", function(K) {
927
- return K;
928
- })) : m != null && (W(m) && (m.key != null && (g && g.key === m.key || E(m.key)), f = ge(
929
- m,
930
- f + (m.key == null || g && g.key === m.key ? "" : ("" + m.key).replace(
931
- Ve,
924
+ g = e, y = y(g);
925
+ var S = d === "" ? "." + X(g, 0) : d;
926
+ return Fe(y) ? (p = "", S != null && (p = S.replace(Je, "$&/") + "/"), G(y, s, p, "", function(Q) {
927
+ return Q;
928
+ })) : y != null && (x(y) && (y.key != null && (g && g.key === y.key || A(y.key)), p = ge(
929
+ y,
930
+ p + (y.key == null || g && g.key === y.key ? "" : ("" + y.key).replace(
931
+ Je,
932
932
  "$&/"
933
- ) + "/") + A
934
- ), l !== "" && g != null && W(g) && g.key == null && g._store && !g._store.validated && (f._store.validated = 2), m = f), s.push(m)), 1;
933
+ ) + "/") + S
934
+ ), d !== "" && g != null && x(g) && g.key == null && g._store && !g._store.validated && (p._store.validated = 2), y = p), s.push(y)), 1;
935
935
  }
936
- if (g = 0, A = l === "" ? "." : l + ":", xe(e))
937
- for (var O = 0; O < e.length; O++)
938
- l = e[O], j = A + Q(l, O), g += x(
939
- l,
936
+ if (g = 0, S = d === "" ? "." : d + ":", Fe(e))
937
+ for (var C = 0; C < e.length; C++)
938
+ d = e[C], P = S + X(d, C), g += G(
939
+ d,
940
940
  s,
941
- f,
942
- j,
943
- m
941
+ p,
942
+ P,
943
+ y
944
944
  );
945
- else if (O = u(e), typeof O == "function")
946
- for (O === e.entries && (Xe || console.warn(
945
+ else if (C = u(e), typeof C == "function")
946
+ for (C === e.entries && (Ze || console.warn(
947
947
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
948
- ), Xe = !0), e = O.call(e), O = 0; !(l = e.next()).done; )
949
- l = l.value, j = A + Q(l, O++), g += x(
950
- l,
948
+ ), Ze = !0), e = C.call(e), C = 0; !(d = e.next()).done; )
949
+ d = d.value, P = S + X(d, C++), g += G(
950
+ d,
951
951
  s,
952
- f,
953
- j,
954
- m
952
+ p,
953
+ P,
954
+ y
955
955
  );
956
- else if (j === "object") {
956
+ else if (P === "object") {
957
957
  if (typeof e.then == "function")
958
- return x(
959
- C(e),
958
+ return G(
959
+ M(e),
960
960
  s,
961
- f,
962
- l,
963
- m
961
+ p,
962
+ d,
963
+ y
964
964
  );
965
965
  throw s = String(e), Error(
966
966
  "Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead."
@@ -968,65 +968,65 @@ function Lt() {
968
968
  }
969
969
  return g;
970
970
  }
971
- function F(e, s, f) {
971
+ function K(e, s, p) {
972
972
  if (e == null) return e;
973
- var l = [], m = 0;
974
- return x(e, l, "", "", function(j) {
975
- return s.call(f, j, m++);
976
- }), l;
973
+ var d = [], y = 0;
974
+ return G(e, d, "", "", function(P) {
975
+ return s.call(p, P, y++);
976
+ }), d;
977
977
  }
978
- function Oe(e) {
978
+ function je(e) {
979
979
  if (e._status === -1) {
980
- var s = null, f = null, l = e._ioInfo;
981
- l != null && (l.start = l.end = performance.now(), l.value = new Promise(function(g, A) {
982
- s = g, f = A;
983
- })), l = e._result;
984
- var m = l();
985
- if (m.then(
980
+ var s = null, p = null, d = e._ioInfo;
981
+ d != null && (d.start = d.end = performance.now(), d.value = new Promise(function(g, S) {
982
+ s = g, p = S;
983
+ })), d = e._result;
984
+ var y = d();
985
+ if (y.then(
986
986
  function(g) {
987
987
  if (e._status === 0 || e._status === -1) {
988
988
  e._status = 1, e._result = g;
989
- var A = e._ioInfo;
990
- if (A != null) {
991
- A.end = performance.now();
992
- var O = g == null ? void 0 : g.default;
993
- s(O), A.value.status = "fulfilled", A.value.value = O;
989
+ var S = e._ioInfo;
990
+ if (S != null) {
991
+ S.end = performance.now();
992
+ var C = g == null ? void 0 : g.default;
993
+ s(C), S.value.status = "fulfilled", S.value.value = C;
994
994
  }
995
- m.status === void 0 && (m.status = "fulfilled", m.value = g);
995
+ y.status === void 0 && (y.status = "fulfilled", y.value = g);
996
996
  }
997
997
  },
998
998
  function(g) {
999
999
  if (e._status === 0 || e._status === -1) {
1000
1000
  e._status = 2, e._result = g;
1001
- var A = e._ioInfo;
1002
- A != null && (A.end = performance.now(), A.value.then(h, h), f(g), A.value.status = "rejected", A.value.reason = g), m.status === void 0 && (m.status = "rejected", m.reason = g);
1001
+ var S = e._ioInfo;
1002
+ S != null && (S.end = performance.now(), S.value.then(h, h), p(g), S.value.status = "rejected", S.value.reason = g), y.status === void 0 && (y.status = "rejected", y.reason = g);
1003
1003
  }
1004
1004
  }
1005
- ), l = e._ioInfo, l != null) {
1006
- var j = m.displayName;
1007
- typeof j == "string" && (l.name = j);
1005
+ ), d = e._ioInfo, d != null) {
1006
+ var P = y.displayName;
1007
+ typeof P == "string" && (d.name = P);
1008
1008
  }
1009
- e._status === -1 && (e._status = 0, e._result = m);
1009
+ e._status === -1 && (e._status = 0, e._result = y);
1010
1010
  }
1011
1011
  if (e._status === 1)
1012
- return l = e._result, l === void 0 && console.error(
1012
+ return d = e._result, d === void 0 && console.error(
1013
1013
  `lazy: Expected the result of a dynamic import() call. Instead received: %s
1014
1014
 
1015
1015
  Your code should look like:
1016
1016
  const MyComponent = lazy(() => import('./MyComponent'))
1017
1017
 
1018
1018
  Did you accidentally put curly braces around the import?`,
1019
- l
1020
- ), "default" in l || console.error(
1019
+ d
1020
+ ), "default" in d || console.error(
1021
1021
  `lazy: Expected the result of a dynamic import() call. Instead received: %s
1022
1022
 
1023
1023
  Your code should look like:
1024
1024
  const MyComponent = lazy(() => import('./MyComponent'))`,
1025
- l
1026
- ), l.default;
1025
+ d
1026
+ ), d.default;
1027
1027
  throw e._result;
1028
1028
  }
1029
- function M() {
1029
+ function L() {
1030
1030
  var e = b.H;
1031
1031
  return e === null && console.error(
1032
1032
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
@@ -1039,31 +1039,31 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1039
1039
  function _e() {
1040
1040
  b.asyncTransitions--;
1041
1041
  }
1042
- function ue(e) {
1043
- var s = b.T, f = {};
1044
- f.types = s !== null ? s.types : null, f._updatedFibers = /* @__PURE__ */ new Set(), b.T = f;
1042
+ function ce(e) {
1043
+ var s = b.T, p = {};
1044
+ p.types = s !== null ? s.types : null, p._updatedFibers = /* @__PURE__ */ new Set(), b.T = p;
1045
1045
  try {
1046
- var l = e(), m = b.S;
1047
- m !== null && m(f, l), typeof l == "object" && l !== null && typeof l.then == "function" && (b.asyncTransitions++, l.then(_e, _e), l.then(h, Ze));
1048
- } catch (j) {
1049
- Ze(j);
1046
+ var d = e(), y = b.S;
1047
+ y !== null && y(p, d), typeof d == "object" && d !== null && typeof d.then == "function" && (b.asyncTransitions++, d.then(_e, _e), d.then(h, et));
1048
+ } catch (P) {
1049
+ et(P);
1050
1050
  } finally {
1051
- s === null && f._updatedFibers && (e = f._updatedFibers.size, f._updatedFibers.clear(), 10 < e && console.warn(
1051
+ s === null && p._updatedFibers && (e = p._updatedFibers.size, p._updatedFibers.clear(), 10 < e && console.warn(
1052
1052
  "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1053
- )), s !== null && f.types !== null && (s.types !== null && s.types !== f.types && console.error(
1053
+ )), s !== null && p.types !== null && (s.types !== null && s.types !== p.types && console.error(
1054
1054
  "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1055
- ), s.types = f.types), b.T = s;
1055
+ ), s.types = p.types), b.T = s;
1056
1056
  }
1057
1057
  }
1058
1058
  function ee(e) {
1059
1059
  var s = b.T;
1060
1060
  if (s !== null) {
1061
- var f = s.types;
1062
- f === null ? s.types = [e] : f.indexOf(e) === -1 && f.push(e);
1061
+ var p = s.types;
1062
+ p === null ? s.types = [e] : p.indexOf(e) === -1 && p.push(e);
1063
1063
  } else
1064
1064
  b.asyncTransitions === 0 && console.error(
1065
1065
  "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
1066
- ), ue(ee.bind(null, e));
1066
+ ), ce(ee.bind(null, e));
1067
1067
  }
1068
1068
  function te(e) {
1069
1069
  if (we === null)
@@ -1074,68 +1074,68 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1074
1074
  "timers"
1075
1075
  ).setImmediate;
1076
1076
  } catch {
1077
- we = function(l) {
1078
- Je === !1 && (Je = !0, typeof MessageChannel > "u" && console.error(
1077
+ we = function(d) {
1078
+ tt === !1 && (tt = !0, typeof MessageChannel > "u" && console.error(
1079
1079
  "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
1080
1080
  ));
1081
- var m = new MessageChannel();
1082
- m.port1.onmessage = l, m.port2.postMessage(void 0);
1081
+ var y = new MessageChannel();
1082
+ y.port1.onmessage = d, y.port2.postMessage(void 0);
1083
1083
  };
1084
1084
  }
1085
1085
  return we(e);
1086
1086
  }
1087
- function q(e) {
1087
+ function D(e) {
1088
1088
  return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
1089
1089
  }
1090
- function G(e, s) {
1090
+ function F(e, s) {
1091
1091
  s !== Ae - 1 && console.error(
1092
1092
  "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1093
1093
  ), Ae = s;
1094
1094
  }
1095
- function ae(e, s, f) {
1096
- var l = b.actQueue;
1097
- if (l !== null)
1098
- if (l.length !== 0)
1095
+ function fe(e, s, p) {
1096
+ var d = b.actQueue;
1097
+ if (d !== null)
1098
+ if (d.length !== 0)
1099
1099
  try {
1100
- ne(l), te(function() {
1101
- return ae(e, s, f);
1100
+ ne(d), te(function() {
1101
+ return fe(e, s, p);
1102
1102
  });
1103
1103
  return;
1104
- } catch (m) {
1105
- b.thrownErrors.push(m);
1104
+ } catch (y) {
1105
+ b.thrownErrors.push(y);
1106
1106
  }
1107
1107
  else b.actQueue = null;
1108
- 0 < b.thrownErrors.length ? (l = q(b.thrownErrors), b.thrownErrors.length = 0, f(l)) : s(e);
1108
+ 0 < b.thrownErrors.length ? (d = D(b.thrownErrors), b.thrownErrors.length = 0, p(d)) : s(e);
1109
1109
  }
1110
1110
  function ne(e) {
1111
- if (!Ce) {
1112
- Ce = !0;
1111
+ if (!Pe) {
1112
+ Pe = !0;
1113
1113
  var s = 0;
1114
1114
  try {
1115
1115
  for (; s < e.length; s++) {
1116
- var f = e[s];
1116
+ var p = e[s];
1117
1117
  do {
1118
1118
  b.didUsePromise = !1;
1119
- var l = f(!1);
1120
- if (l !== null) {
1119
+ var d = p(!1);
1120
+ if (d !== null) {
1121
1121
  if (b.didUsePromise) {
1122
- e[s] = f, e.splice(0, s);
1122
+ e[s] = p, e.splice(0, s);
1123
1123
  return;
1124
1124
  }
1125
- f = l;
1125
+ p = d;
1126
1126
  } else break;
1127
1127
  } while (!0);
1128
1128
  }
1129
1129
  e.length = 0;
1130
- } catch (m) {
1131
- e.splice(0, s + 1), b.thrownErrors.push(m);
1130
+ } catch (y) {
1131
+ e.splice(0, s + 1), b.thrownErrors.push(y);
1132
1132
  } finally {
1133
- Ce = !1;
1133
+ Pe = !1;
1134
1134
  }
1135
1135
  }
1136
1136
  }
1137
1137
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1138
- var re = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), fe = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), Ee = Symbol.for("react.activity"), qe = Symbol.for("react.view_transition"), ze = Symbol.iterator, De = {}, Be = {
1138
+ var re = Symbol.for("react.transitional.element"), le = Symbol.for("react.portal"), pe = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), Ee = Symbol.for("react.activity"), De = Symbol.for("react.view_transition"), Be = Symbol.iterator, We = {}, xe = {
1139
1139
  isMounted: function() {
1140
1140
  return !1;
1141
1141
  },
@@ -1148,8 +1148,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1148
1148
  enqueueSetState: function(e) {
1149
1149
  i(e, "setState");
1150
1150
  }
1151
- }, We = Object.assign, je = {};
1152
- Object.freeze(je), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, s) {
1151
+ }, Ge = Object.assign, Ce = {};
1152
+ Object.freeze(Ce), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, s) {
1153
1153
  if (typeof e != "object" && typeof e != "function" && e != null)
1154
1154
  throw Error(
1155
1155
  "takes an object of state variables to update or a function which returns an object of state variables."
@@ -1158,7 +1158,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1158
1158
  }, a.prototype.forceUpdate = function(e) {
1159
1159
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1160
1160
  };
1161
- var z = {
1161
+ var B = {
1162
1162
  isMounted: [
1163
1163
  "isMounted",
1164
1164
  "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
@@ -1168,10 +1168,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1168
1168
  "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1169
1169
  ]
1170
1170
  };
1171
- for (le in z)
1172
- z.hasOwnProperty(le) && r(le, z[le]);
1173
- p.prototype = a.prototype, z = y.prototype = new p(), z.constructor = y, We(z, a.prototype), z.isPureReactComponent = !0;
1174
- var xe = Array.isArray, ht = Symbol.for("react.client.reference"), b = {
1171
+ for (de in B)
1172
+ B.hasOwnProperty(de) && r(de, B[de]);
1173
+ c.prototype = a.prototype, B = f.prototype = new c(), B.constructor = f, Ge(B, a.prototype), B.isPureReactComponent = !0;
1174
+ var Fe = Array.isArray, Tt = Symbol.for("react.client.reference"), b = {
1175
1175
  H: null,
1176
1176
  A: null,
1177
1177
  T: null,
@@ -1184,18 +1184,18 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1184
1184
  thrownErrors: [],
1185
1185
  getCurrentStack: null,
1186
1186
  recentlyCreatedOwnerStacks: 0
1187
- }, Te = Object.prototype.hasOwnProperty, Ge = console.createTask ? console.createTask : function() {
1187
+ }, Te = Object.prototype.hasOwnProperty, Ke = console.createTask ? console.createTask : function() {
1188
1188
  return null;
1189
1189
  };
1190
- z = {
1190
+ B = {
1191
1191
  react_stack_bottom_frame: function(e) {
1192
1192
  return e();
1193
1193
  }
1194
1194
  };
1195
- var Fe, Ke, Qe = {}, gt = z.react_stack_bottom_frame.bind(
1196
- z,
1197
- U
1198
- )(), vt = Ge(w(U)), Xe = !1, Ve = /\/+/g, Ze = typeof reportError == "function" ? reportError : function(e) {
1195
+ var Qe, Xe, Ve = {}, wt = B.react_stack_bottom_frame.bind(
1196
+ B,
1197
+ k
1198
+ )(), At = Ke(E(k)), Ze = !1, Je = /\/+/g, et = typeof reportError == "function" ? reportError : function(e) {
1199
1199
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1200
1200
  var s = new window.ErrorEvent("error", {
1201
1201
  bubbles: !0,
@@ -1209,113 +1209,113 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1209
1209
  return;
1210
1210
  }
1211
1211
  console.error(e);
1212
- }, Je = !1, we = null, Ae = 0, be = !1, Ce = !1, et = typeof queueMicrotask == "function" ? function(e) {
1212
+ }, tt = !1, we = null, Ae = 0, Se = !1, Pe = !1, nt = typeof queueMicrotask == "function" ? function(e) {
1213
1213
  queueMicrotask(function() {
1214
1214
  return queueMicrotask(e);
1215
1215
  });
1216
1216
  } : te;
1217
- z = Object.freeze({
1217
+ B = Object.freeze({
1218
1218
  __proto__: null,
1219
1219
  c: function(e) {
1220
- return M().useMemoCache(e);
1220
+ return L().useMemoCache(e);
1221
1221
  }
1222
1222
  });
1223
- var le = {
1224
- map: F,
1225
- forEach: function(e, s, f) {
1226
- F(
1223
+ var de = {
1224
+ map: K,
1225
+ forEach: function(e, s, p) {
1226
+ K(
1227
1227
  e,
1228
1228
  function() {
1229
1229
  s.apply(this, arguments);
1230
1230
  },
1231
- f
1231
+ p
1232
1232
  );
1233
1233
  },
1234
1234
  count: function(e) {
1235
1235
  var s = 0;
1236
- return F(e, function() {
1236
+ return K(e, function() {
1237
1237
  s++;
1238
1238
  }), s;
1239
1239
  },
1240
1240
  toArray: function(e) {
1241
- return F(e, function(s) {
1241
+ return K(e, function(s) {
1242
1242
  return s;
1243
1243
  }) || [];
1244
1244
  },
1245
1245
  only: function(e) {
1246
- if (!W(e))
1246
+ if (!x(e))
1247
1247
  throw Error(
1248
1248
  "React.Children.only expected to receive a single React element child."
1249
1249
  );
1250
1250
  return e;
1251
1251
  }
1252
1252
  };
1253
- n.Activity = Ee, n.Children = le, n.Component = a, n.Fragment = fe, n.Profiler = c, n.PureComponent = y, n.StrictMode = o, n.Suspense = k, n.ViewTransition = qe, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = b, n.__COMPILER_RUNTIME = z, n.act = function(e) {
1254
- var s = b.actQueue, f = Ae;
1253
+ n.Activity = Ee, n.Children = de, n.Component = a, n.Fragment = pe, n.Profiler = l, n.PureComponent = f, n.StrictMode = o, n.Suspense = j, n.ViewTransition = De, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = b, n.__COMPILER_RUNTIME = B, n.act = function(e) {
1254
+ var s = b.actQueue, p = Ae;
1255
1255
  Ae++;
1256
- var l = b.actQueue = s !== null ? s : [], m = !1;
1256
+ var d = b.actQueue = s !== null ? s : [], y = !1;
1257
1257
  try {
1258
- var j = e();
1259
- } catch (O) {
1260
- b.thrownErrors.push(O);
1258
+ var P = e();
1259
+ } catch (C) {
1260
+ b.thrownErrors.push(C);
1261
1261
  }
1262
1262
  if (0 < b.thrownErrors.length)
1263
- throw G(s, f), e = q(b.thrownErrors), b.thrownErrors.length = 0, e;
1264
- if (j !== null && typeof j == "object" && typeof j.then == "function") {
1265
- var g = j;
1266
- return et(function() {
1267
- m || be || (be = !0, console.error(
1263
+ throw F(s, p), e = D(b.thrownErrors), b.thrownErrors.length = 0, e;
1264
+ if (P !== null && typeof P == "object" && typeof P.then == "function") {
1265
+ var g = P;
1266
+ return nt(function() {
1267
+ y || Se || (Se = !0, console.error(
1268
1268
  "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1269
1269
  ));
1270
1270
  }), {
1271
- then: function(O, K) {
1272
- m = !0, g.then(
1271
+ then: function(C, Q) {
1272
+ y = !0, g.then(
1273
1273
  function(oe) {
1274
- if (G(s, f), f === 0) {
1274
+ if (F(s, p), p === 0) {
1275
1275
  try {
1276
- ne(l), te(function() {
1277
- return ae(
1276
+ ne(d), te(function() {
1277
+ return fe(
1278
1278
  oe,
1279
- O,
1280
- K
1279
+ C,
1280
+ Q
1281
1281
  );
1282
1282
  });
1283
- } catch (Et) {
1284
- b.thrownErrors.push(Et);
1283
+ } catch (bt) {
1284
+ b.thrownErrors.push(bt);
1285
1285
  }
1286
1286
  if (0 < b.thrownErrors.length) {
1287
- var _t = q(
1287
+ var St = D(
1288
1288
  b.thrownErrors
1289
1289
  );
1290
- b.thrownErrors.length = 0, K(_t);
1290
+ b.thrownErrors.length = 0, Q(St);
1291
1291
  }
1292
- } else O(oe);
1292
+ } else C(oe);
1293
1293
  },
1294
1294
  function(oe) {
1295
- G(s, f), 0 < b.thrownErrors.length && (oe = q(
1295
+ F(s, p), 0 < b.thrownErrors.length && (oe = D(
1296
1296
  b.thrownErrors
1297
- ), b.thrownErrors.length = 0), K(oe);
1297
+ ), b.thrownErrors.length = 0), Q(oe);
1298
1298
  }
1299
1299
  );
1300
1300
  }
1301
1301
  };
1302
1302
  }
1303
- var A = j;
1304
- if (G(s, f), f === 0 && (ne(l), l.length !== 0 && et(function() {
1305
- m || be || (be = !0, console.error(
1303
+ var S = P;
1304
+ if (F(s, p), p === 0 && (ne(d), d.length !== 0 && nt(function() {
1305
+ y || Se || (Se = !0, console.error(
1306
1306
  "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1307
1307
  ));
1308
1308
  }), b.actQueue = null), 0 < b.thrownErrors.length)
1309
- throw e = q(b.thrownErrors), b.thrownErrors.length = 0, e;
1309
+ throw e = D(b.thrownErrors), b.thrownErrors.length = 0, e;
1310
1310
  return {
1311
- then: function(O, K) {
1312
- m = !0, f === 0 ? (b.actQueue = l, te(function() {
1313
- return ae(
1314
- A,
1315
- O,
1316
- K
1311
+ then: function(C, Q) {
1312
+ y = !0, p === 0 ? (b.actQueue = d, te(function() {
1313
+ return fe(
1314
+ S,
1315
+ C,
1316
+ Q
1317
1317
  );
1318
- })) : O(A);
1318
+ })) : C(S);
1319
1319
  }
1320
1320
  };
1321
1321
  }, n.addTransitionType = ee, n.cache = function(e) {
@@ -1327,12 +1327,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1327
1327
  }, n.captureOwnerStack = function() {
1328
1328
  var e = b.getCurrentStack;
1329
1329
  return e === null ? null : e();
1330
- }, n.cloneElement = function(e, s, f) {
1330
+ }, n.cloneElement = function(e, s, p) {
1331
1331
  if (e == null)
1332
1332
  throw Error(
1333
1333
  "The argument must be a React element, but you passed " + e + "."
1334
1334
  );
1335
- var l = We({}, e.props), m = e.key, j = e._owner;
1335
+ var d = Ge({}, e.props), y = e.key, P = e._owner;
1336
1336
  if (s != null) {
1337
1337
  var g;
1338
1338
  e: {
@@ -1345,28 +1345,28 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1345
1345
  }
1346
1346
  g = s.ref !== void 0;
1347
1347
  }
1348
- g && (j = N()), Y(s) && (E(s.key), m = "" + s.key);
1349
- for (A in s)
1350
- !Te.call(s, A) || A === "key" || A === "__self" || A === "__source" || A === "ref" && s.ref === void 0 || (l[A] = s[A]);
1348
+ g && (P = $()), I(s) && (A(s.key), y = "" + s.key);
1349
+ for (S in s)
1350
+ !Te.call(s, S) || S === "key" || S === "__self" || S === "__source" || S === "ref" && s.ref === void 0 || (d[S] = s[S]);
1351
1351
  }
1352
- var A = arguments.length - 2;
1353
- if (A === 1) l.children = f;
1354
- else if (1 < A) {
1355
- g = Array(A);
1356
- for (var O = 0; O < A; O++)
1357
- g[O] = arguments[O + 2];
1358
- l.children = g;
1352
+ var S = arguments.length - 2;
1353
+ if (S === 1) d.children = p;
1354
+ else if (1 < S) {
1355
+ g = Array(S);
1356
+ for (var C = 0; C < S; C++)
1357
+ g[C] = arguments[C + 2];
1358
+ d.children = g;
1359
1359
  }
1360
- for (l = B(
1360
+ for (d = z(
1361
1361
  e.type,
1362
- m,
1363
- l,
1364
- j,
1362
+ y,
1363
+ d,
1364
+ P,
1365
1365
  e._debugStack,
1366
1366
  e._debugTask
1367
- ), m = 2; m < arguments.length; m++)
1368
- J(arguments[m]);
1369
- return l;
1367
+ ), y = 2; y < arguments.length; y++)
1368
+ J(arguments[y]);
1369
+ return d;
1370
1370
  }, n.createContext = function(e) {
1371
1371
  return e = {
1372
1372
  $$typeof: _,
@@ -1379,43 +1379,43 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1379
1379
  $$typeof: v,
1380
1380
  _context: e
1381
1381
  }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1382
- }, n.createElement = function(e, s, f) {
1383
- for (var l = 2; l < arguments.length; l++)
1384
- J(arguments[l]);
1385
- var m;
1386
- l = {};
1387
- var j = null;
1382
+ }, n.createElement = function(e, s, p) {
1383
+ for (var d = 2; d < arguments.length; d++)
1384
+ J(arguments[d]);
1385
+ var y;
1386
+ d = {};
1387
+ var P = null;
1388
1388
  if (s != null)
1389
- for (m in Ke || !("__self" in s) || "key" in s || (Ke = !0, console.warn(
1389
+ for (y in Xe || !("__self" in s) || "key" in s || (Xe = !0, console.warn(
1390
1390
  "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1391
- )), Y(s) && (E(s.key), j = "" + s.key), s)
1392
- Te.call(s, m) && m !== "key" && m !== "__self" && m !== "__source" && (l[m] = s[m]);
1391
+ )), I(s) && (A(s.key), P = "" + s.key), s)
1392
+ Te.call(s, y) && y !== "key" && y !== "__self" && y !== "__source" && (d[y] = s[y]);
1393
1393
  var g = arguments.length - 2;
1394
- if (g === 1) l.children = f;
1394
+ if (g === 1) d.children = p;
1395
1395
  else if (1 < g) {
1396
- for (var A = Array(g), O = 0; O < g; O++)
1397
- A[O] = arguments[O + 2];
1398
- Object.freeze && Object.freeze(A), l.children = A;
1396
+ for (var S = Array(g), C = 0; C < g; C++)
1397
+ S[C] = arguments[C + 2];
1398
+ Object.freeze && Object.freeze(S), d.children = S;
1399
1399
  }
1400
1400
  if (e && e.defaultProps)
1401
- for (m in g = e.defaultProps, g)
1402
- l[m] === void 0 && (l[m] = g[m]);
1403
- return j && D(
1404
- l,
1401
+ for (y in g = e.defaultProps, g)
1402
+ d[y] === void 0 && (d[y] = g[y]);
1403
+ return P && Y(
1404
+ d,
1405
1405
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
1406
- ), (m = 1e4 > b.recentlyCreatedOwnerStacks++) ? (A = Error.stackTraceLimit, Error.stackTraceLimit = 10, g = Error("react-stack-top-frame"), Error.stackTraceLimit = A) : g = gt, B(
1406
+ ), (y = 1e4 > b.recentlyCreatedOwnerStacks++) ? (S = Error.stackTraceLimit, Error.stackTraceLimit = 10, g = Error("react-stack-top-frame"), Error.stackTraceLimit = S) : g = wt, z(
1407
1407
  e,
1408
- j,
1409
- l,
1410
- N(),
1408
+ P,
1409
+ d,
1410
+ $(),
1411
1411
  g,
1412
- m ? Ge(w(e)) : vt
1412
+ y ? Ke(E(e)) : At
1413
1413
  );
1414
1414
  }, n.createRef = function() {
1415
1415
  var e = { current: null };
1416
1416
  return Object.seal(e), e;
1417
1417
  }, n.forwardRef = function(e) {
1418
- e != null && e.$$typeof === H ? console.error(
1418
+ e != null && e.$$typeof === q ? console.error(
1419
1419
  "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1420
1420
  ) : typeof e != "function" ? console.error(
1421
1421
  "forwardRef requires a render function but was given %s.",
@@ -1426,24 +1426,24 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1426
1426
  ), e != null && e.defaultProps != null && console.error(
1427
1427
  "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1428
1428
  );
1429
- var s = { $$typeof: S, render: e }, f;
1429
+ var s = { $$typeof: R, render: e }, p;
1430
1430
  return Object.defineProperty(s, "displayName", {
1431
1431
  enumerable: !1,
1432
1432
  configurable: !0,
1433
1433
  get: function() {
1434
- return f;
1434
+ return p;
1435
1435
  },
1436
- set: function(l) {
1437
- f = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
1436
+ set: function(d) {
1437
+ p = d, e.name || e.displayName || (Object.defineProperty(e, "name", { value: d }), e.displayName = d);
1438
1438
  }
1439
1439
  }), s;
1440
- }, n.isValidElement = W, n.lazy = function(e) {
1440
+ }, n.isValidElement = x, n.lazy = function(e) {
1441
1441
  e = { _status: -1, _result: e };
1442
1442
  var s = {
1443
- $$typeof: I,
1443
+ $$typeof: H,
1444
1444
  _payload: e,
1445
- _init: Oe
1446
- }, f = {
1445
+ _init: je
1446
+ }, p = {
1447
1447
  name: "lazy",
1448
1448
  start: -1,
1449
1449
  end: -1,
@@ -1452,114 +1452,114 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1452
1452
  debugStack: Error("react-stack-top-frame"),
1453
1453
  debugTask: console.createTask ? console.createTask("lazy()") : null
1454
1454
  };
1455
- return e._ioInfo = f, s._debugInfo = [{ awaited: f }], s;
1455
+ return e._ioInfo = p, s._debugInfo = [{ awaited: p }], s;
1456
1456
  }, n.memo = function(e, s) {
1457
1457
  e == null && console.error(
1458
1458
  "memo: The first argument must be a component. Instead received: %s",
1459
1459
  e === null ? "null" : typeof e
1460
1460
  ), s = {
1461
- $$typeof: H,
1461
+ $$typeof: q,
1462
1462
  type: e,
1463
1463
  compare: s === void 0 ? null : s
1464
1464
  };
1465
- var f;
1465
+ var p;
1466
1466
  return Object.defineProperty(s, "displayName", {
1467
1467
  enumerable: !1,
1468
1468
  configurable: !0,
1469
1469
  get: function() {
1470
- return f;
1470
+ return p;
1471
1471
  },
1472
- set: function(l) {
1473
- f = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
1472
+ set: function(d) {
1473
+ p = d, e.name || e.displayName || (Object.defineProperty(e, "name", { value: d }), e.displayName = d);
1474
1474
  }
1475
1475
  }), s;
1476
- }, n.startTransition = ue, n.unstable_useCacheRefresh = function() {
1477
- return M().useCacheRefresh();
1476
+ }, n.startTransition = ce, n.unstable_useCacheRefresh = function() {
1477
+ return L().useCacheRefresh();
1478
1478
  }, n.use = function(e) {
1479
- return M().use(e);
1480
- }, n.useActionState = function(e, s, f) {
1481
- return M().useActionState(
1479
+ return L().use(e);
1480
+ }, n.useActionState = function(e, s, p) {
1481
+ return L().useActionState(
1482
1482
  e,
1483
1483
  s,
1484
- f
1484
+ p
1485
1485
  );
1486
1486
  }, n.useCallback = function(e, s) {
1487
- return M().useCallback(e, s);
1487
+ return L().useCallback(e, s);
1488
1488
  }, n.useContext = function(e) {
1489
- var s = M();
1489
+ var s = L();
1490
1490
  return e.$$typeof === v && console.error(
1491
1491
  "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1492
1492
  ), s.useContext(e);
1493
1493
  }, n.useDebugValue = function(e, s) {
1494
- return M().useDebugValue(e, s);
1494
+ return L().useDebugValue(e, s);
1495
1495
  }, n.useDeferredValue = function(e, s) {
1496
- return M().useDeferredValue(e, s);
1496
+ return L().useDeferredValue(e, s);
1497
1497
  }, n.useEffect = function(e, s) {
1498
1498
  return e == null && console.warn(
1499
1499
  "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1500
- ), M().useEffect(e, s);
1500
+ ), L().useEffect(e, s);
1501
1501
  }, n.useEffectEvent = function(e) {
1502
- return M().useEffectEvent(e);
1502
+ return L().useEffectEvent(e);
1503
1503
  }, n.useId = function() {
1504
- return M().useId();
1505
- }, n.useImperativeHandle = function(e, s, f) {
1506
- return M().useImperativeHandle(e, s, f);
1504
+ return L().useId();
1505
+ }, n.useImperativeHandle = function(e, s, p) {
1506
+ return L().useImperativeHandle(e, s, p);
1507
1507
  }, n.useInsertionEffect = function(e, s) {
1508
1508
  return e == null && console.warn(
1509
1509
  "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1510
- ), M().useInsertionEffect(e, s);
1510
+ ), L().useInsertionEffect(e, s);
1511
1511
  }, n.useLayoutEffect = function(e, s) {
1512
1512
  return e == null && console.warn(
1513
1513
  "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1514
- ), M().useLayoutEffect(e, s);
1514
+ ), L().useLayoutEffect(e, s);
1515
1515
  }, n.useMemo = function(e, s) {
1516
- return M().useMemo(e, s);
1516
+ return L().useMemo(e, s);
1517
1517
  }, n.useOptimistic = function(e, s) {
1518
- return M().useOptimistic(e, s);
1519
- }, n.useReducer = function(e, s, f) {
1520
- return M().useReducer(e, s, f);
1518
+ return L().useOptimistic(e, s);
1519
+ }, n.useReducer = function(e, s, p) {
1520
+ return L().useReducer(e, s, p);
1521
1521
  }, n.useRef = function(e) {
1522
- return M().useRef(e);
1522
+ return L().useRef(e);
1523
1523
  }, n.useState = function(e) {
1524
- return M().useState(e);
1525
- }, n.useSyncExternalStore = function(e, s, f) {
1526
- return M().useSyncExternalStore(
1524
+ return L().useState(e);
1525
+ }, n.useSyncExternalStore = function(e, s, p) {
1526
+ return L().useSyncExternalStore(
1527
1527
  e,
1528
1528
  s,
1529
- f
1529
+ p
1530
1530
  );
1531
1531
  }, n.useTransition = function() {
1532
- return M().useTransition();
1532
+ return L().useTransition();
1533
1533
  }, n.version = "19.3.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1534
1534
  })();
1535
- })(de, de.exports)), de.exports;
1535
+ })(me, me.exports)), me.exports;
1536
1536
  }
1537
- var ut;
1538
- function It() {
1539
- return ut || (ut = 1, process.env.NODE_ENV === "production" ? Re.exports = Nt() : Re.exports = Lt()), Re.exports;
1537
+ var ct;
1538
+ function zt() {
1539
+ return ct || (ct = 1, process.env.NODE_ENV === "production" ? be.exports = Ht() : be.exports = qt()), be.exports;
1540
1540
  }
1541
- It();
1542
- let Ie = null, Pe = null;
1543
- const Ut = /* @__PURE__ */ new Set();
1544
- function Yt() {
1545
- return Pe || (Pe = import("./markdown-assets/protoToJsonSchema-CWtEPUyE.js").then((t) => {
1546
- Ie = t.protoToJsonSchema, Ut.forEach((n) => n());
1547
- })), Pe;
1541
+ zt();
1542
+ let Ye = null, Me = null;
1543
+ const Dt = /* @__PURE__ */ new Set();
1544
+ function Bt() {
1545
+ return Me || (Me = import("./markdown-assets/protoToJsonSchema-CWtEPUyE.js").then((t) => {
1546
+ Ye = t.protoToJsonSchema, Dt.forEach((n) => n());
1547
+ })), Me;
1548
1548
  }
1549
- function Ht() {
1550
- return Ie || Yt(), Ie;
1549
+ function Wt() {
1550
+ return Ye || Bt(), Ye;
1551
1551
  }
1552
- const qt = "x-parser-original-payload", zt = "x-lib-conversion-error", Dt = /^application\/vnd\.apache\.avro(\+(json|yaml))?(\s*;\s*version=.+)?$/i, Bt = /^application\/vnd\.google\.protobuf(\s*;\s*version=.+)?$/i;
1553
- function Wt(t) {
1554
- return typeof t == "string" && Dt.test(t);
1552
+ const xt = "x-parser-original-payload", Gt = "x-lib-conversion-error", Ft = /^application\/vnd\.apache\.avro(\+(json|yaml))?(\s*;\s*version=.+)?$/i, Kt = /^application\/vnd\.google\.protobuf(\s*;\s*version=.+)?$/i;
1553
+ function Qt(t) {
1554
+ return typeof t == "string" && Ft.test(t);
1555
1555
  }
1556
- function xt(t) {
1557
- return typeof t == "string" && Bt.test(t);
1556
+ function Xt(t) {
1557
+ return typeof t == "string" && Kt.test(t);
1558
1558
  }
1559
- function lt(t) {
1560
- return V(t) && typeof t.schemaFormat == "string" && "schema" in t;
1559
+ function yt(t) {
1560
+ return Z(t) && typeof t.schemaFormat == "string" && "schema" in t;
1561
1561
  }
1562
- const Gt = [
1562
+ const Vt = [
1563
1563
  "properties",
1564
1564
  "oneOf",
1565
1565
  "anyOf",
@@ -1569,7 +1569,7 @@ const Gt = [
1569
1569
  "additionalProperties",
1570
1570
  "patternProperties",
1571
1571
  "x-parser-schema-id"
1572
- ], Ft = /* @__PURE__ */ new Set([
1572
+ ], Zt = /* @__PURE__ */ new Set([
1573
1573
  "record",
1574
1574
  "enum",
1575
1575
  "fixed",
@@ -1581,66 +1581,66 @@ const Gt = [
1581
1581
  "bytes",
1582
1582
  "uuid"
1583
1583
  ]);
1584
- function Kt(t) {
1585
- return typeof t == "string" || Array.isArray(t) ? !0 : V(t) ? typeof t.type == "string" && Ft.has(t.type) || Array.isArray(t.fields) || Array.isArray(t.symbols) ? !0 : !Gt.some((n) => n in t) : !1;
1584
+ function Jt(t) {
1585
+ return typeof t == "string" || Array.isArray(t) ? !0 : Z(t) ? typeof t.type == "string" && Zt.has(t.type) || Array.isArray(t.fields) || Array.isArray(t.symbols) ? !0 : !Vt.some((n) => n in t) : !1;
1586
1586
  }
1587
- function Qt(t, n) {
1587
+ function en(t, n) {
1588
1588
  let r = t;
1589
- if (n && V(r) && typeof r.$ref == "string") {
1590
- const p = n(r.$ref);
1591
- p !== void 0 && (r = p);
1589
+ if (n && Z(r) && typeof r.$ref == "string") {
1590
+ const c = n(r.$ref);
1591
+ c !== void 0 && (r = c);
1592
1592
  }
1593
- const u = Xt(r), i = u.schema.description;
1593
+ const u = tn(r), i = u.schema.description;
1594
1594
  if (typeof i == "string")
1595
1595
  return { ...u, description: i };
1596
- const a = lt(r) ? r.description : void 0;
1596
+ const a = yt(r) ? r.description : void 0;
1597
1597
  return typeof a == "string" ? { ...u, description: a } : u;
1598
1598
  }
1599
- function Xt(t) {
1600
- var p;
1601
- if (!lt(t))
1602
- return { schema: X(t) ?? t };
1603
- const { schemaFormat: n } = t, r = t.schema, u = t[qt], i = (p = X(r)) == null ? void 0 : p[zt];
1599
+ function tn(t) {
1600
+ var c;
1601
+ if (!yt(t))
1602
+ return { schema: V(t) ?? t };
1603
+ const { schemaFormat: n } = t, r = t.schema, u = t[xt], i = (c = V(r)) == null ? void 0 : c[Gt];
1604
1604
  if (typeof i == "string")
1605
1605
  return {
1606
- schema: X(u) ?? {},
1606
+ schema: V(u) ?? {},
1607
1607
  schemaFormat: n,
1608
1608
  originalSchema: u,
1609
1609
  conversionError: i
1610
1610
  };
1611
1611
  if (u !== void 0)
1612
1612
  return {
1613
- schema: X(r) ?? {},
1613
+ schema: V(r) ?? {},
1614
1614
  schemaFormat: n,
1615
1615
  originalSchema: u
1616
1616
  };
1617
- if (Wt(n) && Kt(r)) {
1618
- const y = Mt(r);
1619
- if (y.length > 0)
1617
+ if (Qt(n) && Jt(r)) {
1618
+ const f = Yt(r);
1619
+ if (f.length > 0)
1620
1620
  return {
1621
- schema: X(r) ?? {},
1621
+ schema: V(r) ?? {},
1622
1622
  schemaFormat: n,
1623
1623
  originalSchema: r,
1624
- conversionError: y[0]
1624
+ conversionError: f[0]
1625
1625
  };
1626
1626
  try {
1627
1627
  return {
1628
- schema: Ct(r),
1628
+ schema: It(r),
1629
1629
  schemaFormat: n,
1630
1630
  originalSchema: r
1631
1631
  };
1632
1632
  } catch (h) {
1633
1633
  return {
1634
- schema: X(r) ?? {},
1634
+ schema: V(r) ?? {},
1635
1635
  schemaFormat: n,
1636
1636
  originalSchema: r,
1637
1637
  conversionError: h instanceof Error ? h.message : "Failed to convert Avro schema"
1638
1638
  };
1639
1639
  }
1640
1640
  }
1641
- if (xt(n) && typeof r == "string") {
1642
- const y = Ht();
1643
- if (!y)
1641
+ if (Xt(n) && typeof r == "string") {
1642
+ const f = Wt();
1643
+ if (!f)
1644
1644
  return {
1645
1645
  schema: {},
1646
1646
  schemaFormat: n,
@@ -1649,7 +1649,7 @@ function Xt(t) {
1649
1649
  };
1650
1650
  try {
1651
1651
  return {
1652
- schema: y(r),
1652
+ schema: f(r),
1653
1653
  schemaFormat: n,
1654
1654
  originalSchema: r
1655
1655
  };
@@ -1664,87 +1664,150 @@ function Xt(t) {
1664
1664
  };
1665
1665
  }
1666
1666
  }
1667
- const a = X(r);
1667
+ const a = V(r);
1668
1668
  return a ? { schema: a, schemaFormat: n } : { schema: {}, schemaFormat: n, originalSchema: r };
1669
1669
  }
1670
- const Vt = (t) => typeof t == "object" && t !== null;
1671
- function Zt(t) {
1670
+ const nn = (t) => typeof t == "object" && t !== null;
1671
+ function rn(t) {
1672
1672
  try {
1673
1673
  return decodeURIComponent(t).replace(/~1/g, "/").replace(/~0/g, "~");
1674
1674
  } catch {
1675
1675
  return;
1676
1676
  }
1677
1677
  }
1678
- function Jt(t, n) {
1678
+ function on(t, n) {
1679
1679
  if (n === "#") return t;
1680
1680
  if (!n.startsWith("#/")) return;
1681
1681
  let r = t;
1682
1682
  for (const u of n.slice(2).split("/")) {
1683
- if (!Vt(r)) return;
1684
- const i = Zt(u);
1683
+ if (!nn(r)) return;
1684
+ const i = rn(u);
1685
1685
  if (i === void 0 || (r = r[i], r === void 0)) return;
1686
1686
  }
1687
1687
  return r;
1688
1688
  }
1689
- function ke(t) {
1689
+ function Oe(t) {
1690
1690
  const n = /* @__PURE__ */ new Map();
1691
1691
  return (r) => {
1692
1692
  if (n.has(r)) return n.get(r);
1693
- const u = Jt(t, r);
1693
+ const u = on(t, r);
1694
1694
  return n.set(r, u), u;
1695
1695
  };
1696
1696
  }
1697
- const L = (t, n) => `${"#".repeat(t)} ${n}`, d = (t) => typeof t == "string" ? t.replace(/`/g, "'") : String(t ?? ""), pe = (t) => typeof t == "object" && t !== null && !Array.isArray(t), en = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
1698
- function $e(t, n, r = en) {
1697
+ const Ne = (t) => typeof t == "object" && t !== null && !Array.isArray(t), sn = /* @__PURE__ */ new Set([
1698
+ "properties",
1699
+ "items",
1700
+ "allOf",
1701
+ "oneOf",
1702
+ "anyOf",
1703
+ "additionalProperties",
1704
+ "patternProperties",
1705
+ "propertyNames",
1706
+ "not",
1707
+ "if",
1708
+ "then",
1709
+ "else",
1710
+ "contains",
1711
+ "additionalItems",
1712
+ "prefixItems",
1713
+ "definitions",
1714
+ "$defs"
1715
+ ]), ft = Array.from(sn), lt = "#/components/schemas/", un = (t) => t.replace(/~1/g, "/").replace(/~0/g, "~"), an = (t) => {
1716
+ if (!t.startsWith(lt)) return;
1717
+ const n = t.slice(lt.length).split("/")[0];
1718
+ return n ? un(n) : void 0;
1719
+ }, cn = (t, n) => {
1720
+ const r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
1721
+ for (const [i, a] of Object.entries(t ?? {}))
1722
+ if (Ne(a)) {
1723
+ r.has(a) || r.set(a, i);
1724
+ for (const c of ft) {
1725
+ const f = a[c];
1726
+ typeof f == "object" && f !== null && !u.has(f) && u.set(f, { name: i, schema: a, key: c });
1727
+ }
1728
+ }
1729
+ return (i) => {
1730
+ if (!Ne(i)) return;
1731
+ const a = r.get(i);
1732
+ if (a !== void 0) return a;
1733
+ for (const c of ft) {
1734
+ let f = i[c];
1735
+ if (Ne(f) && typeof f.$ref == "string" && n && (f = n(f.$ref)), typeof f != "object" || f === null) continue;
1736
+ const h = u.get(f);
1737
+ if (h && h.key === c && h.schema.type === i.type) return h.name;
1738
+ }
1739
+ };
1740
+ }, U = (t, n) => `${"#".repeat(t)} ${n}`, m = (t) => typeof t == "string" ? t.replace(/`/g, "'") : String(t ?? ""), se = (t) => typeof t == "object" && t !== null && !Array.isArray(t), fn = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() }, ke = (t, n) => ({
1741
+ schemas: t ?? {},
1742
+ nameOf: cn(t, n),
1743
+ referenced: /* @__PURE__ */ new Set()
1744
+ }), ln = (t) => `#/components/schemas/${t.replace(/~/g, "~0").replace(/\//g, "~1")}`;
1745
+ function Re(t, n, r, u = fn, i = !0) {
1699
1746
  if (t === null || typeof t != "object") return t;
1700
- if (r.objects.has(t) || pe(t) && typeof t.$ref == "string" && r.refs.has(t.$ref)) {
1701
- const a = pe(t) ? t["x-parser-schema-id"] : void 0;
1702
- return typeof a == "string" ? { $ref: `#/components/schemas/${a} (circular)` } : "[circular reference]";
1747
+ if (r && !i) {
1748
+ const f = se(t) && typeof t.$ref == "string" ? t.$ref : void 0, h = f !== void 0 ? (n == null ? void 0 : n(f)) ?? t : t, T = r.nameOf(h);
1749
+ if (T !== void 0)
1750
+ return r.referenced.add(T), { $ref: ln(T) };
1751
+ const A = f !== void 0 ? an(f) : void 0;
1752
+ if (A !== void 0 && Object.prototype.hasOwnProperty.call(r.schemas, A))
1753
+ return r.referenced.add(A), { $ref: f };
1703
1754
  }
1704
- const u = {
1705
- objects: new Set(r.objects).add(t),
1706
- refs: pe(t) && typeof t.$ref == "string" ? new Set(r.refs).add(t.$ref) : r.refs
1755
+ if (u.objects.has(t) || se(t) && typeof t.$ref == "string" && u.refs.has(t.$ref)) {
1756
+ const f = se(t) ? t["x-parser-schema-id"] : void 0;
1757
+ return typeof f == "string" ? { $ref: `#/components/schemas/${f} (circular)` } : "[circular reference]";
1758
+ }
1759
+ const a = {
1760
+ objects: new Set(u.objects).add(t),
1761
+ refs: se(t) && typeof t.$ref == "string" ? new Set(u.refs).add(t.$ref) : u.refs
1707
1762
  };
1708
1763
  if (Array.isArray(t))
1709
- return t.map((a) => $e(a, n, u));
1710
- if (pe(t) && typeof t.$ref == "string") {
1711
- const a = n == null ? void 0 : n(t.$ref);
1712
- return pe(a) || Array.isArray(a) ? $e(a, n, u) : { $ref: t.$ref };
1764
+ return t.map((f) => Re(f, n, r, a, !1));
1765
+ if (se(t) && typeof t.$ref == "string") {
1766
+ const f = n == null ? void 0 : n(t.$ref);
1767
+ return se(f) || Array.isArray(f) ? Re(f, n, r, a, i) : { $ref: t.$ref };
1713
1768
  }
1714
- const i = {};
1715
- for (const [a, p] of Object.entries(t))
1716
- i[a] = $e(p, n, u);
1717
- return i;
1769
+ const c = {};
1770
+ for (const [f, h] of Object.entries(t))
1771
+ c[f] = Re(h, n, r, a, !1);
1772
+ return c;
1718
1773
  }
1719
- function Se(t, n, r) {
1774
+ function $e(t, n, r, u) {
1720
1775
  if (!n) return "";
1721
- const u = $e(n, r);
1722
- return `${L(4, `\`${d(t)}\``)}
1776
+ const i = Re(n, r, u);
1777
+ return `${U(4, `\`${m(t)}\``)}
1723
1778
 
1724
1779
  \`\`\`json
1725
- ${JSON.stringify(u, null, 2)}
1780
+ ${JSON.stringify(i, null, 2)}
1726
1781
  \`\`\``;
1727
1782
  }
1728
- function me(t, n, r) {
1783
+ function ue(t, n, r, u) {
1729
1784
  if (!n || typeof n == "boolean") return "";
1730
- const { schema: u, description: i, conversionError: a, pendingConversion: p } = Qt(n, r);
1731
- if (p) return `${L(4, `\`${d(t)}\``)}
1785
+ const { schema: i, description: a, conversionError: c, pendingConversion: f } = en(n, r);
1786
+ if (f) return `${U(4, `\`${m(t)}\``)}
1732
1787
 
1733
1788
  _(schema conversion still in progress)_`;
1734
- if (a) return `${L(4, `\`${d(t)}\``)}
1789
+ if (c) return `${U(4, `\`${m(t)}\``)}
1790
+
1791
+ _(could not convert schema: ${m(c)})_`;
1792
+ const h = a && !i.description ? { ...i, description: a } : i;
1793
+ return $e(t, h, r, u);
1794
+ }
1795
+ function ht(t, n) {
1796
+ const r = [], u = /* @__PURE__ */ new Set();
1797
+ for (const i of t.referenced)
1798
+ u.has(i) || (u.add(i), r.push(ue(i, t.schemas[i], n, t)));
1799
+ return r.length ? [U(2, "Referenced Schemas"), ...r].join(`
1735
1800
 
1736
- _(could not convert schema: ${d(a)})_`;
1737
- const y = i && !u.description ? { ...u, description: i } : u;
1738
- return Se(t, y, r);
1801
+ `) : "";
1739
1802
  }
1740
- function pt(t) {
1803
+ function gt(t) {
1741
1804
  var n;
1742
1805
  switch (t.type) {
1743
1806
  case "apiKey":
1744
1807
  case "httpApiKey":
1745
- return `API Key (${d(t.in)}${t.name ? `: \`${d(t.name)}\`` : ""})`;
1808
+ return `API Key (${m(t.in)}${t.name ? `: \`${m(t.name)}\`` : ""})`;
1746
1809
  case "http":
1747
- return ((n = t.scheme) == null ? void 0 : n.toLowerCase()) === "basic" ? "HTTP Basic" : `HTTP Bearer${t.bearerFormat ? ` (format: ${d(t.bearerFormat)})` : ""}`;
1810
+ return ((n = t.scheme) == null ? void 0 : n.toLowerCase()) === "basic" ? "HTTP Basic" : `HTTP Bearer${t.bearerFormat ? ` (format: ${m(t.bearerFormat)})` : ""}`;
1748
1811
  case "openIdConnect":
1749
1812
  return "OpenID Connect";
1750
1813
  case "oauth2":
@@ -1766,41 +1829,41 @@ function pt(t) {
1766
1829
  case "asymmetricEncryption":
1767
1830
  return "Asymmetric Encryption";
1768
1831
  default:
1769
- return d(t.type);
1832
+ return m(t.type);
1770
1833
  }
1771
1834
  }
1772
- function tn(t) {
1835
+ function pn(t) {
1773
1836
  if (!(t != null && t.length)) return "";
1774
1837
  const n = [];
1775
1838
  for (const r of t)
1776
- if (r != null && r.type && (n.push(`- **${pt(r)}**`), r.description && n.push(` ${d(r.description)}`), r.type === "openIdConnect" && r.openIdConnectUrl && n.push(` - OpenID Connect URL: \`${d(r.openIdConnectUrl)}\``), r.type === "oauth2"))
1839
+ if (r != null && r.type && (n.push(`- **${gt(r)}**`), r.description && n.push(` ${m(r.description)}`), r.type === "openIdConnect" && r.openIdConnectUrl && n.push(` - OpenID Connect URL: \`${m(r.openIdConnectUrl)}\``), r.type === "oauth2"))
1777
1840
  for (const [u, i] of Object.entries(r.flows ?? {})) {
1778
- n.push(` - Flow \`${d(u)}\`:`), i.authorizationUrl && n.push(` - Authorization URL: \`${d(i.authorizationUrl)}\``), i.tokenUrl && n.push(` - Token URL: \`${d(i.tokenUrl)}\``), i.refreshUrl && n.push(` - Refresh URL: \`${d(i.refreshUrl)}\``);
1841
+ n.push(` - Flow \`${m(u)}\`:`), i.authorizationUrl && n.push(` - Authorization URL: \`${m(i.authorizationUrl)}\``), i.tokenUrl && n.push(` - Token URL: \`${m(i.tokenUrl)}\``), i.refreshUrl && n.push(` - Refresh URL: \`${m(i.refreshUrl)}\``);
1779
1842
  const a = Object.keys(i.availableScopes ?? i.scopes ?? {});
1780
- a.length && n.push(` - Available scopes: ${a.map((p) => `\`${d(p)}\``).join(", ")}`);
1843
+ a.length && n.push(` - Available scopes: ${a.map((c) => `\`${m(c)}\``).join(", ")}`);
1781
1844
  }
1782
1845
  return n.length ? ["**Authorization:**", n.join(`
1783
1846
  `)].join(`
1784
1847
 
1785
1848
  `) : "";
1786
1849
  }
1787
- function dt(t) {
1850
+ function vt(t) {
1788
1851
  const n = [], { info: r } = t;
1789
- n.push(L(1, d(r.title)));
1790
- const u = [`**Version:** ${d(r.version)}`];
1791
- if (r.license && u.push(`**License:** ${d(r.license.name)}${r.license.url ? ` (${d(r.license.url)})` : ""}`), r.contact) {
1792
- const i = [r.contact.name, r.contact.email].filter(Boolean).map(d).join(" ");
1852
+ n.push(U(1, m(r.title)));
1853
+ const u = [`**Version:** ${m(r.version)}`];
1854
+ if (r.license && u.push(`**License:** ${m(r.license.name)}${r.license.url ? ` (${m(r.license.url)})` : ""}`), r.contact) {
1855
+ const i = [r.contact.name, r.contact.email].filter(Boolean).map(m).join(" ");
1793
1856
  i && u.push(`**Contact:** ${i}`);
1794
1857
  }
1795
1858
  if (n.push(u.join(`
1796
- `)), r.description && n.push(d(r.description)), t.servers && Object.keys(t.servers).length) {
1797
- const i = [L(2, "Servers")];
1798
- for (const [a, p] of Object.entries(t.servers)) {
1799
- i.push(L(3, d(a)));
1800
- const y = [`**Host:** \`${d(p.host)}${p.pathname ? d(p.pathname) : ""}\``];
1801
- y.push(`**Protocol:** ${d(p.protocol)}${p.protocolVersion ? ` ${d(p.protocolVersion)}` : ""}`), p.description && y.push(d(p.description)), i.push(y.join(`
1859
+ `)), r.description && n.push(m(r.description)), t.servers && Object.keys(t.servers).length) {
1860
+ const i = [U(2, "Servers")];
1861
+ for (const [a, c] of Object.entries(t.servers)) {
1862
+ i.push(U(3, m(a)));
1863
+ const f = [`**Host:** \`${m(c.host)}${c.pathname ? m(c.pathname) : ""}\``];
1864
+ f.push(`**Protocol:** ${m(c.protocol)}${c.protocolVersion ? ` ${m(c.protocolVersion)}` : ""}`), c.description && f.push(m(c.description)), i.push(f.join(`
1802
1865
  `));
1803
- const h = tn(p.security);
1866
+ const h = pn(c.security);
1804
1867
  h && i.push(h);
1805
1868
  }
1806
1869
  n.push(i.join(`
@@ -1809,45 +1872,45 @@ function dt(t) {
1809
1872
  }
1810
1873
  return n;
1811
1874
  }
1812
- function nn(t, n = ke(t)) {
1813
- var a, p, y;
1814
- const r = dt(t);
1875
+ function dn(t, n = Oe(t)) {
1876
+ var c, f, h, T;
1877
+ const r = vt(t), u = ke((c = t.components) == null ? void 0 : c.schemas, n);
1815
1878
  if (t.operations && Object.keys(t.operations).length) {
1816
- const h = [L(2, "Operations")];
1817
- for (const [R, E] of Object.entries(t.operations)) {
1879
+ const A = [U(2, "Operations")];
1880
+ for (const [O, E] of Object.entries(t.operations)) {
1818
1881
  const $ = E.channel;
1819
- h.push(L(3, `${d((a = E.action) == null ? void 0 : a.toUpperCase())} \`${d(R)}\``));
1820
- const w = [];
1821
- $ != null && $.address && w.push(`**Channel:** \`${d($.address)}\``), E.summary && w.push(d(E.summary)), E.description && w.push(d(E.description));
1822
- const N = E.messages ?? [];
1823
- N.length && w.push(`**Messages:** ${N.map((U) => `\`${d(U.name ?? U.title ?? "message")}\``).join(", ")}`), h.push(w.join(`
1882
+ A.push(U(3, `${m((f = E.action) == null ? void 0 : f.toUpperCase())} \`${m(O)}\``));
1883
+ const k = [];
1884
+ $ != null && $.address && k.push(`**Channel:** \`${m($.address)}\``), E.summary && k.push(m(E.summary)), E.description && k.push(m(E.description));
1885
+ const I = E.messages ?? [];
1886
+ I.length && k.push(`**Messages:** ${I.map((Y) => `\`${m(Y.name ?? Y.title ?? "message")}\``).join(", ")}`), A.push(k.join(`
1824
1887
 
1825
1888
  `));
1826
1889
  }
1827
- r.push(h.join(`
1890
+ r.push(A.join(`
1828
1891
 
1829
1892
  `));
1830
1893
  }
1831
- const u = (p = t.components) == null ? void 0 : p.messages;
1832
- if (u && Object.keys(u).length) {
1833
- const h = [L(2, "Messages")];
1834
- for (const [R, E] of Object.entries(u)) {
1835
- h.push(L(3, d(E.title ?? E.name ?? R)));
1894
+ const i = (h = t.components) == null ? void 0 : h.messages;
1895
+ if (i && Object.keys(i).length) {
1896
+ const A = [U(2, "Messages")];
1897
+ for (const [O, E] of Object.entries(i)) {
1898
+ A.push(U(3, m(E.title ?? E.name ?? O)));
1836
1899
  const $ = [];
1837
- E.summary && $.push(d(E.summary)), E.description && $.push(d(E.description)), E.contentType && $.push(`**Content-Type:** \`${d(E.contentType)}\``), h.push($.join(`
1900
+ E.summary && $.push(m(E.summary)), E.description && $.push(m(E.description)), E.contentType && $.push(`**Content-Type:** \`${m(E.contentType)}\``), A.push($.join(`
1838
1901
 
1839
- `)), E.payload && h.push(me("payload", E.payload, n)), E.headers && h.push(me("headers", E.headers, n));
1902
+ `)), E.payload && A.push(ue("payload", E.payload, n, u)), E.headers && A.push(ue("headers", E.headers, n, u));
1840
1903
  }
1841
- r.push(h.join(`
1904
+ r.push(A.join(`
1842
1905
 
1843
1906
  `));
1844
1907
  }
1845
- const i = (y = t.components) == null ? void 0 : y.schemas;
1846
- if (i && Object.keys(i).length) {
1847
- const h = [L(2, "Schemas")];
1848
- for (const [R, E] of Object.entries(i))
1849
- h.push(me(R, E, n));
1850
- r.push(h.join(`
1908
+ const a = (T = t.components) == null ? void 0 : T.schemas;
1909
+ if (a && Object.keys(a).length) {
1910
+ const A = [U(2, "Schemas")];
1911
+ for (const [O, E] of Object.entries(a))
1912
+ A.push(ue(O, E, n, u));
1913
+ r.push(A.join(`
1851
1914
 
1852
1915
  `));
1853
1916
  }
@@ -1855,140 +1918,140 @@ function nn(t, n = ke(t)) {
1855
1918
 
1856
1919
  `);
1857
1920
  }
1858
- function rn(t, n, r) {
1859
- var y;
1860
- const u = n.channel, i = [L(3, `${d((y = n.action) == null ? void 0 : y.toUpperCase())} \`${d(t)}\``)], a = [];
1861
- u != null && u.address && a.push(`**Channel:** \`${d(u.address)}\``), n.summary && a.push(d(n.summary)), n.description && a.push(d(n.description)), i.push(a.join(`
1921
+ function mn(t, n, r, u) {
1922
+ var h;
1923
+ const i = n.channel, a = [U(3, `${m((h = n.action) == null ? void 0 : h.toUpperCase())} \`${m(t)}\``)], c = [];
1924
+ i != null && i.address && c.push(`**Channel:** \`${m(i.address)}\``), n.summary && c.push(m(n.summary)), n.description && c.push(m(n.description)), a.push(c.join(`
1862
1925
 
1863
1926
  `));
1864
- const p = n.messages ?? [];
1865
- for (const h of p) {
1866
- const R = [L(4, d(h.title ?? h.name ?? "Message"))], E = [];
1867
- h.summary && E.push(d(h.summary)), h.description && E.push(d(h.description)), h.contentType && E.push(`**Content-Type:** \`${d(h.contentType)}\``), E.length && R.push(E.join(`
1927
+ const f = n.messages ?? [];
1928
+ for (const T of f) {
1929
+ const A = [U(4, m(T.title ?? T.name ?? "Message"))], O = [];
1930
+ T.summary && O.push(m(T.summary)), T.description && O.push(m(T.description)), T.contentType && O.push(`**Content-Type:** \`${m(T.contentType)}\``), O.length && A.push(O.join(`
1868
1931
 
1869
- `)), i.push(R.join(`
1932
+ `)), a.push(A.join(`
1870
1933
 
1871
- `)), h.payload && i.push(me("payload", h.payload, r)), h.headers && i.push(me("headers", h.headers, r));
1934
+ `)), T.payload && a.push(ue("payload", T.payload, r, u)), T.headers && a.push(ue("headers", T.headers, r, u));
1872
1935
  }
1873
- return i.filter(Boolean).join(`
1936
+ return a.filter(Boolean).join(`
1874
1937
 
1875
1938
  `);
1876
1939
  }
1877
- function on(t, n, r = ke(t)) {
1878
- var a;
1879
- const u = (a = t.operations) == null ? void 0 : a[n];
1940
+ function yn(t, n, r = Oe(t)) {
1941
+ var c, f;
1942
+ const u = (c = t.operations) == null ? void 0 : c[n];
1880
1943
  if (!u) return "";
1881
- const i = dt(t);
1882
- return i.push(rn(n, u, r)), i.filter(Boolean).join(`
1944
+ const i = vt(t), a = ke((f = t.components) == null ? void 0 : f.schemas, r);
1945
+ return i.push(mn(n, u, r, a)), i.push(ht(a, r)), i.filter(Boolean).join(`
1883
1946
 
1884
1947
  `);
1885
1948
  }
1886
- function sn(t, n) {
1949
+ function hn(t, n) {
1887
1950
  if (!t.length || !n) return "";
1888
1951
  const r = /* @__PURE__ */ new Map();
1889
1952
  for (const a of t)
1890
- for (const [p, y] of Object.entries(a)) {
1891
- if (!y.length) continue;
1892
- const h = r.get(p) ?? [];
1893
- r.set(p, Array.from(/* @__PURE__ */ new Set([...h, ...y])));
1953
+ for (const [c, f] of Object.entries(a)) {
1954
+ if (!f.length) continue;
1955
+ const h = r.get(c) ?? [];
1956
+ r.set(c, Array.from(/* @__PURE__ */ new Set([...h, ...f])));
1894
1957
  }
1895
1958
  const u = Array.from(new Set(t.flatMap((a) => Object.keys(a)))), i = [];
1896
1959
  for (const a of u) {
1897
- const p = n[a];
1898
- if (!p) continue;
1899
- const y = r.get(a);
1900
- if (i.push(`- **${pt(p)}** (\`${d(a)}\`)`), p.description && i.push(` ${d(p.description)}`), p.type === "openIdConnect" && p.openIdConnectUrl && i.push(` - OpenID Connect URL: \`${d(p.openIdConnectUrl)}\``), p.type === "oauth2")
1901
- for (const [h, R] of Object.entries(p.flows ?? {})) {
1902
- i.push(` - Flow \`${d(h)}\`:`), R.authorizationUrl && i.push(` - Authorization URL: \`${d(R.authorizationUrl)}\``), R.tokenUrl && i.push(` - Token URL: \`${d(R.tokenUrl)}\``), R.refreshUrl && i.push(` - Refresh URL: \`${d(R.refreshUrl)}\``);
1903
- const E = y != null && y.length ? y : Object.keys(R.scopes ?? {});
1904
- E.length && i.push(
1905
- ` - ${y != null && y.length ? "Required scopes" : "Scopes"}: ${E.map(($) => `\`${d($)}\``).join(", ")}`
1960
+ const c = n[a];
1961
+ if (!c) continue;
1962
+ const f = r.get(a);
1963
+ if (i.push(`- **${gt(c)}** (\`${m(a)}\`)`), c.description && i.push(` ${m(c.description)}`), c.type === "openIdConnect" && c.openIdConnectUrl && i.push(` - OpenID Connect URL: \`${m(c.openIdConnectUrl)}\``), c.type === "oauth2")
1964
+ for (const [h, T] of Object.entries(c.flows ?? {})) {
1965
+ i.push(` - Flow \`${m(h)}\`:`), T.authorizationUrl && i.push(` - Authorization URL: \`${m(T.authorizationUrl)}\``), T.tokenUrl && i.push(` - Token URL: \`${m(T.tokenUrl)}\``), T.refreshUrl && i.push(` - Refresh URL: \`${m(T.refreshUrl)}\``);
1966
+ const A = f != null && f.length ? f : Object.keys(T.scopes ?? {});
1967
+ A.length && i.push(
1968
+ ` - ${f != null && f.length ? "Required scopes" : "Scopes"}: ${A.map((O) => `\`${m(O)}\``).join(", ")}`
1906
1969
  );
1907
1970
  }
1908
- else y != null && y.length && i.push(` - Required scopes: ${y.map((h) => `\`${d(h)}\``).join(", ")}`);
1971
+ else f != null && f.length && i.push(` - Required scopes: ${f.map((h) => `\`${m(h)}\``).join(", ")}`);
1909
1972
  }
1910
1973
  return i.length ? ["**Authorization:**", i.join(`
1911
1974
  `)].join(`
1912
1975
 
1913
1976
  `) : "";
1914
1977
  }
1915
- function mt(t, n, r, u, i, a) {
1916
- var w;
1917
- const p = [L(3, `${t.toUpperCase()} \`${d(n)}\``)], y = [];
1918
- r.summary && y.push(d(r.summary)), r.description && y.push(d(r.description)), r.deprecated && y.push("**Deprecated**");
1919
- const h = r.security ?? a ?? [], R = sn(h, i);
1920
- R && y.push(R);
1921
- for (const N of ["path", "query", "header", "cookie"]) {
1922
- const U = (r.parameters ?? []).filter((Y) => Y.in === N);
1923
- if (U.length) {
1924
- y.push(`**${N[0].toUpperCase()}${N.slice(1)} Parameters:**`);
1925
- for (const Y of U) {
1926
- const D = Y.schema;
1927
- y.push(
1928
- `- \`${d(Y.name)}\`${Y.required ? " (required)" : ""}${D != null && D.type ? ` — ${d(D.type)}` : ""}${Y.description ? `: ${d(Y.description)}` : ""}`
1978
+ function _t(t, n, r, u, i, a, c) {
1979
+ var $;
1980
+ const f = [U(3, `${t.toUpperCase()} \`${m(n)}\``)], h = [];
1981
+ r.summary && h.push(m(r.summary)), r.description && h.push(m(r.description)), r.deprecated && h.push("**Deprecated**");
1982
+ const T = r.security ?? c ?? [], A = hn(T, a);
1983
+ A && h.push(A);
1984
+ for (const k of ["path", "query", "header", "cookie"]) {
1985
+ const I = (r.parameters ?? []).filter((Y) => Y.in === k);
1986
+ if (I.length) {
1987
+ h.push(`**${k[0].toUpperCase()}${k.slice(1)} Parameters:**`);
1988
+ for (const Y of I) {
1989
+ const W = Y.schema;
1990
+ h.push(
1991
+ `- \`${m(Y.name)}\`${Y.required ? " (required)" : ""}${W != null && W.type ? ` — ${m(W.type)}` : ""}${Y.description ? `: ${m(Y.description)}` : ""}`
1929
1992
  );
1930
1993
  }
1931
1994
  }
1932
1995
  }
1933
- p.push(y.join(`
1996
+ f.push(h.join(`
1934
1997
 
1935
1998
  `));
1936
- const E = ((w = r.requestBody) == null ? void 0 : w.content) ?? {};
1937
- for (const [N, U] of Object.entries(E))
1938
- p.push(
1939
- [`**Request Body** (\`${d(N)}\`)`, Se("body", U.schema, u)].join(
1999
+ const O = (($ = r.requestBody) == null ? void 0 : $.content) ?? {};
2000
+ for (const [k, I] of Object.entries(O))
2001
+ f.push(
2002
+ [`**Request Body** (\`${m(k)}\`)`, $e("body", I.schema, u, i)].join(
1940
2003
  `
1941
2004
 
1942
2005
  `
1943
2006
  )
1944
2007
  );
1945
- const $ = r.responses ?? {};
1946
- for (const [N, U] of Object.entries($)) {
1947
- const Y = [L(4, `${N}${U.description ? `: ${d(U.description)}` : ""}`)];
1948
- for (const [D, Z] of Object.entries(U.content ?? {}))
2008
+ const E = r.responses ?? {};
2009
+ for (const [k, I] of Object.entries(E)) {
2010
+ const Y = [U(4, `${k}${I.description ? `: ${m(I.description)}` : ""}`)];
2011
+ for (const [W, z] of Object.entries(I.content ?? {}))
1949
2012
  Y.push(
1950
- [`**Body** (\`${d(D)}\`)`, Se("body", Z.schema, u)].join(
2013
+ [`**Body** (\`${m(W)}\`)`, $e("body", z.schema, u, i)].join(
1951
2014
  `
1952
2015
 
1953
2016
  `
1954
2017
  )
1955
2018
  );
1956
- p.push(Y.join(`
2019
+ f.push(Y.join(`
1957
2020
 
1958
2021
  `));
1959
2022
  }
1960
- return p.join(`
2023
+ return f.join(`
1961
2024
 
1962
2025
  `);
1963
2026
  }
1964
- function un(t, n = ke(t)) {
1965
- var p, y, h, R, E;
2027
+ function gn(t, n = Oe(t)) {
2028
+ var f, h, T, A, O, E;
1966
2029
  const r = [], { info: u } = t;
1967
- if (r.push(L(1, d(u.title))), r.push(`**Version:** ${d(u.version)}`), u.description && r.push(d(u.description)), (p = t.servers) != null && p.length) {
1968
- const $ = [L(2, "Servers")];
1969
- for (const w of t.servers)
1970
- $.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
2030
+ if (r.push(U(1, m(u.title))), r.push(`**Version:** ${m(u.version)}`), u.description && r.push(m(u.description)), (f = t.servers) != null && f.length) {
2031
+ const $ = [U(2, "Servers")];
2032
+ for (const k of t.servers)
2033
+ $.push(`- \`${m(k.url)}\`${k.description ? ` — ${m(k.description)}` : ""}`);
1971
2034
  r.push($.join(`
1972
2035
  `));
1973
2036
  }
1974
- const i = t.paths ? ft(t.paths) : [];
1975
- if (i.length) {
1976
- const $ = [L(2, "Endpoints")];
1977
- for (const { method: w, path: N } of i) {
1978
- const U = (h = (y = t.paths) == null ? void 0 : y[N]) == null ? void 0 : h[w];
1979
- U && $.push(
1980
- mt(w, N, U, n, (R = t.components) == null ? void 0 : R.securitySchemes, t.security)
2037
+ const i = ke((h = t.components) == null ? void 0 : h.schemas, n), a = t.paths ? mt(t.paths) : [];
2038
+ if (a.length) {
2039
+ const $ = [U(2, "Endpoints")];
2040
+ for (const { method: k, path: I } of a) {
2041
+ const Y = (A = (T = t.paths) == null ? void 0 : T[I]) == null ? void 0 : A[k];
2042
+ Y && $.push(
2043
+ _t(k, I, Y, n, i, (O = t.components) == null ? void 0 : O.securitySchemes, t.security)
1981
2044
  );
1982
2045
  }
1983
2046
  r.push($.join(`
1984
2047
 
1985
2048
  `));
1986
2049
  }
1987
- const a = (E = t.components) == null ? void 0 : E.schemas;
1988
- if (a && Object.keys(a).length) {
1989
- const $ = [L(2, "Schemas")];
1990
- for (const [w, N] of Object.entries(a))
1991
- $.push(Se(w, N, n));
2050
+ const c = (E = t.components) == null ? void 0 : E.schemas;
2051
+ if (c && Object.keys(c).length) {
2052
+ const $ = [U(2, "Schemas")];
2053
+ for (const [k, I] of Object.entries(c))
2054
+ $.push($e(k, I, n, i));
1992
2055
  r.push($.join(`
1993
2056
 
1994
2057
  `));
@@ -1997,23 +2060,24 @@ function un(t, n = ke(t)) {
1997
2060
 
1998
2061
  `);
1999
2062
  }
2000
- function an(t, n, r, u = ke(t)) {
2001
- var y, h, R, E;
2002
- const i = (h = (y = t.paths) == null ? void 0 : y[r]) == null ? void 0 : h[n];
2063
+ function vn(t, n, r, u = Oe(t)) {
2064
+ var h, T, A, O, E;
2065
+ const i = (T = (h = t.paths) == null ? void 0 : h[r]) == null ? void 0 : T[n];
2003
2066
  if (!i) return "";
2004
- const a = [], { info: p } = t;
2005
- if (a.push(L(1, d(p.title))), a.push(`**Version:** ${d(p.version)}`), p.description && a.push(d(p.description)), (R = t.servers) != null && R.length) {
2006
- const $ = [L(2, "Servers")];
2007
- for (const w of t.servers)
2008
- $.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
2067
+ const a = [], { info: c } = t;
2068
+ if (a.push(U(1, m(c.title))), a.push(`**Version:** ${m(c.version)}`), c.description && a.push(m(c.description)), (A = t.servers) != null && A.length) {
2069
+ const $ = [U(2, "Servers")];
2070
+ for (const k of t.servers)
2071
+ $.push(`- \`${m(k.url)}\`${k.description ? ` — ${m(k.description)}` : ""}`);
2009
2072
  a.push($.join(`
2010
2073
  `));
2011
2074
  }
2012
- return a.push(mt(n, r, i, u, (E = t.components) == null ? void 0 : E.securitySchemes, t.security)), a.filter(Boolean).join(`
2075
+ const f = ke((O = t.components) == null ? void 0 : O.schemas, u);
2076
+ return a.push(_t(n, r, i, u, f, (E = t.components) == null ? void 0 : E.securitySchemes, t.security)), a.push(ht(f, u)), a.filter(Boolean).join(`
2013
2077
 
2014
2078
  `);
2015
2079
  }
2016
- function yt(t) {
2080
+ function Et(t) {
2017
2081
  return {
2018
2082
  ...t,
2019
2083
  title: (n) => t.title(n),
@@ -2022,11 +2086,11 @@ function yt(t) {
2022
2086
  toMarkdown: (n, r) => t.toMarkdown(n, r)
2023
2087
  };
2024
2088
  }
2025
- const ie = (t) => {
2089
+ const ae = (t) => {
2026
2090
  var r;
2027
2091
  return typeof t != "string" ? void 0 : ((r = t.trim().split(`
2028
2092
  `)[0]) == null ? void 0 : r.trim()) || void 0;
2029
- }, cn = (t) => ct.some((n) => n === t), fn = yt({
2093
+ }, _n = (t) => dt.some((n) => n === t), En = Et({
2030
2094
  name: "OpenAPI",
2031
2095
  matches: (t) => typeof t.openapi == "string" || typeof t.swagger == "string",
2032
2096
  sectionTitle: "Endpoints",
@@ -2036,25 +2100,25 @@ const ie = (t) => {
2036
2100
  },
2037
2101
  summary: (t) => {
2038
2102
  var n;
2039
- return ie((n = t.info) == null ? void 0 : n.description);
2103
+ return ae((n = t.info) == null ? void 0 : n.description);
2040
2104
  },
2041
- targets: (t) => ft(t.paths ?? {}).map(({ key: n, method: r, path: u }) => {
2042
- var a, p;
2043
- const i = (p = (a = t.paths) == null ? void 0 : a[u]) == null ? void 0 : p[r];
2105
+ targets: (t) => mt(t.paths ?? {}).map(({ key: n, method: r, path: u }) => {
2106
+ var a, c;
2107
+ const i = (c = (a = t.paths) == null ? void 0 : a[u]) == null ? void 0 : c[r];
2044
2108
  return {
2045
2109
  key: n,
2046
2110
  label: `${r.toUpperCase()} ${u}`,
2047
- summary: ie(i == null ? void 0 : i.summary) ?? ie(i == null ? void 0 : i.description),
2111
+ summary: ae(i == null ? void 0 : i.summary) ?? ae(i == null ? void 0 : i.description),
2048
2112
  target: { kind: "operation", document: t, method: r, path: u }
2049
2113
  };
2050
2114
  }),
2051
2115
  toMarkdown: (t, n) => {
2052
- if (!n || n.kind === "document") return un(t);
2053
- if (typeof n.path != "string" || !cn(n.method))
2116
+ if (!n || n.kind === "document") return gn(t);
2117
+ if (typeof n.path != "string" || !_n(n.method))
2054
2118
  throw new Error("[apiuikit] An OpenAPI operation target requires a valid method and path.");
2055
- return an(t, n.method, n.path);
2119
+ return vn(t, n.method, n.path);
2056
2120
  }
2057
- }), ln = yt({
2121
+ }), Tn = Et({
2058
2122
  name: "AsyncAPI",
2059
2123
  matches: (t) => typeof t.asyncapi == "string",
2060
2124
  sectionTitle: "Operations",
@@ -2064,77 +2128,77 @@ const ie = (t) => {
2064
2128
  },
2065
2129
  summary: (t) => {
2066
2130
  var n;
2067
- return ie((n = t.info) == null ? void 0 : n.description);
2131
+ return ae((n = t.info) == null ? void 0 : n.description);
2068
2132
  },
2069
2133
  targets: (t) => Object.entries(t.operations ?? {}).map(([n, r]) => ({
2070
2134
  key: n,
2071
2135
  label: r != null && r.action ? `${r.action.toUpperCase()} ${n}` : n,
2072
- summary: ie(r == null ? void 0 : r.summary) ?? ie(r == null ? void 0 : r.description),
2136
+ summary: ae(r == null ? void 0 : r.summary) ?? ae(r == null ? void 0 : r.description),
2073
2137
  target: { kind: "operation", document: t, id: n }
2074
2138
  })),
2075
2139
  toMarkdown: (t, n) => {
2076
- if (!n || n.kind === "document") return nn(t);
2140
+ if (!n || n.kind === "document") return dn(t);
2077
2141
  if (typeof n.id != "string" || !n.id)
2078
2142
  throw new Error("[apiuikit] An AsyncAPI operation target requires an operation id.");
2079
- return on(t, n.id);
2143
+ return yn(t, n.id);
2080
2144
  }
2081
- }), at = [fn, ln];
2082
- function He(t) {
2083
- const n = typeof t == "object" && t !== null ? t : {}, r = at.find((u) => u.matches(n));
2145
+ }), pt = [En, Tn];
2146
+ function ze(t) {
2147
+ const n = typeof t == "object" && t !== null ? t : {}, r = pt.find((u) => u.matches(n));
2084
2148
  if (!r)
2085
2149
  throw new Error(
2086
- `[apiuikit] Unrecognized document: expected a top-level "openapi", "swagger", or "asyncapi" version key. Supported specs: ${at.map((u) => u.name).join(", ")}.`
2150
+ `[apiuikit] Unrecognized document: expected a top-level "openapi", "swagger", or "asyncapi" version key. Supported specs: ${pt.map((u) => u.name).join(", ")}.`
2087
2151
  );
2088
2152
  return r;
2089
2153
  }
2090
- function pn(t) {
2154
+ function wn(t) {
2091
2155
  return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
2092
2156
  }
2093
- function mn(t) {
2094
- return He(t).targets(t);
2157
+ function Sn(t) {
2158
+ return ze(t).targets(t);
2095
2159
  }
2096
- function yn(t, n) {
2097
- const r = He(t);
2160
+ function bn(t, n) {
2161
+ const r = ze(t);
2098
2162
  if (n && n.document !== t)
2099
2163
  throw new Error("[apiuikit] Markdown target belongs to a different document.");
2100
2164
  return r.toMarkdown(t, n);
2101
2165
  }
2102
- function hn(t, n = {}) {
2103
- const r = He(t), { baseUrl: u, url: i, optional: a } = n, p = (u == null ? void 0 : u.replace(/\/+$/, "")) ?? "", h = i ?? ((w) => `${p}/${pn(w.key)}.md`), R = [`# ${n.title ?? r.title(t)}`], E = n.summary ?? r.summary(t);
2104
- E && R.push("", `> ${E}`);
2105
- const $ = r.targets(t).map((w) => ({ entry: w, href: h(w) })).filter((w) => !!w.href);
2106
- if ($.length) {
2107
- R.push("", `## ${r.sectionTitle}`, "");
2108
- for (const { entry: w, href: N } of $)
2109
- R.push(`- [${w.label}](${N})${w.summary ? `: ${w.summary}` : ""}`);
2166
+ function Rn(t, n = {}) {
2167
+ const r = ze(t), { baseUrl: u, url: i, optional: a } = n, c = (u == null ? void 0 : u.replace(/\/+$/, "")) ?? "", h = i ?? ((E) => `${c}/${wn(E.key)}.md`), T = [`# ${n.title ?? r.title(t)}`], A = n.summary ?? r.summary(t);
2168
+ A && T.push("", `> ${A}`);
2169
+ const O = r.targets(t).map((E) => ({ entry: E, href: h(E) })).filter((E) => !!E.href);
2170
+ if (O.length) {
2171
+ T.push("", `## ${r.sectionTitle}`, "");
2172
+ for (const { entry: E, href: $ } of O)
2173
+ T.push(`- [${E.label}](${$})${E.summary ? `: ${E.summary}` : ""}`);
2110
2174
  }
2111
2175
  if (a != null && a.length) {
2112
- R.push("", "## Optional", "");
2113
- for (const w of a)
2114
- R.push(`- [${w.label}](${w.url})${w.description ? `: ${w.description}` : ""}`);
2176
+ T.push("", "## Optional", "");
2177
+ for (const E of a)
2178
+ T.push(`- [${E.label}](${E.url})${E.description ? `: ${E.description}` : ""}`);
2115
2179
  }
2116
- return R.push(""), R.join(`
2180
+ return T.push(""), T.join(`
2117
2181
  `);
2118
2182
  }
2119
- const dn = [
2183
+ const An = [
2120
2184
  "The following is API documentation in Markdown.",
2121
2185
  "Use it to answer questions about this API and help write client code.",
2122
2186
  "Stick to what is documented below - do not invent endpoints, fields, or behavior."
2123
2187
  ];
2124
- function gn(t) {
2125
- return `${["> ## Agent Instructions", ...dn.map((r) => `> ${r}`)].join(`
2188
+ function $n(t) {
2189
+ return `${["> ## Agent Instructions", ...An.map((r) => `> ${r}`)].join(`
2126
2190
  `)}
2127
2191
 
2128
2192
  ${t.trimStart()}`;
2129
2193
  }
2130
2194
  export {
2131
- on as asyncApiOperationToMarkdown,
2132
- nn as asyncApiToMarkdown,
2133
- hn as documentToLlmsTxt,
2134
- yn as documentToMarkdown,
2135
- mn as listDocumentTargets,
2136
- gn as markdownForLlm,
2137
- an as openApiEndpointToMarkdown,
2138
- un as openApiToMarkdown,
2139
- pn as targetSlug
2195
+ yn as asyncApiOperationToMarkdown,
2196
+ dn as asyncApiToMarkdown,
2197
+ Rn as documentToLlmsTxt,
2198
+ bn as documentToMarkdown,
2199
+ Sn as listDocumentTargets,
2200
+ $n as markdownForLlm,
2201
+ vn as openApiEndpointToMarkdown,
2202
+ gn as openApiToMarkdown,
2203
+ wn as targetSlug
2140
2204
  };