@fuf-stack/pixels 0.7.1 → 0.7.2

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.
@@ -0,0 +1,2590 @@
1
+ import {
2
+ Button_default
3
+ } from "./chunk-HYXTFS4R.js";
4
+ import {
5
+ __commonJS,
6
+ __toESM
7
+ } from "./chunk-LQ2VYIYD.js";
8
+
9
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.6/node_modules/@babel/runtime/helpers/extends.js
10
+ var require_extends = __commonJS({
11
+ "../../node_modules/.pnpm/@babel+runtime@7.24.6/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
12
+ "use strict";
13
+ function _extends22() {
14
+ return module.exports = _extends22 = Object.assign ? Object.assign.bind() : function(n) {
15
+ for (var e = 1; e < arguments.length; e++) {
16
+ var t = arguments[e];
17
+ for (var r in t)
18
+ ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
19
+ }
20
+ return n;
21
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends22.apply(null, arguments);
22
+ }
23
+ module.exports = _extends22, module.exports.__esModule = true, module.exports["default"] = module.exports;
24
+ }
25
+ });
26
+
27
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.6/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
28
+ var require_objectWithoutPropertiesLoose = __commonJS({
29
+ "../../node_modules/.pnpm/@babel+runtime@7.24.6/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
30
+ "use strict";
31
+ function _objectWithoutPropertiesLoose12(r, e) {
32
+ if (null == r)
33
+ return {};
34
+ var t = {};
35
+ for (var n in r)
36
+ if ({}.hasOwnProperty.call(r, n)) {
37
+ if (e.indexOf(n) >= 0)
38
+ continue;
39
+ t[n] = r[n];
40
+ }
41
+ return t;
42
+ }
43
+ module.exports = _objectWithoutPropertiesLoose12, module.exports.__esModule = true, module.exports["default"] = module.exports;
44
+ }
45
+ });
46
+
47
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.6/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js
48
+ var require_objectDestructuringEmpty = __commonJS({
49
+ "../../node_modules/.pnpm/@babel+runtime@7.24.6/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js"(exports, module) {
50
+ "use strict";
51
+ function _objectDestructuringEmpty2(t) {
52
+ if (null == t)
53
+ throw new TypeError("Cannot destructure " + t);
54
+ }
55
+ module.exports = _objectDestructuringEmpty2, module.exports.__esModule = true, module.exports["default"] = module.exports;
56
+ }
57
+ });
58
+
59
+ // src/Json/Json.tsx
60
+ import { useState as useState3 } from "react";
61
+ import { FaChevronDown, FaChevronUp, FaTimesCircle } from "react-icons/fa";
62
+ import { HiOutlineClipboard, HiOutlineClipboardCheck } from "react-icons/hi";
63
+
64
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/index.js
65
+ var import_extends21 = __toESM(require_extends());
66
+ var import_objectWithoutPropertiesLoose11 = __toESM(require_objectWithoutPropertiesLoose());
67
+ import { forwardRef as forwardRef2 } from "react";
68
+
69
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store.js
70
+ var import_extends7 = __toESM(require_extends());
71
+ import React3, { createContext as createContext6, useContext as useContext6, useEffect, useReducer as useReducer6 } from "react";
72
+
73
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store/ShowTools.js
74
+ var import_extends = __toESM(require_extends());
75
+ import { createContext, useContext, useReducer } from "react";
76
+ import { jsx as _jsx } from "react/jsx-runtime";
77
+ var initialState = {};
78
+ var Context = /* @__PURE__ */ createContext(initialState);
79
+ var reducer = (state, action) => (0, import_extends.default)({}, state, action);
80
+ var useShowToolsStore = () => {
81
+ return useContext(Context);
82
+ };
83
+ var DispatchShowTools = /* @__PURE__ */ createContext(() => {
84
+ });
85
+ DispatchShowTools.displayName = "JVR.DispatchShowTools";
86
+ function useShowTools() {
87
+ return useReducer(reducer, initialState);
88
+ }
89
+ function useShowToolsDispatch() {
90
+ return useContext(DispatchShowTools);
91
+ }
92
+ var ShowTools = (_ref) => {
93
+ var {
94
+ initial,
95
+ dispatch,
96
+ children
97
+ } = _ref;
98
+ return /* @__PURE__ */ _jsx(Context.Provider, {
99
+ value: initial,
100
+ children: /* @__PURE__ */ _jsx(DispatchShowTools.Provider, {
101
+ value: dispatch,
102
+ children
103
+ })
104
+ });
105
+ };
106
+ ShowTools.displayName = "JVR.ShowTools";
107
+
108
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store/Expands.js
109
+ var import_extends2 = __toESM(require_extends());
110
+ import { createContext as createContext2, useContext as useContext2, useReducer as useReducer2 } from "react";
111
+ import { jsx as _jsx2 } from "react/jsx-runtime";
112
+ var initialState2 = {};
113
+ var Context2 = /* @__PURE__ */ createContext2(initialState2);
114
+ var reducer2 = (state, action) => (0, import_extends2.default)({}, state, action);
115
+ var useExpandsStore = () => {
116
+ return useContext2(Context2);
117
+ };
118
+ var DispatchExpands = /* @__PURE__ */ createContext2(() => {
119
+ });
120
+ DispatchExpands.displayName = "JVR.DispatchExpands";
121
+ function useExpands() {
122
+ return useReducer2(reducer2, initialState2);
123
+ }
124
+ function useExpandsDispatch() {
125
+ return useContext2(DispatchExpands);
126
+ }
127
+ var Expands = (_ref) => {
128
+ var {
129
+ initial,
130
+ dispatch,
131
+ children
132
+ } = _ref;
133
+ return /* @__PURE__ */ _jsx2(Context2.Provider, {
134
+ value: initial,
135
+ children: /* @__PURE__ */ _jsx2(DispatchExpands.Provider, {
136
+ value: dispatch,
137
+ children
138
+ })
139
+ });
140
+ };
141
+ Expands.displayName = "JVR.Expands";
142
+
143
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store/Types.js
144
+ var import_extends3 = __toESM(require_extends());
145
+ import { createContext as createContext3, useContext as useContext3, useReducer as useReducer3 } from "react";
146
+ import { jsx as _jsx3 } from "react/jsx-runtime";
147
+ var initialState3 = {
148
+ Str: {
149
+ as: "span",
150
+ "data-type": "string",
151
+ style: {
152
+ color: "var(--w-rjv-type-string-color, #cb4b16)"
153
+ },
154
+ className: "w-rjv-type",
155
+ children: "string"
156
+ },
157
+ Url: {
158
+ as: "a",
159
+ style: {
160
+ color: "var(--w-rjv-type-url-color, #0969da)"
161
+ },
162
+ "data-type": "url",
163
+ className: "w-rjv-type",
164
+ children: "url"
165
+ },
166
+ Undefined: {
167
+ style: {
168
+ color: "var(--w-rjv-type-undefined-color, #586e75)"
169
+ },
170
+ as: "span",
171
+ "data-type": "undefined",
172
+ className: "w-rjv-type",
173
+ children: "undefined"
174
+ },
175
+ Null: {
176
+ style: {
177
+ color: "var(--w-rjv-type-null-color, #d33682)"
178
+ },
179
+ as: "span",
180
+ "data-type": "null",
181
+ className: "w-rjv-type",
182
+ children: "null"
183
+ },
184
+ Map: {
185
+ style: {
186
+ color: "var(--w-rjv-type-map-color, #268bd2)",
187
+ marginRight: 3
188
+ },
189
+ as: "span",
190
+ "data-type": "map",
191
+ className: "w-rjv-type",
192
+ children: "Map"
193
+ },
194
+ Nan: {
195
+ style: {
196
+ color: "var(--w-rjv-type-nan-color, #859900)"
197
+ },
198
+ as: "span",
199
+ "data-type": "nan",
200
+ className: "w-rjv-type",
201
+ children: "NaN"
202
+ },
203
+ Bigint: {
204
+ style: {
205
+ color: "var(--w-rjv-type-bigint-color, #268bd2)"
206
+ },
207
+ as: "span",
208
+ "data-type": "bigint",
209
+ className: "w-rjv-type",
210
+ children: "bigint"
211
+ },
212
+ Int: {
213
+ style: {
214
+ color: "var(--w-rjv-type-int-color, #268bd2)"
215
+ },
216
+ as: "span",
217
+ "data-type": "int",
218
+ className: "w-rjv-type",
219
+ children: "int"
220
+ },
221
+ Set: {
222
+ style: {
223
+ color: "var(--w-rjv-type-set-color, #268bd2)",
224
+ marginRight: 3
225
+ },
226
+ as: "span",
227
+ "data-type": "set",
228
+ className: "w-rjv-type",
229
+ children: "Set"
230
+ },
231
+ Float: {
232
+ style: {
233
+ color: "var(--w-rjv-type-float-color, #859900)"
234
+ },
235
+ as: "span",
236
+ "data-type": "float",
237
+ className: "w-rjv-type",
238
+ children: "float"
239
+ },
240
+ True: {
241
+ style: {
242
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
243
+ },
244
+ as: "span",
245
+ "data-type": "bool",
246
+ className: "w-rjv-type",
247
+ children: "bool"
248
+ },
249
+ False: {
250
+ style: {
251
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
252
+ },
253
+ as: "span",
254
+ "data-type": "bool",
255
+ className: "w-rjv-type",
256
+ children: "bool"
257
+ },
258
+ Date: {
259
+ style: {
260
+ color: "var(--w-rjv-type-date-color, #268bd2)"
261
+ },
262
+ as: "span",
263
+ "data-type": "date",
264
+ className: "w-rjv-type",
265
+ children: "date"
266
+ }
267
+ };
268
+ var Context3 = /* @__PURE__ */ createContext3(initialState3);
269
+ var reducer3 = (state, action) => (0, import_extends3.default)({}, state, action);
270
+ var useTypesStore = () => {
271
+ return useContext3(Context3);
272
+ };
273
+ var DispatchTypes = /* @__PURE__ */ createContext3(() => {
274
+ });
275
+ DispatchTypes.displayName = "JVR.DispatchTypes";
276
+ function useTypes() {
277
+ return useReducer3(reducer3, initialState3);
278
+ }
279
+ function useTypesDispatch() {
280
+ return useContext3(DispatchTypes);
281
+ }
282
+ function Types(_ref) {
283
+ var {
284
+ initial,
285
+ dispatch,
286
+ children
287
+ } = _ref;
288
+ return /* @__PURE__ */ _jsx3(Context3.Provider, {
289
+ value: initial,
290
+ children: /* @__PURE__ */ _jsx3(DispatchTypes.Provider, {
291
+ value: dispatch,
292
+ children
293
+ })
294
+ });
295
+ }
296
+ Types.displayName = "JVR.Types";
297
+
298
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store/Symbols.js
299
+ var import_extends5 = __toESM(require_extends());
300
+ import { createContext as createContext4, useContext as useContext4, useReducer as useReducer4 } from "react";
301
+
302
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js
303
+ var import_extends4 = __toESM(require_extends());
304
+ var import_objectWithoutPropertiesLoose = __toESM(require_objectWithoutPropertiesLoose());
305
+ import React from "react";
306
+ import { jsx as _jsx4 } from "react/jsx-runtime";
307
+ var _excluded = ["style"];
308
+ function TriangleArrow(props) {
309
+ var {
310
+ style
311
+ } = props, reset = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded);
312
+ var defaultStyle = (0, import_extends4.default)({
313
+ cursor: "pointer",
314
+ height: "1em",
315
+ width: "1em",
316
+ userSelect: "none",
317
+ display: "inline-flex"
318
+ }, style);
319
+ return /* @__PURE__ */ _jsx4("svg", (0, import_extends4.default)({
320
+ viewBox: "0 0 24 24",
321
+ fill: "var(--w-rjv-arrow-color, currentColor)",
322
+ style: defaultStyle
323
+ }, reset, {
324
+ children: /* @__PURE__ */ _jsx4("path", {
325
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
326
+ })
327
+ }));
328
+ }
329
+ TriangleArrow.displayName = "JVR.TriangleArrow";
330
+
331
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store/Symbols.js
332
+ import { jsx as _jsx5 } from "react/jsx-runtime";
333
+ var initialState4 = {
334
+ Arrow: {
335
+ as: "span",
336
+ className: "w-rjv-arrow",
337
+ style: {
338
+ transform: "rotate(0deg)",
339
+ transition: "all 0.3s"
340
+ },
341
+ children: /* @__PURE__ */ _jsx5(TriangleArrow, {})
342
+ },
343
+ Colon: {
344
+ as: "span",
345
+ style: {
346
+ color: "var(--w-rjv-colon-color, var(--w-rjv-color))",
347
+ marginLeft: 0,
348
+ marginRight: 2
349
+ },
350
+ className: "w-rjv-colon",
351
+ children: ":"
352
+ },
353
+ Quote: {
354
+ as: "span",
355
+ style: {
356
+ color: "var(--w-rjv-quotes-color, #236a7c)"
357
+ },
358
+ className: "w-rjv-quotes",
359
+ children: '"'
360
+ },
361
+ ValueQuote: {
362
+ as: "span",
363
+ style: {
364
+ color: "var(--w-rjv-quotes-string-color, #cb4b16)"
365
+ },
366
+ className: "w-rjv-quotes",
367
+ children: '"'
368
+ },
369
+ BracketsLeft: {
370
+ as: "span",
371
+ style: {
372
+ color: "var(--w-rjv-brackets-color, #236a7c)"
373
+ },
374
+ className: "w-rjv-brackets-start",
375
+ children: "["
376
+ },
377
+ BracketsRight: {
378
+ as: "span",
379
+ style: {
380
+ color: "var(--w-rjv-brackets-color, #236a7c)"
381
+ },
382
+ className: "w-rjv-brackets-end",
383
+ children: "]"
384
+ },
385
+ BraceLeft: {
386
+ as: "span",
387
+ style: {
388
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
389
+ },
390
+ className: "w-rjv-curlybraces-start",
391
+ children: "{"
392
+ },
393
+ BraceRight: {
394
+ as: "span",
395
+ style: {
396
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
397
+ },
398
+ className: "w-rjv-curlybraces-end",
399
+ children: "}"
400
+ }
401
+ };
402
+ var Context4 = /* @__PURE__ */ createContext4(initialState4);
403
+ var reducer4 = (state, action) => (0, import_extends5.default)({}, state, action);
404
+ var useSymbolsStore = () => {
405
+ return useContext4(Context4);
406
+ };
407
+ var DispatchSymbols = /* @__PURE__ */ createContext4(() => {
408
+ });
409
+ DispatchSymbols.displayName = "JVR.DispatchSymbols";
410
+ function useSymbols() {
411
+ return useReducer4(reducer4, initialState4);
412
+ }
413
+ function useSymbolsDispatch() {
414
+ return useContext4(DispatchSymbols);
415
+ }
416
+ var Symbols = (_ref) => {
417
+ var {
418
+ initial,
419
+ dispatch,
420
+ children
421
+ } = _ref;
422
+ return /* @__PURE__ */ _jsx5(Context4.Provider, {
423
+ value: initial,
424
+ children: /* @__PURE__ */ _jsx5(DispatchSymbols.Provider, {
425
+ value: dispatch,
426
+ children
427
+ })
428
+ });
429
+ };
430
+ Symbols.displayName = "JVR.Symbols";
431
+
432
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store/Section.js
433
+ var import_extends6 = __toESM(require_extends());
434
+ import React2, { createContext as createContext5, useContext as useContext5, useReducer as useReducer5 } from "react";
435
+ import { jsx as _jsx6 } from "react/jsx-runtime";
436
+ var initialState5 = {
437
+ Copied: {
438
+ className: "w-rjv-copied",
439
+ style: {
440
+ height: "1em",
441
+ width: "1em",
442
+ cursor: "pointer",
443
+ verticalAlign: "middle",
444
+ marginLeft: 5
445
+ }
446
+ },
447
+ CountInfo: {
448
+ as: "span",
449
+ className: "w-rjv-object-size",
450
+ style: {
451
+ color: "var(--w-rjv-info-color, #0000004d)",
452
+ paddingLeft: 8,
453
+ fontStyle: "italic"
454
+ }
455
+ },
456
+ CountInfoExtra: {
457
+ as: "span",
458
+ className: "w-rjv-object-extra",
459
+ style: {
460
+ paddingLeft: 8
461
+ }
462
+ },
463
+ Ellipsis: {
464
+ as: "span",
465
+ style: {
466
+ cursor: "pointer",
467
+ color: "var(--w-rjv-ellipsis-color, #cb4b16)",
468
+ userSelect: "none"
469
+ },
470
+ className: "w-rjv-ellipsis",
471
+ children: "..."
472
+ },
473
+ Row: {
474
+ as: "div",
475
+ className: "w-rjv-line"
476
+ },
477
+ KeyName: {
478
+ as: "span",
479
+ className: "w-rjv-object-key"
480
+ }
481
+ };
482
+ var Context5 = /* @__PURE__ */ createContext5(initialState5);
483
+ var reducer5 = (state, action) => (0, import_extends6.default)({}, state, action);
484
+ var useSectionStore = () => {
485
+ return useContext5(Context5);
486
+ };
487
+ var DispatchSection = /* @__PURE__ */ createContext5(() => {
488
+ });
489
+ DispatchSection.displayName = "JVR.DispatchSection";
490
+ function useSection() {
491
+ return useReducer5(reducer5, initialState5);
492
+ }
493
+ function useSectionDispatch() {
494
+ return useContext5(DispatchSection);
495
+ }
496
+ var Section = (_ref) => {
497
+ var {
498
+ initial,
499
+ dispatch,
500
+ children
501
+ } = _ref;
502
+ return /* @__PURE__ */ _jsx6(Context5.Provider, {
503
+ value: initial,
504
+ children: /* @__PURE__ */ _jsx6(DispatchSection.Provider, {
505
+ value: dispatch,
506
+ children
507
+ })
508
+ });
509
+ };
510
+ Section.displayName = "JVR.Section";
511
+
512
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/store.js
513
+ import { jsx as _jsx7 } from "react/jsx-runtime";
514
+ var initialState6 = {
515
+ objectSortKeys: false,
516
+ indentWidth: 15
517
+ };
518
+ var Context6 = /* @__PURE__ */ createContext6(initialState6);
519
+ Context6.displayName = "JVR.Context";
520
+ var DispatchContext = /* @__PURE__ */ createContext6(() => {
521
+ });
522
+ DispatchContext.displayName = "JVR.DispatchContext";
523
+ function reducer6(state, action) {
524
+ return (0, import_extends7.default)({}, state, action);
525
+ }
526
+ var useStore = () => {
527
+ return useContext6(Context6);
528
+ };
529
+ var Provider = (_ref) => {
530
+ var {
531
+ children,
532
+ initialState: init,
533
+ initialTypes
534
+ } = _ref;
535
+ var [state, dispatch] = useReducer6(reducer6, Object.assign({}, initialState6, init));
536
+ var [showTools, showToolsDispatch] = useShowTools();
537
+ var [expands, expandsDispatch] = useExpands();
538
+ var [types, typesDispatch] = useTypes();
539
+ var [symbols, symbolsDispatch] = useSymbols();
540
+ var [section, sectionDispatch] = useSection();
541
+ useEffect(() => dispatch((0, import_extends7.default)({}, init)), [init]);
542
+ return /* @__PURE__ */ _jsx7(Context6.Provider, {
543
+ value: state,
544
+ children: /* @__PURE__ */ _jsx7(DispatchContext.Provider, {
545
+ value: dispatch,
546
+ children: /* @__PURE__ */ _jsx7(ShowTools, {
547
+ initial: showTools,
548
+ dispatch: showToolsDispatch,
549
+ children: /* @__PURE__ */ _jsx7(Expands, {
550
+ initial: expands,
551
+ dispatch: expandsDispatch,
552
+ children: /* @__PURE__ */ _jsx7(Types, {
553
+ initial: (0, import_extends7.default)({}, types, initialTypes),
554
+ dispatch: typesDispatch,
555
+ children: /* @__PURE__ */ _jsx7(Symbols, {
556
+ initial: symbols,
557
+ dispatch: symbolsDispatch,
558
+ children: /* @__PURE__ */ _jsx7(Section, {
559
+ initial: section,
560
+ dispatch: sectionDispatch,
561
+ children
562
+ })
563
+ })
564
+ })
565
+ })
566
+ })
567
+ })
568
+ });
569
+ };
570
+ Provider.displayName = "JVR.Provider";
571
+
572
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/Container.js
573
+ var import_extends20 = __toESM(require_extends());
574
+ var import_objectWithoutPropertiesLoose10 = __toESM(require_objectWithoutPropertiesLoose());
575
+ import React4, { forwardRef, useId as useId2 } from "react";
576
+
577
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/index.js
578
+ var import_objectDestructuringEmpty = __toESM(require_objectDestructuringEmpty());
579
+ var import_extends8 = __toESM(require_extends());
580
+ var import_objectWithoutPropertiesLoose2 = __toESM(require_objectWithoutPropertiesLoose());
581
+ import { jsx as _jsx8 } from "react/jsx-runtime";
582
+ var _excluded2 = ["isNumber"];
583
+ var _excluded22 = ["as", "render"];
584
+ var _excluded3 = ["as", "render"];
585
+ var _excluded4 = ["as", "render"];
586
+ var _excluded5 = ["as", "style", "render"];
587
+ var _excluded6 = ["as", "render"];
588
+ var _excluded7 = ["as", "render"];
589
+ var _excluded8 = ["as", "render"];
590
+ var _excluded9 = ["as", "render"];
591
+ var Quote = (props) => {
592
+ var {
593
+ Quote: Comp = {}
594
+ } = useSymbolsStore();
595
+ var {
596
+ isNumber
597
+ } = props, other = (0, import_objectWithoutPropertiesLoose2.default)(props, _excluded2);
598
+ if (isNumber)
599
+ return null;
600
+ var {
601
+ as,
602
+ render
603
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose2.default)(Comp, _excluded22);
604
+ var Elm = as || "span";
605
+ var elmProps = (0, import_extends8.default)({}, other, reset);
606
+ var child = render && typeof render === "function" && render(elmProps);
607
+ if (child)
608
+ return child;
609
+ return /* @__PURE__ */ _jsx8(Elm, (0, import_extends8.default)({}, elmProps));
610
+ };
611
+ Quote.displayName = "JVR.Quote";
612
+ var ValueQuote = (props) => {
613
+ var {
614
+ ValueQuote: Comp = {}
615
+ } = useSymbolsStore();
616
+ var other = (0, import_extends8.default)({}, ((0, import_objectDestructuringEmpty.default)(props), props));
617
+ var {
618
+ as,
619
+ render
620
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose2.default)(Comp, _excluded3);
621
+ var Elm = as || "span";
622
+ var elmProps = (0, import_extends8.default)({}, other, reset);
623
+ var child = render && typeof render === "function" && render(elmProps);
624
+ if (child)
625
+ return child;
626
+ return /* @__PURE__ */ _jsx8(Elm, (0, import_extends8.default)({}, elmProps));
627
+ };
628
+ ValueQuote.displayName = "JVR.ValueQuote";
629
+ var Colon = () => {
630
+ var {
631
+ Colon: Comp = {}
632
+ } = useSymbolsStore();
633
+ var {
634
+ as,
635
+ render
636
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose2.default)(Comp, _excluded4);
637
+ var Elm = as || "span";
638
+ var child = render && typeof render === "function" && render(reset);
639
+ if (child)
640
+ return child;
641
+ return /* @__PURE__ */ _jsx8(Elm, (0, import_extends8.default)({}, reset));
642
+ };
643
+ Colon.displayName = "JVR.Colon";
644
+ var Arrow = (props) => {
645
+ var {
646
+ Arrow: Comp = {}
647
+ } = useSymbolsStore();
648
+ var expands = useExpandsStore();
649
+ var {
650
+ expandKey
651
+ } = props;
652
+ var isExpanded = !!expands[expandKey];
653
+ var {
654
+ as,
655
+ style,
656
+ render
657
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose2.default)(Comp, _excluded5);
658
+ var Elm = as || "span";
659
+ var isRender = render && typeof render === "function";
660
+ var child = isRender && render((0, import_extends8.default)({}, reset, {
661
+ "data-expanded": isExpanded,
662
+ style: (0, import_extends8.default)({}, style, props.style)
663
+ }));
664
+ if (child)
665
+ return child;
666
+ return /* @__PURE__ */ _jsx8(Elm, (0, import_extends8.default)({}, reset, {
667
+ style: (0, import_extends8.default)({}, style, props.style)
668
+ }));
669
+ };
670
+ Arrow.displayName = "JVR.Arrow";
671
+ var BracketsOpen = (_ref) => {
672
+ var {
673
+ isBrackets
674
+ } = _ref;
675
+ var {
676
+ BracketsLeft: BracketsLeft2 = {},
677
+ BraceLeft: BraceLeft2 = {}
678
+ } = useSymbolsStore();
679
+ if (isBrackets) {
680
+ var {
681
+ as,
682
+ render: _render
683
+ } = BracketsLeft2, reset = (0, import_objectWithoutPropertiesLoose2.default)(BracketsLeft2, _excluded6);
684
+ var BracketsLeftComp = as || "span";
685
+ var _child = _render && typeof _render === "function" && _render(reset);
686
+ if (_child)
687
+ return _child;
688
+ return /* @__PURE__ */ _jsx8(BracketsLeftComp, (0, import_extends8.default)({}, reset));
689
+ }
690
+ var {
691
+ as: elm,
692
+ render
693
+ } = BraceLeft2, props = (0, import_objectWithoutPropertiesLoose2.default)(BraceLeft2, _excluded7);
694
+ var BraceLeftComp = elm || "span";
695
+ var child = render && typeof render === "function" && render(props);
696
+ if (child)
697
+ return child;
698
+ return /* @__PURE__ */ _jsx8(BraceLeftComp, (0, import_extends8.default)({}, props));
699
+ };
700
+ BracketsOpen.displayName = "JVR.BracketsOpen";
701
+ var BracketsClose = (_ref2) => {
702
+ var {
703
+ isBrackets,
704
+ isVisiable
705
+ } = _ref2;
706
+ if (!isVisiable)
707
+ return null;
708
+ var {
709
+ BracketsRight: BracketsRight2 = {},
710
+ BraceRight: BraceRight2 = {}
711
+ } = useSymbolsStore();
712
+ if (isBrackets) {
713
+ var {
714
+ as,
715
+ render: _render2
716
+ } = BracketsRight2, _reset = (0, import_objectWithoutPropertiesLoose2.default)(BracketsRight2, _excluded8);
717
+ var BracketsRightComp = as || "span";
718
+ var _child2 = _render2 && typeof _render2 === "function" && _render2(_reset);
719
+ if (_child2)
720
+ return _child2;
721
+ return /* @__PURE__ */ _jsx8(BracketsRightComp, (0, import_extends8.default)({}, _reset));
722
+ }
723
+ var {
724
+ as: elm,
725
+ render
726
+ } = BraceRight2, reset = (0, import_objectWithoutPropertiesLoose2.default)(BraceRight2, _excluded9);
727
+ var BraceRightComp = elm || "span";
728
+ var child = render && typeof render === "function" && render(reset);
729
+ if (child)
730
+ return child;
731
+ return /* @__PURE__ */ _jsx8(BraceRightComp, (0, import_extends8.default)({}, reset));
732
+ };
733
+ BracketsClose.displayName = "JVR.BracketsClose";
734
+
735
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js
736
+ import { jsx as _jsx9 } from "react/jsx-runtime";
737
+ var NestedClose = (props) => {
738
+ var _expands$expandKey;
739
+ var {
740
+ value,
741
+ expandKey,
742
+ level
743
+ } = props;
744
+ var expands = useExpandsStore();
745
+ var isArray = Array.isArray(value);
746
+ var {
747
+ collapsed
748
+ } = useStore();
749
+ var isMySet = value instanceof Set;
750
+ var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
751
+ var len = Object.keys(value).length;
752
+ if (isExpanded || len === 0) {
753
+ return null;
754
+ }
755
+ var style = {
756
+ paddingLeft: 4
757
+ };
758
+ return /* @__PURE__ */ _jsx9("div", {
759
+ style,
760
+ children: /* @__PURE__ */ _jsx9(BracketsClose, {
761
+ isBrackets: isArray || isMySet,
762
+ isVisiable: true
763
+ })
764
+ });
765
+ };
766
+ NestedClose.displayName = "JVR.NestedClose";
767
+
768
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js
769
+ var import_extends19 = __toESM(require_extends());
770
+
771
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js
772
+ var import_extends15 = __toESM(require_extends());
773
+ import { Fragment as Fragment2, useId, useRef as useRef2 } from "react";
774
+
775
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/Value.js
776
+ var import_extends10 = __toESM(require_extends());
777
+
778
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/index.js
779
+ var import_extends9 = __toESM(require_extends());
780
+ var import_objectWithoutPropertiesLoose3 = __toESM(require_objectWithoutPropertiesLoose());
781
+ import { Fragment, useEffect as useEffect2, useState } from "react";
782
+ import { jsx as _jsx10, jsxs as _jsxs } from "react/jsx-runtime";
783
+ var _excluded10 = ["as", "render"];
784
+ var _excluded23 = ["as", "render"];
785
+ var _excluded32 = ["as", "render"];
786
+ var _excluded42 = ["as", "render"];
787
+ var _excluded52 = ["as", "render"];
788
+ var _excluded62 = ["as", "render"];
789
+ var _excluded72 = ["as", "render"];
790
+ var _excluded82 = ["as", "render"];
791
+ var _excluded92 = ["as", "render"];
792
+ var _excluded102 = ["as", "render"];
793
+ var _excluded11 = ["as", "render"];
794
+ var _excluded12 = ["as", "render"];
795
+ var _excluded13 = ["as", "render"];
796
+ var bigIntToString = (bi) => {
797
+ if (bi === void 0) {
798
+ return "0n";
799
+ } else if (typeof bi === "string") {
800
+ try {
801
+ bi = BigInt(bi);
802
+ } catch (e) {
803
+ return "0n";
804
+ }
805
+ }
806
+ return bi ? bi.toString() + "n" : "0n";
807
+ };
808
+ var SetComp = (_ref) => {
809
+ var {
810
+ value,
811
+ keyName
812
+ } = _ref;
813
+ var {
814
+ Set: Comp = {},
815
+ displayDataTypes
816
+ } = useTypesStore();
817
+ var isSet = value instanceof Set;
818
+ if (!isSet || !displayDataTypes)
819
+ return null;
820
+ var {
821
+ as,
822
+ render
823
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose3.default)(Comp, _excluded10);
824
+ var isRender = render && typeof render === "function";
825
+ var type = isRender && render(reset, {
826
+ type: "type",
827
+ value,
828
+ keyName
829
+ });
830
+ if (type)
831
+ return type;
832
+ var Elm = as || "span";
833
+ return /* @__PURE__ */ _jsx10(Elm, (0, import_extends9.default)({}, reset));
834
+ };
835
+ SetComp.displayName = "JVR.SetComp";
836
+ var MapComp = (_ref2) => {
837
+ var {
838
+ value,
839
+ keyName
840
+ } = _ref2;
841
+ var {
842
+ Map: Comp = {},
843
+ displayDataTypes
844
+ } = useTypesStore();
845
+ var isMap = value instanceof Map;
846
+ if (!isMap || !displayDataTypes)
847
+ return null;
848
+ var {
849
+ as,
850
+ render
851
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose3.default)(Comp, _excluded23);
852
+ var isRender = render && typeof render === "function";
853
+ var type = isRender && render(reset, {
854
+ type: "type",
855
+ value,
856
+ keyName
857
+ });
858
+ if (type)
859
+ return type;
860
+ var Elm = as || "span";
861
+ return /* @__PURE__ */ _jsx10(Elm, (0, import_extends9.default)({}, reset));
862
+ };
863
+ MapComp.displayName = "JVR.MapComp";
864
+ var defalutStyle = {
865
+ opacity: 0.75,
866
+ paddingRight: 4
867
+ };
868
+ var TypeString = (_ref3) => {
869
+ var {
870
+ children = "",
871
+ keyName
872
+ } = _ref3;
873
+ var {
874
+ Str = {},
875
+ displayDataTypes
876
+ } = useTypesStore();
877
+ var {
878
+ shortenTextAfterLength: length = 30
879
+ } = useStore();
880
+ var {
881
+ as,
882
+ render
883
+ } = Str, reset = (0, import_objectWithoutPropertiesLoose3.default)(Str, _excluded32);
884
+ var childrenStr = children;
885
+ var [shorten, setShorten] = useState(length && childrenStr.length >= length);
886
+ useEffect2(() => setShorten(length && childrenStr.length >= length), [length]);
887
+ var Comp = as || "span";
888
+ var style = (0, import_extends9.default)({}, defalutStyle, Str.style || {});
889
+ if (length > 0) {
890
+ reset.style = (0, import_extends9.default)({}, reset.style, {
891
+ cursor: childrenStr.length <= length ? "initial" : "pointer"
892
+ });
893
+ if (childrenStr.length > length) {
894
+ reset.onClick = () => {
895
+ setShorten(!shorten);
896
+ };
897
+ }
898
+ }
899
+ var text = shorten ? childrenStr.slice(0, length) + "..." : childrenStr;
900
+ var isRender = render && typeof render === "function";
901
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
902
+ style
903
+ }), {
904
+ type: "type",
905
+ value: children,
906
+ keyName
907
+ });
908
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
909
+ children: text,
910
+ className: "w-rjv-value"
911
+ }), {
912
+ type: "value",
913
+ value: children,
914
+ keyName
915
+ });
916
+ return /* @__PURE__ */ _jsxs(Fragment, {
917
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
918
+ style
919
+ }))), child || /* @__PURE__ */ _jsxs(Fragment, {
920
+ children: [/* @__PURE__ */ _jsx10(ValueQuote, {}), /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
921
+ className: "w-rjv-value",
922
+ children: text
923
+ })), /* @__PURE__ */ _jsx10(ValueQuote, {})]
924
+ })]
925
+ });
926
+ };
927
+ TypeString.displayName = "JVR.TypeString";
928
+ var TypeTrue = (_ref4) => {
929
+ var {
930
+ children,
931
+ keyName
932
+ } = _ref4;
933
+ var {
934
+ True: True2 = {},
935
+ displayDataTypes
936
+ } = useTypesStore();
937
+ var {
938
+ as,
939
+ render
940
+ } = True2, reset = (0, import_objectWithoutPropertiesLoose3.default)(True2, _excluded42);
941
+ var Comp = as || "span";
942
+ var style = (0, import_extends9.default)({}, defalutStyle, True2.style || {});
943
+ var isRender = render && typeof render === "function";
944
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
945
+ style
946
+ }), {
947
+ type: "type",
948
+ value: children,
949
+ keyName
950
+ });
951
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
952
+ children,
953
+ className: "w-rjv-value"
954
+ }), {
955
+ type: "value",
956
+ value: children,
957
+ keyName
958
+ });
959
+ return /* @__PURE__ */ _jsxs(Fragment, {
960
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
961
+ style
962
+ }))), child || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
963
+ className: "w-rjv-value",
964
+ children: children == null ? void 0 : children.toString()
965
+ }))]
966
+ });
967
+ };
968
+ TypeTrue.displayName = "JVR.TypeTrue";
969
+ var TypeFalse = (_ref5) => {
970
+ var {
971
+ children,
972
+ keyName
973
+ } = _ref5;
974
+ var {
975
+ False: False2 = {},
976
+ displayDataTypes
977
+ } = useTypesStore();
978
+ var {
979
+ as,
980
+ render
981
+ } = False2, reset = (0, import_objectWithoutPropertiesLoose3.default)(False2, _excluded52);
982
+ var Comp = as || "span";
983
+ var style = (0, import_extends9.default)({}, defalutStyle, False2.style || {});
984
+ var isRender = render && typeof render === "function";
985
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
986
+ style
987
+ }), {
988
+ type: "type",
989
+ value: children,
990
+ keyName
991
+ });
992
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
993
+ children,
994
+ className: "w-rjv-value"
995
+ }), {
996
+ type: "value",
997
+ value: children,
998
+ keyName
999
+ });
1000
+ return /* @__PURE__ */ _jsxs(Fragment, {
1001
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1002
+ style
1003
+ }))), child || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1004
+ className: "w-rjv-value",
1005
+ children: children == null ? void 0 : children.toString()
1006
+ }))]
1007
+ });
1008
+ };
1009
+ TypeFalse.displayName = "JVR.TypeFalse";
1010
+ var TypeFloat = (_ref6) => {
1011
+ var {
1012
+ children,
1013
+ keyName
1014
+ } = _ref6;
1015
+ var {
1016
+ Float: Float2 = {},
1017
+ displayDataTypes
1018
+ } = useTypesStore();
1019
+ var {
1020
+ as,
1021
+ render
1022
+ } = Float2, reset = (0, import_objectWithoutPropertiesLoose3.default)(Float2, _excluded62);
1023
+ var Comp = as || "span";
1024
+ var style = (0, import_extends9.default)({}, defalutStyle, Float2.style || {});
1025
+ var isRender = render && typeof render === "function";
1026
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1027
+ style
1028
+ }), {
1029
+ type: "type",
1030
+ value: children,
1031
+ keyName
1032
+ });
1033
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1034
+ children,
1035
+ className: "w-rjv-value"
1036
+ }), {
1037
+ type: "value",
1038
+ value: children,
1039
+ keyName
1040
+ });
1041
+ return /* @__PURE__ */ _jsxs(Fragment, {
1042
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1043
+ style
1044
+ }))), child || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1045
+ className: "w-rjv-value",
1046
+ children: children == null ? void 0 : children.toString()
1047
+ }))]
1048
+ });
1049
+ };
1050
+ TypeFloat.displayName = "JVR.TypeFloat";
1051
+ var TypeInt = (_ref7) => {
1052
+ var {
1053
+ children,
1054
+ keyName
1055
+ } = _ref7;
1056
+ var {
1057
+ Int: Int2 = {},
1058
+ displayDataTypes
1059
+ } = useTypesStore();
1060
+ var {
1061
+ as,
1062
+ render
1063
+ } = Int2, reset = (0, import_objectWithoutPropertiesLoose3.default)(Int2, _excluded72);
1064
+ var Comp = as || "span";
1065
+ var style = (0, import_extends9.default)({}, defalutStyle, Int2.style || {});
1066
+ var isRender = render && typeof render === "function";
1067
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1068
+ style
1069
+ }), {
1070
+ type: "type",
1071
+ value: children,
1072
+ keyName
1073
+ });
1074
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1075
+ children,
1076
+ className: "w-rjv-value"
1077
+ }), {
1078
+ type: "value",
1079
+ value: children,
1080
+ keyName
1081
+ });
1082
+ return /* @__PURE__ */ _jsxs(Fragment, {
1083
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1084
+ style
1085
+ }))), child || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1086
+ className: "w-rjv-value",
1087
+ children: children == null ? void 0 : children.toString()
1088
+ }))]
1089
+ });
1090
+ };
1091
+ TypeInt.displayName = "JVR.TypeInt";
1092
+ var TypeBigint = (_ref8) => {
1093
+ var {
1094
+ children,
1095
+ keyName
1096
+ } = _ref8;
1097
+ var {
1098
+ Bigint: CompBigint = {},
1099
+ displayDataTypes
1100
+ } = useTypesStore();
1101
+ var {
1102
+ as,
1103
+ render
1104
+ } = CompBigint, reset = (0, import_objectWithoutPropertiesLoose3.default)(CompBigint, _excluded82);
1105
+ var Comp = as || "span";
1106
+ var style = (0, import_extends9.default)({}, defalutStyle, CompBigint.style || {});
1107
+ var isRender = render && typeof render === "function";
1108
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1109
+ style
1110
+ }), {
1111
+ type: "type",
1112
+ value: children,
1113
+ keyName
1114
+ });
1115
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1116
+ children,
1117
+ className: "w-rjv-value"
1118
+ }), {
1119
+ type: "value",
1120
+ value: children,
1121
+ keyName
1122
+ });
1123
+ return /* @__PURE__ */ _jsxs(Fragment, {
1124
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1125
+ style
1126
+ }))), child || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1127
+ className: "w-rjv-value",
1128
+ children: bigIntToString(children == null ? void 0 : children.toString())
1129
+ }))]
1130
+ });
1131
+ };
1132
+ TypeBigint.displayName = "JVR.TypeFloat";
1133
+ var TypeUrl = (_ref9) => {
1134
+ var {
1135
+ children,
1136
+ keyName
1137
+ } = _ref9;
1138
+ var {
1139
+ Url: Url2 = {},
1140
+ displayDataTypes
1141
+ } = useTypesStore();
1142
+ var {
1143
+ as,
1144
+ render
1145
+ } = Url2, reset = (0, import_objectWithoutPropertiesLoose3.default)(Url2, _excluded92);
1146
+ var Comp = as || "span";
1147
+ var style = (0, import_extends9.default)({}, defalutStyle, Url2.style);
1148
+ var isRender = render && typeof render === "function";
1149
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1150
+ style
1151
+ }), {
1152
+ type: "type",
1153
+ value: children,
1154
+ keyName
1155
+ });
1156
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1157
+ children: children == null ? void 0 : children.href,
1158
+ className: "w-rjv-value"
1159
+ }), {
1160
+ type: "value",
1161
+ value: children,
1162
+ keyName
1163
+ });
1164
+ return /* @__PURE__ */ _jsxs(Fragment, {
1165
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1166
+ style
1167
+ }))), child || /* @__PURE__ */ _jsxs("a", (0, import_extends9.default)({
1168
+ href: children == null ? void 0 : children.href,
1169
+ target: "_blank"
1170
+ }, reset, {
1171
+ className: "w-rjv-value",
1172
+ children: [/* @__PURE__ */ _jsx10(ValueQuote, {}), children == null ? void 0 : children.href, /* @__PURE__ */ _jsx10(ValueQuote, {})]
1173
+ }))]
1174
+ });
1175
+ };
1176
+ TypeUrl.displayName = "JVR.TypeUrl";
1177
+ var TypeDate = (_ref10) => {
1178
+ var {
1179
+ children,
1180
+ keyName
1181
+ } = _ref10;
1182
+ var {
1183
+ Date: CompData = {},
1184
+ displayDataTypes
1185
+ } = useTypesStore();
1186
+ var {
1187
+ as,
1188
+ render
1189
+ } = CompData, reset = (0, import_objectWithoutPropertiesLoose3.default)(CompData, _excluded102);
1190
+ var Comp = as || "span";
1191
+ var style = (0, import_extends9.default)({}, defalutStyle, CompData.style || {});
1192
+ var isRender = render && typeof render === "function";
1193
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1194
+ style
1195
+ }), {
1196
+ type: "type",
1197
+ value: children,
1198
+ keyName
1199
+ });
1200
+ var childStr = children instanceof Date ? children.toLocaleString() : children;
1201
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1202
+ children: childStr,
1203
+ className: "w-rjv-value"
1204
+ }), {
1205
+ type: "value",
1206
+ value: children,
1207
+ keyName
1208
+ });
1209
+ return /* @__PURE__ */ _jsxs(Fragment, {
1210
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1211
+ style
1212
+ }))), child || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1213
+ className: "w-rjv-value",
1214
+ children: childStr
1215
+ }))]
1216
+ });
1217
+ };
1218
+ TypeDate.displayName = "JVR.TypeDate";
1219
+ var TypeUndefined = (_ref11) => {
1220
+ var {
1221
+ children,
1222
+ keyName
1223
+ } = _ref11;
1224
+ var {
1225
+ Undefined: Undefined2 = {},
1226
+ displayDataTypes
1227
+ } = useTypesStore();
1228
+ var {
1229
+ as,
1230
+ render
1231
+ } = Undefined2, reset = (0, import_objectWithoutPropertiesLoose3.default)(Undefined2, _excluded11);
1232
+ var Comp = as || "span";
1233
+ var style = (0, import_extends9.default)({}, defalutStyle, Undefined2.style || {});
1234
+ var isRender = render && typeof render === "function";
1235
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1236
+ style
1237
+ }), {
1238
+ type: "type",
1239
+ value: children,
1240
+ keyName
1241
+ });
1242
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1243
+ children,
1244
+ className: "w-rjv-value"
1245
+ }), {
1246
+ type: "value",
1247
+ value: children,
1248
+ keyName
1249
+ });
1250
+ return /* @__PURE__ */ _jsxs(Fragment, {
1251
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1252
+ style
1253
+ }))), child]
1254
+ });
1255
+ };
1256
+ TypeUndefined.displayName = "JVR.TypeUndefined";
1257
+ var TypeNull = (_ref12) => {
1258
+ var {
1259
+ children,
1260
+ keyName
1261
+ } = _ref12;
1262
+ var {
1263
+ Null: Null2 = {},
1264
+ displayDataTypes
1265
+ } = useTypesStore();
1266
+ var {
1267
+ as,
1268
+ render
1269
+ } = Null2, reset = (0, import_objectWithoutPropertiesLoose3.default)(Null2, _excluded12);
1270
+ var Comp = as || "span";
1271
+ var style = (0, import_extends9.default)({}, defalutStyle, Null2.style || {});
1272
+ var isRender = render && typeof render === "function";
1273
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1274
+ style
1275
+ }), {
1276
+ type: "type",
1277
+ value: children,
1278
+ keyName
1279
+ });
1280
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1281
+ children,
1282
+ className: "w-rjv-value"
1283
+ }), {
1284
+ type: "value",
1285
+ value: children,
1286
+ keyName
1287
+ });
1288
+ return /* @__PURE__ */ _jsxs(Fragment, {
1289
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1290
+ style
1291
+ }))), child]
1292
+ });
1293
+ };
1294
+ TypeNull.displayName = "JVR.TypeNull";
1295
+ var TypeNan = (_ref13) => {
1296
+ var {
1297
+ children,
1298
+ keyName
1299
+ } = _ref13;
1300
+ var {
1301
+ Nan: Nan2 = {},
1302
+ displayDataTypes
1303
+ } = useTypesStore();
1304
+ var {
1305
+ as,
1306
+ render
1307
+ } = Nan2, reset = (0, import_objectWithoutPropertiesLoose3.default)(Nan2, _excluded13);
1308
+ var Comp = as || "span";
1309
+ var style = (0, import_extends9.default)({}, defalutStyle, Nan2.style || {});
1310
+ var isRender = render && typeof render === "function";
1311
+ var type = isRender && render((0, import_extends9.default)({}, reset, {
1312
+ style
1313
+ }), {
1314
+ type: "type",
1315
+ value: children,
1316
+ keyName
1317
+ });
1318
+ var child = isRender && render((0, import_extends9.default)({}, reset, {
1319
+ children: children == null ? void 0 : children.toString(),
1320
+ className: "w-rjv-value"
1321
+ }), {
1322
+ type: "value",
1323
+ value: children,
1324
+ keyName
1325
+ });
1326
+ return /* @__PURE__ */ _jsxs(Fragment, {
1327
+ children: [displayDataTypes && (type || /* @__PURE__ */ _jsx10(Comp, (0, import_extends9.default)({}, reset, {
1328
+ style
1329
+ }))), child]
1330
+ });
1331
+ };
1332
+ TypeNan.displayName = "JVR.TypeNan";
1333
+
1334
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/Value.js
1335
+ import { jsx as _jsx11 } from "react/jsx-runtime";
1336
+ var isFloat = (n) => Number(n) === n && n % 1 !== 0 || isNaN(n);
1337
+ var Value = (props) => {
1338
+ var {
1339
+ value,
1340
+ keyName
1341
+ } = props;
1342
+ var reset = {
1343
+ keyName
1344
+ };
1345
+ if (value instanceof URL) {
1346
+ return /* @__PURE__ */ _jsx11(TypeUrl, (0, import_extends10.default)({}, reset, {
1347
+ children: value
1348
+ }));
1349
+ }
1350
+ if (typeof value === "string") {
1351
+ return /* @__PURE__ */ _jsx11(TypeString, (0, import_extends10.default)({}, reset, {
1352
+ children: value
1353
+ }));
1354
+ }
1355
+ if (value === true) {
1356
+ return /* @__PURE__ */ _jsx11(TypeTrue, (0, import_extends10.default)({}, reset, {
1357
+ children: value
1358
+ }));
1359
+ }
1360
+ if (value === false) {
1361
+ return /* @__PURE__ */ _jsx11(TypeFalse, (0, import_extends10.default)({}, reset, {
1362
+ children: value
1363
+ }));
1364
+ }
1365
+ if (value === null) {
1366
+ return /* @__PURE__ */ _jsx11(TypeNull, (0, import_extends10.default)({}, reset, {
1367
+ children: value
1368
+ }));
1369
+ }
1370
+ if (value === void 0) {
1371
+ return /* @__PURE__ */ _jsx11(TypeUndefined, (0, import_extends10.default)({}, reset, {
1372
+ children: value
1373
+ }));
1374
+ }
1375
+ if (value instanceof Date) {
1376
+ return /* @__PURE__ */ _jsx11(TypeDate, (0, import_extends10.default)({}, reset, {
1377
+ children: value
1378
+ }));
1379
+ }
1380
+ if (typeof value === "number" && isNaN(value)) {
1381
+ return /* @__PURE__ */ _jsx11(TypeNan, (0, import_extends10.default)({}, reset, {
1382
+ children: value
1383
+ }));
1384
+ } else if (typeof value === "number" && isFloat(value)) {
1385
+ return /* @__PURE__ */ _jsx11(TypeFloat, (0, import_extends10.default)({}, reset, {
1386
+ children: value
1387
+ }));
1388
+ } else if (typeof value === "bigint") {
1389
+ return /* @__PURE__ */ _jsx11(TypeBigint, (0, import_extends10.default)({}, reset, {
1390
+ children: value
1391
+ }));
1392
+ } else if (typeof value === "number") {
1393
+ return /* @__PURE__ */ _jsx11(TypeInt, (0, import_extends10.default)({}, reset, {
1394
+ children: value
1395
+ }));
1396
+ }
1397
+ return null;
1398
+ };
1399
+ Value.displayName = "JVR.Value";
1400
+
1401
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/KeyName.js
1402
+ var import_extends12 = __toESM(require_extends());
1403
+ var import_objectWithoutPropertiesLoose4 = __toESM(require_objectWithoutPropertiesLoose());
1404
+
1405
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/utils/useRender.js
1406
+ var import_extends11 = __toESM(require_extends());
1407
+ import { useEffect as useEffect3 } from "react";
1408
+ function useSymbolsRender(currentProps, props, key) {
1409
+ var dispatch = useSymbolsDispatch();
1410
+ var cls = [currentProps.className, props.className].filter(Boolean).join(" ");
1411
+ var reset = (0, import_extends11.default)({}, currentProps, props, {
1412
+ className: cls,
1413
+ style: (0, import_extends11.default)({}, currentProps.style, props.style),
1414
+ children: props.children || currentProps.children
1415
+ });
1416
+ useEffect3(() => dispatch({
1417
+ [key]: reset
1418
+ }), [props]);
1419
+ }
1420
+ function useTypesRender(currentProps, props, key) {
1421
+ var dispatch = useTypesDispatch();
1422
+ var cls = [currentProps.className, props.className].filter(Boolean).join(" ");
1423
+ var reset = (0, import_extends11.default)({}, currentProps, props, {
1424
+ className: cls,
1425
+ style: (0, import_extends11.default)({}, currentProps.style, props.style),
1426
+ children: props.children || currentProps.children
1427
+ });
1428
+ useEffect3(() => dispatch({
1429
+ [key]: reset
1430
+ }), [props]);
1431
+ }
1432
+ function useSectionRender(currentProps, props, key) {
1433
+ var dispatch = useSectionDispatch();
1434
+ var cls = [currentProps.className, props.className].filter(Boolean).join(" ");
1435
+ var reset = (0, import_extends11.default)({}, currentProps, props, {
1436
+ className: cls,
1437
+ style: (0, import_extends11.default)({}, currentProps.style, props.style),
1438
+ children: props.children || currentProps.children
1439
+ });
1440
+ useEffect3(() => dispatch({
1441
+ [key]: reset
1442
+ }), [props]);
1443
+ }
1444
+
1445
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/KeyName.js
1446
+ import { jsx as _jsx12 } from "react/jsx-runtime";
1447
+ var _excluded14 = ["as", "render"];
1448
+ var KeyName = (props) => {
1449
+ var {
1450
+ KeyName: Comp = {}
1451
+ } = useSectionStore();
1452
+ useSectionRender(Comp, props, "KeyName");
1453
+ return null;
1454
+ };
1455
+ KeyName.displayName = "JVR.KeyName";
1456
+ var KeyNameComp = (props) => {
1457
+ var {
1458
+ children,
1459
+ value,
1460
+ parentValue,
1461
+ keyName,
1462
+ keys
1463
+ } = props;
1464
+ var isNumber = typeof children === "number";
1465
+ var style = {
1466
+ color: isNumber ? "var(--w-rjv-key-number, #268bd2)" : "var(--w-rjv-key-string, #002b36)"
1467
+ };
1468
+ var {
1469
+ KeyName: Comp = {}
1470
+ } = useSectionStore();
1471
+ var {
1472
+ as,
1473
+ render
1474
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose4.default)(Comp, _excluded14);
1475
+ reset.style = (0, import_extends12.default)({}, reset.style, style);
1476
+ var Elm = as || "span";
1477
+ var child = render && typeof render === "function" && render((0, import_extends12.default)({}, reset, {
1478
+ children
1479
+ }), {
1480
+ value,
1481
+ parentValue,
1482
+ keyName,
1483
+ keys: keys || (keyName ? [keyName] : [])
1484
+ });
1485
+ if (child)
1486
+ return child;
1487
+ return /* @__PURE__ */ _jsx12(Elm, (0, import_extends12.default)({}, reset, {
1488
+ children
1489
+ }));
1490
+ };
1491
+ KeyNameComp.displayName = "JVR.KeyNameComp";
1492
+
1493
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/Row.js
1494
+ var import_extends13 = __toESM(require_extends());
1495
+ var import_objectWithoutPropertiesLoose5 = __toESM(require_objectWithoutPropertiesLoose());
1496
+ import { jsx as _jsx13 } from "react/jsx-runtime";
1497
+ var _excluded15 = ["children", "value", "parentValue", "keyName", "keys"];
1498
+ var _excluded24 = ["as", "render", "children"];
1499
+ var Row = (props) => {
1500
+ var {
1501
+ Row: Comp = {}
1502
+ } = useSectionStore();
1503
+ useSectionRender(Comp, props, "Row");
1504
+ return null;
1505
+ };
1506
+ Row.displayName = "JVR.Row";
1507
+ var RowComp = (props) => {
1508
+ var {
1509
+ children,
1510
+ value,
1511
+ parentValue,
1512
+ keyName,
1513
+ keys
1514
+ } = props, other = (0, import_objectWithoutPropertiesLoose5.default)(props, _excluded15);
1515
+ var {
1516
+ Row: Comp = {}
1517
+ } = useSectionStore();
1518
+ var {
1519
+ as,
1520
+ render
1521
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose5.default)(Comp, _excluded24);
1522
+ var Elm = as || "div";
1523
+ var child = render && typeof render === "function" && render((0, import_extends13.default)({}, other, reset, {
1524
+ children
1525
+ }), {
1526
+ value,
1527
+ keyName,
1528
+ parentValue,
1529
+ keys
1530
+ });
1531
+ if (child)
1532
+ return child;
1533
+ return /* @__PURE__ */ _jsx13(Elm, (0, import_extends13.default)({}, other, reset, {
1534
+ children
1535
+ }));
1536
+ };
1537
+ RowComp.displayName = "JVR.RowComp";
1538
+
1539
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js
1540
+ import { useMemo, useRef, useEffect as useEffect4 } from "react";
1541
+ function usePrevious(value) {
1542
+ var ref = useRef();
1543
+ useEffect4(() => {
1544
+ ref.current = value;
1545
+ });
1546
+ return ref.current;
1547
+ }
1548
+ function useHighlight(_ref) {
1549
+ var {
1550
+ value,
1551
+ highlightUpdates,
1552
+ highlightContainer
1553
+ } = _ref;
1554
+ var prevValue = usePrevious(value);
1555
+ var isHighlight = useMemo(() => {
1556
+ if (!highlightUpdates || prevValue === void 0)
1557
+ return false;
1558
+ if (typeof value !== typeof prevValue) {
1559
+ return true;
1560
+ }
1561
+ if (typeof value === "number") {
1562
+ if (isNaN(value) && isNaN(prevValue))
1563
+ return false;
1564
+ return value !== prevValue;
1565
+ }
1566
+ if (Array.isArray(value) !== Array.isArray(prevValue)) {
1567
+ return true;
1568
+ }
1569
+ if (typeof value === "object" || typeof value === "function") {
1570
+ return false;
1571
+ }
1572
+ if (value !== prevValue) {
1573
+ return true;
1574
+ }
1575
+ }, [highlightUpdates, value]);
1576
+ useEffect4(() => {
1577
+ if (highlightContainer && highlightContainer.current && isHighlight && "animate" in highlightContainer.current) {
1578
+ highlightContainer.current.animate([{
1579
+ backgroundColor: "var(--w-rjv-update-color, #ebcb8b)"
1580
+ }, {
1581
+ backgroundColor: ""
1582
+ }], {
1583
+ duration: 1e3,
1584
+ easing: "ease-in"
1585
+ });
1586
+ }
1587
+ }, [isHighlight, value, highlightContainer]);
1588
+ }
1589
+
1590
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/Copied.js
1591
+ var import_extends14 = __toESM(require_extends());
1592
+ var import_objectWithoutPropertiesLoose6 = __toESM(require_objectWithoutPropertiesLoose());
1593
+ import { useState as useState2 } from "react";
1594
+ import { jsx as _jsx14 } from "react/jsx-runtime";
1595
+ var _excluded16 = ["keyName", "value", "parentValue", "expandKey", "keys"];
1596
+ var _excluded25 = ["as", "render"];
1597
+ var Copied = (props) => {
1598
+ var {
1599
+ keyName,
1600
+ value,
1601
+ parentValue,
1602
+ expandKey,
1603
+ keys
1604
+ } = props, other = (0, import_objectWithoutPropertiesLoose6.default)(props, _excluded16);
1605
+ var {
1606
+ onCopied,
1607
+ enableClipboard
1608
+ } = useStore();
1609
+ var showTools = useShowToolsStore();
1610
+ var isShowTools = showTools[expandKey];
1611
+ var [copied, setCopied] = useState2(false);
1612
+ var {
1613
+ Copied: Comp = {}
1614
+ } = useSectionStore();
1615
+ if (enableClipboard === false || !isShowTools)
1616
+ return null;
1617
+ var click = (event) => {
1618
+ event.stopPropagation();
1619
+ var copyText = "";
1620
+ if (typeof value === "number" && value === Infinity) {
1621
+ copyText = "Infinity";
1622
+ } else if (typeof value === "number" && isNaN(value)) {
1623
+ copyText = "NaN";
1624
+ } else if (typeof value === "bigint") {
1625
+ copyText = bigIntToString(value);
1626
+ } else if (value instanceof Date) {
1627
+ copyText = value.toLocaleString();
1628
+ } else {
1629
+ copyText = JSON.stringify(value, (_, v) => typeof v === "bigint" ? bigIntToString(v) : v, 2);
1630
+ }
1631
+ onCopied && onCopied(copyText, value);
1632
+ setCopied(true);
1633
+ navigator.clipboard.writeText(copyText).then(() => {
1634
+ var timer = setTimeout(() => {
1635
+ setCopied(false);
1636
+ clearTimeout(timer);
1637
+ }, 3e3);
1638
+ }).catch((error) => {
1639
+ });
1640
+ };
1641
+ var svgProps = {
1642
+ style: {
1643
+ display: "inline-flex"
1644
+ },
1645
+ fill: copied ? "var(--w-rjv-copied-success-color, #28a745)" : "var(--w-rjv-copied-color, currentColor)",
1646
+ onClick: click
1647
+ };
1648
+ var {
1649
+ render
1650
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose6.default)(Comp, _excluded25);
1651
+ var elmProps = (0, import_extends14.default)({}, reset, other, svgProps, {
1652
+ style: (0, import_extends14.default)({}, reset.style, other.style, svgProps.style)
1653
+ });
1654
+ var isRender = render && typeof render === "function";
1655
+ var child = isRender && render((0, import_extends14.default)({}, elmProps, {
1656
+ "data-copied": copied
1657
+ }), {
1658
+ value,
1659
+ keyName,
1660
+ keys,
1661
+ parentValue
1662
+ });
1663
+ if (child)
1664
+ return child;
1665
+ if (copied) {
1666
+ return /* @__PURE__ */ _jsx14("svg", (0, import_extends14.default)({
1667
+ viewBox: "0 0 32 36"
1668
+ }, elmProps, {
1669
+ children: /* @__PURE__ */ _jsx14("path", {
1670
+ d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
1671
+ })
1672
+ }));
1673
+ }
1674
+ return /* @__PURE__ */ _jsx14("svg", (0, import_extends14.default)({
1675
+ viewBox: "0 0 32 36"
1676
+ }, elmProps, {
1677
+ children: /* @__PURE__ */ _jsx14("path", {
1678
+ d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
1679
+ })
1680
+ }));
1681
+ };
1682
+ Copied.displayName = "JVR.Copied";
1683
+
1684
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js
1685
+ import { jsx as _jsx15, jsxs as _jsxs2 } from "react/jsx-runtime";
1686
+ var KeyValues = (props) => {
1687
+ var _expands$expandKey;
1688
+ var {
1689
+ value,
1690
+ expandKey = "",
1691
+ level,
1692
+ keys = []
1693
+ } = props;
1694
+ var expands = useExpandsStore();
1695
+ var {
1696
+ objectSortKeys,
1697
+ indentWidth,
1698
+ collapsed
1699
+ } = useStore();
1700
+ var isMyArray = Array.isArray(value);
1701
+ var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
1702
+ if (isExpanded) {
1703
+ return null;
1704
+ }
1705
+ var entries = isMyArray ? Object.entries(value).map((m) => [Number(m[0]), m[1]]) : Object.entries(value);
1706
+ if (objectSortKeys) {
1707
+ entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {
1708
+ var [a] = _ref;
1709
+ var [b] = _ref2;
1710
+ return typeof a === "string" && typeof b === "string" ? a.localeCompare(b) : 0;
1711
+ }) : entries.sort((_ref3, _ref4) => {
1712
+ var [a, valA] = _ref3;
1713
+ var [b, valB] = _ref4;
1714
+ return typeof a === "string" && typeof b === "string" ? objectSortKeys(a, b, valA, valB) : 0;
1715
+ });
1716
+ }
1717
+ var style = {
1718
+ borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
1719
+ paddingLeft: indentWidth,
1720
+ marginLeft: 6
1721
+ };
1722
+ return /* @__PURE__ */ _jsx15("div", {
1723
+ className: "w-rjv-wrap",
1724
+ style,
1725
+ children: entries.map((_ref5, idx) => {
1726
+ var [key, val] = _ref5;
1727
+ return /* @__PURE__ */ _jsx15(KeyValuesItem, {
1728
+ parentValue: value,
1729
+ keyName: key,
1730
+ keys: [...keys, key],
1731
+ value: val,
1732
+ level
1733
+ }, idx);
1734
+ })
1735
+ });
1736
+ };
1737
+ KeyValues.displayName = "JVR.KeyValues";
1738
+ var KayName = (props) => {
1739
+ var {
1740
+ keyName,
1741
+ parentValue,
1742
+ keys,
1743
+ value
1744
+ } = props;
1745
+ var {
1746
+ highlightUpdates
1747
+ } = useStore();
1748
+ var isNumber = typeof keyName === "number";
1749
+ var highlightContainer = useRef2(null);
1750
+ useHighlight({
1751
+ value,
1752
+ highlightUpdates,
1753
+ highlightContainer
1754
+ });
1755
+ return /* @__PURE__ */ _jsxs2(Fragment2, {
1756
+ children: [/* @__PURE__ */ _jsxs2("span", {
1757
+ ref: highlightContainer,
1758
+ children: [/* @__PURE__ */ _jsx15(Quote, {
1759
+ isNumber,
1760
+ "data-placement": "left"
1761
+ }), /* @__PURE__ */ _jsx15(KeyNameComp, {
1762
+ keyName,
1763
+ value,
1764
+ keys,
1765
+ parentValue,
1766
+ children: keyName
1767
+ }), /* @__PURE__ */ _jsx15(Quote, {
1768
+ isNumber,
1769
+ "data-placement": "right"
1770
+ })]
1771
+ }), /* @__PURE__ */ _jsx15(Colon, {})]
1772
+ });
1773
+ };
1774
+ KayName.displayName = "JVR.KayName";
1775
+ var KeyValuesItem = (props) => {
1776
+ var {
1777
+ keyName,
1778
+ value,
1779
+ parentValue,
1780
+ level = 0,
1781
+ keys = []
1782
+ } = props;
1783
+ var dispatch = useShowToolsDispatch();
1784
+ var subkeyid = useId();
1785
+ var isMyArray = Array.isArray(value);
1786
+ var isMySet = value instanceof Set;
1787
+ var isMyMap = value instanceof Map;
1788
+ var isDate = value instanceof Date;
1789
+ var isUrl = value instanceof URL;
1790
+ var isMyObject = value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl;
1791
+ var isNested = isMyObject || isMyArray || isMySet || isMyMap;
1792
+ if (isNested) {
1793
+ var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;
1794
+ return /* @__PURE__ */ _jsx15(Container, {
1795
+ keyName,
1796
+ value: myValue,
1797
+ parentValue,
1798
+ initialValue: value,
1799
+ keys,
1800
+ level: level + 1
1801
+ });
1802
+ }
1803
+ var reset = {
1804
+ onMouseEnter: () => dispatch({
1805
+ [subkeyid]: true
1806
+ }),
1807
+ onMouseLeave: () => dispatch({
1808
+ [subkeyid]: false
1809
+ })
1810
+ };
1811
+ return /* @__PURE__ */ _jsxs2(RowComp, (0, import_extends15.default)({
1812
+ className: "w-rjv-line",
1813
+ value,
1814
+ keyName,
1815
+ keys,
1816
+ parentValue
1817
+ }, reset, {
1818
+ children: [/* @__PURE__ */ _jsx15(KayName, {
1819
+ keyName,
1820
+ value,
1821
+ keys,
1822
+ parentValue
1823
+ }), /* @__PURE__ */ _jsx15(Value, {
1824
+ keyName,
1825
+ value
1826
+ }), /* @__PURE__ */ _jsx15(Copied, {
1827
+ keyName,
1828
+ value,
1829
+ keys,
1830
+ parentValue,
1831
+ expandKey: subkeyid
1832
+ })]
1833
+ }));
1834
+ };
1835
+ KeyValuesItem.displayName = "JVR.KeyValuesItem";
1836
+
1837
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js
1838
+ var import_extends16 = __toESM(require_extends());
1839
+ var import_objectWithoutPropertiesLoose7 = __toESM(require_objectWithoutPropertiesLoose());
1840
+ import { jsx as _jsx16 } from "react/jsx-runtime";
1841
+ var _excluded17 = ["value", "keyName"];
1842
+ var _excluded26 = ["as", "render"];
1843
+ var CountInfoExtra = (props) => {
1844
+ var {
1845
+ CountInfoExtra: Comp = {}
1846
+ } = useSectionStore();
1847
+ useSectionRender(Comp, props, "CountInfoExtra");
1848
+ return null;
1849
+ };
1850
+ CountInfoExtra.displayName = "JVR.CountInfoExtra";
1851
+ var CountInfoExtraComps = (props) => {
1852
+ var {
1853
+ value = {},
1854
+ keyName
1855
+ } = props, other = (0, import_objectWithoutPropertiesLoose7.default)(props, _excluded17);
1856
+ var {
1857
+ CountInfoExtra: Comp = {}
1858
+ } = useSectionStore();
1859
+ var {
1860
+ as,
1861
+ render
1862
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose7.default)(Comp, _excluded26);
1863
+ if (!render && !reset.children)
1864
+ return null;
1865
+ var Elm = as || "span";
1866
+ var isRender = render && typeof render === "function";
1867
+ var elmProps = (0, import_extends16.default)({}, reset, other);
1868
+ var child = isRender && render(elmProps, {
1869
+ value,
1870
+ keyName
1871
+ });
1872
+ if (child)
1873
+ return child;
1874
+ return /* @__PURE__ */ _jsx16(Elm, (0, import_extends16.default)({}, elmProps));
1875
+ };
1876
+ CountInfoExtraComps.displayName = "JVR.CountInfoExtraComps";
1877
+
1878
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/CountInfo.js
1879
+ var import_extends17 = __toESM(require_extends());
1880
+ var import_objectWithoutPropertiesLoose8 = __toESM(require_objectWithoutPropertiesLoose());
1881
+ import { jsx as _jsx17 } from "react/jsx-runtime";
1882
+ var _excluded18 = ["value", "keyName"];
1883
+ var _excluded27 = ["as", "render"];
1884
+ var CountInfo = (props) => {
1885
+ var {
1886
+ CountInfo: Comp = {}
1887
+ } = useSectionStore();
1888
+ useSectionRender(Comp, props, "CountInfo");
1889
+ return null;
1890
+ };
1891
+ CountInfo.displayName = "JVR.CountInfo";
1892
+ var CountInfoComp = (props) => {
1893
+ var {
1894
+ value = {},
1895
+ keyName
1896
+ } = props, other = (0, import_objectWithoutPropertiesLoose8.default)(props, _excluded18);
1897
+ var {
1898
+ displayObjectSize
1899
+ } = useStore();
1900
+ var {
1901
+ CountInfo: Comp = {}
1902
+ } = useSectionStore();
1903
+ if (!displayObjectSize)
1904
+ return null;
1905
+ var {
1906
+ as,
1907
+ render
1908
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose8.default)(Comp, _excluded27);
1909
+ var Elm = as || "span";
1910
+ reset.style = (0, import_extends17.default)({}, reset.style, props.style);
1911
+ var len = Object.keys(value).length;
1912
+ if (!reset.children) {
1913
+ reset.children = len + " item" + (len === 1 ? "" : "s");
1914
+ }
1915
+ var elmProps = (0, import_extends17.default)({}, reset, other);
1916
+ var isRender = render && typeof render === "function";
1917
+ var child = isRender && render((0, import_extends17.default)({}, elmProps, {
1918
+ "data-length": len
1919
+ }), {
1920
+ value,
1921
+ keyName
1922
+ });
1923
+ if (child)
1924
+ return child;
1925
+ return /* @__PURE__ */ _jsx17(Elm, (0, import_extends17.default)({}, elmProps));
1926
+ };
1927
+ CountInfoComp.displayName = "JVR.CountInfoComp";
1928
+
1929
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js
1930
+ var import_extends18 = __toESM(require_extends());
1931
+ var import_objectWithoutPropertiesLoose9 = __toESM(require_objectWithoutPropertiesLoose());
1932
+ import { jsx as _jsx18 } from "react/jsx-runtime";
1933
+ var _excluded19 = ["as", "render"];
1934
+ var Ellipsis = (props) => {
1935
+ var {
1936
+ Ellipsis: Comp = {}
1937
+ } = useSectionStore();
1938
+ useSectionRender(Comp, props, "Ellipsis");
1939
+ return null;
1940
+ };
1941
+ Ellipsis.displayName = "JVR.Ellipsis";
1942
+ var EllipsisComp = (_ref) => {
1943
+ var {
1944
+ isExpanded,
1945
+ value,
1946
+ keyName
1947
+ } = _ref;
1948
+ var {
1949
+ Ellipsis: Comp = {}
1950
+ } = useSectionStore();
1951
+ var {
1952
+ as,
1953
+ render
1954
+ } = Comp, reset = (0, import_objectWithoutPropertiesLoose9.default)(Comp, _excluded19);
1955
+ var Elm = as || "span";
1956
+ var child = render && typeof render === "function" && render((0, import_extends18.default)({}, reset, {
1957
+ "data-expanded": isExpanded
1958
+ }), {
1959
+ value,
1960
+ keyName
1961
+ });
1962
+ if (child)
1963
+ return child;
1964
+ if (!isExpanded || typeof value === "object" && Object.keys(value).length == 0)
1965
+ return null;
1966
+ return /* @__PURE__ */ _jsx18(Elm, (0, import_extends18.default)({}, reset));
1967
+ };
1968
+ EllipsisComp.displayName = "JVR.EllipsisComp";
1969
+
1970
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js
1971
+ import { jsx as _jsx19, jsxs as _jsxs3 } from "react/jsx-runtime";
1972
+ var NestedOpen = (props) => {
1973
+ var _expands$expandKey;
1974
+ var {
1975
+ keyName,
1976
+ expandKey,
1977
+ keys,
1978
+ initialValue,
1979
+ value,
1980
+ parentValue,
1981
+ level
1982
+ } = props;
1983
+ var expands = useExpandsStore();
1984
+ var dispatchExpands = useExpandsDispatch();
1985
+ var {
1986
+ onExpand,
1987
+ collapsed
1988
+ } = useStore();
1989
+ var isArray = Array.isArray(value);
1990
+ var isMySet = value instanceof Set;
1991
+ var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
1992
+ var isObject = typeof value === "object";
1993
+ var click = () => {
1994
+ var opt = {
1995
+ expand: !isExpanded,
1996
+ value,
1997
+ keyid: expandKey,
1998
+ keyName
1999
+ };
2000
+ onExpand && onExpand(opt);
2001
+ dispatchExpands({
2002
+ [expandKey]: opt.expand
2003
+ });
2004
+ };
2005
+ var style = {
2006
+ display: "inline-flex",
2007
+ alignItems: "center"
2008
+ };
2009
+ var arrowStyle = {
2010
+ transform: "rotate(" + (!isExpanded ? "0" : "-90") + "deg)",
2011
+ transition: "all 0.3s"
2012
+ };
2013
+ var len = Object.keys(value).length;
2014
+ var showArrow = len !== 0 && (isArray || isMySet || isObject);
2015
+ var reset = {
2016
+ style
2017
+ };
2018
+ if (showArrow) {
2019
+ reset.onClick = click;
2020
+ }
2021
+ return /* @__PURE__ */ _jsxs3("span", (0, import_extends19.default)({}, reset, {
2022
+ children: [showArrow && /* @__PURE__ */ _jsx19(Arrow, {
2023
+ style: arrowStyle,
2024
+ expandKey
2025
+ }), (keyName || typeof keyName === "number") && /* @__PURE__ */ _jsx19(KayName, {
2026
+ keyName
2027
+ }), /* @__PURE__ */ _jsx19(SetComp, {
2028
+ value: initialValue,
2029
+ keyName
2030
+ }), /* @__PURE__ */ _jsx19(MapComp, {
2031
+ value: initialValue,
2032
+ keyName
2033
+ }), /* @__PURE__ */ _jsx19(BracketsOpen, {
2034
+ isBrackets: isArray || isMySet
2035
+ }), /* @__PURE__ */ _jsx19(EllipsisComp, {
2036
+ keyName,
2037
+ value,
2038
+ isExpanded
2039
+ }), /* @__PURE__ */ _jsx19(BracketsClose, {
2040
+ isVisiable: isExpanded || !showArrow,
2041
+ isBrackets: isArray || isMySet
2042
+ }), /* @__PURE__ */ _jsx19(CountInfoComp, {
2043
+ value,
2044
+ keyName
2045
+ }), /* @__PURE__ */ _jsx19(CountInfoExtraComps, {
2046
+ value,
2047
+ keyName
2048
+ }), /* @__PURE__ */ _jsx19(Copied, {
2049
+ keyName,
2050
+ value,
2051
+ expandKey,
2052
+ parentValue,
2053
+ keys
2054
+ })]
2055
+ }));
2056
+ };
2057
+ NestedOpen.displayName = "JVR.NestedOpen";
2058
+
2059
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/Container.js
2060
+ import { jsx as _jsx20, jsxs as _jsxs4 } from "react/jsx-runtime";
2061
+ var _excluded20 = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"];
2062
+ var Container = /* @__PURE__ */ forwardRef((props, ref) => {
2063
+ var {
2064
+ className = "",
2065
+ parentValue,
2066
+ level = 1,
2067
+ value,
2068
+ initialValue,
2069
+ keys,
2070
+ keyName
2071
+ } = props, elmProps = (0, import_objectWithoutPropertiesLoose10.default)(props, _excluded20);
2072
+ var dispatch = useShowToolsDispatch();
2073
+ var subkeyid = useId2();
2074
+ var defaultClassNames = [className, "w-rjv-inner"].filter(Boolean).join(" ");
2075
+ var reset = {
2076
+ onMouseEnter: () => dispatch({
2077
+ [subkeyid]: true
2078
+ }),
2079
+ onMouseLeave: () => dispatch({
2080
+ [subkeyid]: false
2081
+ })
2082
+ };
2083
+ return /* @__PURE__ */ _jsxs4("div", (0, import_extends20.default)({
2084
+ className: defaultClassNames,
2085
+ ref
2086
+ }, elmProps, reset, {
2087
+ children: [/* @__PURE__ */ _jsx20(NestedOpen, {
2088
+ expandKey: subkeyid,
2089
+ value,
2090
+ level,
2091
+ keys,
2092
+ parentValue,
2093
+ keyName,
2094
+ initialValue
2095
+ }), /* @__PURE__ */ _jsx20(KeyValues, {
2096
+ expandKey: subkeyid,
2097
+ value,
2098
+ level,
2099
+ keys,
2100
+ parentValue,
2101
+ keyName
2102
+ }), /* @__PURE__ */ _jsx20(NestedClose, {
2103
+ expandKey: subkeyid,
2104
+ value,
2105
+ level
2106
+ })]
2107
+ }));
2108
+ });
2109
+ Container.displayName = "JVR.Container";
2110
+
2111
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.js
2112
+ var BraceLeft = (props) => {
2113
+ var {
2114
+ BraceLeft: Comp = {}
2115
+ } = useSymbolsStore();
2116
+ useSymbolsRender(Comp, props, "BraceLeft");
2117
+ return null;
2118
+ };
2119
+ BraceLeft.displayName = "JVR.BraceLeft";
2120
+
2121
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.js
2122
+ var BraceRight = (props) => {
2123
+ var {
2124
+ BraceRight: Comp = {}
2125
+ } = useSymbolsStore();
2126
+ useSymbolsRender(Comp, props, "BraceRight");
2127
+ return null;
2128
+ };
2129
+ BraceRight.displayName = "JVR.BraceRight";
2130
+
2131
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.js
2132
+ var BracketsLeft = (props) => {
2133
+ var {
2134
+ BracketsLeft: Comp = {}
2135
+ } = useSymbolsStore();
2136
+ useSymbolsRender(Comp, props, "BracketsLeft");
2137
+ return null;
2138
+ };
2139
+ BracketsLeft.displayName = "JVR.BracketsLeft";
2140
+
2141
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.js
2142
+ var BracketsRight = (props) => {
2143
+ var {
2144
+ BracketsRight: Comp = {}
2145
+ } = useSymbolsStore();
2146
+ useSymbolsRender(Comp, props, "BracketsRight");
2147
+ return null;
2148
+ };
2149
+ BracketsRight.displayName = "JVR.BracketsRight";
2150
+
2151
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/Arrow.js
2152
+ var Arrow2 = (props) => {
2153
+ var {
2154
+ Arrow: Comp = {}
2155
+ } = useSymbolsStore();
2156
+ useSymbolsRender(Comp, props, "Arrow");
2157
+ return null;
2158
+ };
2159
+ Arrow2.displayName = "JVR.Arrow";
2160
+
2161
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/Colon.js
2162
+ var Colon2 = (props) => {
2163
+ var {
2164
+ Colon: Comp = {}
2165
+ } = useSymbolsStore();
2166
+ useSymbolsRender(Comp, props, "Colon");
2167
+ return null;
2168
+ };
2169
+ Colon2.displayName = "JVR.Colon";
2170
+
2171
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/Quote.js
2172
+ var Quote2 = (props) => {
2173
+ var {
2174
+ Quote: Comp = {}
2175
+ } = useSymbolsStore();
2176
+ useSymbolsRender(Comp, props, "Quote");
2177
+ return null;
2178
+ };
2179
+ Quote2.displayName = "JVR.Quote";
2180
+
2181
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.js
2182
+ var ValueQuote2 = (props) => {
2183
+ var {
2184
+ ValueQuote: Comp = {}
2185
+ } = useSymbolsStore();
2186
+ useSymbolsRender(Comp, props, "ValueQuote");
2187
+ return null;
2188
+ };
2189
+ ValueQuote2.displayName = "JVR.ValueQuote";
2190
+
2191
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Bigint.js
2192
+ var Bigint = (props) => {
2193
+ var {
2194
+ Bigint: Comp = {}
2195
+ } = useTypesStore();
2196
+ useTypesRender(Comp, props, "Bigint");
2197
+ return null;
2198
+ };
2199
+ Bigint.displayName = "JVR.Bigint";
2200
+
2201
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Date.js
2202
+ var Date2 = (props) => {
2203
+ var {
2204
+ Date: Comp = {}
2205
+ } = useTypesStore();
2206
+ useTypesRender(Comp, props, "Date");
2207
+ return null;
2208
+ };
2209
+ Date2.displayName = "JVR.Date";
2210
+
2211
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/False.js
2212
+ var False = (props) => {
2213
+ var {
2214
+ False: Comp = {}
2215
+ } = useTypesStore();
2216
+ useTypesRender(Comp, props, "False");
2217
+ return null;
2218
+ };
2219
+ False.displayName = "JVR.False";
2220
+
2221
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Float.js
2222
+ var Float = (props) => {
2223
+ var {
2224
+ Float: Comp = {}
2225
+ } = useTypesStore();
2226
+ useTypesRender(Comp, props, "Float");
2227
+ return null;
2228
+ };
2229
+ Float.displayName = "JVR.Float";
2230
+
2231
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Int.js
2232
+ var Int = (props) => {
2233
+ var {
2234
+ Int: Comp = {}
2235
+ } = useTypesStore();
2236
+ useTypesRender(Comp, props, "Int");
2237
+ return null;
2238
+ };
2239
+ Int.displayName = "JVR.Int";
2240
+
2241
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Map.js
2242
+ var Map2 = (props) => {
2243
+ var {
2244
+ Map: Comp = {}
2245
+ } = useTypesStore();
2246
+ useTypesRender(Comp, props, "Map");
2247
+ return null;
2248
+ };
2249
+ Map2.displayName = "JVR.Map";
2250
+
2251
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Nan.js
2252
+ var Nan = (props) => {
2253
+ var {
2254
+ Nan: Comp = {}
2255
+ } = useTypesStore();
2256
+ useTypesRender(Comp, props, "Nan");
2257
+ return null;
2258
+ };
2259
+ Nan.displayName = "JVR.Nan";
2260
+
2261
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Null.js
2262
+ var Null = (props) => {
2263
+ var {
2264
+ Null: Comp = {}
2265
+ } = useTypesStore();
2266
+ useTypesRender(Comp, props, "Null");
2267
+ return null;
2268
+ };
2269
+ Null.displayName = "JVR.Null";
2270
+
2271
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Set.js
2272
+ var Set2 = (props) => {
2273
+ var {
2274
+ Set: Comp = {}
2275
+ } = useTypesStore();
2276
+ useTypesRender(Comp, props, "Set");
2277
+ return null;
2278
+ };
2279
+ Set2.displayName = "JVR.Set";
2280
+
2281
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/String.js
2282
+ var StringText = (props) => {
2283
+ var {
2284
+ Str: Comp = {}
2285
+ } = useTypesStore();
2286
+ useTypesRender(Comp, props, "Str");
2287
+ return null;
2288
+ };
2289
+ StringText.displayName = "JVR.StringText";
2290
+
2291
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/True.js
2292
+ var True = (props) => {
2293
+ var {
2294
+ True: Comp = {}
2295
+ } = useTypesStore();
2296
+ useTypesRender(Comp, props, "True");
2297
+ return null;
2298
+ };
2299
+ True.displayName = "JVR.True";
2300
+
2301
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Undefined.js
2302
+ var Undefined = (props) => {
2303
+ var {
2304
+ Undefined: Comp = {}
2305
+ } = useTypesStore();
2306
+ useTypesRender(Comp, props, "Undefined");
2307
+ return null;
2308
+ };
2309
+ Undefined.displayName = "JVR.Undefined";
2310
+
2311
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/types/Url.js
2312
+ var Url = (props) => {
2313
+ var {
2314
+ Url: Comp = {}
2315
+ } = useTypesStore();
2316
+ useTypesRender(Comp, props, "Url");
2317
+ return null;
2318
+ };
2319
+ Url.displayName = "JVR.Url";
2320
+
2321
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/section/Copied.js
2322
+ var Copied2 = (props) => {
2323
+ var {
2324
+ Copied: Comp = {}
2325
+ } = useSectionStore();
2326
+ useSectionRender(Comp, props, "Copied");
2327
+ return null;
2328
+ };
2329
+ Copied2.displayName = "JVR.Copied";
2330
+
2331
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/index.js
2332
+ import { jsx as _jsx21, jsxs as _jsxs5 } from "react/jsx-runtime";
2333
+ var _excluded21 = ["className", "style", "value", "children", "collapsed", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied"];
2334
+ var JsonView = /* @__PURE__ */ forwardRef2((props, ref) => {
2335
+ var {
2336
+ className = "",
2337
+ style,
2338
+ value,
2339
+ children,
2340
+ collapsed,
2341
+ indentWidth = 15,
2342
+ displayObjectSize = true,
2343
+ shortenTextAfterLength = 30,
2344
+ highlightUpdates = true,
2345
+ enableClipboard = true,
2346
+ displayDataTypes = true,
2347
+ objectSortKeys = false,
2348
+ onExpand,
2349
+ onCopied
2350
+ } = props, elmProps = (0, import_objectWithoutPropertiesLoose11.default)(props, _excluded21);
2351
+ var defaultStyle = (0, import_extends21.default)({
2352
+ lineHeight: 1.4,
2353
+ fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
2354
+ color: "var(--w-rjv-color, #002b36)",
2355
+ backgroundColor: "var(--w-rjv-background-color, #00000000)",
2356
+ fontSize: 13
2357
+ }, style);
2358
+ var cls = ["w-json-view-container", "w-rjv", className].filter(Boolean).join(" ");
2359
+ return /* @__PURE__ */ _jsxs5(Provider, {
2360
+ initialState: {
2361
+ value,
2362
+ objectSortKeys,
2363
+ indentWidth,
2364
+ displayObjectSize,
2365
+ collapsed,
2366
+ enableClipboard,
2367
+ shortenTextAfterLength,
2368
+ highlightUpdates,
2369
+ onCopied,
2370
+ onExpand
2371
+ },
2372
+ initialTypes: {
2373
+ displayDataTypes
2374
+ },
2375
+ children: [/* @__PURE__ */ _jsx21(Container, (0, import_extends21.default)({
2376
+ value
2377
+ }, elmProps, {
2378
+ ref,
2379
+ className: cls,
2380
+ style: defaultStyle
2381
+ })), children]
2382
+ });
2383
+ });
2384
+ JsonView.Bigint = Bigint;
2385
+ JsonView.Date = Date2;
2386
+ JsonView.False = False;
2387
+ JsonView.Float = Float;
2388
+ JsonView.Int = Int;
2389
+ JsonView.Map = Map2;
2390
+ JsonView.Nan = Nan;
2391
+ JsonView.Null = Null;
2392
+ JsonView.Set = Set2;
2393
+ JsonView.String = StringText;
2394
+ JsonView.True = True;
2395
+ JsonView.Undefined = Undefined;
2396
+ JsonView.Url = Url;
2397
+ JsonView.ValueQuote = ValueQuote2;
2398
+ JsonView.Arrow = Arrow2;
2399
+ JsonView.Colon = Colon2;
2400
+ JsonView.Quote = Quote2;
2401
+ JsonView.Ellipsis = Ellipsis;
2402
+ JsonView.BraceLeft = BraceLeft;
2403
+ JsonView.BraceRight = BraceRight;
2404
+ JsonView.BracketsLeft = BracketsLeft;
2405
+ JsonView.BracketsRight = BracketsRight;
2406
+ JsonView.Copied = Copied2;
2407
+ JsonView.CountInfo = CountInfo;
2408
+ JsonView.CountInfoExtra = CountInfoExtra;
2409
+ JsonView.KeyName = KeyName;
2410
+ JsonView.Row = Row;
2411
+ JsonView.displayName = "JVR.JsonView";
2412
+ var esm_default = JsonView;
2413
+
2414
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/theme/light.js
2415
+ var lightTheme = {
2416
+ "--w-rjv-font-family": "monospace",
2417
+ "--w-rjv-color": "#002b36",
2418
+ "--w-rjv-key-string": "#002b36",
2419
+ "--w-rjv-background-color": "#ffffff",
2420
+ "--w-rjv-line-color": "#ebebeb",
2421
+ "--w-rjv-arrow-color": "var(--w-rjv-color)",
2422
+ "--w-rjv-edit-color": "var(--w-rjv-color)",
2423
+ "--w-rjv-info-color": "#0000004d",
2424
+ "--w-rjv-update-color": "#ebcb8b",
2425
+ "--w-rjv-copied-color": "#002b36",
2426
+ "--w-rjv-copied-success-color": "#28a745",
2427
+ "--w-rjv-curlybraces-color": "#236a7c",
2428
+ "--w-rjv-colon-color": "#002b36",
2429
+ "--w-rjv-brackets-color": "#236a7c",
2430
+ "--w-rjv-quotes-color": "var(--w-rjv-key-string)",
2431
+ "--w-rjv-quotes-string-color": "var(--w-rjv-type-string-color)",
2432
+ "--w-rjv-type-string-color": "#cb4b16",
2433
+ "--w-rjv-type-int-color": "#268bd2",
2434
+ "--w-rjv-type-float-color": "#859900",
2435
+ "--w-rjv-type-bigint-color": "#268bd2",
2436
+ "--w-rjv-type-boolean-color": "#2aa198",
2437
+ "--w-rjv-type-date-color": "#586e75",
2438
+ "--w-rjv-type-url-color": "#0969da",
2439
+ "--w-rjv-type-null-color": "#d33682",
2440
+ "--w-rjv-type-nan-color": "#859900",
2441
+ "--w-rjv-type-undefined-color": "#586e75"
2442
+ };
2443
+
2444
+ // ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.24_@babel+runtime@7.24.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@uiw/react-json-view/esm/theme/vscode.js
2445
+ var vscodeTheme = {
2446
+ "--w-rjv-font-family": "monospace",
2447
+ "--w-rjv-color": "#9cdcfe",
2448
+ "--w-rjv-key-string": "#9cdcfe",
2449
+ "--w-rjv-background-color": "#1e1e1e",
2450
+ "--w-rjv-line-color": "#36334280",
2451
+ "--w-rjv-arrow-color": "#838383",
2452
+ "--w-rjv-edit-color": "var(--w-rjv-color)",
2453
+ "--w-rjv-info-color": "#9c9c9c7a",
2454
+ "--w-rjv-update-color": "#9cdcfe",
2455
+ "--w-rjv-copied-color": "#9cdcfe",
2456
+ "--w-rjv-copied-success-color": "#28a745",
2457
+ "--w-rjv-curlybraces-color": "#d4d4d4",
2458
+ "--w-rjv-colon-color": "#d4d4d4",
2459
+ "--w-rjv-brackets-color": "#d4d4d4",
2460
+ "--w-rjv-quotes-color": "var(--w-rjv-key-string)",
2461
+ "--w-rjv-quotes-string-color": "var(--w-rjv-type-string-color)",
2462
+ "--w-rjv-type-string-color": "#ce9178",
2463
+ "--w-rjv-type-int-color": "#b5cea8",
2464
+ "--w-rjv-type-float-color": "#b5cea8",
2465
+ "--w-rjv-type-bigint-color": "#b5cea8",
2466
+ "--w-rjv-type-boolean-color": "#569cd6",
2467
+ "--w-rjv-type-date-color": "#b5cea8",
2468
+ "--w-rjv-type-url-color": "#3b89cf",
2469
+ "--w-rjv-type-null-color": "#569cd6",
2470
+ "--w-rjv-type-nan-color": "#859900",
2471
+ "--w-rjv-type-undefined-color": "#569cd6"
2472
+ };
2473
+
2474
+ // src/Json/Json.tsx
2475
+ import cn from "classnames";
2476
+ import { Fragment as Fragment3, jsx, jsxs } from "react/jsx-runtime";
2477
+ var getValue = (value) => {
2478
+ if (typeof value === "string") {
2479
+ return JSON.parse(value);
2480
+ }
2481
+ if (typeof value === "object") {
2482
+ return value;
2483
+ }
2484
+ throw new Error(`${typeof value} can not be visualized`);
2485
+ };
2486
+ var Json = ({ className = null, collapsed = false, value }) => {
2487
+ const isDarkMode = document.body.classList.contains("dark");
2488
+ let content = null;
2489
+ let error = null;
2490
+ const [showDetails, setShowDetails] = useState3(false);
2491
+ try {
2492
+ content = /* @__PURE__ */ jsx(
2493
+ esm_default,
2494
+ {
2495
+ className: "pr-5",
2496
+ collapsed,
2497
+ displayDataTypes: false,
2498
+ style: {
2499
+ ...isDarkMode ? vscodeTheme : lightTheme,
2500
+ backgroundColor: "unset"
2501
+ },
2502
+ value: getValue(value),
2503
+ children: /* @__PURE__ */ jsx(
2504
+ esm_default.Copied,
2505
+ {
2506
+ render: ({
2507
+ // @ts-expect-error this should be fine
2508
+ "data-copied": copied,
2509
+ style,
2510
+ ...elmProps
2511
+ }) => {
2512
+ const elmClasses = cn(
2513
+ elmProps.className,
2514
+ "absolute -right-4 -top-[2px] h-4 w-4 !fill-transparent pl-1",
2515
+ { "text-success": copied }
2516
+ );
2517
+ return /* @__PURE__ */ jsx("span", { className: "relative !ml-0 !h-[1em] !w-0", style, children: copied ? /* @__PURE__ */ jsx(
2518
+ HiOutlineClipboardCheck,
2519
+ {
2520
+ ...elmProps,
2521
+ className: elmClasses
2522
+ }
2523
+ ) : (
2524
+ // eslint-disable-next-line react/jsx-props-no-spreading
2525
+ /* @__PURE__ */ jsx(HiOutlineClipboard, { ...elmProps, className: elmClasses })
2526
+ ) });
2527
+ }
2528
+ }
2529
+ )
2530
+ }
2531
+ );
2532
+ } catch (err) {
2533
+ error = /* @__PURE__ */ jsxs(
2534
+ "div",
2535
+ {
2536
+ className: "mb-4 flex flex-col items-center rounded-lg border border-danger bg-danger-50 p-4 text-sm text-danger",
2537
+ role: "alert",
2538
+ children: [
2539
+ /* @__PURE__ */ jsxs("div", { className: "flex w-full justify-between gap-6", children: [
2540
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
2541
+ /* @__PURE__ */ jsx(FaTimesCircle, { className: "mr-2" }),
2542
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: "Failed to parse JSON data" })
2543
+ ] }),
2544
+ /* @__PURE__ */ jsx(
2545
+ Button_default,
2546
+ {
2547
+ color: "danger",
2548
+ size: "sm",
2549
+ variant: "light",
2550
+ onClick: () => setShowDetails(!showDetails),
2551
+ children: showDetails ? /* @__PURE__ */ jsxs(Fragment3, { children: [
2552
+ /* @__PURE__ */ jsx(FaChevronUp, {}),
2553
+ " Hide Details"
2554
+ ] }) : /* @__PURE__ */ jsxs(Fragment3, { children: [
2555
+ /* @__PURE__ */ jsx(FaChevronDown, {}),
2556
+ " Show Details"
2557
+ ] })
2558
+ }
2559
+ )
2560
+ ] }),
2561
+ showDetails && /* @__PURE__ */ jsxs("div", { className: "mt-4 w-full text-left", children: [
2562
+ /* @__PURE__ */ jsxs("div", { children: [
2563
+ /* @__PURE__ */ jsx("strong", { children: "Error:" }),
2564
+ /* @__PURE__ */ jsxs("pre", { children: [
2565
+ err?.name,
2566
+ ": ",
2567
+ err?.message
2568
+ ] })
2569
+ ] }),
2570
+ /* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
2571
+ /* @__PURE__ */ jsx("strong", { children: "Data:" }),
2572
+ /* @__PURE__ */ jsx("pre", { children: typeof value !== "string" ? JSON.stringify(value, null, 2) : value })
2573
+ ] })
2574
+ ] })
2575
+ ]
2576
+ }
2577
+ );
2578
+ }
2579
+ return /* @__PURE__ */ jsx("div", { className: cn(className), children: error || content });
2580
+ };
2581
+ var Json_default = Json;
2582
+
2583
+ // src/Json/index.ts
2584
+ var Json_default2 = Json_default;
2585
+
2586
+ export {
2587
+ Json_default,
2588
+ Json_default2
2589
+ };
2590
+ //# sourceMappingURL=chunk-RBKIZCPJ.js.map