apiuikit 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CodeSamples-CZKz2-Dm.js → CodeSamples-DlTU0NQt.js} +1 -1
- package/dist/{CodeSamples-C-Zh9TuO.cjs → CodeSamples-cudhC1Tt.cjs} +1 -1
- package/dist/{LogoExtension-D9QH---d.js → LogoExtension-CB2hokoQ.js} +1 -1
- package/dist/{LogoExtension-gQqp4qAs.cjs → LogoExtension-CWmh9Ac1.cjs} +1 -1
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.es.js +1 -1
- package/dist/containers/Operation/OperationHeader.d.ts +4 -3
- package/dist/helpers/namedSchemas.d.ts +23 -0
- package/dist/helpers/searchIndex.d.ts +10 -2
- package/dist/helpers/toMarkdown.d.ts +2 -2
- package/dist/{index-DWi-5Qhv.js → index-9nxb2bCY.js} +1 -1
- package/dist/{index-mERDXCsS.js → index-B0PAsEtK.js} +1 -1
- package/dist/{index-DCUxUfs9.js → index-D1eDZSHR.js} +3106 -3064
- package/dist/index-Dgi7m_9C.cjs +180 -0
- package/dist/{index-zzzbwB0Q.cjs → index-JfEtoyra.cjs} +1 -1
- package/dist/{index-Dbx_ZPzz.cjs → index-jpFnjoiM.cjs} +1 -1
- package/dist/markdown.cjs +40 -38
- package/dist/markdown.es.js +892 -828
- package/dist/{protoToJsonSchema-CSfBUNFY.js → protoToJsonSchema-BtR0DMuR.js} +1 -1
- package/dist/{protoToJsonSchema-D5rReTeP.cjs → protoToJsonSchema-sAcBTEqG.cjs} +1 -1
- package/dist/{protobufSchemaParser-C0tNlE9Q.js → protobufSchemaParser-C5H7VtBA.js} +2 -2
- package/dist/{protobufSchemaParser-C1qERHkI.cjs → protobufSchemaParser-DQwQQY_N.cjs} +1 -1
- package/package.json +2 -2
- package/dist/index-C2-zxpuU.cjs +0 -178
package/dist/markdown.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
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
|
-
],
|
|
11
|
-
function
|
|
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 ?
|
|
15
|
-
key:
|
|
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
|
|
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
|
-
},
|
|
36
|
+
}, He = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : {};
|
|
37
37
|
function ye(t) {
|
|
38
|
-
const n =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
79
|
-
const { type: u, jsonSchema: i } =
|
|
78
|
+
function Ue(t, n, r) {
|
|
79
|
+
const { type: u, jsonSchema: i } = Pt(
|
|
80
80
|
t,
|
|
81
81
|
r
|
|
82
82
|
);
|
|
83
|
-
|
|
84
|
-
function a(...
|
|
85
|
-
|
|
83
|
+
Mt(u, n.example, i);
|
|
84
|
+
function a(...c) {
|
|
85
|
+
c.forEach((f) => {
|
|
86
86
|
let h = !0;
|
|
87
|
-
|
|
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
|
|
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
|
|
119
|
-
const u =
|
|
120
|
-
switch (r.type =
|
|
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 =
|
|
122
|
+
r.minimum = $t, r.maximum = Ot;
|
|
123
123
|
break;
|
|
124
124
|
}
|
|
125
125
|
case "long": {
|
|
126
|
-
r.minimum =
|
|
126
|
+
r.minimum = kt, r.maximum = jt;
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
case "bytes": {
|
|
130
|
-
r.pattern =
|
|
130
|
+
r.pattern = rt;
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
133
|
case "fixed": {
|
|
134
|
-
r.pattern =
|
|
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 =
|
|
163
|
-
|
|
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 =
|
|
172
|
+
a && (r = Ie(u) ? { ...a } : a);
|
|
173
173
|
break;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return Le(u, r, n), Ue(i, u, r), r;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
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
|
|
184
|
-
|
|
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
|
|
187
|
-
|
|
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
|
|
192
|
+
function Lt(t, n, r) {
|
|
193
193
|
const u = [];
|
|
194
194
|
let i = null;
|
|
195
195
|
for (const a of n) {
|
|
196
|
-
const
|
|
197
|
-
(typeof a == "string" ? a :
|
|
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
|
|
201
|
+
function It(t) {
|
|
202
202
|
return he(t, {});
|
|
203
203
|
}
|
|
204
|
-
const
|
|
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
|
-
]),
|
|
215
|
-
function
|
|
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
|
|
217
|
+
return ie(t, "schema", n, /* @__PURE__ */ new Set()), n;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function ie(t, n, r, u) {
|
|
220
220
|
if (typeof t == "string") {
|
|
221
|
-
!
|
|
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,
|
|
226
|
+
(a, c) => ie(a, `${n}[${c}]`, r, u)
|
|
227
227
|
);
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
if (!
|
|
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) ||
|
|
238
|
+
Array.isArray(i) || Z(i) ? ie(i, `${n}.type`, r, u) : r.push(`${n}: missing "type"`);
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
if (!
|
|
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,
|
|
252
|
-
const
|
|
253
|
-
if (!
|
|
254
|
-
r.push(`${
|
|
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
|
-
|
|
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((
|
|
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"`) :
|
|
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"`) :
|
|
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
|
|
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
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
293
|
-
|
|
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"),
|
|
295
|
-
function
|
|
296
|
-
return o === null || typeof o != "object" ? null : (o =
|
|
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
|
|
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
|
-
},
|
|
309
|
-
function
|
|
310
|
-
this.props = o, this.context =
|
|
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
|
-
|
|
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,
|
|
318
|
-
},
|
|
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 =
|
|
324
|
-
function J(o,
|
|
325
|
-
this.props = o, this.context =
|
|
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
|
|
328
|
-
|
|
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
|
|
330
|
+
function X() {
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
function
|
|
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:
|
|
338
|
+
key: l,
|
|
339
339
|
ref: _ !== void 0 ? _ : null,
|
|
340
340
|
props: v
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
return
|
|
343
|
+
function je(o, l) {
|
|
344
|
+
return K(o.type, l, o.props);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function L(o) {
|
|
347
347
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
348
348
|
}
|
|
349
349
|
function _e(o) {
|
|
350
|
-
var
|
|
350
|
+
var l = { "=": "=0", ":": "=2" };
|
|
351
351
|
return "$" + o.replace(/[=:]/g, function(v) {
|
|
352
|
-
return
|
|
352
|
+
return l[v];
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
var
|
|
356
|
-
function ee(o,
|
|
357
|
-
return typeof o == "object" && o !== null && o.key != null ? _e("" + o.key) :
|
|
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(
|
|
367
|
-
function(
|
|
368
|
-
o.status === "pending" && (o.status = "fulfilled", o.value =
|
|
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(
|
|
371
|
-
o.status === "pending" && (o.status = "rejected", o.reason =
|
|
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
|
|
383
|
-
var
|
|
384
|
-
(
|
|
385
|
-
var
|
|
386
|
-
if (o === null)
|
|
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 (
|
|
388
|
+
switch (j) {
|
|
389
389
|
case "bigint":
|
|
390
390
|
case "string":
|
|
391
391
|
case "number":
|
|
392
|
-
|
|
392
|
+
N = !0;
|
|
393
393
|
break;
|
|
394
394
|
case "object":
|
|
395
395
|
switch (o.$$typeof) {
|
|
396
396
|
case t:
|
|
397
397
|
case n:
|
|
398
|
-
|
|
398
|
+
N = !0;
|
|
399
399
|
break;
|
|
400
|
-
case
|
|
401
|
-
return
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
case A:
|
|
401
|
+
return N = o._init, D(
|
|
402
|
+
N(o._payload),
|
|
403
|
+
l,
|
|
404
404
|
v,
|
|
405
405
|
_,
|
|
406
|
-
|
|
406
|
+
R
|
|
407
407
|
);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
if (
|
|
411
|
-
return
|
|
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
|
-
})) :
|
|
414
|
-
|
|
415
|
-
v + (
|
|
416
|
-
|
|
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
|
-
) + "/") +
|
|
419
|
-
)),
|
|
420
|
-
|
|
421
|
-
var
|
|
418
|
+
) + "/") + N
|
|
419
|
+
)), l.push(R)), 1;
|
|
420
|
+
N = 0;
|
|
421
|
+
var q = _ === "" ? "." : _ + ":";
|
|
422
422
|
if (ve(o))
|
|
423
|
-
for (var
|
|
424
|
-
_ = o[
|
|
423
|
+
for (var H = 0; H < o.length; H++)
|
|
424
|
+
_ = o[H], j = q + ee(_, H), N += D(
|
|
425
425
|
_,
|
|
426
|
-
|
|
426
|
+
l,
|
|
427
427
|
v,
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
j,
|
|
429
|
+
R
|
|
430
430
|
);
|
|
431
|
-
else if (
|
|
432
|
-
for (o =
|
|
433
|
-
_ = _.value,
|
|
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
|
-
|
|
435
|
+
l,
|
|
436
436
|
v,
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
j,
|
|
438
|
+
R
|
|
439
439
|
);
|
|
440
|
-
else if (
|
|
440
|
+
else if (j === "object") {
|
|
441
441
|
if (typeof o.then == "function")
|
|
442
|
-
return
|
|
442
|
+
return D(
|
|
443
443
|
te(o),
|
|
444
|
-
|
|
444
|
+
l,
|
|
445
445
|
v,
|
|
446
446
|
_,
|
|
447
|
-
|
|
447
|
+
R
|
|
448
448
|
);
|
|
449
|
-
throw
|
|
450
|
-
"Objects are not valid as a React child (found: " + (
|
|
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
|
|
453
|
+
return N;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function F(o, l, v) {
|
|
456
456
|
if (o == null) return o;
|
|
457
|
-
var _ = [],
|
|
458
|
-
return
|
|
459
|
-
return
|
|
457
|
+
var _ = [], R = 0;
|
|
458
|
+
return D(o, _, "", "", function(j) {
|
|
459
|
+
return l.call(v, j, R++);
|
|
460
460
|
}), _;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function fe(o) {
|
|
463
463
|
if (o._status === -1) {
|
|
464
|
-
var
|
|
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
|
|
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(
|
|
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
|
|
494
|
-
v.types =
|
|
493
|
+
var l = M.T, v = {};
|
|
494
|
+
v.types = l !== null ? l.types : null, M.T = v;
|
|
495
495
|
try {
|
|
496
|
-
var _ = o(),
|
|
497
|
-
|
|
498
|
-
} catch (
|
|
499
|
-
ne(
|
|
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
|
-
|
|
501
|
+
l !== null && v.types !== null && (l.types = v.types), M.T = l;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var
|
|
506
|
-
if (
|
|
507
|
-
var v =
|
|
508
|
-
v === null ?
|
|
509
|
-
} else re(
|
|
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
|
|
512
|
-
map:
|
|
513
|
-
forEach: function(o,
|
|
514
|
-
|
|
511
|
+
var pe = {
|
|
512
|
+
map: F,
|
|
513
|
+
forEach: function(o, l, v) {
|
|
514
|
+
F(
|
|
515
515
|
o,
|
|
516
516
|
function() {
|
|
517
|
-
|
|
517
|
+
l.apply(this, arguments);
|
|
518
518
|
},
|
|
519
519
|
v
|
|
520
520
|
);
|
|
521
521
|
},
|
|
522
522
|
count: function(o) {
|
|
523
|
-
var
|
|
524
|
-
return
|
|
525
|
-
|
|
526
|
-
}),
|
|
523
|
+
var l = 0;
|
|
524
|
+
return F(o, function() {
|
|
525
|
+
l++;
|
|
526
|
+
}), l;
|
|
527
527
|
},
|
|
528
528
|
toArray: function(o) {
|
|
529
|
-
return
|
|
530
|
-
return
|
|
529
|
+
return F(o, function(l) {
|
|
530
|
+
return l;
|
|
531
531
|
}) || [];
|
|
532
532
|
},
|
|
533
533
|
only: function(o) {
|
|
534
|
-
if (!
|
|
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
|
|
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
|
|
544
|
+
return M.H.useMemoCache(o);
|
|
545
545
|
}
|
|
546
|
-
},
|
|
546
|
+
}, w.addTransitionType = le, w.cache = function(o) {
|
|
547
547
|
return function() {
|
|
548
548
|
return o.apply(null, arguments);
|
|
549
549
|
};
|
|
550
|
-
},
|
|
550
|
+
}, w.cacheSignal = function() {
|
|
551
551
|
return null;
|
|
552
|
-
},
|
|
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 _ =
|
|
558
|
-
if (
|
|
559
|
-
for (
|
|
560
|
-
!
|
|
561
|
-
var
|
|
562
|
-
if (
|
|
563
|
-
else if (1 <
|
|
564
|
-
for (var
|
|
565
|
-
|
|
566
|
-
_.children =
|
|
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
|
|
569
|
-
},
|
|
568
|
+
return K(o.type, R, _);
|
|
569
|
+
}, w.createContext = function(o) {
|
|
570
570
|
return o = {
|
|
571
|
-
$$typeof:
|
|
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
|
-
},
|
|
582
|
-
var _,
|
|
583
|
-
if (
|
|
584
|
-
for (_ in
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
else if (1 <
|
|
589
|
-
for (var
|
|
590
|
-
H
|
|
591
|
-
|
|
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
|
|
595
|
-
|
|
596
|
-
return
|
|
597
|
-
},
|
|
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
|
-
},
|
|
600
|
-
return { $$typeof:
|
|
601
|
-
},
|
|
599
|
+
}, w.forwardRef = function(o) {
|
|
600
|
+
return { $$typeof: f, render: o };
|
|
601
|
+
}, w.isValidElement = L, w.lazy = function(o) {
|
|
602
602
|
return {
|
|
603
|
-
$$typeof:
|
|
603
|
+
$$typeof: A,
|
|
604
604
|
_payload: { _status: -1, _result: o },
|
|
605
|
-
_init:
|
|
605
|
+
_init: fe
|
|
606
606
|
};
|
|
607
|
-
},
|
|
607
|
+
}, w.memo = function(o, l) {
|
|
608
608
|
return {
|
|
609
|
-
$$typeof:
|
|
609
|
+
$$typeof: T,
|
|
610
610
|
type: o,
|
|
611
|
-
compare:
|
|
611
|
+
compare: l === void 0 ? null : l
|
|
612
612
|
};
|
|
613
|
-
},
|
|
614
|
-
return
|
|
615
|
-
},
|
|
616
|
-
return
|
|
617
|
-
},
|
|
618
|
-
return
|
|
619
|
-
},
|
|
620
|
-
return
|
|
621
|
-
},
|
|
622
|
-
return
|
|
623
|
-
},
|
|
624
|
-
},
|
|
625
|
-
return
|
|
626
|
-
},
|
|
627
|
-
return
|
|
628
|
-
},
|
|
629
|
-
return
|
|
630
|
-
},
|
|
631
|
-
return
|
|
632
|
-
},
|
|
633
|
-
return
|
|
634
|
-
},
|
|
635
|
-
return
|
|
636
|
-
},
|
|
637
|
-
return
|
|
638
|
-
},
|
|
639
|
-
return
|
|
640
|
-
},
|
|
641
|
-
return
|
|
642
|
-
},
|
|
643
|
-
return
|
|
644
|
-
},
|
|
645
|
-
return
|
|
646
|
-
},
|
|
647
|
-
return
|
|
648
|
-
},
|
|
649
|
-
return
|
|
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
|
-
|
|
651
|
+
l,
|
|
652
652
|
v
|
|
653
653
|
);
|
|
654
|
-
},
|
|
655
|
-
return
|
|
656
|
-
},
|
|
654
|
+
}, w.useTransition = function() {
|
|
655
|
+
return M.H.useTransition();
|
|
656
|
+
}, w.version = "19.3.0", w;
|
|
657
657
|
}
|
|
658
|
-
var
|
|
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
|
-
|
|
669
|
-
var
|
|
670
|
-
function
|
|
671
|
-
return
|
|
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 =
|
|
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
|
|
690
|
-
|
|
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
|
-
),
|
|
694
|
+
), We[p] = !0);
|
|
695
695
|
}
|
|
696
|
-
function a(e, s,
|
|
697
|
-
this.props = e, this.context = s, this.refs =
|
|
696
|
+
function a(e, s, p) {
|
|
697
|
+
this.props = e, this.context = s, this.refs = Ce, this.updater = p || xe;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function c() {
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
this.props = e, this.context = s, this.refs =
|
|
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
|
|
706
|
+
function T(e) {
|
|
707
707
|
return "" + e;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function A(e) {
|
|
710
710
|
try {
|
|
711
|
-
|
|
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
|
|
719
|
-
return
|
|
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
|
-
|
|
723
|
-
),
|
|
722
|
+
d
|
|
723
|
+
), T(e);
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function O(e) {
|
|
727
727
|
if (e == null) return null;
|
|
728
728
|
if (typeof e == "function")
|
|
729
|
-
return e.$$typeof ===
|
|
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
|
|
732
|
+
case pe:
|
|
733
733
|
return "Fragment";
|
|
734
|
-
case
|
|
734
|
+
case l:
|
|
735
735
|
return "Profiler";
|
|
736
736
|
case o:
|
|
737
737
|
return "StrictMode";
|
|
738
|
-
case
|
|
738
|
+
case j:
|
|
739
739
|
return "Suspense";
|
|
740
|
-
case
|
|
740
|
+
case N:
|
|
741
741
|
return "SuspenseList";
|
|
742
742
|
case Ee:
|
|
743
743
|
return "Activity";
|
|
744
|
-
case
|
|
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
|
|
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
|
|
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
|
|
765
|
+
return O(e(s));
|
|
766
766
|
} catch {
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
return null;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
if (e ===
|
|
773
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
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 =
|
|
776
|
+
var s = O(e);
|
|
777
777
|
return s ? "<" + s + ">" : "<...>";
|
|
778
778
|
} catch {
|
|
779
779
|
return "<...>";
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function $() {
|
|
783
783
|
var e = b.A;
|
|
784
784
|
return e === null ? null : e.getOwner();
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function k() {
|
|
787
787
|
return Error("react-stack-top-frame");
|
|
788
788
|
}
|
|
789
|
-
function
|
|
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
|
|
797
|
-
function
|
|
798
|
-
|
|
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
|
-
|
|
804
|
-
get:
|
|
803
|
+
p.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
804
|
+
get: p,
|
|
805
805
|
configurable: !0
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
var e =
|
|
810
|
-
return
|
|
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
|
|
815
|
-
var g =
|
|
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:
|
|
821
|
-
_owner:
|
|
820
|
+
props: p,
|
|
821
|
+
_owner: d
|
|
822
822
|
}, (g !== void 0 ? g : null) !== null ? Object.defineProperty(e, "ref", {
|
|
823
823
|
enumerable: !1,
|
|
824
|
-
get:
|
|
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:
|
|
839
|
+
value: y
|
|
840
840
|
}), Object.defineProperty(e, "_debugTask", {
|
|
841
841
|
configurable: !1,
|
|
842
842
|
enumerable: !1,
|
|
843
843
|
writable: !0,
|
|
844
|
-
value:
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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(
|
|
866
|
-
return s[
|
|
865
|
+
return "$" + e.replace(/[=:]/g, function(p) {
|
|
866
|
+
return s[p];
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
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
|
|
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
|
|
896
|
-
var
|
|
897
|
-
(
|
|
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 (
|
|
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
|
|
910
|
+
case le:
|
|
911
911
|
g = !0;
|
|
912
912
|
break;
|
|
913
|
-
case
|
|
914
|
-
return g = e._init,
|
|
913
|
+
case H:
|
|
914
|
+
return g = e._init, G(
|
|
915
915
|
g(e._payload),
|
|
916
916
|
s,
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
917
|
+
p,
|
|
918
|
+
d,
|
|
919
|
+
y
|
|
920
920
|
);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
if (g) {
|
|
924
|
-
g = e,
|
|
925
|
-
var
|
|
926
|
-
return
|
|
927
|
-
return
|
|
928
|
-
})) :
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
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
|
-
) + "/") +
|
|
934
|
-
),
|
|
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,
|
|
937
|
-
for (var
|
|
938
|
-
|
|
939
|
-
|
|
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
|
-
|
|
942
|
-
|
|
943
|
-
|
|
941
|
+
p,
|
|
942
|
+
P,
|
|
943
|
+
y
|
|
944
944
|
);
|
|
945
|
-
else if (
|
|
946
|
-
for (
|
|
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
|
-
),
|
|
949
|
-
|
|
950
|
-
|
|
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
|
-
|
|
953
|
-
|
|
954
|
-
|
|
952
|
+
p,
|
|
953
|
+
P,
|
|
954
|
+
y
|
|
955
955
|
);
|
|
956
|
-
else if (
|
|
956
|
+
else if (P === "object") {
|
|
957
957
|
if (typeof e.then == "function")
|
|
958
|
-
return
|
|
959
|
-
|
|
958
|
+
return G(
|
|
959
|
+
M(e),
|
|
960
960
|
s,
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
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
|
|
971
|
+
function K(e, s, p) {
|
|
972
972
|
if (e == null) return e;
|
|
973
|
-
var
|
|
974
|
-
return
|
|
975
|
-
return s.call(
|
|
976
|
-
}),
|
|
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
|
|
978
|
+
function je(e) {
|
|
979
979
|
if (e._status === -1) {
|
|
980
|
-
var s = null,
|
|
981
|
-
|
|
982
|
-
s = g,
|
|
983
|
-
})),
|
|
984
|
-
var
|
|
985
|
-
if (
|
|
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
|
|
990
|
-
if (
|
|
991
|
-
|
|
992
|
-
var
|
|
993
|
-
s(
|
|
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
|
-
|
|
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
|
|
1002
|
-
|
|
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
|
-
),
|
|
1006
|
-
var
|
|
1007
|
-
typeof
|
|
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 =
|
|
1009
|
+
e._status === -1 && (e._status = 0, e._result = y);
|
|
1010
1010
|
}
|
|
1011
1011
|
if (e._status === 1)
|
|
1012
|
-
return
|
|
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
|
-
|
|
1020
|
-
), "default" in
|
|
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
|
-
|
|
1026
|
-
),
|
|
1025
|
+
d
|
|
1026
|
+
), d.default;
|
|
1027
1027
|
throw e._result;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
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
|
|
1043
|
-
var s = b.T,
|
|
1044
|
-
|
|
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
|
|
1047
|
-
|
|
1048
|
-
} catch (
|
|
1049
|
-
|
|
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 &&
|
|
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 &&
|
|
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 =
|
|
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
|
|
1062
|
-
|
|
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
|
-
),
|
|
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(
|
|
1078
|
-
|
|
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
|
|
1082
|
-
|
|
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
|
|
1087
|
+
function D(e) {
|
|
1088
1088
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
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
|
|
1096
|
-
var
|
|
1097
|
-
if (
|
|
1098
|
-
if (
|
|
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(
|
|
1101
|
-
return
|
|
1100
|
+
ne(d), te(function() {
|
|
1101
|
+
return fe(e, s, p);
|
|
1102
1102
|
});
|
|
1103
1103
|
return;
|
|
1104
|
-
} catch (
|
|
1105
|
-
b.thrownErrors.push(
|
|
1104
|
+
} catch (y) {
|
|
1105
|
+
b.thrownErrors.push(y);
|
|
1106
1106
|
}
|
|
1107
1107
|
else b.actQueue = null;
|
|
1108
|
-
0 < b.thrownErrors.length ? (
|
|
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 (!
|
|
1112
|
-
|
|
1111
|
+
if (!Pe) {
|
|
1112
|
+
Pe = !0;
|
|
1113
1113
|
var s = 0;
|
|
1114
1114
|
try {
|
|
1115
1115
|
for (; s < e.length; s++) {
|
|
1116
|
-
var
|
|
1116
|
+
var p = e[s];
|
|
1117
1117
|
do {
|
|
1118
1118
|
b.didUsePromise = !1;
|
|
1119
|
-
var
|
|
1120
|
-
if (
|
|
1119
|
+
var d = p(!1);
|
|
1120
|
+
if (d !== null) {
|
|
1121
1121
|
if (b.didUsePromise) {
|
|
1122
|
-
e[s] =
|
|
1122
|
+
e[s] = p, e.splice(0, s);
|
|
1123
1123
|
return;
|
|
1124
1124
|
}
|
|
1125
|
-
|
|
1125
|
+
p = d;
|
|
1126
1126
|
} else break;
|
|
1127
1127
|
} while (!0);
|
|
1128
1128
|
}
|
|
1129
1129
|
e.length = 0;
|
|
1130
|
-
} catch (
|
|
1131
|
-
e.splice(0, s + 1), b.thrownErrors.push(
|
|
1130
|
+
} catch (y) {
|
|
1131
|
+
e.splice(0, s + 1), b.thrownErrors.push(y);
|
|
1132
1132
|
} finally {
|
|
1133
|
-
|
|
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"),
|
|
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
|
-
},
|
|
1152
|
-
Object.freeze(
|
|
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
|
|
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 (
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
var
|
|
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,
|
|
1187
|
+
}, Te = Object.prototype.hasOwnProperty, Ke = console.createTask ? console.createTask : function() {
|
|
1188
1188
|
return null;
|
|
1189
1189
|
};
|
|
1190
|
-
|
|
1190
|
+
B = {
|
|
1191
1191
|
react_stack_bottom_frame: function(e) {
|
|
1192
1192
|
return e();
|
|
1193
1193
|
}
|
|
1194
1194
|
};
|
|
1195
|
-
var
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
)(),
|
|
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
|
-
},
|
|
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
|
-
|
|
1217
|
+
B = Object.freeze({
|
|
1218
1218
|
__proto__: null,
|
|
1219
1219
|
c: function(e) {
|
|
1220
|
-
return
|
|
1220
|
+
return L().useMemoCache(e);
|
|
1221
1221
|
}
|
|
1222
1222
|
});
|
|
1223
|
-
var
|
|
1224
|
-
map:
|
|
1225
|
-
forEach: function(e, s,
|
|
1226
|
-
|
|
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
|
-
|
|
1231
|
+
p
|
|
1232
1232
|
);
|
|
1233
1233
|
},
|
|
1234
1234
|
count: function(e) {
|
|
1235
1235
|
var s = 0;
|
|
1236
|
-
return
|
|
1236
|
+
return K(e, function() {
|
|
1237
1237
|
s++;
|
|
1238
1238
|
}), s;
|
|
1239
1239
|
},
|
|
1240
1240
|
toArray: function(e) {
|
|
1241
|
-
return
|
|
1241
|
+
return K(e, function(s) {
|
|
1242
1242
|
return s;
|
|
1243
1243
|
}) || [];
|
|
1244
1244
|
},
|
|
1245
1245
|
only: function(e) {
|
|
1246
|
-
if (!
|
|
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 =
|
|
1254
|
-
var s = b.actQueue,
|
|
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
|
|
1256
|
+
var d = b.actQueue = s !== null ? s : [], y = !1;
|
|
1257
1257
|
try {
|
|
1258
|
-
var
|
|
1259
|
-
} catch (
|
|
1260
|
-
b.thrownErrors.push(
|
|
1258
|
+
var P = e();
|
|
1259
|
+
} catch (C) {
|
|
1260
|
+
b.thrownErrors.push(C);
|
|
1261
1261
|
}
|
|
1262
1262
|
if (0 < b.thrownErrors.length)
|
|
1263
|
-
throw
|
|
1264
|
-
if (
|
|
1265
|
-
var g =
|
|
1266
|
-
return
|
|
1267
|
-
|
|
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(
|
|
1272
|
-
|
|
1271
|
+
then: function(C, Q) {
|
|
1272
|
+
y = !0, g.then(
|
|
1273
1273
|
function(oe) {
|
|
1274
|
-
if (
|
|
1274
|
+
if (F(s, p), p === 0) {
|
|
1275
1275
|
try {
|
|
1276
|
-
ne(
|
|
1277
|
-
return
|
|
1276
|
+
ne(d), te(function() {
|
|
1277
|
+
return fe(
|
|
1278
1278
|
oe,
|
|
1279
|
-
|
|
1280
|
-
|
|
1279
|
+
C,
|
|
1280
|
+
Q
|
|
1281
1281
|
);
|
|
1282
1282
|
});
|
|
1283
|
-
} catch (
|
|
1284
|
-
b.thrownErrors.push(
|
|
1283
|
+
} catch (bt) {
|
|
1284
|
+
b.thrownErrors.push(bt);
|
|
1285
1285
|
}
|
|
1286
1286
|
if (0 < b.thrownErrors.length) {
|
|
1287
|
-
var
|
|
1287
|
+
var St = D(
|
|
1288
1288
|
b.thrownErrors
|
|
1289
1289
|
);
|
|
1290
|
-
b.thrownErrors.length = 0,
|
|
1290
|
+
b.thrownErrors.length = 0, Q(St);
|
|
1291
1291
|
}
|
|
1292
|
-
} else
|
|
1292
|
+
} else C(oe);
|
|
1293
1293
|
},
|
|
1294
1294
|
function(oe) {
|
|
1295
|
-
|
|
1295
|
+
F(s, p), 0 < b.thrownErrors.length && (oe = D(
|
|
1296
1296
|
b.thrownErrors
|
|
1297
|
-
), b.thrownErrors.length = 0),
|
|
1297
|
+
), b.thrownErrors.length = 0), Q(oe);
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
1300
|
}
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
1303
|
-
var
|
|
1304
|
-
if (
|
|
1305
|
-
|
|
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 =
|
|
1309
|
+
throw e = D(b.thrownErrors), b.thrownErrors.length = 0, e;
|
|
1310
1310
|
return {
|
|
1311
|
-
then: function(
|
|
1312
|
-
|
|
1313
|
-
return
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
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
|
-
})) :
|
|
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,
|
|
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
|
|
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 && (
|
|
1349
|
-
for (
|
|
1350
|
-
!Te.call(s,
|
|
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
|
|
1353
|
-
if (
|
|
1354
|
-
else if (1 <
|
|
1355
|
-
g = Array(
|
|
1356
|
-
for (var
|
|
1357
|
-
g[
|
|
1358
|
-
|
|
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 (
|
|
1360
|
+
for (d = z(
|
|
1361
1361
|
e.type,
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1362
|
+
y,
|
|
1363
|
+
d,
|
|
1364
|
+
P,
|
|
1365
1365
|
e._debugStack,
|
|
1366
1366
|
e._debugTask
|
|
1367
|
-
),
|
|
1368
|
-
J(arguments[
|
|
1369
|
-
return
|
|
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,
|
|
1383
|
-
for (var
|
|
1384
|
-
J(arguments[
|
|
1385
|
-
var
|
|
1386
|
-
|
|
1387
|
-
var
|
|
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 (
|
|
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
|
-
)),
|
|
1392
|
-
Te.call(s,
|
|
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)
|
|
1394
|
+
if (g === 1) d.children = p;
|
|
1395
1395
|
else if (1 < g) {
|
|
1396
|
-
for (var
|
|
1397
|
-
|
|
1398
|
-
Object.freeze && Object.freeze(
|
|
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 (
|
|
1402
|
-
|
|
1403
|
-
return
|
|
1404
|
-
|
|
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
|
-
), (
|
|
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
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1408
|
+
P,
|
|
1409
|
+
d,
|
|
1410
|
+
$(),
|
|
1411
1411
|
g,
|
|
1412
|
-
|
|
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 ===
|
|
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:
|
|
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
|
|
1434
|
+
return p;
|
|
1435
1435
|
},
|
|
1436
|
-
set: function(
|
|
1437
|
-
|
|
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 =
|
|
1440
|
+
}, n.isValidElement = x, n.lazy = function(e) {
|
|
1441
1441
|
e = { _status: -1, _result: e };
|
|
1442
1442
|
var s = {
|
|
1443
|
-
$$typeof:
|
|
1443
|
+
$$typeof: H,
|
|
1444
1444
|
_payload: e,
|
|
1445
|
-
_init:
|
|
1446
|
-
},
|
|
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 =
|
|
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:
|
|
1461
|
+
$$typeof: q,
|
|
1462
1462
|
type: e,
|
|
1463
1463
|
compare: s === void 0 ? null : s
|
|
1464
1464
|
};
|
|
1465
|
-
var
|
|
1465
|
+
var p;
|
|
1466
1466
|
return Object.defineProperty(s, "displayName", {
|
|
1467
1467
|
enumerable: !1,
|
|
1468
1468
|
configurable: !0,
|
|
1469
1469
|
get: function() {
|
|
1470
|
-
return
|
|
1470
|
+
return p;
|
|
1471
1471
|
},
|
|
1472
|
-
set: function(
|
|
1473
|
-
|
|
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 =
|
|
1477
|
-
return
|
|
1476
|
+
}, n.startTransition = ce, n.unstable_useCacheRefresh = function() {
|
|
1477
|
+
return L().useCacheRefresh();
|
|
1478
1478
|
}, n.use = function(e) {
|
|
1479
|
-
return
|
|
1480
|
-
}, n.useActionState = function(e, s,
|
|
1481
|
-
return
|
|
1479
|
+
return L().use(e);
|
|
1480
|
+
}, n.useActionState = function(e, s, p) {
|
|
1481
|
+
return L().useActionState(
|
|
1482
1482
|
e,
|
|
1483
1483
|
s,
|
|
1484
|
-
|
|
1484
|
+
p
|
|
1485
1485
|
);
|
|
1486
1486
|
}, n.useCallback = function(e, s) {
|
|
1487
|
-
return
|
|
1487
|
+
return L().useCallback(e, s);
|
|
1488
1488
|
}, n.useContext = function(e) {
|
|
1489
|
-
var s =
|
|
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
|
|
1494
|
+
return L().useDebugValue(e, s);
|
|
1495
1495
|
}, n.useDeferredValue = function(e, s) {
|
|
1496
|
-
return
|
|
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
|
-
),
|
|
1500
|
+
), L().useEffect(e, s);
|
|
1501
1501
|
}, n.useEffectEvent = function(e) {
|
|
1502
|
-
return
|
|
1502
|
+
return L().useEffectEvent(e);
|
|
1503
1503
|
}, n.useId = function() {
|
|
1504
|
-
return
|
|
1505
|
-
}, n.useImperativeHandle = function(e, s,
|
|
1506
|
-
return
|
|
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
|
-
),
|
|
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
|
-
),
|
|
1514
|
+
), L().useLayoutEffect(e, s);
|
|
1515
1515
|
}, n.useMemo = function(e, s) {
|
|
1516
|
-
return
|
|
1516
|
+
return L().useMemo(e, s);
|
|
1517
1517
|
}, n.useOptimistic = function(e, s) {
|
|
1518
|
-
return
|
|
1519
|
-
}, n.useReducer = function(e, s,
|
|
1520
|
-
return
|
|
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
|
|
1522
|
+
return L().useRef(e);
|
|
1523
1523
|
}, n.useState = function(e) {
|
|
1524
|
-
return
|
|
1525
|
-
}, n.useSyncExternalStore = function(e, s,
|
|
1526
|
-
return
|
|
1524
|
+
return L().useState(e);
|
|
1525
|
+
}, n.useSyncExternalStore = function(e, s, p) {
|
|
1526
|
+
return L().useSyncExternalStore(
|
|
1527
1527
|
e,
|
|
1528
1528
|
s,
|
|
1529
|
-
|
|
1529
|
+
p
|
|
1530
1530
|
);
|
|
1531
1531
|
}, n.useTransition = function() {
|
|
1532
|
-
return
|
|
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
|
-
})(
|
|
1535
|
+
})(me, me.exports)), me.exports;
|
|
1536
1536
|
}
|
|
1537
|
-
var
|
|
1538
|
-
function
|
|
1539
|
-
return
|
|
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
|
-
|
|
1542
|
-
let
|
|
1543
|
-
const
|
|
1544
|
-
function
|
|
1545
|
-
return
|
|
1546
|
-
|
|
1547
|
-
})),
|
|
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
|
|
1550
|
-
return
|
|
1549
|
+
function Wt() {
|
|
1550
|
+
return Ye || Bt(), Ye;
|
|
1551
1551
|
}
|
|
1552
|
-
const
|
|
1553
|
-
function
|
|
1554
|
-
return typeof t == "string" &&
|
|
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
|
|
1557
|
-
return typeof t == "string" &&
|
|
1556
|
+
function Xt(t) {
|
|
1557
|
+
return typeof t == "string" && Kt.test(t);
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1560
|
-
return
|
|
1559
|
+
function yt(t) {
|
|
1560
|
+
return Z(t) && typeof t.schemaFormat == "string" && "schema" in t;
|
|
1561
1561
|
}
|
|
1562
|
-
const
|
|
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
|
-
],
|
|
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
|
|
1585
|
-
return typeof t == "string" || Array.isArray(t) ? !0 :
|
|
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
|
|
1587
|
+
function en(t, n) {
|
|
1588
1588
|
let r = t;
|
|
1589
|
-
if (n &&
|
|
1590
|
-
const
|
|
1591
|
-
|
|
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 =
|
|
1593
|
+
const u = tn(r), i = u.schema.description;
|
|
1594
1594
|
if (typeof i == "string")
|
|
1595
1595
|
return { ...u, description: i };
|
|
1596
|
-
const a =
|
|
1596
|
+
const a = yt(r) ? r.description : void 0;
|
|
1597
1597
|
return typeof a == "string" ? { ...u, description: a } : u;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1600
|
-
var
|
|
1601
|
-
if (!
|
|
1602
|
-
return { schema:
|
|
1603
|
-
const { schemaFormat: n } = t, r = t.schema, u = t[
|
|
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:
|
|
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:
|
|
1613
|
+
schema: V(r) ?? {},
|
|
1614
1614
|
schemaFormat: n,
|
|
1615
1615
|
originalSchema: u
|
|
1616
1616
|
};
|
|
1617
|
-
if (
|
|
1618
|
-
const
|
|
1619
|
-
if (
|
|
1617
|
+
if (Qt(n) && Jt(r)) {
|
|
1618
|
+
const f = Yt(r);
|
|
1619
|
+
if (f.length > 0)
|
|
1620
1620
|
return {
|
|
1621
|
-
schema:
|
|
1621
|
+
schema: V(r) ?? {},
|
|
1622
1622
|
schemaFormat: n,
|
|
1623
1623
|
originalSchema: r,
|
|
1624
|
-
conversionError:
|
|
1624
|
+
conversionError: f[0]
|
|
1625
1625
|
};
|
|
1626
1626
|
try {
|
|
1627
1627
|
return {
|
|
1628
|
-
schema:
|
|
1628
|
+
schema: It(r),
|
|
1629
1629
|
schemaFormat: n,
|
|
1630
1630
|
originalSchema: r
|
|
1631
1631
|
};
|
|
1632
1632
|
} catch (h) {
|
|
1633
1633
|
return {
|
|
1634
|
-
schema:
|
|
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 (
|
|
1642
|
-
const
|
|
1643
|
-
if (!
|
|
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:
|
|
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 =
|
|
1667
|
+
const a = V(r);
|
|
1668
1668
|
return a ? { schema: a, schemaFormat: n } : { schema: {}, schemaFormat: n, originalSchema: r };
|
|
1669
1669
|
}
|
|
1670
|
-
const
|
|
1671
|
-
function
|
|
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
|
|
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 (!
|
|
1684
|
-
const i =
|
|
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
|
|
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 =
|
|
1693
|
+
const u = on(t, r);
|
|
1694
1694
|
return n.set(r, u), u;
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
const
|
|
1698
|
-
|
|
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
|
|
1701
|
-
const
|
|
1702
|
-
|
|
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
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
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((
|
|
1710
|
-
if (
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
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
|
|
1715
|
-
for (const [
|
|
1716
|
-
|
|
1717
|
-
return
|
|
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
|
|
1774
|
+
function $e(t, n, r, u) {
|
|
1720
1775
|
if (!n) return "";
|
|
1721
|
-
const
|
|
1722
|
-
return `${
|
|
1776
|
+
const i = Re(n, r, u);
|
|
1777
|
+
return `${U(4, `\`${m(t)}\``)}
|
|
1723
1778
|
|
|
1724
1779
|
\`\`\`json
|
|
1725
|
-
${JSON.stringify(
|
|
1780
|
+
${JSON.stringify(i, null, 2)}
|
|
1726
1781
|
\`\`\``;
|
|
1727
1782
|
}
|
|
1728
|
-
function
|
|
1783
|
+
function ue(t, n, r, u) {
|
|
1729
1784
|
if (!n || typeof n == "boolean") return "";
|
|
1730
|
-
const { schema:
|
|
1731
|
-
if (
|
|
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 (
|
|
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
|
-
|
|
1737
|
-
const y = i && !u.description ? { ...u, description: i } : u;
|
|
1738
|
-
return Se(t, y, r);
|
|
1801
|
+
`) : "";
|
|
1739
1802
|
}
|
|
1740
|
-
function
|
|
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 (${
|
|
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: ${
|
|
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
|
|
1832
|
+
return m(t.type);
|
|
1770
1833
|
}
|
|
1771
1834
|
}
|
|
1772
|
-
function
|
|
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(`- **${
|
|
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 \`${
|
|
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((
|
|
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
|
|
1850
|
+
function vt(t) {
|
|
1788
1851
|
const n = [], { info: r } = t;
|
|
1789
|
-
n.push(
|
|
1790
|
-
const u = [`**Version:** ${
|
|
1791
|
-
if (r.license && u.push(`**License:** ${
|
|
1792
|
-
const i = [r.contact.name, r.contact.email].filter(Boolean).map(
|
|
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(
|
|
1797
|
-
const i = [
|
|
1798
|
-
for (const [a,
|
|
1799
|
-
i.push(
|
|
1800
|
-
const
|
|
1801
|
-
|
|
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 =
|
|
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
|
|
1813
|
-
var
|
|
1814
|
-
const r =
|
|
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
|
|
1817
|
-
for (const [
|
|
1879
|
+
const A = [U(2, "Operations")];
|
|
1880
|
+
for (const [O, E] of Object.entries(t.operations)) {
|
|
1818
1881
|
const $ = E.channel;
|
|
1819
|
-
|
|
1820
|
-
const
|
|
1821
|
-
$ != null && $.address &&
|
|
1822
|
-
const
|
|
1823
|
-
|
|
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(
|
|
1890
|
+
r.push(A.join(`
|
|
1828
1891
|
|
|
1829
1892
|
`));
|
|
1830
1893
|
}
|
|
1831
|
-
const
|
|
1832
|
-
if (
|
|
1833
|
-
const
|
|
1834
|
-
for (const [
|
|
1835
|
-
|
|
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(
|
|
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 &&
|
|
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(
|
|
1904
|
+
r.push(A.join(`
|
|
1842
1905
|
|
|
1843
1906
|
`));
|
|
1844
1907
|
}
|
|
1845
|
-
const
|
|
1846
|
-
if (
|
|
1847
|
-
const
|
|
1848
|
-
for (const [
|
|
1849
|
-
|
|
1850
|
-
r.push(
|
|
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
|
|
1859
|
-
var
|
|
1860
|
-
const
|
|
1861
|
-
|
|
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
|
|
1865
|
-
for (const
|
|
1866
|
-
const
|
|
1867
|
-
|
|
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
|
-
`)),
|
|
1932
|
+
`)), a.push(A.join(`
|
|
1870
1933
|
|
|
1871
|
-
`)),
|
|
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
|
|
1936
|
+
return a.filter(Boolean).join(`
|
|
1874
1937
|
|
|
1875
1938
|
`);
|
|
1876
1939
|
}
|
|
1877
|
-
function
|
|
1878
|
-
var
|
|
1879
|
-
const u = (
|
|
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 =
|
|
1882
|
-
return i.push(
|
|
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
|
|
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 [
|
|
1891
|
-
if (!
|
|
1892
|
-
const h = r.get(
|
|
1893
|
-
r.set(
|
|
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
|
|
1898
|
-
if (!
|
|
1899
|
-
const
|
|
1900
|
-
if (i.push(`- **${
|
|
1901
|
-
for (const [h,
|
|
1902
|
-
i.push(` - Flow \`${
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1905
|
-
` - ${
|
|
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
|
|
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
|
|
1916
|
-
var
|
|
1917
|
-
const
|
|
1918
|
-
r.summary &&
|
|
1919
|
-
const
|
|
1920
|
-
|
|
1921
|
-
for (const
|
|
1922
|
-
const
|
|
1923
|
-
if (
|
|
1924
|
-
|
|
1925
|
-
for (const Y of
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1928
|
-
`- \`${
|
|
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
|
-
|
|
1996
|
+
f.push(h.join(`
|
|
1934
1997
|
|
|
1935
1998
|
`));
|
|
1936
|
-
const
|
|
1937
|
-
for (const [
|
|
1938
|
-
|
|
1939
|
-
[`**Request Body** (\`${
|
|
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
|
|
1946
|
-
for (const [
|
|
1947
|
-
const Y = [
|
|
1948
|
-
for (const [
|
|
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** (\`${
|
|
2013
|
+
[`**Body** (\`${m(W)}\`)`, $e("body", z.schema, u, i)].join(
|
|
1951
2014
|
`
|
|
1952
2015
|
|
|
1953
2016
|
`
|
|
1954
2017
|
)
|
|
1955
2018
|
);
|
|
1956
|
-
|
|
2019
|
+
f.push(Y.join(`
|
|
1957
2020
|
|
|
1958
2021
|
`));
|
|
1959
2022
|
}
|
|
1960
|
-
return
|
|
2023
|
+
return f.join(`
|
|
1961
2024
|
|
|
1962
2025
|
`);
|
|
1963
2026
|
}
|
|
1964
|
-
function
|
|
1965
|
-
var
|
|
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(
|
|
1968
|
-
const $ = [
|
|
1969
|
-
for (const
|
|
1970
|
-
$.push(`- \`${
|
|
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 ?
|
|
1975
|
-
if (
|
|
1976
|
-
const $ = [
|
|
1977
|
-
for (const { method:
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1980
|
-
|
|
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
|
|
1988
|
-
if (
|
|
1989
|
-
const $ = [
|
|
1990
|
-
for (const [
|
|
1991
|
-
$.push(
|
|
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
|
|
2001
|
-
var
|
|
2002
|
-
const i = (
|
|
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:
|
|
2005
|
-
if (a.push(
|
|
2006
|
-
const $ = [
|
|
2007
|
-
for (const
|
|
2008
|
-
$.push(`- \`${
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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
|
|
2103
|
+
return ae((n = t.info) == null ? void 0 : n.description);
|
|
2040
2104
|
},
|
|
2041
|
-
targets: (t) =>
|
|
2042
|
-
var a,
|
|
2043
|
-
const i = (
|
|
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:
|
|
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
|
|
2053
|
-
if (typeof n.path != "string" || !
|
|
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
|
|
2119
|
+
return vn(t, n.method, n.path);
|
|
2056
2120
|
}
|
|
2057
|
-
}),
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
2143
|
+
return yn(t, n.id);
|
|
2080
2144
|
}
|
|
2081
|
-
}),
|
|
2082
|
-
function
|
|
2083
|
-
const n = typeof t == "object" && t !== null ? t : {}, r =
|
|
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: ${
|
|
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
|
|
2154
|
+
function wn(t) {
|
|
2091
2155
|
return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2092
2156
|
}
|
|
2093
|
-
function
|
|
2094
|
-
return
|
|
2157
|
+
function Sn(t) {
|
|
2158
|
+
return ze(t).targets(t);
|
|
2095
2159
|
}
|
|
2096
|
-
function
|
|
2097
|
-
const r =
|
|
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
|
|
2103
|
-
const r =
|
|
2104
|
-
|
|
2105
|
-
const
|
|
2106
|
-
if (
|
|
2107
|
-
|
|
2108
|
-
for (const { entry:
|
|
2109
|
-
|
|
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
|
-
|
|
2113
|
-
for (const
|
|
2114
|
-
|
|
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
|
|
2180
|
+
return T.push(""), T.join(`
|
|
2117
2181
|
`);
|
|
2118
2182
|
}
|
|
2119
|
-
const
|
|
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
|
|
2125
|
-
return `${["> ## Agent Instructions", ...
|
|
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
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
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
|
};
|