@motiadev/plugin-endpoint 0.9.3-beta.148 → 0.9.4-beta.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +31 -31
- package/dist/index.js +531 -531
- package/dist/play/side-panel.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as z from "react";
|
|
2
|
-
import W, { forwardRef as Df, createElement as gs, memo as he, useMemo as me, useState as $, useEffect as ee, useCallback as te, createContext as
|
|
3
|
-
import { Input as fs, cn as se, Panel as Os, Tabs as xs, TabsList as Ls, TabsTrigger as Me, useThemeStore as Ds, TabsContent as Fe, Sidebar as
|
|
4
|
-
import { useStreamGroup as
|
|
2
|
+
import W, { forwardRef as Df, createElement as gs, memo as he, useMemo as me, useState as $, useEffect as ee, useCallback as te, createContext as Am, useContext as Ce, isValidElement as Rm, useRef as V, Fragment as _m } from "react";
|
|
3
|
+
import { Input as fs, cn as se, Panel as Os, Tabs as xs, TabsList as Ls, TabsTrigger as Me, useThemeStore as Ds, TabsContent as Fe, Sidebar as wm, Checkbox as Im, Button as be, BackgroundEffect as Nm, Badge as ll } from "@motiadev/ui";
|
|
4
|
+
import { useStreamGroup as km, useStreamItem as Cm } from "@motiadev/stream-client-react";
|
|
5
5
|
var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
-
function
|
|
6
|
+
function Om(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
9
|
var et = { exports: {} }, je = {};
|
|
@@ -17,7 +17,7 @@ var et = { exports: {} }, je = {};
|
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
19
|
var ul;
|
|
20
|
-
function
|
|
20
|
+
function xm() {
|
|
21
21
|
if (ul) return je;
|
|
22
22
|
ul = 1;
|
|
23
23
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -49,7 +49,7 @@ var Ge = {};
|
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
50
|
*/
|
|
51
51
|
var cl;
|
|
52
|
-
function
|
|
52
|
+
function Lm() {
|
|
53
53
|
return cl || (cl = 1, process.env.NODE_ENV !== "production" && function() {
|
|
54
54
|
function e(w) {
|
|
55
55
|
if (w == null) return null;
|
|
@@ -65,7 +65,7 @@ function xm() {
|
|
|
65
65
|
return "StrictMode";
|
|
66
66
|
case y:
|
|
67
67
|
return "Suspense";
|
|
68
|
-
case
|
|
68
|
+
case f:
|
|
69
69
|
return "SuspenseList";
|
|
70
70
|
case _:
|
|
71
71
|
return "Activity";
|
|
@@ -242,16 +242,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
242
242
|
function p(w) {
|
|
243
243
|
typeof w == "object" && w !== null && w.$$typeof === h && w._store && (w._store.validated = 1);
|
|
244
244
|
}
|
|
245
|
-
var
|
|
245
|
+
var g = W, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), m = Symbol.for("react.consumer"), E = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), O = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, q = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
246
246
|
return null;
|
|
247
247
|
};
|
|
248
|
-
|
|
248
|
+
g = {
|
|
249
249
|
react_stack_bottom_frame: function(w) {
|
|
250
250
|
return w();
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
|
-
var D, U = {}, P =
|
|
254
|
-
|
|
253
|
+
var D, U = {}, P = g.react_stack_bottom_frame.bind(
|
|
254
|
+
g,
|
|
255
255
|
i
|
|
256
256
|
)(), M = j(n(i)), B = {};
|
|
257
257
|
Ge.Fragment = b, Ge.jsx = function(w, k, x, N, L) {
|
|
@@ -282,23 +282,23 @@ React keys must be passed directly to JSX without using spread:
|
|
|
282
282
|
}()), Ge;
|
|
283
283
|
}
|
|
284
284
|
var dl;
|
|
285
|
-
function
|
|
286
|
-
return dl || (dl = 1, process.env.NODE_ENV === "production" ? et.exports =
|
|
285
|
+
function Dm() {
|
|
286
|
+
return dl || (dl = 1, process.env.NODE_ENV === "production" ? et.exports = xm() : et.exports = Lm()), et.exports;
|
|
287
287
|
}
|
|
288
|
-
var d =
|
|
288
|
+
var d = Dm();
|
|
289
289
|
/**
|
|
290
290
|
* @license lucide-react v0.545.0 - ISC
|
|
291
291
|
*
|
|
292
292
|
* This source code is licensed under the ISC license.
|
|
293
293
|
* See the LICENSE file in the root directory of this source tree.
|
|
294
294
|
*/
|
|
295
|
-
const
|
|
295
|
+
const Mm = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Fm = (e) => e.replace(
|
|
296
296
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
297
297
|
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
298
298
|
), pl = (e) => {
|
|
299
|
-
const t =
|
|
299
|
+
const t = Fm(e);
|
|
300
300
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
301
|
-
}, Mf = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(),
|
|
301
|
+
}, Mf = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Um = (e) => {
|
|
302
302
|
for (const t in e)
|
|
303
303
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
304
304
|
return !0;
|
|
@@ -309,7 +309,7 @@ const Dm = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Mm = (
|
|
|
309
309
|
* This source code is licensed under the ISC license.
|
|
310
310
|
* See the LICENSE file in the root directory of this source tree.
|
|
311
311
|
*/
|
|
312
|
-
var
|
|
312
|
+
var Pm = {
|
|
313
313
|
xmlns: "http://www.w3.org/2000/svg",
|
|
314
314
|
width: 24,
|
|
315
315
|
height: 24,
|
|
@@ -326,7 +326,7 @@ var Um = {
|
|
|
326
326
|
* This source code is licensed under the ISC license.
|
|
327
327
|
* See the LICENSE file in the root directory of this source tree.
|
|
328
328
|
*/
|
|
329
|
-
const
|
|
329
|
+
const Bm = Df(
|
|
330
330
|
({
|
|
331
331
|
color: e = "currentColor",
|
|
332
332
|
size: t = 24,
|
|
@@ -340,13 +340,13 @@ const Pm = Df(
|
|
|
340
340
|
"svg",
|
|
341
341
|
{
|
|
342
342
|
ref: l,
|
|
343
|
-
...
|
|
343
|
+
...Pm,
|
|
344
344
|
width: t,
|
|
345
345
|
height: t,
|
|
346
346
|
stroke: e,
|
|
347
347
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
348
348
|
className: Mf("lucide", a),
|
|
349
|
-
...!i && !
|
|
349
|
+
...!i && !Um(s) && { "aria-hidden": "true" },
|
|
350
350
|
...s
|
|
351
351
|
},
|
|
352
352
|
[
|
|
@@ -363,11 +363,11 @@ const Pm = Df(
|
|
|
363
363
|
*/
|
|
364
364
|
const oe = (e, t) => {
|
|
365
365
|
const r = Df(
|
|
366
|
-
({ className: n, ...a }, i) => gs(
|
|
366
|
+
({ className: n, ...a }, i) => gs(Bm, {
|
|
367
367
|
ref: i,
|
|
368
368
|
iconNode: t,
|
|
369
369
|
className: Mf(
|
|
370
|
-
`lucide-${
|
|
370
|
+
`lucide-${Mm(pl(e))}`,
|
|
371
371
|
`lucide-${e}`,
|
|
372
372
|
n
|
|
373
373
|
),
|
|
@@ -382,7 +382,7 @@ const oe = (e, t) => {
|
|
|
382
382
|
* This source code is licensed under the ISC license.
|
|
383
383
|
* See the LICENSE file in the root directory of this source tree.
|
|
384
384
|
*/
|
|
385
|
-
const
|
|
385
|
+
const qm = [
|
|
386
386
|
[
|
|
387
387
|
"path",
|
|
388
388
|
{
|
|
@@ -390,78 +390,78 @@ const Bm = [
|
|
|
390
390
|
key: "k3hazp"
|
|
391
391
|
}
|
|
392
392
|
]
|
|
393
|
-
],
|
|
393
|
+
], jm = oe("book", qm);
|
|
394
394
|
/**
|
|
395
395
|
* @license lucide-react v0.545.0 - ISC
|
|
396
396
|
*
|
|
397
397
|
* This source code is licensed under the ISC license.
|
|
398
398
|
* See the LICENSE file in the root directory of this source tree.
|
|
399
399
|
*/
|
|
400
|
-
const
|
|
400
|
+
const Gm = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ff = oe("check", Gm);
|
|
401
401
|
/**
|
|
402
402
|
* @license lucide-react v0.545.0 - ISC
|
|
403
403
|
*
|
|
404
404
|
* This source code is licensed under the ISC license.
|
|
405
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
406
|
*/
|
|
407
|
-
const
|
|
407
|
+
const $m = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Hm = oe("chevron-down", $m);
|
|
408
408
|
/**
|
|
409
409
|
* @license lucide-react v0.545.0 - ISC
|
|
410
410
|
*
|
|
411
411
|
* This source code is licensed under the ISC license.
|
|
412
412
|
* See the LICENSE file in the root directory of this source tree.
|
|
413
413
|
*/
|
|
414
|
-
const
|
|
414
|
+
const zm = [
|
|
415
415
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
416
416
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
417
417
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
418
|
-
],
|
|
418
|
+
], Vm = oe("circle-alert", zm);
|
|
419
419
|
/**
|
|
420
420
|
* @license lucide-react v0.545.0 - ISC
|
|
421
421
|
*
|
|
422
422
|
* This source code is licensed under the ISC license.
|
|
423
423
|
* See the LICENSE file in the root directory of this source tree.
|
|
424
424
|
*/
|
|
425
|
-
const
|
|
425
|
+
const Wm = [
|
|
426
426
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
427
427
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
428
428
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
429
|
-
],
|
|
429
|
+
], Ym = oe("circle-x", Wm);
|
|
430
430
|
/**
|
|
431
431
|
* @license lucide-react v0.545.0 - ISC
|
|
432
432
|
*
|
|
433
433
|
* This source code is licensed under the ISC license.
|
|
434
434
|
* See the LICENSE file in the root directory of this source tree.
|
|
435
435
|
*/
|
|
436
|
-
const
|
|
436
|
+
const Km = [
|
|
437
437
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
438
438
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
439
|
-
],
|
|
439
|
+
], Zm = oe("copy", Km);
|
|
440
440
|
/**
|
|
441
441
|
* @license lucide-react v0.545.0 - ISC
|
|
442
442
|
*
|
|
443
443
|
* This source code is licensed under the ISC license.
|
|
444
444
|
* See the LICENSE file in the root directory of this source tree.
|
|
445
445
|
*/
|
|
446
|
-
const
|
|
446
|
+
const Xm = [
|
|
447
447
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
448
448
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
449
449
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
450
|
-
],
|
|
450
|
+
], Jm = oe("download", Xm);
|
|
451
451
|
/**
|
|
452
452
|
* @license lucide-react v0.545.0 - ISC
|
|
453
453
|
*
|
|
454
454
|
* This source code is licensed under the ISC license.
|
|
455
455
|
* See the LICENSE file in the root directory of this source tree.
|
|
456
456
|
*/
|
|
457
|
-
const
|
|
457
|
+
const Qm = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], eb = oe("loader-circle", Qm);
|
|
458
458
|
/**
|
|
459
459
|
* @license lucide-react v0.545.0 - ISC
|
|
460
460
|
*
|
|
461
461
|
* This source code is licensed under the ISC license.
|
|
462
462
|
* See the LICENSE file in the root directory of this source tree.
|
|
463
463
|
*/
|
|
464
|
-
const
|
|
464
|
+
const tb = [
|
|
465
465
|
[
|
|
466
466
|
"path",
|
|
467
467
|
{
|
|
@@ -469,51 +469,51 @@ const eb = [
|
|
|
469
469
|
key: "10ikf1"
|
|
470
470
|
}
|
|
471
471
|
]
|
|
472
|
-
],
|
|
472
|
+
], rb = oe("play", tb);
|
|
473
473
|
/**
|
|
474
474
|
* @license lucide-react v0.545.0 - ISC
|
|
475
475
|
*
|
|
476
476
|
* This source code is licensed under the ISC license.
|
|
477
477
|
* See the LICENSE file in the root directory of this source tree.
|
|
478
478
|
*/
|
|
479
|
-
const
|
|
479
|
+
const nb = [
|
|
480
480
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
481
481
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
482
|
-
], Uf = oe("plus",
|
|
482
|
+
], Uf = oe("plus", nb);
|
|
483
483
|
/**
|
|
484
484
|
* @license lucide-react v0.545.0 - ISC
|
|
485
485
|
*
|
|
486
486
|
* This source code is licensed under the ISC license.
|
|
487
487
|
* See the LICENSE file in the root directory of this source tree.
|
|
488
488
|
*/
|
|
489
|
-
const
|
|
489
|
+
const ab = [
|
|
490
490
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
491
491
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
492
|
-
],
|
|
492
|
+
], ib = oe("search", ab);
|
|
493
493
|
/**
|
|
494
494
|
* @license lucide-react v0.545.0 - ISC
|
|
495
495
|
*
|
|
496
496
|
* This source code is licensed under the ISC license.
|
|
497
497
|
* See the LICENSE file in the root directory of this source tree.
|
|
498
498
|
*/
|
|
499
|
-
const
|
|
499
|
+
const ob = [
|
|
500
500
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
501
501
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
502
502
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
503
503
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
504
504
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
505
|
-
],
|
|
505
|
+
], sb = oe("trash-2", ob);
|
|
506
506
|
/**
|
|
507
507
|
* @license lucide-react v0.545.0 - ISC
|
|
508
508
|
*
|
|
509
509
|
* This source code is licensed under the ISC license.
|
|
510
510
|
* See the LICENSE file in the root directory of this source tree.
|
|
511
511
|
*/
|
|
512
|
-
const
|
|
512
|
+
const lb = [
|
|
513
513
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
514
514
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
515
|
-
], ct = oe("x",
|
|
516
|
-
/* @__PURE__ */ d.jsx(
|
|
515
|
+
], ct = oe("x", lb), ub = ({ value: e, onChange: t, onClear: r }) => /* @__PURE__ */ d.jsx("div", { className: "p-2 border-b gap-4", "data-testid": "endpoints-search-container", children: /* @__PURE__ */ d.jsxs("div", { className: "relative", children: [
|
|
516
|
+
/* @__PURE__ */ d.jsx(ib, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
|
|
517
517
|
/* @__PURE__ */ d.jsx(
|
|
518
518
|
fs,
|
|
519
519
|
{
|
|
@@ -537,7 +537,7 @@ const sb = [
|
|
|
537
537
|
onClick: r
|
|
538
538
|
}
|
|
539
539
|
)
|
|
540
|
-
] }) }),
|
|
540
|
+
] }) }), cb = (e) => {
|
|
541
541
|
switch (e.toUpperCase()) {
|
|
542
542
|
case "POST":
|
|
543
543
|
return "bg-[#258DC3]/15 text-[#258DC3]";
|
|
@@ -556,8 +556,8 @@ const sb = [
|
|
|
556
556
|
default:
|
|
557
557
|
return "bg-[#258DC3]/15 text-[#258DC3]";
|
|
558
558
|
}
|
|
559
|
-
},
|
|
560
|
-
const n = "rounded-lg px-2 py-0.5 text-xs font-mono font-bold transition-colors", a =
|
|
559
|
+
}, db = he(({ className: e, variant: t, ...r }) => {
|
|
560
|
+
const n = "rounded-lg px-2 py-0.5 text-xs font-mono font-bold transition-colors", a = cb(t);
|
|
561
561
|
return /* @__PURE__ */ d.jsx("div", { className: se(n, a, e), ...r });
|
|
562
562
|
}), gl = () => /* @__PURE__ */ d.jsx("div", { className: "text-muted-foreground", children: "/" }), Ms = ({ method: e, path: t }) => {
|
|
563
563
|
const r = me(() => {
|
|
@@ -578,13 +578,13 @@ const sb = [
|
|
|
578
578
|
});
|
|
579
579
|
}, [t]);
|
|
580
580
|
return /* @__PURE__ */ d.jsxs("div", { className: "grid grid-cols-[auto_1fr] gap-2 items-center", children: [
|
|
581
|
-
/* @__PURE__ */ d.jsx(
|
|
581
|
+
/* @__PURE__ */ d.jsx(db, { variant: e, children: e }),
|
|
582
582
|
/* @__PURE__ */ d.jsxs("span", { className: "font-mono font-bold whitespace-nowrap flex flex-row gap-2 items-center truncate", children: [
|
|
583
583
|
/* @__PURE__ */ d.jsx(gl, {}),
|
|
584
584
|
r
|
|
585
585
|
] })
|
|
586
586
|
] });
|
|
587
|
-
},
|
|
587
|
+
}, pb = ({ endpoint: e, isSelected: t, isLast: r, onSelect: n }) => /* @__PURE__ */ d.jsxs(
|
|
588
588
|
"div",
|
|
589
589
|
{
|
|
590
590
|
"data-testid": `endpoint-${e.method}-${e.path}`,
|
|
@@ -613,7 +613,7 @@ const sb = [
|
|
|
613
613
|
] }) })
|
|
614
614
|
]
|
|
615
615
|
}
|
|
616
|
-
),
|
|
616
|
+
), gb = ({
|
|
617
617
|
flow: e,
|
|
618
618
|
endpoints: t,
|
|
619
619
|
isOpen: r,
|
|
@@ -634,7 +634,7 @@ const sb = [
|
|
|
634
634
|
children: [
|
|
635
635
|
/* @__PURE__ */ d.jsxs("div", { className: "grid grid-cols-1", children: [
|
|
636
636
|
/* @__PURE__ */ d.jsx(
|
|
637
|
-
|
|
637
|
+
Hm,
|
|
638
638
|
{
|
|
639
639
|
className: se("w-4 h-4 transition-transform duration-300 text-[#555]", { "rotate-180 mt-2.5": r }),
|
|
640
640
|
strokeWidth: 1.5
|
|
@@ -664,7 +664,7 @@ const sb = [
|
|
|
664
664
|
}
|
|
665
665
|
),
|
|
666
666
|
/* @__PURE__ */ d.jsx("div", { className: se("grid grid-cols-1 items-center justify-center", { hidden: !r }), children: t.map((l, c) => /* @__PURE__ */ d.jsx(
|
|
667
|
-
|
|
667
|
+
pb,
|
|
668
668
|
{
|
|
669
669
|
endpoint: l,
|
|
670
670
|
isSelected: o === l.id,
|
|
@@ -678,13 +678,13 @@ const sb = [
|
|
|
678
678
|
const r = /* @__PURE__ */ new Set(), n = (c, u) => {
|
|
679
679
|
const p = typeof c == "function" ? c(t) : c;
|
|
680
680
|
if (!Object.is(p, t)) {
|
|
681
|
-
const
|
|
682
|
-
t = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((h) => h(t,
|
|
681
|
+
const g = t;
|
|
682
|
+
t = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((h) => h(t, g));
|
|
683
683
|
}
|
|
684
684
|
}, a = () => t, s = { setState: n, getState: a, getInitialState: () => l, subscribe: (c) => (r.add(c), () => r.delete(c)) }, l = t = e(n, a, s);
|
|
685
685
|
return s;
|
|
686
|
-
},
|
|
687
|
-
function
|
|
686
|
+
}, fb = (e) => e ? fl(e) : fl, mb = (e) => e;
|
|
687
|
+
function bb(e, t = mb) {
|
|
688
688
|
const r = W.useSyncExternalStore(
|
|
689
689
|
e.subscribe,
|
|
690
690
|
W.useCallback(() => t(e.getState()), [e, t]),
|
|
@@ -692,15 +692,15 @@ function mb(e, t = fb) {
|
|
|
692
692
|
);
|
|
693
693
|
return W.useDebugValue(r), r;
|
|
694
694
|
}
|
|
695
|
-
const
|
|
696
|
-
const t =
|
|
695
|
+
const hb = (e) => {
|
|
696
|
+
const t = fb(e), r = (n) => bb(t, n);
|
|
697
697
|
return Object.assign(r, t), r;
|
|
698
|
-
},
|
|
698
|
+
}, Eb = (e) => hb, ml = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Ve = /* @__PURE__ */ new Map(), tt = (e) => {
|
|
699
699
|
const t = Ve.get(e);
|
|
700
700
|
return t ? Object.fromEntries(
|
|
701
701
|
Object.entries(t.stores).map(([r, n]) => [r, n.getState()])
|
|
702
702
|
) : {};
|
|
703
|
-
},
|
|
703
|
+
}, yb = (e, t, r) => {
|
|
704
704
|
if (e === void 0)
|
|
705
705
|
return {
|
|
706
706
|
type: "untracked",
|
|
@@ -714,11 +714,11 @@ const bb = (e) => {
|
|
|
714
714
|
stores: {}
|
|
715
715
|
};
|
|
716
716
|
return Ve.set(r.name, a), { type: "tracked", store: e, ...a };
|
|
717
|
-
},
|
|
717
|
+
}, Sb = (e, t) => {
|
|
718
718
|
if (t === void 0) return;
|
|
719
719
|
const r = Ve.get(e);
|
|
720
720
|
r && (delete r.stores[t], Object.keys(r.stores).length === 0 && Ve.delete(e));
|
|
721
|
-
},
|
|
721
|
+
}, vb = (e) => {
|
|
722
722
|
var t, r;
|
|
723
723
|
if (!e) return;
|
|
724
724
|
const n = e.split(`
|
|
@@ -728,7 +728,7 @@ const bb = (e) => {
|
|
|
728
728
|
if (a < 0) return;
|
|
729
729
|
const i = ((t = n[a + 1]) == null ? void 0 : t.trim()) || "";
|
|
730
730
|
return (r = /.+ (.+) .+/.exec(i)) == null ? void 0 : r[1];
|
|
731
|
-
},
|
|
731
|
+
}, Tb = (e, t = {}) => (r, n, a) => {
|
|
732
732
|
const { enabled: i, anonymousActionType: o, store: s, ...l } = t;
|
|
733
733
|
let c;
|
|
734
734
|
try {
|
|
@@ -737,13 +737,13 @@ const bb = (e) => {
|
|
|
737
737
|
}
|
|
738
738
|
if (!c)
|
|
739
739
|
return e(r, n, a);
|
|
740
|
-
const { connection: u, ...p } =
|
|
741
|
-
let
|
|
740
|
+
const { connection: u, ...p } = yb(s, c, l);
|
|
741
|
+
let g = !0;
|
|
742
742
|
a.setState = (b, R, A) => {
|
|
743
743
|
const m = r(b, R);
|
|
744
|
-
if (!
|
|
744
|
+
if (!g) return m;
|
|
745
745
|
const E = A === void 0 ? {
|
|
746
|
-
type: o ||
|
|
746
|
+
type: o || vb(new Error().stack) || "anonymous"
|
|
747
747
|
} : typeof A == "string" ? { type: A } : A;
|
|
748
748
|
return s === void 0 ? (u?.send(E, n()), m) : (u?.send(
|
|
749
749
|
{
|
|
@@ -757,12 +757,12 @@ const bb = (e) => {
|
|
|
757
757
|
), m);
|
|
758
758
|
}, a.devtools = {
|
|
759
759
|
cleanup: () => {
|
|
760
|
-
u && typeof u.unsubscribe == "function" && u.unsubscribe(),
|
|
760
|
+
u && typeof u.unsubscribe == "function" && u.unsubscribe(), Sb(l.name, s);
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
const h = (...b) => {
|
|
764
|
-
const R =
|
|
765
|
-
|
|
764
|
+
const R = g;
|
|
765
|
+
g = !1, r(...b), g = R;
|
|
766
766
|
}, v = e(a.setState, n, a);
|
|
767
767
|
if (p.type === "untracked" ? u?.init(v) : (p.stores[p.store] = a, u?.init(
|
|
768
768
|
Object.fromEntries(
|
|
@@ -852,12 +852,12 @@ const bb = (e) => {
|
|
|
852
852
|
return;
|
|
853
853
|
}
|
|
854
854
|
case "PAUSE_RECORDING":
|
|
855
|
-
return
|
|
855
|
+
return g = !g;
|
|
856
856
|
}
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
859
859
|
}), v;
|
|
860
|
-
},
|
|
860
|
+
}, Ab = Tb, Rt = (e, t) => {
|
|
861
861
|
let r;
|
|
862
862
|
try {
|
|
863
863
|
r = JSON.parse(e);
|
|
@@ -907,7 +907,7 @@ const ms = (e) => (t) => {
|
|
|
907
907
|
}
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
|
-
},
|
|
910
|
+
}, Rb = (e, t) => (r, n, a) => {
|
|
911
911
|
let i = {
|
|
912
912
|
storage: Pf(() => localStorage),
|
|
913
913
|
partialize: (b) => b,
|
|
@@ -938,21 +938,21 @@ const ms = (e) => (t) => {
|
|
|
938
938
|
});
|
|
939
939
|
}, p = a.setState;
|
|
940
940
|
a.setState = (b, R) => (p(b, R), u());
|
|
941
|
-
const
|
|
941
|
+
const g = e(
|
|
942
942
|
(...b) => (r(...b), u()),
|
|
943
943
|
n,
|
|
944
944
|
a
|
|
945
945
|
);
|
|
946
|
-
a.getInitialState = () =>
|
|
946
|
+
a.getInitialState = () => g;
|
|
947
947
|
let h;
|
|
948
948
|
const v = () => {
|
|
949
949
|
var b, R;
|
|
950
950
|
if (!c) return;
|
|
951
951
|
o = !1, s.forEach((m) => {
|
|
952
952
|
var E;
|
|
953
|
-
return m((E = n()) != null ? E :
|
|
953
|
+
return m((E = n()) != null ? E : g);
|
|
954
954
|
});
|
|
955
|
-
const A = ((R = i.onRehydrateStorage) == null ? void 0 : R.call(i, (b = n()) != null ? b :
|
|
955
|
+
const A = ((R = i.onRehydrateStorage) == null ? void 0 : R.call(i, (b = n()) != null ? b : g)) || void 0;
|
|
956
956
|
return ms(c.getItem.bind(c))(i.name).then((m) => {
|
|
957
957
|
if (m)
|
|
958
958
|
if (typeof m.version == "number" && m.version !== i.version) {
|
|
@@ -974,7 +974,7 @@ const ms = (e) => (t) => {
|
|
|
974
974
|
const [S, y] = m;
|
|
975
975
|
if (h = i.merge(
|
|
976
976
|
y,
|
|
977
|
-
(E = n()) != null ? E :
|
|
977
|
+
(E = n()) != null ? E : g
|
|
978
978
|
), r(h, !0), S)
|
|
979
979
|
return u();
|
|
980
980
|
}).then(() => {
|
|
@@ -1002,15 +1002,15 @@ const ms = (e) => (t) => {
|
|
|
1002
1002
|
onFinishHydration: (b) => (l.add(b), () => {
|
|
1003
1003
|
l.delete(b);
|
|
1004
1004
|
})
|
|
1005
|
-
}, i.skipHydration || v(), h ||
|
|
1006
|
-
},
|
|
1005
|
+
}, i.skipHydration || v(), h || g;
|
|
1006
|
+
}, _b = Rb, bs = {
|
|
1007
1007
|
CONTENT_TYPE: { name: "Content-Type", value: "application/json", active: !0 },
|
|
1008
1008
|
USER_AGENT: { name: "User-Agent", value: "Motia/1.0", active: !0 },
|
|
1009
1009
|
ACCEPT: { name: "Accept", value: "application/json", active: !0 }
|
|
1010
1010
|
}, Fs = (e) => {
|
|
1011
1011
|
const t = e.selectedEndpointId;
|
|
1012
1012
|
return t && e.headers[t] || bs;
|
|
1013
|
-
},
|
|
1013
|
+
}, wb = (e) => {
|
|
1014
1014
|
const t = e.selectedEndpointId;
|
|
1015
1015
|
return t ? e.bodyIsValid[t] : !0;
|
|
1016
1016
|
}, Bf = (e) => {
|
|
@@ -1026,9 +1026,9 @@ const ms = (e) => (t) => {
|
|
|
1026
1026
|
}, jf = (e) => {
|
|
1027
1027
|
const t = e.selectedEndpointId;
|
|
1028
1028
|
return t ? e.pathParams[t] || {} : {};
|
|
1029
|
-
}, Z =
|
|
1030
|
-
|
|
1031
|
-
|
|
1029
|
+
}, Z = Eb()(
|
|
1030
|
+
_b(
|
|
1031
|
+
Ab((e) => ({
|
|
1032
1032
|
selectedEndpointId: "",
|
|
1033
1033
|
headers: {},
|
|
1034
1034
|
body: {},
|
|
@@ -1106,8 +1106,8 @@ const ms = (e) => (t) => {
|
|
|
1106
1106
|
storage: Pf(() => localStorage)
|
|
1107
1107
|
}
|
|
1108
1108
|
)
|
|
1109
|
-
),
|
|
1110
|
-
const { data: e } =
|
|
1109
|
+
), Ib = () => {
|
|
1110
|
+
const { data: e } = km({
|
|
1111
1111
|
streamName: "__motia.api-endpoints",
|
|
1112
1112
|
groupId: "default"
|
|
1113
1113
|
}), t = me(() => e.reduce(
|
|
@@ -1128,7 +1128,7 @@ const ms = (e) => (t) => {
|
|
|
1128
1128
|
if (!n.has(a) || !Object.is(i, n.get(a)))
|
|
1129
1129
|
return !1;
|
|
1130
1130
|
return !0;
|
|
1131
|
-
},
|
|
1131
|
+
}, Nb = (e, t) => {
|
|
1132
1132
|
const r = e[Symbol.iterator](), n = t[Symbol.iterator]();
|
|
1133
1133
|
let a = r.next(), i = n.next();
|
|
1134
1134
|
for (; !a.done && !i.done; ) {
|
|
@@ -1138,8 +1138,8 @@ const ms = (e) => (t) => {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
return !!a.done && !!i.done;
|
|
1140
1140
|
};
|
|
1141
|
-
function
|
|
1142
|
-
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : bl(e) && bl(t) ? hl(e) && hl(t) ? El(e, t) :
|
|
1141
|
+
function kb(e, t) {
|
|
1142
|
+
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : bl(e) && bl(t) ? hl(e) && hl(t) ? El(e, t) : Nb(e, t) : El(
|
|
1143
1143
|
{ entries: () => Object.entries(e) },
|
|
1144
1144
|
{ entries: () => Object.entries(t) }
|
|
1145
1145
|
);
|
|
@@ -1148,10 +1148,10 @@ function ue(e) {
|
|
|
1148
1148
|
const t = W.useRef(void 0);
|
|
1149
1149
|
return (r) => {
|
|
1150
1150
|
const n = e(r);
|
|
1151
|
-
return
|
|
1151
|
+
return kb(t.current, n) ? t.current : t.current = n;
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
|
-
const We = (e) => {
|
|
1154
|
+
const Gf = (e) => e.match(/:(\w+)/g)?.map((r) => r.slice(1)) ?? [], We = (e) => {
|
|
1155
1155
|
if (!e) return {};
|
|
1156
1156
|
if (e.type === "object") {
|
|
1157
1157
|
const t = {};
|
|
@@ -1175,13 +1175,13 @@ const We = (e) => {
|
|
|
1175
1175
|
default:
|
|
1176
1176
|
return;
|
|
1177
1177
|
}
|
|
1178
|
-
},
|
|
1178
|
+
}, Cb = (e) => {
|
|
1179
1179
|
const [t, r] = $("");
|
|
1180
1180
|
return ee(() => {
|
|
1181
1181
|
e && r(JSON.stringify(We(e), null, 2));
|
|
1182
1182
|
}, [e]), { body: t, setBody: r };
|
|
1183
1183
|
};
|
|
1184
|
-
function
|
|
1184
|
+
function Ob(e, t, r, n) {
|
|
1185
1185
|
function a(i) {
|
|
1186
1186
|
return i instanceof r ? i : new r(function(o) {
|
|
1187
1187
|
o(i);
|
|
@@ -1208,7 +1208,7 @@ function Cb(e, t, r, n) {
|
|
|
1208
1208
|
c((n = n.apply(e, [])).next());
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1211
|
+
var xb = function() {
|
|
1212
1212
|
var e = document.getSelection();
|
|
1213
1213
|
if (!e.rangeCount)
|
|
1214
1214
|
return function() {
|
|
@@ -1230,20 +1230,20 @@ var Ob = function() {
|
|
|
1230
1230
|
e.addRange(a);
|
|
1231
1231
|
}), t && t.focus();
|
|
1232
1232
|
};
|
|
1233
|
-
},
|
|
1233
|
+
}, Lb = xb, yl = {
|
|
1234
1234
|
"text/plain": "Text",
|
|
1235
1235
|
"text/html": "Url",
|
|
1236
1236
|
default: "Text"
|
|
1237
|
-
},
|
|
1238
|
-
function
|
|
1237
|
+
}, Db = "Copy to clipboard: #{key}, Enter";
|
|
1238
|
+
function Mb(e) {
|
|
1239
1239
|
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
1240
1240
|
return e.replace(/#{\s*key\s*}/g, t);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Fb(e, t) {
|
|
1243
1243
|
var r, n, a, i, o, s, l = !1;
|
|
1244
1244
|
t || (t = {}), r = t.debug || !1;
|
|
1245
1245
|
try {
|
|
1246
|
-
a =
|
|
1246
|
+
a = Lb(), i = document.createRange(), o = document.getSelection(), s = document.createElement("span"), s.textContent = e, s.ariaHidden = "true", s.style.all = "unset", s.style.position = "fixed", s.style.top = 0, s.style.clip = "rect(0, 0, 0, 0)", s.style.whiteSpace = "pre", s.style.webkitUserSelect = "text", s.style.MozUserSelect = "text", s.style.msUserSelect = "text", s.style.userSelect = "text", s.addEventListener("copy", function(u) {
|
|
1247
1247
|
if (u.stopPropagation(), t.format)
|
|
1248
1248
|
if (u.preventDefault(), typeof u.clipboardData > "u") {
|
|
1249
1249
|
r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
@@ -1262,21 +1262,21 @@ function Mb(e, t) {
|
|
|
1262
1262
|
try {
|
|
1263
1263
|
window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), l = !0;
|
|
1264
1264
|
} catch (p) {
|
|
1265
|
-
r && console.error("unable to copy using clipboardData: ", p), r && console.error("falling back to prompt"), n =
|
|
1265
|
+
r && console.error("unable to copy using clipboardData: ", p), r && console.error("falling back to prompt"), n = Mb("message" in t ? t.message : Db), window.prompt(n, e);
|
|
1266
1266
|
}
|
|
1267
1267
|
} finally {
|
|
1268
1268
|
o && (typeof o.removeRange == "function" ? o.removeRange(i) : o.removeAllRanges()), s && document.body.removeChild(s), a();
|
|
1269
1269
|
}
|
|
1270
1270
|
return l;
|
|
1271
1271
|
}
|
|
1272
|
-
var
|
|
1272
|
+
var Ub = Fb;
|
|
1273
1273
|
function Te(e) {
|
|
1274
1274
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
1275
1275
|
}
|
|
1276
1276
|
function He(e) {
|
|
1277
1277
|
return Array.isArray(e) ? e.length : Te(e) ? Object.keys(e).length : 0;
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Pb(e, t) {
|
|
1280
1280
|
if (typeof e == "string")
|
|
1281
1281
|
return e;
|
|
1282
1282
|
try {
|
|
@@ -1297,12 +1297,12 @@ function Ub(e, t) {
|
|
|
1297
1297
|
return `${r.name}: ${r.message}` || "JSON.stringify failed";
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1300
|
+
function Bb(e) {
|
|
1301
|
+
return Ob(this, void 0, void 0, function* () {
|
|
1302
1302
|
try {
|
|
1303
1303
|
yield navigator.clipboard.writeText(e);
|
|
1304
1304
|
} catch {
|
|
1305
|
-
|
|
1305
|
+
Ub(e);
|
|
1306
1306
|
}
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
@@ -1346,7 +1346,7 @@ function Ps(e, t) {
|
|
|
1346
1346
|
reportError(r);
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function $f(e) {
|
|
1350
1350
|
if (e === !0 || Te(e) && e.add === !0)
|
|
1351
1351
|
return !0;
|
|
1352
1352
|
}
|
|
@@ -1358,10 +1358,10 @@ function Bs(e) {
|
|
|
1358
1358
|
if (e === !0 || Te(e) && e.delete === !0)
|
|
1359
1359
|
return !0;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function qb(e) {
|
|
1362
1362
|
return typeof e == "function";
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Hf(e) {
|
|
1365
1365
|
return !e || e.add === void 0 || !!e.add;
|
|
1366
1366
|
}
|
|
1367
1367
|
function Al(e) {
|
|
@@ -1373,10 +1373,10 @@ function qs(e) {
|
|
|
1373
1373
|
function dt(e) {
|
|
1374
1374
|
return !e || e.enableClipboard === void 0 || !!e.enableClipboard;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function jb(e) {
|
|
1377
1377
|
return !e || e.matchesURL === void 0 || !!e.matchesURL;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function Gb(e, t) {
|
|
1380
1380
|
return e === "string" ? t.trim().replace(/^\"([\s\S]+?)\"$/, "$1") : t;
|
|
1381
1381
|
}
|
|
1382
1382
|
var Rl;
|
|
@@ -1412,7 +1412,7 @@ function Es() {
|
|
|
1412
1412
|
return e;
|
|
1413
1413
|
}, Es.apply(this, arguments);
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
1415
|
+
var $b = function(t) {
|
|
1416
1416
|
return /* @__PURE__ */ z.createElement("svg", Es({
|
|
1417
1417
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1418
1418
|
width: 24,
|
|
@@ -1434,7 +1434,7 @@ function ys() {
|
|
|
1434
1434
|
return e;
|
|
1435
1435
|
}, ys.apply(this, arguments);
|
|
1436
1436
|
}
|
|
1437
|
-
var
|
|
1437
|
+
var Hb = function(t) {
|
|
1438
1438
|
return /* @__PURE__ */ z.createElement("svg", ys({
|
|
1439
1439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1440
1440
|
width: 24,
|
|
@@ -1453,13 +1453,13 @@ function pt({ node: e, nodeMeta: t }) {
|
|
|
1453
1453
|
const { customizeCopy: r, CopyComponent: n, CopiedComponent: a } = Ce(Ae), [i, o] = $(!1), s = (l) => {
|
|
1454
1454
|
l.stopPropagation();
|
|
1455
1455
|
const c = r(e, t);
|
|
1456
|
-
typeof c == "string" && c &&
|
|
1456
|
+
typeof c == "string" && c && Bb(c), o(!0), setTimeout(() => o(!1), 3e3);
|
|
1457
1457
|
};
|
|
1458
|
-
return i ? typeof a == "function" ? d.jsx(a, { className: "json-view--copy", style: { display: "inline-block" } }) : d.jsx(
|
|
1458
|
+
return i ? typeof a == "function" ? d.jsx(a, { className: "json-view--copy", style: { display: "inline-block" } }) : d.jsx(Hb, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof n == "function" ? d.jsx(n, { onClick: s, className: "json-view--copy" }) : d.jsx($b, { onClick: s, className: "json-view--copy" });
|
|
1459
1459
|
}
|
|
1460
1460
|
function Ss({ indexOrName: e, value: t, depth: r, deleteHandle: n, editHandle: a, parent: i, parentPath: o }) {
|
|
1461
1461
|
const { displayArrayIndex: s } = Ce(Ae), l = Array.isArray(i);
|
|
1462
|
-
return d.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!l || l && s ? d.jsxs(d.Fragment, { children: [d.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : d.jsx(d.Fragment, {}), d.jsx(
|
|
1462
|
+
return d.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!l || l && s ? d.jsxs(d.Fragment, { children: [d.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : d.jsx(d.Fragment, {}), d.jsx(Vf, { node: t, depth: r + 1, deleteHandle: (c, u) => n(c, u), editHandle: (c, u, p, g) => a(c, u, p, g), parent: i, indexOrName: e, parentPath: o })] }));
|
|
1463
1463
|
}
|
|
1464
1464
|
var Nl, kl;
|
|
1465
1465
|
function vs() {
|
|
@@ -1497,7 +1497,7 @@ function Ts() {
|
|
|
1497
1497
|
return e;
|
|
1498
1498
|
}, Ts.apply(this, arguments);
|
|
1499
1499
|
}
|
|
1500
|
-
var
|
|
1500
|
+
var zf = function(t) {
|
|
1501
1501
|
return /* @__PURE__ */ z.createElement("svg", Ts({
|
|
1502
1502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1503
1503
|
width: 24,
|
|
@@ -1562,31 +1562,31 @@ var Hs = function(t) {
|
|
|
1562
1562
|
d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
|
|
1563
1563
|
})));
|
|
1564
1564
|
};
|
|
1565
|
-
function
|
|
1566
|
-
const { enableClipboard: c, src: u, onEdit: p, onChange:
|
|
1567
|
-
e[
|
|
1565
|
+
function zb({ originNode: e, node: t, depth: r, index: n, deleteHandle: a, customOptions: i, startIndex: o, parent: s, parentPath: l }) {
|
|
1566
|
+
const { enableClipboard: c, src: u, onEdit: p, onChange: g, forceUpdate: h, displaySize: v, CustomOperation: b } = Ce(Ae), R = [...l, String(n)], [A, m] = $(!0), E = te((f, T, I) => {
|
|
1567
|
+
e[f] = T, p && p({
|
|
1568
1568
|
newValue: T,
|
|
1569
1569
|
oldValue: I,
|
|
1570
1570
|
depth: r,
|
|
1571
1571
|
src: u,
|
|
1572
|
-
indexOrName:
|
|
1572
|
+
indexOrName: f,
|
|
1573
1573
|
parentType: "array",
|
|
1574
1574
|
parentPath: l
|
|
1575
|
-
}),
|
|
1576
|
-
}, [t, p,
|
|
1577
|
-
e.splice(
|
|
1575
|
+
}), g && g({ type: "edit", depth: r, src: u, indexOrName: f, parentType: "array", parentPath: l }), h();
|
|
1576
|
+
}, [t, p, g, h]), S = (f) => {
|
|
1577
|
+
e.splice(f, 1), a && a(f, l), h();
|
|
1578
1578
|
}, y = d.jsxs(d.Fragment, { children: [!A && d.jsxs("span", Object.assign({ onClick: () => m(!0), className: "jv-size-chevron" }, { children: [Ue(v, r, A) && d.jsxs("span", Object.assign({ className: "jv-size" }, { children: [He(t), " Items"] })), d.jsx(js, { className: "jv-chevron" })] })), !A && c && dt(i) && d.jsx(pt, { node: t, nodeMeta: { depth: r, indexOrName: n, parent: s, parentPath: l, currentPath: R } }), typeof b == "function" ? d.jsx(b, { node: t }) : null] });
|
|
1579
|
-
return d.jsxs("div", { children: [d.jsx("span", { children: "[" }), y, A ? d.jsxs("button", Object.assign({ onClick: () => m(!1), className: "jv-button" }, { children: [o, " ... ", o + t.length - 1] })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((
|
|
1579
|
+
return d.jsxs("div", { children: [d.jsx("span", { children: "[" }), y, A ? d.jsxs("button", Object.assign({ onClick: () => m(!1), className: "jv-button" }, { children: [o, " ... ", o + t.length - 1] })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((f, T) => d.jsx(Ss, { indexOrName: T + o, value: f, depth: r, parent: t, deleteHandle: S, editHandle: E, parentPath: l }, String(n) + String(T))) })), d.jsx("span", { children: "]" })] });
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Vb({ node: e, depth: t, deleteHandle: r, indexOrName: n, customOptions: a, parent: i, parentPath: o }) {
|
|
1582
1582
|
const s = typeof n < "u" ? [...o, String(n)] : o, l = [];
|
|
1583
1583
|
for (let D = 0; D < e.length; D += 100)
|
|
1584
1584
|
l.push(e.slice(D, D + 100));
|
|
1585
|
-
const { collapsed: c, enableClipboard: u, collapseObjectsAfterLength: p, editable:
|
|
1585
|
+
const { collapsed: c, enableClipboard: u, collapseObjectsAfterLength: p, editable: g, onDelete: h, src: v, onAdd: b, CustomOperation: R, onChange: A, forceUpdate: m, displaySize: E } = Ce(Ae), [S, y] = $(vl(e, t, n, c, p, a));
|
|
1586
1586
|
ee(() => {
|
|
1587
1587
|
y(vl(e, t, n, c, p, a));
|
|
1588
1588
|
}, [c, p]);
|
|
1589
|
-
const [
|
|
1589
|
+
const [f, T] = $(!1), I = () => {
|
|
1590
1590
|
T(!1), r && r(n, o), h && h({ value: e, depth: t, src: v, indexOrName: n, parentType: "array", parentPath: o }), A && A({
|
|
1591
1591
|
type: "delete",
|
|
1592
1592
|
depth: t,
|
|
@@ -1598,18 +1598,18 @@ function zb({ node: e, depth: t, deleteHandle: r, indexOrName: n, customOptions:
|
|
|
1598
1598
|
}, [_, C] = $(!1), O = () => {
|
|
1599
1599
|
const D = e;
|
|
1600
1600
|
D.push(null), b && b({ indexOrName: D.length - 1, depth: t, src: v, parentType: "array", parentPath: o }), A && A({ type: "add", indexOrName: D.length - 1, depth: t, src: v, parentType: "array", parentPath: o }), m();
|
|
1601
|
-
}, F =
|
|
1601
|
+
}, F = f || _, q = () => {
|
|
1602
1602
|
T(!1), C(!1);
|
|
1603
|
-
}, j = d.jsxs(d.Fragment, { children: [!S && !F && d.jsxs("span", Object.assign({ onClick: () => y(!0), className: "jv-size-chevron" }, { children: [Ue(E, t, S) && d.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), d.jsx(js, { className: "jv-chevron" })] })), F && d.jsx($s, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : I }), F && d.jsx(Hs, { className: "json-view--edit", style: { display: "inline-block" }, onClick: q }), !S && !F && u && dt(a) && d.jsx(pt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: i, parentPath: o, currentPath: s } }), !S && !F &&
|
|
1603
|
+
}, j = d.jsxs(d.Fragment, { children: [!S && !F && d.jsxs("span", Object.assign({ onClick: () => y(!0), className: "jv-size-chevron" }, { children: [Ue(E, t, S) && d.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), d.jsx(js, { className: "jv-chevron" })] })), F && d.jsx($s, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : I }), F && d.jsx(Hs, { className: "json-view--edit", style: { display: "inline-block" }, onClick: q }), !S && !F && u && dt(a) && d.jsx(pt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: i, parentPath: o, currentPath: s } }), !S && !F && $f(g) && Hf(a) && d.jsx(zf, { className: "json-view--edit", onClick: () => {
|
|
1604
1604
|
O();
|
|
1605
|
-
} }), !S && !F && Bs(
|
|
1606
|
-
return d.jsxs(d.Fragment, { children: [d.jsx("span", { children: "[" }), j, S ? d.jsx("button", Object.assign({ onClick: () => y(!1), className: "jv-button" }, { children: "..." })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: l.map((D, U) => d.jsx(
|
|
1605
|
+
} }), !S && !F && Bs(g) && qs(a) && r && d.jsx(Gs, { className: "json-view--edit", onClick: () => T(!0) }), typeof R == "function" ? d.jsx(R, { node: e }) : null] });
|
|
1606
|
+
return d.jsxs(d.Fragment, { children: [d.jsx("span", { children: "[" }), j, S ? d.jsx("button", Object.assign({ onClick: () => y(!1), className: "jv-button" }, { children: "..." })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: l.map((D, U) => d.jsx(zb, { originNode: e, node: D, depth: t, index: U, startIndex: U * 100, deleteHandle: r, customOptions: a, parentPath: o }, String(n) + String(U))) })), d.jsx("span", { children: "]" }), S && Ue(E, t, S) && d.jsxs("span", Object.assign({ onClick: () => y(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1609
|
-
const { collapsed: s, onCollapse: l, enableClipboard: c, ignoreLargeArray: u, collapseObjectsAfterLength: p, editable:
|
|
1608
|
+
function Wb({ node: e, depth: t, indexOrName: r, deleteHandle: n, customOptions: a, parent: i, parentPath: o }) {
|
|
1609
|
+
const { collapsed: s, onCollapse: l, enableClipboard: c, ignoreLargeArray: u, collapseObjectsAfterLength: p, editable: g, onDelete: h, src: v, onAdd: b, onEdit: R, onChange: A, forceUpdate: m, displaySize: E, CustomOperation: S } = Ce(Ae), y = typeof r < "u" ? [...o, String(r)] : o;
|
|
1610
1610
|
if (!u && Array.isArray(e) && e.length > 100)
|
|
1611
|
-
return d.jsx(
|
|
1612
|
-
const
|
|
1611
|
+
return d.jsx(Vb, { node: e, depth: t, indexOrName: r, deleteHandle: n, customOptions: a, parentPath: y });
|
|
1612
|
+
const f = Te(e), [T, I] = $(Sl(e, t, r, s, p, a)), _ = (N) => {
|
|
1613
1613
|
l?.({ isCollapsing: !N, node: e, depth: t, indexOrName: r }), I(N);
|
|
1614
1614
|
};
|
|
1615
1615
|
ee(() => {
|
|
@@ -1622,23 +1622,23 @@ function Vb({ node: e, depth: t, indexOrName: r, deleteHandle: n, customOptions:
|
|
|
1622
1622
|
depth: t,
|
|
1623
1623
|
src: v,
|
|
1624
1624
|
indexOrName: N,
|
|
1625
|
-
parentType:
|
|
1625
|
+
parentType: f ? "object" : "array",
|
|
1626
1626
|
parentPath: y
|
|
1627
|
-
}), A && A({ type: "edit", depth: t, src: v, indexOrName: N, parentType:
|
|
1627
|
+
}), A && A({ type: "edit", depth: t, src: v, indexOrName: N, parentType: f ? "object" : "array", parentPath: y }), m();
|
|
1628
1628
|
}, [e, R, A, m]), O = (N) => {
|
|
1629
1629
|
Array.isArray(e) ? e.splice(+N, 1) : e && delete e[N], m();
|
|
1630
1630
|
}, [F, q] = $(!1), j = () => {
|
|
1631
|
-
q(!1), n && n(r, y), h && h({ value: e, depth: t, src: v, indexOrName: r, parentType:
|
|
1631
|
+
q(!1), n && n(r, y), h && h({ value: e, depth: t, src: v, indexOrName: r, parentType: f ? "object" : "array", parentPath: y }), A && A({
|
|
1632
1632
|
type: "delete",
|
|
1633
1633
|
depth: t,
|
|
1634
1634
|
src: v,
|
|
1635
1635
|
indexOrName: r,
|
|
1636
|
-
parentType:
|
|
1636
|
+
parentType: f ? "object" : "array",
|
|
1637
1637
|
parentPath: y
|
|
1638
1638
|
});
|
|
1639
1639
|
}, [D, U] = $(!1), P = V(null), M = () => {
|
|
1640
1640
|
var N;
|
|
1641
|
-
if (
|
|
1641
|
+
if (f) {
|
|
1642
1642
|
const L = (N = P.current) === null || N === void 0 ? void 0 : N.value;
|
|
1643
1643
|
L && (e[L] = null, P.current && (P.current.value = ""), U(!1), b && b({ indexOrName: L, depth: t, src: v, parentType: "object", parentPath: y }), A && A({ type: "add", indexOrName: L, depth: t, src: v, parentType: "object", parentPath: y }));
|
|
1644
1644
|
} else if (Array.isArray(e)) {
|
|
@@ -1650,19 +1650,19 @@ function Vb({ node: e, depth: t, indexOrName: r, deleteHandle: n, customOptions:
|
|
|
1650
1650
|
N.key === "Enter" ? (N.preventDefault(), M()) : N.key === "Escape" && k();
|
|
1651
1651
|
}, w = F || D, k = () => {
|
|
1652
1652
|
q(!1), U(!1);
|
|
1653
|
-
}, x = d.jsxs(d.Fragment, { children: [!T && !w && d.jsxs("span", Object.assign({ onClick: () => _(!0), className: "jv-size-chevron" }, { children: [Ue(E, t, T) && d.jsxs("span", Object.assign({ className: "jv-size" }, { children: [He(e), " Items"] })), d.jsx(js, { className: "jv-chevron" })] })), D &&
|
|
1654
|
-
|
|
1653
|
+
}, x = d.jsxs(d.Fragment, { children: [!T && !w && d.jsxs("span", Object.assign({ onClick: () => _(!0), className: "jv-size-chevron" }, { children: [Ue(E, t, T) && d.jsxs("span", Object.assign({ className: "jv-size" }, { children: [He(e), " Items"] })), d.jsx(js, { className: "jv-chevron" })] })), D && f && d.jsx("input", { className: "json-view--input", placeholder: "property", ref: P, onKeyDown: B }), w && d.jsx($s, { className: "json-view--edit", style: { display: "inline-block" }, onClick: D ? M : j }), w && d.jsx(Hs, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k }), !T && !w && c && dt(a) && d.jsx(pt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: i, parentPath: o, currentPath: y } }), !T && !w && $f(g) && Hf(a) && d.jsx(zf, { className: "json-view--edit", onClick: () => {
|
|
1654
|
+
f ? (U(!0), setTimeout(() => {
|
|
1655
1655
|
var N;
|
|
1656
1656
|
return (N = P.current) === null || N === void 0 ? void 0 : N.focus();
|
|
1657
1657
|
})) : M();
|
|
1658
|
-
} }), !T && !w && Bs(
|
|
1659
|
-
return Array.isArray(e) ? d.jsxs(d.Fragment, { children: [d.jsx("span", { children: "[" }), x, T ? d.jsx("button", Object.assign({ onClick: () => _(!1), className: "jv-button" }, { children: "..." })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((N, L) => d.jsx(Ss, { indexOrName: L, value: N, depth: t, parent: e, deleteHandle: O, editHandle: C, parentPath: y }, String(r) + String(L))) })), d.jsx("span", { children: "]" }), T && Ue(E, t, T) && d.jsxs("span", Object.assign({ onClick: () => _(!1), className: "jv-size" }, { children: [He(e), " Items"] }))] }) :
|
|
1658
|
+
} }), !T && !w && Bs(g) && qs(a) && n && d.jsx(Gs, { className: "json-view--edit", onClick: () => q(!0) }), typeof S == "function" ? d.jsx(S, { node: e }) : null] });
|
|
1659
|
+
return Array.isArray(e) ? d.jsxs(d.Fragment, { children: [d.jsx("span", { children: "[" }), x, T ? d.jsx("button", Object.assign({ onClick: () => _(!1), className: "jv-button" }, { children: "..." })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((N, L) => d.jsx(Ss, { indexOrName: L, value: N, depth: t, parent: e, deleteHandle: O, editHandle: C, parentPath: y }, String(r) + String(L))) })), d.jsx("span", { children: "]" }), T && Ue(E, t, T) && d.jsxs("span", Object.assign({ onClick: () => _(!1), className: "jv-size" }, { children: [He(e), " Items"] }))] }) : f ? d.jsxs(d.Fragment, { children: [d.jsx("span", { children: "{" }), x, T ? d.jsx("button", Object.assign({ onClick: () => _(!1), className: "jv-button" }, { children: "..." })) : d.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([N, L]) => d.jsx(Ss, { indexOrName: N, value: L, depth: t, parent: e, deleteHandle: O, editHandle: C, parentPath: y }, String(r) + String(N))) })), d.jsx("span", { children: "}" }), T && Ue(E, t, T) && d.jsxs("span", Object.assign({ onClick: () => _(!1), className: "jv-size" }, { children: [He(e), " Items"] }))] }) : d.jsx("span", { children: String(e) });
|
|
1660
1660
|
}
|
|
1661
|
-
const
|
|
1661
|
+
const Yb = W.forwardRef(({ str: e, className: t, ctrlClick: r }, n) => {
|
|
1662
1662
|
let { collapseStringMode: a, collapseStringsAfterLength: i, customizeCollapseStringUI: o } = Ce(Ae);
|
|
1663
1663
|
const [s, l] = $(!0), c = V(null);
|
|
1664
1664
|
i = i > 0 ? i : 0;
|
|
1665
|
-
const u = e.replace(/\s+/g, " "), p = typeof o == "function" ? o(u, s) : typeof o == "string" ? o : "...",
|
|
1665
|
+
const u = e.replace(/\s+/g, " "), p = typeof o == "function" ? o(u, s) : typeof o == "string" ? o : "...", g = (h) => {
|
|
1666
1666
|
var v;
|
|
1667
1667
|
if ((h.ctrlKey || h.metaKey) && r)
|
|
1668
1668
|
r(h);
|
|
@@ -1676,9 +1676,9 @@ const Wb = W.forwardRef(({ str: e, className: t, ctrlClick: r }, n) => {
|
|
|
1676
1676
|
if (e.length <= i)
|
|
1677
1677
|
return d.jsxs("span", Object.assign({ ref: c, className: t, onClick: r }, { children: ['"', e, '"'] }));
|
|
1678
1678
|
if (a === "address")
|
|
1679
|
-
return e.length <= 10 ? d.jsxs("span", Object.assign({ ref: c, className: t, onClick: r }, { children: ['"', e, '"'] })) : d.jsxs("span", Object.assign({ ref: c, onClick:
|
|
1679
|
+
return e.length <= 10 ? d.jsxs("span", Object.assign({ ref: c, className: t, onClick: r }, { children: ['"', e, '"'] })) : d.jsxs("span", Object.assign({ ref: c, onClick: g, className: t + " cursor-pointer" }, { children: ['"', s ? [u.slice(0, 6), p, u.slice(-4)] : e, '"'] }));
|
|
1680
1680
|
if (a === "directly")
|
|
1681
|
-
return d.jsxs("span", Object.assign({ ref: c, onClick:
|
|
1681
|
+
return d.jsxs("span", Object.assign({ ref: c, onClick: g, className: t + " cursor-pointer" }, { children: ['"', s ? [u.slice(0, i), p] : e, '"'] }));
|
|
1682
1682
|
if (a === "word") {
|
|
1683
1683
|
let h = i, v = i + 1, b = u, R = 1;
|
|
1684
1684
|
for (; ; ) {
|
|
@@ -1696,7 +1696,7 @@ const Wb = W.forwardRef(({ str: e, className: t, ctrlClick: r }, n) => {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
R++, h--, v++;
|
|
1698
1698
|
}
|
|
1699
|
-
return d.jsxs("span", Object.assign({ ref: c, onClick:
|
|
1699
|
+
return d.jsxs("span", Object.assign({ ref: c, onClick: g, className: t + " cursor-pointer" }, { children: ['"', s ? [b, p] : e, '"'] }));
|
|
1700
1700
|
}
|
|
1701
1701
|
return d.jsxs("span", Object.assign({ ref: c, className: t }, { children: ['"', e, '"'] }));
|
|
1702
1702
|
});
|
|
@@ -1711,7 +1711,7 @@ function _s() {
|
|
|
1711
1711
|
return e;
|
|
1712
1712
|
}, _s.apply(this, arguments);
|
|
1713
1713
|
}
|
|
1714
|
-
var
|
|
1714
|
+
var Kb = function(t) {
|
|
1715
1715
|
return /* @__PURE__ */ z.createElement("svg", _s({
|
|
1716
1716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1717
1717
|
width: 24,
|
|
@@ -1733,7 +1733,7 @@ function ws() {
|
|
|
1733
1733
|
return e;
|
|
1734
1734
|
}, ws.apply(this, arguments);
|
|
1735
1735
|
}
|
|
1736
|
-
var
|
|
1736
|
+
var Zb = function(t) {
|
|
1737
1737
|
return /* @__PURE__ */ z.createElement("svg", ws({
|
|
1738
1738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1739
1739
|
width: 24,
|
|
@@ -1748,21 +1748,21 @@ var Kb = function(t) {
|
|
|
1748
1748
|
d: "M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"
|
|
1749
1749
|
})));
|
|
1750
1750
|
};
|
|
1751
|
-
function
|
|
1752
|
-
const { collapseStringsAfterLength: s, enableClipboard: l, editable: c, src: u, onDelete: p, onChange:
|
|
1751
|
+
function Vf({ node: e, depth: t, deleteHandle: r, indexOrName: n, parent: a, editHandle: i, parentPath: o }) {
|
|
1752
|
+
const { collapseStringsAfterLength: s, enableClipboard: l, editable: c, src: u, onDelete: p, onChange: g, customizeNode: h, matchesURL: v, urlRegExp: b, EditComponent: R, DoneComponent: A, CancelComponent: m, CustomOperation: E } = Ce(Ae);
|
|
1753
1753
|
let S;
|
|
1754
1754
|
if (typeof h == "function" && (S = Ps(h, [{ node: e, depth: t, indexOrName: n }])), S) {
|
|
1755
|
-
if (
|
|
1755
|
+
if (Rm(S))
|
|
1756
1756
|
return S;
|
|
1757
|
-
if (
|
|
1757
|
+
if (qb(S)) {
|
|
1758
1758
|
const y = S;
|
|
1759
1759
|
return d.jsx(y, { node: e, depth: t, indexOrName: n });
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
if (Array.isArray(e) || Te(e))
|
|
1763
|
-
return d.jsx(
|
|
1763
|
+
return d.jsx(Wb, { parent: a, node: e, depth: t, indexOrName: n, deleteHandle: r, parentPath: o, customOptions: typeof S == "object" ? S : void 0 });
|
|
1764
1764
|
{
|
|
1765
|
-
const y = typeof e,
|
|
1765
|
+
const y = typeof e, f = typeof n < "u" ? [...o, String(n)] : o, [T, I] = $(!1), [_, C] = $(!1), O = V(null), F = () => {
|
|
1766
1766
|
I(!0), setTimeout(() => {
|
|
1767
1767
|
var N, L;
|
|
1768
1768
|
(N = window.getSelection()) === null || N === void 0 || N.selectAllChildren(O.current), (L = O.current) === null || L === void 0 || L.focus();
|
|
@@ -1773,7 +1773,7 @@ function zf({ node: e, depth: t, deleteHandle: r, indexOrName: n, parent: a, edi
|
|
|
1773
1773
|
const L = JSON.parse(N);
|
|
1774
1774
|
i && i(n, L, e, o);
|
|
1775
1775
|
} catch {
|
|
1776
|
-
const G =
|
|
1776
|
+
const G = Gb(y, N);
|
|
1777
1777
|
i && i(n, G, e, o);
|
|
1778
1778
|
}
|
|
1779
1779
|
I(!1);
|
|
@@ -1787,7 +1787,7 @@ function zf({ node: e, depth: t, deleteHandle: r, indexOrName: n, parent: a, edi
|
|
|
1787
1787
|
indexOrName: n,
|
|
1788
1788
|
parentType: Array.isArray(a) ? "array" : "object",
|
|
1789
1789
|
parentPath: o
|
|
1790
|
-
}),
|
|
1790
|
+
}), g && g({
|
|
1791
1791
|
depth: t,
|
|
1792
1792
|
src: u,
|
|
1793
1793
|
indexOrName: n,
|
|
@@ -1799,7 +1799,7 @@ function zf({ node: e, depth: t, deleteHandle: r, indexOrName: n, parent: a, edi
|
|
|
1799
1799
|
N.key === "Enter" ? (N.preventDefault(), q()) : N.key === "Escape" && j();
|
|
1800
1800
|
}, [q]), P = T || _, M = !P && Tl(c) && Al(S) && i ? (N) => {
|
|
1801
1801
|
(N.ctrlKey || N.metaKey) && F();
|
|
1802
|
-
} : void 0, B = d.jsxs(d.Fragment, { children: [P && (typeof A == "function" ? d.jsx(A, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? D : q }) : d.jsx($s, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? D : q })), P && (typeof m == "function" ? d.jsx(m, { className: "json-view--edit", style: { display: "inline-block" }, onClick: j }) : d.jsx(Hs, { className: "json-view--edit", style: { display: "inline-block" }, onClick: j })), !P && l && dt(S) && d.jsx(pt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: a, parentPath: o, currentPath:
|
|
1802
|
+
} : void 0, B = d.jsxs(d.Fragment, { children: [P && (typeof A == "function" ? d.jsx(A, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? D : q }) : d.jsx($s, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? D : q })), P && (typeof m == "function" ? d.jsx(m, { className: "json-view--edit", style: { display: "inline-block" }, onClick: j }) : d.jsx(Hs, { className: "json-view--edit", style: { display: "inline-block" }, onClick: j })), !P && l && dt(S) && d.jsx(pt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: a, parentPath: o, currentPath: f } }), !P && v && y === "string" && b.test(e) && jb(S) && d.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: d.jsx(Zb, {}) })), !P && Tl(c) && Al(S) && i && (typeof R == "function" ? d.jsx(R, { className: "json-view--edit", onClick: F }) : d.jsx(Kb, { className: "json-view--edit", onClick: F })), !P && Bs(c) && qs(S) && r && d.jsx(Gs, { className: "json-view--edit", onClick: () => C(!0) }), typeof E == "function" ? d.jsx(E, { node: e }) : null] });
|
|
1803
1803
|
let w = "json-view--string";
|
|
1804
1804
|
switch (y) {
|
|
1805
1805
|
case "number":
|
|
@@ -1817,10 +1817,10 @@ function zf({ node: e, depth: t, deleteHandle: r, indexOrName: n, parent: a, edi
|
|
|
1817
1817
|
let k = String(e);
|
|
1818
1818
|
y === "bigint" && (k += "n");
|
|
1819
1819
|
const x = me(() => d.jsx("span", { contentEditable: !0, className: w, dangerouslySetInnerHTML: { __html: y === "string" ? `"${k}"` : k }, ref: O, onKeyDown: U }), [k, y, U]);
|
|
1820
|
-
return y === "string" ? d.jsxs(d.Fragment, { children: [T ? x : e.length > s ? d.jsx(
|
|
1820
|
+
return y === "string" ? d.jsxs(d.Fragment, { children: [T ? x : e.length > s ? d.jsx(Yb, { str: e, ref: O, className: w, ctrlClick: M }) : d.jsxs("span", Object.assign({ className: w, onClick: M }, { children: ['"', k, '"'] })), B] }) : d.jsxs(d.Fragment, { children: [T ? x : d.jsx("span", Object.assign({ className: w, onClick: M }, { children: k })), B] });
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
const
|
|
1823
|
+
const Wf = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, Ae = Am({
|
|
1824
1824
|
src: void 0,
|
|
1825
1825
|
collapseStringsAfterLength: 99,
|
|
1826
1826
|
collapseStringMode: "directly",
|
|
@@ -1842,7 +1842,7 @@ const Vf = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
|
|
|
1842
1842
|
displaySize: void 0,
|
|
1843
1843
|
displayArrayIndex: !0,
|
|
1844
1844
|
matchesURL: !1,
|
|
1845
|
-
urlRegExp:
|
|
1845
|
+
urlRegExp: Wf,
|
|
1846
1846
|
ignoreLargeArray: !1,
|
|
1847
1847
|
CopyComponent: void 0,
|
|
1848
1848
|
CopiedComponent: void 0,
|
|
@@ -1851,7 +1851,7 @@ const Vf = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
|
|
|
1851
1851
|
DoneComponent: void 0,
|
|
1852
1852
|
CustomOperation: void 0
|
|
1853
1853
|
});
|
|
1854
|
-
function
|
|
1854
|
+
function Yf({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r = "directly", customizeCollapseStringUI: n, collapseObjectsAfterLength: a = 99, collapsed: i, onCollapse: o, enableClipboard: s = !0, editable: l = !1, onEdit: c, onDelete: u, onAdd: p, onChange: g, dark: h = !1, theme: v = "default", customizeNode: b, customizeCopy: R = (j) => Pb(j), displaySize: A, displayArrayIndex: m = !0, style: E, className: S, matchesURL: y = !1, urlRegExp: f = Wf, ignoreLargeArray: T = !1, CopyComponent: I, CopiedComponent: _, EditComponent: C, CancelComponent: O, DoneComponent: F, CustomOperation: q }) {
|
|
1855
1855
|
const [j, D] = $(0), U = te(() => D((B) => ++B), []), [P, M] = $(e);
|
|
1856
1856
|
return ee(() => M(e), [e]), d.jsx(Ae.Provider, Object.assign({ value: {
|
|
1857
1857
|
src: P,
|
|
@@ -1866,14 +1866,14 @@ function Wf({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r
|
|
|
1866
1866
|
onEdit: c,
|
|
1867
1867
|
onDelete: u,
|
|
1868
1868
|
onAdd: p,
|
|
1869
|
-
onChange:
|
|
1869
|
+
onChange: g,
|
|
1870
1870
|
forceUpdate: U,
|
|
1871
1871
|
customizeNode: b,
|
|
1872
1872
|
customizeCopy: R,
|
|
1873
1873
|
displaySize: A,
|
|
1874
1874
|
displayArrayIndex: m,
|
|
1875
1875
|
matchesURL: y,
|
|
1876
|
-
urlRegExp:
|
|
1876
|
+
urlRegExp: f,
|
|
1877
1877
|
ignoreLargeArray: T,
|
|
1878
1878
|
CopyComponent: I,
|
|
1879
1879
|
CopiedComponent: _,
|
|
@@ -1881,7 +1881,7 @@ function Wf({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r
|
|
|
1881
1881
|
CancelComponent: O,
|
|
1882
1882
|
DoneComponent: F,
|
|
1883
1883
|
CustomOperation: q
|
|
1884
|
-
} }, { children: d.jsx("code", Object.assign({ className: "json-view" + (h ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (S ? " " + S : ""), style: E }, { children: d.jsx(
|
|
1884
|
+
} }, { children: d.jsx("code", Object.assign({ className: "json-view" + (h ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (S ? " " + S : ""), style: E }, { children: d.jsx(Vf, { node: P, depth: 1, editHandle: (B, w, k, x) => {
|
|
1885
1885
|
M(w), c && c({
|
|
1886
1886
|
newValue: w,
|
|
1887
1887
|
oldValue: k,
|
|
@@ -1890,7 +1890,7 @@ function Wf({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r
|
|
|
1890
1890
|
indexOrName: B,
|
|
1891
1891
|
parentType: null,
|
|
1892
1892
|
parentPath: x
|
|
1893
|
-
}),
|
|
1893
|
+
}), g && g({ type: "edit", depth: 1, src: P, indexOrName: B, parentType: null, parentPath: x });
|
|
1894
1894
|
}, deleteHandle: (B, w) => {
|
|
1895
1895
|
M(void 0), u && u({
|
|
1896
1896
|
value: P,
|
|
@@ -1899,7 +1899,7 @@ function Wf({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r
|
|
|
1899
1899
|
indexOrName: B,
|
|
1900
1900
|
parentType: null,
|
|
1901
1901
|
parentPath: w
|
|
1902
|
-
}),
|
|
1902
|
+
}), g && g({
|
|
1903
1903
|
depth: 1,
|
|
1904
1904
|
src: P,
|
|
1905
1905
|
indexOrName: B,
|
|
@@ -1909,24 +1909,24 @@ function Wf({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r
|
|
|
1909
1909
|
});
|
|
1910
1910
|
}, parentPath: [] }) })) }));
|
|
1911
1911
|
}
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1912
|
+
const Xb = ({ endpoint: e, panelName: t, value: r }) => ["post", "put", "patch"].includes(e.method.toLowerCase()) ? /* @__PURE__ */ d.jsx(Os, { title: "Body", size: "sm", contentClassName: "p-0", "data-testid": `endpoint-body-panel__${t}`, children: /* @__PURE__ */ d.jsx(
|
|
1913
|
+
Yf,
|
|
1914
1914
|
{
|
|
1915
1915
|
src: r ? JSON.parse(r) : {},
|
|
1916
1916
|
theme: "default",
|
|
1917
1917
|
enableClipboard: !1,
|
|
1918
1918
|
style: { backgroundColor: "transparent" }
|
|
1919
1919
|
}
|
|
1920
|
-
) }) : null,
|
|
1921
|
-
const t =
|
|
1920
|
+
) }) : null, Jb = ({ endpoint: e }) => {
|
|
1921
|
+
const t = Gf(e.path);
|
|
1922
1922
|
return t.length ? /* @__PURE__ */ d.jsx(Os, { title: "Path params", size: "sm", variant: "default", children: /* @__PURE__ */ d.jsx("div", { className: "grid gap-3", style: { gridTemplateColumns: "1fr 2fr" }, children: t.map((r) => /* @__PURE__ */ d.jsx("div", { className: "font-bold leading-[36px] flex text-xs", children: r }, r)) }) }) : null;
|
|
1923
|
-
}, Qb = ({ endpoint: e }) => e.queryParams?.length ? /* @__PURE__ */ d.jsx(Os, { title: "Query params", size: "sm", variant: "outlined", children: /* @__PURE__ */ d.jsx("div", { className: "grid gap-3", style: { gridTemplateColumns: "1fr 2fr", gridTemplateRows: "1fr 1fr" }, children: e.queryParams.map((t) => /* @__PURE__ */ d.jsxs(
|
|
1923
|
+
}, Qb = ({ endpoint: e }) => e.queryParams?.length ? /* @__PURE__ */ d.jsx(Os, { title: "Query params", size: "sm", variant: "outlined", children: /* @__PURE__ */ d.jsx("div", { className: "grid gap-3", style: { gridTemplateColumns: "1fr 2fr", gridTemplateRows: "1fr 1fr" }, children: e.queryParams.map((t) => /* @__PURE__ */ d.jsxs(_m, { children: [
|
|
1924
1924
|
/* @__PURE__ */ d.jsx("div", { className: "font-bold leading-[36px] flex text-xs", children: t.name }),
|
|
1925
1925
|
/* @__PURE__ */ d.jsx("div", { className: "flex items-center text-xs ", children: /* @__PURE__ */ d.jsx("span", { children: t.description }) })
|
|
1926
1926
|
] }, t.name)) }) }) : null, eh = ({ responseCode: e, bodySchema: t }) => {
|
|
1927
1927
|
const r = Ds((i) => i.theme), n = me(() => We(t), [t]), a = typeof t.description == "string" ? t.description : "";
|
|
1928
1928
|
return /* @__PURE__ */ d.jsx(Fe, { value: e, className: "border-t", children: /* @__PURE__ */ d.jsx("div", { className: "text-xs font-mono rounded-lg whitespace-pre-wrap", children: n ? /* @__PURE__ */ d.jsx(
|
|
1929
|
-
|
|
1929
|
+
Yf,
|
|
1930
1930
|
{
|
|
1931
1931
|
src: n,
|
|
1932
1932
|
dark: r === "dark",
|
|
@@ -1946,9 +1946,9 @@ const Zb = ({ endpoint: e, panelName: t, value: r }) => ["post", "put", "patch"]
|
|
|
1946
1946
|
)) }) }),
|
|
1947
1947
|
e.map((t) => /* @__PURE__ */ d.jsx(eh, { ...t }, t.responseCode))
|
|
1948
1948
|
] }) }), rh = ({ endpoint: e, onClose: t }) => {
|
|
1949
|
-
const { body: r } =
|
|
1949
|
+
const { body: r } = Cb(e.bodySchema);
|
|
1950
1950
|
return /* @__PURE__ */ d.jsxs(
|
|
1951
|
-
|
|
1951
|
+
wm,
|
|
1952
1952
|
{
|
|
1953
1953
|
initialWidth: 600,
|
|
1954
1954
|
subtitle: e.description,
|
|
@@ -1963,7 +1963,7 @@ const Zb = ({ endpoint: e, panelName: t, value: r }) => ["post", "put", "patch"]
|
|
|
1963
1963
|
children: [
|
|
1964
1964
|
/* @__PURE__ */ d.jsx(Jb, { endpoint: e }),
|
|
1965
1965
|
/* @__PURE__ */ d.jsx(Qb, { endpoint: e }),
|
|
1966
|
-
/* @__PURE__ */ d.jsx(
|
|
1966
|
+
/* @__PURE__ */ d.jsx(Xb, { endpoint: e, panelName: "details", value: r }),
|
|
1967
1967
|
/* @__PURE__ */ d.jsx(
|
|
1968
1968
|
th,
|
|
1969
1969
|
{
|
|
@@ -2218,12 +2218,12 @@ function kh(e) {
|
|
|
2218
2218
|
}) : e;
|
|
2219
2219
|
}
|
|
2220
2220
|
function Ch() {
|
|
2221
|
-
console.warn(
|
|
2221
|
+
console.warn(Kf.deprecation);
|
|
2222
2222
|
}
|
|
2223
2223
|
function Oh(e, t) {
|
|
2224
2224
|
throw new Error(e[t] || e.default);
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2226
|
+
var Kf = {
|
|
2227
2227
|
configIsRequired: "the configuration object is required",
|
|
2228
2228
|
configType: "the configuration object should be an object",
|
|
2229
2229
|
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
@@ -2237,7 +2237,7 @@ var Yf = {
|
|
|
2237
2237
|
|
|
2238
2238
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
2239
2239
|
`
|
|
2240
|
-
}, Hl = Ih(Oh)(
|
|
2240
|
+
}, Hl = Ih(Oh)(Kf), xh = {
|
|
2241
2241
|
config: kh
|
|
2242
2242
|
}, Lh = function() {
|
|
2243
2243
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
@@ -2248,9 +2248,9 @@ var Yf = {
|
|
|
2248
2248
|
}, a);
|
|
2249
2249
|
};
|
|
2250
2250
|
};
|
|
2251
|
-
function
|
|
2251
|
+
function Zf(e, t) {
|
|
2252
2252
|
return Object.keys(t).forEach(function(r) {
|
|
2253
|
-
t[r] instanceof Object && e[r] && Object.assign(t[r],
|
|
2253
|
+
t[r] instanceof Object && e[r] && Object.assign(t[r], Zf(e[r], t[r]));
|
|
2254
2254
|
}), ql(ql({}, e), t);
|
|
2255
2255
|
}
|
|
2256
2256
|
var Dh = {
|
|
@@ -2273,12 +2273,12 @@ var Mh = _h.create({
|
|
|
2273
2273
|
resolve: null,
|
|
2274
2274
|
reject: null,
|
|
2275
2275
|
monaco: null
|
|
2276
|
-
}),
|
|
2276
|
+
}), Xf = oh(Mh, 2), Ze = Xf[0], gt = Xf[1];
|
|
2277
2277
|
function Fh(e) {
|
|
2278
2278
|
var t = xh.config(e), r = t.monaco, n = ih(t, ["monaco"]);
|
|
2279
2279
|
gt(function(a) {
|
|
2280
2280
|
return {
|
|
2281
|
-
config:
|
|
2281
|
+
config: Zf(a.config, n),
|
|
2282
2282
|
monaco: r
|
|
2283
2283
|
};
|
|
2284
2284
|
});
|
|
@@ -2298,7 +2298,7 @@ function Uh() {
|
|
|
2298
2298
|
}), e.monaco)
|
|
2299
2299
|
return e.resolve(e.monaco), _t(wt);
|
|
2300
2300
|
if (window.monaco && window.monaco.editor)
|
|
2301
|
-
return
|
|
2301
|
+
return Jf(window.monaco), e.resolve(window.monaco), _t(wt);
|
|
2302
2302
|
Lh(Ph, qh)(jh);
|
|
2303
2303
|
}
|
|
2304
2304
|
return _t(wt);
|
|
@@ -2332,12 +2332,12 @@ function jh() {
|
|
|
2332
2332
|
};
|
|
2333
2333
|
}), t = window.require;
|
|
2334
2334
|
t.config(e.config), t(["vs/editor/editor.main"], function(r) {
|
|
2335
|
-
|
|
2335
|
+
Jf(r), e.resolve(r);
|
|
2336
2336
|
}, function(r) {
|
|
2337
2337
|
e.reject(r);
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function Jf(e) {
|
|
2341
2341
|
Ze().monaco || gt({
|
|
2342
2342
|
monaco: e
|
|
2343
2343
|
});
|
|
@@ -2365,7 +2365,7 @@ var Wh = Vh, Yh = Wh;
|
|
|
2365
2365
|
function Kh({ width: e, height: t, isEditorReady: r, loading: n, _ref: a, className: i, wrapperProps: o }) {
|
|
2366
2366
|
return W.createElement("section", { style: { ...It.wrapper, width: e, height: t }, ...o }, !r && W.createElement(Yh, null, n), W.createElement("div", { ref: a, style: { ...It.fullWidth, ...!r && It.hide }, className: i }));
|
|
2367
2367
|
}
|
|
2368
|
-
var Zh = Kh,
|
|
2368
|
+
var Zh = Kh, Qf = he(Zh);
|
|
2369
2369
|
function Xh(e) {
|
|
2370
2370
|
ee(e, []);
|
|
2371
2371
|
}
|
|
@@ -2383,60 +2383,60 @@ function Le(e, t, r, n) {
|
|
|
2383
2383
|
return Qh(e, n) || eE(e, t, r, n);
|
|
2384
2384
|
}
|
|
2385
2385
|
function Qh(e, t) {
|
|
2386
|
-
return e.editor.getModel(
|
|
2386
|
+
return e.editor.getModel(em(e, t));
|
|
2387
2387
|
}
|
|
2388
2388
|
function eE(e, t, r, n) {
|
|
2389
|
-
return e.editor.createModel(t, r, n ?
|
|
2389
|
+
return e.editor.createModel(t, r, n ? em(e, n) : void 0);
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function em(e, t) {
|
|
2392
2392
|
return e.Uri.parse(t);
|
|
2393
2393
|
}
|
|
2394
|
-
function tE({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: a, originalModelPath: i, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: p = {}, height:
|
|
2395
|
-
let [m, E] = $(!1), [S, y] = $(!0),
|
|
2394
|
+
function tE({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: a, originalModelPath: i, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: p = {}, height: g = "100%", width: h = "100%", className: v, wrapperProps: b = {}, beforeMount: R = ze, onMount: A = ze }) {
|
|
2395
|
+
let [m, E] = $(!1), [S, y] = $(!0), f = V(null), T = V(null), I = V(null), _ = V(A), C = V(R), O = V(!1);
|
|
2396
2396
|
zs(() => {
|
|
2397
2397
|
let D = ut.init();
|
|
2398
|
-
return D.then((U) => (T.current = U) && y(!1)).catch((U) => U?.type !== "cancelation" && console.error("Monaco initialization: error:", U)), () =>
|
|
2398
|
+
return D.then((U) => (T.current = U) && y(!1)).catch((U) => U?.type !== "cancelation" && console.error("Monaco initialization: error:", U)), () => f.current ? j() : D.cancel();
|
|
2399
2399
|
}), ie(() => {
|
|
2400
|
-
if (
|
|
2401
|
-
let D =
|
|
2400
|
+
if (f.current && T.current) {
|
|
2401
|
+
let D = f.current.getOriginalEditor(), U = Le(T.current, e || "", n || r || "text", i || "");
|
|
2402
2402
|
U !== D.getModel() && D.setModel(U);
|
|
2403
2403
|
}
|
|
2404
2404
|
}, [i], m), ie(() => {
|
|
2405
|
-
if (
|
|
2406
|
-
let D =
|
|
2405
|
+
if (f.current && T.current) {
|
|
2406
|
+
let D = f.current.getModifiedEditor(), U = Le(T.current, t || "", a || r || "text", o || "");
|
|
2407
2407
|
U !== D.getModel() && D.setModel(U);
|
|
2408
2408
|
}
|
|
2409
2409
|
}, [o], m), ie(() => {
|
|
2410
|
-
let D =
|
|
2410
|
+
let D = f.current.getModifiedEditor();
|
|
2411
2411
|
D.getOption(T.current.editor.EditorOption.readOnly) ? D.setValue(t || "") : t !== D.getValue() && (D.executeEdits("", [{ range: D.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), D.pushUndoStop());
|
|
2412
2412
|
}, [t], m), ie(() => {
|
|
2413
|
-
|
|
2413
|
+
f.current?.getModel()?.original.setValue(e || "");
|
|
2414
2414
|
}, [e], m), ie(() => {
|
|
2415
|
-
let { original: D, modified: U } =
|
|
2415
|
+
let { original: D, modified: U } = f.current.getModel();
|
|
2416
2416
|
T.current.editor.setModelLanguage(D, n || r || "text"), T.current.editor.setModelLanguage(U, a || r || "text");
|
|
2417
2417
|
}, [r, n, a], m), ie(() => {
|
|
2418
2418
|
T.current?.editor.setTheme(c);
|
|
2419
2419
|
}, [c], m), ie(() => {
|
|
2420
|
-
|
|
2420
|
+
f.current?.updateOptions(p);
|
|
2421
2421
|
}, [p], m);
|
|
2422
2422
|
let F = te(() => {
|
|
2423
2423
|
if (!T.current) return;
|
|
2424
2424
|
C.current(T.current);
|
|
2425
2425
|
let D = Le(T.current, e || "", n || r || "text", i || ""), U = Le(T.current, t || "", a || r || "text", o || "");
|
|
2426
|
-
|
|
2426
|
+
f.current?.setModel({ original: D, modified: U });
|
|
2427
2427
|
}, [r, t, a, e, n, i, o]), q = te(() => {
|
|
2428
|
-
!O.current && I.current && (
|
|
2428
|
+
!O.current && I.current && (f.current = T.current.editor.createDiffEditor(I.current, { automaticLayout: !0, ...p }), F(), T.current?.editor.setTheme(c), E(!0), O.current = !0);
|
|
2429
2429
|
}, [p, c, F]);
|
|
2430
2430
|
ee(() => {
|
|
2431
|
-
m && _.current(
|
|
2431
|
+
m && _.current(f.current, T.current);
|
|
2432
2432
|
}, [m]), ee(() => {
|
|
2433
2433
|
!S && !m && q();
|
|
2434
2434
|
}, [S, m, q]);
|
|
2435
2435
|
function j() {
|
|
2436
|
-
let D =
|
|
2437
|
-
s || D?.original?.dispose(), l || D?.modified?.dispose(),
|
|
2436
|
+
let D = f.current?.getModel();
|
|
2437
|
+
s || D?.original?.dispose(), l || D?.modified?.dispose(), f.current?.dispose();
|
|
2438
2438
|
}
|
|
2439
|
-
return W.createElement(
|
|
2439
|
+
return W.createElement(Qf, { width: h, height: g, isEditorReady: m, loading: u, _ref: I, className: v, wrapperProps: b });
|
|
2440
2440
|
}
|
|
2441
2441
|
var rE = tE;
|
|
2442
2442
|
he(rE);
|
|
@@ -2457,8 +2457,8 @@ function iE(e) {
|
|
|
2457
2457
|
}, [e]), t.current;
|
|
2458
2458
|
}
|
|
2459
2459
|
var oE = iE, nt = /* @__PURE__ */ new Map();
|
|
2460
|
-
function sE({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: a, path: i, theme: o = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: p = !0, keepCurrentModel:
|
|
2461
|
-
let [y,
|
|
2460
|
+
function sE({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: a, path: i, theme: o = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: p = !0, keepCurrentModel: g = !1, width: h = "100%", height: v = "100%", className: b, wrapperProps: R = {}, beforeMount: A = ze, onMount: m = ze, onChange: E, onValidate: S = ze }) {
|
|
2461
|
+
let [y, f] = $(!1), [T, I] = $(!0), _ = V(null), C = V(null), O = V(null), F = V(m), q = V(A), j = V(), D = V(n), U = oE(i), P = V(!1), M = V(!1);
|
|
2462
2462
|
zs(() => {
|
|
2463
2463
|
let k = ut.init();
|
|
2464
2464
|
return k.then((x) => (_.current = x) && I(!1)).catch((x) => x?.type !== "cancelation" && console.error("Monaco initialization: error:", x)), () => C.current ? w() : k.cancel();
|
|
@@ -2481,7 +2481,7 @@ function sE({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, lan
|
|
|
2481
2481
|
if (!(!O.current || !_.current) && !P.current) {
|
|
2482
2482
|
q.current(_.current);
|
|
2483
2483
|
let k = i || r, x = Le(_.current, n || e || "", t || a || "", k || "");
|
|
2484
|
-
C.current = _.current?.editor.create(O.current, { model: x, automaticLayout: !0, ...c }, u), p && C.current.restoreViewState(nt.get(k)), _.current.editor.setTheme(o), s !== void 0 && C.current.revealLine(s),
|
|
2484
|
+
C.current = _.current?.editor.create(O.current, { model: x, automaticLayout: !0, ...c }, u), p && C.current.restoreViewState(nt.get(k)), _.current.editor.setTheme(o), s !== void 0 && C.current.revealLine(s), f(!0), P.current = !0;
|
|
2485
2485
|
}
|
|
2486
2486
|
}, [e, t, r, n, a, i, c, u, p, o, s]);
|
|
2487
2487
|
ee(() => {
|
|
@@ -2509,9 +2509,9 @@ function sE({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, lan
|
|
|
2509
2509
|
};
|
|
2510
2510
|
}, [y, S]);
|
|
2511
2511
|
function w() {
|
|
2512
|
-
j.current?.dispose(),
|
|
2512
|
+
j.current?.dispose(), g ? p && nt.set(i, C.current.saveViewState()) : C.current.getModel()?.dispose(), C.current.dispose();
|
|
2513
2513
|
}
|
|
2514
|
-
return W.createElement(
|
|
2514
|
+
return W.createElement(Qf, { width: h, height: v, isEditorReady: y, loading: l, _ref: O, className: b, wrapperProps: R });
|
|
2515
2515
|
}
|
|
2516
2516
|
var lE = sE, uE = he(lE);
|
|
2517
2517
|
const cE = ({
|
|
@@ -2522,7 +2522,7 @@ const cE = ({
|
|
|
2522
2522
|
language: a = "json",
|
|
2523
2523
|
readOnly: i = !1
|
|
2524
2524
|
}) => {
|
|
2525
|
-
const o = aE(), s = Ds((
|
|
2525
|
+
const o = aE(), s = Ds((g) => g.theme), l = me(() => s === "dark" ? "transparent-dark" : "transparent-light", [s]), [c, u] = $(null), p = V(null);
|
|
2526
2526
|
return ee(() => {
|
|
2527
2527
|
o && (o.editor.defineTheme("transparent-light", {
|
|
2528
2528
|
base: "vs",
|
|
@@ -2567,17 +2567,17 @@ const cE = ({
|
|
|
2567
2567
|
o && o.editor.setTheme(l);
|
|
2568
2568
|
}, [o, l]), ee(() => {
|
|
2569
2569
|
if (!c) return;
|
|
2570
|
-
const
|
|
2571
|
-
if (!
|
|
2570
|
+
const g = c.getContainerDomNode().parentElement?.parentElement;
|
|
2571
|
+
if (!g) return;
|
|
2572
2572
|
const h = () => {
|
|
2573
2573
|
p.current !== null && cancelAnimationFrame(p.current), p.current = requestAnimationFrame(() => {
|
|
2574
|
-
const { width: b, height: R } =
|
|
2574
|
+
const { width: b, height: R } = g.getBoundingClientRect();
|
|
2575
2575
|
c.layout({ width: b, height: R }), p.current = null;
|
|
2576
2576
|
});
|
|
2577
2577
|
};
|
|
2578
2578
|
h();
|
|
2579
2579
|
const v = new ResizeObserver(h);
|
|
2580
|
-
return v.observe(
|
|
2580
|
+
return v.observe(g), () => {
|
|
2581
2581
|
v.disconnect(), p.current !== null && cancelAnimationFrame(p.current);
|
|
2582
2582
|
};
|
|
2583
2583
|
}, [c]), /* @__PURE__ */ d.jsx(
|
|
@@ -2588,10 +2588,10 @@ const cE = ({
|
|
|
2588
2588
|
value: e,
|
|
2589
2589
|
theme: l,
|
|
2590
2590
|
onMount: u,
|
|
2591
|
-
onChange: (
|
|
2592
|
-
|
|
2591
|
+
onChange: (g) => {
|
|
2592
|
+
g || n?.(!1), r?.(g ?? "");
|
|
2593
2593
|
},
|
|
2594
|
-
onValidate: (
|
|
2594
|
+
onValidate: (g) => n?.(g.length === 0),
|
|
2595
2595
|
options: {
|
|
2596
2596
|
automaticLayout: !1,
|
|
2597
2597
|
readOnly: i,
|
|
@@ -2602,7 +2602,7 @@ const cE = ({
|
|
|
2602
2602
|
}
|
|
2603
2603
|
);
|
|
2604
2604
|
}, dE = he(({ schema: e }) => {
|
|
2605
|
-
const { setBody: t, setBodyIsValid: r } = Z(), n = Z(ue(
|
|
2605
|
+
const { setBody: t, setBodyIsValid: r } = Z(), n = Z(ue(wb)), a = Z(Bf);
|
|
2606
2606
|
ee(() => {
|
|
2607
2607
|
e && (t(a || JSON.stringify(We(e), null, 2)), r(!0));
|
|
2608
2608
|
}, [e]);
|
|
@@ -2620,7 +2620,7 @@ const cE = ({
|
|
|
2620
2620
|
className: "absolute bottom-0 left-0 right-0 border-t border-border p-3 text-sm dark:text-yellow-500 text-yellow-700 flex items-center gap-1 font-medium",
|
|
2621
2621
|
"data-testid": "endpoint-body-tab-invalid",
|
|
2622
2622
|
children: [
|
|
2623
|
-
/* @__PURE__ */ d.jsx(
|
|
2623
|
+
/* @__PURE__ */ d.jsx(Ym, { className: "w-4 h-4" }),
|
|
2624
2624
|
"The body payload is invalid"
|
|
2625
2625
|
]
|
|
2626
2626
|
}
|
|
@@ -2635,7 +2635,7 @@ const cE = ({
|
|
|
2635
2635
|
}, 5e3);
|
|
2636
2636
|
},
|
|
2637
2637
|
[l]
|
|
2638
|
-
),
|
|
2638
|
+
), g = te(() => {
|
|
2639
2639
|
a || o(t);
|
|
2640
2640
|
}, [t, a]), h = te(() => {
|
|
2641
2641
|
a || o(null);
|
|
@@ -2647,11 +2647,11 @@ const cE = ({
|
|
|
2647
2647
|
"grid grid-cols-[auto_1fr_auto] items-center py-2 px-4 bg-muted/30 rounded-lg gap-2",
|
|
2648
2648
|
u && "bg-card"
|
|
2649
2649
|
),
|
|
2650
|
-
onMouseOver:
|
|
2650
|
+
onMouseOver: g,
|
|
2651
2651
|
onMouseLeave: h,
|
|
2652
2652
|
children: [
|
|
2653
2653
|
/* @__PURE__ */ d.jsx(
|
|
2654
|
-
|
|
2654
|
+
Im,
|
|
2655
2655
|
{
|
|
2656
2656
|
checked: e.active,
|
|
2657
2657
|
onCheckedChange: (v) => r(t, "active", v),
|
|
@@ -2696,7 +2696,7 @@ const cE = ({
|
|
|
2696
2696
|
},
|
|
2697
2697
|
className: se("h-6 w-6 opacity-0 transition-opacity duration-200", u && "opacity-100"),
|
|
2698
2698
|
title: s === t && u ? "Click again to remove" : "Remove",
|
|
2699
|
-
children: s === t ? /* @__PURE__ */ d.jsx(
|
|
2699
|
+
children: s === t ? /* @__PURE__ */ d.jsx(Vm, { className: "h-3 w-3 text-destructive" }) : /* @__PURE__ */ d.jsx(sb, { className: "h-3 w-3" })
|
|
2700
2700
|
}
|
|
2701
2701
|
)
|
|
2702
2702
|
]
|
|
@@ -2729,11 +2729,11 @@ const cE = ({
|
|
|
2729
2729
|
] });
|
|
2730
2730
|
}, gE = (e) => Object.values(Us(e)).filter(
|
|
2731
2731
|
(t) => t.active && t.value !== "" && t.name !== ""
|
|
2732
|
-
),
|
|
2732
|
+
), tm = (e) => {
|
|
2733
2733
|
const t = Z(ue(jf)), r = Z(ue(gE));
|
|
2734
2734
|
return me(() => e.replace(/:(\w+)/g, (a, i) => t[i]?.value || a) + (r.length > 0 ? `?${r.map((a) => `${a.name}=${a.value}`).join("&")}` : ""), [e, t, r]);
|
|
2735
2735
|
}, fE = ({ path: e, baseUrl: t = window.location.origin }) => {
|
|
2736
|
-
const r =
|
|
2736
|
+
const r = tm(e), n = `${t}${r}`, [a, i] = $(!1), o = async () => {
|
|
2737
2737
|
try {
|
|
2738
2738
|
await navigator.clipboard.writeText(n), i(!0), setTimeout(() => i(!1), 2e3);
|
|
2739
2739
|
} catch (s) {
|
|
@@ -2755,7 +2755,7 @@ const cE = ({
|
|
|
2755
2755
|
variant: "icon",
|
|
2756
2756
|
size: "sm",
|
|
2757
2757
|
"aria-label": "Copy URL",
|
|
2758
|
-
children: a ? /* @__PURE__ */ d.jsx(Ff, { className: "w-2.5 h-2.5" }) : /* @__PURE__ */ d.jsx(
|
|
2758
|
+
children: a ? /* @__PURE__ */ d.jsx(Ff, { className: "w-2.5 h-2.5" }) : /* @__PURE__ */ d.jsx(Zm, { className: "w-2.5 h-2.5" })
|
|
2759
2759
|
}
|
|
2760
2760
|
)
|
|
2761
2761
|
] })
|
|
@@ -2769,13 +2769,13 @@ const cE = ({
|
|
|
2769
2769
|
};
|
|
2770
2770
|
t({ ...a, [(/* @__PURE__ */ new Date()).getTime().toString()]: u });
|
|
2771
2771
|
}, [a, t]), l = te(
|
|
2772
|
-
(u, p,
|
|
2773
|
-
u && t({ ...a, [u]: { ...a[u], [p]:
|
|
2772
|
+
(u, p, g) => {
|
|
2773
|
+
u && t({ ...a, [u]: { ...a[u], [p]: g } });
|
|
2774
2774
|
},
|
|
2775
2775
|
[a, t]
|
|
2776
2776
|
), c = te(
|
|
2777
|
-
(u, p,
|
|
2778
|
-
u && n({ ...i, [u]: { ...i[u], [p]:
|
|
2777
|
+
(u, p, g) => {
|
|
2778
|
+
u && n({ ...i, [u]: { ...i[u], [p]: g } });
|
|
2779
2779
|
},
|
|
2780
2780
|
[i, n]
|
|
2781
2781
|
);
|
|
@@ -2816,7 +2816,7 @@ const cE = ({
|
|
|
2816
2816
|
] })
|
|
2817
2817
|
] });
|
|
2818
2818
|
}, bE = (e) => {
|
|
2819
|
-
const { __motia: t, ...r } = typeof e == "string" ? {} : e || {}, { data: n } =
|
|
2819
|
+
const { __motia: t, ...r } = typeof e == "string" ? {} : e || {}, { data: n } = Cm(t), a = Array.isArray(e) ? e : r || e;
|
|
2820
2820
|
return typeof e == "string" ? {
|
|
2821
2821
|
data: e,
|
|
2822
2822
|
originalData: e,
|
|
@@ -2978,7 +2978,7 @@ function IE(e) {
|
|
|
2978
2978
|
var t = wE(e, "string");
|
|
2979
2979
|
return Ke(t) == "symbol" ? t : t + "";
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function rm(e, t, r) {
|
|
2982
2982
|
return (t = IE(t)) in e ? Object.defineProperty(e, t, {
|
|
2983
2983
|
value: r,
|
|
2984
2984
|
enumerable: !0,
|
|
@@ -3009,7 +3009,7 @@ function De(e) {
|
|
|
3009
3009
|
for (var t = 1; t < arguments.length; t++) {
|
|
3010
3010
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3011
3011
|
t % 2 ? zl(Object(r), !0).forEach(function(n) {
|
|
3012
|
-
|
|
3012
|
+
rm(e, n, r[n]);
|
|
3013
3013
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : zl(Object(r)).forEach(function(n) {
|
|
3014
3014
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3015
3015
|
});
|
|
@@ -3047,7 +3047,7 @@ function OE(e, t) {
|
|
|
3047
3047
|
var r = 0;
|
|
3048
3048
|
return function(n) {
|
|
3049
3049
|
return r += 1, n.map(function(a, i) {
|
|
3050
|
-
return
|
|
3050
|
+
return nm({
|
|
3051
3051
|
node: a,
|
|
3052
3052
|
stylesheet: e,
|
|
3053
3053
|
useInlineStyles: t,
|
|
@@ -3056,14 +3056,14 @@ function OE(e, t) {
|
|
|
3056
3056
|
});
|
|
3057
3057
|
};
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function nm(e) {
|
|
3060
3060
|
var t = e.node, r = e.stylesheet, n = e.style, a = n === void 0 ? {} : n, i = e.useInlineStyles, o = e.key, s = t.properties, l = t.type, c = t.tagName, u = t.value;
|
|
3061
3061
|
if (l === "text")
|
|
3062
3062
|
return u;
|
|
3063
3063
|
if (c) {
|
|
3064
|
-
var p = OE(r, i),
|
|
3064
|
+
var p = OE(r, i), g;
|
|
3065
3065
|
if (!i)
|
|
3066
|
-
|
|
3066
|
+
g = De(De({}, s), {}, {
|
|
3067
3067
|
className: Vl(s.className)
|
|
3068
3068
|
});
|
|
3069
3069
|
else {
|
|
@@ -3074,7 +3074,7 @@ function rm(e) {
|
|
|
3074
3074
|
}, []), v = s.className && s.className.includes("token") ? ["token"] : [], b = s.className && v.concat(s.className.filter(function(A) {
|
|
3075
3075
|
return !h.includes(A);
|
|
3076
3076
|
}));
|
|
3077
|
-
|
|
3077
|
+
g = De(De({}, s), {}, {
|
|
3078
3078
|
className: Vl(b) || void 0,
|
|
3079
3079
|
style: CE(s.className, Object.assign({}, s.style, a), r)
|
|
3080
3080
|
});
|
|
@@ -3082,7 +3082,7 @@ function rm(e) {
|
|
|
3082
3082
|
var R = p(t.children);
|
|
3083
3083
|
return /* @__PURE__ */ W.createElement(c, Cs({
|
|
3084
3084
|
key: o
|
|
3085
|
-
},
|
|
3085
|
+
}, g), R);
|
|
3086
3086
|
}
|
|
3087
3087
|
}
|
|
3088
3088
|
const xE = function(e, t) {
|
|
@@ -3104,7 +3104,7 @@ function Se(e) {
|
|
|
3104
3104
|
for (var t = 1; t < arguments.length; t++) {
|
|
3105
3105
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3106
3106
|
t % 2 ? Wl(Object(r), !0).forEach(function(n) {
|
|
3107
|
-
|
|
3107
|
+
rm(e, n, r[n]);
|
|
3108
3108
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wl(Object(r)).forEach(function(n) {
|
|
3109
3109
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3110
3110
|
});
|
|
@@ -3144,7 +3144,7 @@ function UE(e) {
|
|
|
3144
3144
|
function PE(e) {
|
|
3145
3145
|
return "".concat(e.toString().length, ".25em");
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3147
|
+
function am(e, t) {
|
|
3148
3148
|
return {
|
|
3149
3149
|
type: "element",
|
|
3150
3150
|
tagName: "span",
|
|
@@ -3159,7 +3159,7 @@ function nm(e, t) {
|
|
|
3159
3159
|
}]
|
|
3160
3160
|
};
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function im(e, t, r) {
|
|
3163
3163
|
var n = {
|
|
3164
3164
|
display: "inline-block",
|
|
3165
3165
|
minWidth: PE(r),
|
|
@@ -3170,10 +3170,10 @@ function am(e, t, r) {
|
|
|
3170
3170
|
return i;
|
|
3171
3171
|
}
|
|
3172
3172
|
function ot(e) {
|
|
3173
|
-
var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, a = e.largestLineNumber, i = e.showInlineLineNumbers, o = e.lineProps, s = o === void 0 ? {} : o, l = e.className, c = l === void 0 ? [] : l, u = e.showLineNumbers, p = e.wrapLongLines,
|
|
3173
|
+
var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, a = e.largestLineNumber, i = e.showInlineLineNumbers, o = e.lineProps, s = o === void 0 ? {} : o, l = e.className, c = l === void 0 ? [] : l, u = e.showLineNumbers, p = e.wrapLongLines, g = e.wrapLines, h = g === void 0 ? !1 : g, v = h ? Se({}, typeof s == "function" ? s(r) : s) : {};
|
|
3174
3174
|
if (v.className = v.className ? [].concat(ks(v.className.trim().split(/\s+/)), ks(c)) : c, r && i) {
|
|
3175
|
-
var b =
|
|
3176
|
-
t.unshift(
|
|
3175
|
+
var b = im(n, r, a);
|
|
3176
|
+
t.unshift(am(r, b));
|
|
3177
3177
|
}
|
|
3178
3178
|
return p & u && (v.style = Se({
|
|
3179
3179
|
display: "flex"
|
|
@@ -3184,7 +3184,7 @@ function ot(e) {
|
|
|
3184
3184
|
children: t
|
|
3185
3185
|
};
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function om(e) {
|
|
3188
3188
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], n = 0; n < e.length; n++) {
|
|
3189
3189
|
var a = e[n];
|
|
3190
3190
|
if (a.type === "text")
|
|
@@ -3194,7 +3194,7 @@ function im(e) {
|
|
|
3194
3194
|
}));
|
|
3195
3195
|
else if (a.children) {
|
|
3196
3196
|
var i = t.concat(a.properties.className);
|
|
3197
|
-
|
|
3197
|
+
om(a.children, i).forEach(function(o) {
|
|
3198
3198
|
return r.push(o);
|
|
3199
3199
|
});
|
|
3200
3200
|
}
|
|
@@ -3202,12 +3202,12 @@ function im(e) {
|
|
|
3202
3202
|
return r;
|
|
3203
3203
|
}
|
|
3204
3204
|
function BE(e, t, r, n, a, i, o, s, l) {
|
|
3205
|
-
var c, u =
|
|
3206
|
-
function v(y,
|
|
3205
|
+
var c, u = om(e.value), p = [], g = -1, h = 0;
|
|
3206
|
+
function v(y, f) {
|
|
3207
3207
|
var T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
3208
3208
|
return ot({
|
|
3209
3209
|
children: y,
|
|
3210
|
-
lineNumber:
|
|
3210
|
+
lineNumber: f,
|
|
3211
3211
|
lineNumberStyle: s,
|
|
3212
3212
|
largestLineNumber: o,
|
|
3213
3213
|
showInlineLineNumbers: a,
|
|
@@ -3218,19 +3218,19 @@ function BE(e, t, r, n, a, i, o, s, l) {
|
|
|
3218
3218
|
wrapLines: t
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
3221
|
-
function b(y,
|
|
3222
|
-
if (n &&
|
|
3223
|
-
var T =
|
|
3224
|
-
y.unshift(
|
|
3221
|
+
function b(y, f) {
|
|
3222
|
+
if (n && f && a) {
|
|
3223
|
+
var T = im(s, f, o);
|
|
3224
|
+
y.unshift(am(f, T));
|
|
3225
3225
|
}
|
|
3226
3226
|
return y;
|
|
3227
3227
|
}
|
|
3228
|
-
function R(y,
|
|
3228
|
+
function R(y, f) {
|
|
3229
3229
|
var T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
3230
|
-
return t || T.length > 0 ? v(y,
|
|
3230
|
+
return t || T.length > 0 ? v(y, f, T) : b(y, f);
|
|
3231
3231
|
}
|
|
3232
3232
|
for (var A = function() {
|
|
3233
|
-
var
|
|
3233
|
+
var f = u[h], T = f.children[0].value, I = ME(T);
|
|
3234
3234
|
if (I) {
|
|
3235
3235
|
var _ = T.split(`
|
|
3236
3236
|
`);
|
|
@@ -3241,9 +3241,9 @@ function BE(e, t, r, n, a, i, o, s, l) {
|
|
|
3241
3241
|
`)
|
|
3242
3242
|
};
|
|
3243
3243
|
if (O === 0) {
|
|
3244
|
-
var j = u.slice(
|
|
3244
|
+
var j = u.slice(g + 1, h).concat(ot({
|
|
3245
3245
|
children: [q],
|
|
3246
|
-
className:
|
|
3246
|
+
className: f.properties.className
|
|
3247
3247
|
})), D = R(j, F);
|
|
3248
3248
|
p.push(D);
|
|
3249
3249
|
} else if (O === _.length - 1) {
|
|
@@ -3254,24 +3254,24 @@ function BE(e, t, r, n, a, i, o, s, l) {
|
|
|
3254
3254
|
if (U) {
|
|
3255
3255
|
var M = ot({
|
|
3256
3256
|
children: [P],
|
|
3257
|
-
className:
|
|
3257
|
+
className: f.properties.className
|
|
3258
3258
|
});
|
|
3259
3259
|
u.splice(h + 1, 0, M);
|
|
3260
3260
|
} else {
|
|
3261
|
-
var B = [P], w = R(B, F,
|
|
3261
|
+
var B = [P], w = R(B, F, f.properties.className);
|
|
3262
3262
|
p.push(w);
|
|
3263
3263
|
}
|
|
3264
3264
|
} else {
|
|
3265
|
-
var k = [q], x = R(k, F,
|
|
3265
|
+
var k = [q], x = R(k, F, f.properties.className);
|
|
3266
3266
|
p.push(x);
|
|
3267
3267
|
}
|
|
3268
|
-
}),
|
|
3268
|
+
}), g = h;
|
|
3269
3269
|
}
|
|
3270
3270
|
h++;
|
|
3271
3271
|
}; h < u.length; )
|
|
3272
3272
|
A();
|
|
3273
|
-
if (
|
|
3274
|
-
var m = u.slice(
|
|
3273
|
+
if (g !== u.length - 1) {
|
|
3274
|
+
var m = u.slice(g + 1, u.length);
|
|
3275
3275
|
if (m && m.length) {
|
|
3276
3276
|
var E = n && p.length + i, S = R(m, E);
|
|
3277
3277
|
p.push(S);
|
|
@@ -3282,7 +3282,7 @@ function BE(e, t, r, n, a, i, o, s, l) {
|
|
|
3282
3282
|
function qE(e) {
|
|
3283
3283
|
var t = e.rows, r = e.stylesheet, n = e.useInlineStyles;
|
|
3284
3284
|
return t.map(function(a, i) {
|
|
3285
|
-
return
|
|
3285
|
+
return nm({
|
|
3286
3286
|
node: a,
|
|
3287
3287
|
stylesheet: r,
|
|
3288
3288
|
useInlineStyles: n,
|
|
@@ -3290,12 +3290,12 @@ function qE(e) {
|
|
|
3290
3290
|
});
|
|
3291
3291
|
});
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function sm(e) {
|
|
3294
3294
|
return e && typeof e.highlightAuto < "u";
|
|
3295
3295
|
}
|
|
3296
3296
|
function jE(e) {
|
|
3297
3297
|
var t = e.astGenerator, r = e.language, n = e.code, a = e.defaultCodeValue;
|
|
3298
|
-
if (
|
|
3298
|
+
if (sm(t)) {
|
|
3299
3299
|
var i = xE(t, r);
|
|
3300
3300
|
return r === "text" ? {
|
|
3301
3301
|
value: a,
|
|
@@ -3316,20 +3316,20 @@ function jE(e) {
|
|
|
3316
3316
|
}
|
|
3317
3317
|
function GE(e, t) {
|
|
3318
3318
|
return function(n) {
|
|
3319
|
-
var a, i, o = n.language, s = n.children, l = n.style, c = l === void 0 ? t : l, u = n.customStyle, p = u === void 0 ? {} : u,
|
|
3319
|
+
var a, i, o = n.language, s = n.children, l = n.style, c = l === void 0 ? t : l, u = n.customStyle, p = u === void 0 ? {} : u, g = n.codeTagProps, h = g === void 0 ? {
|
|
3320
3320
|
className: o ? "language-".concat(o) : void 0,
|
|
3321
3321
|
style: Se(Se({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(o, '"]')])
|
|
3322
|
-
} :
|
|
3322
|
+
} : g, v = n.useInlineStyles, b = v === void 0 ? !0 : v, R = n.showLineNumbers, A = R === void 0 ? !1 : R, m = n.showInlineLineNumbers, E = m === void 0 ? !0 : m, S = n.startingLineNumber, y = S === void 0 ? 1 : S, f = n.lineNumberContainerStyle, T = n.lineNumberStyle, I = T === void 0 ? {} : T, _ = n.wrapLines, C = n.wrapLongLines, O = C === void 0 ? !1 : C, F = n.lineProps, q = F === void 0 ? {} : F, j = n.renderer, D = n.PreTag, U = D === void 0 ? "pre" : D, P = n.CodeTag, M = P === void 0 ? "code" : P, B = n.code, w = B === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : B, k = n.astGenerator, x = vE(n, LE);
|
|
3323
3323
|
k = k || e;
|
|
3324
3324
|
var N = A ? /* @__PURE__ */ W.createElement(UE, {
|
|
3325
|
-
containerStyle:
|
|
3325
|
+
containerStyle: f,
|
|
3326
3326
|
codeStyle: h.style || {},
|
|
3327
3327
|
numberStyle: I,
|
|
3328
3328
|
startingLineNumber: y,
|
|
3329
3329
|
codeString: w
|
|
3330
3330
|
}) : null, L = c.hljs || c['pre[class*="language-"]'] || {
|
|
3331
3331
|
backgroundColor: "#fff"
|
|
3332
|
-
}, G =
|
|
3332
|
+
}, G = sm(k) ? "hljs" : "prismjs", X = b ? Object.assign({}, x, {
|
|
3333
3333
|
style: Object.assign({}, L, p)
|
|
3334
3334
|
}) : Object.assign({}, x, {
|
|
3335
3335
|
className: x.className ? "".concat(G, " ").concat(x.className) : G,
|
|
@@ -3377,7 +3377,7 @@ function HE() {
|
|
|
3377
3377
|
return kt;
|
|
3378
3378
|
}
|
|
3379
3379
|
var Ct, Kl;
|
|
3380
|
-
function
|
|
3380
|
+
function lm() {
|
|
3381
3381
|
if (Kl) return Ct;
|
|
3382
3382
|
Kl = 1, Ct = t;
|
|
3383
3383
|
var e = t.prototype;
|
|
@@ -3391,7 +3391,7 @@ var Ot, Zl;
|
|
|
3391
3391
|
function zE() {
|
|
3392
3392
|
if (Zl) return Ot;
|
|
3393
3393
|
Zl = 1;
|
|
3394
|
-
var e = HE(), t =
|
|
3394
|
+
var e = HE(), t = lm();
|
|
3395
3395
|
Ot = r;
|
|
3396
3396
|
function r(n) {
|
|
3397
3397
|
for (var a = n.length, i = [], o = [], s = -1, l, c; ++s < a; )
|
|
@@ -3414,7 +3414,7 @@ function Vs() {
|
|
|
3414
3414
|
return xt;
|
|
3415
3415
|
}
|
|
3416
3416
|
var Lt, Jl;
|
|
3417
|
-
function
|
|
3417
|
+
function um() {
|
|
3418
3418
|
if (Jl) return Lt;
|
|
3419
3419
|
Jl = 1, Lt = t;
|
|
3420
3420
|
var e = t.prototype;
|
|
@@ -3436,10 +3436,10 @@ function Ws() {
|
|
|
3436
3436
|
return fe;
|
|
3437
3437
|
}
|
|
3438
3438
|
var Dt, eu;
|
|
3439
|
-
function
|
|
3439
|
+
function cm() {
|
|
3440
3440
|
if (eu) return Dt;
|
|
3441
3441
|
eu = 1;
|
|
3442
|
-
var e =
|
|
3442
|
+
var e = um(), t = Ws();
|
|
3443
3443
|
Dt = a, a.prototype = new e(), a.prototype.defined = !0;
|
|
3444
3444
|
var r = [
|
|
3445
3445
|
"boolean",
|
|
@@ -3464,17 +3464,17 @@ var Mt, tu;
|
|
|
3464
3464
|
function Xe() {
|
|
3465
3465
|
if (tu) return Mt;
|
|
3466
3466
|
tu = 1;
|
|
3467
|
-
var e = Vs(), t =
|
|
3467
|
+
var e = Vs(), t = lm(), r = cm();
|
|
3468
3468
|
Mt = n;
|
|
3469
3469
|
function n(a) {
|
|
3470
|
-
var i = a.space, o = a.mustUseProperty || [], s = a.attributes || {}, l = a.properties, c = a.transform, u = {}, p = {},
|
|
3471
|
-
for (
|
|
3470
|
+
var i = a.space, o = a.mustUseProperty || [], s = a.attributes || {}, l = a.properties, c = a.transform, u = {}, p = {}, g, h;
|
|
3471
|
+
for (g in l)
|
|
3472
3472
|
h = new r(
|
|
3473
|
-
|
|
3474
|
-
c(s,
|
|
3475
|
-
l[
|
|
3473
|
+
g,
|
|
3474
|
+
c(s, g),
|
|
3475
|
+
l[g],
|
|
3476
3476
|
i
|
|
3477
|
-
), o.indexOf(
|
|
3477
|
+
), o.indexOf(g) !== -1 && (h.mustUseProperty = !0), u[g] = h, p[e(g)] = g, p[e(h.attribute)] = g;
|
|
3478
3478
|
return new t(u, p, i);
|
|
3479
3479
|
}
|
|
3480
3480
|
return Mt;
|
|
@@ -3531,7 +3531,7 @@ function YE() {
|
|
|
3531
3531
|
return Pt;
|
|
3532
3532
|
}
|
|
3533
3533
|
var Bt, iu;
|
|
3534
|
-
function
|
|
3534
|
+
function dm() {
|
|
3535
3535
|
if (iu) return Bt;
|
|
3536
3536
|
iu = 1;
|
|
3537
3537
|
var e = YE();
|
|
@@ -3545,7 +3545,7 @@ var qt, ou;
|
|
|
3545
3545
|
function KE() {
|
|
3546
3546
|
if (ou) return qt;
|
|
3547
3547
|
ou = 1;
|
|
3548
|
-
var e = Xe(), t =
|
|
3548
|
+
var e = Xe(), t = dm();
|
|
3549
3549
|
return qt = e({
|
|
3550
3550
|
space: "xmlns",
|
|
3551
3551
|
attributes: {
|
|
@@ -3626,7 +3626,7 @@ var Gt, lu;
|
|
|
3626
3626
|
function XE() {
|
|
3627
3627
|
if (lu) return Gt;
|
|
3628
3628
|
lu = 1;
|
|
3629
|
-
var e = Ws(), t = Xe(), r =
|
|
3629
|
+
var e = Ws(), t = Xe(), r = dm(), n = e.boolean, a = e.overloadedBoolean, i = e.booleanish, o = e.number, s = e.spaceSeparated, l = e.commaSeparated;
|
|
3630
3630
|
return Gt = t({
|
|
3631
3631
|
space: "html",
|
|
3632
3632
|
attributes: {
|
|
@@ -3986,26 +3986,26 @@ var Ht, cu;
|
|
|
3986
3986
|
function QE() {
|
|
3987
3987
|
if (cu) return Ht;
|
|
3988
3988
|
cu = 1;
|
|
3989
|
-
var e = Vs(), t =
|
|
3989
|
+
var e = Vs(), t = cm(), r = um(), n = "data";
|
|
3990
3990
|
Ht = s;
|
|
3991
3991
|
var a = /^data[-\w.:]+$/i, i = /-[a-z]/g, o = /[A-Z]/g;
|
|
3992
|
-
function s(
|
|
3992
|
+
function s(g, h) {
|
|
3993
3993
|
var v = e(h), b = h, R = r;
|
|
3994
|
-
return v in
|
|
3994
|
+
return v in g.normal ? g.property[g.normal[v]] : (v.length > 4 && v.slice(0, 4) === n && a.test(h) && (h.charAt(4) === "-" ? b = l(h) : h = c(h), R = t), new R(b, h));
|
|
3995
3995
|
}
|
|
3996
|
-
function l(
|
|
3997
|
-
var h =
|
|
3996
|
+
function l(g) {
|
|
3997
|
+
var h = g.slice(5).replace(i, p);
|
|
3998
3998
|
return n + h.charAt(0).toUpperCase() + h.slice(1);
|
|
3999
3999
|
}
|
|
4000
|
-
function c(
|
|
4001
|
-
var h =
|
|
4002
|
-
return i.test(h) ?
|
|
4000
|
+
function c(g) {
|
|
4001
|
+
var h = g.slice(4);
|
|
4002
|
+
return i.test(h) ? g : (h = h.replace(o, u), h.charAt(0) !== "-" && (h = "-" + h), n + h);
|
|
4003
4003
|
}
|
|
4004
|
-
function u(
|
|
4005
|
-
return "-" +
|
|
4004
|
+
function u(g) {
|
|
4005
|
+
return "-" + g.toLowerCase();
|
|
4006
4006
|
}
|
|
4007
|
-
function p(
|
|
4008
|
-
return
|
|
4007
|
+
function p(g) {
|
|
4008
|
+
return g.charAt(1).toUpperCase();
|
|
4009
4009
|
}
|
|
4010
4010
|
return Ht;
|
|
4011
4011
|
}
|
|
@@ -4062,15 +4062,15 @@ function ny() {
|
|
|
4062
4062
|
var A = R ? h(R) : null;
|
|
4063
4063
|
return m;
|
|
4064
4064
|
function m(S, y) {
|
|
4065
|
-
var
|
|
4066
|
-
if (
|
|
4065
|
+
var f = r(S, b), T = Array.prototype.slice.call(arguments, 2), I = f.tagName.toLowerCase(), _;
|
|
4066
|
+
if (f.tagName = A && i.call(A, I) ? A[I] : I, y && s(y, f) && (T.unshift(y), y = null), y)
|
|
4067
4067
|
for (_ in y)
|
|
4068
|
-
E(
|
|
4069
|
-
return c(
|
|
4068
|
+
E(f.properties, _, y[_]);
|
|
4069
|
+
return c(f.children, T), f.tagName === "template" && (f.content = { type: "root", children: f.children }, f.children = []), f;
|
|
4070
4070
|
}
|
|
4071
|
-
function E(S, y,
|
|
4071
|
+
function E(S, y, f) {
|
|
4072
4072
|
var T, I, _;
|
|
4073
|
-
|
|
4073
|
+
f == null || f !== f || (T = e(v, y), I = T.property, _ = f, typeof _ == "string" && (T.spaceSeparated ? _ = n(_) : T.commaSeparated ? _ = a(_) : T.commaOrSpaceSeparated && (_ = n(a(_).join(" ")))), I === "style" && typeof f != "string" && (_ = g(_)), I === "className" && S.className && (_ = S.className.concat(_)), S[I] = u(T, I, _));
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
function s(v, b) {
|
|
@@ -4107,7 +4107,7 @@ function ny() {
|
|
|
4107
4107
|
var A = R;
|
|
4108
4108
|
return v.number || v.positiveNumber ? !isNaN(A) && A !== "" && (A = Number(A)) : (v.boolean || v.overloadedBoolean) && typeof A == "string" && (A === "" || t(R) === t(b)) && (A = !0), A;
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function g(v) {
|
|
4111
4111
|
var b = [], R;
|
|
4112
4112
|
for (R in v)
|
|
4113
4113
|
b.push([R, v[R]].join(": "));
|
|
@@ -4269,7 +4269,7 @@ const oy = "Æ", sy = "&", ly = "Á", uy = "Â", cy = "À", dy = "Å", py = "Ã"
|
|
|
4269
4269
|
159: "Ÿ"
|
|
4270
4270
|
};
|
|
4271
4271
|
var Kt, hu;
|
|
4272
|
-
function
|
|
4272
|
+
function pm() {
|
|
4273
4273
|
if (hu) return Kt;
|
|
4274
4274
|
hu = 1, Kt = e;
|
|
4275
4275
|
function e(t) {
|
|
@@ -4302,7 +4302,7 @@ var Jt, Su;
|
|
|
4302
4302
|
function lv() {
|
|
4303
4303
|
if (Su) return Jt;
|
|
4304
4304
|
Su = 1;
|
|
4305
|
-
var e = sv(), t =
|
|
4305
|
+
var e = sv(), t = pm();
|
|
4306
4306
|
Jt = r;
|
|
4307
4307
|
function r(n) {
|
|
4308
4308
|
return e(n) || t(n);
|
|
@@ -4325,7 +4325,7 @@ var er, Tu;
|
|
|
4325
4325
|
function cv() {
|
|
4326
4326
|
if (Tu) return er;
|
|
4327
4327
|
Tu = 1;
|
|
4328
|
-
var e = av, t = iv, r =
|
|
4328
|
+
var e = av, t = iv, r = pm(), n = ov(), a = lv(), i = uv();
|
|
4329
4329
|
er = B;
|
|
4330
4330
|
var o = {}.hasOwnProperty, s = String.fromCharCode, l = Function.prototype, c = {
|
|
4331
4331
|
warning: null,
|
|
@@ -4338,10 +4338,10 @@ function cv() {
|
|
|
4338
4338
|
additional: null,
|
|
4339
4339
|
attribute: !1,
|
|
4340
4340
|
nonTerminated: !0
|
|
4341
|
-
}, u = 9, p = 10,
|
|
4341
|
+
}, u = 9, p = 10, g = 12, h = 32, v = 38, b = 59, R = 60, A = 61, m = 35, E = 88, S = 120, y = 65533, f = "named", T = "hexadecimal", I = "decimal", _ = {};
|
|
4342
4342
|
_[T] = 16, _[I] = 10;
|
|
4343
4343
|
var C = {};
|
|
4344
|
-
C[
|
|
4344
|
+
C[f] = a, C[I] = r, C[T] = n;
|
|
4345
4345
|
var O = 1, F = 2, q = 3, j = 4, D = 5, U = 6, P = 7, M = {};
|
|
4346
4346
|
M[O] = "Named character references must be terminated by a semicolon", M[F] = "Numeric character references must be terminated by a semicolon", M[q] = "Named character references cannot be empty", M[j] = "Numeric character references cannot be empty", M[D] = "Named character references must be known", M[U] = "Numeric character references cannot be disallowed", M[P] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
4347
4347
|
function B(N, L) {
|
|
@@ -4352,16 +4352,16 @@ function cv() {
|
|
|
4352
4352
|
return (G.position.indent || G.position.start) && (G.indent = G.position.indent || [], G.position = G.position.start), w(N, G);
|
|
4353
4353
|
}
|
|
4354
4354
|
function w(N, L) {
|
|
4355
|
-
var G = L.additional, X = L.nonTerminated, K = L.text, H = L.reference, re = L.warning, le = L.textContext, ce = L.referenceContext, Et = L.warningContext, Re = L.position,
|
|
4356
|
-
for (typeof G == "string" && (G = G.charCodeAt(0)), Be = qe(), de = re ?
|
|
4357
|
-
if (ye === p && (_e =
|
|
4358
|
-
if (Y = N.charCodeAt(Ee + 1), Y === u || Y === p || Y ===
|
|
4355
|
+
var G = L.additional, X = L.nonTerminated, K = L.text, H = L.reference, re = L.warning, le = L.textContext, ce = L.referenceContext, Et = L.warningContext, Re = L.position, vm = L.indent || [], yt = N.length, Ee = 0, rl = -1, _e = Re.column || 1, nl = Re.line || 1, we = "", St = [], xe, vt, Ie, ae, ye, J, Y, de, Je, Tt, Ne, Pe, ke, ge, al, Be, Qe, pe, Q;
|
|
4356
|
+
for (typeof G == "string" && (G = G.charCodeAt(0)), Be = qe(), de = re ? Tm : l, Ee--, yt++; ++Ee < yt; )
|
|
4357
|
+
if (ye === p && (_e = vm[rl] || 1), ye = N.charCodeAt(Ee), ye === v) {
|
|
4358
|
+
if (Y = N.charCodeAt(Ee + 1), Y === u || Y === p || Y === g || Y === h || Y === v || Y === R || Y !== Y || G && Y === G) {
|
|
4359
4359
|
we += s(ye), _e++;
|
|
4360
4360
|
continue;
|
|
4361
4361
|
}
|
|
4362
|
-
for (ke = Ee + 1, Pe = ke, Q = ke, Y === m ? (Q = ++Pe, Y = N.charCodeAt(Q), Y === E || Y === S ? (ge = T, Q = ++Pe) : ge = I) : ge =
|
|
4363
|
-
ae += s(Y), ge ===
|
|
4364
|
-
Ie = N.charCodeAt(Q) === b, Ie && (Q++, vt = ge ===
|
|
4362
|
+
for (ke = Ee + 1, Pe = ke, Q = ke, Y === m ? (Q = ++Pe, Y = N.charCodeAt(Q), Y === E || Y === S ? (ge = T, Q = ++Pe) : ge = I) : ge = f, xe = "", Ne = "", ae = "", al = C[ge], Q--; ++Q < yt && (Y = N.charCodeAt(Q), !!al(Y)); )
|
|
4363
|
+
ae += s(Y), ge === f && o.call(e, ae) && (xe = ae, Ne = e[ae]);
|
|
4364
|
+
Ie = N.charCodeAt(Q) === b, Ie && (Q++, vt = ge === f ? i(ae) : !1, vt && (xe = ae, Ne = vt)), pe = 1 + Q - ke, !Ie && !X || (ae ? ge === f ? (Ie && !Ne ? de(D, 1) : (xe !== ae && (Q = Pe + xe.length, pe = 1 + Q - Pe, Ie = !1), Ie || (Je = xe ? O : q, L.attribute ? (Y = N.charCodeAt(Q), Y === A ? (de(Je, pe), Ne = null) : a(Y) ? Ne = null : de(Je, pe)) : de(Je, pe))), J = Ne) : (Ie || de(F, pe), J = parseInt(ae, _[ge]), k(J) ? (de(P, pe), J = s(y)) : J in t ? (de(U, pe), J = t[J]) : (Tt = "", x(J) && de(U, pe), J > 65535 && (J -= 65536, Tt += s(J >>> 10 | 55296), J = 56320 | J & 1023), J = Tt + s(J))) : ge !== f && de(j, pe)), J ? (il(), Be = qe(), Ee = Q - 1, _e += Q - ke + 1, St.push(J), Qe = qe(), Qe.offset++, H && H.call(
|
|
4365
4365
|
ce,
|
|
4366
4366
|
J,
|
|
4367
4367
|
{ start: Be, end: Qe },
|
|
@@ -4377,7 +4377,7 @@ function cv() {
|
|
|
4377
4377
|
offset: Ee + (Re.offset || 0)
|
|
4378
4378
|
};
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4380
|
+
function Tm(ol, sl) {
|
|
4381
4381
|
var At = qe();
|
|
4382
4382
|
At.column += sl, At.offset += sl, re.call(Et, M[ol], At, ol);
|
|
4383
4383
|
}
|
|
@@ -4504,13 +4504,13 @@ function dv() {
|
|
|
4504
4504
|
*/
|
|
4505
4505
|
clone: function m(E, S) {
|
|
4506
4506
|
S = S || {};
|
|
4507
|
-
var y,
|
|
4507
|
+
var y, f;
|
|
4508
4508
|
switch (s.util.type(E)) {
|
|
4509
4509
|
case "Object":
|
|
4510
|
-
if (
|
|
4511
|
-
return S[
|
|
4510
|
+
if (f = s.util.objId(E), S[f])
|
|
4511
|
+
return S[f];
|
|
4512
4512
|
y = /** @type {Record<string, any>} */
|
|
4513
|
-
{}, S[
|
|
4513
|
+
{}, S[f] = y;
|
|
4514
4514
|
for (var T in E)
|
|
4515
4515
|
E.hasOwnProperty(T) && (y[T] = m(E[T], S));
|
|
4516
4516
|
return (
|
|
@@ -4518,7 +4518,7 @@ function dv() {
|
|
|
4518
4518
|
y
|
|
4519
4519
|
);
|
|
4520
4520
|
case "Array":
|
|
4521
|
-
return
|
|
4521
|
+
return f = s.util.objId(E), S[f] ? S[f] : (y = [], S[f] = y, /** @type {Array} */
|
|
4522
4522
|
/** @type {any} */
|
|
4523
4523
|
E.forEach(function(I, _) {
|
|
4524
4524
|
y[_] = m(I, S);
|
|
@@ -4604,10 +4604,10 @@ function dv() {
|
|
|
4604
4604
|
*/
|
|
4605
4605
|
isActive: function(m, E, S) {
|
|
4606
4606
|
for (var y = "no-" + E; m; ) {
|
|
4607
|
-
var
|
|
4608
|
-
if (
|
|
4607
|
+
var f = m.classList;
|
|
4608
|
+
if (f.contains(E))
|
|
4609
4609
|
return !0;
|
|
4610
|
-
if (
|
|
4610
|
+
if (f.contains(y))
|
|
4611
4611
|
return !1;
|
|
4612
4612
|
m = m.parentElement;
|
|
4613
4613
|
}
|
|
@@ -4741,13 +4741,13 @@ function dv() {
|
|
|
4741
4741
|
insertBefore: function(m, E, S, y) {
|
|
4742
4742
|
y = y || /** @type {any} */
|
|
4743
4743
|
s.languages;
|
|
4744
|
-
var
|
|
4745
|
-
for (var I in
|
|
4746
|
-
if (
|
|
4744
|
+
var f = y[m], T = {};
|
|
4745
|
+
for (var I in f)
|
|
4746
|
+
if (f.hasOwnProperty(I)) {
|
|
4747
4747
|
if (I == E)
|
|
4748
4748
|
for (var _ in S)
|
|
4749
4749
|
S.hasOwnProperty(_) && (T[_] = S[_]);
|
|
4750
|
-
S.hasOwnProperty(I) || (T[I] =
|
|
4750
|
+
S.hasOwnProperty(I) || (T[I] = f[I]);
|
|
4751
4751
|
}
|
|
4752
4752
|
var C = y[m];
|
|
4753
4753
|
return y[m] = T, s.languages.DFS(s.languages, function(O, F) {
|
|
@@ -4755,14 +4755,14 @@ function dv() {
|
|
|
4755
4755
|
}), T;
|
|
4756
4756
|
},
|
|
4757
4757
|
// Traverse a language definition with Depth First Search
|
|
4758
|
-
DFS: function m(E, S, y,
|
|
4759
|
-
|
|
4758
|
+
DFS: function m(E, S, y, f) {
|
|
4759
|
+
f = f || {};
|
|
4760
4760
|
var T = s.util.objId;
|
|
4761
4761
|
for (var I in E)
|
|
4762
4762
|
if (E.hasOwnProperty(I)) {
|
|
4763
4763
|
S.call(E, I, E[I], y || I);
|
|
4764
4764
|
var _ = E[I], C = s.util.type(_);
|
|
4765
|
-
C === "Object" && !
|
|
4765
|
+
C === "Object" && !f[T(_)] ? (f[T(_)] = !0, m(_, S, null, f)) : C === "Array" && !f[T(_)] && (f[T(_)] = !0, m(_, S, I, f));
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
4768
|
},
|
|
@@ -4804,7 +4804,7 @@ function dv() {
|
|
|
4804
4804
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4805
4805
|
};
|
|
4806
4806
|
s.hooks.run("before-highlightall", y), y.elements = Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)), s.hooks.run("before-all-elements-highlight", y);
|
|
4807
|
-
for (var
|
|
4807
|
+
for (var f = 0, T; T = y.elements[f++]; )
|
|
4808
4808
|
s.highlightElement(T, E === !0, y.callback);
|
|
4809
4809
|
},
|
|
4810
4810
|
/**
|
|
@@ -4836,14 +4836,14 @@ function dv() {
|
|
|
4836
4836
|
* @public
|
|
4837
4837
|
*/
|
|
4838
4838
|
highlightElement: function(m, E, S) {
|
|
4839
|
-
var y = s.util.getLanguage(m),
|
|
4839
|
+
var y = s.util.getLanguage(m), f = s.languages[y];
|
|
4840
4840
|
s.util.setLanguage(m, y);
|
|
4841
4841
|
var T = m.parentElement;
|
|
4842
4842
|
T && T.nodeName.toLowerCase() === "pre" && s.util.setLanguage(T, y);
|
|
4843
4843
|
var I = m.textContent, _ = {
|
|
4844
4844
|
element: m,
|
|
4845
4845
|
language: y,
|
|
4846
|
-
grammar:
|
|
4846
|
+
grammar: f,
|
|
4847
4847
|
code: I
|
|
4848
4848
|
};
|
|
4849
4849
|
function C(F) {
|
|
@@ -4930,8 +4930,8 @@ function dv() {
|
|
|
4930
4930
|
E[y] = S[y];
|
|
4931
4931
|
delete E.rest;
|
|
4932
4932
|
}
|
|
4933
|
-
var
|
|
4934
|
-
return f
|
|
4933
|
+
var f = new p();
|
|
4934
|
+
return g(f, f.head, m), u(m, f, E, f.head, 0), v(f);
|
|
4935
4935
|
},
|
|
4936
4936
|
/**
|
|
4937
4937
|
* @namespace
|
|
@@ -4968,8 +4968,8 @@ function dv() {
|
|
|
4968
4968
|
run: function(m, E) {
|
|
4969
4969
|
var S = s.hooks.all[m];
|
|
4970
4970
|
if (!(!S || !S.length))
|
|
4971
|
-
for (var y = 0,
|
|
4972
|
-
|
|
4971
|
+
for (var y = 0, f; f = S[y++]; )
|
|
4972
|
+
f(E);
|
|
4973
4973
|
}
|
|
4974
4974
|
},
|
|
4975
4975
|
Token: l
|
|
@@ -4987,7 +4987,7 @@ function dv() {
|
|
|
4987
4987
|
y += m(C, S);
|
|
4988
4988
|
}), y;
|
|
4989
4989
|
}
|
|
4990
|
-
var
|
|
4990
|
+
var f = {
|
|
4991
4991
|
type: E.type,
|
|
4992
4992
|
content: m(E.content, S),
|
|
4993
4993
|
tag: "span",
|
|
@@ -4995,22 +4995,22 @@ function dv() {
|
|
|
4995
4995
|
attributes: {},
|
|
4996
4996
|
language: S
|
|
4997
4997
|
}, T = E.alias;
|
|
4998
|
-
T && (Array.isArray(T) ? Array.prototype.push.apply(
|
|
4998
|
+
T && (Array.isArray(T) ? Array.prototype.push.apply(f.classes, T) : f.classes.push(T)), s.hooks.run("wrap", f);
|
|
4999
4999
|
var I = "";
|
|
5000
|
-
for (var _ in
|
|
5001
|
-
I += " " + _ + '="' + (
|
|
5002
|
-
return "<" +
|
|
5000
|
+
for (var _ in f.attributes)
|
|
5001
|
+
I += " " + _ + '="' + (f.attributes[_] || "").replace(/"/g, """) + '"';
|
|
5002
|
+
return "<" + f.tag + ' class="' + f.classes.join(" ") + '"' + I + ">" + f.content + "</" + f.tag + ">";
|
|
5003
5003
|
};
|
|
5004
5004
|
function c(m, E, S, y) {
|
|
5005
5005
|
m.lastIndex = E;
|
|
5006
|
-
var
|
|
5007
|
-
if (
|
|
5008
|
-
var T =
|
|
5009
|
-
|
|
5006
|
+
var f = m.exec(S);
|
|
5007
|
+
if (f && y && f[1]) {
|
|
5008
|
+
var T = f[1].length;
|
|
5009
|
+
f.index += T, f[0] = f[0].slice(T);
|
|
5010
5010
|
}
|
|
5011
|
-
return
|
|
5011
|
+
return f;
|
|
5012
5012
|
}
|
|
5013
|
-
function u(m, E, S, y,
|
|
5013
|
+
function u(m, E, S, y, f, T) {
|
|
5014
5014
|
for (var I in S)
|
|
5015
5015
|
if (!(!S.hasOwnProperty(I) || !S[I])) {
|
|
5016
5016
|
var _ = S[I];
|
|
@@ -5023,7 +5023,7 @@ function dv() {
|
|
|
5023
5023
|
var U = O.pattern.toString().match(/[imsuy]*$/)[0];
|
|
5024
5024
|
O.pattern = RegExp(O.pattern.source, U + "g");
|
|
5025
5025
|
}
|
|
5026
|
-
for (var P = O.pattern || O, M = y.next, B =
|
|
5026
|
+
for (var P = O.pattern || O, M = y.next, B = f; M !== E.tail && !(T && B >= T.reach); B += M.value.length, M = M.next) {
|
|
5027
5027
|
var w = M.value;
|
|
5028
5028
|
if (E.length > m.length)
|
|
5029
5029
|
return;
|
|
@@ -5045,9 +5045,9 @@ function dv() {
|
|
|
5045
5045
|
var X = x.index, K = x[0], H = w.slice(0, X), re = w.slice(X + K.length), le = B + w.length;
|
|
5046
5046
|
T && le > T.reach && (T.reach = le);
|
|
5047
5047
|
var ce = M.prev;
|
|
5048
|
-
H && (ce =
|
|
5048
|
+
H && (ce = g(E, ce, H), B += H.length), h(E, ce, k);
|
|
5049
5049
|
var Et = new l(I, F ? s.tokenize(K, F) : K, D, K);
|
|
5050
|
-
if (M =
|
|
5050
|
+
if (M = g(E, ce, Et), re && g(E, M, re), k > 1) {
|
|
5051
5051
|
var Re = {
|
|
5052
5052
|
cause: I + "," + C,
|
|
5053
5053
|
reach: le
|
|
@@ -5063,14 +5063,14 @@ function dv() {
|
|
|
5063
5063
|
var m = { value: null, prev: null, next: null }, E = { value: null, prev: m, next: null };
|
|
5064
5064
|
m.next = E, this.head = m, this.tail = E, this.length = 0;
|
|
5065
5065
|
}
|
|
5066
|
-
function
|
|
5067
|
-
var y = E.next,
|
|
5068
|
-
return E.next =
|
|
5066
|
+
function g(m, E, S) {
|
|
5067
|
+
var y = E.next, f = { value: S, prev: E, next: y };
|
|
5068
|
+
return E.next = f, y.prev = f, m.length++, f;
|
|
5069
5069
|
}
|
|
5070
5070
|
function h(m, E, S) {
|
|
5071
|
-
for (var y = E.next,
|
|
5071
|
+
for (var y = E.next, f = 0; f < S && y !== m.tail; f++)
|
|
5072
5072
|
y = y.next;
|
|
5073
|
-
E.next = y, y.prev = E, m.length -=
|
|
5073
|
+
E.next = y, y.prev = E, m.length -= f;
|
|
5074
5074
|
}
|
|
5075
5075
|
function v(m) {
|
|
5076
5076
|
for (var E = [], S = m.head.next; S !== m.tail; )
|
|
@@ -5079,8 +5079,8 @@ function dv() {
|
|
|
5079
5079
|
}
|
|
5080
5080
|
if (!n.document)
|
|
5081
5081
|
return n.addEventListener && (s.disableWorkerMessageHandler || n.addEventListener("message", function(m) {
|
|
5082
|
-
var E = JSON.parse(m.data), S = E.language, y = E.code,
|
|
5083
|
-
n.postMessage(s.highlight(y, s.languages[S], S)),
|
|
5082
|
+
var E = JSON.parse(m.data), S = E.language, y = E.code, f = E.immediateClose;
|
|
5083
|
+
n.postMessage(s.highlight(y, s.languages[S], S)), f && n.close();
|
|
5084
5084
|
}, !1)), s;
|
|
5085
5085
|
var b = s.util.currentScript();
|
|
5086
5086
|
b && (s.filename = b.src, b.hasAttribute("data-manual") && (s.manual = !0));
|
|
@@ -5518,23 +5518,23 @@ function bv() {
|
|
|
5518
5518
|
}
|
|
5519
5519
|
u.prototype = a;
|
|
5520
5520
|
var p = new u();
|
|
5521
|
-
or = p, p.highlight = v, p.register =
|
|
5522
|
-
function f
|
|
5523
|
-
if (typeof
|
|
5524
|
-
throw new Error("Expected `function` for `grammar`, got `" +
|
|
5525
|
-
p.languages[
|
|
5526
|
-
}
|
|
5527
|
-
function h(
|
|
5528
|
-
var I = p.languages, _ =
|
|
5529
|
-
T && (_ = {}, _[
|
|
5521
|
+
or = p, p.highlight = v, p.register = g, p.alias = h, p.registered = b, p.listLanguages = R, g(i), g(o), g(s), g(l), p.util.encode = E, p.Token.stringify = A;
|
|
5522
|
+
function g(f) {
|
|
5523
|
+
if (typeof f != "function" || !f.displayName)
|
|
5524
|
+
throw new Error("Expected `function` for `grammar`, got `" + f + "`");
|
|
5525
|
+
p.languages[f.displayName] === void 0 && f(p);
|
|
5526
|
+
}
|
|
5527
|
+
function h(f, T) {
|
|
5528
|
+
var I = p.languages, _ = f, C, O, F, q;
|
|
5529
|
+
T && (_ = {}, _[f] = T);
|
|
5530
5530
|
for (C in _)
|
|
5531
5531
|
for (O = _[C], O = typeof O == "string" ? [O] : O, F = O.length, q = -1; ++q < F; )
|
|
5532
5532
|
I[O[q]] = I[C];
|
|
5533
5533
|
}
|
|
5534
|
-
function v(
|
|
5534
|
+
function v(f, T) {
|
|
5535
5535
|
var I = a.highlight, _;
|
|
5536
|
-
if (typeof
|
|
5537
|
-
throw new Error("Expected `string` for `value`, got `" +
|
|
5536
|
+
if (typeof f != "string")
|
|
5537
|
+
throw new Error("Expected `string` for `value`, got `" + f + "`");
|
|
5538
5538
|
if (p.util.type(T) === "Object")
|
|
5539
5539
|
_ = T, T = null;
|
|
5540
5540
|
else {
|
|
@@ -5545,56 +5545,56 @@ function bv() {
|
|
|
5545
5545
|
else
|
|
5546
5546
|
throw new Error("Unknown language: `" + T + "` is not registered");
|
|
5547
5547
|
}
|
|
5548
|
-
return I.call(this,
|
|
5548
|
+
return I.call(this, f, _, T);
|
|
5549
5549
|
}
|
|
5550
|
-
function b(
|
|
5551
|
-
if (typeof
|
|
5552
|
-
throw new Error("Expected `string` for `language`, got `" +
|
|
5553
|
-
return c.call(p.languages,
|
|
5550
|
+
function b(f) {
|
|
5551
|
+
if (typeof f != "string")
|
|
5552
|
+
throw new Error("Expected `string` for `language`, got `" + f + "`");
|
|
5553
|
+
return c.call(p.languages, f);
|
|
5554
5554
|
}
|
|
5555
5555
|
function R() {
|
|
5556
|
-
var
|
|
5557
|
-
for (I in
|
|
5558
|
-
c.call(
|
|
5556
|
+
var f = p.languages, T = [], I;
|
|
5557
|
+
for (I in f)
|
|
5558
|
+
c.call(f, I) && typeof f[I] == "object" && T.push(I);
|
|
5559
5559
|
return T;
|
|
5560
5560
|
}
|
|
5561
|
-
function A(
|
|
5561
|
+
function A(f, T, I) {
|
|
5562
5562
|
var _;
|
|
5563
|
-
return typeof
|
|
5564
|
-
type:
|
|
5565
|
-
content: p.Token.stringify(
|
|
5563
|
+
return typeof f == "string" ? { type: "text", value: f } : p.util.type(f) === "Array" ? m(f, T) : (_ = {
|
|
5564
|
+
type: f.type,
|
|
5565
|
+
content: p.Token.stringify(f.content, T, I),
|
|
5566
5566
|
tag: "span",
|
|
5567
|
-
classes: ["token",
|
|
5567
|
+
classes: ["token", f.type],
|
|
5568
5568
|
attributes: {},
|
|
5569
5569
|
language: T,
|
|
5570
5570
|
parent: I
|
|
5571
|
-
},
|
|
5571
|
+
}, f.alias && (_.classes = _.classes.concat(f.alias)), p.hooks.run("wrap", _), r(
|
|
5572
5572
|
_.tag + "." + _.classes.join("."),
|
|
5573
5573
|
S(_.attributes),
|
|
5574
5574
|
_.content
|
|
5575
5575
|
));
|
|
5576
5576
|
}
|
|
5577
|
-
function m(
|
|
5578
|
-
for (var I = [], _ =
|
|
5579
|
-
O =
|
|
5577
|
+
function m(f, T) {
|
|
5578
|
+
for (var I = [], _ = f.length, C = -1, O; ++C < _; )
|
|
5579
|
+
O = f[C], O !== "" && O !== null && O !== void 0 && I.push(O);
|
|
5580
5580
|
for (C = -1, _ = I.length; ++C < _; )
|
|
5581
5581
|
O = I[C], I[C] = p.Token.stringify(O, T, I);
|
|
5582
5582
|
return I;
|
|
5583
5583
|
}
|
|
5584
|
-
function E(
|
|
5585
|
-
return
|
|
5584
|
+
function E(f) {
|
|
5585
|
+
return f;
|
|
5586
5586
|
}
|
|
5587
|
-
function S(
|
|
5587
|
+
function S(f) {
|
|
5588
5588
|
var T;
|
|
5589
|
-
for (T in
|
|
5590
|
-
|
|
5591
|
-
return
|
|
5589
|
+
for (T in f)
|
|
5590
|
+
f[T] = n(f[T]);
|
|
5591
|
+
return f;
|
|
5592
5592
|
}
|
|
5593
5593
|
function y() {
|
|
5594
|
-
var
|
|
5594
|
+
var f = "Prism" in e, T = f ? e.Prism : void 0;
|
|
5595
5595
|
return I;
|
|
5596
5596
|
function I() {
|
|
5597
|
-
|
|
5597
|
+
f ? e.Prism = T : delete e.Prism, f = void 0, T = void 0;
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
5600
|
return or;
|
|
@@ -6956,7 +6956,7 @@ function ft() {
|
|
|
6956
6956
|
o.typeDeclaration + " " + o.contextual + " " + o.other
|
|
6957
6957
|
), p = s(
|
|
6958
6958
|
o.type + " " + o.typeDeclaration + " " + o.other
|
|
6959
|
-
),
|
|
6959
|
+
), g = i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), h = i(/\((?:[^()]|<<self>>)*\)/.source, 2), v = /@?\b[A-Za-z_]\w*\b/.source, b = n(/<<0>>(?:\s*<<1>>)?/.source, [v, g]), R = n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
|
|
6960
6960
|
u,
|
|
6961
6961
|
b
|
|
6962
6962
|
]), A = /\[\s*(?:,\s*)*\]/.source, m = n(
|
|
@@ -6964,11 +6964,11 @@ function ft() {
|
|
|
6964
6964
|
[R, A]
|
|
6965
6965
|
), E = n(
|
|
6966
6966
|
/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
|
|
6967
|
-
[
|
|
6967
|
+
[g, h, A]
|
|
6968
6968
|
), S = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [E]), y = n(
|
|
6969
6969
|
/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
|
|
6970
6970
|
[S, R, A]
|
|
6971
|
-
),
|
|
6971
|
+
), f = {
|
|
6972
6972
|
keyword: c,
|
|
6973
6973
|
punctuation: /[<>()?,.:[\]]/
|
|
6974
6974
|
}, T = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, I = /"(?:\\.|[^\\"\r\n])*"/.source, _ = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
@@ -6993,7 +6993,7 @@ function ft() {
|
|
|
6993
6993
|
R
|
|
6994
6994
|
]),
|
|
6995
6995
|
lookbehind: !0,
|
|
6996
|
-
inside:
|
|
6996
|
+
inside: f
|
|
6997
6997
|
},
|
|
6998
6998
|
{
|
|
6999
6999
|
// Using alias (type)
|
|
@@ -7003,7 +7003,7 @@ function ft() {
|
|
|
7003
7003
|
y
|
|
7004
7004
|
]),
|
|
7005
7005
|
lookbehind: !0,
|
|
7006
|
-
inside:
|
|
7006
|
+
inside: f
|
|
7007
7007
|
},
|
|
7008
7008
|
{
|
|
7009
7009
|
// Using alias (alias)
|
|
@@ -7020,7 +7020,7 @@ function ft() {
|
|
|
7020
7020
|
b
|
|
7021
7021
|
]),
|
|
7022
7022
|
lookbehind: !0,
|
|
7023
|
-
inside:
|
|
7023
|
+
inside: f
|
|
7024
7024
|
},
|
|
7025
7025
|
{
|
|
7026
7026
|
// Single catch exception declaration
|
|
@@ -7028,7 +7028,7 @@ function ft() {
|
|
|
7028
7028
|
// (things like catch(Foo e) is covered by variable declaration)
|
|
7029
7029
|
pattern: a(/(\bcatch\s*\(\s*)<<0>>/.source, [R]),
|
|
7030
7030
|
lookbehind: !0,
|
|
7031
|
-
inside:
|
|
7031
|
+
inside: f
|
|
7032
7032
|
},
|
|
7033
7033
|
{
|
|
7034
7034
|
// Name of the type parameter of generic constraints
|
|
@@ -7044,7 +7044,7 @@ function ft() {
|
|
|
7044
7044
|
m
|
|
7045
7045
|
]),
|
|
7046
7046
|
lookbehind: !0,
|
|
7047
|
-
inside:
|
|
7047
|
+
inside: f
|
|
7048
7048
|
},
|
|
7049
7049
|
{
|
|
7050
7050
|
// Variable, field and parameter declaration
|
|
@@ -7053,7 +7053,7 @@ function ft() {
|
|
|
7053
7053
|
/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,
|
|
7054
7054
|
[y, p, v]
|
|
7055
7055
|
),
|
|
7056
|
-
inside:
|
|
7056
|
+
inside: f
|
|
7057
7057
|
}
|
|
7058
7058
|
],
|
|
7059
7059
|
keyword: c,
|
|
@@ -7093,7 +7093,7 @@ function ft() {
|
|
|
7093
7093
|
),
|
|
7094
7094
|
lookbehind: !0,
|
|
7095
7095
|
alias: "class-name",
|
|
7096
|
-
inside:
|
|
7096
|
+
inside: f
|
|
7097
7097
|
},
|
|
7098
7098
|
"return-type": {
|
|
7099
7099
|
// Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
|
|
@@ -7103,14 +7103,14 @@ function ft() {
|
|
|
7103
7103
|
/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,
|
|
7104
7104
|
[y, R]
|
|
7105
7105
|
),
|
|
7106
|
-
inside:
|
|
7106
|
+
inside: f,
|
|
7107
7107
|
alias: "class-name"
|
|
7108
7108
|
},
|
|
7109
7109
|
"constructor-invocation": {
|
|
7110
7110
|
// new List<Foo<Bar[]>> { }
|
|
7111
7111
|
pattern: a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [y]),
|
|
7112
7112
|
lookbehind: !0,
|
|
7113
|
-
inside:
|
|
7113
|
+
inside: f,
|
|
7114
7114
|
alias: "class-name"
|
|
7115
7115
|
},
|
|
7116
7116
|
/*'explicit-implementation': {
|
|
@@ -7121,13 +7121,13 @@ function ft() {
|
|
|
7121
7121
|
},*/
|
|
7122
7122
|
"generic-method": {
|
|
7123
7123
|
// foo<Bar>()
|
|
7124
|
-
pattern: a(/<<0>>\s*<<1>>(?=\s*\()/.source, [v,
|
|
7124
|
+
pattern: a(/<<0>>\s*<<1>>(?=\s*\()/.source, [v, g]),
|
|
7125
7125
|
inside: {
|
|
7126
7126
|
function: a(/^<<0>>/.source, [v]),
|
|
7127
7127
|
generic: {
|
|
7128
|
-
pattern: RegExp(
|
|
7128
|
+
pattern: RegExp(g),
|
|
7129
7129
|
alias: "class-name",
|
|
7130
|
-
inside:
|
|
7130
|
+
inside: f
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
7133
|
},
|
|
@@ -7162,7 +7162,7 @@ function ft() {
|
|
|
7162
7162
|
"class-name": {
|
|
7163
7163
|
pattern: RegExp(y),
|
|
7164
7164
|
greedy: !0,
|
|
7165
|
-
inside:
|
|
7165
|
+
inside: f
|
|
7166
7166
|
},
|
|
7167
7167
|
punctuation: /[,()]/
|
|
7168
7168
|
}
|
|
@@ -7441,12 +7441,12 @@ function Pv() {
|
|
|
7441
7441
|
function e(t) {
|
|
7442
7442
|
(function(r) {
|
|
7443
7443
|
function n(u, p) {
|
|
7444
|
-
return u.replace(/<<(\d+)>>/g, function(
|
|
7444
|
+
return u.replace(/<<(\d+)>>/g, function(g, h) {
|
|
7445
7445
|
return p[+h];
|
|
7446
7446
|
});
|
|
7447
7447
|
}
|
|
7448
|
-
function a(u, p,
|
|
7449
|
-
return RegExp(n(u, p),
|
|
7448
|
+
function a(u, p, g) {
|
|
7449
|
+
return RegExp(n(u, p), g);
|
|
7450
7450
|
}
|
|
7451
7451
|
var i = /bool|clip|float|int|string|val/.source, o = [
|
|
7452
7452
|
// bools
|
|
@@ -7654,7 +7654,7 @@ function Bv() {
|
|
|
7654
7654
|
return xr;
|
|
7655
7655
|
}
|
|
7656
7656
|
var Lr, tc;
|
|
7657
|
-
function
|
|
7657
|
+
function gm() {
|
|
7658
7658
|
if (tc) return Lr;
|
|
7659
7659
|
tc = 1, Lr = e, e.displayName = "bash", e.aliases = ["shell"];
|
|
7660
7660
|
function e(t) {
|
|
@@ -7874,7 +7874,7 @@ function pm() {
|
|
|
7874
7874
|
return Lr;
|
|
7875
7875
|
}
|
|
7876
7876
|
var Dr, rc;
|
|
7877
|
-
function
|
|
7877
|
+
function fm() {
|
|
7878
7878
|
if (rc) return Dr;
|
|
7879
7879
|
rc = 1, Dr = e, e.displayName = "basic", e.aliases = [];
|
|
7880
7880
|
function e(t) {
|
|
@@ -9132,18 +9132,18 @@ function oT() {
|
|
|
9132
9132
|
});
|
|
9133
9133
|
return R.replace(/<self>/g, "[^\\s\\S]").replace(/<str>/g, "(?:" + i + ")").replace(/<comment>/g, "(?:" + a + ")");
|
|
9134
9134
|
}
|
|
9135
|
-
var s = o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source, 2), l = o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source, 2), c = o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source, 2), u = o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source, 2), p = /(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,
|
|
9135
|
+
var s = o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source, 2), l = o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source, 2), c = o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source, 2), u = o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source, 2), p = /(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source, g = /(?!\d)[^\s>\/=$<%]+/.source + p + /\s*\/?>/.source, h = /\B@?/.source + "(?:" + /<([a-zA-Z][\w:]*)/.source + p + /\s*>/.source + "(?:" + (/[^<]/.source + "|" + // all tags that are not the start tag
|
|
9136
9136
|
// eslint-disable-next-line regexp/strict
|
|
9137
|
-
/<\/?(?!\1\b)/.source +
|
|
9137
|
+
/<\/?(?!\1\b)/.source + g + "|" + // nested start tag
|
|
9138
9138
|
o(
|
|
9139
9139
|
// eslint-disable-next-line regexp/strict
|
|
9140
9140
|
/<\1/.source + p + /\s*>/.source + "(?:" + (/[^<]/.source + "|" + // all tags that are not the start tag
|
|
9141
9141
|
// eslint-disable-next-line regexp/strict
|
|
9142
|
-
/<\/?(?!\1\b)/.source +
|
|
9142
|
+
/<\/?(?!\1\b)/.source + g + "|<self>") + ")*" + // eslint-disable-next-line regexp/strict
|
|
9143
9143
|
/<\/\1\s*>/.source,
|
|
9144
9144
|
2
|
|
9145
9145
|
)) + ")*" + // eslint-disable-next-line regexp/strict
|
|
9146
|
-
/<\/\1\s*>/.source + "|" + /</.source +
|
|
9146
|
+
/<\/\1\s*>/.source + "|" + /</.source + g + ")";
|
|
9147
9147
|
n.languages.cshtml = n.languages.extend("markup", {});
|
|
9148
9148
|
var v = n.languages.insertBefore(
|
|
9149
9149
|
"csharp",
|
|
@@ -9872,7 +9872,7 @@ function ne() {
|
|
|
9872
9872
|
for (var u = 0; u < c.length && !(o >= s.length); u++) {
|
|
9873
9873
|
var p = c[u];
|
|
9874
9874
|
if (typeof p == "string" || p.content && typeof p.content == "string") {
|
|
9875
|
-
var
|
|
9875
|
+
var g = s[o], h = a.tokenStack[g], v = typeof p == "string" ? p : p.content, b = n(i, g), R = v.indexOf(b);
|
|
9876
9876
|
if (R > -1) {
|
|
9877
9877
|
++o;
|
|
9878
9878
|
var A = v.substring(0, R), m = new r.Token(
|
|
@@ -10547,7 +10547,7 @@ function NT() {
|
|
|
10547
10547
|
return wn;
|
|
10548
10548
|
}
|
|
10549
10549
|
var In, Yc;
|
|
10550
|
-
function
|
|
10550
|
+
function mm() {
|
|
10551
10551
|
if (Yc) return In;
|
|
10552
10552
|
Yc = 1, In = e, e.displayName = "lua", e.aliases = [];
|
|
10553
10553
|
function e(t) {
|
|
@@ -10578,7 +10578,7 @@ var Nn, Kc;
|
|
|
10578
10578
|
function kT() {
|
|
10579
10579
|
if (Kc) return Nn;
|
|
10580
10580
|
Kc = 1;
|
|
10581
|
-
var e =
|
|
10581
|
+
var e = mm(), t = ne();
|
|
10582
10582
|
Nn = r, r.displayName = "etlua", r.aliases = [];
|
|
10583
10583
|
function r(n) {
|
|
10584
10584
|
n.register(e), n.register(t), function(a) {
|
|
@@ -12491,11 +12491,11 @@ function KT() {
|
|
|
12491
12491
|
}
|
|
12492
12492
|
function l(A, m) {
|
|
12493
12493
|
for (var E = 1, S = i; S < a.length; S++) {
|
|
12494
|
-
var y = a[S],
|
|
12495
|
-
if (y.type === "punctuation" && typeof
|
|
12496
|
-
if (A.test(
|
|
12494
|
+
var y = a[S], f = y.content;
|
|
12495
|
+
if (y.type === "punctuation" && typeof f == "string") {
|
|
12496
|
+
if (A.test(f))
|
|
12497
12497
|
E++;
|
|
12498
|
-
else if (m.test(
|
|
12498
|
+
else if (m.test(f) && (E--, E === 0))
|
|
12499
12499
|
return S;
|
|
12500
12500
|
}
|
|
12501
12501
|
}
|
|
@@ -12511,14 +12511,14 @@ function KT() {
|
|
|
12511
12511
|
var p = [];
|
|
12512
12512
|
if (s(["definition-mutation", "punctuation"]) && o(1).content === "(") {
|
|
12513
12513
|
i += 2;
|
|
12514
|
-
var
|
|
12515
|
-
if (
|
|
12514
|
+
var g = l(/^\($/, /^\)$/);
|
|
12515
|
+
if (g === -1)
|
|
12516
12516
|
continue;
|
|
12517
|
-
for (; i <
|
|
12517
|
+
for (; i < g; i++) {
|
|
12518
12518
|
var h = o(0);
|
|
12519
12519
|
h.type === "variable" && (c(h, "variable-input"), p.push(h.content));
|
|
12520
12520
|
}
|
|
12521
|
-
i =
|
|
12521
|
+
i = g + 1;
|
|
12522
12522
|
}
|
|
12523
12523
|
if (s(["punctuation", "property-query"]) && o(0).content === "{" && (i++, c(o(0), "property-mutation"), p.length > 0)) {
|
|
12524
12524
|
var v = l(/^\{$/, /^\}$/);
|
|
@@ -13192,7 +13192,7 @@ function iA() {
|
|
|
13192
13192
|
"application/xml": !0
|
|
13193
13193
|
};
|
|
13194
13194
|
function s(p) {
|
|
13195
|
-
var
|
|
13195
|
+
var g = p.replace(/^[a-z]+\//, ""), h = "\\w+/(?:[\\w.-]+\\+)+" + g + "(?![+\\w.-])";
|
|
13196
13196
|
return "(?:" + p + "|" + h + ")";
|
|
13197
13197
|
}
|
|
13198
13198
|
var l;
|
|
@@ -13807,10 +13807,10 @@ function bt() {
|
|
|
13807
13807
|
if (u instanceof RegExp && (u = c[l] = {
|
|
13808
13808
|
pattern: u
|
|
13809
13809
|
}), Array.isArray(u))
|
|
13810
|
-
for (var
|
|
13811
|
-
u[
|
|
13812
|
-
pattern: u[
|
|
13813
|
-
}), s(u[
|
|
13810
|
+
for (var g = 0, h = u.length; g < h; g++)
|
|
13811
|
+
u[g] instanceof RegExp && (u[g] = {
|
|
13812
|
+
pattern: u[g]
|
|
13813
|
+
}), s(u[g]);
|
|
13814
13814
|
else
|
|
13815
13815
|
s(u);
|
|
13816
13816
|
}
|
|
@@ -14411,7 +14411,7 @@ function TA() {
|
|
|
14411
14411
|
b
|
|
14412
14412
|
);
|
|
14413
14413
|
}
|
|
14414
|
-
function
|
|
14414
|
+
function g(b, R, A) {
|
|
14415
14415
|
var m = r.tokenize(b, {
|
|
14416
14416
|
interpolation: {
|
|
14417
14417
|
pattern: RegExp(s),
|
|
@@ -14425,7 +14425,7 @@ function TA() {
|
|
|
14425
14425
|
) !== -1; )
|
|
14426
14426
|
;
|
|
14427
14427
|
return S[O] = C, O;
|
|
14428
|
-
}).join(""),
|
|
14428
|
+
}).join(""), f = u(y, R, A), T = Object.keys(S);
|
|
14429
14429
|
E = 0;
|
|
14430
14430
|
function I(_) {
|
|
14431
14431
|
for (var C = 0; C < _.length; C++) {
|
|
@@ -14454,9 +14454,9 @@ function TA() {
|
|
|
14454
14454
|
}
|
|
14455
14455
|
}
|
|
14456
14456
|
}
|
|
14457
|
-
return I(
|
|
14457
|
+
return I(f), new r.Token(
|
|
14458
14458
|
A,
|
|
14459
|
-
|
|
14459
|
+
f,
|
|
14460
14460
|
"language-" + A,
|
|
14461
14461
|
b
|
|
14462
14462
|
);
|
|
@@ -14482,12 +14482,12 @@ function TA() {
|
|
|
14482
14482
|
continue;
|
|
14483
14483
|
}
|
|
14484
14484
|
if (S.type === "template-string") {
|
|
14485
|
-
var
|
|
14486
|
-
if (y.length === 3 && typeof
|
|
14487
|
-
var T = v(
|
|
14485
|
+
var f = y[1];
|
|
14486
|
+
if (y.length === 3 && typeof f != "string" && f.type === "embedded-code") {
|
|
14487
|
+
var T = v(f), I = f.alias, _ = Array.isArray(I) ? I[0] : I, C = r.languages[_];
|
|
14488
14488
|
if (!C)
|
|
14489
14489
|
continue;
|
|
14490
|
-
y[1] =
|
|
14490
|
+
y[1] = g(T, C, _);
|
|
14491
14491
|
}
|
|
14492
14492
|
} else
|
|
14493
14493
|
R(y);
|
|
@@ -14772,7 +14772,7 @@ function wA() {
|
|
|
14772
14772
|
return Ca;
|
|
14773
14773
|
}
|
|
14774
14774
|
var Oa, Jd;
|
|
14775
|
-
function
|
|
14775
|
+
function bm() {
|
|
14776
14776
|
if (Jd) return Oa;
|
|
14777
14777
|
Jd = 1, Oa = e, e.displayName = "jsx", e.aliases = [];
|
|
14778
14778
|
function e(t) {
|
|
@@ -14821,14 +14821,14 @@ function mm() {
|
|
|
14821
14821
|
var l = function(u) {
|
|
14822
14822
|
return u ? typeof u == "string" ? u : typeof u.content == "string" ? u.content : u.content.map(l).join("") : "";
|
|
14823
14823
|
}, c = function(u) {
|
|
14824
|
-
for (var p = [],
|
|
14825
|
-
var h = u[
|
|
14824
|
+
for (var p = [], g = 0; g < u.length; g++) {
|
|
14825
|
+
var h = u[g], v = !1;
|
|
14826
14826
|
if (typeof h != "string" && (h.type === "tag" && h.content[0] && h.content[0].type === "tag" ? h.content[0].content[0].content === "</" ? p.length > 0 && p[p.length - 1].tagName === l(h.content[0].content[1]) && p.pop() : h.content[h.content.length - 1].content === "/>" || p.push({
|
|
14827
14827
|
tagName: l(h.content[0].content[1]),
|
|
14828
14828
|
openedBraces: 0
|
|
14829
14829
|
}) : p.length > 0 && h.type === "punctuation" && h.content === "{" ? p[p.length - 1].openedBraces++ : p.length > 0 && p[p.length - 1].openedBraces > 0 && h.type === "punctuation" && h.content === "}" ? p[p.length - 1].openedBraces-- : v = !0), (v || typeof h == "string") && p.length > 0 && p[p.length - 1].openedBraces === 0) {
|
|
14830
14830
|
var b = l(h);
|
|
14831
|
-
|
|
14831
|
+
g < u.length - 1 && (typeof u[g + 1] == "string" || u[g + 1].type === "plain-text") && (b += l(u[g + 1]), u.splice(g + 1, 1)), g > 0 && (typeof u[g - 1] == "string" || u[g - 1].type === "plain-text") && (b = l(u[g - 1]) + b, u.splice(g - 1, 1), g--), u[g] = new r.Token(
|
|
14832
14832
|
"plain-text",
|
|
14833
14833
|
b,
|
|
14834
14834
|
null,
|
|
@@ -15602,11 +15602,11 @@ function ht() {
|
|
|
15602
15602
|
}
|
|
15603
15603
|
}), n.hooks.add("before-tokenize", function(p) {
|
|
15604
15604
|
if (/<\?/.test(p.code)) {
|
|
15605
|
-
var
|
|
15605
|
+
var g = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;
|
|
15606
15606
|
n.languages["markup-templating"].buildPlaceholders(
|
|
15607
15607
|
p,
|
|
15608
15608
|
"php",
|
|
15609
|
-
|
|
15609
|
+
g
|
|
15610
15610
|
);
|
|
15611
15611
|
}
|
|
15612
15612
|
}), n.hooks.add("after-tokenize", function(p) {
|
|
@@ -16135,7 +16135,7 @@ function PA() {
|
|
|
16135
16135
|
lookbehind: !0
|
|
16136
16136
|
}
|
|
16137
16137
|
]
|
|
16138
|
-
},
|
|
16138
|
+
}, g = {
|
|
16139
16139
|
"lisp-marker": RegExp(o),
|
|
16140
16140
|
varform: {
|
|
16141
16141
|
pattern: RegExp(
|
|
@@ -16155,15 +16155,15 @@ function PA() {
|
|
|
16155
16155
|
inside: {
|
|
16156
16156
|
"rest-vars": {
|
|
16157
16157
|
pattern: RegExp("&(?:body|rest)\\s+" + h),
|
|
16158
|
-
inside:
|
|
16158
|
+
inside: g
|
|
16159
16159
|
},
|
|
16160
16160
|
"other-marker-vars": {
|
|
16161
16161
|
pattern: RegExp("&(?:aux|optional)\\s+" + h),
|
|
16162
|
-
inside:
|
|
16162
|
+
inside: g
|
|
16163
16163
|
},
|
|
16164
16164
|
keys: {
|
|
16165
16165
|
pattern: RegExp("&key\\s+" + h + "(?:\\s+&allow-other-keys)?"),
|
|
16166
|
-
inside:
|
|
16166
|
+
inside: g
|
|
16167
16167
|
},
|
|
16168
16168
|
argument: {
|
|
16169
16169
|
pattern: RegExp(i),
|
|
@@ -16576,10 +16576,10 @@ function zA() {
|
|
|
16576
16576
|
function e(t) {
|
|
16577
16577
|
(function(r) {
|
|
16578
16578
|
var n = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
16579
|
-
function a(
|
|
16580
|
-
return
|
|
16579
|
+
function a(g) {
|
|
16580
|
+
return g = g.replace(/<inner>/g, function() {
|
|
16581
16581
|
return n;
|
|
16582
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
|
16582
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")");
|
|
16583
16583
|
}
|
|
16584
16584
|
var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
|
|
16585
16585
|
/__/g,
|
|
@@ -16822,12 +16822,12 @@ function zA() {
|
|
|
16822
16822
|
}
|
|
16823
16823
|
}
|
|
16824
16824
|
}
|
|
16825
|
-
}), ["url", "bold", "italic", "strike"].forEach(function(
|
|
16825
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(g) {
|
|
16826
16826
|
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(h) {
|
|
16827
|
-
|
|
16827
|
+
g !== h && (r.languages.markdown[g].inside.content.inside[h] = r.languages.markdown[h]);
|
|
16828
16828
|
});
|
|
16829
|
-
}), r.hooks.add("after-tokenize", function(
|
|
16830
|
-
if (
|
|
16829
|
+
}), r.hooks.add("after-tokenize", function(g) {
|
|
16830
|
+
if (g.language !== "markdown" && g.language !== "md")
|
|
16831
16831
|
return;
|
|
16832
16832
|
function h(v) {
|
|
16833
16833
|
if (!(!v || typeof v == "string"))
|
|
@@ -16846,11 +16846,11 @@ function zA() {
|
|
|
16846
16846
|
}
|
|
16847
16847
|
}
|
|
16848
16848
|
}
|
|
16849
|
-
h(
|
|
16850
|
-
}), r.hooks.add("wrap", function(
|
|
16851
|
-
if (
|
|
16852
|
-
for (var h = "", v = 0, b =
|
|
16853
|
-
var R =
|
|
16849
|
+
h(g.tokens);
|
|
16850
|
+
}), r.hooks.add("wrap", function(g) {
|
|
16851
|
+
if (g.type === "code-block") {
|
|
16852
|
+
for (var h = "", v = 0, b = g.classes.length; v < b; v++) {
|
|
16853
|
+
var R = g.classes[v], A = /language-(.+)/.exec(R);
|
|
16854
16854
|
if (A) {
|
|
16855
16855
|
h = A[1];
|
|
16856
16856
|
break;
|
|
@@ -16858,14 +16858,14 @@ function zA() {
|
|
|
16858
16858
|
}
|
|
16859
16859
|
var m = r.languages[h];
|
|
16860
16860
|
if (m)
|
|
16861
|
-
|
|
16862
|
-
p(
|
|
16861
|
+
g.content = r.highlight(
|
|
16862
|
+
p(g.content.value),
|
|
16863
16863
|
m,
|
|
16864
16864
|
h
|
|
16865
16865
|
);
|
|
16866
16866
|
else if (h && h !== "none" && r.plugins.autoloader) {
|
|
16867
16867
|
var E = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
16868
|
-
|
|
16868
|
+
g.attributes.id = E, r.plugins.autoloader.loadLanguages(h, function() {
|
|
16869
16869
|
var S = document.getElementById(E);
|
|
16870
16870
|
S && (S.innerHTML = r.highlight(
|
|
16871
16871
|
S.textContent,
|
|
@@ -16882,8 +16882,8 @@ function zA() {
|
|
|
16882
16882
|
gt: ">",
|
|
16883
16883
|
quot: '"'
|
|
16884
16884
|
}, u = String.fromCodePoint || String.fromCharCode;
|
|
16885
|
-
function p(
|
|
16886
|
-
var h =
|
|
16885
|
+
function p(g) {
|
|
16886
|
+
var h = g.replace(l, "");
|
|
16887
16887
|
return h = h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(v, b) {
|
|
16888
16888
|
if (b = b.toLowerCase(), b[0] === "#") {
|
|
16889
16889
|
var R;
|
|
@@ -17755,11 +17755,11 @@ function nR() {
|
|
|
17755
17755
|
});
|
|
17756
17756
|
function i(s) {
|
|
17757
17757
|
for (var l = "[]{}", c = [], u = 0; u < s.length; u++) {
|
|
17758
|
-
var p = s[u],
|
|
17759
|
-
if (
|
|
17760
|
-
if (
|
|
17761
|
-
c.push(
|
|
17762
|
-
else if (c.pop() !==
|
|
17758
|
+
var p = s[u], g = l.indexOf(p);
|
|
17759
|
+
if (g !== -1) {
|
|
17760
|
+
if (g % 2 === 0)
|
|
17761
|
+
c.push(g + 1);
|
|
17762
|
+
else if (c.pop() !== g)
|
|
17763
17763
|
return !1;
|
|
17764
17764
|
}
|
|
17765
17765
|
}
|
|
@@ -20146,12 +20146,12 @@ function $R() {
|
|
|
20146
20146
|
), c = /\b[A-Za-z_]\w*\b/.source, u = n(/<<0>>(?:\s*\.\s*<<0>>)*/.source, [c]), p = {
|
|
20147
20147
|
keyword: l,
|
|
20148
20148
|
punctuation: /[<>()?,.:[\]]/
|
|
20149
|
-
},
|
|
20149
|
+
}, g = /"(?:\\.|[^\\"])*"/.source;
|
|
20150
20150
|
r.languages.qsharp = r.languages.extend("clike", {
|
|
20151
20151
|
comment: /\/\/.*/,
|
|
20152
20152
|
string: [
|
|
20153
20153
|
{
|
|
20154
|
-
pattern: a(/(^|[^$\\])<<0>>/.source, [
|
|
20154
|
+
pattern: a(/(^|[^$\\])<<0>>/.source, [g]),
|
|
20155
20155
|
lookbehind: !0,
|
|
20156
20156
|
greedy: !0
|
|
20157
20157
|
}
|
|
@@ -20184,7 +20184,7 @@ function $R() {
|
|
|
20184
20184
|
}
|
|
20185
20185
|
});
|
|
20186
20186
|
var h = i(
|
|
20187
|
-
n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source, [
|
|
20187
|
+
n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source, [g]),
|
|
20188
20188
|
2
|
|
20189
20189
|
);
|
|
20190
20190
|
r.languages.insertBefore("qsharp", "string", {
|
|
@@ -20756,8 +20756,8 @@ function QR() {
|
|
|
20756
20756
|
pattern: /^ ?\*{3}.+?\*{3}/,
|
|
20757
20757
|
alias: "keyword"
|
|
20758
20758
|
};
|
|
20759
|
-
for (var
|
|
20760
|
-
p[
|
|
20759
|
+
for (var g in u)
|
|
20760
|
+
p[g] = u[g];
|
|
20761
20761
|
return p.tag = {
|
|
20762
20762
|
pattern: /([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,
|
|
20763
20763
|
lookbehind: !0,
|
|
@@ -20982,11 +20982,11 @@ function t_() {
|
|
|
20982
20982
|
], u = {
|
|
20983
20983
|
pattern: RegExp(n),
|
|
20984
20984
|
greedy: !0
|
|
20985
|
-
}, p = /[$%@.(){}\[\];,\\]/,
|
|
20985
|
+
}, p = /[$%@.(){}\[\];,\\]/, g = {
|
|
20986
20986
|
pattern: /%?\b\w+(?=\()/,
|
|
20987
20987
|
alias: "keyword"
|
|
20988
20988
|
}, h = {
|
|
20989
|
-
function:
|
|
20989
|
+
function: g,
|
|
20990
20990
|
"arg-value": {
|
|
20991
20991
|
pattern: /(=\s*)[A-Z\.]+/i,
|
|
20992
20992
|
lookbehind: !0
|
|
@@ -21051,7 +21051,7 @@ function t_() {
|
|
|
21051
21051
|
alias: "keyword"
|
|
21052
21052
|
},
|
|
21053
21053
|
comment: c,
|
|
21054
|
-
function:
|
|
21054
|
+
function: g,
|
|
21055
21055
|
"arg-value": h["arg-value"],
|
|
21056
21056
|
operator: h.operator,
|
|
21057
21057
|
argument: h.arg,
|
|
@@ -21187,7 +21187,7 @@ function t_() {
|
|
|
21187
21187
|
},
|
|
21188
21188
|
step: l,
|
|
21189
21189
|
keyword: S,
|
|
21190
|
-
function:
|
|
21190
|
+
function: g,
|
|
21191
21191
|
format: v,
|
|
21192
21192
|
altformat: b,
|
|
21193
21193
|
"global-statements": R,
|
|
@@ -21265,7 +21265,7 @@ function t_() {
|
|
|
21265
21265
|
},
|
|
21266
21266
|
"cas-actions": E,
|
|
21267
21267
|
comment: c,
|
|
21268
|
-
function:
|
|
21268
|
+
function: g,
|
|
21269
21269
|
format: v,
|
|
21270
21270
|
altformat: b,
|
|
21271
21271
|
"numeric-constant": i,
|
|
@@ -21501,7 +21501,7 @@ var go, Lg;
|
|
|
21501
21501
|
function i_() {
|
|
21502
21502
|
if (Lg) return go;
|
|
21503
21503
|
Lg = 1;
|
|
21504
|
-
var e =
|
|
21504
|
+
var e = gm();
|
|
21505
21505
|
go = t, t.displayName = "shellSession", t.aliases = [];
|
|
21506
21506
|
function t(r) {
|
|
21507
21507
|
r.register(e), function(n) {
|
|
@@ -22049,7 +22049,7 @@ function p_() {
|
|
|
22049
22049
|
return So;
|
|
22050
22050
|
}
|
|
22051
22051
|
var vo, jg;
|
|
22052
|
-
function
|
|
22052
|
+
function hm() {
|
|
22053
22053
|
if (jg) return vo;
|
|
22054
22054
|
jg = 1, vo = e, e.displayName = "turtle", e.aliases = [];
|
|
22055
22055
|
function e(t) {
|
|
@@ -22110,7 +22110,7 @@ var To, Gg;
|
|
|
22110
22110
|
function g_() {
|
|
22111
22111
|
if (Gg) return To;
|
|
22112
22112
|
Gg = 1;
|
|
22113
|
-
var e =
|
|
22113
|
+
var e = hm();
|
|
22114
22114
|
To = t, t.displayName = "sparql", t.aliases = ["rq"];
|
|
22115
22115
|
function t(r) {
|
|
22116
22116
|
r.register(e), r.languages.sparql = r.languages.extend("turtle", {
|
|
@@ -22704,10 +22704,10 @@ function v_() {
|
|
|
22704
22704
|
return Oo;
|
|
22705
22705
|
}
|
|
22706
22706
|
var xo, Jg;
|
|
22707
|
-
function
|
|
22707
|
+
function Em() {
|
|
22708
22708
|
if (Jg) return xo;
|
|
22709
22709
|
Jg = 1;
|
|
22710
|
-
var e =
|
|
22710
|
+
var e = fm();
|
|
22711
22711
|
xo = t, t.displayName = "vbnet", t.aliases = [];
|
|
22712
22712
|
function t(r) {
|
|
22713
22713
|
r.register(e), r.languages.vbnet = r.languages.extend("basic", {
|
|
@@ -22739,7 +22739,7 @@ var Lo, Qg;
|
|
|
22739
22739
|
function T_() {
|
|
22740
22740
|
if (Qg) return Lo;
|
|
22741
22741
|
Qg = 1;
|
|
22742
|
-
var e = tl(), t =
|
|
22742
|
+
var e = tl(), t = Em();
|
|
22743
22743
|
Lo = r, r.displayName = "t4Vb", r.aliases = [];
|
|
22744
22744
|
function r(n) {
|
|
22745
22745
|
n.register(e), n.register(t), n.languages["t4-vb"] = n.languages["t4-templating"].createT4("vbnet");
|
|
@@ -22747,7 +22747,7 @@ function T_() {
|
|
|
22747
22747
|
return Lo;
|
|
22748
22748
|
}
|
|
22749
22749
|
var Do, ef;
|
|
22750
|
-
function
|
|
22750
|
+
function ym() {
|
|
22751
22751
|
if (ef) return Do;
|
|
22752
22752
|
ef = 1, Do = e, e.displayName = "yaml", e.aliases = ["yml"];
|
|
22753
22753
|
function e(t) {
|
|
@@ -22839,7 +22839,7 @@ var Mo, tf;
|
|
|
22839
22839
|
function A_() {
|
|
22840
22840
|
if (tf) return Mo;
|
|
22841
22841
|
tf = 1;
|
|
22842
|
-
var e =
|
|
22842
|
+
var e = ym();
|
|
22843
22843
|
Mo = t, t.displayName = "tap", t.aliases = [];
|
|
22844
22844
|
function t(r) {
|
|
22845
22845
|
r.register(e), r.languages.tap = {
|
|
@@ -22926,9 +22926,9 @@ function __() {
|
|
|
22926
22926
|
function e(t) {
|
|
22927
22927
|
(function(r) {
|
|
22928
22928
|
var n = /\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source, a = /\)|\((?![^|()\n]+\))/.source;
|
|
22929
|
-
function i(
|
|
22929
|
+
function i(g, h) {
|
|
22930
22930
|
return RegExp(
|
|
22931
|
-
|
|
22931
|
+
g.replace(/<MOD>/g, function() {
|
|
22932
22932
|
return "(?:" + n + ")";
|
|
22933
22933
|
}).replace(/<PAR>/g, function() {
|
|
22934
22934
|
return "(?:" + a + ")";
|
|
@@ -23313,7 +23313,7 @@ var qo, sf;
|
|
|
23313
23313
|
function N_() {
|
|
23314
23314
|
if (sf) return qo;
|
|
23315
23315
|
sf = 1;
|
|
23316
|
-
var e =
|
|
23316
|
+
var e = bm(), t = Js();
|
|
23317
23317
|
qo = r, r.displayName = "tsx", r.aliases = [];
|
|
23318
23318
|
function r(n) {
|
|
23319
23319
|
n.register(e), n.register(t), function(a) {
|
|
@@ -24835,12 +24835,12 @@ function ew() {
|
|
|
24835
24835
|
if (Lf) return ps;
|
|
24836
24836
|
Lf = 1;
|
|
24837
24837
|
var e = bv();
|
|
24838
|
-
return ps = e, e.register(Ev()), e.register(yv()), e.register(Sv()), e.register(vv()), e.register(Tv()), e.register(Av()), e.register(Rv()), e.register(_v()), e.register(wv()), e.register(Iv()), e.register(Nv()), e.register(kv()), e.register(Cv()), e.register(Ov()), e.register(xv()), e.register(Lv()), e.register(Dv()), e.register(Mv()), e.register(Fv()), e.register(Uv()), e.register(Pv()), e.register(Bv()), e.register(
|
|
24838
|
+
return ps = e, e.register(Ev()), e.register(yv()), e.register(Sv()), e.register(vv()), e.register(Tv()), e.register(Av()), e.register(Rv()), e.register(_v()), e.register(wv()), e.register(Iv()), e.register(Nv()), e.register(kv()), e.register(Cv()), e.register(Ov()), e.register(xv()), e.register(Lv()), e.register(Dv()), e.register(Mv()), e.register(Fv()), e.register(Uv()), e.register(Pv()), e.register(Bv()), e.register(gm()), e.register(fm()), e.register(qv()), e.register(jv()), e.register(Gv()), e.register($v()), e.register(Hv()), e.register(zv()), e.register(Vv()), e.register(Wv()), e.register(Yv()), e.register(Kv()), e.register(Oe()), e.register(Zv()), e.register(Xv()), e.register(Jv()), e.register(Qv()), e.register(eT()), e.register(tT()), e.register(rT()), e.register(nT()), e.register(aT()), e.register(Ks()), e.register(iT()), e.register(ft()), e.register(oT()), e.register(sT()), e.register(lT()), e.register(uT()), e.register(cT()), e.register(dT()), e.register(pT()), e.register(gT()), e.register(fT()), e.register(mT()), e.register(bT()), e.register(hT()), e.register(ET()), e.register(yT()), e.register(ST()), e.register(vT()), e.register(TT()), e.register(AT()), e.register(RT()), e.register(_T()), e.register(wT()), e.register(IT()), e.register(NT()), e.register(kT()), e.register(CT()), e.register(OT()), e.register(xT()), e.register(LT()), e.register(DT()), e.register(MT()), e.register(FT()), e.register(UT()), e.register(PT()), e.register(BT()), e.register(qT()), e.register(jT()), e.register(GT()), e.register($T()), e.register(HT()), e.register(zT()), e.register(VT()), e.register(WT()), e.register(YT()), e.register(KT()), e.register(ZT()), e.register(XT()), e.register(JT()), e.register(Zs()), e.register(QT()), e.register(eA()), e.register(tA()), e.register(rA()), e.register(nA()), e.register(aA()), e.register(iA()), e.register(oA()), e.register(sA()), e.register(lA()), e.register(uA()), e.register(cA()), e.register(dA()), e.register(pA()), e.register(gA()), e.register(fA()), e.register(mA()), e.register(Xs()), e.register(bA()), e.register(bt()), e.register(hA()), e.register(EA()), e.register(yA()), e.register(SA()), e.register(vA()), e.register(TA()), e.register(AA()), e.register(Qs()), e.register(RA()), e.register(_A()), e.register(wA()), e.register(bm()), e.register(IA()), e.register(NA()), e.register(kA()), e.register(CA()), e.register(OA()), e.register(xA()), e.register(LA()), e.register(DA()), e.register(MA()), e.register(FA()), e.register(UA()), e.register(PA()), e.register(BA()), e.register(qA()), e.register(jA()), e.register(GA()), e.register(mm()), e.register($A()), e.register(HA()), e.register(zA()), e.register(ne()), e.register(VA()), e.register(WA()), e.register(YA()), e.register(KA()), e.register(ZA()), e.register(XA()), e.register(JA()), e.register(QA()), e.register(eR()), e.register(tR()), e.register(rR()), e.register(nR()), e.register(aR()), e.register(iR()), e.register(oR()), e.register(sR()), e.register(lR()), e.register(uR()), e.register(cR()), e.register(dR()), e.register(pR()), e.register(gR()), e.register(fR()), e.register(mR()), e.register(bR()), e.register(hR()), e.register(ER()), e.register(yR()), e.register(SR()), e.register(vR()), e.register(TR()), e.register(AR()), e.register(ht()), e.register(RR()), e.register(_R()), e.register(wR()), e.register(IR()), e.register(NR()), e.register(kR()), e.register(CR()), e.register(OR()), e.register(xR()), e.register(LR()), e.register(DR()), e.register(MR()), e.register(FR()), e.register(UR()), e.register(PR()), e.register(BR()), e.register(qR()), e.register(jR()), e.register(GR()), e.register($R()), e.register(HR()), e.register(zR()), e.register(VR()), e.register(WR()), e.register(YR()), e.register(KR()), e.register(ZR()), e.register(XR()), e.register(JR()), e.register(QR()), e.register(mt()), e.register(e_()), e.register(t_()), e.register(r_()), e.register(n_()), e.register(el()), e.register(a_()), e.register(i_()), e.register(o_()), e.register(s_()), e.register(l_()), e.register(u_()), e.register(c_()), e.register(d_()), e.register(p_()), e.register(g_()), e.register(f_()), e.register(m_()), e.register(Ys()), e.register(b_()), e.register(h_()), e.register(E_()), e.register(y_()), e.register(S_()), e.register(v_()), e.register(tl()), e.register(T_()), e.register(A_()), e.register(R_()), e.register(__()), e.register(w_()), e.register(I_()), e.register(N_()), e.register(k_()), e.register(hm()), e.register(C_()), e.register(Js()), e.register(O_()), e.register(x_()), e.register(L_()), e.register(D_()), e.register(M_()), e.register(F_()), e.register(Em()), e.register(U_()), e.register(P_()), e.register(B_()), e.register(q_()), e.register(j_()), e.register(G_()), e.register($_()), e.register(H_()), e.register(z_()), e.register(V_()), e.register(W_()), e.register(Y_()), e.register(K_()), e.register(Z_()), e.register(X_()), e.register(ym()), e.register(J_()), e.register(Q_()), ps;
|
|
24839
24839
|
}
|
|
24840
24840
|
var tw = ew();
|
|
24841
|
-
const rw = /* @__PURE__ */
|
|
24842
|
-
var
|
|
24843
|
-
|
|
24841
|
+
const rw = /* @__PURE__ */ Om(tw);
|
|
24842
|
+
var Sm = GE(rw, hv);
|
|
24843
|
+
Sm.supportedLanguages = $E;
|
|
24844
24844
|
const nw = {
|
|
24845
24845
|
'code[class*="language-"]': {
|
|
24846
24846
|
color: "#c5c8c6",
|
|
@@ -25499,11 +25499,11 @@ const nw = {
|
|
|
25499
25499
|
};
|
|
25500
25500
|
return /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col h-full overflow-y-auto", children: [
|
|
25501
25501
|
t && /* @__PURE__ */ d.jsx("div", { className: "flex p-8 justify-center", children: /* @__PURE__ */ d.jsxs(be, { variant: "default", onClick: o, children: [
|
|
25502
|
-
/* @__PURE__ */ d.jsx(
|
|
25502
|
+
/* @__PURE__ */ d.jsx(Jm, { className: "h-4 w-4" }),
|
|
25503
25503
|
" Download"
|
|
25504
25504
|
] }) }),
|
|
25505
25505
|
!t && e && /* @__PURE__ */ d.jsx(
|
|
25506
|
-
|
|
25506
|
+
Sm,
|
|
25507
25507
|
{
|
|
25508
25508
|
showLineNumbers: !0,
|
|
25509
25509
|
language: i,
|
|
@@ -25555,11 +25555,11 @@ const nw = {
|
|
|
25555
25555
|
}
|
|
25556
25556
|
) : null;
|
|
25557
25557
|
}), cw = he(({ method: e, path: t }) => {
|
|
25558
|
-
const { setResponse: r } = Z(), n = Z(ue(Fs)), a = Z(ue(Bf)), i =
|
|
25558
|
+
const { setResponse: r } = Z(), n = Z(ue(Fs)), a = Z(ue(Bf)), i = tm(t), [o, s] = $(!1), l = async () => {
|
|
25559
25559
|
try {
|
|
25560
25560
|
s(!0);
|
|
25561
|
-
const c = Object.values(n).filter((
|
|
25562
|
-
(
|
|
25561
|
+
const c = Object.values(n).filter((g) => g.active && g.name !== "" && g.value !== "").reduce(
|
|
25562
|
+
(g, h) => (g[h.name.toLowerCase()] = h.value, g),
|
|
25563
25563
|
{}
|
|
25564
25564
|
), u = Date.now(), p = await fetch(i, {
|
|
25565
25565
|
method: e,
|
|
@@ -25573,16 +25573,16 @@ const nw = {
|
|
|
25573
25573
|
s(!1);
|
|
25574
25574
|
}
|
|
25575
25575
|
};
|
|
25576
|
-
return /* @__PURE__ */ d.jsx(be, { variant: "ghost", size: "icon", onClick: l, disabled: o, "data-testid": "endpoint-play-button", children: o ? /* @__PURE__ */ d.jsx(
|
|
25576
|
+
return /* @__PURE__ */ d.jsx(be, { variant: "ghost", size: "icon", onClick: l, disabled: o, "data-testid": "endpoint-play-button", children: o ? /* @__PURE__ */ d.jsx(eb, { className: "animate-spin" }) : /* @__PURE__ */ d.jsx(rb, { className: "h-4 w-4" }) });
|
|
25577
25577
|
}), dw = (e) => Object.keys(Fs(e)).length, pw = (e) => qf(e) !== void 0, gw = (e) => Object.keys(Us(e)).length, fw = he(({ endpoint: e, onClose: t }) => {
|
|
25578
|
-
const r = e.method === "GET" || e.method === "DELETE", [n, a] = $(r ? "params" : "body"), [i, o] = $(!1), s = Z(ue(dw)), l = Z(ue(pw)), c = Z(ue(gw));
|
|
25578
|
+
const r = e.method === "GET" || e.method === "DELETE", [n, a] = $(r ? "params" : "body"), [i, o] = $(!1), s = Z(ue(dw)), l = Z(ue(pw)), c = Gf(e.path).length, p = Z(ue(gw)) + c;
|
|
25579
25579
|
return /* @__PURE__ */ d.jsxs(
|
|
25580
25580
|
"div",
|
|
25581
25581
|
{
|
|
25582
25582
|
className: "isolate grid grid-cols-1 overflow-y-auto min-w-0 grid-rows-[auto_1fr] border-l border-border",
|
|
25583
25583
|
"data-testid": "endpoint-details-panel",
|
|
25584
25584
|
children: [
|
|
25585
|
-
/* @__PURE__ */ d.jsx(
|
|
25585
|
+
/* @__PURE__ */ d.jsx(Nm, {}),
|
|
25586
25586
|
/* @__PURE__ */ d.jsxs("div", { className: "grid grid-cols-[1fr_1fr_auto] items-start gap-4 px-5 py-4 border-b bg-card w-full", children: [
|
|
25587
25587
|
/* @__PURE__ */ d.jsxs("div", { className: "grid grid-rows-2 gap-2", children: [
|
|
25588
25588
|
/* @__PURE__ */ d.jsx(Ms, { method: e.method, path: e.path }),
|
|
@@ -25595,13 +25595,13 @@ const nw = {
|
|
|
25595
25595
|
size: "icon",
|
|
25596
25596
|
onClick: () => o(!i),
|
|
25597
25597
|
"data-testid": "endpoint-spec-button",
|
|
25598
|
-
children: /* @__PURE__ */ d.jsx(
|
|
25598
|
+
children: /* @__PURE__ */ d.jsx(jm, {})
|
|
25599
25599
|
}
|
|
25600
25600
|
) }),
|
|
25601
25601
|
/* @__PURE__ */ d.jsx(be, { variant: "icon", size: "icon", onClick: t, children: /* @__PURE__ */ d.jsx(ct, {}) })
|
|
25602
25602
|
] }),
|
|
25603
25603
|
/* @__PURE__ */ d.jsxs("div", { className: se("grid grid-cols-[minmax(350px,1fr)_minmax(auto,1fr)]", !l && "grid-cols-1"), children: [
|
|
25604
|
-
/* @__PURE__ */ d.jsxs(xs, { value: n, onValueChange: (
|
|
25604
|
+
/* @__PURE__ */ d.jsxs(xs, { value: n, onValueChange: (g) => a(g), children: [
|
|
25605
25605
|
/* @__PURE__ */ d.jsxs("div", { className: "grid grid-cols-[1fr_auto] items-center h-10 border-b px-5 bg-card", children: [
|
|
25606
25606
|
/* @__PURE__ */ d.jsxs(Ls, { children: [
|
|
25607
25607
|
/* @__PURE__ */ d.jsxs(
|
|
@@ -25612,7 +25612,7 @@ const nw = {
|
|
|
25612
25612
|
"data-testid": "endpoint-params-tab",
|
|
25613
25613
|
children: [
|
|
25614
25614
|
"Params",
|
|
25615
|
-
/* @__PURE__ */ d.jsx(ll, { variant: "outline", className: "h-4 px-1.5 text-xs", children:
|
|
25615
|
+
/* @__PURE__ */ d.jsx(ll, { variant: "outline", className: "h-4 px-1.5 text-xs", children: p })
|
|
25616
25616
|
]
|
|
25617
25617
|
}
|
|
25618
25618
|
),
|
|
@@ -25643,12 +25643,12 @@ const nw = {
|
|
|
25643
25643
|
}
|
|
25644
25644
|
);
|
|
25645
25645
|
}), Ew = () => {
|
|
25646
|
-
const { endpoints: e, groupedEndpoints: t } =
|
|
25646
|
+
const { endpoints: e, groupedEndpoints: t } = Ib(), { selectedEndpointId: r, setSelectedEndpointId: n, toggleFlowGroupStatus: a, flowGroupStatus: i } = Z(), o = me(
|
|
25647
25647
|
() => e.find((p) => p.id === r),
|
|
25648
25648
|
[e, r]
|
|
25649
25649
|
), s = te(() => {
|
|
25650
25650
|
n("");
|
|
25651
|
-
}, [n]), [l, c] = $(""), u = me(() => Object.entries(t).filter(([p,
|
|
25651
|
+
}, [n]), [l, c] = $(""), u = me(() => Object.entries(t).filter(([p, g]) => g.some(
|
|
25652
25652
|
(h) => h.method?.toLowerCase().includes(l.toLowerCase()) || h.path?.toLowerCase().includes(l.toLowerCase())
|
|
25653
25653
|
)), [t, l]);
|
|
25654
25654
|
return /* @__PURE__ */ d.jsxs(
|
|
@@ -25658,14 +25658,14 @@ const nw = {
|
|
|
25658
25658
|
"data-testid": "endpoints-list",
|
|
25659
25659
|
children: [
|
|
25660
25660
|
/* @__PURE__ */ d.jsxs("div", { className: "grid grid-rows-[auto_1fr] h-full overflow-auto min-w-0", children: [
|
|
25661
|
-
/* @__PURE__ */ d.jsx(
|
|
25662
|
-
/* @__PURE__ */ d.jsx("div", { className: "grid grid-cols-1 auto-rows-max overflow-auto min-w-0", children: u.map(([p,
|
|
25663
|
-
const h =
|
|
25661
|
+
/* @__PURE__ */ d.jsx(ub, { value: l, onChange: c, onClear: () => c("") }),
|
|
25662
|
+
/* @__PURE__ */ d.jsx("div", { className: "grid grid-cols-1 auto-rows-max overflow-auto min-w-0", children: u.map(([p, g]) => {
|
|
25663
|
+
const h = g.some((b) => b.id === r), v = !i[p] || h || l !== "";
|
|
25664
25664
|
return /* @__PURE__ */ d.jsx(
|
|
25665
|
-
|
|
25665
|
+
gb,
|
|
25666
25666
|
{
|
|
25667
25667
|
flow: p,
|
|
25668
|
-
endpoints:
|
|
25668
|
+
endpoints: g,
|
|
25669
25669
|
isOpen: v,
|
|
25670
25670
|
isSelected: h,
|
|
25671
25671
|
onToggle: a,
|