zudoku 0.3.0-dev.65 → 0.3.0-dev.66
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/lib/components/SyntaxHighlight.js +6 -2
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +19 -14
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
- package/dist/lib/plugins/openapi/SidecarBox.js +2 -1
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/lib/{AnchorLink-Bj1hwDuD.js → AnchorLink-C_pYhuZi.js} +2 -2
- package/lib/{AnchorLink-Bj1hwDuD.js.map → AnchorLink-C_pYhuZi.js.map} +1 -1
- package/lib/{CategoryHeading-DMkTmmBh.js → CategoryHeading-D5Q-X6lE.js} +2 -2
- package/lib/{CategoryHeading-DMkTmmBh.js.map → CategoryHeading-D5Q-X6lE.js.map} +1 -1
- package/lib/{Combination-lAFQBd6U.js → Combination-Cq0UkOXq.js} +2 -2
- package/lib/{Combination-lAFQBd6U.js.map → Combination-Cq0UkOXq.js.map} +1 -1
- package/lib/{Input-a4Q9eY9j.js → Input-DdAxw3vC.js} +3 -3
- package/lib/{Input-a4Q9eY9j.js.map → Input-DdAxw3vC.js.map} +1 -1
- package/lib/{Markdown-BjRJKl_E.js → Markdown-DsCvZnhw.js} +110 -103
- package/lib/{Markdown-BjRJKl_E.js.map → Markdown-DsCvZnhw.js.map} +1 -1
- package/lib/{MdxPage-BjOLKhCI.js → MdxPage-B_7x36CA.js} +4 -4
- package/lib/{MdxPage-BjOLKhCI.js.map → MdxPage-B_7x36CA.js.map} +1 -1
- package/lib/{OperationList-DuRwWfdq.js → OperationList-Cv0GStt7.js} +626 -615
- package/lib/{OperationList-DuRwWfdq.js.map → OperationList-Cv0GStt7.js.map} +1 -1
- package/lib/{Spinner-Ciq_pWU7.js → Spinner-DyDcSKPz.js} +3 -3
- package/lib/{Spinner-Ciq_pWU7.js.map → Spinner-DyDcSKPz.js.map} +1 -1
- package/lib/{hook-BY1NP0kj.js → hook-Cz5jddRs.js} +4 -4
- package/lib/{hook-BY1NP0kj.js.map → hook-Cz5jddRs.js.map} +1 -1
- package/lib/{index-BDkyi7gS.js → index-NGns0N9q.js} +4 -4
- package/lib/{index-BDkyi7gS.js.map → index-NGns0N9q.js.map} +1 -1
- package/lib/zudoku.components.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +1 -1
- package/src/lib/components/SyntaxHighlight.tsx +28 -23
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -4
- package/src/lib/plugins/openapi/Sidecar.tsx +30 -23
- package/src/lib/plugins/openapi/SidecarBox.tsx +12 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { j as u } from "./jsx-runtime-BIr0WBt_.js";
|
|
2
|
-
import { C as Tr } from "./CategoryHeading-
|
|
3
|
-
import { a as gn, k as
|
|
4
|
-
import { g as ar, M as Wa, E as
|
|
5
|
-
import { c as Ke, a as
|
|
2
|
+
import { C as Tr } from "./CategoryHeading-D5Q-X6lE.js";
|
|
3
|
+
import { a as gn, k as _a, o as vn, n as nt, P as pe, d as ve, B as Ge, u as nr, R as Fa, S as bn, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, p as za } from "./Combination-Cq0UkOXq.js";
|
|
4
|
+
import { g as ar, M as Wa, E as Ja } from "./index-NGns0N9q.js";
|
|
5
|
+
import { c as Ke, a as k, u as Va, h as qe, H as He, P as Ga, i as Ka, S as Qe, j as Qa, I as Or } from "./Markdown-DsCvZnhw.js";
|
|
6
6
|
import * as O from "react";
|
|
7
|
-
import { useRef as
|
|
8
|
-
import { c as xn, R as
|
|
7
|
+
import { useRef as Ya, useEffect as Xa, useState as or, Fragment as at, useTransition as Za, useMemo as eo } from "react";
|
|
8
|
+
import { c as xn, R as to, I as ro, P as $t, a as $n, T as jn, C as wn, b as Cr, d as no } from "./Spinner-DyDcSKPz.js";
|
|
9
9
|
import { u as Sn } from "./context-_fYfJFgk.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { a as
|
|
12
|
-
import { g as sr, h as Pr, i as Tn, C as Se, I as On, u as
|
|
13
|
-
import { A as
|
|
10
|
+
import { u as ao, a as oo } from "./urql-DMlBWUKL.js";
|
|
11
|
+
import { a as so, c as ot, g as io } from "./_commonjsHelpers-BVfed4GL.js";
|
|
12
|
+
import { g as sr, h as Pr, i as Tn, C as Se, I as On, u as lo, a as co, F as uo, S as fo, b as po, c as ho, d as mo, f as Nr, V as yo } from "./Input-DdAxw3vC.js";
|
|
13
|
+
import { A as go } from "./DevPortalProvider-BBhQ8kgI.js";
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v0.378.0 - ISC
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the ISC license.
|
|
18
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
const
|
|
20
|
+
const vo = Ke("ChevronsUpDown", [
|
|
21
21
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
22
22
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
23
23
|
]);
|
|
@@ -27,7 +27,7 @@ const yo = Ke("ChevronsUpDown", [
|
|
|
27
27
|
* This source code is licensed under the ISC license.
|
|
28
28
|
* See the LICENSE file in the root directory of this source tree.
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const bo = Ke("CirclePlay", [
|
|
31
31
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
32
32
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
33
33
|
]);
|
|
@@ -54,7 +54,7 @@ const Cn = Ke("Eraser", [
|
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
56
|
*/
|
|
57
|
-
const
|
|
57
|
+
const xo = Ke("ListPlus", [
|
|
58
58
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
59
59
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
60
60
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -71,12 +71,12 @@ const Pn = Ke("X", [
|
|
|
71
71
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
72
72
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
73
73
|
]);
|
|
74
|
-
function
|
|
74
|
+
function $o(t, e) {
|
|
75
75
|
return e;
|
|
76
76
|
}
|
|
77
|
-
var ir = "Tabs", [
|
|
77
|
+
var ir = "Tabs", [jo, Cu] = gn(ir, [
|
|
78
78
|
xn
|
|
79
|
-
]), Nn = xn(), [
|
|
79
|
+
]), Nn = xn(), [wo, lr] = jo(ir), En = O.forwardRef(
|
|
80
80
|
(t, e) => {
|
|
81
81
|
const {
|
|
82
82
|
__scopeTabs: r,
|
|
@@ -87,13 +87,13 @@ var ir = "Tabs", [xo, Tu] = gn(ir, [
|
|
|
87
87
|
dir: s,
|
|
88
88
|
activationMode: l = "automatic",
|
|
89
89
|
...c
|
|
90
|
-
} = t, f =
|
|
90
|
+
} = t, f = _a(s), [p, d] = vn({
|
|
91
91
|
prop: a,
|
|
92
92
|
onChange: i,
|
|
93
93
|
defaultProp: o
|
|
94
94
|
});
|
|
95
95
|
return /* @__PURE__ */ u.jsx(
|
|
96
|
-
|
|
96
|
+
wo,
|
|
97
97
|
{
|
|
98
98
|
scope: r,
|
|
99
99
|
baseId: nt(),
|
|
@@ -120,7 +120,7 @@ var kn = "TabsList", Rn = O.forwardRef(
|
|
|
120
120
|
(t, e) => {
|
|
121
121
|
const { __scopeTabs: r, loop: a = !0, ...i } = t, o = lr(kn, r), n = Nn(r);
|
|
122
122
|
return /* @__PURE__ */ u.jsx(
|
|
123
|
-
|
|
123
|
+
to,
|
|
124
124
|
{
|
|
125
125
|
asChild: !0,
|
|
126
126
|
...n,
|
|
@@ -143,9 +143,9 @@ var kn = "TabsList", Rn = O.forwardRef(
|
|
|
143
143
|
Rn.displayName = kn;
|
|
144
144
|
var An = "TabsTrigger", qn = O.forwardRef(
|
|
145
145
|
(t, e) => {
|
|
146
|
-
const { __scopeTabs: r, value: a, disabled: i = !1, ...o } = t, n = lr(An, r), s = Nn(r), l =
|
|
146
|
+
const { __scopeTabs: r, value: a, disabled: i = !1, ...o } = t, n = lr(An, r), s = Nn(r), l = Fn(n.baseId, a), c = Ln(n.baseId, a), f = a === n.value;
|
|
147
147
|
return /* @__PURE__ */ u.jsx(
|
|
148
|
-
|
|
148
|
+
ro,
|
|
149
149
|
{
|
|
150
150
|
asChild: !0,
|
|
151
151
|
...s,
|
|
@@ -183,7 +183,7 @@ var An = "TabsTrigger", qn = O.forwardRef(
|
|
|
183
183
|
qn.displayName = An;
|
|
184
184
|
var In = "TabsContent", _n = O.forwardRef(
|
|
185
185
|
(t, e) => {
|
|
186
|
-
const { __scopeTabs: r, value: a, forceMount: i, children: o, ...n } = t, s = lr(In, r), l =
|
|
186
|
+
const { __scopeTabs: r, value: a, forceMount: i, children: o, ...n } = t, s = lr(In, r), l = Fn(s.baseId, a), c = Ln(s.baseId, a), f = a === s.value, p = O.useRef(f);
|
|
187
187
|
return O.useEffect(() => {
|
|
188
188
|
const d = requestAnimationFrame(() => p.current = !1);
|
|
189
189
|
return () => cancelAnimationFrame(d);
|
|
@@ -209,18 +209,18 @@ var In = "TabsContent", _n = O.forwardRef(
|
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
_n.displayName = In;
|
|
212
|
-
function
|
|
212
|
+
function Fn(t, e) {
|
|
213
213
|
return `${t}-trigger-${e}`;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Ln(t, e) {
|
|
216
216
|
return `${t}-content-${e}`;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
const Bt =
|
|
218
|
+
var So = En, Un = Rn, Mn = qn, Hn = _n;
|
|
219
|
+
const Bt = So, ft = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
220
220
|
Un,
|
|
221
221
|
{
|
|
222
222
|
ref: r,
|
|
223
|
-
className:
|
|
223
|
+
className: k(
|
|
224
224
|
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
225
225
|
t
|
|
226
226
|
),
|
|
@@ -232,7 +232,7 @@ const $e = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
|
232
232
|
Mn,
|
|
233
233
|
{
|
|
234
234
|
ref: r,
|
|
235
|
-
className:
|
|
235
|
+
className: k(
|
|
236
236
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
|
|
237
237
|
t
|
|
238
238
|
),
|
|
@@ -244,7 +244,7 @@ const je = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
|
244
244
|
Hn,
|
|
245
245
|
{
|
|
246
246
|
ref: r,
|
|
247
|
-
className:
|
|
247
|
+
className: k(
|
|
248
248
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
249
249
|
t
|
|
250
250
|
),
|
|
@@ -260,12 +260,12 @@ const Bn = (t, e) => t.reduce(
|
|
|
260
260
|
{}
|
|
261
261
|
), Er = (t, e) => t ? e(t) : void 0, Ot = (t) => Math.abs(
|
|
262
262
|
isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
|
|
263
|
-
), Ct = (t) => t.length > 1 ? parseInt(t.split("").reduce((e, r) => `${Ot(e) + Ot(r)}`)) : Ot(t),
|
|
263
|
+
), Ct = (t) => t.length > 1 ? parseInt(t.split("").reduce((e, r) => `${Ot(e) + Ot(r)}`)) : Ot(t), To = (t, e = {}) => {
|
|
264
264
|
const r = (3 * Ct(t) + 2 * Ct(t) + Ct(t)) % 360, { saturation: a = 75, lightness: i = 60 } = e;
|
|
265
265
|
return `${r}deg ${a}% ${i}%`;
|
|
266
|
-
}, Pt = "data-linked-param",
|
|
267
|
-
const [e] =
|
|
268
|
-
return
|
|
266
|
+
}, Pt = "data-linked-param", Oo = (t) => {
|
|
267
|
+
const [e] = Va();
|
|
268
|
+
return To(
|
|
269
269
|
t,
|
|
270
270
|
e ? void 0 : { saturation: 85, lightness: 50 }
|
|
271
271
|
);
|
|
@@ -278,8 +278,8 @@ const Bn = (t, e) => t.reduce(
|
|
|
278
278
|
children: o,
|
|
279
279
|
onClick: n
|
|
280
280
|
}) => {
|
|
281
|
-
const s =
|
|
282
|
-
return
|
|
281
|
+
const s = Ya(null), l = t.replace("{", "").replace("}", ""), c = i == null ? void 0 : i.replace("{", "").replace("}", ""), f = Oo(l), p = `hsl(${f} / ${a})`, d = `hsl(${f} / ${r})`;
|
|
282
|
+
return Xa(() => {
|
|
283
283
|
if (!c || !s.current) return;
|
|
284
284
|
const h = () => {
|
|
285
285
|
document.querySelectorAll(`[${Pt}="${c}"]`).forEach((y) => {
|
|
@@ -297,7 +297,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
297
297
|
}, [c]), /* @__PURE__ */ u.jsxs(
|
|
298
298
|
"span",
|
|
299
299
|
{
|
|
300
|
-
className:
|
|
300
|
+
className: k("inline-flex relative rounded group", e),
|
|
301
301
|
[Pt]: c,
|
|
302
302
|
ref: s,
|
|
303
303
|
onClick: n,
|
|
@@ -315,7 +315,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
315
315
|
);
|
|
316
316
|
}, kr = (t) => t.schema != null && typeof t.schema == "object" ? t.schema : {
|
|
317
317
|
type: "string"
|
|
318
|
-
},
|
|
318
|
+
}, Co = ({
|
|
319
319
|
parameter: t,
|
|
320
320
|
group: e,
|
|
321
321
|
id: r
|
|
@@ -339,14 +339,14 @@ const Bn = (t, e) => t.reduce(
|
|
|
339
339
|
className: "text-sm prose-p:my-1"
|
|
340
340
|
}
|
|
341
341
|
)
|
|
342
|
-
] }),
|
|
342
|
+
] }), Po = ({
|
|
343
343
|
group: t,
|
|
344
344
|
parameters: e,
|
|
345
345
|
id: r
|
|
346
346
|
}) => /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
347
347
|
/* @__PURE__ */ u.jsx(He, { level: 3, id: `${r}/${t}-parameters`, className: "capitalize", children: t === "header" ? "Headers" : `${t} Parameters` }),
|
|
348
348
|
/* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0 overflow-hidden border divide-y divide-border rounded", children: e.map((a) => /* @__PURE__ */ u.jsx(
|
|
349
|
-
|
|
349
|
+
Co,
|
|
350
350
|
{
|
|
351
351
|
parameter: a,
|
|
352
352
|
id: r,
|
|
@@ -354,7 +354,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
354
354
|
},
|
|
355
355
|
`${a.name}-${a.in}`
|
|
356
356
|
)) })
|
|
357
|
-
] }),
|
|
357
|
+
] }), No = (t) => Object.entries(t), Eo = ({
|
|
358
358
|
propertyName: t,
|
|
359
359
|
property: e,
|
|
360
360
|
nestingLevel: r,
|
|
@@ -364,7 +364,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
364
364
|
return /* @__PURE__ */ u.jsxs(
|
|
365
365
|
"div",
|
|
366
366
|
{
|
|
367
|
-
className:
|
|
367
|
+
className: k(
|
|
368
368
|
"p-4 bg-border/20 hover:bg-border/30 flex gap-1 flex-col text-sm",
|
|
369
369
|
e.deprecated && "opacity-50"
|
|
370
370
|
),
|
|
@@ -404,7 +404,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
404
404
|
e.type === "object" && (((i = e.properties) == null ? void 0 : i.length) ?? Object.entries(e.additionalProperties ?? {}).length > 0) || e.type === "array" && e.items.type === "object" ? /* @__PURE__ */ u.jsxs($n, { className: "CollapsibleRoot", defaultOpen: !1, children: [
|
|
405
405
|
/* @__PURE__ */ u.jsx(jn, { asChild: !0, children: /* @__PURE__ */ u.jsxs(Ge, { variant: "ghost", size: "sm", children: [
|
|
406
406
|
"Show nested fields",
|
|
407
|
-
/* @__PURE__ */ u.jsx(
|
|
407
|
+
/* @__PURE__ */ u.jsx(xo, { size: 18, className: "ml-1.5" })
|
|
408
408
|
] }) }),
|
|
409
409
|
/* @__PURE__ */ u.jsxs(wn, { children: [
|
|
410
410
|
e.type === "object" && /* @__PURE__ */ u.jsx("div", { className: "mt-2.5", children: /* @__PURE__ */ u.jsx(
|
|
@@ -429,7 +429,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
429
429
|
},
|
|
430
430
|
t
|
|
431
431
|
);
|
|
432
|
-
},
|
|
432
|
+
}, ko = ({
|
|
433
433
|
group: t,
|
|
434
434
|
properties: e,
|
|
435
435
|
nestingLevel: r,
|
|
@@ -448,7 +448,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
448
448
|
!n && /* @__PURE__ */ u.jsxs(
|
|
449
449
|
jn,
|
|
450
450
|
{
|
|
451
|
-
className:
|
|
451
|
+
className: k(
|
|
452
452
|
"py-2 hover:bg-muted w-full",
|
|
453
453
|
t === "optional" && "font-semibold",
|
|
454
454
|
t === "deprecated" && "text-muted-foreground"
|
|
@@ -462,7 +462,7 @@ const Bn = (t, e) => t.reduce(
|
|
|
462
462
|
}
|
|
463
463
|
),
|
|
464
464
|
/* @__PURE__ */ u.jsx(wn, { className: "divide-y divide-border", children: e.map(([l, c]) => /* @__PURE__ */ u.jsx(
|
|
465
|
-
|
|
465
|
+
Eo,
|
|
466
466
|
{
|
|
467
467
|
property: c,
|
|
468
468
|
propertyName: l,
|
|
@@ -474,8 +474,8 @@ const Bn = (t, e) => t.reduce(
|
|
|
474
474
|
]
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
|
-
}, dt =
|
|
478
|
-
|
|
477
|
+
}, dt = k(
|
|
478
|
+
Ga,
|
|
479
479
|
"max-w-full prose-img:max-w-prose"
|
|
480
480
|
), pt = ({
|
|
481
481
|
name: t,
|
|
@@ -492,8 +492,8 @@ const Bn = (t, e) => t.reduce(
|
|
|
492
492
|
return /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2.5", children: [
|
|
493
493
|
(e.title ?? t) && /* @__PURE__ */ u.jsx("div", { className: "ml-2 my-1 font-bold", children: e.title ?? t }),
|
|
494
494
|
r === 0 && e.description && /* @__PURE__ */ u.jsx(qe, { className: dt, content: e.description }),
|
|
495
|
-
/* @__PURE__ */ u.jsx("ul", { className: "border-border border rounded overflow-hidden", children:
|
|
496
|
-
|
|
495
|
+
/* @__PURE__ */ u.jsx("ul", { className: "border-border border rounded overflow-hidden", children: No(s).map(([l, c]) => /* @__PURE__ */ u.jsx(
|
|
496
|
+
ko,
|
|
497
497
|
{
|
|
498
498
|
defaultOpen: a,
|
|
499
499
|
group: l,
|
|
@@ -530,16 +530,16 @@ var Rr = (t, e) => {
|
|
|
530
530
|
this.postProcessors = [...this.postProcessors, r];
|
|
531
531
|
}, this.indentationCharacter = t || Ar, this.lineJoin = e ?? qr;
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, Ro = function(t) {
|
|
534
534
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
535
|
-
},
|
|
535
|
+
}, Ao = function(t) {
|
|
536
536
|
var e = typeof t;
|
|
537
537
|
return t !== null && (e === "object" || e === "function");
|
|
538
538
|
}, cr = {};
|
|
539
539
|
Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
540
540
|
cr.default = (t) => Object.getOwnPropertySymbols(t).filter((e) => Object.prototype.propertyIsEnumerable.call(t, e));
|
|
541
|
-
const
|
|
542
|
-
var
|
|
541
|
+
const qo = Ro, Io = Ao, _o = cr.default;
|
|
542
|
+
var Fo = (t, e, r) => {
|
|
543
543
|
const a = [];
|
|
544
544
|
return function i(o, n, s) {
|
|
545
545
|
n = n || {}, n.indent = n.indent || " ", s = s || "";
|
|
@@ -566,7 +566,7 @@ var Io = (t, e, r) => {
|
|
|
566
566
|
};
|
|
567
567
|
if (a.indexOf(o) !== -1)
|
|
568
568
|
return '"[Circular]"';
|
|
569
|
-
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" ||
|
|
569
|
+
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" || qo(o))
|
|
570
570
|
return String(o);
|
|
571
571
|
if (o instanceof Date)
|
|
572
572
|
return `new Date('${o.toISOString()}')`;
|
|
@@ -581,8 +581,8 @@ var Io = (t, e, r) => {
|
|
|
581
581
|
}).join("") + l.pad + "]";
|
|
582
582
|
return a.pop(), c(f);
|
|
583
583
|
}
|
|
584
|
-
if (
|
|
585
|
-
let f = Object.keys(o).concat(
|
|
584
|
+
if (Io(o)) {
|
|
585
|
+
let f = Object.keys(o).concat(_o(o));
|
|
586
586
|
if (n.filter && (f = f.filter((d) => n.filter(o, d))), f.length === 0)
|
|
587
587
|
return "{}";
|
|
588
588
|
a.push(o);
|
|
@@ -597,13 +597,13 @@ var Io = (t, e, r) => {
|
|
|
597
597
|
` ? "\\n" : "\\r"), n.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
|
|
598
598
|
}(t, e, r);
|
|
599
599
|
};
|
|
600
|
-
const K = /* @__PURE__ */
|
|
601
|
-
function
|
|
600
|
+
const K = /* @__PURE__ */ so(Fo);
|
|
601
|
+
function We(t, e = {}) {
|
|
602
602
|
const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: i = !0 } = e;
|
|
603
603
|
return [...t.toString()].map((n) => n === "\b" ? `${a}b` : n === " " ? `${a}t` : n === `
|
|
604
604
|
` ? i ? `${a}n` : n : n === "\f" ? `${a}f` : n === "\r" ? i ? `${a}r` : n : n === a ? a + a : n === r ? a + r : n < " " || n > "~" ? JSON.stringify(n).slice(1, -1) : n).join("");
|
|
605
605
|
}
|
|
606
|
-
var Je = (t) =>
|
|
606
|
+
var Je = (t) => We(t, { delimiter: "'" }), J = (t) => We(t, { delimiter: '"' }), Lo = {
|
|
607
607
|
info: {
|
|
608
608
|
key: "libcurl",
|
|
609
609
|
title: "Libcurl",
|
|
@@ -619,7 +619,7 @@ var Je = (t) => ze(t, { delimiter: "'" }), J = (t) => ze(t, { delimiter: '"' }),
|
|
|
619
619
|
o(`headers = curl_slist_append(headers, "${c}: ${J(r[c])}");`);
|
|
620
620
|
}), o("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (n(), o(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), i.text && (n(), o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(i.text)});`)), n(), o("CURLcode ret = curl_easy_perform(hnd);"), s();
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, Uo = {
|
|
623
623
|
info: {
|
|
624
624
|
key: "c",
|
|
625
625
|
title: "C",
|
|
@@ -627,23 +627,23 @@ var Je = (t) => ze(t, { delimiter: "'" }), J = (t) => ze(t, { delimiter: '"' }),
|
|
|
627
627
|
cli: "c"
|
|
628
628
|
},
|
|
629
629
|
clientsById: {
|
|
630
|
-
libcurl:
|
|
630
|
+
libcurl: Lo
|
|
631
631
|
}
|
|
632
632
|
}, X = (t, e) => Object.keys(t).find((r) => r.toLowerCase() === e.toLowerCase()), fe = (t, e) => {
|
|
633
633
|
const r = X(t, e);
|
|
634
634
|
if (r)
|
|
635
635
|
return t[r];
|
|
636
|
-
}, wt = (t, e) => !!X(t, e),
|
|
636
|
+
}, wt = (t, e) => !!X(t, e), Mo = (t) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
637
637
|
(e) => t.indexOf(e) > -1
|
|
638
638
|
), Ir = class {
|
|
639
639
|
constructor(t) {
|
|
640
640
|
this.name = "", this.toString = () => `:${this.name}`, this.name = t;
|
|
641
641
|
}
|
|
642
|
-
},
|
|
642
|
+
}, Ho = class {
|
|
643
643
|
constructor(t) {
|
|
644
644
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = t;
|
|
645
645
|
}
|
|
646
|
-
}, Dn = (t) => t === void 0 ? null : t === null ? "null" : t.constructor.name.toLowerCase(),
|
|
646
|
+
}, Dn = (t) => t === void 0 ? null : t === null ? "null" : t.constructor.name.toLowerCase(), zn = (t) => t === void 0 ? !0 : Dn(t) === "object" ? Object.keys(t).length === 0 : !1, _r = (t) => (Object.keys(t).filter((e) => zn(t[e])).forEach((e) => {
|
|
647
647
|
delete t[e];
|
|
648
648
|
}), t), st = (t, e) => {
|
|
649
649
|
const r = " ".repeat(t);
|
|
@@ -676,7 +676,7 @@ ${r}`);
|
|
|
676
676
|
default:
|
|
677
677
|
return t.toString();
|
|
678
678
|
}
|
|
679
|
-
},
|
|
679
|
+
}, Bo = {
|
|
680
680
|
info: {
|
|
681
681
|
key: "clj_http",
|
|
682
682
|
title: "clj-http",
|
|
@@ -718,7 +718,7 @@ ${r}`);
|
|
|
718
718
|
if (r.params) {
|
|
719
719
|
c.multipart = r.params.map((p) => p.fileName && !p.value ? {
|
|
720
720
|
name: p.name,
|
|
721
|
-
content: new
|
|
721
|
+
content: new Ho(p.fileName)
|
|
722
722
|
} : {
|
|
723
723
|
name: p.name,
|
|
724
724
|
content: p.value
|
|
@@ -739,7 +739,7 @@ ${r}`);
|
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
741
|
if (n(`(require '[clj-http.client :as client])
|
|
742
|
-
`),
|
|
742
|
+
`), zn(_r(c)))
|
|
743
743
|
n(`(client/${e} "${a}")`);
|
|
744
744
|
else {
|
|
745
745
|
const f = 11 + e.length + a.length, p = st(f, Dt(_r(c)));
|
|
@@ -747,16 +747,16 @@ ${r}`);
|
|
|
747
747
|
}
|
|
748
748
|
return s();
|
|
749
749
|
}
|
|
750
|
-
},
|
|
750
|
+
}, Do = {
|
|
751
751
|
info: {
|
|
752
752
|
key: "clojure",
|
|
753
753
|
title: "Clojure",
|
|
754
754
|
default: "clj_http"
|
|
755
755
|
},
|
|
756
756
|
clientsById: {
|
|
757
|
-
clj_http:
|
|
757
|
+
clj_http: Bo
|
|
758
758
|
}
|
|
759
|
-
},
|
|
759
|
+
}, zo = (t) => {
|
|
760
760
|
let e = fe(t, "accept-encoding");
|
|
761
761
|
if (!e)
|
|
762
762
|
return [];
|
|
@@ -773,7 +773,7 @@ ${r}`);
|
|
|
773
773
|
}
|
|
774
774
|
});
|
|
775
775
|
}), a;
|
|
776
|
-
},
|
|
776
|
+
}, Wo = {
|
|
777
777
|
info: {
|
|
778
778
|
key: "httpclient",
|
|
779
779
|
title: "HttpClient",
|
|
@@ -789,7 +789,7 @@ ${r}`);
|
|
|
789
789
|
}, { push: n, join: s } = new N({ indent: o.indent });
|
|
790
790
|
n("using System.Net.Http.Headers;");
|
|
791
791
|
let l = "";
|
|
792
|
-
const c = !!t.cookie, f =
|
|
792
|
+
const c = !!t.cookie, f = zo(t);
|
|
793
793
|
(c || f.length) && (l = "clientHandler", n("var clientHandler = new HttpClientHandler"), n("{"), c && n("UseCookies = false,", 1), f.length && n(`AutomaticDecompression = ${f.join(" | ")},`, 1), n("};")), n(`var client = new HttpClient(${l});`), n("var request = new HttpRequestMessage"), n("{");
|
|
794
794
|
const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
795
795
|
r = r.toUpperCase(), r && p.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, n(`Method = ${r},`, 1), n(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -826,10 +826,10 @@ ${r}`);
|
|
|
826
826
|
return n("};"), n("using (var response = await client.SendAsync(request))"), n("{"), n("response.EnsureSuccessStatusCode();", 1), n("var body = await response.Content.ReadAsStringAsync();", 1), n("Console.WriteLine(body);", 1), n("}"), s();
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
function
|
|
829
|
+
function Jo(t) {
|
|
830
830
|
return t[0].toUpperCase() + t.slice(1).toLowerCase();
|
|
831
831
|
}
|
|
832
|
-
var
|
|
832
|
+
var Vo = {
|
|
833
833
|
info: {
|
|
834
834
|
key: "restsharp",
|
|
835
835
|
title: "RestSharp",
|
|
@@ -879,11 +879,11 @@ var zo = {
|
|
|
879
879
|
if (!i.text) break;
|
|
880
880
|
n(`request.AddStringBody("${i.text}", "${i.mimeType}");`);
|
|
881
881
|
}
|
|
882
|
-
return n(`var response = await client.${
|
|
882
|
+
return n(`var response = await client.${Jo(t)}Async(request);
|
|
883
883
|
`), n(`Console.WriteLine("{0}", response.Content);
|
|
884
884
|
`), s();
|
|
885
885
|
}
|
|
886
|
-
},
|
|
886
|
+
}, Go = {
|
|
887
887
|
info: {
|
|
888
888
|
key: "csharp",
|
|
889
889
|
title: "C#",
|
|
@@ -891,10 +891,10 @@ var zo = {
|
|
|
891
891
|
cli: "dotnet"
|
|
892
892
|
},
|
|
893
893
|
clientsById: {
|
|
894
|
-
httpclient:
|
|
895
|
-
restsharp:
|
|
894
|
+
httpclient: Wo,
|
|
895
|
+
restsharp: Vo
|
|
896
896
|
}
|
|
897
|
-
},
|
|
897
|
+
}, Ko = {
|
|
898
898
|
info: {
|
|
899
899
|
key: "native",
|
|
900
900
|
title: "NewRequest",
|
|
@@ -912,7 +912,7 @@ var zo = {
|
|
|
912
912
|
n(`req.Header.Add("${g}", "${J(r[g])}")`, h);
|
|
913
913
|
}), o()), n(`res, ${d} := ${x}.Do(req)`, h), m(), f && (o(), n("defer res.Body.Close()", h), n(`body, ${d} := io.ReadAll(res.Body)`, h), m()), o(), f && n("fmt.Println(string(body))", h), l && (o(), n("}")), s();
|
|
914
914
|
}
|
|
915
|
-
},
|
|
915
|
+
}, Qo = {
|
|
916
916
|
info: {
|
|
917
917
|
key: "go",
|
|
918
918
|
title: "Go",
|
|
@@ -920,10 +920,10 @@ var zo = {
|
|
|
920
920
|
cli: "go"
|
|
921
921
|
},
|
|
922
922
|
clientsById: {
|
|
923
|
-
native:
|
|
923
|
+
native: Ko
|
|
924
924
|
}
|
|
925
|
-
},
|
|
926
|
-
`,
|
|
925
|
+
}, Fr = `\r
|
|
926
|
+
`, Yo = {
|
|
927
927
|
info: {
|
|
928
928
|
key: "http1.1",
|
|
929
929
|
title: "HTTP/1.1",
|
|
@@ -937,7 +937,7 @@ var zo = {
|
|
|
937
937
|
autoContentLength: !0,
|
|
938
938
|
autoHost: !0,
|
|
939
939
|
...n
|
|
940
|
-
}, { blank: l, push: c, join: f } = new N({ indent: "", join:
|
|
940
|
+
}, { blank: l, push: c, join: f } = new N({ indent: "", join: Fr }), p = s.absoluteURI ? e : r.path;
|
|
941
941
|
c(`${t} ${p} ${a}`);
|
|
942
942
|
const d = Object.keys(i);
|
|
943
943
|
if (d.forEach((y) => {
|
|
@@ -949,18 +949,18 @@ var zo = {
|
|
|
949
949
|
}
|
|
950
950
|
l();
|
|
951
951
|
const h = f(), m = o.text || "";
|
|
952
|
-
return `${h}${
|
|
952
|
+
return `${h}${Fr}${m}`;
|
|
953
953
|
}
|
|
954
|
-
},
|
|
954
|
+
}, Xo = {
|
|
955
955
|
info: {
|
|
956
956
|
key: "http",
|
|
957
957
|
title: "HTTP",
|
|
958
958
|
default: "http1.1"
|
|
959
959
|
},
|
|
960
960
|
clientsById: {
|
|
961
|
-
"http1.1":
|
|
961
|
+
"http1.1": Yo
|
|
962
962
|
}
|
|
963
|
-
},
|
|
963
|
+
}, Zo = {
|
|
964
964
|
info: {
|
|
965
965
|
key: "asynchttp",
|
|
966
966
|
title: "AsyncHttp",
|
|
@@ -977,7 +977,7 @@ var zo = {
|
|
|
977
977
|
s(`.setHeader("${c}", "${J(e[c])}")`, 1);
|
|
978
978
|
}), r.text && s(`.setBody(${JSON.stringify(r.text)})`, 1), s(".execute()", 1), s(".toCompletableFuture()", 1), s(".thenAccept(System.out::println)", 1), s(".join();", 1), n(), s("client.close();"), l();
|
|
979
979
|
}
|
|
980
|
-
},
|
|
980
|
+
}, es = {
|
|
981
981
|
info: {
|
|
982
982
|
key: "nethttp",
|
|
983
983
|
title: "java.net.http",
|
|
@@ -999,7 +999,7 @@ var zo = {
|
|
|
999
999
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
1000
1000
|
), n("System.out.println(response.body());"), s();
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1002
|
+
}, ts = {
|
|
1003
1003
|
info: {
|
|
1004
1004
|
key: "okhttp",
|
|
1005
1005
|
title: "OkHttp",
|
|
@@ -1016,7 +1016,7 @@ var zo = {
|
|
|
1016
1016
|
n(`.addHeader("${p}", "${J(a[p])}")`, 1);
|
|
1017
1017
|
}), n(".build();", 1), s(), n("Response response = client.newCall(request).execute();"), l();
|
|
1018
1018
|
}
|
|
1019
|
-
},
|
|
1019
|
+
}, rs = {
|
|
1020
1020
|
info: {
|
|
1021
1021
|
key: "unirest",
|
|
1022
1022
|
title: "Unirest",
|
|
@@ -1033,19 +1033,19 @@ var zo = {
|
|
|
1033
1033
|
s(`.header("${c}", "${J(e[c])}")`, 1);
|
|
1034
1034
|
}), r.text && s(`.body(${JSON.stringify(r.text)})`, 1), s(".asString();", 1), n();
|
|
1035
1035
|
}
|
|
1036
|
-
},
|
|
1036
|
+
}, ns = {
|
|
1037
1037
|
info: {
|
|
1038
1038
|
key: "java",
|
|
1039
1039
|
title: "Java",
|
|
1040
1040
|
default: "unirest"
|
|
1041
1041
|
},
|
|
1042
1042
|
clientsById: {
|
|
1043
|
-
asynchttp:
|
|
1044
|
-
nethttp:
|
|
1045
|
-
okhttp:
|
|
1046
|
-
unirest:
|
|
1043
|
+
asynchttp: Zo,
|
|
1044
|
+
nethttp: es,
|
|
1045
|
+
okhttp: ts,
|
|
1046
|
+
unirest: rs
|
|
1047
1047
|
}
|
|
1048
|
-
},
|
|
1048
|
+
}, as = {
|
|
1049
1049
|
info: {
|
|
1050
1050
|
key: "axios",
|
|
1051
1051
|
title: "Axios",
|
|
@@ -1089,7 +1089,7 @@ var zo = {
|
|
|
1089
1089
|
}).replace('"[form]"', "form");
|
|
1090
1090
|
return l(`const options = ${d};`), s(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
|
|
1091
1091
|
}
|
|
1092
|
-
},
|
|
1092
|
+
}, os = {
|
|
1093
1093
|
info: {
|
|
1094
1094
|
key: "fetch",
|
|
1095
1095
|
title: "fetch",
|
|
@@ -1142,7 +1142,7 @@ var zo = {
|
|
|
1142
1142
|
})};`
|
|
1143
1143
|
), n(), r.params && r.mimeType === "multipart/form-data" && (l("options.body = form;"), n()), l(`fetch('${a}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), s();
|
|
1144
1144
|
}
|
|
1145
|
-
},
|
|
1145
|
+
}, ss = {
|
|
1146
1146
|
info: {
|
|
1147
1147
|
key: "jquery",
|
|
1148
1148
|
title: "jQuery",
|
|
@@ -1186,7 +1186,7 @@ var zo = {
|
|
|
1186
1186
|
const f = K(c, { indent: o.indent }).replace("'[form]'", "form");
|
|
1187
1187
|
return s(`const settings = ${f};`), n(), s("$.ajax(settings).done(function (response) {"), s("console.log(response);", 1), s("});"), l();
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1189
|
+
}, is = {
|
|
1190
1190
|
info: {
|
|
1191
1191
|
key: "xhr",
|
|
1192
1192
|
title: "XMLHttpRequest",
|
|
@@ -1227,19 +1227,19 @@ var zo = {
|
|
|
1227
1227
|
s(`xhr.setRequestHeader('${f}', '${Je(e[f])}');`);
|
|
1228
1228
|
}), n(), s("xhr.send(data);"), l();
|
|
1229
1229
|
}
|
|
1230
|
-
},
|
|
1230
|
+
}, ls = {
|
|
1231
1231
|
info: {
|
|
1232
1232
|
key: "javascript",
|
|
1233
1233
|
title: "JavaScript",
|
|
1234
1234
|
default: "xhr"
|
|
1235
1235
|
},
|
|
1236
1236
|
clientsById: {
|
|
1237
|
-
xhr:
|
|
1238
|
-
axios:
|
|
1239
|
-
fetch:
|
|
1240
|
-
jquery:
|
|
1237
|
+
xhr: is,
|
|
1238
|
+
axios: as,
|
|
1239
|
+
fetch: os,
|
|
1240
|
+
jquery: ss
|
|
1241
1241
|
}
|
|
1242
|
-
},
|
|
1242
|
+
}, cs = {
|
|
1243
1243
|
info: {
|
|
1244
1244
|
key: "native",
|
|
1245
1245
|
title: "Native JSON",
|
|
@@ -1273,16 +1273,16 @@ var zo = {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, r.indent);
|
|
1275
1275
|
}
|
|
1276
|
-
},
|
|
1276
|
+
}, us = {
|
|
1277
1277
|
info: {
|
|
1278
1278
|
key: "json",
|
|
1279
1279
|
title: "JSON",
|
|
1280
1280
|
default: "native"
|
|
1281
1281
|
},
|
|
1282
1282
|
clientsById: {
|
|
1283
|
-
native:
|
|
1283
|
+
native: cs
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1285
|
+
}, fs = {
|
|
1286
1286
|
info: {
|
|
1287
1287
|
key: "okhttp",
|
|
1288
1288
|
title: "OkHttp",
|
|
@@ -1299,16 +1299,16 @@ var zo = {
|
|
|
1299
1299
|
l(`.addHeader("${p}", "${J(a[p])}")`, 1);
|
|
1300
1300
|
}), l(".build()", 1), n(), l("val response = client.newCall(request).execute()"), s();
|
|
1301
1301
|
}
|
|
1302
|
-
},
|
|
1302
|
+
}, ds = {
|
|
1303
1303
|
info: {
|
|
1304
1304
|
key: "kotlin",
|
|
1305
1305
|
title: "Kotlin",
|
|
1306
1306
|
default: "okhttp"
|
|
1307
1307
|
},
|
|
1308
1308
|
clientsById: {
|
|
1309
|
-
okhttp:
|
|
1309
|
+
okhttp: fs
|
|
1310
1310
|
}
|
|
1311
|
-
},
|
|
1311
|
+
}, ps = {
|
|
1312
1312
|
info: {
|
|
1313
1313
|
key: "axios",
|
|
1314
1314
|
title: "Axios",
|
|
@@ -1342,7 +1342,7 @@ var zo = {
|
|
|
1342
1342
|
const p = K(f, { indent: " ", inlineCharacterLimit: 80 });
|
|
1343
1343
|
return l(`const options = ${p};`), n(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), s();
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1345
|
+
}, hs = {
|
|
1346
1346
|
info: {
|
|
1347
1347
|
key: "fetch",
|
|
1348
1348
|
title: "Fetch",
|
|
@@ -1402,7 +1402,7 @@ var zo = {
|
|
|
1402
1402
|
});
|
|
1403
1403
|
return c(`const options = ${m};`), l(), s && p("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), f().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1404
1404
|
}
|
|
1405
|
-
},
|
|
1405
|
+
}, ms = {
|
|
1406
1406
|
info: {
|
|
1407
1407
|
key: "native",
|
|
1408
1408
|
title: "HTTP",
|
|
@@ -1441,7 +1441,7 @@ var zo = {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
return l("req.end();"), s();
|
|
1443
1443
|
}
|
|
1444
|
-
},
|
|
1444
|
+
}, ys = {
|
|
1445
1445
|
info: {
|
|
1446
1446
|
key: "request",
|
|
1447
1447
|
title: "Request",
|
|
@@ -1494,7 +1494,7 @@ var zo = {
|
|
|
1494
1494
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${e}');`);
|
|
1495
1495
|
}), f(), h((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${K(m, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), p();
|
|
1496
1496
|
}
|
|
1497
|
-
},
|
|
1497
|
+
}, gs = {
|
|
1498
1498
|
info: {
|
|
1499
1499
|
key: "unirest",
|
|
1500
1500
|
title: "Unirest",
|
|
@@ -1535,7 +1535,7 @@ var zo = {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
return l && h("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), f(), d("console.log(res.body);", 1), d("});"), p();
|
|
1537
1537
|
}
|
|
1538
|
-
},
|
|
1538
|
+
}, vs = {
|
|
1539
1539
|
info: {
|
|
1540
1540
|
key: "node",
|
|
1541
1541
|
title: "Node.js",
|
|
@@ -1543,27 +1543,27 @@ var zo = {
|
|
|
1543
1543
|
cli: "node %s"
|
|
1544
1544
|
},
|
|
1545
1545
|
clientsById: {
|
|
1546
|
-
native:
|
|
1547
|
-
request:
|
|
1548
|
-
unirest:
|
|
1549
|
-
axios:
|
|
1550
|
-
fetch:
|
|
1546
|
+
native: ms,
|
|
1547
|
+
request: ys,
|
|
1548
|
+
unirest: gs,
|
|
1549
|
+
axios: ps,
|
|
1550
|
+
fetch: hs
|
|
1551
1551
|
}
|
|
1552
1552
|
}, Nt = (t, e, r, a) => {
|
|
1553
|
-
const i = `${t} *${e} = `, o =
|
|
1553
|
+
const i = `${t} *${e} = `, o = zt(r, a ? i.length : void 0);
|
|
1554
1554
|
return `${i}${o};`;
|
|
1555
|
-
},
|
|
1555
|
+
}, zt = (t, e) => {
|
|
1556
1556
|
const r = e === void 0 ? ", " : `,
|
|
1557
1557
|
${" ".repeat(e)}`;
|
|
1558
1558
|
switch (Object.prototype.toString.call(t)) {
|
|
1559
1559
|
case "[object Number]":
|
|
1560
1560
|
return `@${t}`;
|
|
1561
1561
|
case "[object Array]":
|
|
1562
|
-
return `@[ ${t.map((i) =>
|
|
1562
|
+
return `@[ ${t.map((i) => zt(i)).join(r)} ]`;
|
|
1563
1563
|
case "[object Object]": {
|
|
1564
1564
|
const a = [];
|
|
1565
1565
|
return Object.keys(t).forEach((i) => {
|
|
1566
|
-
a.push(`@"${i}": ${
|
|
1566
|
+
a.push(`@"${i}": ${zt(t[i])}`);
|
|
1567
1567
|
}), `@{ ${a.join(r)} }`;
|
|
1568
1568
|
}
|
|
1569
1569
|
case "[object Boolean]":
|
|
@@ -1571,7 +1571,7 @@ var zo = {
|
|
|
1571
1571
|
default:
|
|
1572
1572
|
return t == null ? "" : `@"${t.toString().replace(/"/g, '\\"')}"`;
|
|
1573
1573
|
}
|
|
1574
|
-
},
|
|
1574
|
+
}, bs = {
|
|
1575
1575
|
info: {
|
|
1576
1576
|
key: "nsurlsession",
|
|
1577
1577
|
title: "NSURLSession",
|
|
@@ -1628,16 +1628,16 @@ var zo = {
|
|
|
1628
1628
|
2
|
|
1629
1629
|
), n(' NSLog(@"%@", httpResponse);', 2), n(" }", 1), n(" }];"), n("[dataTask resume];"), s();
|
|
1630
1630
|
}
|
|
1631
|
-
},
|
|
1631
|
+
}, xs = {
|
|
1632
1632
|
info: {
|
|
1633
1633
|
key: "objc",
|
|
1634
1634
|
title: "Objective-C",
|
|
1635
1635
|
default: "nsurlsession"
|
|
1636
1636
|
},
|
|
1637
1637
|
clientsById: {
|
|
1638
|
-
nsurlsession:
|
|
1638
|
+
nsurlsession: bs
|
|
1639
1639
|
}
|
|
1640
|
-
},
|
|
1640
|
+
}, $s = {
|
|
1641
1641
|
info: {
|
|
1642
1642
|
key: "cohttp",
|
|
1643
1643
|
title: "CoHTTP",
|
|
@@ -1663,14 +1663,14 @@ var zo = {
|
|
|
1663
1663
|
const p = f.length ? "~headers " : "", d = r.text ? "~body " : "", h = n.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
1664
1664
|
return s(`Client.call ${p}${d}${h} uri`), s(">>= fun (res, body_stream) ->"), s("(* Do stuff with the result *)", 1), c();
|
|
1665
1665
|
}
|
|
1666
|
-
},
|
|
1666
|
+
}, js = {
|
|
1667
1667
|
info: {
|
|
1668
1668
|
key: "ocaml",
|
|
1669
1669
|
title: "OCaml",
|
|
1670
1670
|
default: "cohttp"
|
|
1671
1671
|
},
|
|
1672
1672
|
clientsById: {
|
|
1673
|
-
cohttp:
|
|
1673
|
+
cohttp: $s
|
|
1674
1674
|
}
|
|
1675
1675
|
}, q = (t, e, r) => {
|
|
1676
1676
|
switch (r = r || "", e = e || "", Object.prototype.toString.call(t)) {
|
|
@@ -1681,7 +1681,7 @@ var zo = {
|
|
|
1681
1681
|
case "[object Undefined]":
|
|
1682
1682
|
return "null";
|
|
1683
1683
|
case "[object String]":
|
|
1684
|
-
return `'${
|
|
1684
|
+
return `'${We(t, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
1685
1685
|
case "[object Number]":
|
|
1686
1686
|
return t.toString();
|
|
1687
1687
|
case "[object Array]": {
|
|
@@ -1703,7 +1703,7 @@ ${r}]`;
|
|
|
1703
1703
|
default:
|
|
1704
1704
|
return "null";
|
|
1705
1705
|
}
|
|
1706
|
-
},
|
|
1706
|
+
}, Lr = [
|
|
1707
1707
|
"ACL",
|
|
1708
1708
|
"BASELINE_CONTROL",
|
|
1709
1709
|
"CHECKIN",
|
|
@@ -1731,7 +1731,7 @@ ${r}]`;
|
|
|
1731
1731
|
"UNLOCK",
|
|
1732
1732
|
"UPDATE",
|
|
1733
1733
|
"VERSION_CONTROL"
|
|
1734
|
-
],
|
|
1734
|
+
], ws = {
|
|
1735
1735
|
info: {
|
|
1736
1736
|
key: "curl",
|
|
1737
1737
|
title: "cURL",
|
|
@@ -1809,7 +1809,7 @@ ${c}` });
|
|
|
1809
1809
|
return j.length && (b.push("CURLOPT_HTTPHEADER => ["), b.push(j.join(`,
|
|
1810
1810
|
${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = curl_exec($curl);"), y("$err = curl_error($curl);"), v(), y("curl_close($curl);"), v(), y("if ($err) {"), y(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), y("} else {"), y("echo $response;", 1), y("}"), !d && l && (v(), y("?>")), x();
|
|
1811
1811
|
}
|
|
1812
|
-
},
|
|
1812
|
+
}, Ss = {
|
|
1813
1813
|
info: {
|
|
1814
1814
|
key: "guzzle",
|
|
1815
1815
|
title: "Guzzle",
|
|
@@ -1860,7 +1860,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1860
1860
|
return m.length && h.push(`${n.indent}${n.indent}'cookie' => '${Je(m)}',`), h.length && (p("'headers' => [", 1), p(h.join(`
|
|
1861
1861
|
`)), p("],", 1)), s("$client = new \\GuzzleHttp\\Client();"), l(), f.length ? (s(`$response = $client->request('${r}', '${e}', [`), s(d()), s("]);")) : s(`$response = $client->request('${r}', '${e}');`), l(), s("echo $response->getBody();"), !n.noTags && n.closingTag && (l(), s("?>")), c();
|
|
1862
1862
|
}
|
|
1863
|
-
},
|
|
1863
|
+
}, Ts = {
|
|
1864
1864
|
info: {
|
|
1865
1865
|
key: "http1",
|
|
1866
1866
|
title: "HTTP v1",
|
|
@@ -1870,7 +1870,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1870
1870
|
},
|
|
1871
1871
|
convert: ({ method: t, url: e, postData: r, queryObj: a, headersObj: i, cookiesObj: o }, n = {}) => {
|
|
1872
1872
|
const { closingTag: s = !1, indent: l = " ", noTags: c = !1, shortTags: f = !1 } = n, { push: p, blank: d, join: h } = new N({ indent: l });
|
|
1873
|
-
switch (c || (p(f ? "<?" : "<?php"), d()),
|
|
1873
|
+
switch (c || (p(f ? "<?" : "<?php"), d()), Lr.includes(t.toUpperCase()) || p(`HttpRequest::methodRegister('${t}');`), p("$request = new HttpRequest();"), p(`$request->setUrl(${q(e)});`), Lr.includes(t.toUpperCase()) ? p(`$request->setMethod(HTTP_METH_${t.toUpperCase()});`) : p(`$request->setMethod(HttpRequest::HTTP_METH_${t.toUpperCase()});`), d(), Object.keys(a).length && (p(`$request->setQueryData(${q(a, l)});`), d()), Object.keys(i).length && (p(`$request->setHeaders(${q(i, l)});`), d()), Object.keys(o).length && (p(`$request->setCookies(${q(o, l)});`), d()), r.mimeType) {
|
|
1874
1874
|
case "application/x-www-form-urlencoded":
|
|
1875
1875
|
p(`$request->setContentType(${q(r.mimeType)});`), p(`$request->setPostFields(${q(r.paramsObj, l)});`), d();
|
|
1876
1876
|
break;
|
|
@@ -1882,7 +1882,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1882
1882
|
}
|
|
1883
1883
|
return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && s && (d(), p("?>")), h();
|
|
1884
1884
|
}
|
|
1885
|
-
},
|
|
1885
|
+
}, Os = {
|
|
1886
1886
|
info: {
|
|
1887
1887
|
key: "http2",
|
|
1888
1888
|
title: "HTTP v2",
|
|
@@ -1930,7 +1930,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1930
1930
|
}
|
|
1931
1931
|
return p(`$request->setRequestUrl(${q(o)});`), p(`$request->setRequestMethod(${q(r)});`), m && (p("$request->setBody($body);"), d()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${q(a, l)}));`), d()), Object.keys(e).length && (p(`$request->setHeaders(${q(e, l)});`), d()), Object.keys(i).length && (d(), p(`$client->setCookies(${q(i, l)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !c && s && (d(), p("?>")), h();
|
|
1932
1932
|
}
|
|
1933
|
-
},
|
|
1933
|
+
}, Cs = {
|
|
1934
1934
|
info: {
|
|
1935
1935
|
key: "php",
|
|
1936
1936
|
title: "PHP",
|
|
@@ -1938,24 +1938,24 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1938
1938
|
cli: "php %s"
|
|
1939
1939
|
},
|
|
1940
1940
|
clientsById: {
|
|
1941
|
-
curl:
|
|
1942
|
-
guzzle:
|
|
1943
|
-
http1:
|
|
1944
|
-
http2:
|
|
1941
|
+
curl: ws,
|
|
1942
|
+
guzzle: Ss,
|
|
1943
|
+
http1: Ts,
|
|
1944
|
+
http2: Os
|
|
1945
1945
|
}
|
|
1946
|
-
},
|
|
1946
|
+
}, Wn = (t) => ({ method: r, headersObj: a, cookies: i, uriObj: o, fullUrl: n, postData: s, allHeaders: l }) => {
|
|
1947
1947
|
const { push: c, join: f } = new N();
|
|
1948
1948
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
|
|
1949
1949
|
return "Method not supported";
|
|
1950
1950
|
const d = [], h = Object.keys(a);
|
|
1951
1951
|
return h.length && (c("$headers=@{}"), h.forEach((m) => {
|
|
1952
|
-
m !== "connection" && c(`$headers.Add("${m}", "${
|
|
1952
|
+
m !== "connection" && c(`$headers.Add("${m}", "${We(a[m], { escapeChar: "`" })}")`);
|
|
1953
1953
|
}), d.push("-Headers $headers")), i.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), i.forEach((m) => {
|
|
1954
1954
|
c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${m.name}'`), c(`$cookie.Value = '${m.value}'`), c(`$cookie.Domain = '${o.host}'`), c("$session.Cookies.Add($cookie)");
|
|
1955
1955
|
}), d.push("-WebSession $session")), s.text && (d.push(
|
|
1956
|
-
`-ContentType '${
|
|
1956
|
+
`-ContentType '${We(fe(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1957
1957
|
), d.push(`-Body '${s.text}'`)), c(`$response = ${t} -Uri '${n}' -Method ${r} ${d.join(" ")}`.trim()), f();
|
|
1958
|
-
},
|
|
1958
|
+
}, Ps = {
|
|
1959
1959
|
info: {
|
|
1960
1960
|
key: "restmethod",
|
|
1961
1961
|
title: "Invoke-RestMethod",
|
|
@@ -1963,8 +1963,8 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1963
1963
|
description: "Powershell Invoke-RestMethod client",
|
|
1964
1964
|
extname: ".ps1"
|
|
1965
1965
|
},
|
|
1966
|
-
convert:
|
|
1967
|
-
},
|
|
1966
|
+
convert: Wn("Invoke-RestMethod")
|
|
1967
|
+
}, Ns = {
|
|
1968
1968
|
info: {
|
|
1969
1969
|
key: "webrequest",
|
|
1970
1970
|
title: "Invoke-WebRequest",
|
|
@@ -1972,16 +1972,16 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
1972
1972
|
description: "Powershell Invoke-WebRequest client",
|
|
1973
1973
|
extname: ".ps1"
|
|
1974
1974
|
},
|
|
1975
|
-
convert:
|
|
1976
|
-
},
|
|
1975
|
+
convert: Wn("Invoke-WebRequest")
|
|
1976
|
+
}, Es = {
|
|
1977
1977
|
info: {
|
|
1978
1978
|
key: "powershell",
|
|
1979
1979
|
title: "Powershell",
|
|
1980
1980
|
default: "webrequest"
|
|
1981
1981
|
},
|
|
1982
1982
|
clientsById: {
|
|
1983
|
-
webrequest:
|
|
1984
|
-
restmethod:
|
|
1983
|
+
webrequest: Ns,
|
|
1984
|
+
restmethod: Ps
|
|
1985
1985
|
}
|
|
1986
1986
|
};
|
|
1987
1987
|
function Ur(t, e, r, a, i) {
|
|
@@ -2013,7 +2013,7 @@ var ke = (t, e, r) => {
|
|
|
2013
2013
|
default:
|
|
2014
2014
|
return t == null ? "" : `"${t.toString().replace(/"/g, '\\"')}"`;
|
|
2015
2015
|
}
|
|
2016
|
-
},
|
|
2016
|
+
}, ks = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Rs = {
|
|
2017
2017
|
info: {
|
|
2018
2018
|
key: "requests",
|
|
2019
2019
|
title: "Requests",
|
|
@@ -2076,10 +2076,10 @@ var ke = (t, e, r) => {
|
|
|
2076
2076
|
n(g !== v ? `"${b}": "${J(f[b])}",` : `"${b}": "${J(f[b])}"`, 1), g += 1;
|
|
2077
2077
|
}), n("}"), s();
|
|
2078
2078
|
}
|
|
2079
|
-
let x =
|
|
2079
|
+
let x = ks.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
2080
2080
|
return m && (y ? x += ", json=payload" : x += ", data=payload"), h && (x += ", files=files"), v > 0 && (x += ", headers=headers"), x += ")", n(x), s(), n("print(response.text)"), l();
|
|
2081
2081
|
}
|
|
2082
|
-
},
|
|
2082
|
+
}, As = {
|
|
2083
2083
|
info: {
|
|
2084
2084
|
key: "python",
|
|
2085
2085
|
title: "Python",
|
|
@@ -2087,9 +2087,9 @@ var ke = (t, e, r) => {
|
|
|
2087
2087
|
cli: "python3 %s"
|
|
2088
2088
|
},
|
|
2089
2089
|
clientsById: {
|
|
2090
|
-
requests:
|
|
2090
|
+
requests: Rs
|
|
2091
2091
|
}
|
|
2092
|
-
},
|
|
2092
|
+
}, qs = {
|
|
2093
2093
|
info: {
|
|
2094
2094
|
key: "httr",
|
|
2095
2095
|
title: "httr",
|
|
@@ -2128,16 +2128,16 @@ var ke = (t, e, r) => {
|
|
|
2128
2128
|
const S = [g, v, y, m].filter((j) => !!j).join(", ");
|
|
2129
2129
|
return S && (b += `, ${S}`), (a.text || a.jsonObj || a.params) && (b += ", encode = encode"), b += ")", n(b), s(), n('content(response, "text")'), l();
|
|
2130
2130
|
}
|
|
2131
|
-
},
|
|
2131
|
+
}, Is = {
|
|
2132
2132
|
info: {
|
|
2133
2133
|
key: "r",
|
|
2134
2134
|
title: "R",
|
|
2135
2135
|
default: "httr"
|
|
2136
2136
|
},
|
|
2137
2137
|
clientsById: {
|
|
2138
|
-
httr:
|
|
2138
|
+
httr: qs
|
|
2139
2139
|
}
|
|
2140
|
-
},
|
|
2140
|
+
}, _s = {
|
|
2141
2141
|
info: {
|
|
2142
2142
|
key: "native",
|
|
2143
2143
|
title: "net::http",
|
|
@@ -2168,16 +2168,16 @@ var ke = (t, e, r) => {
|
|
|
2168
2168
|
o(`request["${d}"] = '${Je(i[d])}'`);
|
|
2169
2169
|
}), a.text && o(`request.body = ${JSON.stringify(a.text)}`), n(), o("response = http.request(request)"), o("puts response.read_body"), s();
|
|
2170
2170
|
}
|
|
2171
|
-
},
|
|
2171
|
+
}, Fs = {
|
|
2172
2172
|
info: {
|
|
2173
2173
|
key: "ruby",
|
|
2174
2174
|
title: "Ruby",
|
|
2175
2175
|
default: "native"
|
|
2176
2176
|
},
|
|
2177
2177
|
clientsById: {
|
|
2178
|
-
native:
|
|
2178
|
+
native: _s
|
|
2179
2179
|
}
|
|
2180
|
-
}, G = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`,
|
|
2180
|
+
}, G = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`, Ls = (t) => t.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Us = {
|
|
2181
2181
|
"http1.0": "0",
|
|
2182
2182
|
"url ": "",
|
|
2183
2183
|
cookie: "b",
|
|
@@ -2187,13 +2187,13 @@ var ke = (t, e, r) => {
|
|
|
2187
2187
|
header: "H",
|
|
2188
2188
|
insecure: "k",
|
|
2189
2189
|
request: "X"
|
|
2190
|
-
},
|
|
2190
|
+
}, Ms = (t) => (e) => {
|
|
2191
2191
|
if (t) {
|
|
2192
|
-
const r =
|
|
2192
|
+
const r = Us[e];
|
|
2193
2193
|
return r ? `-${r}` : "";
|
|
2194
2194
|
}
|
|
2195
2195
|
return `--${e}`;
|
|
2196
|
-
},
|
|
2196
|
+
}, Hs = {
|
|
2197
2197
|
info: {
|
|
2198
2198
|
key: "curl",
|
|
2199
2199
|
title: "cURL",
|
|
@@ -2207,7 +2207,7 @@ var ke = (t, e, r) => {
|
|
|
2207
2207
|
...typeof s == "string" ? { indent: s } : {},
|
|
2208
2208
|
join: s !== !1 ? ` \\
|
|
2209
2209
|
${s}` : " "
|
|
2210
|
-
}), m =
|
|
2210
|
+
}), m = Ms(l);
|
|
2211
2211
|
let y = G(t);
|
|
2212
2212
|
if (d(`curl ${m("request")} ${e}`), f && (y = unescape(y), d(m("globoff"))), d(`${m("url ")}${y}`), r === "HTTP/1.0" && d(m("http1.0")), fe(i, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
|
|
2213
2213
|
const x = X(a, "content-type");
|
|
@@ -2239,7 +2239,7 @@ ${s}` : " "
|
|
|
2239
2239
|
if (!o.text)
|
|
2240
2240
|
break;
|
|
2241
2241
|
let x = !1;
|
|
2242
|
-
if (
|
|
2242
|
+
if (Mo(o.mimeType) && o.text.length > 20)
|
|
2243
2243
|
try {
|
|
2244
2244
|
const g = JSON.parse(o.text);
|
|
2245
2245
|
x = !0, o.text.indexOf("'") > 0 ? d(
|
|
@@ -2261,7 +2261,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
2261
2261
|
}
|
|
2262
2262
|
return h();
|
|
2263
2263
|
}
|
|
2264
|
-
},
|
|
2264
|
+
}, Bs = {
|
|
2265
2265
|
info: {
|
|
2266
2266
|
key: "httpie",
|
|
2267
2267
|
title: "HTTPie",
|
|
@@ -2310,7 +2310,7 @@ ${s.indent}` : " "
|
|
|
2310
2310
|
}
|
|
2311
2311
|
return c();
|
|
2312
2312
|
}
|
|
2313
|
-
},
|
|
2313
|
+
}, Ds = {
|
|
2314
2314
|
info: {
|
|
2315
2315
|
key: "wget",
|
|
2316
2316
|
title: "Wget",
|
|
@@ -2332,9 +2332,9 @@ ${o.indent}` : " "
|
|
|
2332
2332
|
return o.verbose ? n(`wget ${o.short ? "-v" : "--verbose"}`) : n(`wget ${o.short ? "-q" : "--quiet"}`), n(`--method ${G(t)}`), Object.keys(r).forEach((l) => {
|
|
2333
2333
|
const c = `${l}: ${r[l]}`;
|
|
2334
2334
|
n(`--header ${G(c)}`);
|
|
2335
|
-
}), e.text && n(`--body-data ${
|
|
2335
|
+
}), e.text && n(`--body-data ${Ls(G(e.text))}`), n(o.short ? "-O" : "--output-document"), n(`- ${G(a)}`), s();
|
|
2336
2336
|
}
|
|
2337
|
-
},
|
|
2337
|
+
}, zs = {
|
|
2338
2338
|
info: {
|
|
2339
2339
|
key: "shell",
|
|
2340
2340
|
title: "Shell",
|
|
@@ -2342,9 +2342,9 @@ ${o.indent}` : " "
|
|
|
2342
2342
|
cli: "%s"
|
|
2343
2343
|
},
|
|
2344
2344
|
clientsById: {
|
|
2345
|
-
curl:
|
|
2346
|
-
httpie:
|
|
2347
|
-
wget:
|
|
2345
|
+
curl: Hs,
|
|
2346
|
+
httpie: Bs,
|
|
2347
|
+
wget: Ds
|
|
2348
2348
|
}
|
|
2349
2349
|
}, Mr = (t, e) => e.repeat(t), Hr = (t, e, r, a) => {
|
|
2350
2350
|
const i = Mr(a, r), o = Mr(a - 1, r), n = e ? `,
|
|
@@ -2379,7 +2379,7 @@ ${o}]` : `[${t.join(n)}]`;
|
|
|
2379
2379
|
default:
|
|
2380
2380
|
return t == null ? "nil" : `"${t.toString().replace(/"/g, '\\"')}"`;
|
|
2381
2381
|
}
|
|
2382
|
-
},
|
|
2382
|
+
}, Ws = {
|
|
2383
2383
|
info: {
|
|
2384
2384
|
key: "urlsession",
|
|
2385
2385
|
title: "URLSession",
|
|
@@ -2430,35 +2430,35 @@ ${o}]` : `[${t.join(n)}]`;
|
|
|
2430
2430
|
}
|
|
2431
2431
|
}), s("]"), s("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), s("var request = URLRequest(url: components.url!)")), s(`request.httpMethod = "${i}"`), s(`request.timeoutInterval = ${n.timeout}`), Object.keys(t).length && s(`request.allHTTPHeaderFields = ${ht(t, n)}`), f && s("request.httpBody = postData"), l(), s("let (data, _) = try await URLSession.shared.data(for: request)"), s("print(String(decoding: data, as: UTF8.self))"), c();
|
|
2432
2432
|
}
|
|
2433
|
-
},
|
|
2433
|
+
}, Js = {
|
|
2434
2434
|
info: {
|
|
2435
2435
|
key: "swift",
|
|
2436
2436
|
title: "Swift",
|
|
2437
2437
|
default: "urlsession"
|
|
2438
2438
|
},
|
|
2439
2439
|
clientsById: {
|
|
2440
|
-
urlsession:
|
|
2441
|
-
}
|
|
2442
|
-
},
|
|
2443
|
-
c:
|
|
2444
|
-
clojure:
|
|
2445
|
-
csharp:
|
|
2446
|
-
go:
|
|
2447
|
-
http:
|
|
2448
|
-
java:
|
|
2449
|
-
javascript:
|
|
2450
|
-
json:
|
|
2451
|
-
kotlin:
|
|
2452
|
-
node:
|
|
2453
|
-
objc:
|
|
2454
|
-
ocaml:
|
|
2455
|
-
php:
|
|
2456
|
-
powershell:
|
|
2457
|
-
python:
|
|
2458
|
-
r:
|
|
2459
|
-
ruby:
|
|
2460
|
-
shell:
|
|
2461
|
-
swift:
|
|
2440
|
+
urlsession: Ws
|
|
2441
|
+
}
|
|
2442
|
+
}, Vs = {
|
|
2443
|
+
c: Uo,
|
|
2444
|
+
clojure: Do,
|
|
2445
|
+
csharp: Go,
|
|
2446
|
+
go: Qo,
|
|
2447
|
+
http: Xo,
|
|
2448
|
+
java: ns,
|
|
2449
|
+
javascript: ls,
|
|
2450
|
+
json: us,
|
|
2451
|
+
kotlin: ds,
|
|
2452
|
+
node: vs,
|
|
2453
|
+
objc: xs,
|
|
2454
|
+
ocaml: js,
|
|
2455
|
+
php: Cs,
|
|
2456
|
+
powershell: Es,
|
|
2457
|
+
python: As,
|
|
2458
|
+
r: Is,
|
|
2459
|
+
ruby: Fs,
|
|
2460
|
+
shell: zs,
|
|
2461
|
+
swift: Js
|
|
2462
2462
|
}, mt = { exports: {} };
|
|
2463
2463
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2464
2464
|
mt.exports;
|
|
@@ -2475,25 +2475,25 @@ mt.exports;
|
|
|
2475
2475
|
throw new RangeError(b[$]);
|
|
2476
2476
|
}
|
|
2477
2477
|
function A($, C) {
|
|
2478
|
-
for (var
|
|
2479
|
-
|
|
2480
|
-
return
|
|
2478
|
+
for (var R = $.length, F = []; R--; )
|
|
2479
|
+
F[R] = C($[R]);
|
|
2480
|
+
return F;
|
|
2481
2481
|
}
|
|
2482
2482
|
function _($, C) {
|
|
2483
|
-
var
|
|
2484
|
-
|
|
2485
|
-
var
|
|
2486
|
-
return
|
|
2483
|
+
var R = $.split("@"), F = "";
|
|
2484
|
+
R.length > 1 && (F = R[0] + "@", $ = R[1]), $ = $.replace(g, ".");
|
|
2485
|
+
var L = $.split("."), ee = A(L, C).join(".");
|
|
2486
|
+
return F + ee;
|
|
2487
2487
|
}
|
|
2488
2488
|
function D($) {
|
|
2489
|
-
for (var C = [],
|
|
2490
|
-
|
|
2489
|
+
for (var C = [], R = 0, F = $.length, L, ee; R < F; )
|
|
2490
|
+
L = $.charCodeAt(R++), L >= 55296 && L <= 56319 && R < F ? (ee = $.charCodeAt(R++), (ee & 64512) == 56320 ? C.push(((L & 1023) << 10) + (ee & 1023) + 65536) : (C.push(L), R--)) : C.push(L);
|
|
2491
2491
|
return C;
|
|
2492
2492
|
}
|
|
2493
2493
|
function Q($) {
|
|
2494
2494
|
return A($, function(C) {
|
|
2495
|
-
var
|
|
2496
|
-
return C > 65535 && (C -= 65536,
|
|
2495
|
+
var R = "";
|
|
2496
|
+
return C > 65535 && (C -= 65536, R += T(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), R += T(C), R;
|
|
2497
2497
|
}).join("");
|
|
2498
2498
|
}
|
|
2499
2499
|
function I($) {
|
|
@@ -2502,39 +2502,39 @@ mt.exports;
|
|
|
2502
2502
|
function M($, C) {
|
|
2503
2503
|
return $ + 22 + 75 * ($ < 26) - ((C != 0) << 5);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2506
|
-
var
|
|
2507
|
-
for ($ =
|
|
2505
|
+
function z($, C, R) {
|
|
2506
|
+
var F = 0;
|
|
2507
|
+
for ($ = R ? j($ / d) : $ >> 1, $ += j($ / C); $ > S * f >> 1; F += l)
|
|
2508
2508
|
$ = j($ / S);
|
|
2509
|
-
return j(
|
|
2509
|
+
return j(F + (S + 1) * $ / ($ + p));
|
|
2510
2510
|
}
|
|
2511
2511
|
function H($) {
|
|
2512
|
-
var C = [],
|
|
2512
|
+
var C = [], R = $.length, F, L = 0, ee = m, V = h, te, ne, ie, de, Y, re, ae, me, xe;
|
|
2513
2513
|
for (te = $.lastIndexOf(y), te < 0 && (te = 0), ne = 0; ne < te; ++ne)
|
|
2514
2514
|
$.charCodeAt(ne) >= 128 && E("not-basic"), C.push($.charCodeAt(ne));
|
|
2515
|
-
for (ie = te > 0 ? te + 1 : 0; ie <
|
|
2516
|
-
for (de =
|
|
2515
|
+
for (ie = te > 0 ? te + 1 : 0; ie < R; ) {
|
|
2516
|
+
for (de = L, Y = 1, re = l; ie >= R && E("invalid-input"), ae = I($.charCodeAt(ie++)), (ae >= l || ae > j((s - L) / Y)) && E("overflow"), L += ae * Y, me = re <= V ? c : re >= V + f ? f : re - V, !(ae < me); re += l)
|
|
2517
2517
|
xe = l - me, Y > j(s / xe) && E("overflow"), Y *= xe;
|
|
2518
|
-
|
|
2518
|
+
F = C.length + 1, V = z(L - de, F, de == 0), j(L / F) > s - ee && E("overflow"), ee += j(L / F), L %= F, C.splice(L++, 0, ee);
|
|
2519
2519
|
}
|
|
2520
2520
|
return Q(C);
|
|
2521
2521
|
}
|
|
2522
2522
|
function he($) {
|
|
2523
|
-
var C,
|
|
2524
|
-
for ($ = D($), ae = $.length, C = m,
|
|
2523
|
+
var C, R, F, L, ee, V, te, ne, ie, de, Y, re = [], ae, me, xe, Tt;
|
|
2524
|
+
for ($ = D($), ae = $.length, C = m, R = 0, ee = h, V = 0; V < ae; ++V)
|
|
2525
2525
|
Y = $[V], Y < 128 && re.push(T(Y));
|
|
2526
|
-
for (
|
|
2526
|
+
for (F = L = re.length, L && re.push(y); F < ae; ) {
|
|
2527
2527
|
for (te = s, V = 0; V < ae; ++V)
|
|
2528
2528
|
Y = $[V], Y >= C && Y < te && (te = Y);
|
|
2529
|
-
for (me =
|
|
2530
|
-
if (Y = $[V], Y < C && ++
|
|
2531
|
-
for (ne =
|
|
2529
|
+
for (me = F + 1, te - C > j((s - R) / me) && E("overflow"), R += (te - C) * me, C = te, V = 0; V < ae; ++V)
|
|
2530
|
+
if (Y = $[V], Y < C && ++R > s && E("overflow"), Y == C) {
|
|
2531
|
+
for (ne = R, ie = l; de = ie <= ee ? c : ie >= ee + f ? f : ie - ee, !(ne < de); ie += l)
|
|
2532
2532
|
Tt = ne - de, xe = l - de, re.push(
|
|
2533
2533
|
T(M(de + Tt % xe, 0))
|
|
2534
2534
|
), ne = j(Tt / xe);
|
|
2535
|
-
re.push(T(M(ne, 0))), ee =
|
|
2535
|
+
re.push(T(M(ne, 0))), ee = z(R, me, F == L), R = 0, ++F;
|
|
2536
2536
|
}
|
|
2537
|
-
++
|
|
2537
|
+
++R, ++C;
|
|
2538
2538
|
}
|
|
2539
2539
|
return re.join("");
|
|
2540
2540
|
}
|
|
@@ -2580,7 +2580,7 @@ mt.exports;
|
|
|
2580
2580
|
r.punycode = n;
|
|
2581
2581
|
})(ot);
|
|
2582
2582
|
})(mt, mt.exports);
|
|
2583
|
-
var
|
|
2583
|
+
var Gs = mt.exports, Ks = Error, Qs = EvalError, Ys = RangeError, Xs = ReferenceError, Jn = SyntaxError, Ye = TypeError, Zs = URIError, ei = function() {
|
|
2584
2584
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2585
2585
|
return !1;
|
|
2586
2586
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2603,52 +2603,52 @@ var Js = mt.exports, Vs = Error, Gs = EvalError, Ks = RangeError, Qs = Reference
|
|
|
2603
2603
|
return !1;
|
|
2604
2604
|
}
|
|
2605
2605
|
return !0;
|
|
2606
|
-
}, Dr = typeof Symbol < "u" && Symbol,
|
|
2607
|
-
return typeof Dr != "function" || typeof Symbol != "function" || typeof Dr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
2606
|
+
}, Dr = typeof Symbol < "u" && Symbol, ti = ei, ri = function() {
|
|
2607
|
+
return typeof Dr != "function" || typeof Symbol != "function" || typeof Dr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ti();
|
|
2608
2608
|
}, Et = {
|
|
2609
2609
|
__proto__: null,
|
|
2610
2610
|
foo: {}
|
|
2611
|
-
},
|
|
2612
|
-
return { __proto__: Et }.foo === Et.foo && !(Et instanceof
|
|
2613
|
-
},
|
|
2611
|
+
}, ni = Object, ai = function() {
|
|
2612
|
+
return { __proto__: Et }.foo === Et.foo && !(Et instanceof ni);
|
|
2613
|
+
}, oi = "Function.prototype.bind called on incompatible ", si = Object.prototype.toString, ii = Math.max, li = "[object Function]", zr = function(e, r) {
|
|
2614
2614
|
for (var a = [], i = 0; i < e.length; i += 1)
|
|
2615
2615
|
a[i] = e[i];
|
|
2616
2616
|
for (var o = 0; o < r.length; o += 1)
|
|
2617
2617
|
a[o + e.length] = r[o];
|
|
2618
2618
|
return a;
|
|
2619
|
-
},
|
|
2619
|
+
}, ci = function(e, r) {
|
|
2620
2620
|
for (var a = [], i = r, o = 0; i < e.length; i += 1, o += 1)
|
|
2621
2621
|
a[o] = e[i];
|
|
2622
2622
|
return a;
|
|
2623
|
-
},
|
|
2623
|
+
}, ui = function(t, e) {
|
|
2624
2624
|
for (var r = "", a = 0; a < t.length; a += 1)
|
|
2625
2625
|
r += t[a], a + 1 < t.length && (r += e);
|
|
2626
2626
|
return r;
|
|
2627
|
-
},
|
|
2627
|
+
}, fi = function(e) {
|
|
2628
2628
|
var r = this;
|
|
2629
|
-
if (typeof r != "function" ||
|
|
2630
|
-
throw new TypeError(
|
|
2631
|
-
for (var a =
|
|
2629
|
+
if (typeof r != "function" || si.apply(r) !== li)
|
|
2630
|
+
throw new TypeError(oi + r);
|
|
2631
|
+
for (var a = ci(arguments, 1), i, o = function() {
|
|
2632
2632
|
if (this instanceof i) {
|
|
2633
2633
|
var f = r.apply(
|
|
2634
2634
|
this,
|
|
2635
|
-
|
|
2635
|
+
zr(a, arguments)
|
|
2636
2636
|
);
|
|
2637
2637
|
return Object(f) === f ? f : this;
|
|
2638
2638
|
}
|
|
2639
2639
|
return r.apply(
|
|
2640
2640
|
e,
|
|
2641
|
-
|
|
2641
|
+
zr(a, arguments)
|
|
2642
2642
|
);
|
|
2643
|
-
}, n =
|
|
2643
|
+
}, n = ii(0, r.length - a.length), s = [], l = 0; l < n; l++)
|
|
2644
2644
|
s[l] = "$" + l;
|
|
2645
|
-
if (i = Function("binder", "return function (" +
|
|
2645
|
+
if (i = Function("binder", "return function (" + ui(s, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
2646
2646
|
var c = function() {
|
|
2647
2647
|
};
|
|
2648
2648
|
c.prototype = r.prototype, i.prototype = new c(), c.prototype = null;
|
|
2649
2649
|
}
|
|
2650
2650
|
return i;
|
|
2651
|
-
},
|
|
2651
|
+
}, di = fi, ur = Function.prototype.bind || di, pi = Function.prototype.call, hi = Object.prototype.hasOwnProperty, mi = ur, yi = mi.call(pi, hi), P, gi = Ks, vi = Qs, bi = Ys, xi = Xs, Ie = Jn, Re = Ye, $i = Zs, Vn = Function, kt = function(t) {
|
|
2652
2652
|
try {
|
|
2653
2653
|
return Vn('"use strict"; return (' + t + ").constructor;")();
|
|
2654
2654
|
} catch {
|
|
@@ -2662,7 +2662,7 @@ if (Te)
|
|
|
2662
2662
|
}
|
|
2663
2663
|
var Rt = function() {
|
|
2664
2664
|
throw new Re();
|
|
2665
|
-
},
|
|
2665
|
+
}, ji = Te ? function() {
|
|
2666
2666
|
try {
|
|
2667
2667
|
return arguments.callee, Rt;
|
|
2668
2668
|
} catch {
|
|
@@ -2672,14 +2672,14 @@ var Rt = function() {
|
|
|
2672
2672
|
return Rt;
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
|
-
}() : Rt, Pe =
|
|
2675
|
+
}() : Rt, Pe = ri(), wi = ai(), W = Object.getPrototypeOf || (wi ? function(t) {
|
|
2676
2676
|
return t.__proto__;
|
|
2677
|
-
} : null), Ee = {},
|
|
2677
|
+
} : null), Ee = {}, Si = typeof Uint8Array > "u" || !W ? P : W(Uint8Array), Oe = {
|
|
2678
2678
|
__proto__: null,
|
|
2679
2679
|
"%AggregateError%": typeof AggregateError > "u" ? P : AggregateError,
|
|
2680
2680
|
"%Array%": Array,
|
|
2681
2681
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? P : ArrayBuffer,
|
|
2682
|
-
"%ArrayIteratorPrototype%": Pe &&
|
|
2682
|
+
"%ArrayIteratorPrototype%": Pe && W ? W([][Symbol.iterator]()) : P,
|
|
2683
2683
|
"%AsyncFromSyncIteratorPrototype%": P,
|
|
2684
2684
|
"%AsyncFunction%": Ee,
|
|
2685
2685
|
"%AsyncGenerator%": Ee,
|
|
@@ -2696,10 +2696,10 @@ var Rt = function() {
|
|
|
2696
2696
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2697
2697
|
"%encodeURI%": encodeURI,
|
|
2698
2698
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2699
|
-
"%Error%":
|
|
2699
|
+
"%Error%": gi,
|
|
2700
2700
|
"%eval%": eval,
|
|
2701
2701
|
// eslint-disable-line no-eval
|
|
2702
|
-
"%EvalError%":
|
|
2702
|
+
"%EvalError%": vi,
|
|
2703
2703
|
"%Float32Array%": typeof Float32Array > "u" ? P : Float32Array,
|
|
2704
2704
|
"%Float64Array%": typeof Float64Array > "u" ? P : Float64Array,
|
|
2705
2705
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? P : FinalizationRegistry,
|
|
@@ -2710,10 +2710,10 @@ var Rt = function() {
|
|
|
2710
2710
|
"%Int32Array%": typeof Int32Array > "u" ? P : Int32Array,
|
|
2711
2711
|
"%isFinite%": isFinite,
|
|
2712
2712
|
"%isNaN%": isNaN,
|
|
2713
|
-
"%IteratorPrototype%": Pe &&
|
|
2713
|
+
"%IteratorPrototype%": Pe && W ? W(W([][Symbol.iterator]())) : P,
|
|
2714
2714
|
"%JSON%": typeof JSON == "object" ? JSON : P,
|
|
2715
2715
|
"%Map%": typeof Map > "u" ? P : Map,
|
|
2716
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !Pe || !
|
|
2716
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Pe || !W ? P : W((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2717
2717
|
"%Math%": Math,
|
|
2718
2718
|
"%Number%": Number,
|
|
2719
2719
|
"%Object%": Object,
|
|
@@ -2721,37 +2721,37 @@ var Rt = function() {
|
|
|
2721
2721
|
"%parseInt%": parseInt,
|
|
2722
2722
|
"%Promise%": typeof Promise > "u" ? P : Promise,
|
|
2723
2723
|
"%Proxy%": typeof Proxy > "u" ? P : Proxy,
|
|
2724
|
-
"%RangeError%":
|
|
2725
|
-
"%ReferenceError%":
|
|
2724
|
+
"%RangeError%": bi,
|
|
2725
|
+
"%ReferenceError%": xi,
|
|
2726
2726
|
"%Reflect%": typeof Reflect > "u" ? P : Reflect,
|
|
2727
2727
|
"%RegExp%": RegExp,
|
|
2728
2728
|
"%Set%": typeof Set > "u" ? P : Set,
|
|
2729
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !Pe || !
|
|
2729
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Pe || !W ? P : W((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2730
2730
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? P : SharedArrayBuffer,
|
|
2731
2731
|
"%String%": String,
|
|
2732
|
-
"%StringIteratorPrototype%": Pe &&
|
|
2732
|
+
"%StringIteratorPrototype%": Pe && W ? W(""[Symbol.iterator]()) : P,
|
|
2733
2733
|
"%Symbol%": Pe ? Symbol : P,
|
|
2734
2734
|
"%SyntaxError%": Ie,
|
|
2735
|
-
"%ThrowTypeError%":
|
|
2736
|
-
"%TypedArray%":
|
|
2735
|
+
"%ThrowTypeError%": ji,
|
|
2736
|
+
"%TypedArray%": Si,
|
|
2737
2737
|
"%TypeError%": Re,
|
|
2738
2738
|
"%Uint8Array%": typeof Uint8Array > "u" ? P : Uint8Array,
|
|
2739
2739
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? P : Uint8ClampedArray,
|
|
2740
2740
|
"%Uint16Array%": typeof Uint16Array > "u" ? P : Uint16Array,
|
|
2741
2741
|
"%Uint32Array%": typeof Uint32Array > "u" ? P : Uint32Array,
|
|
2742
|
-
"%URIError%":
|
|
2742
|
+
"%URIError%": $i,
|
|
2743
2743
|
"%WeakMap%": typeof WeakMap > "u" ? P : WeakMap,
|
|
2744
2744
|
"%WeakRef%": typeof WeakRef > "u" ? P : WeakRef,
|
|
2745
2745
|
"%WeakSet%": typeof WeakSet > "u" ? P : WeakSet
|
|
2746
2746
|
};
|
|
2747
|
-
if (
|
|
2747
|
+
if (W)
|
|
2748
2748
|
try {
|
|
2749
2749
|
null.error;
|
|
2750
2750
|
} catch (t) {
|
|
2751
|
-
var
|
|
2752
|
-
Oe["%Error.prototype%"] =
|
|
2751
|
+
var Ti = W(W(t));
|
|
2752
|
+
Oe["%Error.prototype%"] = Ti;
|
|
2753
2753
|
}
|
|
2754
|
-
var
|
|
2754
|
+
var Oi = function t(e) {
|
|
2755
2755
|
var r;
|
|
2756
2756
|
if (e === "%AsyncFunction%")
|
|
2757
2757
|
r = kt("async function () {}");
|
|
@@ -2764,10 +2764,10 @@ var Si = function t(e) {
|
|
|
2764
2764
|
a && (r = a.prototype);
|
|
2765
2765
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
2766
2766
|
var i = t("%AsyncGenerator%");
|
|
2767
|
-
i &&
|
|
2767
|
+
i && W && (r = W(i.prototype));
|
|
2768
2768
|
}
|
|
2769
2769
|
return Oe[e] = r, r;
|
|
2770
|
-
},
|
|
2770
|
+
}, Wr = {
|
|
2771
2771
|
__proto__: null,
|
|
2772
2772
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2773
2773
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -2820,21 +2820,21 @@ var Si = function t(e) {
|
|
|
2820
2820
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2821
2821
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2822
2822
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2823
|
-
}, Xe = ur, yt =
|
|
2823
|
+
}, Xe = ur, yt = yi, Ci = Xe.call(Function.call, Array.prototype.concat), Pi = Xe.call(Function.apply, Array.prototype.splice), Jr = Xe.call(Function.call, String.prototype.replace), gt = Xe.call(Function.call, String.prototype.slice), Ni = Xe.call(Function.call, RegExp.prototype.exec), Ei = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ki = /\\(\\)?/g, Ri = function(e) {
|
|
2824
2824
|
var r = gt(e, 0, 1), a = gt(e, -1);
|
|
2825
2825
|
if (r === "%" && a !== "%")
|
|
2826
2826
|
throw new Ie("invalid intrinsic syntax, expected closing `%`");
|
|
2827
2827
|
if (a === "%" && r !== "%")
|
|
2828
2828
|
throw new Ie("invalid intrinsic syntax, expected opening `%`");
|
|
2829
2829
|
var i = [];
|
|
2830
|
-
return Jr(e,
|
|
2831
|
-
i[i.length] = s ? Jr(l,
|
|
2830
|
+
return Jr(e, Ei, function(o, n, s, l) {
|
|
2831
|
+
i[i.length] = s ? Jr(l, ki, "$1") : n || o;
|
|
2832
2832
|
}), i;
|
|
2833
|
-
},
|
|
2833
|
+
}, Ai = function(e, r) {
|
|
2834
2834
|
var a = e, i;
|
|
2835
|
-
if (yt(
|
|
2835
|
+
if (yt(Wr, a) && (i = Wr[a], a = "%" + i[0] + "%"), yt(Oe, a)) {
|
|
2836
2836
|
var o = Oe[a];
|
|
2837
|
-
if (o === Ee && (o =
|
|
2837
|
+
if (o === Ee && (o = Oi(a)), typeof o > "u" && !r)
|
|
2838
2838
|
throw new Re("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2839
2839
|
return {
|
|
2840
2840
|
alias: i,
|
|
@@ -2843,15 +2843,15 @@ var Si = function t(e) {
|
|
|
2843
2843
|
};
|
|
2844
2844
|
}
|
|
2845
2845
|
throw new Ie("intrinsic " + e + " does not exist!");
|
|
2846
|
-
},
|
|
2846
|
+
}, Le = function(e, r) {
|
|
2847
2847
|
if (typeof e != "string" || e.length === 0)
|
|
2848
2848
|
throw new Re("intrinsic name must be a non-empty string");
|
|
2849
2849
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2850
2850
|
throw new Re('"allowMissing" argument must be a boolean');
|
|
2851
|
-
if (
|
|
2851
|
+
if (Ni(/^%?[^%]*%?$/, e) === null)
|
|
2852
2852
|
throw new Ie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2853
|
-
var a =
|
|
2854
|
-
c && (i = c[0],
|
|
2853
|
+
var a = Ri(e), i = a.length > 0 ? a[0] : "", o = Ai("%" + i + "%", r), n = o.name, s = o.value, l = !1, c = o.alias;
|
|
2854
|
+
c && (i = c[0], Pi(a, Ci([0, 1], c)));
|
|
2855
2855
|
for (var f = 1, p = !0; f < a.length; f += 1) {
|
|
2856
2856
|
var d = a[f], h = gt(d, 0, 1), m = gt(d, -1);
|
|
2857
2857
|
if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
|
|
@@ -2877,7 +2877,7 @@ var Si = function t(e) {
|
|
|
2877
2877
|
function fr() {
|
|
2878
2878
|
if (Vr) return At;
|
|
2879
2879
|
Vr = 1;
|
|
2880
|
-
var t =
|
|
2880
|
+
var t = Le, e = t("%Object.defineProperty%", !0) || !1;
|
|
2881
2881
|
if (e)
|
|
2882
2882
|
try {
|
|
2883
2883
|
e({}, "a", { value: 1 });
|
|
@@ -2886,14 +2886,14 @@ function fr() {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
return At = e, At;
|
|
2888
2888
|
}
|
|
2889
|
-
var
|
|
2889
|
+
var qi = Le, it = qi("%Object.getOwnPropertyDescriptor%", !0);
|
|
2890
2890
|
if (it)
|
|
2891
2891
|
try {
|
|
2892
2892
|
it([], "length");
|
|
2893
2893
|
} catch {
|
|
2894
2894
|
it = null;
|
|
2895
2895
|
}
|
|
2896
|
-
var Kn = it, Gr = fr(),
|
|
2896
|
+
var Kn = it, Gr = fr(), Ii = Jn, Ne = Ye, Kr = Kn, _i = function(e, r, a) {
|
|
2897
2897
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2898
2898
|
throw new Ne("`obj` must be an object or a function`");
|
|
2899
2899
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -2917,30 +2917,30 @@ var Kn = it, Gr = fr(), Ai = Jn, Ne = Ye, Kr = Kn, qi = function(e, r, a) {
|
|
|
2917
2917
|
else if (s || !i && !o && !n)
|
|
2918
2918
|
e[r] = a;
|
|
2919
2919
|
else
|
|
2920
|
-
throw new
|
|
2921
|
-
},
|
|
2922
|
-
return !!
|
|
2920
|
+
throw new Ii("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2921
|
+
}, Wt = fr(), Qn = function() {
|
|
2922
|
+
return !!Wt;
|
|
2923
2923
|
};
|
|
2924
2924
|
Qn.hasArrayLengthDefineBug = function() {
|
|
2925
|
-
if (!
|
|
2925
|
+
if (!Wt)
|
|
2926
2926
|
return null;
|
|
2927
2927
|
try {
|
|
2928
|
-
return
|
|
2928
|
+
return Wt([], "length", { value: 1 }).length !== 1;
|
|
2929
2929
|
} catch {
|
|
2930
2930
|
return !0;
|
|
2931
2931
|
}
|
|
2932
2932
|
};
|
|
2933
|
-
var
|
|
2933
|
+
var Fi = Qn, Li = Le, Qr = _i, Ui = Fi(), Yr = Kn, Xr = Ye, Mi = Li("%Math.floor%"), Hi = function(e, r) {
|
|
2934
2934
|
if (typeof e != "function")
|
|
2935
2935
|
throw new Xr("`fn` is not a function");
|
|
2936
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
2936
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || Mi(r) !== r)
|
|
2937
2937
|
throw new Xr("`length` must be a positive 32-bit integer");
|
|
2938
2938
|
var a = arguments.length > 2 && !!arguments[2], i = !0, o = !0;
|
|
2939
2939
|
if ("length" in e && Yr) {
|
|
2940
2940
|
var n = Yr(e, "length");
|
|
2941
2941
|
n && !n.configurable && (i = !1), n && !n.writable && (o = !1);
|
|
2942
2942
|
}
|
|
2943
|
-
return (i || o || !a) && (
|
|
2943
|
+
return (i || o || !a) && (Ui ? Qr(
|
|
2944
2944
|
/** @type {Parameters<define>[0]} */
|
|
2945
2945
|
e,
|
|
2946
2946
|
"length",
|
|
@@ -2955,7 +2955,7 @@ var Ii = Qn, _i = Fe, Qr = qi, Li = Ii(), Yr = Kn, Xr = Ye, Fi = _i("%Math.floor
|
|
|
2955
2955
|
)), e;
|
|
2956
2956
|
};
|
|
2957
2957
|
(function(t) {
|
|
2958
|
-
var e = ur, r =
|
|
2958
|
+
var e = ur, r = Le, a = Hi, i = Ye, o = r("%Function.prototype.apply%"), n = r("%Function.prototype.call%"), s = r("%Reflect.apply%", !0) || e.call(n, o), l = fr(), c = r("%Math.max%");
|
|
2959
2959
|
t.exports = function(d) {
|
|
2960
2960
|
if (typeof d != "function")
|
|
2961
2961
|
throw new i("a function is required");
|
|
@@ -2971,15 +2971,15 @@ var Ii = Qn, _i = Fe, Qr = qi, Li = Ii(), Yr = Kn, Xr = Ye, Fi = _i("%Math.floor
|
|
|
2971
2971
|
};
|
|
2972
2972
|
l ? l(t.exports, "apply", { value: f }) : t.exports.apply = f;
|
|
2973
2973
|
})(Gn);
|
|
2974
|
-
var
|
|
2974
|
+
var Bi = Gn.exports, Yn = Le, Xn = Bi, Di = Xn(Yn("String.prototype.indexOf")), zi = function(e, r) {
|
|
2975
2975
|
var a = Yn(e, !!r);
|
|
2976
|
-
return typeof a == "function" &&
|
|
2976
|
+
return typeof a == "function" && Di(e, ".prototype.") > -1 ? Xn(a) : a;
|
|
2977
2977
|
};
|
|
2978
|
-
const
|
|
2978
|
+
const Wi = {}, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2979
2979
|
__proto__: null,
|
|
2980
|
-
default:
|
|
2981
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2982
|
-
var dr = typeof Map == "function" && Map.prototype, qt = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, vt = dr && qt && typeof qt.get == "function" ? qt.get : null, Zr = dr && Map.prototype.forEach, pr = typeof Set == "function" && Set.prototype, It = Object.getOwnPropertyDescriptor && pr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, bt = pr && It && typeof It.get == "function" ? It.get : null, en = pr && Set.prototype.forEach,
|
|
2980
|
+
default: Wi
|
|
2981
|
+
}, Symbol.toStringTag, { value: "Module" })), Vi = /* @__PURE__ */ io(Ji);
|
|
2982
|
+
var dr = typeof Map == "function" && Map.prototype, qt = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, vt = dr && qt && typeof qt.get == "function" ? qt.get : null, Zr = dr && Map.prototype.forEach, pr = typeof Set == "function" && Set.prototype, It = Object.getOwnPropertyDescriptor && pr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, bt = pr && It && typeof It.get == "function" ? It.get : null, en = pr && Set.prototype.forEach, Gi = typeof WeakMap == "function" && WeakMap.prototype, Be = Gi ? WeakMap.prototype.has : null, Ki = typeof WeakSet == "function" && WeakSet.prototype, De = Ki ? WeakSet.prototype.has : null, Qi = typeof WeakRef == "function" && WeakRef.prototype, tn = Qi ? WeakRef.prototype.deref : null, Yi = Boolean.prototype.valueOf, Xi = Object.prototype.toString, Zi = Function.prototype.toString, el = String.prototype.match, hr = String.prototype.slice, ge = String.prototype.replace, tl = String.prototype.toUpperCase, rn = String.prototype.toLowerCase, Zn = RegExp.prototype.test, nn = Array.prototype.concat, ue = Array.prototype.join, rl = Array.prototype.slice, an = Math.floor, Jt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, _t = Object.getOwnPropertySymbols, Vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _e = typeof Symbol == "function" && typeof Symbol.iterator == "object", Z = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _e || !0) ? Symbol.toStringTag : null, ea = Object.prototype.propertyIsEnumerable, on = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2983
2983
|
return t.__proto__;
|
|
2984
2984
|
} : null);
|
|
2985
2985
|
function sn(t, e) {
|
|
@@ -2995,7 +2995,7 @@ function sn(t, e) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
return ge.call(e, r, "$&_");
|
|
2997
2997
|
}
|
|
2998
|
-
var Gt =
|
|
2998
|
+
var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i) {
|
|
2999
2999
|
var o = r || {};
|
|
3000
3000
|
if (ye(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
3001
3001
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -3030,13 +3030,13 @@ var Gt = zi, ln = Gt.custom, cn = ra(ln) ? ln : null, tl = function t(e, r, a, i
|
|
|
3030
3030
|
var f = typeof o.depth > "u" ? 5 : o.depth;
|
|
3031
3031
|
if (typeof a > "u" && (a = 0), a >= f && f > 0 && typeof e == "object")
|
|
3032
3032
|
return Kt(e) ? "[Array]" : "[Object]";
|
|
3033
|
-
var p =
|
|
3033
|
+
var p = $l(o, a);
|
|
3034
3034
|
if (typeof i > "u")
|
|
3035
3035
|
i = [];
|
|
3036
3036
|
else if (na(i, e) >= 0)
|
|
3037
3037
|
return "[Circular]";
|
|
3038
|
-
function d(I, M,
|
|
3039
|
-
if (M && (i =
|
|
3038
|
+
function d(I, M, z) {
|
|
3039
|
+
if (M && (i = rl.call(i), i.push(M)), z) {
|
|
3040
3040
|
var H = {
|
|
3041
3041
|
depth: o.depth
|
|
3042
3042
|
};
|
|
@@ -3045,25 +3045,25 @@ var Gt = zi, ln = Gt.custom, cn = ra(ln) ? ln : null, tl = function t(e, r, a, i
|
|
|
3045
3045
|
return t(I, o, a + 1, i);
|
|
3046
3046
|
}
|
|
3047
3047
|
if (typeof e == "function" && !un(e)) {
|
|
3048
|
-
var h =
|
|
3048
|
+
var h = dl(e), m = et(e, d);
|
|
3049
3049
|
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (m.length > 0 ? " { " + ue.call(m, ", ") + " }" : "");
|
|
3050
3050
|
}
|
|
3051
3051
|
if (ra(e)) {
|
|
3052
3052
|
var y = _e ? ge.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Vt.call(e);
|
|
3053
3053
|
return typeof e == "object" && !_e ? Me(y) : y;
|
|
3054
3054
|
}
|
|
3055
|
-
if (
|
|
3055
|
+
if (vl(e)) {
|
|
3056
3056
|
for (var v = "<" + rn.call(String(e.nodeName)), x = e.attributes || [], g = 0; g < x.length; g++)
|
|
3057
|
-
v += " " + x[g].name + "=" + ta(
|
|
3057
|
+
v += " " + x[g].name + "=" + ta(al(x[g].value), "double", o);
|
|
3058
3058
|
return v += ">", e.childNodes && e.childNodes.length && (v += "..."), v += "</" + rn.call(String(e.nodeName)) + ">", v;
|
|
3059
3059
|
}
|
|
3060
3060
|
if (Kt(e)) {
|
|
3061
3061
|
if (e.length === 0)
|
|
3062
3062
|
return "[]";
|
|
3063
3063
|
var b = et(e, d);
|
|
3064
|
-
return p && !
|
|
3064
|
+
return p && !xl(b) ? "[" + Qt(b, p) + "]" : "[ " + ue.call(b, ", ") + " ]";
|
|
3065
3065
|
}
|
|
3066
|
-
if (
|
|
3066
|
+
if (sl(e)) {
|
|
3067
3067
|
var S = et(e, d);
|
|
3068
3068
|
return !("cause" in Error.prototype) && "cause" in e && !ea.call(e, "cause") ? "{ [" + String(e) + "] " + ue.call(nn.call("[cause]: " + d(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + ue.call(S, ", ") + " }";
|
|
3069
3069
|
}
|
|
@@ -3073,37 +3073,37 @@ var Gt = zi, ln = Gt.custom, cn = ra(ln) ? ln : null, tl = function t(e, r, a, i
|
|
|
3073
3073
|
if (n !== "symbol" && typeof e.inspect == "function")
|
|
3074
3074
|
return e.inspect();
|
|
3075
3075
|
}
|
|
3076
|
-
if (
|
|
3076
|
+
if (pl(e)) {
|
|
3077
3077
|
var j = [];
|
|
3078
3078
|
return Zr && Zr.call(e, function(I, M) {
|
|
3079
3079
|
j.push(d(M, e, !0) + " => " + d(I, e));
|
|
3080
3080
|
}), fn("Map", vt.call(e), j, p);
|
|
3081
3081
|
}
|
|
3082
|
-
if (
|
|
3082
|
+
if (yl(e)) {
|
|
3083
3083
|
var T = [];
|
|
3084
3084
|
return en && en.call(e, function(I) {
|
|
3085
3085
|
T.push(d(I, e));
|
|
3086
3086
|
}), fn("Set", bt.call(e), T, p);
|
|
3087
3087
|
}
|
|
3088
|
-
if (
|
|
3089
|
-
return
|
|
3088
|
+
if (hl(e))
|
|
3089
|
+
return Ft("WeakMap");
|
|
3090
|
+
if (gl(e))
|
|
3091
|
+
return Ft("WeakSet");
|
|
3090
3092
|
if (ml(e))
|
|
3091
|
-
return
|
|
3092
|
-
if (pl(e))
|
|
3093
|
-
return Lt("WeakRef");
|
|
3094
|
-
if (sl(e))
|
|
3095
|
-
return Me(d(Number(e)));
|
|
3093
|
+
return Ft("WeakRef");
|
|
3096
3094
|
if (ll(e))
|
|
3095
|
+
return Me(d(Number(e)));
|
|
3096
|
+
if (ul(e))
|
|
3097
3097
|
return Me(d(Jt.call(e)));
|
|
3098
|
+
if (cl(e))
|
|
3099
|
+
return Me(Yi.call(e));
|
|
3098
3100
|
if (il(e))
|
|
3099
|
-
return Me(Ki.call(e));
|
|
3100
|
-
if (ol(e))
|
|
3101
3101
|
return Me(d(String(e)));
|
|
3102
3102
|
if (typeof window < "u" && e === window)
|
|
3103
3103
|
return "{ [object Window] }";
|
|
3104
3104
|
if (e === ot)
|
|
3105
3105
|
return "{ [object globalThis] }";
|
|
3106
|
-
if (!
|
|
3106
|
+
if (!ol(e) && !un(e)) {
|
|
3107
3107
|
var w = et(e, d), E = on ? on(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", _ = !E && Z && Object(e) === e && Z in e ? hr.call(be(e), 8, -1) : A ? "Object" : "", D = E || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", Q = D + (_ || A ? "[" + ue.call(nn.call([], _ || [], A || []), ": ") + "] " : "");
|
|
3108
3108
|
return w.length === 0 ? Q + "{}" : p ? Q + "{" + Qt(w, p) + "}" : Q + "{ " + ue.call(w, ", ") + " }";
|
|
3109
3109
|
}
|
|
@@ -3113,28 +3113,28 @@ function ta(t, e, r) {
|
|
|
3113
3113
|
var a = (r.quoteStyle || e) === "double" ? '"' : "'";
|
|
3114
3114
|
return a + t + a;
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function al(t) {
|
|
3117
3117
|
return ge.call(String(t), /"/g, """);
|
|
3118
3118
|
}
|
|
3119
3119
|
function Kt(t) {
|
|
3120
3120
|
return be(t) === "[object Array]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function ol(t) {
|
|
3123
3123
|
return be(t) === "[object Date]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3124
3124
|
}
|
|
3125
3125
|
function un(t) {
|
|
3126
3126
|
return be(t) === "[object RegExp]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function sl(t) {
|
|
3129
3129
|
return be(t) === "[object Error]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3130
3130
|
}
|
|
3131
|
-
function
|
|
3131
|
+
function il(t) {
|
|
3132
3132
|
return be(t) === "[object String]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3134
|
+
function ll(t) {
|
|
3135
3135
|
return be(t) === "[object Number]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3137
|
+
function cl(t) {
|
|
3138
3138
|
return be(t) === "[object Boolean]" && (!Z || !(typeof t == "object" && Z in t));
|
|
3139
3139
|
}
|
|
3140
3140
|
function ra(t) {
|
|
@@ -3150,7 +3150,7 @@ function ra(t) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
return !1;
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function ul(t) {
|
|
3154
3154
|
if (!t || typeof t != "object" || !Jt)
|
|
3155
3155
|
return !1;
|
|
3156
3156
|
try {
|
|
@@ -3159,19 +3159,19 @@ function ll(t) {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
return !1;
|
|
3161
3161
|
}
|
|
3162
|
-
var
|
|
3162
|
+
var fl = Object.prototype.hasOwnProperty || function(t) {
|
|
3163
3163
|
return t in this;
|
|
3164
3164
|
};
|
|
3165
3165
|
function ye(t, e) {
|
|
3166
|
-
return
|
|
3166
|
+
return fl.call(t, e);
|
|
3167
3167
|
}
|
|
3168
3168
|
function be(t) {
|
|
3169
|
-
return
|
|
3169
|
+
return Xi.call(t);
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3171
|
+
function dl(t) {
|
|
3172
3172
|
if (t.name)
|
|
3173
3173
|
return t.name;
|
|
3174
|
-
var e =
|
|
3174
|
+
var e = el.call(Zi.call(t), /^function\s*([\w$]+)/);
|
|
3175
3175
|
return e ? e[1] : null;
|
|
3176
3176
|
}
|
|
3177
3177
|
function na(t, e) {
|
|
@@ -3182,7 +3182,7 @@ function na(t, e) {
|
|
|
3182
3182
|
return r;
|
|
3183
3183
|
return -1;
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3185
|
+
function pl(t) {
|
|
3186
3186
|
if (!vt || !t || typeof t != "object")
|
|
3187
3187
|
return !1;
|
|
3188
3188
|
try {
|
|
@@ -3197,7 +3197,7 @@ function fl(t) {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
return !1;
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function hl(t) {
|
|
3201
3201
|
if (!Be || !t || typeof t != "object")
|
|
3202
3202
|
return !1;
|
|
3203
3203
|
try {
|
|
@@ -3212,7 +3212,7 @@ function dl(t) {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
return !1;
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3215
|
+
function ml(t) {
|
|
3216
3216
|
if (!tn || !t || typeof t != "object")
|
|
3217
3217
|
return !1;
|
|
3218
3218
|
try {
|
|
@@ -3221,7 +3221,7 @@ function pl(t) {
|
|
|
3221
3221
|
}
|
|
3222
3222
|
return !1;
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3224
|
+
function yl(t) {
|
|
3225
3225
|
if (!bt || !t || typeof t != "object")
|
|
3226
3226
|
return !1;
|
|
3227
3227
|
try {
|
|
@@ -3236,7 +3236,7 @@ function hl(t) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
return !1;
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3239
|
+
function gl(t) {
|
|
3240
3240
|
if (!De || !t || typeof t != "object")
|
|
3241
3241
|
return !1;
|
|
3242
3242
|
try {
|
|
@@ -3251,7 +3251,7 @@ function ml(t) {
|
|
|
3251
3251
|
}
|
|
3252
3252
|
return !1;
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3254
|
+
function vl(t) {
|
|
3255
3255
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
3256
3256
|
}
|
|
3257
3257
|
function aa(t, e) {
|
|
@@ -3259,10 +3259,10 @@ function aa(t, e) {
|
|
|
3259
3259
|
var r = t.length - e.maxStringLength, a = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
3260
3260
|
return aa(hr.call(t, 0, e.maxStringLength), e) + a;
|
|
3261
3261
|
}
|
|
3262
|
-
var i = ge.call(ge.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
3262
|
+
var i = ge.call(ge.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, bl);
|
|
3263
3263
|
return ta(i, "single", e);
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function bl(t) {
|
|
3266
3266
|
var e = t.charCodeAt(0), r = {
|
|
3267
3267
|
8: "b",
|
|
3268
3268
|
9: "t",
|
|
@@ -3270,26 +3270,26 @@ function gl(t) {
|
|
|
3270
3270
|
12: "f",
|
|
3271
3271
|
13: "r"
|
|
3272
3272
|
}[e];
|
|
3273
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
3273
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + tl.call(e.toString(16));
|
|
3274
3274
|
}
|
|
3275
3275
|
function Me(t) {
|
|
3276
3276
|
return "Object(" + t + ")";
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3278
|
+
function Ft(t) {
|
|
3279
3279
|
return t + " { ? }";
|
|
3280
3280
|
}
|
|
3281
3281
|
function fn(t, e, r, a) {
|
|
3282
3282
|
var i = a ? Qt(r, a) : ue.call(r, ", ");
|
|
3283
3283
|
return t + " (" + e + ") {" + i + "}";
|
|
3284
3284
|
}
|
|
3285
|
-
function
|
|
3285
|
+
function xl(t) {
|
|
3286
3286
|
for (var e = 0; e < t.length; e++)
|
|
3287
3287
|
if (na(t[e], `
|
|
3288
3288
|
`) >= 0)
|
|
3289
3289
|
return !1;
|
|
3290
3290
|
return !0;
|
|
3291
3291
|
}
|
|
3292
|
-
function
|
|
3292
|
+
function $l(t, e) {
|
|
3293
3293
|
var r;
|
|
3294
3294
|
if (t.indent === " ")
|
|
3295
3295
|
r = " ";
|
|
@@ -3330,15 +3330,15 @@ function et(t, e) {
|
|
|
3330
3330
|
ea.call(t, o[c]) && a.push("[" + e(o[c]) + "]: " + e(t[o[c]], t));
|
|
3331
3331
|
return a;
|
|
3332
3332
|
}
|
|
3333
|
-
var oa =
|
|
3333
|
+
var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%", !0), Sl = Ue("WeakMap.prototype.get", !0), Tl = Ue("WeakMap.prototype.set", !0), Ol = Ue("WeakMap.prototype.has", !0), Cl = Ue("Map.prototype.get", !0), Pl = Ue("Map.prototype.set", !0), Nl = Ue("Map.prototype.has", !0), mr = function(t, e) {
|
|
3334
3334
|
for (var r = t, a; (a = r.next) !== null; r = a)
|
|
3335
3335
|
if (a.key === e)
|
|
3336
3336
|
return r.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
|
|
3337
3337
|
t.next, t.next = a, a;
|
|
3338
|
-
},
|
|
3338
|
+
}, El = function(t, e) {
|
|
3339
3339
|
var r = mr(t, e);
|
|
3340
3340
|
return r && r.value;
|
|
3341
|
-
},
|
|
3341
|
+
}, kl = function(t, e, r) {
|
|
3342
3342
|
var a = mr(t, e);
|
|
3343
3343
|
a ? a.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
3344
3344
|
{
|
|
@@ -3347,60 +3347,60 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3347
3347
|
next: t.next,
|
|
3348
3348
|
value: r
|
|
3349
3349
|
};
|
|
3350
|
-
},
|
|
3350
|
+
}, Rl = function(t, e) {
|
|
3351
3351
|
return !!mr(t, e);
|
|
3352
|
-
},
|
|
3352
|
+
}, Al = function() {
|
|
3353
3353
|
var e, r, a, i = {
|
|
3354
3354
|
assert: function(o) {
|
|
3355
3355
|
if (!i.has(o))
|
|
3356
|
-
throw new
|
|
3356
|
+
throw new wl("Side channel does not contain " + jl(o));
|
|
3357
3357
|
},
|
|
3358
3358
|
get: function(o) {
|
|
3359
3359
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
3360
3360
|
if (e)
|
|
3361
|
-
return
|
|
3361
|
+
return Sl(e, o);
|
|
3362
3362
|
} else if (rt) {
|
|
3363
3363
|
if (r)
|
|
3364
|
-
return
|
|
3364
|
+
return Cl(r, o);
|
|
3365
3365
|
} else if (a)
|
|
3366
|
-
return
|
|
3366
|
+
return El(a, o);
|
|
3367
3367
|
},
|
|
3368
3368
|
has: function(o) {
|
|
3369
3369
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
3370
3370
|
if (e)
|
|
3371
|
-
return
|
|
3371
|
+
return Ol(e, o);
|
|
3372
3372
|
} else if (rt) {
|
|
3373
3373
|
if (r)
|
|
3374
|
-
return
|
|
3374
|
+
return Nl(r, o);
|
|
3375
3375
|
} else if (a)
|
|
3376
|
-
return
|
|
3376
|
+
return Rl(a, o);
|
|
3377
3377
|
return !1;
|
|
3378
3378
|
},
|
|
3379
3379
|
set: function(o, n) {
|
|
3380
|
-
tt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new tt()),
|
|
3380
|
+
tt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new tt()), Tl(e, o, n)) : rt ? (r || (r = new rt()), Pl(r, o, n)) : (a || (a = { key: {}, next: null }), kl(a, o, n));
|
|
3381
3381
|
}
|
|
3382
3382
|
};
|
|
3383
3383
|
return i;
|
|
3384
|
-
},
|
|
3384
|
+
}, ql = String.prototype.replace, Il = /%20/g, Lt = {
|
|
3385
3385
|
RFC1738: "RFC1738",
|
|
3386
3386
|
RFC3986: "RFC3986"
|
|
3387
3387
|
}, yr = {
|
|
3388
|
-
default:
|
|
3388
|
+
default: Lt.RFC3986,
|
|
3389
3389
|
formatters: {
|
|
3390
3390
|
RFC1738: function(t) {
|
|
3391
|
-
return
|
|
3391
|
+
return ql.call(t, Il, "+");
|
|
3392
3392
|
},
|
|
3393
3393
|
RFC3986: function(t) {
|
|
3394
3394
|
return String(t);
|
|
3395
3395
|
}
|
|
3396
3396
|
},
|
|
3397
|
-
RFC1738:
|
|
3398
|
-
RFC3986:
|
|
3399
|
-
},
|
|
3397
|
+
RFC1738: Lt.RFC1738,
|
|
3398
|
+
RFC3986: Lt.RFC3986
|
|
3399
|
+
}, _l = yr, Ut = Object.prototype.hasOwnProperty, we = Array.isArray, le = function() {
|
|
3400
3400
|
for (var t = [], e = 0; e < 256; ++e)
|
|
3401
3401
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
3402
3402
|
return t;
|
|
3403
|
-
}(),
|
|
3403
|
+
}(), Fl = function(e) {
|
|
3404
3404
|
for (; e.length > 1; ) {
|
|
3405
3405
|
var r = e.pop(), a = r.obj[r.prop];
|
|
3406
3406
|
if (we(a)) {
|
|
@@ -3413,7 +3413,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3413
3413
|
for (var a = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < e.length; ++i)
|
|
3414
3414
|
typeof e[i] < "u" && (a[i] = e[i]);
|
|
3415
3415
|
return a;
|
|
3416
|
-
},
|
|
3416
|
+
}, Ll = function t(e, r, a) {
|
|
3417
3417
|
if (!r)
|
|
3418
3418
|
return e;
|
|
3419
3419
|
if (typeof r != "object") {
|
|
@@ -3438,11 +3438,11 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3438
3438
|
var s = r[n];
|
|
3439
3439
|
return Ut.call(o, n) ? o[n] = t(o[n], s, a) : o[n] = s, o;
|
|
3440
3440
|
}, i);
|
|
3441
|
-
},
|
|
3441
|
+
}, Ul = function(e, r) {
|
|
3442
3442
|
return Object.keys(r).reduce(function(a, i) {
|
|
3443
3443
|
return a[i] = r[i], a;
|
|
3444
3444
|
}, e);
|
|
3445
|
-
},
|
|
3445
|
+
}, Ml = function(t, e, r) {
|
|
3446
3446
|
var a = t.replace(/\+/g, " ");
|
|
3447
3447
|
if (r === "iso-8859-1")
|
|
3448
3448
|
return a.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -3451,7 +3451,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3451
3451
|
} catch {
|
|
3452
3452
|
return a;
|
|
3453
3453
|
}
|
|
3454
|
-
}, Mt = 1024,
|
|
3454
|
+
}, Mt = 1024, Hl = function(e, r, a, i, o) {
|
|
3455
3455
|
if (e.length === 0)
|
|
3456
3456
|
return e;
|
|
3457
3457
|
var n = e;
|
|
@@ -3462,7 +3462,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3462
3462
|
for (var s = "", l = 0; l < n.length; l += Mt) {
|
|
3463
3463
|
for (var c = n.length >= Mt ? n.slice(l, l + Mt) : n, f = [], p = 0; p < c.length; ++p) {
|
|
3464
3464
|
var d = c.charCodeAt(p);
|
|
3465
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o ===
|
|
3465
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o === _l.RFC1738 && (d === 40 || d === 41)) {
|
|
3466
3466
|
f[f.length] = c.charAt(p);
|
|
3467
3467
|
continue;
|
|
3468
3468
|
}
|
|
@@ -3483,20 +3483,20 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3483
3483
|
s += f.join("");
|
|
3484
3484
|
}
|
|
3485
3485
|
return s;
|
|
3486
|
-
},
|
|
3486
|
+
}, Bl = function(e) {
|
|
3487
3487
|
for (var r = [{ obj: { o: e }, prop: "o" }], a = [], i = 0; i < r.length; ++i)
|
|
3488
3488
|
for (var o = r[i], n = o.obj[o.prop], s = Object.keys(n), l = 0; l < s.length; ++l) {
|
|
3489
3489
|
var c = s[l], f = n[c];
|
|
3490
3490
|
typeof f == "object" && f !== null && a.indexOf(f) === -1 && (r.push({ obj: n, prop: c }), a.push(f));
|
|
3491
3491
|
}
|
|
3492
|
-
return
|
|
3493
|
-
},
|
|
3492
|
+
return Fl(r), e;
|
|
3493
|
+
}, Dl = function(e) {
|
|
3494
3494
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
3495
|
-
},
|
|
3495
|
+
}, zl = function(e) {
|
|
3496
3496
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
3497
|
-
}, Dl = function(e, r) {
|
|
3498
|
-
return [].concat(e, r);
|
|
3499
3497
|
}, Wl = function(e, r) {
|
|
3498
|
+
return [].concat(e, r);
|
|
3499
|
+
}, Jl = function(e, r) {
|
|
3500
3500
|
if (we(e)) {
|
|
3501
3501
|
for (var a = [], i = 0; i < e.length; i += 1)
|
|
3502
3502
|
a.push(r(e[i]));
|
|
@@ -3505,16 +3505,16 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3505
3505
|
return r(e);
|
|
3506
3506
|
}, ia = {
|
|
3507
3507
|
arrayToObject: sa,
|
|
3508
|
-
assign:
|
|
3509
|
-
combine:
|
|
3510
|
-
compact:
|
|
3511
|
-
decode:
|
|
3512
|
-
encode:
|
|
3513
|
-
isBuffer:
|
|
3514
|
-
isRegExp:
|
|
3515
|
-
maybeMap:
|
|
3516
|
-
merge:
|
|
3517
|
-
}, la =
|
|
3508
|
+
assign: Ul,
|
|
3509
|
+
combine: Wl,
|
|
3510
|
+
compact: Bl,
|
|
3511
|
+
decode: Ml,
|
|
3512
|
+
encode: Hl,
|
|
3513
|
+
isBuffer: zl,
|
|
3514
|
+
isRegExp: Dl,
|
|
3515
|
+
maybeMap: Jl,
|
|
3516
|
+
merge: Ll
|
|
3517
|
+
}, la = Al, lt = ia, ze = yr, Vl = Object.prototype.hasOwnProperty, ca = {
|
|
3518
3518
|
brackets: function(e) {
|
|
3519
3519
|
return e + "[]";
|
|
3520
3520
|
},
|
|
@@ -3525,9 +3525,9 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3525
3525
|
repeat: function(e) {
|
|
3526
3526
|
return e;
|
|
3527
3527
|
}
|
|
3528
|
-
}, ce = Array.isArray,
|
|
3529
|
-
|
|
3530
|
-
},
|
|
3528
|
+
}, ce = Array.isArray, Gl = Array.prototype.push, ua = function(t, e) {
|
|
3529
|
+
Gl.apply(t, ce(e) ? e : [e]);
|
|
3530
|
+
}, Kl = Date.prototype.toISOString, dn = ze.default, B = {
|
|
3531
3531
|
addQueryPrefix: !1,
|
|
3532
3532
|
allowDots: !1,
|
|
3533
3533
|
allowEmptyArrays: !1,
|
|
@@ -3540,17 +3540,17 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3540
3540
|
encoder: lt.encode,
|
|
3541
3541
|
encodeValuesOnly: !1,
|
|
3542
3542
|
format: dn,
|
|
3543
|
-
formatter:
|
|
3543
|
+
formatter: ze.formatters[dn],
|
|
3544
3544
|
// deprecated
|
|
3545
3545
|
indices: !1,
|
|
3546
3546
|
serializeDate: function(e) {
|
|
3547
|
-
return
|
|
3547
|
+
return Kl.call(e);
|
|
3548
3548
|
},
|
|
3549
3549
|
skipNulls: !1,
|
|
3550
3550
|
strictNullHandling: !1
|
|
3551
|
-
},
|
|
3551
|
+
}, Ql = function(e) {
|
|
3552
3552
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
3553
|
-
}, Ht = {},
|
|
3553
|
+
}, Ht = {}, Yl = function t(e, r, a, i, o, n, s, l, c, f, p, d, h, m, y, v, x, g) {
|
|
3554
3554
|
for (var b = e, S = g, j = 0, T = !1; (S = S.get(Ht)) !== void 0 && !T; ) {
|
|
3555
3555
|
var w = S.get(e);
|
|
3556
3556
|
if (j += 1, typeof w < "u") {
|
|
@@ -3567,7 +3567,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3567
3567
|
return c && !v ? c(r, B.encoder, x, "key", m) : r;
|
|
3568
3568
|
b = "";
|
|
3569
3569
|
}
|
|
3570
|
-
if (
|
|
3570
|
+
if (Ql(b) || lt.isBuffer(b)) {
|
|
3571
3571
|
if (c) {
|
|
3572
3572
|
var E = v ? r : c(r, B.encoder, x, "key", m);
|
|
3573
3573
|
return [y(E) + "=" + y(c(b, B.encoder, x, "value", m))];
|
|
@@ -3590,9 +3590,9 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3590
3590
|
if (o && ce(b) && b.length === 0)
|
|
3591
3591
|
return I + "[]";
|
|
3592
3592
|
for (var M = 0; M < _.length; ++M) {
|
|
3593
|
-
var
|
|
3593
|
+
var z = _[M], H = typeof z == "object" && typeof z.value < "u" ? z.value : b[z];
|
|
3594
3594
|
if (!(s && H === null)) {
|
|
3595
|
-
var he = d && l ?
|
|
3595
|
+
var he = d && l ? z.replace(/\./g, "%2E") : z, St = ce(b) ? typeof a == "function" ? a(I, he) : I : I + (d ? "." + he : "[" + he + "]");
|
|
3596
3596
|
g.set(e, j);
|
|
3597
3597
|
var Ze = la();
|
|
3598
3598
|
Ze.set(Ht, g), ua(A, t(
|
|
@@ -3618,7 +3618,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3618
3618
|
}
|
|
3619
3619
|
}
|
|
3620
3620
|
return A;
|
|
3621
|
-
},
|
|
3621
|
+
}, Xl = function(e) {
|
|
3622
3622
|
if (!e)
|
|
3623
3623
|
return B;
|
|
3624
3624
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3630,13 +3630,13 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3630
3630
|
var r = e.charset || B.charset;
|
|
3631
3631
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
3632
3632
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3633
|
-
var a =
|
|
3633
|
+
var a = ze.default;
|
|
3634
3634
|
if (typeof e.format < "u") {
|
|
3635
|
-
if (!
|
|
3635
|
+
if (!Vl.call(ze.formatters, e.format))
|
|
3636
3636
|
throw new TypeError("Unknown format option provided.");
|
|
3637
3637
|
a = e.format;
|
|
3638
3638
|
}
|
|
3639
|
-
var i =
|
|
3639
|
+
var i = ze.formatters[a], o = B.filter;
|
|
3640
3640
|
(typeof e.filter == "function" || ce(e.filter)) && (o = e.filter);
|
|
3641
3641
|
var n;
|
|
3642
3642
|
if (e.arrayFormat in ca ? n = e.arrayFormat : "indices" in e ? n = e.indices ? "indices" : "repeat" : n = B.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
@@ -3663,8 +3663,8 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3663
3663
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
3664
3664
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
|
|
3665
3665
|
};
|
|
3666
|
-
},
|
|
3667
|
-
var r = t, a =
|
|
3666
|
+
}, Zl = function(t, e) {
|
|
3667
|
+
var r = t, a = Xl(e), i, o;
|
|
3668
3668
|
typeof a.filter == "function" ? (o = a.filter, r = o("", r)) : ce(a.filter) && (o = a.filter, i = o);
|
|
3669
3669
|
var n = [];
|
|
3670
3670
|
if (typeof r != "object" || r === null)
|
|
@@ -3673,7 +3673,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3673
3673
|
i || (i = Object.keys(r)), a.sort && i.sort(a.sort);
|
|
3674
3674
|
for (var c = la(), f = 0; f < i.length; ++f) {
|
|
3675
3675
|
var p = i[f];
|
|
3676
|
-
a.skipNulls && r[p] === null || ua(n,
|
|
3676
|
+
a.skipNulls && r[p] === null || ua(n, Yl(
|
|
3677
3677
|
r[p],
|
|
3678
3678
|
p,
|
|
3679
3679
|
s,
|
|
@@ -3696,7 +3696,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3696
3696
|
}
|
|
3697
3697
|
var d = n.join(a.delimiter), h = a.addQueryPrefix === !0 ? "?" : "";
|
|
3698
3698
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), d.length > 0 ? h + d : "";
|
|
3699
|
-
},
|
|
3699
|
+
}, Fe = ia, Yt = Object.prototype.hasOwnProperty, ec = Array.isArray, U = {
|
|
3700
3700
|
allowDots: !1,
|
|
3701
3701
|
allowEmptyArrays: !1,
|
|
3702
3702
|
allowPrototypes: !1,
|
|
@@ -3706,7 +3706,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3706
3706
|
charsetSentinel: !1,
|
|
3707
3707
|
comma: !1,
|
|
3708
3708
|
decodeDotInKeys: !1,
|
|
3709
|
-
decoder:
|
|
3709
|
+
decoder: Fe.decode,
|
|
3710
3710
|
delimiter: "&",
|
|
3711
3711
|
depth: 5,
|
|
3712
3712
|
duplicates: "combine",
|
|
@@ -3716,31 +3716,31 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3716
3716
|
parseArrays: !0,
|
|
3717
3717
|
plainObjects: !1,
|
|
3718
3718
|
strictNullHandling: !1
|
|
3719
|
-
},
|
|
3719
|
+
}, tc = function(t) {
|
|
3720
3720
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
3721
3721
|
return String.fromCharCode(parseInt(r, 10));
|
|
3722
3722
|
});
|
|
3723
3723
|
}, fa = function(t, e) {
|
|
3724
3724
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
3725
|
-
},
|
|
3725
|
+
}, rc = "utf8=%26%2310003%3B", nc = "utf8=%E2%9C%93", ac = function(e, r) {
|
|
3726
3726
|
var a = { __proto__: null }, i = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, n = i.split(r.delimiter, o), s = -1, l, c = r.charset;
|
|
3727
3727
|
if (r.charsetSentinel)
|
|
3728
3728
|
for (l = 0; l < n.length; ++l)
|
|
3729
|
-
n[l].indexOf("utf8=") === 0 && (n[l] ===
|
|
3729
|
+
n[l].indexOf("utf8=") === 0 && (n[l] === nc ? c = "utf-8" : n[l] === rc && (c = "iso-8859-1"), s = l, l = n.length);
|
|
3730
3730
|
for (l = 0; l < n.length; ++l)
|
|
3731
3731
|
if (l !== s) {
|
|
3732
3732
|
var f = n[l], p = f.indexOf("]="), d = p === -1 ? f.indexOf("=") : p + 1, h, m;
|
|
3733
|
-
d === -1 ? (h = r.decoder(f, U.decoder, c, "key"), m = r.strictNullHandling ? null : "") : (h = r.decoder(f.slice(0, d), U.decoder, c, "key"), m =
|
|
3733
|
+
d === -1 ? (h = r.decoder(f, U.decoder, c, "key"), m = r.strictNullHandling ? null : "") : (h = r.decoder(f.slice(0, d), U.decoder, c, "key"), m = Fe.maybeMap(
|
|
3734
3734
|
fa(f.slice(d + 1), r),
|
|
3735
3735
|
function(v) {
|
|
3736
3736
|
return r.decoder(v, U.decoder, c, "value");
|
|
3737
3737
|
}
|
|
3738
|
-
)), m && r.interpretNumericEntities && c === "iso-8859-1" && (m =
|
|
3738
|
+
)), m && r.interpretNumericEntities && c === "iso-8859-1" && (m = tc(m)), f.indexOf("[]=") > -1 && (m = ec(m) ? [m] : m);
|
|
3739
3739
|
var y = Yt.call(a, h);
|
|
3740
|
-
y && r.duplicates === "combine" ? a[h] =
|
|
3740
|
+
y && r.duplicates === "combine" ? a[h] = Fe.combine(a[h], m) : (!y || r.duplicates === "last") && (a[h] = m);
|
|
3741
3741
|
}
|
|
3742
3742
|
return a;
|
|
3743
|
-
},
|
|
3743
|
+
}, oc = function(t, e, r, a) {
|
|
3744
3744
|
for (var i = a ? e : fa(e, r), o = t.length - 1; o >= 0; --o) {
|
|
3745
3745
|
var n, s = t[o];
|
|
3746
3746
|
if (s === "[]" && r.parseArrays)
|
|
@@ -3753,7 +3753,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3753
3753
|
i = n;
|
|
3754
3754
|
}
|
|
3755
3755
|
return i;
|
|
3756
|
-
},
|
|
3756
|
+
}, sc = function(e, r, a, i) {
|
|
3757
3757
|
if (e) {
|
|
3758
3758
|
var o = a.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, n = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, l = a.depth > 0 && n.exec(o), c = l ? o.slice(0, l.index) : o, f = [];
|
|
3759
3759
|
if (c) {
|
|
@@ -3766,9 +3766,9 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3766
3766
|
return;
|
|
3767
3767
|
f.push(l[1]);
|
|
3768
3768
|
}
|
|
3769
|
-
return l && f.push("[" + o.slice(l.index) + "]"),
|
|
3769
|
+
return l && f.push("[" + o.slice(l.index) + "]"), oc(f, r, a, i);
|
|
3770
3770
|
}
|
|
3771
|
-
},
|
|
3771
|
+
}, ic = function(e) {
|
|
3772
3772
|
if (!e)
|
|
3773
3773
|
return U;
|
|
3774
3774
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3794,7 +3794,7 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3794
3794
|
comma: typeof e.comma == "boolean" ? e.comma : U.comma,
|
|
3795
3795
|
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : U.decodeDotInKeys,
|
|
3796
3796
|
decoder: typeof e.decoder == "function" ? e.decoder : U.decoder,
|
|
3797
|
-
delimiter: typeof e.delimiter == "string" ||
|
|
3797
|
+
delimiter: typeof e.delimiter == "string" || Fe.isRegExp(e.delimiter) ? e.delimiter : U.delimiter,
|
|
3798
3798
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3799
3799
|
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : U.depth,
|
|
3800
3800
|
duplicates: a,
|
|
@@ -3805,24 +3805,24 @@ var oa = Fe, Ue = Bi, xl = tl, $l = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
|
|
|
3805
3805
|
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : U.plainObjects,
|
|
3806
3806
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : U.strictNullHandling
|
|
3807
3807
|
};
|
|
3808
|
-
},
|
|
3809
|
-
var r =
|
|
3808
|
+
}, lc = function(t, e) {
|
|
3809
|
+
var r = ic(e);
|
|
3810
3810
|
if (t === "" || t === null || typeof t > "u")
|
|
3811
3811
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3812
|
-
for (var a = typeof t == "string" ?
|
|
3813
|
-
var s = o[n], l =
|
|
3814
|
-
i =
|
|
3815
|
-
}
|
|
3816
|
-
return r.allowSparse === !0 ? i :
|
|
3817
|
-
},
|
|
3818
|
-
formats:
|
|
3819
|
-
parse:
|
|
3820
|
-
stringify:
|
|
3821
|
-
},
|
|
3812
|
+
for (var a = typeof t == "string" ? ac(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(a), n = 0; n < o.length; ++n) {
|
|
3813
|
+
var s = o[n], l = sc(s, a[s], r, typeof t == "string");
|
|
3814
|
+
i = Fe.merge(i, l, r);
|
|
3815
|
+
}
|
|
3816
|
+
return r.allowSparse === !0 ? i : Fe.compact(i);
|
|
3817
|
+
}, cc = Zl, uc = lc, fc = yr, ct = {
|
|
3818
|
+
formats: fc,
|
|
3819
|
+
parse: uc,
|
|
3820
|
+
stringify: cc
|
|
3821
|
+
}, dc = Gs;
|
|
3822
3822
|
function oe() {
|
|
3823
3823
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
3824
3824
|
}
|
|
3825
|
-
var
|
|
3825
|
+
var pc = /^([a-z0-9.+-]+:)/i, hc = /:[0-9]*$/, mc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, yc = [
|
|
3826
3826
|
"<",
|
|
3827
3827
|
">",
|
|
3828
3828
|
'"',
|
|
@@ -3832,14 +3832,14 @@ var fc = /^([a-z0-9.+-]+:)/i, dc = /:[0-9]*$/, pc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
3832
3832
|
`
|
|
3833
3833
|
`,
|
|
3834
3834
|
" "
|
|
3835
|
-
],
|
|
3835
|
+
], gc = [
|
|
3836
3836
|
"{",
|
|
3837
3837
|
"}",
|
|
3838
3838
|
"|",
|
|
3839
3839
|
"\\",
|
|
3840
3840
|
"^",
|
|
3841
3841
|
"`"
|
|
3842
|
-
].concat(
|
|
3842
|
+
].concat(yc), Xt = ["'"].concat(gc), pn = [
|
|
3843
3843
|
"%",
|
|
3844
3844
|
"/",
|
|
3845
3845
|
"?",
|
|
@@ -3849,7 +3849,7 @@ var fc = /^([a-z0-9.+-]+:)/i, dc = /:[0-9]*$/, pc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
3849
3849
|
"/",
|
|
3850
3850
|
"?",
|
|
3851
3851
|
"#"
|
|
3852
|
-
],
|
|
3852
|
+
], vc = 255, mn = /^[+a-z0-9A-Z_-]{0,63}$/, bc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, xc = {
|
|
3853
3853
|
javascript: !0,
|
|
3854
3854
|
"javascript:": !0
|
|
3855
3855
|
}, Zt = {
|
|
@@ -3880,11 +3880,11 @@ oe.prototype.parse = function(t, e, r) {
|
|
|
3880
3880
|
o[0] = o[0].replace(n, "/"), t = o.join(i);
|
|
3881
3881
|
var s = t;
|
|
3882
3882
|
if (s = s.trim(), !r && t.split("#").length === 1) {
|
|
3883
|
-
var l =
|
|
3883
|
+
var l = mc.exec(s);
|
|
3884
3884
|
if (l)
|
|
3885
3885
|
return this.path = s, this.href = s, this.pathname = l[1], l[2] ? (this.search = l[2], e ? this.query = er.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
|
|
3886
3886
|
}
|
|
3887
|
-
var c =
|
|
3887
|
+
var c = pc.exec(s);
|
|
3888
3888
|
if (c) {
|
|
3889
3889
|
c = c[0];
|
|
3890
3890
|
var f = c.toLowerCase();
|
|
@@ -3914,17 +3914,17 @@ oe.prototype.parse = function(t, e, r) {
|
|
|
3914
3914
|
for (var j = "", T = 0, w = S.length; T < w; T++)
|
|
3915
3915
|
S.charCodeAt(T) > 127 ? j += "x" : j += S[T];
|
|
3916
3916
|
if (!j.match(mn)) {
|
|
3917
|
-
var E = g.slice(0, h), A = g.slice(h + 1), _ = S.match(
|
|
3917
|
+
var E = g.slice(0, h), A = g.slice(h + 1), _ = S.match(bc);
|
|
3918
3918
|
_ && (E.push(_[1]), A.unshift(_[2])), A.length && (s = "/" + A.join(".") + s), this.hostname = E.join(".");
|
|
3919
3919
|
break;
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
|
-
this.hostname.length >
|
|
3923
|
+
this.hostname.length > vc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), x || (this.hostname = dc.toASCII(this.hostname));
|
|
3924
3924
|
var D = this.port ? ":" + this.port : "", Q = this.hostname || "";
|
|
3925
3925
|
this.host = Q + D, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
|
|
3926
3926
|
}
|
|
3927
|
-
if (!
|
|
3927
|
+
if (!xc[f])
|
|
3928
3928
|
for (var h = 0, b = Xt.length; h < b; h++) {
|
|
3929
3929
|
var I = Xt[h];
|
|
3930
3930
|
if (s.indexOf(I) !== -1) {
|
|
@@ -3932,8 +3932,8 @@ oe.prototype.parse = function(t, e, r) {
|
|
|
3932
3932
|
M === I && (M = escape(I)), s = s.split(I).join(M);
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
|
-
var
|
|
3936
|
-
|
|
3935
|
+
var z = s.indexOf("#");
|
|
3936
|
+
z !== -1 && (this.hash = s.substr(z), s = s.slice(0, z));
|
|
3937
3937
|
var H = s.indexOf("?");
|
|
3938
3938
|
if (H !== -1 ? (this.search = s.substr(H), this.query = s.substr(H + 1), e && (this.query = er.parse(this.query)), s = s.slice(0, H)) : e && (this.search = "", this.query = {}), s && (this.pathname = s), Ae[f] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3939
3939
|
var D = this.pathname || "", he = this.search || "";
|
|
@@ -3941,7 +3941,7 @@ oe.prototype.parse = function(t, e, r) {
|
|
|
3941
3941
|
}
|
|
3942
3942
|
return this.href = this.format(), this;
|
|
3943
3943
|
};
|
|
3944
|
-
function
|
|
3944
|
+
function $c(t) {
|
|
3945
3945
|
return typeof t == "string" && (t = gr(t)), t instanceof oe ? t.format() : oe.prototype.format.call(t);
|
|
3946
3946
|
}
|
|
3947
3947
|
oe.prototype.format = function() {
|
|
@@ -4028,15 +4028,15 @@ oe.prototype.resolveObject = function(t) {
|
|
|
4028
4028
|
return v = v || r.host && g.length, v && !_ && g.unshift(""), g.length > 0 ? r.pathname = g.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = t.auth || r.auth, r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
|
|
4029
4029
|
};
|
|
4030
4030
|
oe.prototype.parseHost = function() {
|
|
4031
|
-
var t = this.host, e =
|
|
4031
|
+
var t = this.host, e = hc.exec(t);
|
|
4032
4032
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t);
|
|
4033
4033
|
};
|
|
4034
|
-
var
|
|
4034
|
+
var jc = gr, yn = $c, wc = (t) => typeof t == "object" && "log" in t && typeof t.log == "object" && "entries" in t.log && Array.isArray(t.log.entries), Sc = class {
|
|
4035
4035
|
constructor(t, e = {}) {
|
|
4036
4036
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4037
4037
|
harIsAlreadyEncoded: !1,
|
|
4038
4038
|
...e
|
|
4039
|
-
}, this.requests = [],
|
|
4039
|
+
}, this.requests = [], wc(t) ? this.entries = t.log.entries : this.entries = [
|
|
4040
4040
|
{
|
|
4041
4041
|
request: t
|
|
4042
4042
|
}
|
|
@@ -4126,7 +4126,7 @@ var xc = gr, yn = bc, $c = (t) => typeof t == "object" && "log" in t && typeof t
|
|
|
4126
4126
|
const i = {
|
|
4127
4127
|
...r.allHeaders,
|
|
4128
4128
|
...r.headersObj
|
|
4129
|
-
}, o =
|
|
4129
|
+
}, o = jc(r.url, !0, !0);
|
|
4130
4130
|
r.queryObj = {
|
|
4131
4131
|
...r.queryObj,
|
|
4132
4132
|
...o.query
|
|
@@ -4161,13 +4161,13 @@ var xc = gr, yn = bc, $c = (t) => typeof t == "object" && "log" in t && typeof t
|
|
|
4161
4161
|
}
|
|
4162
4162
|
convert(t, e, r) {
|
|
4163
4163
|
this.initCalled || this.init(), !r && e && (r = e);
|
|
4164
|
-
const a =
|
|
4164
|
+
const a = Vs[t];
|
|
4165
4165
|
if (!a)
|
|
4166
4166
|
return !1;
|
|
4167
4167
|
const { convert: i } = a.clientsById[e || a.info.default];
|
|
4168
4168
|
return this.requests.map((n) => i(n, r));
|
|
4169
4169
|
}
|
|
4170
|
-
}, vr = "Dialog", [da,
|
|
4170
|
+
}, vr = "Dialog", [da, Pu] = gn(vr), [Tc, se] = da(vr), pa = (t) => {
|
|
4171
4171
|
const {
|
|
4172
4172
|
__scopeDialog: e,
|
|
4173
4173
|
children: r,
|
|
@@ -4181,7 +4181,7 @@ var xc = gr, yn = bc, $c = (t) => typeof t == "object" && "log" in t && typeof t
|
|
|
4181
4181
|
onChange: o
|
|
4182
4182
|
});
|
|
4183
4183
|
return /* @__PURE__ */ u.jsx(
|
|
4184
|
-
|
|
4184
|
+
Tc,
|
|
4185
4185
|
{
|
|
4186
4186
|
scope: e,
|
|
4187
4187
|
triggerRef: s,
|
|
@@ -4217,27 +4217,27 @@ var ha = "DialogTrigger", ma = O.forwardRef(
|
|
|
4217
4217
|
}
|
|
4218
4218
|
);
|
|
4219
4219
|
ma.displayName = ha;
|
|
4220
|
-
var br = "DialogPortal", [
|
|
4220
|
+
var br = "DialogPortal", [Oc, ya] = da(br, {
|
|
4221
4221
|
forceMount: void 0
|
|
4222
4222
|
}), ga = (t) => {
|
|
4223
4223
|
const { __scopeDialog: e, forceMount: r, children: a, container: i } = t, o = se(br, e);
|
|
4224
|
-
return /* @__PURE__ */ u.jsx(
|
|
4224
|
+
return /* @__PURE__ */ u.jsx(Oc, { scope: e, forceMount: r, children: O.Children.map(a, (n) => /* @__PURE__ */ u.jsx($t, { present: r || o.open, children: /* @__PURE__ */ u.jsx(Da, { asChild: !0, container: i, children: n }) })) });
|
|
4225
4225
|
};
|
|
4226
4226
|
ga.displayName = br;
|
|
4227
4227
|
var xt = "DialogOverlay", va = O.forwardRef(
|
|
4228
4228
|
(t, e) => {
|
|
4229
4229
|
const r = ya(xt, t.__scopeDialog), { forceMount: a = r.forceMount, ...i } = t, o = se(xt, t.__scopeDialog);
|
|
4230
|
-
return o.modal ? /* @__PURE__ */ u.jsx($t, { present: a || o.open, children: /* @__PURE__ */ u.jsx(
|
|
4230
|
+
return o.modal ? /* @__PURE__ */ u.jsx($t, { present: a || o.open, children: /* @__PURE__ */ u.jsx(Cc, { ...i, ref: e }) }) : null;
|
|
4231
4231
|
}
|
|
4232
4232
|
);
|
|
4233
4233
|
va.displayName = xt;
|
|
4234
|
-
var
|
|
4234
|
+
var Cc = O.forwardRef(
|
|
4235
4235
|
(t, e) => {
|
|
4236
4236
|
const { __scopeDialog: r, ...a } = t, i = se(xt, r);
|
|
4237
4237
|
return (
|
|
4238
4238
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4239
4239
|
// ie. when `Overlay` and `Content` are siblings
|
|
4240
|
-
/* @__PURE__ */ u.jsx(
|
|
4240
|
+
/* @__PURE__ */ u.jsx(Fa, { as: bn, allowPinchZoom: !0, shards: [i.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
4241
4241
|
pe.div,
|
|
4242
4242
|
{
|
|
4243
4243
|
"data-state": $r(i.open),
|
|
@@ -4251,11 +4251,11 @@ var Tc = O.forwardRef(
|
|
|
4251
4251
|
), Ce = "DialogContent", ba = O.forwardRef(
|
|
4252
4252
|
(t, e) => {
|
|
4253
4253
|
const r = ya(Ce, t.__scopeDialog), { forceMount: a = r.forceMount, ...i } = t, o = se(Ce, t.__scopeDialog);
|
|
4254
|
-
return /* @__PURE__ */ u.jsx($t, { present: a || o.open, children: o.modal ? /* @__PURE__ */ u.jsx(
|
|
4254
|
+
return /* @__PURE__ */ u.jsx($t, { present: a || o.open, children: o.modal ? /* @__PURE__ */ u.jsx(Pc, { ...i, ref: e }) : /* @__PURE__ */ u.jsx(Nc, { ...i, ref: e }) });
|
|
4255
4255
|
}
|
|
4256
4256
|
);
|
|
4257
4257
|
ba.displayName = Ce;
|
|
4258
|
-
var
|
|
4258
|
+
var Pc = O.forwardRef(
|
|
4259
4259
|
(t, e) => {
|
|
4260
4260
|
const r = se(Ce, t.__scopeDialog), a = O.useRef(null), i = nr(e, r.contentRef, a);
|
|
4261
4261
|
return O.useEffect(() => {
|
|
@@ -4283,7 +4283,7 @@ var Oc = O.forwardRef(
|
|
|
4283
4283
|
}
|
|
4284
4284
|
);
|
|
4285
4285
|
}
|
|
4286
|
-
),
|
|
4286
|
+
), Nc = O.forwardRef(
|
|
4287
4287
|
(t, e) => {
|
|
4288
4288
|
const r = se(Ce, t.__scopeDialog), a = O.useRef(!1), i = O.useRef(!1);
|
|
4289
4289
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -4309,9 +4309,9 @@ var Oc = O.forwardRef(
|
|
|
4309
4309
|
), xa = O.forwardRef(
|
|
4310
4310
|
(t, e) => {
|
|
4311
4311
|
const { __scopeDialog: r, trapFocus: a, onOpenAutoFocus: i, onCloseAutoFocus: o, ...n } = t, s = se(Ce, r), l = O.useRef(null), c = nr(e, l);
|
|
4312
|
-
return
|
|
4312
|
+
return Ua(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4313
4313
|
/* @__PURE__ */ u.jsx(
|
|
4314
|
-
|
|
4314
|
+
Ma,
|
|
4315
4315
|
{
|
|
4316
4316
|
asChild: !0,
|
|
4317
4317
|
loop: !0,
|
|
@@ -4319,7 +4319,7 @@ var Oc = O.forwardRef(
|
|
|
4319
4319
|
onMountAutoFocus: i,
|
|
4320
4320
|
onUnmountAutoFocus: o,
|
|
4321
4321
|
children: /* @__PURE__ */ u.jsx(
|
|
4322
|
-
|
|
4322
|
+
Ha,
|
|
4323
4323
|
{
|
|
4324
4324
|
role: "dialog",
|
|
4325
4325
|
id: s.contentId,
|
|
@@ -4334,8 +4334,8 @@ var Oc = O.forwardRef(
|
|
|
4334
4334
|
}
|
|
4335
4335
|
),
|
|
4336
4336
|
/* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4337
|
-
/* @__PURE__ */ u.jsx(
|
|
4338
|
-
/* @__PURE__ */ u.jsx(
|
|
4337
|
+
/* @__PURE__ */ u.jsx(Ec, { titleId: s.titleId }),
|
|
4338
|
+
/* @__PURE__ */ u.jsx(Rc, { contentRef: l, descriptionId: s.descriptionId })
|
|
4339
4339
|
] })
|
|
4340
4340
|
] });
|
|
4341
4341
|
}
|
|
@@ -4371,11 +4371,11 @@ Ta.displayName = Sa;
|
|
|
4371
4371
|
function $r(t) {
|
|
4372
4372
|
return t ? "open" : "closed";
|
|
4373
4373
|
}
|
|
4374
|
-
var Oa = "DialogTitleWarning", [
|
|
4374
|
+
var Oa = "DialogTitleWarning", [Nu, Ca] = Ba(Oa, {
|
|
4375
4375
|
contentName: Ce,
|
|
4376
4376
|
titleName: xr,
|
|
4377
4377
|
docsSlug: "dialog"
|
|
4378
|
-
}),
|
|
4378
|
+
}), Ec = ({ titleId: t }) => {
|
|
4379
4379
|
const e = Ca(Oa), r = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
4380
4380
|
|
|
4381
4381
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -4384,19 +4384,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
4384
4384
|
return O.useEffect(() => {
|
|
4385
4385
|
t && (document.getElementById(t) || console.error(r));
|
|
4386
4386
|
}, [r, t]), null;
|
|
4387
|
-
},
|
|
4388
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ca(
|
|
4387
|
+
}, kc = "DialogDescriptionWarning", Rc = ({ contentRef: t, descriptionId: e }) => {
|
|
4388
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ca(kc).contentName}}.`;
|
|
4389
4389
|
return O.useEffect(() => {
|
|
4390
4390
|
var o;
|
|
4391
4391
|
const i = (o = t.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
4392
4392
|
e && i && (document.getElementById(e) || console.warn(a));
|
|
4393
4393
|
}, [a, t, e]), null;
|
|
4394
|
-
},
|
|
4395
|
-
const
|
|
4394
|
+
}, Ac = pa, qc = ma, Ic = ga, Pa = va, Na = ba, Ea = $a, ka = wa, _c = Ta;
|
|
4395
|
+
const Fc = Ac, Lc = qc, Uc = Ic, Ra = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4396
4396
|
Pa,
|
|
4397
4397
|
{
|
|
4398
4398
|
ref: r,
|
|
4399
|
-
className:
|
|
4399
|
+
className: k(
|
|
4400
4400
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
4401
4401
|
t
|
|
4402
4402
|
),
|
|
@@ -4404,20 +4404,20 @@ const Ic = kc, _c = Rc, Lc = Ac, Ra = O.forwardRef(({ className: t, ...e }, r) =
|
|
|
4404
4404
|
}
|
|
4405
4405
|
));
|
|
4406
4406
|
Ra.displayName = Pa.displayName;
|
|
4407
|
-
const Aa = O.forwardRef(({ className: t, children: e, ...r }, a) => /* @__PURE__ */ u.jsxs(
|
|
4407
|
+
const Aa = O.forwardRef(({ className: t, children: e, ...r }, a) => /* @__PURE__ */ u.jsxs(Uc, { children: [
|
|
4408
4408
|
/* @__PURE__ */ u.jsx(Ra, {}),
|
|
4409
4409
|
/* @__PURE__ */ u.jsxs(
|
|
4410
4410
|
Na,
|
|
4411
4411
|
{
|
|
4412
4412
|
ref: a,
|
|
4413
|
-
className:
|
|
4413
|
+
className: k(
|
|
4414
4414
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg border-border",
|
|
4415
4415
|
t
|
|
4416
4416
|
),
|
|
4417
4417
|
...r,
|
|
4418
4418
|
children: [
|
|
4419
4419
|
e,
|
|
4420
|
-
/* @__PURE__ */ u.jsxs(
|
|
4420
|
+
/* @__PURE__ */ u.jsxs(_c, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
4421
4421
|
/* @__PURE__ */ u.jsx(Pn, { className: "h-4 w-4" }),
|
|
4422
4422
|
/* @__PURE__ */ u.jsx("span", { className: "sr-only", children: "Close" })
|
|
4423
4423
|
] })
|
|
@@ -4430,7 +4430,7 @@ const qa = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4430
4430
|
Ea,
|
|
4431
4431
|
{
|
|
4432
4432
|
ref: r,
|
|
4433
|
-
className:
|
|
4433
|
+
className: k(
|
|
4434
4434
|
"text-lg font-semibold leading-none tracking-tight",
|
|
4435
4435
|
t
|
|
4436
4436
|
),
|
|
@@ -4438,20 +4438,20 @@ const qa = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4438
4438
|
}
|
|
4439
4439
|
));
|
|
4440
4440
|
qa.displayName = Ea.displayName;
|
|
4441
|
-
const
|
|
4441
|
+
const Mc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4442
4442
|
ka,
|
|
4443
4443
|
{
|
|
4444
4444
|
ref: r,
|
|
4445
|
-
className:
|
|
4445
|
+
className: k("text-sm text-muted-foreground", t),
|
|
4446
4446
|
...e
|
|
4447
4447
|
}
|
|
4448
4448
|
));
|
|
4449
|
-
|
|
4449
|
+
Mc.displayName = ka.displayName;
|
|
4450
4450
|
const tr = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4451
4451
|
"div",
|
|
4452
4452
|
{
|
|
4453
4453
|
ref: r,
|
|
4454
|
-
className:
|
|
4454
|
+
className: k(
|
|
4455
4455
|
"rounded-xl border bg-card text-card-foreground shadow",
|
|
4456
4456
|
t
|
|
4457
4457
|
),
|
|
@@ -4459,45 +4459,45 @@ const tr = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4459
4459
|
}
|
|
4460
4460
|
));
|
|
4461
4461
|
tr.displayName = "Card";
|
|
4462
|
-
const
|
|
4462
|
+
const Hc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4463
4463
|
"div",
|
|
4464
4464
|
{
|
|
4465
4465
|
ref: r,
|
|
4466
|
-
className:
|
|
4466
|
+
className: k("flex flex-col space-y-1.5 p-6", t),
|
|
4467
4467
|
...e
|
|
4468
4468
|
}
|
|
4469
4469
|
));
|
|
4470
|
-
|
|
4471
|
-
const
|
|
4470
|
+
Hc.displayName = "CardHeader";
|
|
4471
|
+
const Bc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4472
4472
|
"h3",
|
|
4473
4473
|
{
|
|
4474
4474
|
ref: r,
|
|
4475
|
-
className:
|
|
4475
|
+
className: k("font-semibold leading-none tracking-tight", t),
|
|
4476
4476
|
...e
|
|
4477
4477
|
}
|
|
4478
4478
|
));
|
|
4479
|
-
|
|
4480
|
-
const
|
|
4479
|
+
Bc.displayName = "CardTitle";
|
|
4480
|
+
const Dc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4481
4481
|
"p",
|
|
4482
4482
|
{
|
|
4483
4483
|
ref: r,
|
|
4484
|
-
className:
|
|
4484
|
+
className: k("text-sm text-muted-foreground", t),
|
|
4485
4485
|
...e
|
|
4486
4486
|
}
|
|
4487
4487
|
));
|
|
4488
|
-
|
|
4489
|
-
const
|
|
4490
|
-
|
|
4491
|
-
const
|
|
4488
|
+
Dc.displayName = "CardDescription";
|
|
4489
|
+
const zc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx("div", { ref: r, className: k("p-6 pt-0", t), ...e }));
|
|
4490
|
+
zc.displayName = "CardContent";
|
|
4491
|
+
const Wc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
|
|
4492
4492
|
"div",
|
|
4493
4493
|
{
|
|
4494
4494
|
ref: r,
|
|
4495
|
-
className:
|
|
4495
|
+
className: k("flex items-center p-6 pt-0", t),
|
|
4496
4496
|
...e
|
|
4497
4497
|
}
|
|
4498
4498
|
));
|
|
4499
|
-
|
|
4500
|
-
const
|
|
4499
|
+
Wc.displayName = "CardFooter";
|
|
4500
|
+
const Jc = (t, e, r) => {
|
|
4501
4501
|
const a = new URL(
|
|
4502
4502
|
t + e.split("/").map(
|
|
4503
4503
|
(i) => {
|
|
@@ -4509,20 +4509,20 @@ const Wc = (t, e, r) => {
|
|
|
4509
4509
|
return r.queryParams.forEach((i) => {
|
|
4510
4510
|
a.searchParams.set(i.name, i.value);
|
|
4511
4511
|
}), a;
|
|
4512
|
-
},
|
|
4512
|
+
}, Vc = (t, e) => {
|
|
4513
4513
|
const r = O.forwardRef(({ className: a, asChild: i, ...o }, n) => {
|
|
4514
4514
|
const s = i ? bn : t;
|
|
4515
4515
|
return O.createElement(s, {
|
|
4516
4516
|
...o,
|
|
4517
4517
|
ref: n,
|
|
4518
|
-
className:
|
|
4518
|
+
className: k(e, a)
|
|
4519
4519
|
});
|
|
4520
4520
|
});
|
|
4521
4521
|
return r.displayName = `VariantComponent(${t})`, r;
|
|
4522
|
-
}, rr =
|
|
4522
|
+
}, rr = Vc(
|
|
4523
4523
|
"input",
|
|
4524
4524
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
4525
|
-
),
|
|
4525
|
+
), Gc = ({
|
|
4526
4526
|
control: t,
|
|
4527
4527
|
register: e
|
|
4528
4528
|
}) => {
|
|
@@ -4537,7 +4537,7 @@ const Wc = (t, e, r) => {
|
|
|
4537
4537
|
return /* @__PURE__ */ u.jsxs(
|
|
4538
4538
|
"div",
|
|
4539
4539
|
{
|
|
4540
|
-
className:
|
|
4540
|
+
className: k(
|
|
4541
4541
|
"grid-cols-subgrid col-span-full grid items-center gap-x-2 has-[:focus]:bg-muted hover:bg-muted rounded overflow-hidden group",
|
|
4542
4542
|
f && "line-through"
|
|
4543
4543
|
),
|
|
@@ -4553,7 +4553,7 @@ const Wc = (t, e, r) => {
|
|
|
4553
4553
|
autoComplete: "off"
|
|
4554
4554
|
}
|
|
4555
4555
|
),
|
|
4556
|
-
f && /* @__PURE__ */ u.jsx(
|
|
4556
|
+
f && /* @__PURE__ */ u.jsx(Ka, { size: 16, className: "text-amber-500" })
|
|
4557
4557
|
] }),
|
|
4558
4558
|
/* @__PURE__ */ u.jsx(
|
|
4559
4559
|
rr,
|
|
@@ -4591,7 +4591,7 @@ const Wc = (t, e, r) => {
|
|
|
4591
4591
|
}
|
|
4592
4592
|
)
|
|
4593
4593
|
] });
|
|
4594
|
-
},
|
|
4594
|
+
}, Kc = ({
|
|
4595
4595
|
control: t,
|
|
4596
4596
|
register: e
|
|
4597
4597
|
}) => {
|
|
@@ -4613,7 +4613,7 @@ const Wc = (t, e, r) => {
|
|
|
4613
4613
|
name: a.name,
|
|
4614
4614
|
backgroundOpacity: "0",
|
|
4615
4615
|
borderOpacity: o.value ? "100%" : "0",
|
|
4616
|
-
className:
|
|
4616
|
+
className: k(
|
|
4617
4617
|
"font-mono text-xs m-2",
|
|
4618
4618
|
!o.value && "opacity-60"
|
|
4619
4619
|
)
|
|
@@ -4632,7 +4632,7 @@ const Wc = (t, e, r) => {
|
|
|
4632
4632
|
{
|
|
4633
4633
|
...o,
|
|
4634
4634
|
placeholder: "Enter value",
|
|
4635
|
-
className:
|
|
4635
|
+
className: k(
|
|
4636
4636
|
"border-0 shadow-none ring-0 font-mono text-xs"
|
|
4637
4637
|
)
|
|
4638
4638
|
}
|
|
@@ -4651,7 +4651,7 @@ const Wc = (t, e, r) => {
|
|
|
4651
4651
|
type: "button",
|
|
4652
4652
|
variant: "ghost",
|
|
4653
4653
|
"aria-label": "Clear value",
|
|
4654
|
-
className:
|
|
4654
|
+
className: k(
|
|
4655
4655
|
"ms-2",
|
|
4656
4656
|
o.value.length === 0 ? "opacity-0 pointer-events-none" : "opacity-100"
|
|
4657
4657
|
),
|
|
@@ -4664,7 +4664,7 @@ const Wc = (t, e, r) => {
|
|
|
4664
4664
|
)
|
|
4665
4665
|
] }) })
|
|
4666
4666
|
] }, a.id)) }) });
|
|
4667
|
-
},
|
|
4667
|
+
}, Qc = ({
|
|
4668
4668
|
control: t
|
|
4669
4669
|
}) => {
|
|
4670
4670
|
const { fields: e } = sr({
|
|
@@ -4737,7 +4737,7 @@ const Wc = (t, e, r) => {
|
|
|
4737
4737
|
type: "button",
|
|
4738
4738
|
variant: "ghost",
|
|
4739
4739
|
"aria-label": "Clear value",
|
|
4740
|
-
className:
|
|
4740
|
+
className: k(
|
|
4741
4741
|
"ms-2",
|
|
4742
4742
|
n.value.length === 0 ? "opacity-0 pointer-events-none" : "opacity-100"
|
|
4743
4743
|
),
|
|
@@ -4751,7 +4751,7 @@ const Wc = (t, e, r) => {
|
|
|
4751
4751
|
)
|
|
4752
4752
|
] }) })
|
|
4753
4753
|
] }, i.id)) }) }) });
|
|
4754
|
-
}, ut = "__none",
|
|
4754
|
+
}, ut = "__none", Yc = ar(
|
|
4755
4755
|
/* GraphQL */
|
|
4756
4756
|
`
|
|
4757
4757
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4761,7 +4761,7 @@ const Wc = (t, e, r) => {
|
|
|
4761
4761
|
}
|
|
4762
4762
|
`
|
|
4763
4763
|
);
|
|
4764
|
-
function
|
|
4764
|
+
function Xc(t) {
|
|
4765
4765
|
var r;
|
|
4766
4766
|
return (r = Object.entries({
|
|
4767
4767
|
"application/json": "json",
|
|
@@ -4776,7 +4776,7 @@ function Qc(t) {
|
|
|
4776
4776
|
([a]) => t.includes(a)
|
|
4777
4777
|
)) == null ? void 0 : r[0][1];
|
|
4778
4778
|
}
|
|
4779
|
-
const
|
|
4779
|
+
const Zc = {
|
|
4780
4780
|
200: "OK",
|
|
4781
4781
|
201: "Created",
|
|
4782
4782
|
202: "Accepted",
|
|
@@ -4787,7 +4787,7 @@ const Yc = {
|
|
|
4787
4787
|
404: "Not Found",
|
|
4788
4788
|
405: "Method Not Allowed",
|
|
4789
4789
|
500: "Internal Server Error"
|
|
4790
|
-
},
|
|
4790
|
+
}, eu = ({
|
|
4791
4791
|
url: t,
|
|
4792
4792
|
method: e,
|
|
4793
4793
|
headers: r = [{ name: "", value: "" }],
|
|
@@ -4796,7 +4796,7 @@ const Yc = {
|
|
|
4796
4796
|
hasParams: o
|
|
4797
4797
|
}) => {
|
|
4798
4798
|
var S, j, T;
|
|
4799
|
-
const n = Sn(), [s] =
|
|
4799
|
+
const n = Sn(), [s] = ao({ query: Yc, variables: n }), { register: l, control: c, handleSubmit: f, watch: p, ...d } = lo({
|
|
4800
4800
|
defaultValues: {
|
|
4801
4801
|
body: "",
|
|
4802
4802
|
queryParams: a,
|
|
@@ -4804,16 +4804,16 @@ const Yc = {
|
|
|
4804
4804
|
pathParams: i,
|
|
4805
4805
|
identity: ut
|
|
4806
4806
|
}
|
|
4807
|
-
}), h = p(), m =
|
|
4807
|
+
}), h = p(), m = go(), y = co({
|
|
4808
4808
|
mutationFn: async (w) => {
|
|
4809
|
-
var I, M,
|
|
4810
|
-
const E =
|
|
4809
|
+
var I, M, z;
|
|
4810
|
+
const E = Jc(((I = s.data) == null ? void 0 : I.schema.url) ?? "", t, w), A = performance.now(), _ = new Request(E, {
|
|
4811
4811
|
method: e.toUpperCase(),
|
|
4812
4812
|
headers: Object.fromEntries(
|
|
4813
4813
|
w.headers.filter((H) => H.name).map((H) => [H.name, H.value])
|
|
4814
4814
|
)
|
|
4815
4815
|
});
|
|
4816
|
-
w.identity !== ut && ((
|
|
4816
|
+
w.identity !== ut && ((z = (M = m.data) == null ? void 0 : M.find((H) => H.id === w.identity)) == null || z.authorizeRequest(_));
|
|
4817
4817
|
const D = await fetch(_), Q = await D.text();
|
|
4818
4818
|
return {
|
|
4819
4819
|
status: D.status,
|
|
@@ -4836,7 +4836,7 @@ const Yc = {
|
|
|
4836
4836
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
4837
4837
|
] }, w + E)
|
|
4838
4838
|
);
|
|
4839
|
-
}), x =
|
|
4839
|
+
}), x = Xc(
|
|
4840
4840
|
((S = y.data) == null ? void 0 : S.headers.get("Content-Type")) ?? ""
|
|
4841
4841
|
), g = Array.from(((j = y.data) == null ? void 0 : j.headers.entries()) ?? []), b = h.queryParams.filter((w) => w.active).map((w) => /* @__PURE__ */ u.jsxs(at, { children: [
|
|
4842
4842
|
w.name,
|
|
@@ -4844,7 +4844,7 @@ const Yc = {
|
|
|
4844
4844
|
w.value,
|
|
4845
4845
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
4846
4846
|
] }, w.name));
|
|
4847
|
-
return /* @__PURE__ */ u.jsx(
|
|
4847
|
+
return /* @__PURE__ */ u.jsx(uo, { register: l, control: c, handleSubmit: f, watch: p, ...d, children: /* @__PURE__ */ u.jsx("form", { onSubmit: f((w) => y.mutateAsync(w)), children: /* @__PURE__ */ u.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
4848
4848
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4 p-8 bg-muted/50 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
|
|
4849
4849
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-stretch", children: [
|
|
4850
4850
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md border-border", children: [
|
|
@@ -4880,13 +4880,13 @@ const Yc = {
|
|
|
4880
4880
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
4881
4881
|
"Auth:",
|
|
4882
4882
|
/* @__PURE__ */ u.jsxs(
|
|
4883
|
-
|
|
4883
|
+
fo,
|
|
4884
4884
|
{
|
|
4885
4885
|
onValueChange: (w) => d.setValue("identity", w),
|
|
4886
4886
|
defaultValue: h.identity,
|
|
4887
4887
|
children: [
|
|
4888
|
-
/* @__PURE__ */ u.jsx(
|
|
4889
|
-
/* @__PURE__ */ u.jsxs(
|
|
4888
|
+
/* @__PURE__ */ u.jsx(po, { className: "w-[180px] flex", children: m.isPending ? /* @__PURE__ */ u.jsx(Cr, {}) : /* @__PURE__ */ u.jsx(ho, {}) }),
|
|
4889
|
+
/* @__PURE__ */ u.jsxs(mo, { align: "center", children: [
|
|
4890
4890
|
/* @__PURE__ */ u.jsx(Nr, { value: ut, children: "None" }),
|
|
4891
4891
|
(T = m.data) == null ? void 0 : T.map((w) => /* @__PURE__ */ u.jsx(Nr, { value: w.id, children: w.label }, w.id))
|
|
4892
4892
|
] })
|
|
@@ -4895,15 +4895,15 @@ const Yc = {
|
|
|
4895
4895
|
)
|
|
4896
4896
|
] })
|
|
4897
4897
|
] }),
|
|
4898
|
-
/* @__PURE__ */ u.jsx(je, { value: "headers", children: /* @__PURE__ */ u.jsx(
|
|
4898
|
+
/* @__PURE__ */ u.jsx(je, { value: "headers", children: /* @__PURE__ */ u.jsx(Gc, { control: c, register: l }) }),
|
|
4899
4899
|
/* @__PURE__ */ u.jsxs(je, { value: "parameters", children: [
|
|
4900
4900
|
i.length > 0 && /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
4901
4901
|
/* @__PURE__ */ u.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
4902
|
-
/* @__PURE__ */ u.jsx(
|
|
4902
|
+
/* @__PURE__ */ u.jsx(Kc, { control: c, register: l })
|
|
4903
4903
|
] }),
|
|
4904
4904
|
a.length > 0 && /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
4905
4905
|
/* @__PURE__ */ u.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
4906
|
-
/* @__PURE__ */ u.jsx(
|
|
4906
|
+
/* @__PURE__ */ u.jsx(Qc, { control: c })
|
|
4907
4907
|
] })
|
|
4908
4908
|
] }),
|
|
4909
4909
|
/* @__PURE__ */ u.jsx(je, { value: "body", children: /* @__PURE__ */ u.jsx(
|
|
@@ -4921,7 +4921,7 @@ const Yc = {
|
|
|
4921
4921
|
"Status: ",
|
|
4922
4922
|
y.data.status,
|
|
4923
4923
|
" ",
|
|
4924
|
-
|
|
4924
|
+
Zc[y.data.status] ?? ""
|
|
4925
4925
|
] }),
|
|
4926
4926
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
4927
4927
|
"Time: ",
|
|
@@ -4959,11 +4959,11 @@ const Yc = {
|
|
|
4959
4959
|
] })
|
|
4960
4960
|
] }) : /* @__PURE__ */ u.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ u.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: y.isPending ? /* @__PURE__ */ u.jsx(Cr, {}) : "Send a request first to see the response here" }) }) })
|
|
4961
4961
|
] }) }) });
|
|
4962
|
-
},
|
|
4962
|
+
}, tu = (t) => {
|
|
4963
4963
|
const [e, r] = or(!1);
|
|
4964
|
-
return /* @__PURE__ */ u.jsxs(
|
|
4965
|
-
/* @__PURE__ */ u.jsx(
|
|
4966
|
-
|
|
4964
|
+
return /* @__PURE__ */ u.jsxs(Fc, { onOpenChange: (a) => r(a), children: [
|
|
4965
|
+
/* @__PURE__ */ u.jsx(Lc, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
4966
|
+
bo,
|
|
4967
4967
|
{
|
|
4968
4968
|
className: "cursor-pointer text-primary hover:text-primary/80",
|
|
4969
4969
|
size: 16
|
|
@@ -4975,13 +4975,13 @@ const Yc = {
|
|
|
4975
4975
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
4976
4976
|
"aria-describedby": void 0,
|
|
4977
4977
|
children: [
|
|
4978
|
-
/* @__PURE__ */ u.jsx(
|
|
4979
|
-
e && /* @__PURE__ */ u.jsx(
|
|
4978
|
+
/* @__PURE__ */ u.jsx(yo, { children: /* @__PURE__ */ u.jsx(qa, { children: "Playground" }) }),
|
|
4979
|
+
e && /* @__PURE__ */ u.jsx(eu, { ...t })
|
|
4980
4980
|
]
|
|
4981
4981
|
}
|
|
4982
4982
|
)
|
|
4983
4983
|
] });
|
|
4984
|
-
},
|
|
4984
|
+
}, ru = ({
|
|
4985
4985
|
operation: t
|
|
4986
4986
|
}) => {
|
|
4987
4987
|
var o, n, s, l;
|
|
@@ -5001,7 +5001,7 @@ const Yc = {
|
|
|
5001
5001
|
value: ""
|
|
5002
5002
|
})), i = ((l = t.parameters) == null ? void 0 : l.some((c) => c.in === "query" || c.in === "path")) ?? !1;
|
|
5003
5003
|
return /* @__PURE__ */ u.jsx(
|
|
5004
|
-
|
|
5004
|
+
tu,
|
|
5005
5005
|
{
|
|
5006
5006
|
method: t.method,
|
|
5007
5007
|
url: t.path,
|
|
@@ -5014,7 +5014,7 @@ const Yc = {
|
|
|
5014
5014
|
}, jr = ({ children: t, className: e }) => /* @__PURE__ */ u.jsx(
|
|
5015
5015
|
"div",
|
|
5016
5016
|
{
|
|
5017
|
-
className:
|
|
5017
|
+
className: k(
|
|
5018
5018
|
"rounded-lg overflow-hidden border dark:border-transparent",
|
|
5019
5019
|
e
|
|
5020
5020
|
),
|
|
@@ -5023,8 +5023,8 @@ const Yc = {
|
|
|
5023
5023
|
), wr = ({ children: t, className: e }) => /* @__PURE__ */ u.jsx(
|
|
5024
5024
|
"div",
|
|
5025
5025
|
{
|
|
5026
|
-
className:
|
|
5027
|
-
"border-b
|
|
5026
|
+
className: k(
|
|
5027
|
+
"border-b dark:border-zinc-600 bg-zinc-100 dark:bg-zinc-700 p-2",
|
|
5028
5028
|
e
|
|
5029
5029
|
),
|
|
5030
5030
|
children: t
|
|
@@ -5032,11 +5032,20 @@ const Yc = {
|
|
|
5032
5032
|
), Sr = ({ children: t, className: e }) => /* @__PURE__ */ u.jsx(
|
|
5033
5033
|
"div",
|
|
5034
5034
|
{
|
|
5035
|
-
className:
|
|
5035
|
+
className: k("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", e),
|
|
5036
5036
|
children: t
|
|
5037
5037
|
}
|
|
5038
|
-
),
|
|
5039
|
-
|
|
5038
|
+
), Ia = ({ children: t, className: e }) => /* @__PURE__ */ u.jsx(
|
|
5039
|
+
"div",
|
|
5040
|
+
{
|
|
5041
|
+
className: k(
|
|
5042
|
+
"border-t dark:border-zinc-600 bg-zinc-100 dark:bg-zinc-700 p-2",
|
|
5043
|
+
e
|
|
5044
|
+
),
|
|
5045
|
+
children: t
|
|
5046
|
+
}
|
|
5047
|
+
), nu = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Ve = (t, e) => t.example !== void 0 ? t.example : t.default !== void 0 ? t.default : t.examples && nu(t.examples) ? Object.values(t.examples)[0] : au(t);
|
|
5048
|
+
function au(t, e) {
|
|
5040
5049
|
const r = Object.entries(t.properties ?? {}).concat(
|
|
5041
5050
|
Object.entries(t.additionalProperties ?? {})
|
|
5042
5051
|
);
|
|
@@ -5051,7 +5060,7 @@ function ru(t, e) {
|
|
|
5051
5060
|
return a !== void 0 ? [a] : [];
|
|
5052
5061
|
}
|
|
5053
5062
|
}
|
|
5054
|
-
const
|
|
5063
|
+
const ou = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs(jr, { children: [
|
|
5055
5064
|
/* @__PURE__ */ u.jsx(wr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
5056
5065
|
/* @__PURE__ */ u.jsx(Sr, { children: /* @__PURE__ */ u.jsx(
|
|
5057
5066
|
Qe,
|
|
@@ -5067,7 +5076,7 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5067
5076
|
)
|
|
5068
5077
|
}
|
|
5069
5078
|
) })
|
|
5070
|
-
] }) }) : null,
|
|
5079
|
+
] }) }) : null, su = ({
|
|
5071
5080
|
responses: t
|
|
5072
5081
|
}) => {
|
|
5073
5082
|
var o, n;
|
|
@@ -5079,7 +5088,7 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5079
5088
|
"div",
|
|
5080
5089
|
{
|
|
5081
5090
|
onClick: () => r(l),
|
|
5082
|
-
className:
|
|
5091
|
+
className: k(
|
|
5083
5092
|
"text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer",
|
|
5084
5093
|
e === l ? "text-primary dark:text-inherit border-primary" : "hover:border-accent-foreground/25"
|
|
5085
5094
|
),
|
|
@@ -5088,30 +5097,27 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5088
5097
|
s.statusCode
|
|
5089
5098
|
)) })
|
|
5090
5099
|
] }),
|
|
5091
|
-
/* @__PURE__ */ u.
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
/* @__PURE__ */ u.jsx("hr", { className: "border-border my-1" }),
|
|
5102
|
-
/* @__PURE__ */ u.jsx("div", { className: "text-xs text-muted-foreground", children: t[e].description })
|
|
5103
|
-
] })
|
|
5100
|
+
/* @__PURE__ */ u.jsx(Sr, { children: i ? /* @__PURE__ */ u.jsx(
|
|
5101
|
+
Qe,
|
|
5102
|
+
{
|
|
5103
|
+
language: "json",
|
|
5104
|
+
noBackground: !0,
|
|
5105
|
+
className: "text-xs",
|
|
5106
|
+
code: JSON.stringify(Ve(i), null, 2)
|
|
5107
|
+
}
|
|
5108
|
+
) : /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground font-mono italic text-xs", children: "Empty Response" }) }),
|
|
5109
|
+
/* @__PURE__ */ u.jsx(Ia, { className: "flex justify-end text-xs", children: t[e].description })
|
|
5104
5110
|
] });
|
|
5105
|
-
},
|
|
5111
|
+
}, iu = ({
|
|
5106
5112
|
value: t,
|
|
5107
5113
|
onChange: e,
|
|
5108
5114
|
className: r,
|
|
5109
5115
|
options: a
|
|
5110
|
-
}) => /* @__PURE__ */ u.jsxs("div", { className:
|
|
5116
|
+
}) => /* @__PURE__ */ u.jsxs("div", { className: k("grid", r), children: [
|
|
5111
5117
|
/* @__PURE__ */ u.jsx(
|
|
5112
5118
|
"select",
|
|
5113
5119
|
{
|
|
5114
|
-
className:
|
|
5120
|
+
className: k(
|
|
5115
5121
|
"row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6",
|
|
5116
5122
|
"rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75"
|
|
5117
5123
|
),
|
|
@@ -5120,8 +5126,8 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5120
5126
|
children: a.map((i) => /* @__PURE__ */ u.jsx("option", { value: i.value, children: i.label }, i.value))
|
|
5121
5127
|
}
|
|
5122
5128
|
),
|
|
5123
|
-
/* @__PURE__ */ u.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ u.jsx(
|
|
5124
|
-
] }),
|
|
5129
|
+
/* @__PURE__ */ u.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ u.jsx(vo, { size: 14 }) })
|
|
5130
|
+
] }), lu = (t, e) => {
|
|
5125
5131
|
let r;
|
|
5126
5132
|
switch (e) {
|
|
5127
5133
|
case "shell":
|
|
@@ -5162,89 +5168,94 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5162
5168
|
break;
|
|
5163
5169
|
}
|
|
5164
5170
|
return r ? r[0] : "";
|
|
5165
|
-
},
|
|
5171
|
+
}, cu = ({
|
|
5166
5172
|
operation: t
|
|
5167
5173
|
}) => {
|
|
5168
|
-
var
|
|
5169
|
-
const e = Wa[t.method], [r, a] =
|
|
5170
|
-
|
|
5174
|
+
var c;
|
|
5175
|
+
const e = Wa[t.method], [r, a] = Qa(), [, i] = Za(), o = r.get("lang") ?? "shell", n = (c = t.requestBody) == null ? void 0 : c.content, s = t.path.split("/").map((f) => /* @__PURE__ */ u.jsxs(at, { children: [
|
|
5176
|
+
f.startsWith("{") && f.endsWith("}") ? /* @__PURE__ */ u.jsx(
|
|
5171
5177
|
jt,
|
|
5172
5178
|
{
|
|
5173
|
-
name:
|
|
5179
|
+
name: f.slice(1, -1),
|
|
5174
5180
|
backgroundOpacity: "0",
|
|
5175
|
-
slug: t.slug + "-" +
|
|
5176
|
-
children:
|
|
5181
|
+
slug: t.slug + "-" + f.slice(1, -1).toLocaleLowerCase(),
|
|
5182
|
+
children: f
|
|
5177
5183
|
}
|
|
5178
|
-
) :
|
|
5184
|
+
) : f,
|
|
5179
5185
|
"/",
|
|
5180
5186
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
5181
|
-
] },
|
|
5182
|
-
var
|
|
5183
|
-
const
|
|
5187
|
+
] }, f)), l = eo(() => {
|
|
5188
|
+
var d;
|
|
5189
|
+
const f = (d = n == null ? void 0 : n[0]) != null && d.schema ? Ve(n[0].schema) : void 0, p = new Sc(
|
|
5184
5190
|
{
|
|
5185
5191
|
method: t.method.toLocaleUpperCase(),
|
|
5186
5192
|
url: t.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
5187
5193
|
headers: [{ name: "Authorization", value: "Bearer <token>" }],
|
|
5188
|
-
postData:
|
|
5189
|
-
text: JSON.stringify(
|
|
5194
|
+
postData: f ? {
|
|
5195
|
+
text: JSON.stringify(f, null, 2),
|
|
5190
5196
|
mimeType: "application/json"
|
|
5191
5197
|
} : {}
|
|
5192
5198
|
}
|
|
5193
5199
|
// 👈 never touch this
|
|
5194
5200
|
);
|
|
5195
|
-
return
|
|
5196
|
-
}, [
|
|
5201
|
+
return lu(p, o);
|
|
5202
|
+
}, [o, t.method, t.path, n]);
|
|
5197
5203
|
return /* @__PURE__ */ u.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5198
5204
|
/* @__PURE__ */ u.jsxs(jr, { children: [
|
|
5199
|
-
/* @__PURE__ */ u.jsxs(wr, { className: "flex justify-between items-center flex-nowrap
|
|
5205
|
+
/* @__PURE__ */ u.jsxs(wr, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
|
|
5200
5206
|
/* @__PURE__ */ u.jsxs("span", { className: "font-mono break-words", children: [
|
|
5201
|
-
/* @__PURE__ */ u.jsx("span", { className:
|
|
5207
|
+
/* @__PURE__ */ u.jsx("span", { className: k("font-semibold", e), children: t.method.toLocaleUpperCase() }),
|
|
5202
5208
|
" ",
|
|
5203
|
-
|
|
5209
|
+
s
|
|
5204
5210
|
] }),
|
|
5205
|
-
/* @__PURE__ */ u.
|
|
5206
|
-
/* @__PURE__ */ u.jsx(
|
|
5207
|
-
ou,
|
|
5208
|
-
{
|
|
5209
|
-
className: "self-start",
|
|
5210
|
-
value: i,
|
|
5211
|
-
onChange: (c) => a({ lang: c.target.value }),
|
|
5212
|
-
options: [
|
|
5213
|
-
{ value: "shell", label: "cURL" },
|
|
5214
|
-
{ value: "js", label: "Javascript" },
|
|
5215
|
-
{ value: "python", label: "Python" },
|
|
5216
|
-
{ value: "java", label: "Java" },
|
|
5217
|
-
{ value: "go", label: "Go" },
|
|
5218
|
-
{ value: "csharp", label: "C#" },
|
|
5219
|
-
{ value: "kotlin", label: "Kotlin" },
|
|
5220
|
-
{ value: "objc", label: "Objective C" },
|
|
5221
|
-
{ value: "php", label: "PHP" },
|
|
5222
|
-
{ value: "ruby", label: "Ruby" },
|
|
5223
|
-
{ value: "swift", label: "Swift" }
|
|
5224
|
-
]
|
|
5225
|
-
}
|
|
5226
|
-
),
|
|
5227
|
-
/* @__PURE__ */ u.jsx(eu, { operation: t })
|
|
5228
|
-
] })
|
|
5211
|
+
/* @__PURE__ */ u.jsx(ru, { operation: t })
|
|
5229
5212
|
] }),
|
|
5230
5213
|
/* @__PURE__ */ u.jsx(Sr, { children: /* @__PURE__ */ u.jsx(
|
|
5231
5214
|
Qe,
|
|
5232
5215
|
{
|
|
5233
|
-
language:
|
|
5216
|
+
language: o,
|
|
5234
5217
|
noBackground: !0,
|
|
5235
5218
|
className: "text-xs",
|
|
5236
|
-
code:
|
|
5219
|
+
code: l
|
|
5237
5220
|
}
|
|
5238
|
-
) })
|
|
5221
|
+
) }),
|
|
5222
|
+
/* @__PURE__ */ u.jsxs(Ia, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
|
|
5223
|
+
/* @__PURE__ */ u.jsx("span", { children: "Show example in" }),
|
|
5224
|
+
/* @__PURE__ */ u.jsx(
|
|
5225
|
+
iu,
|
|
5226
|
+
{
|
|
5227
|
+
className: "self-start max-w-[150px]",
|
|
5228
|
+
value: o,
|
|
5229
|
+
onChange: (f) => {
|
|
5230
|
+
i(() => {
|
|
5231
|
+
a({ lang: f.target.value });
|
|
5232
|
+
});
|
|
5233
|
+
},
|
|
5234
|
+
options: [
|
|
5235
|
+
{ value: "shell", label: "cURL" },
|
|
5236
|
+
{ value: "js", label: "Javascript" },
|
|
5237
|
+
{ value: "python", label: "Python" },
|
|
5238
|
+
{ value: "java", label: "Java" },
|
|
5239
|
+
{ value: "go", label: "Go" },
|
|
5240
|
+
{ value: "csharp", label: "C#" },
|
|
5241
|
+
{ value: "kotlin", label: "Kotlin" },
|
|
5242
|
+
{ value: "objc", label: "Objective C" },
|
|
5243
|
+
{ value: "php", label: "PHP" },
|
|
5244
|
+
{ value: "ruby", label: "Ruby" },
|
|
5245
|
+
{ value: "swift", label: "Swift" }
|
|
5246
|
+
]
|
|
5247
|
+
}
|
|
5248
|
+
)
|
|
5249
|
+
] })
|
|
5239
5250
|
] }),
|
|
5240
|
-
|
|
5241
|
-
t.responses.length > 0 && /* @__PURE__ */ u.jsx(
|
|
5251
|
+
n && /* @__PURE__ */ u.jsx(ou, { content: n }),
|
|
5252
|
+
t.responses.length > 0 && /* @__PURE__ */ u.jsx(su, { responses: t.responses })
|
|
5242
5253
|
] });
|
|
5243
|
-
},
|
|
5254
|
+
}, uu = ["path", "query", "header", "cookie"], fu = ({
|
|
5244
5255
|
operationFragment: t
|
|
5245
5256
|
}) => {
|
|
5246
5257
|
var i, o, n;
|
|
5247
|
-
const e =
|
|
5258
|
+
const e = $o(du, t), r = Bn(
|
|
5248
5259
|
e.parameters ?? [],
|
|
5249
5260
|
(s) => s.in
|
|
5250
5261
|
), a = e.responses.at(0);
|
|
@@ -5262,11 +5273,11 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5262
5273
|
content: e.description
|
|
5263
5274
|
}
|
|
5264
5275
|
),
|
|
5265
|
-
e.parameters && e.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children:
|
|
5276
|
+
e.parameters && e.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children: uu.flatMap(
|
|
5266
5277
|
(s) => {
|
|
5267
5278
|
var l;
|
|
5268
5279
|
return (l = r[s]) != null && l.length ? /* @__PURE__ */ u.jsx(
|
|
5269
|
-
|
|
5280
|
+
Po,
|
|
5270
5281
|
{
|
|
5271
5282
|
id: e.slug,
|
|
5272
5283
|
parameters: r[s],
|
|
@@ -5309,12 +5320,12 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5309
5320
|
] })
|
|
5310
5321
|
] })
|
|
5311
5322
|
] }),
|
|
5312
|
-
/* @__PURE__ */ u.jsx(
|
|
5323
|
+
/* @__PURE__ */ u.jsx(cu, { operation: e })
|
|
5313
5324
|
]
|
|
5314
5325
|
},
|
|
5315
5326
|
e.operationId
|
|
5316
5327
|
);
|
|
5317
|
-
},
|
|
5328
|
+
}, du = ar(
|
|
5318
5329
|
/* GraphQL */
|
|
5319
5330
|
`
|
|
5320
5331
|
fragment OperationsFragment on OperationItem {
|
|
@@ -5365,7 +5376,7 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5365
5376
|
}
|
|
5366
5377
|
}
|
|
5367
5378
|
`
|
|
5368
|
-
),
|
|
5379
|
+
), pu = ar(
|
|
5369
5380
|
/* GraphQL */
|
|
5370
5381
|
`
|
|
5371
5382
|
query AllOperations($input: JSON!, $type: SchemaType!) {
|
|
@@ -5385,20 +5396,20 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5385
5396
|
}
|
|
5386
5397
|
}
|
|
5387
5398
|
`
|
|
5388
|
-
),
|
|
5399
|
+
), hu = { suspense: !0 }, Eu = () => {
|
|
5389
5400
|
var i;
|
|
5390
|
-
const { type: t, input: e } = Sn(), [r] =
|
|
5391
|
-
query:
|
|
5401
|
+
const { type: t, input: e } = Sn(), [r] = oo({
|
|
5402
|
+
query: pu,
|
|
5392
5403
|
variables: { type: t, input: e },
|
|
5393
|
-
context:
|
|
5404
|
+
context: hu
|
|
5394
5405
|
}), a = (i = r.error) == null ? void 0 : i.graphQLErrors.at(0);
|
|
5395
5406
|
return a ? /* @__PURE__ */ u.jsx(
|
|
5396
|
-
|
|
5407
|
+
Ja,
|
|
5397
5408
|
{
|
|
5398
5409
|
category: "Error",
|
|
5399
5410
|
title: "Schema cannot be displayed",
|
|
5400
5411
|
message: /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
5401
|
-
/* @__PURE__ */ u.jsxs(
|
|
5412
|
+
/* @__PURE__ */ u.jsxs(za, { className: "mb-4", children: [
|
|
5402
5413
|
"Check your configuration value ",
|
|
5403
5414
|
/* @__PURE__ */ u.jsx(Or, { children: "apis.type" }),
|
|
5404
5415
|
" ",
|
|
@@ -5414,7 +5425,7 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5414
5425
|
/* @__PURE__ */ u.jsxs(
|
|
5415
5426
|
"div",
|
|
5416
5427
|
{
|
|
5417
|
-
className:
|
|
5428
|
+
className: k(
|
|
5418
5429
|
dt,
|
|
5419
5430
|
"mb-16 max-w-full prose-img:max-w-prose"
|
|
5420
5431
|
),
|
|
@@ -5434,8 +5445,8 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5434
5445
|
content: o.description
|
|
5435
5446
|
}
|
|
5436
5447
|
),
|
|
5437
|
-
/* @__PURE__ */ u.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ u.jsx(
|
|
5438
|
-
|
|
5448
|
+
/* @__PURE__ */ u.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ u.jsx(no, { children: o.operations.map((n) => /* @__PURE__ */ u.jsx(
|
|
5449
|
+
fu,
|
|
5439
5450
|
{
|
|
5440
5451
|
operationFragment: n
|
|
5441
5452
|
},
|
|
@@ -5445,7 +5456,7 @@ const nu = ({ content: t }) => t.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5445
5456
|
] }) : null;
|
|
5446
5457
|
};
|
|
5447
5458
|
export {
|
|
5448
|
-
|
|
5449
|
-
|
|
5459
|
+
Eu as OperationList,
|
|
5460
|
+
du as OperationsFragment
|
|
5450
5461
|
};
|
|
5451
|
-
//# sourceMappingURL=OperationList-
|
|
5462
|
+
//# sourceMappingURL=OperationList-Cv0GStt7.js.map
|