@har-analyzer/components 0.0.15 → 0.0.17

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.
Files changed (59) hide show
  1. package/README.md +59 -28
  2. package/dist/chunks/collapsible-key-value-list.js +24 -0
  3. package/dist/chunks/collapsible-section.js +22 -0
  4. package/dist/chunks/content-viewer.js +3056 -0
  5. package/dist/chunks/context.js +5 -0
  6. package/dist/chunks/headers-viewer.js +32 -0
  7. package/dist/chunks/index.js +2265 -174
  8. package/dist/chunks/index2.js +49 -0
  9. package/dist/chunks/payload-viewer.js +15 -0
  10. package/dist/chunks/provider.js +11 -0
  11. package/dist/chunks/response-viewer.js +10 -0
  12. package/dist/chunks/vertical-gap.js +1 -1
  13. package/dist/components/collapsible-section.d.ts +2 -1
  14. package/dist/components/enhanced-board/constants/i18n.d.ts +11 -6
  15. package/dist/components/enhanced-board/index.d.ts +7 -9
  16. package/dist/components/enhanced-table.d.ts +14 -2
  17. package/dist/components/horizontal-padding.d.ts +2 -0
  18. package/dist/components/inline-copy-to-clipboard.d.ts +6 -0
  19. package/dist/components/lazy-load.d.ts +2 -0
  20. package/dist/context/user-preferences/index.d.ts +6 -0
  21. package/dist/context/user-preferences/provider.d.ts +9 -0
  22. package/dist/context/user-preferences-store/context.d.ts +5 -0
  23. package/dist/context/user-preferences-store/hooks.d.ts +1 -0
  24. package/dist/context/user-preferences-store/provider.d.ts +5 -0
  25. package/dist/features/har-analyzer/components/app-layout.d.ts +7 -0
  26. package/dist/features/har-analyzer/components/preferences/index.d.ts +1 -0
  27. package/dist/features/har-analyzer/components/top-navigation.d.ts +8 -0
  28. package/dist/features/har-analyzer/context/preferences.d.ts +2 -0
  29. package/dist/features/har-analyzer-preferences-store/index.d.ts +2 -0
  30. package/dist/features/har-entries-viewer/index.d.ts +1 -1
  31. package/dist/features/list-har-entries/components/compare-mode-switcher.d.ts +1 -0
  32. package/dist/features/list-har-entries/components/content-type-filter.d.ts +1 -0
  33. package/dist/features/list-har-entries/components/errors-filter.d.ts +1 -0
  34. package/dist/features/list-har-entries/components/har-entries-table.d.ts +8 -0
  35. package/dist/features/list-har-entries/context/preferences.d.ts +5 -0
  36. package/dist/features/list-har-entries/index.d.ts +3 -7
  37. package/dist/har-analyzer-preferences-store.js +4 -0
  38. package/dist/har-analyzer.js +94 -81
  39. package/dist/har-entries-viewer.js +167 -7
  40. package/dist/index.d.ts +7 -2
  41. package/dist/index.js +12 -13
  42. package/dist/list-har-entries.js +3 -2126
  43. package/dist/utils/har.d.ts +1 -1
  44. package/dist/view-har-entry.js +5 -3128
  45. package/package.json +1 -1
  46. package/dist/chunks/json.js +0 -10
  47. package/dist/components/enhanced-top-navigation.d.ts +0 -7
  48. package/dist/components/simple-app-layout.d.ts +0 -6
  49. package/dist/components/simple-app-preferences/index.d.ts +0 -1
  50. package/dist/features/har-analyzer-preferences/index.d.ts +0 -7
  51. package/dist/features/har-entries-viewer/components/har-entries-filters/components/content-type-filter.d.ts +0 -7
  52. package/dist/features/har-entries-viewer/components/har-entries-filters/components/errors-filter.d.ts +0 -6
  53. package/dist/features/har-entries-viewer/components/har-entries-filters/index.d.ts +0 -1
  54. package/dist/features/har-entries-viewer/hooks/preferences.d.ts +0 -2
  55. package/dist/har-analyzer-preferences.js +0 -25
  56. package/dist/hooks/app-preferences.d.ts +0 -2
  57. package/dist/hooks/table-preferences.d.ts +0 -12
  58. /package/dist/{components/simple-app-preferences → features/har-analyzer/components/preferences/components}/content-width-switcher.d.ts +0 -0
  59. /package/dist/{components/simple-app-preferences → features/har-analyzer/components/preferences/components}/theme-switcher.d.ts +0 -0
