@coinbase/cdp-api-client 0.0.106 → 0.0.108

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.
@@ -1,72 +1,371 @@
1
- import { __module as a } from "./index21.js";
2
- var h;
3
- function c() {
4
- return h ? a.exports : (h = 1, function() {
5
- var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
6
- // Bit-wise rotation left
7
- rotl: function(r, t) {
8
- return r << t | r >>> 32 - t;
9
- },
10
- // Bit-wise rotation right
11
- rotr: function(r, t) {
12
- return r << 32 - t | r >>> t;
13
- },
14
- // Swap big-endian to little-endian and vice versa
15
- endian: function(r) {
16
- if (r.constructor == Number)
17
- return u.rotl(r, 8) & 16711935 | u.rotl(r, 24) & 4278255360;
18
- for (var t = 0; t < r.length; t++)
19
- r[t] = u.endian(r[t]);
20
- return r;
21
- },
22
- // Generate an array of any length of random bytes
23
- randomBytes: function(r) {
24
- for (var t = []; r > 0; r--)
25
- t.push(Math.floor(Math.random() * 256));
26
- return t;
27
- },
28
- // Convert a byte array to big-endian 32-bit words
29
- bytesToWords: function(r) {
30
- for (var t = [], n = 0, o = 0; n < r.length; n++, o += 8)
31
- t[o >>> 5] |= r[n] << 24 - o % 32;
32
- return t;
33
- },
34
- // Convert big-endian 32-bit words to a byte array
35
- wordsToBytes: function(r) {
36
- for (var t = [], n = 0; n < r.length * 32; n += 8)
37
- t.push(r[n >>> 5] >>> 24 - n % 32 & 255);
38
- return t;
39
- },
40
- // Convert a byte array to a hex string
41
- bytesToHex: function(r) {
42
- for (var t = [], n = 0; n < r.length; n++)
43
- t.push((r[n] >>> 4).toString(16)), t.push((r[n] & 15).toString(16));
44
- return t.join("");
45
- },
46
- // Convert a hex string to a byte array
47
- hexToBytes: function(r) {
48
- for (var t = [], n = 0; n < r.length; n += 2)
49
- t.push(parseInt(r.substr(n, 2), 16));
50
- return t;
51
- },
52
- // Convert a byte array to a base-64 string
53
- bytesToBase64: function(r) {
54
- for (var t = [], n = 0; n < r.length; n += 3)
55
- for (var o = r[n] << 16 | r[n + 1] << 8 | r[n + 2], e = 0; e < 4; e++)
56
- n * 8 + e * 6 <= r.length * 8 ? t.push(f.charAt(o >>> 6 * (3 - e) & 63)) : t.push("=");
57
- return t.join("");
58
- },
59
- // Convert a base-64 string to a byte array
60
- base64ToBytes: function(r) {
61
- r = r.replace(/[^A-Z0-9+\/]/ig, "");
62
- for (var t = [], n = 0, o = 0; n < r.length; o = ++n % 4)
63
- o != 0 && t.push((f.indexOf(r.charAt(n - 1)) & Math.pow(2, -2 * o + 8) - 1) << o * 2 | f.indexOf(r.charAt(n)) >>> 6 - o * 2);
64
- return t;
1
+ import { __exports as o } from "./index21.js";
2
+ var $;
3
+ function X() {
4
+ if ($) return o;
5
+ $ = 1;
6
+ var E = /* @__PURE__ */ Symbol.for("react.transitional.element"), N = /* @__PURE__ */ Symbol.for("react.portal"), M = /* @__PURE__ */ Symbol.for("react.fragment"), Y = /* @__PURE__ */ Symbol.for("react.strict_mode"), I = /* @__PURE__ */ Symbol.for("react.profiler"), L = /* @__PURE__ */ Symbol.for("react.consumer"), U = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.memo"), d = /* @__PURE__ */ Symbol.for("react.lazy"), C = Symbol.iterator;
7
+ function D(t) {
8
+ return t === null || typeof t != "object" ? null : (t = C && t[C] || t["@@iterator"], typeof t == "function" ? t : null);
9
+ }
10
+ var w = {
11
+ isMounted: function() {
12
+ return !1;
13
+ },
14
+ enqueueForceUpdate: function() {
15
+ },
16
+ enqueueReplaceState: function() {
17
+ },
18
+ enqueueSetState: function() {
19
+ }
20
+ }, A = Object.assign, S = {};
21
+ function _(t, e, n) {
22
+ this.props = t, this.context = e, this.refs = S, this.updater = n || w;
23
+ }
24
+ _.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
25
+ if (typeof t != "object" && typeof t != "function" && t != null)
26
+ throw Error(
27
+ "takes an object of state variables to update or a function which returns an object of state variables."
28
+ );
29
+ this.updater.enqueueSetState(this, t, e, "setState");
30
+ }, _.prototype.forceUpdate = function(t) {
31
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
32
+ };
33
+ function h() {
34
+ }
35
+ h.prototype = _.prototype;
36
+ function y(t, e, n) {
37
+ this.props = t, this.context = e, this.refs = S, this.updater = n || w;
38
+ }
39
+ var v = y.prototype = new h();
40
+ v.constructor = y, A(v, _.prototype), v.isPureReactComponent = !0;
41
+ var g = Array.isArray, i = { H: null, A: null, T: null, S: null, V: null }, O = Object.prototype.hasOwnProperty;
42
+ function R(t, e, n, r, s, f) {
43
+ return n = f.ref, {
44
+ $$typeof: E,
45
+ type: t,
46
+ key: e,
47
+ ref: n !== void 0 ? n : null,
48
+ props: f
49
+ };
50
+ }
51
+ function q(t, e) {
52
+ return R(
53
+ t.type,
54
+ e,
55
+ void 0,
56
+ void 0,
57
+ void 0,
58
+ t.props
59
+ );
60
+ }
61
+ function T(t) {
62
+ return typeof t == "object" && t !== null && t.$$typeof === E;
63
+ }
64
+ function z(t) {
65
+ var e = { "=": "=0", ":": "=2" };
66
+ return "$" + t.replace(/[=:]/g, function(n) {
67
+ return e[n];
68
+ });
69
+ }
70
+ var H = /\/+/g;
71
+ function m(t, e) {
72
+ return typeof t == "object" && t !== null && t.key != null ? z("" + t.key) : e.toString(36);
73
+ }
74
+ function j() {
75
+ }
76
+ function G(t) {
77
+ switch (t.status) {
78
+ case "fulfilled":
79
+ return t.value;
80
+ case "rejected":
81
+ throw t.reason;
82
+ default:
83
+ switch (typeof t.status == "string" ? t.then(j, j) : (t.status = "pending", t.then(
84
+ function(e) {
85
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
86
+ },
87
+ function(e) {
88
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
89
+ }
90
+ )), t.status) {
91
+ case "fulfilled":
92
+ return t.value;
93
+ case "rejected":
94
+ throw t.reason;
95
+ }
96
+ }
97
+ throw t;
98
+ }
99
+ function a(t, e, n, r, s) {
100
+ var f = typeof t;
101
+ (f === "undefined" || f === "boolean") && (t = null);
102
+ var u = !1;
103
+ if (t === null) u = !0;
104
+ else
105
+ switch (f) {
106
+ case "bigint":
107
+ case "string":
108
+ case "number":
109
+ u = !0;
110
+ break;
111
+ case "object":
112
+ switch (t.$$typeof) {
113
+ case E:
114
+ case N:
115
+ u = !0;
116
+ break;
117
+ case d:
118
+ return u = t._init, a(
119
+ u(t._payload),
120
+ e,
121
+ n,
122
+ r,
123
+ s
124
+ );
125
+ }
65
126
  }
127
+ if (u)
128
+ return s = s(t), u = r === "" ? "." + m(t, 0) : r, g(s) ? (n = "", u != null && (n = u.replace(H, "$&/") + "/"), a(s, e, n, "", function(W) {
129
+ return W;
130
+ })) : s != null && (T(s) && (s = q(
131
+ s,
132
+ n + (s.key == null || t && t.key === s.key ? "" : ("" + s.key).replace(
133
+ H,
134
+ "$&/"
135
+ ) + "/") + u
136
+ )), e.push(s)), 1;
137
+ u = 0;
138
+ var p = r === "" ? "." : r + ":";
139
+ if (g(t))
140
+ for (var c = 0; c < t.length; c++)
141
+ r = t[c], f = p + m(r, c), u += a(
142
+ r,
143
+ e,
144
+ n,
145
+ f,
146
+ s
147
+ );
148
+ else if (c = D(t), typeof c == "function")
149
+ for (t = c.call(t), c = 0; !(r = t.next()).done; )
150
+ r = r.value, f = p + m(r, c++), u += a(
151
+ r,
152
+ e,
153
+ n,
154
+ f,
155
+ s
156
+ );
157
+ else if (f === "object") {
158
+ if (typeof t.then == "function")
159
+ return a(
160
+ G(t),
161
+ e,
162
+ n,
163
+ r,
164
+ s
165
+ );
166
+ throw e = String(t), Error(
167
+ "Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."
168
+ );
169
+ }
170
+ return u;
171
+ }
172
+ function l(t, e, n) {
173
+ if (t == null) return t;
174
+ var r = [], s = 0;
175
+ return a(t, r, "", "", function(f) {
176
+ return e.call(n, f, s++);
177
+ }), r;
178
+ }
179
+ function K(t) {
180
+ if (t._status === -1) {
181
+ var e = t._result;
182
+ e = e(), e.then(
183
+ function(n) {
184
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = n);
185
+ },
186
+ function(n) {
187
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = n);
188
+ }
189
+ ), t._status === -1 && (t._status = 0, t._result = e);
190
+ }
191
+ if (t._status === 1) return t._result.default;
192
+ throw t._result;
193
+ }
194
+ var P = typeof reportError == "function" ? reportError : function(t) {
195
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
196
+ var e = new window.ErrorEvent("error", {
197
+ bubbles: !0,
198
+ cancelable: !0,
199
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
200
+ error: t
201
+ });
202
+ if (!window.dispatchEvent(e)) return;
203
+ } else if (typeof process == "object" && typeof process.emit == "function") {
204
+ process.emit("uncaughtException", t);
205
+ return;
206
+ }
207
+ console.error(t);
208
+ };
209
+ function B() {
210
+ }
211
+ return o.Children = {
212
+ map: l,
213
+ forEach: function(t, e, n) {
214
+ l(
215
+ t,
216
+ function() {
217
+ e.apply(this, arguments);
218
+ },
219
+ n
220
+ );
221
+ },
222
+ count: function(t) {
223
+ var e = 0;
224
+ return l(t, function() {
225
+ e++;
226
+ }), e;
227
+ },
228
+ toArray: function(t) {
229
+ return l(t, function(e) {
230
+ return e;
231
+ }) || [];
232
+ },
233
+ only: function(t) {
234
+ if (!T(t))
235
+ throw Error(
236
+ "React.Children.only expected to receive a single React element child."
237
+ );
238
+ return t;
239
+ }
240
+ }, o.Component = _, o.Fragment = M, o.Profiler = I, o.PureComponent = y, o.StrictMode = Y, o.Suspense = x, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, o.__COMPILER_RUNTIME = {
241
+ __proto__: null,
242
+ c: function(t) {
243
+ return i.H.useMemoCache(t);
244
+ }
245
+ }, o.cache = function(t) {
246
+ return function() {
247
+ return t.apply(null, arguments);
248
+ };
249
+ }, o.cloneElement = function(t, e, n) {
250
+ if (t == null)
251
+ throw Error(
252
+ "The argument must be a React element, but you passed " + t + "."
253
+ );
254
+ var r = A({}, t.props), s = t.key, f = void 0;
255
+ if (e != null)
256
+ for (u in e.ref !== void 0 && (f = void 0), e.key !== void 0 && (s = "" + e.key), e)
257
+ !O.call(e, u) || u === "key" || u === "__self" || u === "__source" || u === "ref" && e.ref === void 0 || (r[u] = e[u]);
258
+ var u = arguments.length - 2;
259
+ if (u === 1) r.children = n;
260
+ else if (1 < u) {
261
+ for (var p = Array(u), c = 0; c < u; c++)
262
+ p[c] = arguments[c + 2];
263
+ r.children = p;
264
+ }
265
+ return R(t.type, s, void 0, void 0, f, r);
266
+ }, o.createContext = function(t) {
267
+ return t = {
268
+ $$typeof: U,
269
+ _currentValue: t,
270
+ _currentValue2: t,
271
+ _threadCount: 0,
272
+ Provider: null,
273
+ Consumer: null
274
+ }, t.Provider = t, t.Consumer = {
275
+ $$typeof: L,
276
+ _context: t
277
+ }, t;
278
+ }, o.createElement = function(t, e, n) {
279
+ var r, s = {}, f = null;
280
+ if (e != null)
281
+ for (r in e.key !== void 0 && (f = "" + e.key), e)
282
+ O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (s[r] = e[r]);
283
+ var u = arguments.length - 2;
284
+ if (u === 1) s.children = n;
285
+ else if (1 < u) {
286
+ for (var p = Array(u), c = 0; c < u; c++)
287
+ p[c] = arguments[c + 2];
288
+ s.children = p;
289
+ }
290
+ if (t && t.defaultProps)
291
+ for (r in u = t.defaultProps, u)
292
+ s[r] === void 0 && (s[r] = u[r]);
293
+ return R(t, f, void 0, void 0, null, s);
294
+ }, o.createRef = function() {
295
+ return { current: null };
296
+ }, o.forwardRef = function(t) {
297
+ return { $$typeof: k, render: t };
298
+ }, o.isValidElement = T, o.lazy = function(t) {
299
+ return {
300
+ $$typeof: d,
301
+ _payload: { _status: -1, _result: t },
302
+ _init: K
303
+ };
304
+ }, o.memo = function(t, e) {
305
+ return {
306
+ $$typeof: b,
307
+ type: t,
308
+ compare: e === void 0 ? null : e
66
309
  };
67
- a.exports = u;
68
- }(), a.exports);
310
+ }, o.startTransition = function(t) {
311
+ var e = i.T, n = {};
312
+ i.T = n;
313
+ try {
314
+ var r = t(), s = i.S;
315
+ s !== null && s(n, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(B, P);
316
+ } catch (f) {
317
+ P(f);
318
+ } finally {
319
+ i.T = e;
320
+ }
321
+ }, o.unstable_useCacheRefresh = function() {
322
+ return i.H.useCacheRefresh();
323
+ }, o.use = function(t) {
324
+ return i.H.use(t);
325
+ }, o.useActionState = function(t, e, n) {
326
+ return i.H.useActionState(t, e, n);
327
+ }, o.useCallback = function(t, e) {
328
+ return i.H.useCallback(t, e);
329
+ }, o.useContext = function(t) {
330
+ return i.H.useContext(t);
331
+ }, o.useDebugValue = function() {
332
+ }, o.useDeferredValue = function(t, e) {
333
+ return i.H.useDeferredValue(t, e);
334
+ }, o.useEffect = function(t, e, n) {
335
+ var r = i.H;
336
+ if (typeof n == "function")
337
+ throw Error(
338
+ "useEffect CRUD overload is not enabled in this build of React."
339
+ );
340
+ return r.useEffect(t, e);
341
+ }, o.useId = function() {
342
+ return i.H.useId();
343
+ }, o.useImperativeHandle = function(t, e, n) {
344
+ return i.H.useImperativeHandle(t, e, n);
345
+ }, o.useInsertionEffect = function(t, e) {
346
+ return i.H.useInsertionEffect(t, e);
347
+ }, o.useLayoutEffect = function(t, e) {
348
+ return i.H.useLayoutEffect(t, e);
349
+ }, o.useMemo = function(t, e) {
350
+ return i.H.useMemo(t, e);
351
+ }, o.useOptimistic = function(t, e) {
352
+ return i.H.useOptimistic(t, e);
353
+ }, o.useReducer = function(t, e, n) {
354
+ return i.H.useReducer(t, e, n);
355
+ }, o.useRef = function(t) {
356
+ return i.H.useRef(t);
357
+ }, o.useState = function(t) {
358
+ return i.H.useState(t);
359
+ }, o.useSyncExternalStore = function(t, e, n) {
360
+ return i.H.useSyncExternalStore(
361
+ t,
362
+ e,
363
+ n
364
+ );
365
+ }, o.useTransition = function() {
366
+ return i.H.useTransition();
367
+ }, o.version = "19.1.2", o;
69
368
  }
70
369
  export {
71
- c as __require
370
+ X as __require
72
371
  };