@@ -0,0 +1,3056 @@
1
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
2
+ import Lt from "@cloudscape-design/code-view/code-view";
3
+ import At from "@cloudscape-design/components/copy-to-clipboard";
4
+ import { colorTextStatusSuccess as Ie, colorTextLinkDefault as ye, colorTextCounter as Vt, colorTextBodySecondary as le, colorTextStatusWarning as ve, colorTextStatusError as Ut, colorTextBodyDefault as ze, colorBorderDividerDefault as Dt, colorBackgroundContainerContent as Jt, fontFamilyBase as _t } from "@cloudscape-design/design-tokens";
5
+ import { useReducer as de, createContext as Z, useContext as G, useEffect as oe, Fragment as Q, useState as Xe, useMemo as Mt, useRef as Se, forwardRef as er } from "react";
6
+ import { g as $t, a as Pt } from "./content-type.js";
7
+ var ke = {}, me = {}, Ge;
8
+ function Ot() {
9
+ if (Ge) return me;
10
+ Ge = 1, me.byteLength = a, me.toByteArray = N, me.fromByteArray = B;
11
+ for (var l = [], n = [], s = typeof Uint8Array < "u" ? Uint8Array : Array, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = 0, h = c.length; u < h; ++u)
12
+ l[u] = c[u], n[c.charCodeAt(u)] = u;
13
+ n[45] = 62, n[95] = 63;
14
+ function y(x) {
15
+ var E = x.length;
16
+ if (E % 4 > 0)
17
+ throw new Error("Invalid string. Length must be a multiple of 4");
18
+ var C = x.indexOf("=");
19
+ C === -1 && (C = E);
20
+ var R = C === E ? 0 : 4 - C % 4;
21
+ return [C, R];
22
+ }
23
+ function a(x) {
24
+ var E = y(x), C = E[0], R = E[1];
25
+ return (C + R) * 3 / 4 - R;
26
+ }
27
+ function d(x, E, C) {
28
+ return (E + C) * 3 / 4 - C;
29
+ }
30
+ function N(x) {
31
+ var E, C = y(x), R = C[0], k = C[1], I = new s(d(x, R, k)), b = 0, U = k > 0 ? R - 4 : R, j;
32
+ for (j = 0; j < U; j += 4)
33
+ E = n[x.charCodeAt(j)] << 18 | n[x.charCodeAt(j + 1)] << 12 | n[x.charCodeAt(j + 2)] << 6 | n[x.charCodeAt(j + 3)], I[b++] = E >> 16 & 255, I[b++] = E >> 8 & 255, I[b++] = E & 255;
34
+ return k === 2 && (E = n[x.charCodeAt(j)] << 2 | n[x.charCodeAt(j + 1)] >> 4, I[b++] = E & 255), k === 1 && (E = n[x.charCodeAt(j)] << 10 | n[x.charCodeAt(j + 1)] << 4 | n[x.charCodeAt(j + 2)] >> 2, I[b++] = E >> 8 & 255, I[b++] = E & 255), I;
35
+ }
36
+ function m(x) {
37
+ return l[x >> 18 & 63] + l[x >> 12 & 63] + l[x >> 6 & 63] + l[x & 63];
38
+ }
39
+ function w(x, E, C) {
40
+ for (var R, k = [], I = E; I < C; I += 3)
41
+ R = (x[I] << 16 & 16711680) + (x[I + 1] << 8 & 65280) + (x[I + 2] & 255), k.push(m(R));
42
+ return k.join("");
43
+ }
44
+ function B(x) {
45
+ for (var E, C = x.length, R = C % 3, k = [], I = 16383, b = 0, U = C - R; b < U; b += I)
46
+ k.push(w(x, b, b + I > U ? U : b + I));
47
+ return R === 1 ? (E = x[C - 1], k.push(
48
+ l[E >> 2] + l[E << 4 & 63] + "=="
49
+ )) : R === 2 && (E = (x[C - 2] << 8) + x[C - 1], k.push(
50
+ l[E >> 10] + l[E >> 4 & 63] + l[E << 2 & 63] + "="
51
+ )), k.join("");
52
+ }
53
+ return me;
54
+ }
55
+ var Ne = {};
56
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
57
+ var He;
58
+ function Kt() {
59
+ return He || (He = 1, Ne.read = function(l, n, s, c, u) {
60
+ var h, y, a = u * 8 - c - 1, d = (1 << a) - 1, N = d >> 1, m = -7, w = s ? u - 1 : 0, B = s ? -1 : 1, x = l[n + w];
61
+ for (w += B, h = x & (1 << -m) - 1, x >>= -m, m += a; m > 0; h = h * 256 + l[n + w], w += B, m -= 8)
62
+ ;
63
+ for (y = h & (1 << -m) - 1, h >>= -m, m += c; m > 0; y = y * 256 + l[n + w], w += B, m -= 8)
64
+ ;
65
+ if (h === 0)
66
+ h = 1 - N;
67
+ else {
68
+ if (h === d)
69
+ return y ? NaN : (x ? -1 : 1) * (1 / 0);
70
+ y = y + Math.pow(2, c), h = h - N;
71
+ }
72
+ return (x ? -1 : 1) * y * Math.pow(2, h - c);
73
+ }, Ne.write = function(l, n, s, c, u, h) {
74
+ var y, a, d, N = h * 8 - u - 1, m = (1 << N) - 1, w = m >> 1, B = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, x = c ? 0 : h - 1, E = c ? 1 : -1, C = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
75
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (a = isNaN(n) ? 1 : 0, y = m) : (y = Math.floor(Math.log(n) / Math.LN2), n * (d = Math.pow(2, -y)) < 1 && (y--, d *= 2), y + w >= 1 ? n += B / d : n += B * Math.pow(2, 1 - w), n * d >= 2 && (y++, d /= 2), y + w >= m ? (a = 0, y = m) : y + w >= 1 ? (a = (n * d - 1) * Math.pow(2, u), y = y + w) : (a = n * Math.pow(2, w - 1) * Math.pow(2, u), y = 0)); u >= 8; l[s + x] = a & 255, x += E, a /= 256, u -= 8)
76
+ ;
77
+ for (y = y << u | a, N += u; N > 0; l[s + x] = y & 255, x += E, y /= 256, N -= 8)
78
+ ;
79
+ l[s + x - E] |= C * 128;
80
+ }), Ne;
81
+ }
82
+ /*!
83
+ * The buffer module from node.js, for the browser.
84
+ *
85
+ * @author Feross Aboukhadijeh <https://feross.org>
86
+ * @license MIT
87
+ */
88
+ var Ye;
89
+ function Qt() {
90
+ return Ye || (Ye = 1, function(l) {
91
+ const n = Ot(), s = Kt(), c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
92
+ l.Buffer = a, l.SlowBuffer = I, l.INSPECT_MAX_BYTES = 50;
93
+ const u = 2147483647;
94
+ l.kMaxLength = u, a.TYPED_ARRAY_SUPPORT = h(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
95
+ "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
96
+ );
97
+ function h() {
98
+ try {
99
+ const t = new Uint8Array(1), e = { foo: function() {
100
+ return 42;
101
+ } };
102
+ return Object.setPrototypeOf(e, Uint8Array.prototype), Object.setPrototypeOf(t, e), t.foo() === 42;
103
+ } catch {
104
+ return !1;
105
+ }
106
+ }
107
+ Object.defineProperty(a.prototype, "parent", {
108
+ enumerable: !0,
109
+ get: function() {
110
+ if (a.isBuffer(this))
111
+ return this.buffer;
112
+ }
113
+ }), Object.defineProperty(a.prototype, "offset", {
114
+ enumerable: !0,
115
+ get: function() {
116
+ if (a.isBuffer(this))
117
+ return this.byteOffset;
118
+ }
119
+ });
120
+ function y(t) {
121
+ if (t > u)
122
+ throw new RangeError('The value "' + t + '" is invalid for option "size"');
123
+ const e = new Uint8Array(t);
124
+ return Object.setPrototypeOf(e, a.prototype), e;
125
+ }
126
+ function a(t, e, r) {
127
+ if (typeof t == "number") {
128
+ if (typeof e == "string")
129
+ throw new TypeError(
130
+ 'The "string" argument must be of type string. Received type number'
131
+ );
132
+ return w(t);
133
+ }
134
+ return d(t, e, r);
135
+ }
136
+ a.poolSize = 8192;
137
+ function d(t, e, r) {
138
+ if (typeof t == "string")
139
+ return B(t, e);
140
+ if (ArrayBuffer.isView(t))
141
+ return E(t);
142
+ if (t == null)
143
+ throw new TypeError(
144
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
145
+ );
146
+ if (ee(t, ArrayBuffer) || t && ee(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ee(t, SharedArrayBuffer) || t && ee(t.buffer, SharedArrayBuffer)))
147
+ return C(t, e, r);
148
+ if (typeof t == "number")
149
+ throw new TypeError(
150
+ 'The "value" argument must not be of type number. Received type number'
151
+ );
152
+ const i = t.valueOf && t.valueOf();
153
+ if (i != null && i !== t)
154
+ return a.from(i, e, r);
155
+ const o = R(t);
156
+ if (o) return o;
157
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof t[Symbol.toPrimitive] == "function")
158
+ return a.from(t[Symbol.toPrimitive]("string"), e, r);
159
+ throw new TypeError(
160
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
161
+ );
162
+ }
163
+ a.from = function(t, e, r) {
164
+ return d(t, e, r);
165
+ }, Object.setPrototypeOf(a.prototype, Uint8Array.prototype), Object.setPrototypeOf(a, Uint8Array);
166
+ function N(t) {
167
+ if (typeof t != "number")
168
+ throw new TypeError('"size" argument must be of type number');
169
+ if (t < 0)
170
+ throw new RangeError('The value "' + t + '" is invalid for option "size"');
171
+ }
172
+ function m(t, e, r) {
173
+ return N(t), t <= 0 ? y(t) : e !== void 0 ? typeof r == "string" ? y(t).fill(e, r) : y(t).fill(e) : y(t);
174
+ }
175
+ a.alloc = function(t, e, r) {
176
+ return m(t, e, r);
177
+ };
178
+ function w(t) {
179
+ return N(t), y(t < 0 ? 0 : k(t) | 0);
180
+ }
181
+ a.allocUnsafe = function(t) {
182
+ return w(t);
183
+ }, a.allocUnsafeSlow = function(t) {
184
+ return w(t);
185
+ };
186
+ function B(t, e) {
187
+ if ((typeof e != "string" || e === "") && (e = "utf8"), !a.isEncoding(e))
188
+ throw new TypeError("Unknown encoding: " + e);
189
+ const r = b(t, e) | 0;
190
+ let i = y(r);
191
+ const o = i.write(t, e);
192
+ return o !== r && (i = i.slice(0, o)), i;
193
+ }
194
+ function x(t) {
195
+ const e = t.length < 0 ? 0 : k(t.length) | 0, r = y(e);
196
+ for (let i = 0; i < e; i += 1)
197
+ r[i] = t[i] & 255;
198
+ return r;
199
+ }
200
+ function E(t) {
201
+ if (ee(t, Uint8Array)) {
202
+ const e = new Uint8Array(t);
203
+ return C(e.buffer, e.byteOffset, e.byteLength);
204
+ }
205
+ return x(t);
206
+ }
207
+ function C(t, e, r) {
208
+ if (e < 0 || t.byteLength < e)
209
+ throw new RangeError('"offset" is outside of buffer bounds');
210
+ if (t.byteLength < e + (r || 0))
211
+ throw new RangeError('"length" is outside of buffer bounds');
212
+ let i;
213
+ return e === void 0 && r === void 0 ? i = new Uint8Array(t) : r === void 0 ? i = new Uint8Array(t, e) : i = new Uint8Array(t, e, r), Object.setPrototypeOf(i, a.prototype), i;
214
+ }
215
+ function R(t) {
216
+ if (a.isBuffer(t)) {
217
+ const e = k(t.length) | 0, r = y(e);
218
+ return r.length === 0 || t.copy(r, 0, 0, e), r;
219
+ }
220
+ if (t.length !== void 0)
221
+ return typeof t.length != "number" || Re(t.length) ? y(0) : x(t);
222
+ if (t.type === "Buffer" && Array.isArray(t.data))
223
+ return x(t.data);
224
+ }
225
+ function k(t) {
226
+ if (t >= u)
227
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u.toString(16) + " bytes");
228
+ return t | 0;
229
+ }
230
+ function I(t) {
231
+ return +t != t && (t = 0), a.alloc(+t);
232
+ }
233
+ a.isBuffer = function(e) {
234
+ return e != null && e._isBuffer === !0 && e !== a.prototype;
235
+ }, a.compare = function(e, r) {
236
+ if (ee(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), ee(r, Uint8Array) && (r = a.from(r, r.offset, r.byteLength)), !a.isBuffer(e) || !a.isBuffer(r))
237
+ throw new TypeError(
238
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
239
+ );
240
+ if (e === r) return 0;
241
+ let i = e.length, o = r.length;
242
+ for (let p = 0, v = Math.min(i, o); p < v; ++p)
243
+ if (e[p] !== r[p]) {
244
+ i = e[p], o = r[p];
245
+ break;
246
+ }
247
+ return i < o ? -1 : o < i ? 1 : 0;
248
+ }, a.isEncoding = function(e) {
249
+ switch (String(e).toLowerCase()) {
250
+ case "hex":
251
+ case "utf8":
252
+ case "utf-8":
253
+ case "ascii":
254
+ case "latin1":
255
+ case "binary":
256
+ case "base64":
257
+ case "ucs2":
258
+ case "ucs-2":
259
+ case "utf16le":
260
+ case "utf-16le":
261
+ return !0;
262
+ default:
263
+ return !1;
264
+ }
265
+ }, a.concat = function(e, r) {
266
+ if (!Array.isArray(e))
267
+ throw new TypeError('"list" argument must be an Array of Buffers');
268
+ if (e.length === 0)
269
+ return a.alloc(0);
270
+ let i;
271
+ if (r === void 0)
272
+ for (r = 0, i = 0; i < e.length; ++i)
273
+ r += e[i].length;
274
+ const o = a.allocUnsafe(r);
275
+ let p = 0;
276
+ for (i = 0; i < e.length; ++i) {
277
+ let v = e[i];
278
+ if (ee(v, Uint8Array))
279
+ p + v.length > o.length ? (a.isBuffer(v) || (v = a.from(v)), v.copy(o, p)) : Uint8Array.prototype.set.call(
280
+ o,
281
+ v,
282
+ p
283
+ );
284
+ else if (a.isBuffer(v))
285
+ v.copy(o, p);
286
+ else
287
+ throw new TypeError('"list" argument must be an Array of Buffers');
288
+ p += v.length;
289
+ }
290
+ return o;
291
+ };
292
+ function b(t, e) {
293
+ if (a.isBuffer(t))
294
+ return t.length;
295
+ if (ArrayBuffer.isView(t) || ee(t, ArrayBuffer))
296
+ return t.byteLength;
297
+ if (typeof t != "string")
298
+ throw new TypeError(
299
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t
300
+ );
301
+ const r = t.length, i = arguments.length > 2 && arguments[2] === !0;
302
+ if (!i && r === 0) return 0;
303
+ let o = !1;
304
+ for (; ; )
305
+ switch (e) {
306
+ case "ascii":
307
+ case "latin1":
308
+ case "binary":
309
+ return r;
310
+ case "utf8":
311
+ case "utf-8":
312
+ return Ce(t).length;
313
+ case "ucs2":
314
+ case "ucs-2":
315
+ case "utf16le":
316
+ case "utf-16le":
317
+ return r * 2;
318
+ case "hex":
319
+ return r >>> 1;
320
+ case "base64":
321
+ return Ze(t).length;
322
+ default:
323
+ if (o)
324
+ return i ? -1 : Ce(t).length;
325
+ e = ("" + e).toLowerCase(), o = !0;
326
+ }
327
+ }
328
+ a.byteLength = b;
329
+ function U(t, e, r) {
330
+ let i = !1;
331
+ if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
332
+ return "";
333
+ for (t || (t = "utf8"); ; )
334
+ switch (t) {
335
+ case "hex":
336
+ return Ct(this, e, r);
337
+ case "utf8":
338
+ case "utf-8":
339
+ return xe(this, e, r);
340
+ case "ascii":
341
+ return Bt(this, e, r);
342
+ case "latin1":
343
+ case "binary":
344
+ return Et(this, e, r);
345
+ case "base64":
346
+ return ae(this, e, r);
347
+ case "ucs2":
348
+ case "ucs-2":
349
+ case "utf16le":
350
+ case "utf-16le":
351
+ return Rt(this, e, r);
352
+ default:
353
+ if (i) throw new TypeError("Unknown encoding: " + t);
354
+ t = (t + "").toLowerCase(), i = !0;
355
+ }
356
+ }
357
+ a.prototype._isBuffer = !0;
358
+ function j(t, e, r) {
359
+ const i = t[e];
360
+ t[e] = t[r], t[r] = i;
361
+ }
362
+ a.prototype.swap16 = function() {
363
+ const e = this.length;
364
+ if (e % 2 !== 0)
365
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
366
+ for (let r = 0; r < e; r += 2)
367
+ j(this, r, r + 1);
368
+ return this;
369
+ }, a.prototype.swap32 = function() {
370
+ const e = this.length;
371
+ if (e % 4 !== 0)
372
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
373
+ for (let r = 0; r < e; r += 4)
374
+ j(this, r, r + 3), j(this, r + 1, r + 2);
375
+ return this;
376
+ }, a.prototype.swap64 = function() {
377
+ const e = this.length;
378
+ if (e % 8 !== 0)
379
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
380
+ for (let r = 0; r < e; r += 8)
381
+ j(this, r, r + 7), j(this, r + 1, r + 6), j(this, r + 2, r + 5), j(this, r + 3, r + 4);
382
+ return this;
383
+ }, a.prototype.toString = function() {
384
+ const e = this.length;
385
+ return e === 0 ? "" : arguments.length === 0 ? xe(this, 0, e) : U.apply(this, arguments);
386
+ }, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(e) {
387
+ if (!a.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
388
+ return this === e ? !0 : a.compare(this, e) === 0;
389
+ }, a.prototype.inspect = function() {
390
+ let e = "";
391
+ const r = l.INSPECT_MAX_BYTES;
392
+ return e = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(), this.length > r && (e += " ... "), "<Buffer " + e + ">";
393
+ }, c && (a.prototype[c] = a.prototype.inspect), a.prototype.compare = function(e, r, i, o, p) {
394
+ if (ee(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), !a.isBuffer(e))
395
+ throw new TypeError(
396
+ 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
397
+ );
398
+ if (r === void 0 && (r = 0), i === void 0 && (i = e ? e.length : 0), o === void 0 && (o = 0), p === void 0 && (p = this.length), r < 0 || i > e.length || o < 0 || p > this.length)
399
+ throw new RangeError("out of range index");
400
+ if (o >= p && r >= i)
401
+ return 0;
402
+ if (o >= p)
403
+ return -1;
404
+ if (r >= i)
405
+ return 1;
406
+ if (r >>>= 0, i >>>= 0, o >>>= 0, p >>>= 0, this === e) return 0;
407
+ let v = p - o, S = i - r;
408
+ const D = Math.min(v, S), V = this.slice(o, p), J = e.slice(r, i);
409
+ for (let L = 0; L < D; ++L)
410
+ if (V[L] !== J[L]) {
411
+ v = V[L], S = J[L];
412
+ break;
413
+ }
414
+ return v < S ? -1 : S < v ? 1 : 0;
415
+ };
416
+ function $(t, e, r, i, o) {
417
+ if (t.length === 0) return -1;
418
+ if (typeof r == "string" ? (i = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, Re(r) && (r = o ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) {
419
+ if (o) return -1;
420
+ r = t.length - 1;
421
+ } else if (r < 0)
422
+ if (o) r = 0;
423
+ else return -1;
424
+ if (typeof e == "string" && (e = a.from(e, i)), a.isBuffer(e))
425
+ return e.length === 0 ? -1 : W(t, e, r, i, o);
426
+ if (typeof e == "number")
427
+ return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? o ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : W(t, [e], r, i, o);
428
+ throw new TypeError("val must be string, number or Buffer");
429
+ }
430
+ function W(t, e, r, i, o) {
431
+ let p = 1, v = t.length, S = e.length;
432
+ if (i !== void 0 && (i = String(i).toLowerCase(), i === "ucs2" || i === "ucs-2" || i === "utf16le" || i === "utf-16le")) {
433
+ if (t.length < 2 || e.length < 2)
434
+ return -1;
435
+ p = 2, v /= 2, S /= 2, r /= 2;
436
+ }
437
+ function D(J, L) {
438
+ return p === 1 ? J[L] : J.readUInt16BE(L * p);
439
+ }
440
+ let V;
441
+ if (o) {
442
+ let J = -1;
443
+ for (V = r; V < v; V++)
444
+ if (D(t, V) === D(e, J === -1 ? 0 : V - J)) {
445
+ if (J === -1 && (J = V), V - J + 1 === S) return J * p;
446
+ } else
447
+ J !== -1 && (V -= V - J), J = -1;
448
+ } else
449
+ for (r + S > v && (r = v - S), V = r; V >= 0; V--) {
450
+ let J = !0;
451
+ for (let L = 0; L < S; L++)
452
+ if (D(t, V + L) !== D(e, L)) {
453
+ J = !1;
454
+ break;
455
+ }
456
+ if (J) return V;
457
+ }
458
+ return -1;
459
+ }
460
+ a.prototype.includes = function(e, r, i) {
461
+ return this.indexOf(e, r, i) !== -1;
462
+ }, a.prototype.indexOf = function(e, r, i) {
463
+ return $(this, e, r, i, !0);
464
+ }, a.prototype.lastIndexOf = function(e, r, i) {
465
+ return $(this, e, r, i, !1);
466
+ };
467
+ function re(t, e, r, i) {
468
+ r = Number(r) || 0;
469
+ const o = t.length - r;
470
+ i ? (i = Number(i), i > o && (i = o)) : i = o;
471
+ const p = e.length;
472
+ i > p / 2 && (i = p / 2);
473
+ let v;
474
+ for (v = 0; v < i; ++v) {
475
+ const S = parseInt(e.substr(v * 2, 2), 16);
476
+ if (Re(S)) return v;
477
+ t[r + v] = S;
478
+ }
479
+ return v;
480
+ }
481
+ function P(t, e, r, i) {
482
+ return ge(Ce(e, t.length - r), t, r, i);
483
+ }
484
+ function Y(t, e, r, i) {
485
+ return ge(jt(e), t, r, i);
486
+ }
487
+ function ue(t, e, r, i) {
488
+ return ge(Ze(e), t, r, i);
489
+ }
490
+ function ie(t, e, r, i) {
491
+ return ge(St(e, t.length - r), t, r, i);
492
+ }
493
+ a.prototype.write = function(e, r, i, o) {
494
+ if (r === void 0)
495
+ o = "utf8", i = this.length, r = 0;
496
+ else if (i === void 0 && typeof r == "string")
497
+ o = r, i = this.length, r = 0;
498
+ else if (isFinite(r))
499
+ r = r >>> 0, isFinite(i) ? (i = i >>> 0, o === void 0 && (o = "utf8")) : (o = i, i = void 0);
500
+ else
501
+ throw new Error(
502
+ "Buffer.write(string, encoding, offset[, length]) is no longer supported"
503
+ );
504
+ const p = this.length - r;
505
+ if ((i === void 0 || i > p) && (i = p), e.length > 0 && (i < 0 || r < 0) || r > this.length)
506
+ throw new RangeError("Attempt to write outside buffer bounds");
507
+ o || (o = "utf8");
508
+ let v = !1;
509
+ for (; ; )
510
+ switch (o) {
511
+ case "hex":
512
+ return re(this, e, r, i);
513
+ case "utf8":
514
+ case "utf-8":
515
+ return P(this, e, r, i);
516
+ case "ascii":
517
+ case "latin1":
518
+ case "binary":
519
+ return Y(this, e, r, i);
520
+ case "base64":
521
+ return ue(this, e, r, i);
522
+ case "ucs2":
523
+ case "ucs-2":
524
+ case "utf16le":
525
+ case "utf-16le":
526
+ return ie(this, e, r, i);
527
+ default:
528
+ if (v) throw new TypeError("Unknown encoding: " + o);
529
+ o = ("" + o).toLowerCase(), v = !0;
530
+ }
531
+ }, a.prototype.toJSON = function() {
532
+ return {
533
+ type: "Buffer",
534
+ data: Array.prototype.slice.call(this._arr || this, 0)
535
+ };
536
+ };
537
+ function ae(t, e, r) {
538
+ return e === 0 && r === t.length ? n.fromByteArray(t) : n.fromByteArray(t.slice(e, r));
539
+ }
540
+ function xe(t, e, r) {
541
+ r = Math.min(t.length, r);
542
+ const i = [];
543
+ let o = e;
544
+ for (; o < r; ) {
545
+ const p = t[o];
546
+ let v = null, S = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1;
547
+ if (o + S <= r) {
548
+ let D, V, J, L;
549
+ switch (S) {
550
+ case 1:
551
+ p < 128 && (v = p);
552
+ break;
553
+ case 2:
554
+ D = t[o + 1], (D & 192) === 128 && (L = (p & 31) << 6 | D & 63, L > 127 && (v = L));
555
+ break;
556
+ case 3:
557
+ D = t[o + 1], V = t[o + 2], (D & 192) === 128 && (V & 192) === 128 && (L = (p & 15) << 12 | (D & 63) << 6 | V & 63, L > 2047 && (L < 55296 || L > 57343) && (v = L));
558
+ break;
559
+ case 4:
560
+ D = t[o + 1], V = t[o + 2], J = t[o + 3], (D & 192) === 128 && (V & 192) === 128 && (J & 192) === 128 && (L = (p & 15) << 18 | (D & 63) << 12 | (V & 63) << 6 | J & 63, L > 65535 && L < 1114112 && (v = L));
561
+ }
562
+ }
563
+ v === null ? (v = 65533, S = 1) : v > 65535 && (v -= 65536, i.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), i.push(v), o += S;
564
+ }
565
+ return Nt(i);
566
+ }
567
+ const X = 4096;
568
+ function Nt(t) {
569
+ const e = t.length;
570
+ if (e <= X)
571
+ return String.fromCharCode.apply(String, t);
572
+ let r = "", i = 0;
573
+ for (; i < e; )
574
+ r += String.fromCharCode.apply(
575
+ String,
576
+ t.slice(i, i += X)
577
+ );
578
+ return r;
579
+ }
580
+ function Bt(t, e, r) {
581
+ let i = "";
582
+ r = Math.min(t.length, r);
583
+ for (let o = e; o < r; ++o)
584
+ i += String.fromCharCode(t[o] & 127);
585
+ return i;
586
+ }
587
+ function Et(t, e, r) {
588
+ let i = "";
589
+ r = Math.min(t.length, r);
590
+ for (let o = e; o < r; ++o)
591
+ i += String.fromCharCode(t[o]);
592
+ return i;
593
+ }
594
+ function Ct(t, e, r) {
595
+ const i = t.length;
596
+ (!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
597
+ let o = "";
598
+ for (let p = e; p < r; ++p)
599
+ o += Tt[t[p]];
600
+ return o;
601
+ }
602
+ function Rt(t, e, r) {
603
+ const i = t.slice(e, r);
604
+ let o = "";
605
+ for (let p = 0; p < i.length - 1; p += 2)
606
+ o += String.fromCharCode(i[p] + i[p + 1] * 256);
607
+ return o;
608
+ }
609
+ a.prototype.slice = function(e, r) {
610
+ const i = this.length;
611
+ e = ~~e, r = r === void 0 ? i : ~~r, e < 0 ? (e += i, e < 0 && (e = 0)) : e > i && (e = i), r < 0 ? (r += i, r < 0 && (r = 0)) : r > i && (r = i), r < e && (r = e);
612
+ const o = this.subarray(e, r);
613
+ return Object.setPrototypeOf(o, a.prototype), o;
614
+ };
615
+ function M(t, e, r) {
616
+ if (t % 1 !== 0 || t < 0) throw new RangeError("offset is not uint");
617
+ if (t + e > r) throw new RangeError("Trying to access beyond buffer length");
618
+ }
619
+ a.prototype.readUintLE = a.prototype.readUIntLE = function(e, r, i) {
620
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
621
+ let o = this[e], p = 1, v = 0;
622
+ for (; ++v < r && (p *= 256); )
623
+ o += this[e + v] * p;
624
+ return o;
625
+ }, a.prototype.readUintBE = a.prototype.readUIntBE = function(e, r, i) {
626
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
627
+ let o = this[e + --r], p = 1;
628
+ for (; r > 0 && (p *= 256); )
629
+ o += this[e + --r] * p;
630
+ return o;
631
+ }, a.prototype.readUint8 = a.prototype.readUInt8 = function(e, r) {
632
+ return e = e >>> 0, r || M(e, 1, this.length), this[e];
633
+ }, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(e, r) {
634
+ return e = e >>> 0, r || M(e, 2, this.length), this[e] | this[e + 1] << 8;
635
+ }, a.prototype.readUint16BE = a.prototype.readUInt16BE = function(e, r) {
636
+ return e = e >>> 0, r || M(e, 2, this.length), this[e] << 8 | this[e + 1];
637
+ }, a.prototype.readUint32LE = a.prototype.readUInt32LE = function(e, r) {
638
+ return e = e >>> 0, r || M(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
639
+ }, a.prototype.readUint32BE = a.prototype.readUInt32BE = function(e, r) {
640
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
641
+ }, a.prototype.readBigUInt64LE = te(function(e) {
642
+ e = e >>> 0, pe(e, "offset");
643
+ const r = this[e], i = this[e + 7];
644
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
645
+ const o = r + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, p = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + i * 2 ** 24;
646
+ return BigInt(o) + (BigInt(p) << BigInt(32));
647
+ }), a.prototype.readBigUInt64BE = te(function(e) {
648
+ e = e >>> 0, pe(e, "offset");
649
+ const r = this[e], i = this[e + 7];
650
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
651
+ const o = r * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], p = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i;
652
+ return (BigInt(o) << BigInt(32)) + BigInt(p);
653
+ }), a.prototype.readIntLE = function(e, r, i) {
654
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
655
+ let o = this[e], p = 1, v = 0;
656
+ for (; ++v < r && (p *= 256); )
657
+ o += this[e + v] * p;
658
+ return p *= 128, o >= p && (o -= Math.pow(2, 8 * r)), o;
659
+ }, a.prototype.readIntBE = function(e, r, i) {
660
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
661
+ let o = r, p = 1, v = this[e + --o];
662
+ for (; o > 0 && (p *= 256); )
663
+ v += this[e + --o] * p;
664
+ return p *= 128, v >= p && (v -= Math.pow(2, 8 * r)), v;
665
+ }, a.prototype.readInt8 = function(e, r) {
666
+ return e = e >>> 0, r || M(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
667
+ }, a.prototype.readInt16LE = function(e, r) {
668
+ e = e >>> 0, r || M(e, 2, this.length);
669
+ const i = this[e] | this[e + 1] << 8;
670
+ return i & 32768 ? i | 4294901760 : i;
671
+ }, a.prototype.readInt16BE = function(e, r) {
672
+ e = e >>> 0, r || M(e, 2, this.length);
673
+ const i = this[e + 1] | this[e] << 8;
674
+ return i & 32768 ? i | 4294901760 : i;
675
+ }, a.prototype.readInt32LE = function(e, r) {
676
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
677
+ }, a.prototype.readInt32BE = function(e, r) {
678
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
679
+ }, a.prototype.readBigInt64LE = te(function(e) {
680
+ e = e >>> 0, pe(e, "offset");
681
+ const r = this[e], i = this[e + 7];
682
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
683
+ const o = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (i << 24);
684
+ return (BigInt(o) << BigInt(32)) + BigInt(r + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
685
+ }), a.prototype.readBigInt64BE = te(function(e) {
686
+ e = e >>> 0, pe(e, "offset");
687
+ const r = this[e], i = this[e + 7];
688
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
689
+ const o = (r << 24) + // Overflow
690
+ this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
691
+ return (BigInt(o) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i);
692
+ }), a.prototype.readFloatLE = function(e, r) {
693
+ return e = e >>> 0, r || M(e, 4, this.length), s.read(this, e, !0, 23, 4);
694
+ }, a.prototype.readFloatBE = function(e, r) {
695
+ return e = e >>> 0, r || M(e, 4, this.length), s.read(this, e, !1, 23, 4);
696
+ }, a.prototype.readDoubleLE = function(e, r) {
697
+ return e = e >>> 0, r || M(e, 8, this.length), s.read(this, e, !0, 52, 8);
698
+ }, a.prototype.readDoubleBE = function(e, r) {
699
+ return e = e >>> 0, r || M(e, 8, this.length), s.read(this, e, !1, 52, 8);
700
+ };
701
+ function O(t, e, r, i, o, p) {
702
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
703
+ if (e > o || e < p) throw new RangeError('"value" argument is out of bounds');
704
+ if (r + i > t.length) throw new RangeError("Index out of range");
705
+ }
706
+ a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, r, i, o) {
707
+ if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
708
+ const S = Math.pow(2, 8 * i) - 1;
709
+ O(this, e, r, i, S, 0);
710
+ }
711
+ let p = 1, v = 0;
712
+ for (this[r] = e & 255; ++v < i && (p *= 256); )
713
+ this[r + v] = e / p & 255;
714
+ return r + i;
715
+ }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, r, i, o) {
716
+ if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
717
+ const S = Math.pow(2, 8 * i) - 1;
718
+ O(this, e, r, i, S, 0);
719
+ }
720
+ let p = i - 1, v = 1;
721
+ for (this[r + p] = e & 255; --p >= 0 && (v *= 256); )
722
+ this[r + p] = e / v & 255;
723
+ return r + i;
724
+ }, a.prototype.writeUint8 = a.prototype.writeUInt8 = function(e, r, i) {
725
+ return e = +e, r = r >>> 0, i || O(this, e, r, 1, 255, 0), this[r] = e & 255, r + 1;
726
+ }, a.prototype.writeUint16LE = a.prototype.writeUInt16LE = function(e, r, i) {
727
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 65535, 0), this[r] = e & 255, this[r + 1] = e >>> 8, r + 2;
728
+ }, a.prototype.writeUint16BE = a.prototype.writeUInt16BE = function(e, r, i) {
729
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 65535, 0), this[r] = e >>> 8, this[r + 1] = e & 255, r + 2;
730
+ }, a.prototype.writeUint32LE = a.prototype.writeUInt32LE = function(e, r, i) {
731
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 4294967295, 0), this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255, r + 4;
732
+ }, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(e, r, i) {
733
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 4294967295, 0), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255, r + 4;
734
+ };
735
+ function $e(t, e, r, i, o) {
736
+ We(e, i, o, t, r, 7);
737
+ let p = Number(e & BigInt(4294967295));
738
+ t[r++] = p, p = p >> 8, t[r++] = p, p = p >> 8, t[r++] = p, p = p >> 8, t[r++] = p;
739
+ let v = Number(e >> BigInt(32) & BigInt(4294967295));
740
+ return t[r++] = v, v = v >> 8, t[r++] = v, v = v >> 8, t[r++] = v, v = v >> 8, t[r++] = v, r;
741
+ }
742
+ function Pe(t, e, r, i, o) {
743
+ We(e, i, o, t, r, 7);
744
+ let p = Number(e & BigInt(4294967295));
745
+ t[r + 7] = p, p = p >> 8, t[r + 6] = p, p = p >> 8, t[r + 5] = p, p = p >> 8, t[r + 4] = p;
746
+ let v = Number(e >> BigInt(32) & BigInt(4294967295));
747
+ return t[r + 3] = v, v = v >> 8, t[r + 2] = v, v = v >> 8, t[r + 1] = v, v = v >> 8, t[r] = v, r + 8;
748
+ }
749
+ a.prototype.writeBigUInt64LE = te(function(e, r = 0) {
750
+ return $e(this, e, r, BigInt(0), BigInt("0xffffffffffffffff"));
751
+ }), a.prototype.writeBigUInt64BE = te(function(e, r = 0) {
752
+ return Pe(this, e, r, BigInt(0), BigInt("0xffffffffffffffff"));
753
+ }), a.prototype.writeIntLE = function(e, r, i, o) {
754
+ if (e = +e, r = r >>> 0, !o) {
755
+ const D = Math.pow(2, 8 * i - 1);
756
+ O(this, e, r, i, D - 1, -D);
757
+ }
758
+ let p = 0, v = 1, S = 0;
759
+ for (this[r] = e & 255; ++p < i && (v *= 256); )
760
+ e < 0 && S === 0 && this[r + p - 1] !== 0 && (S = 1), this[r + p] = (e / v >> 0) - S & 255;
761
+ return r + i;
762
+ }, a.prototype.writeIntBE = function(e, r, i, o) {
763
+ if (e = +e, r = r >>> 0, !o) {
764
+ const D = Math.pow(2, 8 * i - 1);
765
+ O(this, e, r, i, D - 1, -D);
766
+ }
767
+ let p = i - 1, v = 1, S = 0;
768
+ for (this[r + p] = e & 255; --p >= 0 && (v *= 256); )
769
+ e < 0 && S === 0 && this[r + p + 1] !== 0 && (S = 1), this[r + p] = (e / v >> 0) - S & 255;
770
+ return r + i;
771
+ }, a.prototype.writeInt8 = function(e, r, i) {
772
+ return e = +e, r = r >>> 0, i || O(this, e, r, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
773
+ }, a.prototype.writeInt16LE = function(e, r, i) {
774
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 32767, -32768), this[r] = e & 255, this[r + 1] = e >>> 8, r + 2;
775
+ }, a.prototype.writeInt16BE = function(e, r, i) {
776
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 32767, -32768), this[r] = e >>> 8, this[r + 1] = e & 255, r + 2;
777
+ }, a.prototype.writeInt32LE = function(e, r, i) {
778
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 2147483647, -2147483648), this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24, r + 4;
779
+ }, a.prototype.writeInt32BE = function(e, r, i) {
780
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255, r + 4;
781
+ }, a.prototype.writeBigInt64LE = te(function(e, r = 0) {
782
+ return $e(this, e, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
783
+ }), a.prototype.writeBigInt64BE = te(function(e, r = 0) {
784
+ return Pe(this, e, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
785
+ });
786
+ function Oe(t, e, r, i, o, p) {
787
+ if (r + i > t.length) throw new RangeError("Index out of range");
788
+ if (r < 0) throw new RangeError("Index out of range");
789
+ }
790
+ function Ke(t, e, r, i, o) {
791
+ return e = +e, r = r >>> 0, o || Oe(t, e, r, 4), s.write(t, e, r, i, 23, 4), r + 4;
792
+ }
793
+ a.prototype.writeFloatLE = function(e, r, i) {
794
+ return Ke(this, e, r, !0, i);
795
+ }, a.prototype.writeFloatBE = function(e, r, i) {
796
+ return Ke(this, e, r, !1, i);
797
+ };
798
+ function Qe(t, e, r, i, o) {
799
+ return e = +e, r = r >>> 0, o || Oe(t, e, r, 8), s.write(t, e, r, i, 52, 8), r + 8;
800
+ }
801
+ a.prototype.writeDoubleLE = function(e, r, i) {
802
+ return Qe(this, e, r, !0, i);
803
+ }, a.prototype.writeDoubleBE = function(e, r, i) {
804
+ return Qe(this, e, r, !1, i);
805
+ }, a.prototype.copy = function(e, r, i, o) {
806
+ if (!a.isBuffer(e)) throw new TypeError("argument should be a Buffer");
807
+ if (i || (i = 0), !o && o !== 0 && (o = this.length), r >= e.length && (r = e.length), r || (r = 0), o > 0 && o < i && (o = i), o === i || e.length === 0 || this.length === 0) return 0;
808
+ if (r < 0)
809
+ throw new RangeError("targetStart out of bounds");
810
+ if (i < 0 || i >= this.length) throw new RangeError("Index out of range");
811
+ if (o < 0) throw new RangeError("sourceEnd out of bounds");
812
+ o > this.length && (o = this.length), e.length - r < o - i && (o = e.length - r + i);
813
+ const p = o - i;
814
+ return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(r, i, o) : Uint8Array.prototype.set.call(
815
+ e,
816
+ this.subarray(i, o),
817
+ r
818
+ ), p;
819
+ }, a.prototype.fill = function(e, r, i, o) {
820
+ if (typeof e == "string") {
821
+ if (typeof r == "string" ? (o = r, r = 0, i = this.length) : typeof i == "string" && (o = i, i = this.length), o !== void 0 && typeof o != "string")
822
+ throw new TypeError("encoding must be a string");
823
+ if (typeof o == "string" && !a.isEncoding(o))
824
+ throw new TypeError("Unknown encoding: " + o);
825
+ if (e.length === 1) {
826
+ const v = e.charCodeAt(0);
827
+ (o === "utf8" && v < 128 || o === "latin1") && (e = v);
828
+ }
829
+ } else typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
830
+ if (r < 0 || this.length < r || this.length < i)
831
+ throw new RangeError("Out of range index");
832
+ if (i <= r)
833
+ return this;
834
+ r = r >>> 0, i = i === void 0 ? this.length : i >>> 0, e || (e = 0);
835
+ let p;
836
+ if (typeof e == "number")
837
+ for (p = r; p < i; ++p)
838
+ this[p] = e;
839
+ else {
840
+ const v = a.isBuffer(e) ? e : a.from(e, o), S = v.length;
841
+ if (S === 0)
842
+ throw new TypeError('The value "' + e + '" is invalid for argument "value"');
843
+ for (p = 0; p < i - r; ++p)
844
+ this[p + r] = v[p % S];
845
+ }
846
+ return this;
847
+ };
848
+ const ce = {};
849
+ function Ee(t, e, r) {
850
+ ce[t] = class extends r {
851
+ constructor() {
852
+ super(), Object.defineProperty(this, "message", {
853
+ value: e.apply(this, arguments),
854
+ writable: !0,
855
+ configurable: !0
856
+ }), this.name = `${this.name} [${t}]`, this.stack, delete this.name;
857
+ }
858
+ get code() {
859
+ return t;
860
+ }
861
+ set code(o) {
862
+ Object.defineProperty(this, "code", {
863
+ configurable: !0,
864
+ enumerable: !0,
865
+ value: o,
866
+ writable: !0
867
+ });
868
+ }
869
+ toString() {
870
+ return `${this.name} [${t}]: ${this.message}`;
871
+ }
872
+ };
873
+ }
874
+ Ee(
875
+ "ERR_BUFFER_OUT_OF_BOUNDS",
876
+ function(t) {
877
+ return t ? `${t} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
878
+ },
879
+ RangeError
880
+ ), Ee(
881
+ "ERR_INVALID_ARG_TYPE",
882
+ function(t, e) {
883
+ return `The "${t}" argument must be of type number. Received type ${typeof e}`;
884
+ },
885
+ TypeError
886
+ ), Ee(
887
+ "ERR_OUT_OF_RANGE",
888
+ function(t, e, r) {
889
+ let i = `The value of "${t}" is out of range.`, o = r;
890
+ return Number.isInteger(r) && Math.abs(r) > 2 ** 32 ? o = qe(String(r)) : typeof r == "bigint" && (o = String(r), (r > BigInt(2) ** BigInt(32) || r < -(BigInt(2) ** BigInt(32))) && (o = qe(o)), o += "n"), i += ` It must be ${e}. Received ${o}`, i;
891
+ },
892
+ RangeError
893
+ );
894
+ function qe(t) {
895
+ let e = "", r = t.length;
896
+ const i = t[0] === "-" ? 1 : 0;
897
+ for (; r >= i + 4; r -= 3)
898
+ e = `_${t.slice(r - 3, r)}${e}`;
899
+ return `${t.slice(0, r)}${e}`;
900
+ }
901
+ function It(t, e, r) {
902
+ pe(e, "offset"), (t[e] === void 0 || t[e + r] === void 0) && he(e, t.length - (r + 1));
903
+ }
904
+ function We(t, e, r, i, o, p) {
905
+ if (t > r || t < e) {
906
+ const v = typeof e == "bigint" ? "n" : "";
907
+ let S;
908
+ throw e === 0 || e === BigInt(0) ? S = `>= 0${v} and < 2${v} ** ${(p + 1) * 8}${v}` : S = `>= -(2${v} ** ${(p + 1) * 8 - 1}${v}) and < 2 ** ${(p + 1) * 8 - 1}${v}`, new ce.ERR_OUT_OF_RANGE("value", S, t);
909
+ }
910
+ It(i, o, p);
911
+ }
912
+ function pe(t, e) {
913
+ if (typeof t != "number")
914
+ throw new ce.ERR_INVALID_ARG_TYPE(e, "number", t);
915
+ }
916
+ function he(t, e, r) {
917
+ throw Math.floor(t) !== t ? (pe(t, r), new ce.ERR_OUT_OF_RANGE("offset", "an integer", t)) : e < 0 ? new ce.ERR_BUFFER_OUT_OF_BOUNDS() : new ce.ERR_OUT_OF_RANGE(
918
+ "offset",
919
+ `>= 0 and <= ${e}`,
920
+ t
921
+ );
922
+ }
923
+ const kt = /[^+/0-9A-Za-z-_]/g;
924
+ function bt(t) {
925
+ if (t = t.split("=")[0], t = t.trim().replace(kt, ""), t.length < 2) return "";
926
+ for (; t.length % 4 !== 0; )
927
+ t = t + "=";
928
+ return t;
929
+ }
930
+ function Ce(t, e) {
931
+ e = e || 1 / 0;
932
+ let r;
933
+ const i = t.length;
934
+ let o = null;
935
+ const p = [];
936
+ for (let v = 0; v < i; ++v) {
937
+ if (r = t.charCodeAt(v), r > 55295 && r < 57344) {
938
+ if (!o) {
939
+ if (r > 56319) {
940
+ (e -= 3) > -1 && p.push(239, 191, 189);
941
+ continue;
942
+ } else if (v + 1 === i) {
943
+ (e -= 3) > -1 && p.push(239, 191, 189);
944
+ continue;
945
+ }
946
+ o = r;
947
+ continue;
948
+ }
949
+ if (r < 56320) {
950
+ (e -= 3) > -1 && p.push(239, 191, 189), o = r;
951
+ continue;
952
+ }
953
+ r = (o - 55296 << 10 | r - 56320) + 65536;
954
+ } else o && (e -= 3) > -1 && p.push(239, 191, 189);
955
+ if (o = null, r < 128) {
956
+ if ((e -= 1) < 0) break;
957
+ p.push(r);
958
+ } else if (r < 2048) {
959
+ if ((e -= 2) < 0) break;
960
+ p.push(
961
+ r >> 6 | 192,
962
+ r & 63 | 128
963
+ );
964
+ } else if (r < 65536) {
965
+ if ((e -= 3) < 0) break;
966
+ p.push(
967
+ r >> 12 | 224,
968
+ r >> 6 & 63 | 128,
969
+ r & 63 | 128
970
+ );
971
+ } else if (r < 1114112) {
972
+ if ((e -= 4) < 0) break;
973
+ p.push(
974
+ r >> 18 | 240,
975
+ r >> 12 & 63 | 128,
976
+ r >> 6 & 63 | 128,
977
+ r & 63 | 128
978
+ );
979
+ } else
980
+ throw new Error("Invalid code point");
981
+ }
982
+ return p;
983
+ }
984
+ function jt(t) {
985
+ const e = [];
986
+ for (let r = 0; r < t.length; ++r)
987
+ e.push(t.charCodeAt(r) & 255);
988
+ return e;
989
+ }
990
+ function St(t, e) {
991
+ let r, i, o;
992
+ const p = [];
993
+ for (let v = 0; v < t.length && !((e -= 2) < 0); ++v)
994
+ r = t.charCodeAt(v), i = r >> 8, o = r % 256, p.push(o), p.push(i);
995
+ return p;
996
+ }
997
+ function Ze(t) {
998
+ return n.toByteArray(bt(t));
999
+ }
1000
+ function ge(t, e, r, i) {
1001
+ let o;
1002
+ for (o = 0; o < i && !(o + r >= e.length || o >= t.length); ++o)
1003
+ e[o + r] = t[o];
1004
+ return o;
1005
+ }
1006
+ function ee(t, e) {
1007
+ return t instanceof e || t != null && t.constructor != null && t.constructor.name != null && t.constructor.name === e.name;
1008
+ }
1009
+ function Re(t) {
1010
+ return t !== t;
1011
+ }
1012
+ const Tt = function() {
1013
+ const t = "0123456789abcdef", e = new Array(256);
1014
+ for (let r = 0; r < 16; ++r) {
1015
+ const i = r * 16;
1016
+ for (let o = 0; o < 16; ++o)
1017
+ e[i + o] = t[r] + t[o];
1018
+ }
1019
+ return e;
1020
+ }();
1021
+ function te(t) {
1022
+ return typeof BigInt > "u" ? Ft : t;
1023
+ }
1024
+ function Ft() {
1025
+ throw new Error("BigInt not supported");
1026
+ }
1027
+ }(ke)), ke;
1028
+ }
1029
+ var qt = Qt();
1030
+ function f() {
1031
+ return f = Object.assign ? Object.assign.bind() : function(l) {
1032
+ for (var n = 1; n < arguments.length; n++) {
1033
+ var s = arguments[n];
1034
+ for (var c in s) ({}).hasOwnProperty.call(s, c) && (l[c] = s[c]);
1035
+ }
1036
+ return l;
1037
+ }, f.apply(null, arguments);
1038
+ }
1039
+ function T(l, n) {
1040
+ if (l == null) return {};
1041
+ var s = {};
1042
+ for (var c in l) if ({}.hasOwnProperty.call(l, c)) {
1043
+ if (n.indexOf(c) !== -1) continue;
1044
+ s[c] = l[c];
1045
+ }
1046
+ return s;
1047
+ }
1048
+ var rr = {}, tr = /* @__PURE__ */ Z(rr), Wt = (l, n) => f({}, l, n), Zt = () => G(tr), Te = /* @__PURE__ */ Z(() => {
1049
+ });
1050
+ Te.displayName = "JVR.DispatchShowTools";
1051
+ function zt() {
1052
+ return de(Wt, rr);
1053
+ }
1054
+ function nr() {
1055
+ return G(Te);
1056
+ }
1057
+ var ir = (l) => {
1058
+ var {
1059
+ initial: n,
1060
+ dispatch: s,
1061
+ children: c
1062
+ } = l;
1063
+ return /* @__PURE__ */ g(tr.Provider, {
1064
+ value: n,
1065
+ children: /* @__PURE__ */ g(Te.Provider, {
1066
+ value: s,
1067
+ children: c
1068
+ })
1069
+ });
1070
+ };
1071
+ ir.displayName = "JVR.ShowTools";
1072
+ var ar = {}, lr = /* @__PURE__ */ Z(ar), Gt = (l, n) => f({}, l, n), Be = () => G(lr), Fe = /* @__PURE__ */ Z(() => {
1073
+ });
1074
+ Fe.displayName = "JVR.DispatchExpands";
1075
+ function Ht() {
1076
+ return de(Gt, ar);
1077
+ }
1078
+ function Yt() {
1079
+ return G(Fe);
1080
+ }
1081
+ var or = (l) => {
1082
+ var {
1083
+ initial: n,
1084
+ dispatch: s,
1085
+ children: c
1086
+ } = l;
1087
+ return /* @__PURE__ */ g(lr.Provider, {
1088
+ value: n,
1089
+ children: /* @__PURE__ */ g(Fe.Provider, {
1090
+ value: s,
1091
+ children: c
1092
+ })
1093
+ });
1094
+ };
1095
+ or.displayName = "JVR.Expands";
1096
+ var sr = {
1097
+ Str: {
1098
+ as: "span",
1099
+ "data-type": "string",
1100
+ style: {
1101
+ color: "var(--w-rjv-type-string-color, #cb4b16)"
1102
+ },
1103
+ className: "w-rjv-type",
1104
+ children: "string"
1105
+ },
1106
+ Url: {
1107
+ as: "a",
1108
+ style: {
1109
+ color: "var(--w-rjv-type-url-color, #0969da)"
1110
+ },
1111
+ "data-type": "url",
1112
+ className: "w-rjv-type",
1113
+ children: "url"
1114
+ },
1115
+ Undefined: {
1116
+ style: {
1117
+ color: "var(--w-rjv-type-undefined-color, #586e75)"
1118
+ },
1119
+ as: "span",
1120
+ "data-type": "undefined",
1121
+ className: "w-rjv-type",
1122
+ children: "undefined"
1123
+ },
1124
+ Null: {
1125
+ style: {
1126
+ color: "var(--w-rjv-type-null-color, #d33682)"
1127
+ },
1128
+ as: "span",
1129
+ "data-type": "null",
1130
+ className: "w-rjv-type",
1131
+ children: "null"
1132
+ },
1133
+ Map: {
1134
+ style: {
1135
+ color: "var(--w-rjv-type-map-color, #268bd2)",
1136
+ marginRight: 3
1137
+ },
1138
+ as: "span",
1139
+ "data-type": "map",
1140
+ className: "w-rjv-type",
1141
+ children: "Map"
1142
+ },
1143
+ Nan: {
1144
+ style: {
1145
+ color: "var(--w-rjv-type-nan-color, #859900)"
1146
+ },
1147
+ as: "span",
1148
+ "data-type": "nan",
1149
+ className: "w-rjv-type",
1150
+ children: "NaN"
1151
+ },
1152
+ Bigint: {
1153
+ style: {
1154
+ color: "var(--w-rjv-type-bigint-color, #268bd2)"
1155
+ },
1156
+ as: "span",
1157
+ "data-type": "bigint",
1158
+ className: "w-rjv-type",
1159
+ children: "bigint"
1160
+ },
1161
+ Int: {
1162
+ style: {
1163
+ color: "var(--w-rjv-type-int-color, #268bd2)"
1164
+ },
1165
+ as: "span",
1166
+ "data-type": "int",
1167
+ className: "w-rjv-type",
1168
+ children: "int"
1169
+ },
1170
+ Set: {
1171
+ style: {
1172
+ color: "var(--w-rjv-type-set-color, #268bd2)",
1173
+ marginRight: 3
1174
+ },
1175
+ as: "span",
1176
+ "data-type": "set",
1177
+ className: "w-rjv-type",
1178
+ children: "Set"
1179
+ },
1180
+ Float: {
1181
+ style: {
1182
+ color: "var(--w-rjv-type-float-color, #859900)"
1183
+ },
1184
+ as: "span",
1185
+ "data-type": "float",
1186
+ className: "w-rjv-type",
1187
+ children: "float"
1188
+ },
1189
+ True: {
1190
+ style: {
1191
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
1192
+ },
1193
+ as: "span",
1194
+ "data-type": "bool",
1195
+ className: "w-rjv-type",
1196
+ children: "bool"
1197
+ },
1198
+ False: {
1199
+ style: {
1200
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
1201
+ },
1202
+ as: "span",
1203
+ "data-type": "bool",
1204
+ className: "w-rjv-type",
1205
+ children: "bool"
1206
+ },
1207
+ Date: {
1208
+ style: {
1209
+ color: "var(--w-rjv-type-date-color, #268bd2)"
1210
+ },
1211
+ as: "span",
1212
+ "data-type": "date",
1213
+ className: "w-rjv-type",
1214
+ children: "date"
1215
+ }
1216
+ }, ur = /* @__PURE__ */ Z(sr), Xt = (l, n) => f({}, l, n), A = () => G(ur), Le = /* @__PURE__ */ Z(() => {
1217
+ });
1218
+ Le.displayName = "JVR.DispatchTypes";
1219
+ function en() {
1220
+ return de(Xt, sr);
1221
+ }
1222
+ function rn() {
1223
+ return G(Le);
1224
+ }
1225
+ function cr(l) {
1226
+ var {
1227
+ initial: n,
1228
+ dispatch: s,
1229
+ children: c
1230
+ } = l;
1231
+ return /* @__PURE__ */ g(ur.Provider, {
1232
+ value: n,
1233
+ children: /* @__PURE__ */ g(Le.Provider, {
1234
+ value: s,
1235
+ children: c
1236
+ })
1237
+ });
1238
+ }
1239
+ cr.displayName = "JVR.Types";
1240
+ var tn = ["style"];
1241
+ function pr(l) {
1242
+ var {
1243
+ style: n
1244
+ } = l, s = T(l, tn), c = f({
1245
+ cursor: "pointer",
1246
+ height: "1em",
1247
+ width: "1em",
1248
+ userSelect: "none",
1249
+ display: "inline-flex"
1250
+ }, n);
1251
+ return /* @__PURE__ */ g("svg", f({
1252
+ viewBox: "0 0 24 24",
1253
+ fill: "var(--w-rjv-arrow-color, currentColor)",
1254
+ style: c
1255
+ }, s, {
1256
+ children: /* @__PURE__ */ g("path", {
1257
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
1258
+ })
1259
+ }));
1260
+ }
1261
+ pr.displayName = "JVR.TriangleArrow";
1262
+ var yr = {
1263
+ Arrow: {
1264
+ as: "span",
1265
+ className: "w-rjv-arrow",
1266
+ style: {
1267
+ transform: "rotate(0deg)",
1268
+ transition: "all 0.3s"
1269
+ },
1270
+ children: /* @__PURE__ */ g(pr, {})
1271
+ },
1272
+ Colon: {
1273
+ as: "span",
1274
+ style: {
1275
+ color: "var(--w-rjv-colon-color, var(--w-rjv-color))",
1276
+ marginLeft: 0,
1277
+ marginRight: 2
1278
+ },
1279
+ className: "w-rjv-colon",
1280
+ children: ":"
1281
+ },
1282
+ Quote: {
1283
+ as: "span",
1284
+ style: {
1285
+ color: "var(--w-rjv-quotes-color, #236a7c)"
1286
+ },
1287
+ className: "w-rjv-quotes",
1288
+ children: '"'
1289
+ },
1290
+ ValueQuote: {
1291
+ as: "span",
1292
+ style: {
1293
+ color: "var(--w-rjv-quotes-string-color, #cb4b16)"
1294
+ },
1295
+ className: "w-rjv-quotes",
1296
+ children: '"'
1297
+ },
1298
+ BracketsLeft: {
1299
+ as: "span",
1300
+ style: {
1301
+ color: "var(--w-rjv-brackets-color, #236a7c)"
1302
+ },
1303
+ className: "w-rjv-brackets-start",
1304
+ children: "["
1305
+ },
1306
+ BracketsRight: {
1307
+ as: "span",
1308
+ style: {
1309
+ color: "var(--w-rjv-brackets-color, #236a7c)"
1310
+ },
1311
+ className: "w-rjv-brackets-end",
1312
+ children: "]"
1313
+ },
1314
+ BraceLeft: {
1315
+ as: "span",
1316
+ style: {
1317
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
1318
+ },
1319
+ className: "w-rjv-curlybraces-start",
1320
+ children: "{"
1321
+ },
1322
+ BraceRight: {
1323
+ as: "span",
1324
+ style: {
1325
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
1326
+ },
1327
+ className: "w-rjv-curlybraces-end",
1328
+ children: "}"
1329
+ }
1330
+ }, dr = /* @__PURE__ */ Z(yr), nn = (l, n) => f({}, l, n), K = () => G(dr), Ae = /* @__PURE__ */ Z(() => {
1331
+ });
1332
+ Ae.displayName = "JVR.DispatchSymbols";
1333
+ function an() {
1334
+ return de(nn, yr);
1335
+ }
1336
+ function ln() {
1337
+ return G(Ae);
1338
+ }
1339
+ var fr = (l) => {
1340
+ var {
1341
+ initial: n,
1342
+ dispatch: s,
1343
+ children: c
1344
+ } = l;
1345
+ return /* @__PURE__ */ g(dr.Provider, {
1346
+ value: n,
1347
+ children: /* @__PURE__ */ g(Ae.Provider, {
1348
+ value: s,
1349
+ children: c
1350
+ })
1351
+ });
1352
+ };
1353
+ fr.displayName = "JVR.Symbols";
1354
+ var hr = {
1355
+ Copied: {
1356
+ className: "w-rjv-copied",
1357
+ style: {
1358
+ height: "1em",
1359
+ width: "1em",
1360
+ cursor: "pointer",
1361
+ verticalAlign: "middle",
1362
+ marginLeft: 5
1363
+ }
1364
+ },
1365
+ CountInfo: {
1366
+ as: "span",
1367
+ className: "w-rjv-object-size",
1368
+ style: {
1369
+ color: "var(--w-rjv-info-color, #0000004d)",
1370
+ paddingLeft: 8,
1371
+ fontStyle: "italic"
1372
+ }
1373
+ },
1374
+ CountInfoExtra: {
1375
+ as: "span",
1376
+ className: "w-rjv-object-extra",
1377
+ style: {
1378
+ paddingLeft: 8
1379
+ }
1380
+ },
1381
+ Ellipsis: {
1382
+ as: "span",
1383
+ style: {
1384
+ cursor: "pointer",
1385
+ color: "var(--w-rjv-ellipsis-color, #cb4b16)",
1386
+ userSelect: "none"
1387
+ },
1388
+ className: "w-rjv-ellipsis",
1389
+ children: "..."
1390
+ },
1391
+ Row: {
1392
+ as: "div",
1393
+ className: "w-rjv-line"
1394
+ },
1395
+ KeyName: {
1396
+ as: "span",
1397
+ className: "w-rjv-object-key"
1398
+ }
1399
+ }, vr = /* @__PURE__ */ Z(hr), on = (l, n) => f({}, l, n), z = () => G(vr), Ve = /* @__PURE__ */ Z(() => {
1400
+ });
1401
+ Ve.displayName = "JVR.DispatchSection";
1402
+ function sn() {
1403
+ return de(on, hr);
1404
+ }
1405
+ function un() {
1406
+ return G(Ve);
1407
+ }
1408
+ var mr = (l) => {
1409
+ var {
1410
+ initial: n,
1411
+ dispatch: s,
1412
+ children: c
1413
+ } = l;
1414
+ return /* @__PURE__ */ g(vr.Provider, {
1415
+ value: n,
1416
+ children: /* @__PURE__ */ g(Ve.Provider, {
1417
+ value: s,
1418
+ children: c
1419
+ })
1420
+ });
1421
+ };
1422
+ mr.displayName = "JVR.Section";
1423
+ var wr = {
1424
+ objectSortKeys: !1,
1425
+ indentWidth: 15
1426
+ }, Ue = /* @__PURE__ */ Z(wr);
1427
+ Ue.displayName = "JVR.Context";
1428
+ var xr = /* @__PURE__ */ Z(() => {
1429
+ });
1430
+ xr.displayName = "JVR.DispatchContext";
1431
+ function cn(l, n) {
1432
+ return f({}, l, n);
1433
+ }
1434
+ var se = () => G(Ue), gr = (l) => {
1435
+ var {
1436
+ children: n,
1437
+ initialState: s,
1438
+ initialTypes: c
1439
+ } = l, [u, h] = de(cn, Object.assign({}, wr, s)), [y, a] = zt(), [d, N] = Ht(), [m, w] = en(), [B, x] = an(), [E, C] = sn();
1440
+ return oe(() => h(f({}, s)), [s]), /* @__PURE__ */ g(Ue.Provider, {
1441
+ value: u,
1442
+ children: /* @__PURE__ */ g(xr.Provider, {
1443
+ value: h,
1444
+ children: /* @__PURE__ */ g(ir, {
1445
+ initial: y,
1446
+ dispatch: a,
1447
+ children: /* @__PURE__ */ g(or, {
1448
+ initial: d,
1449
+ dispatch: N,
1450
+ children: /* @__PURE__ */ g(cr, {
1451
+ initial: f({}, m, c),
1452
+ dispatch: w,
1453
+ children: /* @__PURE__ */ g(fr, {
1454
+ initial: B,
1455
+ dispatch: x,
1456
+ children: /* @__PURE__ */ g(mr, {
1457
+ initial: E,
1458
+ dispatch: C,
1459
+ children: n
1460
+ })
1461
+ })
1462
+ })
1463
+ })
1464
+ })
1465
+ })
1466
+ });
1467
+ };
1468
+ gr.displayName = "JVR.Provider";
1469
+ function pn(l) {
1470
+ if (l == null) throw new TypeError("Cannot destructure " + l);
1471
+ }
1472
+ var yn = ["isNumber", "value", "parentValue", "keyName", "keys"], dn = ["as", "render"], fn = ["as", "render"], hn = ["as", "render"], vn = ["as", "style", "render"], mn = ["as", "render"], wn = ["as", "render"], xn = ["as", "render"], gn = ["as", "render"], be = (l) => {
1473
+ var {
1474
+ Quote: n = {}
1475
+ } = K(), {
1476
+ isNumber: s,
1477
+ value: c,
1478
+ parentValue: u,
1479
+ keyName: h,
1480
+ keys: y
1481
+ } = l, a = T(l, yn);
1482
+ if (s) return null;
1483
+ var {
1484
+ as: d,
1485
+ render: N
1486
+ } = n, m = T(n, dn), w = d || "span", B = f({}, a, m);
1487
+ if (typeof B.children == "string") {
1488
+ var x = B.children.trim();
1489
+ B.children = x || void 0;
1490
+ }
1491
+ var E = {
1492
+ value: c,
1493
+ parentValue: u,
1494
+ keyName: h,
1495
+ keys: y || (h ? [h] : [])
1496
+ }, C = N && typeof N == "function" && N(B, E);
1497
+ return C || /* @__PURE__ */ g(w, f({}, B));
1498
+ };
1499
+ be.displayName = "JVR.Quote";
1500
+ var we = (l) => {
1501
+ var {
1502
+ ValueQuote: n = {}
1503
+ } = K(), s = f({}, (pn(l), l)), {
1504
+ as: c,
1505
+ render: u
1506
+ } = n, h = T(n, fn), y = c || "span", a = f({}, s, h), d = u && typeof u == "function" && u(a, {});
1507
+ return d || /* @__PURE__ */ g(y, f({}, a));
1508
+ };
1509
+ we.displayName = "JVR.ValueQuote";
1510
+ var Nr = (l) => {
1511
+ var {
1512
+ value: n,
1513
+ parentValue: s,
1514
+ keyName: c,
1515
+ keys: u
1516
+ } = l, {
1517
+ Colon: h = {}
1518
+ } = K(), {
1519
+ as: y,
1520
+ render: a
1521
+ } = h, d = T(h, hn), N = y || "span", m = a && typeof a == "function" && a(d, {
1522
+ value: n,
1523
+ parentValue: s,
1524
+ keyName: c,
1525
+ keys: u || (c ? [c] : [])
1526
+ });
1527
+ return m || /* @__PURE__ */ g(N, f({}, d));
1528
+ };
1529
+ Nr.displayName = "JVR.Colon";
1530
+ var Br = (l) => {
1531
+ var {
1532
+ Arrow: n = {}
1533
+ } = K(), s = Be(), {
1534
+ expandKey: c,
1535
+ style: u,
1536
+ value: h,
1537
+ parentValue: y,
1538
+ keyName: a,
1539
+ keys: d
1540
+ } = l, N = !!s[c], {
1541
+ as: m,
1542
+ style: w,
1543
+ render: B
1544
+ } = n, x = T(n, vn), E = m || "span", C = B && typeof B == "function", R = f({}, x, {
1545
+ "data-expanded": N,
1546
+ style: f({}, w, u)
1547
+ }), k = {
1548
+ value: h,
1549
+ parentValue: y,
1550
+ keyName: a,
1551
+ keys: d || (a ? [a] : [])
1552
+ }, I = C && B(R, k);
1553
+ return I || /* @__PURE__ */ g(E, f({}, x, {
1554
+ style: f({}, w, u)
1555
+ }));
1556
+ };
1557
+ Br.displayName = "JVR.Arrow";
1558
+ var Er = (l) => {
1559
+ var {
1560
+ isBrackets: n,
1561
+ value: s,
1562
+ parentValue: c,
1563
+ keyName: u,
1564
+ keys: h
1565
+ } = l, {
1566
+ BracketsLeft: y = {},
1567
+ BraceLeft: a = {}
1568
+ } = K(), d = {
1569
+ value: s,
1570
+ parentValue: c,
1571
+ keyName: u,
1572
+ keys: h || (u ? [u] : [])
1573
+ };
1574
+ if (n) {
1575
+ var {
1576
+ as: N,
1577
+ render: m
1578
+ } = y, w = T(y, mn), B = N || "span", x = m && typeof m == "function" && m(w, d);
1579
+ return x || /* @__PURE__ */ g(B, f({}, w));
1580
+ }
1581
+ var {
1582
+ as: E,
1583
+ render: C
1584
+ } = a, R = T(a, wn), k = E || "span", I = C && typeof C == "function" && C(R, d);
1585
+ return I || /* @__PURE__ */ g(k, f({}, R));
1586
+ };
1587
+ Er.displayName = "JVR.BracketsOpen";
1588
+ var De = (l) => {
1589
+ var {
1590
+ isBrackets: n,
1591
+ isVisiable: s,
1592
+ value: c,
1593
+ parentValue: u,
1594
+ keyName: h,
1595
+ keys: y
1596
+ } = l, a = {
1597
+ value: c,
1598
+ parentValue: u,
1599
+ keyName: h,
1600
+ keys: y || (h ? [h] : [])
1601
+ };
1602
+ if (!s) return null;
1603
+ var {
1604
+ BracketsRight: d = {},
1605
+ BraceRight: N = {}
1606
+ } = K();
1607
+ if (n) {
1608
+ var {
1609
+ as: m,
1610
+ render: w
1611
+ } = d, B = T(d, xn), x = m || "span", E = w && typeof w == "function" && w(B, a);
1612
+ return E || /* @__PURE__ */ g(x, f({}, B));
1613
+ }
1614
+ var {
1615
+ as: C,
1616
+ render: R
1617
+ } = N, k = T(N, gn), I = C || "span", b = R && typeof R == "function" && R(k, a);
1618
+ return b || /* @__PURE__ */ g(I, f({}, k));
1619
+ };
1620
+ De.displayName = "JVR.BracketsClose";
1621
+ var Cr = (l) => {
1622
+ var n, {
1623
+ keyName: s,
1624
+ value: c,
1625
+ expandKey: u,
1626
+ parentValue: h,
1627
+ level: y,
1628
+ keys: a = []
1629
+ } = l, d = Be(), {
1630
+ collapsed: N,
1631
+ shouldExpandNodeInitially: m
1632
+ } = se(), w = typeof N == "boolean" ? N : typeof N == "number" ? y > N : !1, B = (n = d[u]) != null ? n : m ? !1 : w, x = m && m(!B, {
1633
+ value: c,
1634
+ keys: a,
1635
+ level: y,
1636
+ keyName: s,
1637
+ parentValue: h
1638
+ });
1639
+ if (m && N === !1) {
1640
+ if (d[u] === void 0 && !x)
1641
+ return null;
1642
+ } else if (d[u] === void 0 && x)
1643
+ return null;
1644
+ var E = Object.keys(c).length;
1645
+ if (B || E === 0)
1646
+ return null;
1647
+ var C = {
1648
+ paddingLeft: 4
1649
+ }, R = {
1650
+ keyName: s,
1651
+ value: c,
1652
+ keys: a,
1653
+ parentValue: h
1654
+ }, k = Array.isArray(c), I = c instanceof Set;
1655
+ return /* @__PURE__ */ g("div", {
1656
+ style: C,
1657
+ children: /* @__PURE__ */ g(De, f({
1658
+ isBrackets: k || I
1659
+ }, R, {
1660
+ isVisiable: !0
1661
+ }))
1662
+ });
1663
+ };
1664
+ Cr.displayName = "JVR.NestedClose";
1665
+ var Nn = ["as", "render"], Bn = ["as", "render"], En = ["as", "render"], Cn = ["as", "render"], Rn = ["as", "render"], In = ["as", "render"], kn = ["as", "render"], bn = ["as", "render"], jn = ["as", "render"], Sn = ["as", "render"], Tn = ["as", "render"], Fn = ["as", "render"], Ln = ["as", "render"], je = (l) => {
1666
+ if (l === void 0)
1667
+ return "0n";
1668
+ if (typeof l == "string")
1669
+ try {
1670
+ l = BigInt(l);
1671
+ } catch {
1672
+ return "0n";
1673
+ }
1674
+ return l ? l.toString() + "n" : "0n";
1675
+ }, Rr = (l) => {
1676
+ var {
1677
+ value: n,
1678
+ keyName: s
1679
+ } = l, {
1680
+ Set: c = {},
1681
+ displayDataTypes: u
1682
+ } = A(), h = n instanceof Set;
1683
+ if (!h || !u) return null;
1684
+ var {
1685
+ as: y,
1686
+ render: a
1687
+ } = c, d = T(c, Nn), N = a && typeof a == "function", m = N && a(d, {
1688
+ type: "type",
1689
+ value: n,
1690
+ keyName: s
1691
+ });
1692
+ if (m) return m;
1693
+ var w = y || "span";
1694
+ return /* @__PURE__ */ g(w, f({}, d));
1695
+ };
1696
+ Rr.displayName = "JVR.SetComp";
1697
+ var Ir = (l) => {
1698
+ var {
1699
+ value: n,
1700
+ keyName: s
1701
+ } = l, {
1702
+ Map: c = {},
1703
+ displayDataTypes: u
1704
+ } = A(), h = n instanceof Map;
1705
+ if (!h || !u) return null;
1706
+ var {
1707
+ as: y,
1708
+ render: a
1709
+ } = c, d = T(c, Bn), N = a && typeof a == "function", m = N && a(d, {
1710
+ type: "type",
1711
+ value: n,
1712
+ keyName: s
1713
+ });
1714
+ if (m) return m;
1715
+ var w = y || "span";
1716
+ return /* @__PURE__ */ g(w, f({}, d));
1717
+ };
1718
+ Ir.displayName = "JVR.MapComp";
1719
+ var H = {
1720
+ opacity: 0.75,
1721
+ paddingRight: 4
1722
+ }, kr = (l) => {
1723
+ var {
1724
+ children: n = "",
1725
+ keyName: s,
1726
+ keys: c
1727
+ } = l, {
1728
+ Str: u = {},
1729
+ displayDataTypes: h
1730
+ } = A(), {
1731
+ shortenTextAfterLength: y = 30,
1732
+ stringEllipsis: a = "..."
1733
+ } = se(), {
1734
+ as: d,
1735
+ render: N
1736
+ } = u, m = T(u, En), w = n, [B, x] = Xe(y && w.length > y);
1737
+ oe(() => x(y && w.length > y), [y]);
1738
+ var E = d || "span", C = f({}, H, u.style || {});
1739
+ y > 0 && (m.style = f({}, m.style, {
1740
+ cursor: w.length <= y ? "initial" : "pointer"
1741
+ }), w.length > y && (m.onClick = () => {
1742
+ x(!B);
1743
+ }));
1744
+ var R = B ? "" + w.slice(0, y) + a : w, k = N && typeof N == "function", I = k && N(f({}, m, {
1745
+ style: C
1746
+ }), {
1747
+ type: "type",
1748
+ value: n,
1749
+ keyName: s,
1750
+ keys: c
1751
+ }), b = B ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", U = k && N(f({}, m, {
1752
+ children: R,
1753
+ className: b
1754
+ }), {
1755
+ type: "value",
1756
+ value: n,
1757
+ keyName: s,
1758
+ keys: c
1759
+ });
1760
+ return /* @__PURE__ */ _(Q, {
1761
+ children: [h && (I || /* @__PURE__ */ g(E, f({}, m, {
1762
+ style: C
1763
+ }))), U || /* @__PURE__ */ _(Q, {
1764
+ children: [/* @__PURE__ */ g(we, {}), /* @__PURE__ */ g(E, f({}, m, {
1765
+ className: b,
1766
+ children: R
1767
+ })), /* @__PURE__ */ g(we, {})]
1768
+ })]
1769
+ });
1770
+ };
1771
+ kr.displayName = "JVR.TypeString";
1772
+ var br = (l) => {
1773
+ var {
1774
+ children: n,
1775
+ keyName: s,
1776
+ keys: c
1777
+ } = l, {
1778
+ True: u = {},
1779
+ displayDataTypes: h
1780
+ } = A(), {
1781
+ as: y,
1782
+ render: a
1783
+ } = u, d = T(u, Cn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1784
+ style: m
1785
+ }), {
1786
+ type: "type",
1787
+ value: n,
1788
+ keyName: s,
1789
+ keys: c
1790
+ }), x = w && a(f({}, d, {
1791
+ children: n,
1792
+ className: "w-rjv-value"
1793
+ }), {
1794
+ type: "value",
1795
+ value: n,
1796
+ keyName: s,
1797
+ keys: c
1798
+ });
1799
+ return /* @__PURE__ */ _(Q, {
1800
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1801
+ style: m
1802
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1803
+ className: "w-rjv-value",
1804
+ children: n?.toString()
1805
+ }))]
1806
+ });
1807
+ };
1808
+ br.displayName = "JVR.TypeTrue";
1809
+ var jr = (l) => {
1810
+ var {
1811
+ children: n,
1812
+ keyName: s,
1813
+ keys: c
1814
+ } = l, {
1815
+ False: u = {},
1816
+ displayDataTypes: h
1817
+ } = A(), {
1818
+ as: y,
1819
+ render: a
1820
+ } = u, d = T(u, Rn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1821
+ style: m
1822
+ }), {
1823
+ type: "type",
1824
+ value: n,
1825
+ keyName: s,
1826
+ keys: c
1827
+ }), x = w && a(f({}, d, {
1828
+ children: n,
1829
+ className: "w-rjv-value"
1830
+ }), {
1831
+ type: "value",
1832
+ value: n,
1833
+ keyName: s,
1834
+ keys: c
1835
+ });
1836
+ return /* @__PURE__ */ _(Q, {
1837
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1838
+ style: m
1839
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1840
+ className: "w-rjv-value",
1841
+ children: n?.toString()
1842
+ }))]
1843
+ });
1844
+ };
1845
+ jr.displayName = "JVR.TypeFalse";
1846
+ var Sr = (l) => {
1847
+ var {
1848
+ children: n,
1849
+ keyName: s,
1850
+ keys: c
1851
+ } = l, {
1852
+ Float: u = {},
1853
+ displayDataTypes: h
1854
+ } = A(), {
1855
+ as: y,
1856
+ render: a
1857
+ } = u, d = T(u, In), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1858
+ style: m
1859
+ }), {
1860
+ type: "type",
1861
+ value: n,
1862
+ keyName: s,
1863
+ keys: c
1864
+ }), x = w && a(f({}, d, {
1865
+ children: n,
1866
+ className: "w-rjv-value"
1867
+ }), {
1868
+ type: "value",
1869
+ value: n,
1870
+ keyName: s,
1871
+ keys: c
1872
+ });
1873
+ return /* @__PURE__ */ _(Q, {
1874
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1875
+ style: m
1876
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1877
+ className: "w-rjv-value",
1878
+ children: n?.toString()
1879
+ }))]
1880
+ });
1881
+ };
1882
+ Sr.displayName = "JVR.TypeFloat";
1883
+ var Tr = (l) => {
1884
+ var {
1885
+ children: n,
1886
+ keyName: s,
1887
+ keys: c
1888
+ } = l, {
1889
+ Int: u = {},
1890
+ displayDataTypes: h
1891
+ } = A(), {
1892
+ as: y,
1893
+ render: a
1894
+ } = u, d = T(u, kn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1895
+ style: m
1896
+ }), {
1897
+ type: "type",
1898
+ value: n,
1899
+ keyName: s,
1900
+ keys: c
1901
+ }), x = w && a(f({}, d, {
1902
+ children: n,
1903
+ className: "w-rjv-value"
1904
+ }), {
1905
+ type: "value",
1906
+ value: n,
1907
+ keyName: s,
1908
+ keys: c
1909
+ });
1910
+ return /* @__PURE__ */ _(Q, {
1911
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1912
+ style: m
1913
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1914
+ className: "w-rjv-value",
1915
+ children: n?.toString()
1916
+ }))]
1917
+ });
1918
+ };
1919
+ Tr.displayName = "JVR.TypeInt";
1920
+ var Fr = (l) => {
1921
+ var {
1922
+ children: n,
1923
+ keyName: s,
1924
+ keys: c
1925
+ } = l, {
1926
+ Bigint: u = {},
1927
+ displayDataTypes: h
1928
+ } = A(), {
1929
+ as: y,
1930
+ render: a
1931
+ } = u, d = T(u, bn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1932
+ style: m
1933
+ }), {
1934
+ type: "type",
1935
+ value: n,
1936
+ keyName: s,
1937
+ keys: c
1938
+ }), x = w && a(f({}, d, {
1939
+ children: n,
1940
+ className: "w-rjv-value"
1941
+ }), {
1942
+ type: "value",
1943
+ value: n,
1944
+ keyName: s,
1945
+ keys: c
1946
+ });
1947
+ return /* @__PURE__ */ _(Q, {
1948
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1949
+ style: m
1950
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1951
+ className: "w-rjv-value",
1952
+ children: je(n?.toString())
1953
+ }))]
1954
+ });
1955
+ };
1956
+ Fr.displayName = "JVR.TypeFloat";
1957
+ var Lr = (l) => {
1958
+ var {
1959
+ children: n,
1960
+ keyName: s,
1961
+ keys: c
1962
+ } = l, {
1963
+ Url: u = {},
1964
+ displayDataTypes: h
1965
+ } = A(), {
1966
+ as: y,
1967
+ render: a
1968
+ } = u, d = T(u, jn), N = y || "span", m = f({}, H, u.style), w = a && typeof a == "function", B = w && a(f({}, d, {
1969
+ style: m
1970
+ }), {
1971
+ type: "type",
1972
+ value: n,
1973
+ keyName: s,
1974
+ keys: c
1975
+ }), x = w && a(f({}, d, {
1976
+ children: n?.href,
1977
+ className: "w-rjv-value"
1978
+ }), {
1979
+ type: "value",
1980
+ value: n,
1981
+ keyName: s,
1982
+ keys: c
1983
+ });
1984
+ return /* @__PURE__ */ _(Q, {
1985
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1986
+ style: m
1987
+ }))), x || /* @__PURE__ */ _("a", f({
1988
+ href: n?.href,
1989
+ target: "_blank"
1990
+ }, d, {
1991
+ className: "w-rjv-value",
1992
+ children: [/* @__PURE__ */ g(we, {}), n?.href, /* @__PURE__ */ g(we, {})]
1993
+ }))]
1994
+ });
1995
+ };
1996
+ Lr.displayName = "JVR.TypeUrl";
1997
+ var Ar = (l) => {
1998
+ var {
1999
+ children: n,
2000
+ keyName: s,
2001
+ keys: c
2002
+ } = l, {
2003
+ Date: u = {},
2004
+ displayDataTypes: h
2005
+ } = A(), {
2006
+ as: y,
2007
+ render: a
2008
+ } = u, d = T(u, Sn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2009
+ style: m
2010
+ }), {
2011
+ type: "type",
2012
+ value: n,
2013
+ keyName: s,
2014
+ keys: c
2015
+ }), x = n instanceof Date ? n.toLocaleString() : n, E = w && a(f({}, d, {
2016
+ children: x,
2017
+ className: "w-rjv-value"
2018
+ }), {
2019
+ type: "value",
2020
+ value: n,
2021
+ keyName: s,
2022
+ keys: c
2023
+ });
2024
+ return /* @__PURE__ */ _(Q, {
2025
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2026
+ style: m
2027
+ }))), E || /* @__PURE__ */ g(N, f({}, d, {
2028
+ className: "w-rjv-value",
2029
+ children: x
2030
+ }))]
2031
+ });
2032
+ };
2033
+ Ar.displayName = "JVR.TypeDate";
2034
+ var Vr = (l) => {
2035
+ var {
2036
+ children: n,
2037
+ keyName: s,
2038
+ keys: c
2039
+ } = l, {
2040
+ Undefined: u = {},
2041
+ displayDataTypes: h
2042
+ } = A(), {
2043
+ as: y,
2044
+ render: a
2045
+ } = u, d = T(u, Tn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2046
+ style: m
2047
+ }), {
2048
+ type: "type",
2049
+ value: n,
2050
+ keyName: s,
2051
+ keys: c
2052
+ }), x = w && a(f({}, d, {
2053
+ children: n,
2054
+ className: "w-rjv-value"
2055
+ }), {
2056
+ type: "value",
2057
+ value: n,
2058
+ keyName: s,
2059
+ keys: c
2060
+ });
2061
+ return /* @__PURE__ */ _(Q, {
2062
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2063
+ style: m
2064
+ }))), x]
2065
+ });
2066
+ };
2067
+ Vr.displayName = "JVR.TypeUndefined";
2068
+ var Ur = (l) => {
2069
+ var {
2070
+ children: n,
2071
+ keyName: s,
2072
+ keys: c
2073
+ } = l, {
2074
+ Null: u = {},
2075
+ displayDataTypes: h
2076
+ } = A(), {
2077
+ as: y,
2078
+ render: a
2079
+ } = u, d = T(u, Fn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2080
+ style: m
2081
+ }), {
2082
+ type: "type",
2083
+ value: n,
2084
+ keyName: s,
2085
+ keys: c
2086
+ }), x = w && a(f({}, d, {
2087
+ children: n,
2088
+ className: "w-rjv-value"
2089
+ }), {
2090
+ type: "value",
2091
+ value: n,
2092
+ keyName: s,
2093
+ keys: c
2094
+ });
2095
+ return /* @__PURE__ */ _(Q, {
2096
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2097
+ style: m
2098
+ }))), x]
2099
+ });
2100
+ };
2101
+ Ur.displayName = "JVR.TypeNull";
2102
+ var Dr = (l) => {
2103
+ var {
2104
+ children: n,
2105
+ keyName: s,
2106
+ keys: c
2107
+ } = l, {
2108
+ Nan: u = {},
2109
+ displayDataTypes: h
2110
+ } = A(), {
2111
+ as: y,
2112
+ render: a
2113
+ } = u, d = T(u, Ln), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2114
+ style: m
2115
+ }), {
2116
+ type: "type",
2117
+ value: n,
2118
+ keyName: s,
2119
+ keys: c
2120
+ }), x = w && a(f({}, d, {
2121
+ children: n?.toString(),
2122
+ className: "w-rjv-value"
2123
+ }), {
2124
+ type: "value",
2125
+ value: n,
2126
+ keyName: s,
2127
+ keys: c
2128
+ });
2129
+ return /* @__PURE__ */ _(Q, {
2130
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2131
+ style: m
2132
+ }))), x]
2133
+ });
2134
+ };
2135
+ Dr.displayName = "JVR.TypeNan";
2136
+ var An = (l) => Number(l) === l && l % 1 !== 0 || isNaN(l), Jr = (l) => {
2137
+ var {
2138
+ value: n,
2139
+ keyName: s,
2140
+ keys: c
2141
+ } = l, u = {
2142
+ keyName: s,
2143
+ keys: c
2144
+ };
2145
+ return n instanceof URL ? /* @__PURE__ */ g(Lr, f({}, u, {
2146
+ children: n
2147
+ })) : typeof n == "string" ? /* @__PURE__ */ g(kr, f({}, u, {
2148
+ children: n
2149
+ })) : n === !0 ? /* @__PURE__ */ g(br, f({}, u, {
2150
+ children: n
2151
+ })) : n === !1 ? /* @__PURE__ */ g(jr, f({}, u, {
2152
+ children: n
2153
+ })) : n === null ? /* @__PURE__ */ g(Ur, f({}, u, {
2154
+ children: n
2155
+ })) : n === void 0 ? /* @__PURE__ */ g(Vr, f({}, u, {
2156
+ children: n
2157
+ })) : n instanceof Date ? /* @__PURE__ */ g(Ar, f({}, u, {
2158
+ children: n
2159
+ })) : typeof n == "number" && isNaN(n) ? /* @__PURE__ */ g(Dr, f({}, u, {
2160
+ children: n
2161
+ })) : typeof n == "number" && An(n) ? /* @__PURE__ */ g(Sr, f({}, u, {
2162
+ children: n
2163
+ })) : typeof n == "bigint" ? /* @__PURE__ */ g(Fr, f({}, u, {
2164
+ children: n
2165
+ })) : typeof n == "number" ? /* @__PURE__ */ g(Tr, f({}, u, {
2166
+ children: n
2167
+ })) : null;
2168
+ };
2169
+ Jr.displayName = "JVR.Value";
2170
+ function ne(l, n, s) {
2171
+ var c = ln(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2172
+ className: u,
2173
+ style: f({}, l.style, n.style),
2174
+ children: n.children || l.children
2175
+ });
2176
+ oe(() => c({
2177
+ [s]: h
2178
+ }), [n]);
2179
+ }
2180
+ function q(l, n, s) {
2181
+ var c = rn(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2182
+ className: u,
2183
+ style: f({}, l.style, n.style),
2184
+ children: n.children || l.children
2185
+ });
2186
+ oe(() => c({
2187
+ [s]: h
2188
+ }), [n]);
2189
+ }
2190
+ function fe(l, n, s) {
2191
+ var c = un(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2192
+ className: u,
2193
+ style: f({}, l.style, n.style),
2194
+ children: n.children || l.children
2195
+ });
2196
+ oe(() => c({
2197
+ [s]: h
2198
+ }), [n]);
2199
+ }
2200
+ var Vn = ["as", "render"], _r = (l) => {
2201
+ var {
2202
+ KeyName: n = {}
2203
+ } = z();
2204
+ return fe(n, l, "KeyName"), null;
2205
+ };
2206
+ _r.displayName = "JVR.KeyName";
2207
+ var Mr = (l) => {
2208
+ var {
2209
+ children: n,
2210
+ value: s,
2211
+ parentValue: c,
2212
+ keyName: u,
2213
+ keys: h
2214
+ } = l, y = typeof n == "number", a = {
2215
+ color: y ? "var(--w-rjv-key-number, #268bd2)" : "var(--w-rjv-key-string, #002b36)"
2216
+ }, {
2217
+ KeyName: d = {}
2218
+ } = z(), {
2219
+ as: N,
2220
+ render: m
2221
+ } = d, w = T(d, Vn);
2222
+ w.style = f({}, w.style, a);
2223
+ var B = N || "span", x = m && typeof m == "function" && m(f({}, w, {
2224
+ children: n
2225
+ }), {
2226
+ value: s,
2227
+ parentValue: c,
2228
+ keyName: u,
2229
+ keys: h || (u ? [u] : [])
2230
+ });
2231
+ return x || /* @__PURE__ */ g(B, f({}, w, {
2232
+ children: n
2233
+ }));
2234
+ };
2235
+ Mr.displayName = "JVR.KeyNameComp";
2236
+ var Un = ["children", "value", "parentValue", "keyName", "keys"], Dn = ["as", "render", "children"], $r = (l) => {
2237
+ var {
2238
+ Row: n = {}
2239
+ } = z();
2240
+ return fe(n, l, "Row"), null;
2241
+ };
2242
+ $r.displayName = "JVR.Row";
2243
+ var Pr = (l) => {
2244
+ var {
2245
+ children: n,
2246
+ value: s,
2247
+ parentValue: c,
2248
+ keyName: u,
2249
+ keys: h
2250
+ } = l, y = T(l, Un), {
2251
+ Row: a = {}
2252
+ } = z(), {
2253
+ as: d,
2254
+ render: N
2255
+ } = a, m = T(a, Dn), w = d || "div", B = N && typeof N == "function" && N(f({}, y, m, {
2256
+ children: n
2257
+ }), {
2258
+ value: s,
2259
+ keyName: u,
2260
+ parentValue: c,
2261
+ keys: h
2262
+ });
2263
+ return B || /* @__PURE__ */ g(w, f({}, y, m, {
2264
+ children: n
2265
+ }));
2266
+ };
2267
+ Pr.displayName = "JVR.RowComp";
2268
+ function Jn(l) {
2269
+ var n = Se();
2270
+ return oe(() => {
2271
+ n.current = l;
2272
+ }), n.current;
2273
+ }
2274
+ function _n(l) {
2275
+ var {
2276
+ value: n,
2277
+ highlightUpdates: s,
2278
+ highlightContainer: c
2279
+ } = l, u = Jn(n), h = Mt(() => {
2280
+ if (!s || u === void 0) return !1;
2281
+ if (typeof n != typeof u)
2282
+ return !0;
2283
+ if (typeof n == "number")
2284
+ return isNaN(n) && isNaN(u) ? !1 : n !== u;
2285
+ if (Array.isArray(n) !== Array.isArray(u))
2286
+ return !0;
2287
+ if (typeof n == "object" || typeof n == "function")
2288
+ return !1;
2289
+ if (n !== u)
2290
+ return !0;
2291
+ }, [s, n]);
2292
+ oe(() => {
2293
+ c && c.current && h && "animate" in c.current && c.current.animate([{
2294
+ backgroundColor: "var(--w-rjv-update-color, #ebcb8b)"
2295
+ }, {
2296
+ backgroundColor: ""
2297
+ }], {
2298
+ duration: 1e3,
2299
+ easing: "ease-in"
2300
+ });
2301
+ }, [h, n, c]);
2302
+ }
2303
+ var Mn = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"], $n = ["as", "render"], Je = (l) => {
2304
+ var {
2305
+ keyName: n,
2306
+ value: s,
2307
+ parentValue: c,
2308
+ expandKey: u,
2309
+ keys: h,
2310
+ beforeCopy: y
2311
+ } = l, a = T(l, Mn), {
2312
+ onCopied: d,
2313
+ enableClipboard: N,
2314
+ beforeCopy: m
2315
+ } = se(), w = Zt(), B = w[u], [x, E] = Xe(!1), {
2316
+ Copied: C = {}
2317
+ } = z(), R = C?.beforeCopy;
2318
+ if (N === !1 || !B) return null;
2319
+ var k = (re) => {
2320
+ re.stopPropagation();
2321
+ var P = "";
2322
+ typeof s == "number" && s === 1 / 0 ? P = "Infinity" : typeof s == "number" && isNaN(s) ? P = "NaN" : typeof s == "bigint" ? P = je(s) : s instanceof Date ? P = s.toLocaleString() : P = JSON.stringify(s, (ie, ae) => typeof ae == "bigint" ? je(ae) : ae, 2);
2323
+ var Y = y || R || m;
2324
+ Y && typeof Y == "function" && (P = Y(P, n, s, c, u, h)), d && d(P, s), E(!0);
2325
+ var ue = navigator.clipboard || {
2326
+ writeText(ie) {
2327
+ return new Promise((ae, xe) => {
2328
+ var X = document.createElement("textarea");
2329
+ X.style.position = "absolute", X.style.opacity = "0", X.style.left = "-99999999px", X.value = ie, document.body.appendChild(X), X.select(), document.execCommand("copy") ? ae() : xe(), X.remove();
2330
+ });
2331
+ }
2332
+ };
2333
+ ue.writeText(P).then(() => {
2334
+ var ie = setTimeout(() => {
2335
+ E(!1), clearTimeout(ie);
2336
+ }, 3e3);
2337
+ }).catch((ie) => {
2338
+ });
2339
+ }, I = {
2340
+ style: {
2341
+ display: "inline-flex"
2342
+ },
2343
+ fill: x ? "var(--w-rjv-copied-success-color, #28a745)" : "var(--w-rjv-copied-color, currentColor)",
2344
+ onClick: k
2345
+ }, {
2346
+ render: b
2347
+ } = C, U = T(C, $n), j = f({}, U, a, I, {
2348
+ style: f({}, U.style, a.style, I.style)
2349
+ }), $ = b && typeof b == "function", W = $ && b(f({}, j, {
2350
+ "data-copied": x
2351
+ }), {
2352
+ value: s,
2353
+ keyName: n,
2354
+ keys: h,
2355
+ parentValue: c
2356
+ });
2357
+ return W || (x ? /* @__PURE__ */ g("svg", f({
2358
+ viewBox: "0 0 32 36"
2359
+ }, j, {
2360
+ children: /* @__PURE__ */ g("path", {
2361
+ 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"
2362
+ })
2363
+ })) : /* @__PURE__ */ g("svg", f({
2364
+ viewBox: "0 0 32 36"
2365
+ }, j, {
2366
+ children: /* @__PURE__ */ g("path", {
2367
+ 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"
2368
+ })
2369
+ })));
2370
+ };
2371
+ Je.displayName = "JVR.Copied";
2372
+ function Or() {
2373
+ var l = Se(null);
2374
+ return l.current === null && (l.current = "custom-id-" + Math.random().toString(36).substr(2, 9)), l.current;
2375
+ }
2376
+ var Kr = (l) => {
2377
+ var n, {
2378
+ keyName: s,
2379
+ value: c,
2380
+ expandKey: u = "",
2381
+ level: h,
2382
+ keys: y = [],
2383
+ parentValue: a
2384
+ } = l, d = Be(), {
2385
+ objectSortKeys: N,
2386
+ indentWidth: m,
2387
+ collapsed: w,
2388
+ shouldExpandNodeInitially: B
2389
+ } = se(), x = typeof w == "boolean" ? w : typeof w == "number" ? h > w : !1, E = (n = d[u]) != null ? n : B ? !1 : x, C = B && B(!E, {
2390
+ value: c,
2391
+ keys: y,
2392
+ level: h,
2393
+ keyName: s,
2394
+ parentValue: a
2395
+ });
2396
+ if (B && w === !1) {
2397
+ if (d[u] === void 0 && !C)
2398
+ return null;
2399
+ } else if (d[u] === void 0 && C)
2400
+ return null;
2401
+ if (E)
2402
+ return null;
2403
+ var R = Array.isArray(c), k = R ? Object.entries(c).map((b) => [Number(b[0]), b[1]]) : Object.entries(c);
2404
+ N && (k = N === !0 ? k.sort((b, U) => {
2405
+ var [j] = b, [$] = U;
2406
+ return typeof j == "string" && typeof $ == "string" ? j.localeCompare($) : 0;
2407
+ }) : k.sort((b, U) => {
2408
+ var [j, $] = b, [W, re] = U;
2409
+ return typeof j == "string" && typeof W == "string" ? N(j, W, $, re) : 0;
2410
+ }));
2411
+ var I = {
2412
+ borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
2413
+ paddingLeft: m,
2414
+ marginLeft: 6
2415
+ };
2416
+ return /* @__PURE__ */ g("div", {
2417
+ className: "w-rjv-wrap",
2418
+ style: I,
2419
+ children: k.map((b, U) => {
2420
+ var [j, $] = b;
2421
+ return /* @__PURE__ */ g(Qr, {
2422
+ parentValue: c,
2423
+ keyName: j,
2424
+ keys: [...y, j],
2425
+ value: $,
2426
+ level: h
2427
+ }, U);
2428
+ })
2429
+ });
2430
+ };
2431
+ Kr.displayName = "JVR.KeyValues";
2432
+ var _e = (l) => {
2433
+ var {
2434
+ keyName: n,
2435
+ parentValue: s,
2436
+ keys: c,
2437
+ value: u
2438
+ } = l, {
2439
+ highlightUpdates: h
2440
+ } = se(), y = typeof n == "number", a = Se(null);
2441
+ _n({
2442
+ value: u,
2443
+ highlightUpdates: h,
2444
+ highlightContainer: a
2445
+ });
2446
+ var d = {
2447
+ keyName: n,
2448
+ value: u,
2449
+ keys: c,
2450
+ parentValue: s
2451
+ };
2452
+ return /* @__PURE__ */ _(Q, {
2453
+ children: [/* @__PURE__ */ _("span", {
2454
+ ref: a,
2455
+ children: [/* @__PURE__ */ g(be, f({
2456
+ isNumber: y,
2457
+ "data-placement": "left"
2458
+ }, d)), /* @__PURE__ */ g(Mr, f({}, d, {
2459
+ children: n
2460
+ })), /* @__PURE__ */ g(be, f({
2461
+ isNumber: y,
2462
+ "data-placement": "right"
2463
+ }, d))]
2464
+ }), /* @__PURE__ */ g(Nr, f({}, d))]
2465
+ });
2466
+ };
2467
+ _e.displayName = "JVR.KayName";
2468
+ var Qr = (l) => {
2469
+ var {
2470
+ keyName: n,
2471
+ value: s,
2472
+ parentValue: c,
2473
+ level: u = 0,
2474
+ keys: h = []
2475
+ } = l, y = nr(), a = Or(), d = Array.isArray(s), N = s instanceof Set, m = s instanceof Map, w = s instanceof Date, B = s instanceof URL, x = s && typeof s == "object" && !d && !N && !m && !w && !B, E = x || d || N || m;
2476
+ if (E) {
2477
+ var C = N ? Array.from(s) : m ? Object.fromEntries(s) : s;
2478
+ return /* @__PURE__ */ g(Me, {
2479
+ keyName: n,
2480
+ value: C,
2481
+ parentValue: c,
2482
+ initialValue: s,
2483
+ keys: h,
2484
+ level: u + 1
2485
+ });
2486
+ }
2487
+ var R = {
2488
+ onMouseEnter: () => y({
2489
+ [a]: !0
2490
+ }),
2491
+ onMouseLeave: () => y({
2492
+ [a]: !1
2493
+ })
2494
+ };
2495
+ return /* @__PURE__ */ _(Pr, f({
2496
+ className: "w-rjv-line",
2497
+ value: s,
2498
+ keyName: n,
2499
+ keys: h,
2500
+ parentValue: c
2501
+ }, R, {
2502
+ children: [/* @__PURE__ */ g(_e, {
2503
+ keyName: n,
2504
+ value: s,
2505
+ keys: h,
2506
+ parentValue: c
2507
+ }), /* @__PURE__ */ g(Jr, {
2508
+ keyName: n,
2509
+ value: s,
2510
+ keys: h
2511
+ }), /* @__PURE__ */ g(Je, {
2512
+ keyName: n,
2513
+ value: s,
2514
+ keys: h,
2515
+ parentValue: c,
2516
+ expandKey: a
2517
+ })]
2518
+ }));
2519
+ };
2520
+ Qr.displayName = "JVR.KeyValuesItem";
2521
+ var Pn = ["value", "keyName"], On = ["as", "render"], qr = (l) => {
2522
+ var {
2523
+ CountInfoExtra: n = {}
2524
+ } = z();
2525
+ return fe(n, l, "CountInfoExtra"), null;
2526
+ };
2527
+ qr.displayName = "JVR.CountInfoExtra";
2528
+ var Wr = (l) => {
2529
+ var {
2530
+ value: n = {},
2531
+ keyName: s
2532
+ } = l, c = T(l, Pn), {
2533
+ CountInfoExtra: u = {}
2534
+ } = z(), {
2535
+ as: h,
2536
+ render: y
2537
+ } = u, a = T(u, On);
2538
+ if (!y && !a.children) return null;
2539
+ var d = h || "span", N = y && typeof y == "function", m = f({}, a, c), w = N && y(m, {
2540
+ value: n,
2541
+ keyName: s
2542
+ });
2543
+ return w || /* @__PURE__ */ g(d, f({}, m));
2544
+ };
2545
+ Wr.displayName = "JVR.CountInfoExtraComps";
2546
+ var Kn = ["value", "keyName"], Qn = ["as", "render"], Zr = (l) => {
2547
+ var {
2548
+ CountInfo: n = {}
2549
+ } = z();
2550
+ return fe(n, l, "CountInfo"), null;
2551
+ };
2552
+ Zr.displayName = "JVR.CountInfo";
2553
+ var zr = (l) => {
2554
+ var {
2555
+ value: n = {},
2556
+ keyName: s
2557
+ } = l, c = T(l, Kn), {
2558
+ displayObjectSize: u
2559
+ } = se(), {
2560
+ CountInfo: h = {}
2561
+ } = z();
2562
+ if (!u) return null;
2563
+ var {
2564
+ as: y,
2565
+ render: a
2566
+ } = h, d = T(h, Qn), N = y || "span";
2567
+ d.style = f({}, d.style, l.style);
2568
+ var m = Object.keys(n).length;
2569
+ d.children || (d.children = m + " item" + (m === 1 ? "" : "s"));
2570
+ var w = f({}, d, c), B = a && typeof a == "function", x = B && a(f({}, w, {
2571
+ "data-length": m
2572
+ }), {
2573
+ value: n,
2574
+ keyName: s
2575
+ });
2576
+ return x || /* @__PURE__ */ g(N, f({}, w));
2577
+ };
2578
+ zr.displayName = "JVR.CountInfoComp";
2579
+ var qn = ["as", "render"], Gr = (l) => {
2580
+ var {
2581
+ Ellipsis: n = {}
2582
+ } = z();
2583
+ return fe(n, l, "Ellipsis"), null;
2584
+ };
2585
+ Gr.displayName = "JVR.Ellipsis";
2586
+ var Hr = (l) => {
2587
+ var {
2588
+ isExpanded: n,
2589
+ value: s,
2590
+ keyName: c
2591
+ } = l, {
2592
+ Ellipsis: u = {}
2593
+ } = z(), {
2594
+ as: h,
2595
+ render: y
2596
+ } = u, a = T(u, qn), d = h || "span", N = y && typeof y == "function" && y(f({}, a, {
2597
+ "data-expanded": n
2598
+ }), {
2599
+ value: s,
2600
+ keyName: c
2601
+ });
2602
+ return N || (!n || typeof s == "object" && Object.keys(s).length == 0 ? null : /* @__PURE__ */ g(d, f({}, a)));
2603
+ };
2604
+ Hr.displayName = "JVR.EllipsisComp";
2605
+ var Yr = (l) => {
2606
+ var n, {
2607
+ keyName: s,
2608
+ expandKey: c,
2609
+ keys: u = [],
2610
+ initialValue: h,
2611
+ value: y,
2612
+ parentValue: a,
2613
+ level: d
2614
+ } = l, N = Be(), m = Yt(), {
2615
+ onExpand: w,
2616
+ collapsed: B,
2617
+ shouldExpandNodeInitially: x
2618
+ } = se(), E = typeof B == "boolean" ? B : typeof B == "number" ? d > B : !1, C = (n = N[c]) != null ? n : x ? !1 : E, R = x && x(!C, {
2619
+ value: y,
2620
+ keys: u,
2621
+ level: d,
2622
+ keyName: s,
2623
+ parentValue: a
2624
+ });
2625
+ N[c] === void 0 && x && (C = !R);
2626
+ var k = () => {
2627
+ var ue = {
2628
+ expand: !C,
2629
+ value: y,
2630
+ keyid: c,
2631
+ keyName: s
2632
+ };
2633
+ w && w(ue), m({
2634
+ [c]: ue.expand
2635
+ });
2636
+ }, I = {
2637
+ display: "inline-flex",
2638
+ alignItems: "center"
2639
+ }, b = {
2640
+ transform: "rotate(" + (C ? "-90" : "0") + "deg)",
2641
+ transition: "all 0.3s"
2642
+ }, U = Object.keys(y).length, j = typeof y == "object", $ = Array.isArray(y), W = y instanceof Set, re = U !== 0 && ($ || W || j), P = {
2643
+ style: I
2644
+ };
2645
+ re && (P.onClick = k);
2646
+ var Y = {
2647
+ keyName: s,
2648
+ value: y,
2649
+ keys: u,
2650
+ parentValue: a
2651
+ };
2652
+ return /* @__PURE__ */ _("span", f({}, P, {
2653
+ children: [re && /* @__PURE__ */ g(Br, f({
2654
+ style: b,
2655
+ expandKey: c
2656
+ }, Y)), (s || typeof s == "number") && /* @__PURE__ */ g(_e, f({}, Y)), /* @__PURE__ */ g(Rr, {
2657
+ value: h,
2658
+ keyName: s
2659
+ }), /* @__PURE__ */ g(Ir, {
2660
+ value: h,
2661
+ keyName: s
2662
+ }), /* @__PURE__ */ g(Er, f({
2663
+ isBrackets: $ || W
2664
+ }, Y)), /* @__PURE__ */ g(Hr, {
2665
+ keyName: s,
2666
+ value: y,
2667
+ isExpanded: C
2668
+ }), /* @__PURE__ */ g(De, f({
2669
+ isVisiable: C || !re,
2670
+ isBrackets: $ || W
2671
+ }, Y)), /* @__PURE__ */ g(zr, {
2672
+ value: y,
2673
+ keyName: s
2674
+ }), /* @__PURE__ */ g(Wr, {
2675
+ value: y,
2676
+ keyName: s
2677
+ }), /* @__PURE__ */ g(Je, {
2678
+ keyName: s,
2679
+ value: y,
2680
+ expandKey: c,
2681
+ parentValue: a,
2682
+ keys: u
2683
+ })]
2684
+ }));
2685
+ };
2686
+ Yr.displayName = "JVR.NestedOpen";
2687
+ var Wn = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], Me = /* @__PURE__ */ er((l, n) => {
2688
+ var {
2689
+ className: s = "",
2690
+ parentValue: c,
2691
+ level: u = 1,
2692
+ value: h,
2693
+ initialValue: y,
2694
+ keys: a,
2695
+ keyName: d
2696
+ } = l, N = T(l, Wn), m = nr(), w = Or(), B = [s, "w-rjv-inner"].filter(Boolean).join(" "), x = {
2697
+ onMouseEnter: () => m({
2698
+ [w]: !0
2699
+ }),
2700
+ onMouseLeave: () => m({
2701
+ [w]: !1
2702
+ })
2703
+ };
2704
+ return /* @__PURE__ */ _("div", f({
2705
+ className: B,
2706
+ ref: n
2707
+ }, N, x, {
2708
+ children: [/* @__PURE__ */ g(Yr, {
2709
+ expandKey: w,
2710
+ value: h,
2711
+ level: u,
2712
+ keys: a,
2713
+ parentValue: c,
2714
+ keyName: d,
2715
+ initialValue: y
2716
+ }), /* @__PURE__ */ g(Kr, {
2717
+ expandKey: w,
2718
+ value: h,
2719
+ level: u,
2720
+ keys: a,
2721
+ parentValue: c,
2722
+ keyName: d
2723
+ }), /* @__PURE__ */ g(Cr, {
2724
+ expandKey: w,
2725
+ value: h,
2726
+ level: u,
2727
+ keys: a,
2728
+ parentValue: c,
2729
+ keyName: d
2730
+ })]
2731
+ }));
2732
+ });
2733
+ Me.displayName = "JVR.Container";
2734
+ var Xr = (l) => {
2735
+ var {
2736
+ BraceLeft: n = {}
2737
+ } = K();
2738
+ return ne(n, l, "BraceLeft"), null;
2739
+ };
2740
+ Xr.displayName = "JVR.BraceLeft";
2741
+ var et = (l) => {
2742
+ var {
2743
+ BraceRight: n = {}
2744
+ } = K();
2745
+ return ne(n, l, "BraceRight"), null;
2746
+ };
2747
+ et.displayName = "JVR.BraceRight";
2748
+ var rt = (l) => {
2749
+ var {
2750
+ BracketsLeft: n = {}
2751
+ } = K();
2752
+ return ne(n, l, "BracketsLeft"), null;
2753
+ };
2754
+ rt.displayName = "JVR.BracketsLeft";
2755
+ var tt = (l) => {
2756
+ var {
2757
+ BracketsRight: n = {}
2758
+ } = K();
2759
+ return ne(n, l, "BracketsRight"), null;
2760
+ };
2761
+ tt.displayName = "JVR.BracketsRight";
2762
+ var nt = (l) => {
2763
+ var {
2764
+ Arrow: n = {}
2765
+ } = K();
2766
+ return ne(n, l, "Arrow"), null;
2767
+ };
2768
+ nt.displayName = "JVR.Arrow";
2769
+ var it = (l) => {
2770
+ var {
2771
+ Colon: n = {}
2772
+ } = K();
2773
+ return ne(n, l, "Colon"), null;
2774
+ };
2775
+ it.displayName = "JVR.Colon";
2776
+ var at = (l) => {
2777
+ var {
2778
+ Quote: n = {}
2779
+ } = K();
2780
+ return ne(n, l, "Quote"), null;
2781
+ };
2782
+ at.displayName = "JVR.Quote";
2783
+ var lt = (l) => {
2784
+ var {
2785
+ ValueQuote: n = {}
2786
+ } = K();
2787
+ return ne(n, l, "ValueQuote"), null;
2788
+ };
2789
+ lt.displayName = "JVR.ValueQuote";
2790
+ var ot = (l) => {
2791
+ var {
2792
+ Bigint: n = {}
2793
+ } = A();
2794
+ return q(n, l, "Bigint"), null;
2795
+ };
2796
+ ot.displayName = "JVR.Bigint";
2797
+ var st = (l) => {
2798
+ var {
2799
+ Date: n = {}
2800
+ } = A();
2801
+ return q(n, l, "Date"), null;
2802
+ };
2803
+ st.displayName = "JVR.Date";
2804
+ var ut = (l) => {
2805
+ var {
2806
+ False: n = {}
2807
+ } = A();
2808
+ return q(n, l, "False"), null;
2809
+ };
2810
+ ut.displayName = "JVR.False";
2811
+ var ct = (l) => {
2812
+ var {
2813
+ Float: n = {}
2814
+ } = A();
2815
+ return q(n, l, "Float"), null;
2816
+ };
2817
+ ct.displayName = "JVR.Float";
2818
+ var pt = (l) => {
2819
+ var {
2820
+ Int: n = {}
2821
+ } = A();
2822
+ return q(n, l, "Int"), null;
2823
+ };
2824
+ pt.displayName = "JVR.Int";
2825
+ var yt = (l) => {
2826
+ var {
2827
+ Map: n = {}
2828
+ } = A();
2829
+ return q(n, l, "Map"), null;
2830
+ };
2831
+ yt.displayName = "JVR.Map";
2832
+ var dt = (l) => {
2833
+ var {
2834
+ Nan: n = {}
2835
+ } = A();
2836
+ return q(n, l, "Nan"), null;
2837
+ };
2838
+ dt.displayName = "JVR.Nan";
2839
+ var ft = (l) => {
2840
+ var {
2841
+ Null: n = {}
2842
+ } = A();
2843
+ return q(n, l, "Null"), null;
2844
+ };
2845
+ ft.displayName = "JVR.Null";
2846
+ var ht = (l) => {
2847
+ var {
2848
+ Set: n = {}
2849
+ } = A();
2850
+ return q(n, l, "Set"), null;
2851
+ };
2852
+ ht.displayName = "JVR.Set";
2853
+ var vt = (l) => {
2854
+ var {
2855
+ Str: n = {}
2856
+ } = A();
2857
+ return q(n, l, "Str"), null;
2858
+ };
2859
+ vt.displayName = "JVR.StringText";
2860
+ var mt = (l) => {
2861
+ var {
2862
+ True: n = {}
2863
+ } = A();
2864
+ return q(n, l, "True"), null;
2865
+ };
2866
+ mt.displayName = "JVR.True";
2867
+ var wt = (l) => {
2868
+ var {
2869
+ Undefined: n = {}
2870
+ } = A();
2871
+ return q(n, l, "Undefined"), null;
2872
+ };
2873
+ wt.displayName = "JVR.Undefined";
2874
+ var xt = (l) => {
2875
+ var {
2876
+ Url: n = {}
2877
+ } = A();
2878
+ return q(n, l, "Url"), null;
2879
+ };
2880
+ xt.displayName = "JVR.Url";
2881
+ var gt = (l) => {
2882
+ var {
2883
+ Copied: n = {}
2884
+ } = z();
2885
+ return fe(n, l, "Copied"), null;
2886
+ };
2887
+ gt.displayName = "JVR.Copied";
2888
+ var Zn = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied", "beforeCopy"], F = /* @__PURE__ */ er((l, n) => {
2889
+ var {
2890
+ className: s = "",
2891
+ style: c,
2892
+ value: u,
2893
+ children: h,
2894
+ collapsed: y = !1,
2895
+ shouldExpandNodeInitially: a,
2896
+ indentWidth: d = 15,
2897
+ displayObjectSize: N = !0,
2898
+ shortenTextAfterLength: m = 30,
2899
+ stringEllipsis: w,
2900
+ highlightUpdates: B = !0,
2901
+ enableClipboard: x = !0,
2902
+ displayDataTypes: E = !0,
2903
+ objectSortKeys: C = !1,
2904
+ onExpand: R,
2905
+ onCopied: k,
2906
+ beforeCopy: I
2907
+ } = l, b = T(l, Zn), U = f({
2908
+ lineHeight: 1.4,
2909
+ fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
2910
+ color: "var(--w-rjv-color, #002b36)",
2911
+ backgroundColor: "var(--w-rjv-background-color, #00000000)",
2912
+ fontSize: 13
2913
+ }, c), j = ["w-json-view-container", "w-rjv", s].filter(Boolean).join(" ");
2914
+ return /* @__PURE__ */ _(gr, {
2915
+ initialState: {
2916
+ value: u,
2917
+ objectSortKeys: C,
2918
+ indentWidth: d,
2919
+ shouldExpandNodeInitially: y === !1 ? a : void 0,
2920
+ displayObjectSize: N,
2921
+ collapsed: y,
2922
+ enableClipboard: x,
2923
+ shortenTextAfterLength: m,
2924
+ stringEllipsis: w,
2925
+ highlightUpdates: B,
2926
+ onCopied: k,
2927
+ onExpand: R,
2928
+ beforeCopy: I
2929
+ },
2930
+ initialTypes: {
2931
+ displayDataTypes: E
2932
+ },
2933
+ children: [/* @__PURE__ */ g(Me, f({
2934
+ value: u
2935
+ }, b, {
2936
+ ref: n,
2937
+ className: j,
2938
+ style: U
2939
+ })), h]
2940
+ });
2941
+ });
2942
+ F.Bigint = ot;
2943
+ F.Date = st;
2944
+ F.False = ut;
2945
+ F.Float = ct;
2946
+ F.Int = pt;
2947
+ F.Map = yt;
2948
+ F.Nan = dt;
2949
+ F.Null = ft;
2950
+ F.Set = ht;
2951
+ F.String = vt;
2952
+ F.True = mt;
2953
+ F.Undefined = wt;
2954
+ F.Url = xt;
2955
+ F.ValueQuote = lt;
2956
+ F.Arrow = nt;
2957
+ F.Colon = it;
2958
+ F.Quote = at;
2959
+ F.Ellipsis = Gr;
2960
+ F.BraceLeft = Xr;
2961
+ F.BraceRight = et;
2962
+ F.BracketsLeft = rt;
2963
+ F.BracketsRight = tt;
2964
+ F.Copied = gt;
2965
+ F.CountInfo = Zr;
2966
+ F.CountInfoExtra = qr;
2967
+ F.KeyName = _r;
2968
+ F.Row = $r;
2969
+ F.displayName = "JVR.JsonView";
2970
+ const zn = {
2971
+ // Structural
2972
+ "--w-rjv-font-family": _t,
2973
+ "--w-rjv-color": ze,
2974
+ "--w-rjv-background-color": Jt,
2975
+ "--w-rjv-line-color": Dt,
2976
+ "--w-rjv-arrow-color": ye,
2977
+ // Keys and Labels
2978
+ "--w-rjv-key-string": ze,
2979
+ "--w-rjv-key-number": ye,
2980
+ // Punctuation
2981
+ "--w-rjv-curlybraces-color": le,
2982
+ "--w-rjv-colon-color": le,
2983
+ "--w-rjv-brackets-color": le,
2984
+ "--w-rjv-ellipsis-color": ve,
2985
+ "--w-rjv-quotes-color": le,
2986
+ "--w-rjv-quotes-string-color": Ie,
2987
+ // Types
2988
+ "--w-rjv-type-string-color": Ie,
2989
+ "--w-rjv-type-int-color": ve,
2990
+ "--w-rjv-type-float-color": ve,
2991
+ "--w-rjv-type-bigint-color": ve,
2992
+ "--w-rjv-type-boolean-color": Ut,
2993
+ "--w-rjv-type-date-color": ve,
2994
+ "--w-rjv-type-url-color": ye,
2995
+ "--w-rjv-type-null-color": le,
2996
+ "--w-rjv-type-nan-color": le,
2997
+ "--w-rjv-type-undefined-color": le,
2998
+ // Actions
2999
+ "--w-rjv-edit-color": ye,
3000
+ "--w-rjv-info-color": Vt,
3001
+ "--w-rjv-update-color": ye,
3002
+ "--w-rjv-copied-color": ye,
3003
+ "--w-rjv-copied-success-color": Ie
3004
+ };
3005
+ function Gn({ data: l }) {
3006
+ return l ? /* @__PURE__ */ g(
3007
+ F,
3008
+ {
3009
+ value: l,
3010
+ style: zn
3011
+ }
3012
+ ) : null;
3013
+ }
3014
+ function Hn(l) {
3015
+ try {
3016
+ return [JSON.parse(l), void 0];
3017
+ } catch (n) {
3018
+ return console.warn("Failed to parse JSON string:", l, "Error:", n), [void 0, n];
3019
+ }
3020
+ }
3021
+ function ai({
3022
+ content: l,
3023
+ encoding: n,
3024
+ mimeType: s
3025
+ }) {
3026
+ const c = $t(s);
3027
+ if (c === "Img")
3028
+ return /* @__PURE__ */ g(
3029
+ "img",
3030
+ {
3031
+ src: `data:${s};base64,${l}`,
3032
+ alt: "HAR entry content",
3033
+ style: { maxWidth: "100%", maxHeight: 400 }
3034
+ }
3035
+ );
3036
+ let u = Pt(s), h = l;
3037
+ if (n === "base64" && (h = qt.Buffer.from(l, n).toString("utf8")), c === "JSON") {
3038
+ const [y, a] = Hn(h);
3039
+ if (!a)
3040
+ return /* @__PURE__ */ g(Gn, { data: y });
3041
+ u = void 0;
3042
+ }
3043
+ return /* @__PURE__ */ g(
3044
+ Lt,
3045
+ {
3046
+ lineNumbers: !0,
3047
+ wrapLines: !0,
3048
+ content: h,
3049
+ highlight: u,
3050
+ actions: /* @__PURE__ */ g(At, { copyErrorText: "Copy failed", copySuccessText: "Copied", textToCopy: h })
3051
+ }
3052
+ );
3053
+ }
3054
+ export {
3055
+ ai as default
3056
+ };