@coinbase/cdp-core 0.0.61 → 0.0.62

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 (299) hide show
  1. package/dist/esm/index.native100.js +10 -364
  2. package/dist/esm/index.native106.js +5 -2
  3. package/dist/esm/index.native107.js +2 -5
  4. package/dist/esm/index.native108.js +4 -18
  5. package/dist/esm/index.native109.js +18 -7
  6. package/dist/esm/index.native110.js +7 -3
  7. package/dist/esm/index.native111.js +3 -19
  8. package/dist/esm/index.native112.js +19 -8
  9. package/dist/esm/index.native113.js +8 -7
  10. package/dist/esm/index.native114.js +7 -71
  11. package/dist/esm/index.native115.js +70 -17
  12. package/dist/esm/index.native116.js +18 -3
  13. package/dist/esm/index.native117.js +3 -4
  14. package/dist/esm/index.native118.js +4 -4
  15. package/dist/esm/index.native119.js +4 -4
  16. package/dist/esm/index.native120.js +4 -19
  17. package/dist/esm/index.native121.js +15 -48
  18. package/dist/esm/index.native122.js +52 -17
  19. package/dist/esm/index.native123.js +17 -20
  20. package/dist/esm/index.native124.js +20 -8
  21. package/dist/esm/index.native125.js +8 -30
  22. package/dist/esm/index.native126.js +30 -7
  23. package/dist/esm/index.native127.js +7 -20
  24. package/dist/esm/index.native128.js +18 -18
  25. package/dist/esm/index.native129.js +21 -5
  26. package/dist/esm/index.native130.js +5 -48
  27. package/dist/esm/index.native131.js +45 -17
  28. package/dist/esm/index.native132.js +20 -80
  29. package/dist/esm/index.native133.js +79 -103
  30. package/dist/esm/index.native134.js +101 -30
  31. package/dist/esm/index.native135.js +32 -6
  32. package/dist/esm/index.native136.js +6 -4
  33. package/dist/esm/index.native137.js +1 -1
  34. package/dist/esm/index.native145.js +2 -47
  35. package/dist/esm/index.native146.js +108 -7
  36. package/dist/esm/index.native148.js +42 -373
  37. package/dist/esm/index.native149.js +7 -832
  38. package/dist/esm/index.native150.js +2 -39
  39. package/dist/esm/index.native151.js +378 -2
  40. package/dist/esm/index.native152.js +832 -69
  41. package/dist/esm/index.native153.js +37 -33
  42. package/dist/esm/index.native154.js +2 -21
  43. package/dist/esm/index.native155.js +70 -5
  44. package/dist/esm/index.native156.js +35 -2
  45. package/dist/esm/index.native157.js +20 -108
  46. package/dist/esm/index.native158.js +5 -2
  47. package/dist/esm/index.native167.js +1 -1
  48. package/dist/esm/index.native25.js +2 -2
  49. package/dist/esm/index.native26.js +1 -1
  50. package/dist/esm/index.native36.js +12 -12
  51. package/dist/esm/index.native41.js +2 -2
  52. package/dist/esm/index.native48.js +1 -1
  53. package/dist/esm/index.native49.js +1 -1
  54. package/dist/esm/index.native51.js +3 -3
  55. package/dist/esm/index.native52.js +12 -12
  56. package/dist/esm/index.native53.js +12 -12
  57. package/dist/esm/index.native57.js +2 -4
  58. package/dist/esm/index.native58.js +66 -2
  59. package/dist/esm/index.native59.js +364 -17
  60. package/dist/esm/index.native60.js +2 -46
  61. package/dist/esm/index.native61.js +2 -14
  62. package/dist/esm/index.native62.js +16 -54
  63. package/dist/esm/index.native63.js +45 -6
  64. package/dist/esm/index.native64.js +13 -21
  65. package/dist/esm/index.native65.js +55 -11
  66. package/dist/esm/index.native66.js +6 -3
  67. package/dist/esm/index.native67.js +21 -3
  68. package/dist/esm/index.native68.js +11 -34
  69. package/dist/esm/index.native69.js +3 -12
  70. package/dist/esm/index.native70.js +3 -4
  71. package/dist/esm/index.native71.js +31 -25
  72. package/dist/esm/index.native72.js +12 -6
  73. package/dist/esm/index.native73.js +4 -42
  74. package/dist/esm/index.native74.js +27 -54
  75. package/dist/esm/index.native75.js +6 -127
  76. package/dist/esm/index.native76.js +40 -21
  77. package/dist/esm/index.native77.js +53 -10
  78. package/dist/esm/index.native78.js +125 -102
  79. package/dist/esm/index.native79.js +23 -6
  80. package/dist/esm/index.native80.js +13 -3
  81. package/dist/esm/index.native81.js +104 -14
  82. package/dist/esm/index.native82.js +6 -34
  83. package/dist/esm/index.native83.js +3 -79
  84. package/dist/esm/index.native84.js +15 -2
  85. package/dist/esm/index.native85.js +35 -2
  86. package/dist/esm/index.native86.js +77 -11
  87. package/dist/esm/index.native87.js +2 -38
  88. package/dist/esm/index.native88.js +2 -7
  89. package/dist/esm/index.native89.js +10 -32
  90. package/dist/esm/index.native90.js +37 -8
  91. package/dist/esm/index.native91.js +5 -9
  92. package/dist/esm/index.native92.js +34 -11
  93. package/dist/esm/index.native93.js +8 -13
  94. package/dist/esm/index.native94.js +9 -17
  95. package/dist/esm/index.native95.js +11 -5
  96. package/dist/esm/index.native96.js +14 -5
  97. package/dist/esm/index.native97.js +18 -10
  98. package/dist/esm/index.native98.js +8 -2
  99. package/dist/esm/index.native99.js +5 -66
  100. package/dist/esm/index.web100.js +54 -4
  101. package/dist/esm/index.web101.js +10 -54
  102. package/dist/esm/index.web102.js +2 -11
  103. package/dist/esm/index.web103.js +45 -2
  104. package/dist/esm/index.web104.js +13 -44
  105. package/dist/esm/index.web105.js +4 -13
  106. package/dist/esm/index.web129.js +2 -2
  107. package/dist/esm/index.web134.js +6 -32
  108. package/dist/esm/index.web135.js +32 -6
  109. package/dist/esm/index.web137.js +20 -3
  110. package/dist/esm/index.web138.js +10 -2
  111. package/dist/esm/index.web139.js +18 -107
  112. package/dist/esm/index.web140.js +94 -2
  113. package/dist/esm/index.web141.js +20 -20
  114. package/dist/esm/index.web142.js +117 -9
  115. package/dist/esm/index.web143.js +4 -20
  116. package/dist/esm/index.web144.js +2 -94
  117. package/dist/esm/index.web145.js +109 -21
  118. package/dist/esm/index.web146.js +2 -118
  119. package/dist/esm/index.web147.js +1 -1
  120. package/dist/esm/index.web148.js +7 -38
  121. package/dist/esm/index.web150.js +375 -67
  122. package/dist/esm/index.web151.js +832 -34
  123. package/dist/esm/index.web152.js +38 -20
  124. package/dist/esm/index.web153.js +2 -8
  125. package/dist/esm/index.web154.js +70 -2
  126. package/dist/esm/index.web155.js +30 -373
  127. package/dist/esm/index.web156.js +20 -832
  128. package/dist/esm/index.web159.js +1 -1
  129. package/dist/esm/index.web164.js +1 -1
  130. package/dist/esm/index.web165.js +1 -1
  131. package/dist/esm/index.web167.js +2 -2
  132. package/dist/esm/index.web168.js +2 -2
  133. package/dist/esm/index.web169.js +2 -2
  134. package/dist/esm/index.web24.js +1 -1
  135. package/dist/esm/index.web37.js +3 -3
  136. package/dist/esm/index.web43.js +1 -1
  137. package/dist/esm/index.web44.js +3 -3
  138. package/dist/esm/index.web49.js +2 -377
  139. package/dist/esm/index.web50.js +379 -2
  140. package/dist/esm/index.web51.js +28 -65
  141. package/dist/esm/index.web52.js +28 -364
  142. package/dist/esm/index.web53.js +17 -2
  143. package/dist/esm/index.web54.js +22 -28
  144. package/dist/esm/index.web55.js +50 -28
  145. package/dist/esm/index.web56.js +2 -19
  146. package/dist/esm/index.web57.js +63 -20
  147. package/dist/esm/index.web58.js +351 -37
  148. package/dist/esm/index.web94.js +1 -1
  149. package/dist/esm/index.web95.js +1 -1
  150. package/dist/native/index.native100.js +10 -364
  151. package/dist/native/index.native106.js +5 -2
  152. package/dist/native/index.native107.js +2 -5
  153. package/dist/native/index.native108.js +4 -18
  154. package/dist/native/index.native109.js +18 -7
  155. package/dist/native/index.native110.js +7 -3
  156. package/dist/native/index.native111.js +3 -19
  157. package/dist/native/index.native112.js +19 -8
  158. package/dist/native/index.native113.js +8 -7
  159. package/dist/native/index.native114.js +7 -71
  160. package/dist/native/index.native115.js +70 -17
  161. package/dist/native/index.native116.js +18 -3
  162. package/dist/native/index.native117.js +3 -4
  163. package/dist/native/index.native118.js +4 -4
  164. package/dist/native/index.native119.js +4 -4
  165. package/dist/native/index.native120.js +4 -19
  166. package/dist/native/index.native121.js +15 -48
  167. package/dist/native/index.native122.js +52 -17
  168. package/dist/native/index.native123.js +17 -20
  169. package/dist/native/index.native124.js +20 -8
  170. package/dist/native/index.native125.js +8 -30
  171. package/dist/native/index.native126.js +30 -7
  172. package/dist/native/index.native127.js +7 -20
  173. package/dist/native/index.native128.js +18 -18
  174. package/dist/native/index.native129.js +21 -5
  175. package/dist/native/index.native130.js +5 -48
  176. package/dist/native/index.native131.js +45 -17
  177. package/dist/native/index.native132.js +20 -80
  178. package/dist/native/index.native133.js +79 -103
  179. package/dist/native/index.native134.js +101 -30
  180. package/dist/native/index.native135.js +32 -6
  181. package/dist/native/index.native136.js +6 -4
  182. package/dist/native/index.native137.js +1 -1
  183. package/dist/native/index.native145.js +2 -47
  184. package/dist/native/index.native146.js +108 -7
  185. package/dist/native/index.native148.js +42 -373
  186. package/dist/native/index.native149.js +7 -832
  187. package/dist/native/index.native150.js +2 -39
  188. package/dist/native/index.native151.js +378 -2
  189. package/dist/native/index.native152.js +832 -69
  190. package/dist/native/index.native153.js +37 -33
  191. package/dist/native/index.native154.js +2 -21
  192. package/dist/native/index.native155.js +70 -5
  193. package/dist/native/index.native156.js +35 -2
  194. package/dist/native/index.native157.js +20 -108
  195. package/dist/native/index.native158.js +5 -2
  196. package/dist/native/index.native167.js +1 -1
  197. package/dist/native/index.native25.js +2 -2
  198. package/dist/native/index.native26.js +1 -1
  199. package/dist/native/index.native36.js +12 -12
  200. package/dist/native/index.native41.js +2 -2
  201. package/dist/native/index.native48.js +1 -1
  202. package/dist/native/index.native49.js +1 -1
  203. package/dist/native/index.native51.js +3 -3
  204. package/dist/native/index.native52.js +12 -12
  205. package/dist/native/index.native53.js +12 -12
  206. package/dist/native/index.native57.js +2 -4
  207. package/dist/native/index.native58.js +66 -2
  208. package/dist/native/index.native59.js +364 -17
  209. package/dist/native/index.native60.js +2 -46
  210. package/dist/native/index.native61.js +2 -14
  211. package/dist/native/index.native62.js +16 -54
  212. package/dist/native/index.native63.js +45 -6
  213. package/dist/native/index.native64.js +13 -21
  214. package/dist/native/index.native65.js +55 -11
  215. package/dist/native/index.native66.js +6 -3
  216. package/dist/native/index.native67.js +21 -3
  217. package/dist/native/index.native68.js +11 -34
  218. package/dist/native/index.native69.js +3 -12
  219. package/dist/native/index.native70.js +3 -4
  220. package/dist/native/index.native71.js +31 -25
  221. package/dist/native/index.native72.js +12 -6
  222. package/dist/native/index.native73.js +4 -42
  223. package/dist/native/index.native74.js +27 -54
  224. package/dist/native/index.native75.js +6 -127
  225. package/dist/native/index.native76.js +40 -21
  226. package/dist/native/index.native77.js +53 -10
  227. package/dist/native/index.native78.js +125 -102
  228. package/dist/native/index.native79.js +23 -6
  229. package/dist/native/index.native80.js +13 -3
  230. package/dist/native/index.native81.js +104 -14
  231. package/dist/native/index.native82.js +6 -34
  232. package/dist/native/index.native83.js +3 -79
  233. package/dist/native/index.native84.js +15 -2
  234. package/dist/native/index.native85.js +35 -2
  235. package/dist/native/index.native86.js +77 -11
  236. package/dist/native/index.native87.js +2 -38
  237. package/dist/native/index.native88.js +2 -7
  238. package/dist/native/index.native89.js +10 -32
  239. package/dist/native/index.native90.js +37 -8
  240. package/dist/native/index.native91.js +5 -9
  241. package/dist/native/index.native92.js +34 -11
  242. package/dist/native/index.native93.js +8 -13
  243. package/dist/native/index.native94.js +9 -17
  244. package/dist/native/index.native95.js +11 -5
  245. package/dist/native/index.native96.js +14 -5
  246. package/dist/native/index.native97.js +18 -10
  247. package/dist/native/index.native98.js +8 -2
  248. package/dist/native/index.native99.js +5 -66
  249. package/dist/web/index.web100.js +54 -4
  250. package/dist/web/index.web101.js +10 -54
  251. package/dist/web/index.web102.js +2 -11
  252. package/dist/web/index.web103.js +45 -2
  253. package/dist/web/index.web104.js +13 -44
  254. package/dist/web/index.web105.js +4 -13
  255. package/dist/web/index.web129.js +2 -2
  256. package/dist/web/index.web134.js +6 -32
  257. package/dist/web/index.web135.js +32 -6
  258. package/dist/web/index.web137.js +20 -3
  259. package/dist/web/index.web138.js +10 -2
  260. package/dist/web/index.web139.js +18 -107
  261. package/dist/web/index.web140.js +94 -2
  262. package/dist/web/index.web141.js +20 -20
  263. package/dist/web/index.web142.js +117 -9
  264. package/dist/web/index.web143.js +4 -20
  265. package/dist/web/index.web144.js +2 -94
  266. package/dist/web/index.web145.js +109 -21
  267. package/dist/web/index.web146.js +2 -118
  268. package/dist/web/index.web147.js +1 -1
  269. package/dist/web/index.web148.js +7 -38
  270. package/dist/web/index.web150.js +375 -67
  271. package/dist/web/index.web151.js +832 -34
  272. package/dist/web/index.web152.js +38 -20
  273. package/dist/web/index.web153.js +2 -8
  274. package/dist/web/index.web154.js +70 -2
  275. package/dist/web/index.web155.js +30 -373
  276. package/dist/web/index.web156.js +20 -832
  277. package/dist/web/index.web159.js +1 -1
  278. package/dist/web/index.web164.js +1 -1
  279. package/dist/web/index.web165.js +1 -1
  280. package/dist/web/index.web167.js +2 -2
  281. package/dist/web/index.web168.js +2 -2
  282. package/dist/web/index.web169.js +2 -2
  283. package/dist/web/index.web24.js +1 -1
  284. package/dist/web/index.web37.js +3 -3
  285. package/dist/web/index.web43.js +1 -1
  286. package/dist/web/index.web44.js +3 -3
  287. package/dist/web/index.web49.js +2 -377
  288. package/dist/web/index.web50.js +379 -2
  289. package/dist/web/index.web51.js +28 -65
  290. package/dist/web/index.web52.js +28 -364
  291. package/dist/web/index.web53.js +17 -2
  292. package/dist/web/index.web54.js +22 -28
  293. package/dist/web/index.web55.js +50 -28
  294. package/dist/web/index.web56.js +2 -19
  295. package/dist/web/index.web57.js +63 -20
  296. package/dist/web/index.web58.js +351 -37
  297. package/dist/web/index.web94.js +1 -1
  298. package/dist/web/index.web95.js +1 -1
  299. package/package.json +2 -2
@@ -1,10 +1,111 @@
1
- import { __module as e } from "./index.native147.js";
2
- import { __require as o } from "./index.native148.js";
3
- import { __require as t } from "./index.native149.js";
4
- var r;
5
- function s() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
1
+ import { __module as x } from "./index.native147.js";
2
+ var w;
3
+ function O() {
4
+ return w ? x.exports : (w = 1, function(d) {
5
+ var g = Object.prototype.hasOwnProperty, c = "~";
6
+ function h() {
7
+ }
8
+ Object.create && (h.prototype = /* @__PURE__ */ Object.create(null), new h().__proto__ || (c = !1));
9
+ function b(s, t, n) {
10
+ this.fn = s, this.context = t, this.once = n || !1;
11
+ }
12
+ function m(s, t, n, r, l) {
13
+ if (typeof n != "function")
14
+ throw new TypeError("The listener must be a function");
15
+ var u = new b(n, r || s, l), o = c ? c + t : t;
16
+ return s._events[o] ? s._events[o].fn ? s._events[o] = [s._events[o], u] : s._events[o].push(u) : (s._events[o] = u, s._eventsCount++), s;
17
+ }
18
+ function y(s, t) {
19
+ --s._eventsCount === 0 ? s._events = new h() : delete s._events[t];
20
+ }
21
+ function f() {
22
+ this._events = new h(), this._eventsCount = 0;
23
+ }
24
+ f.prototype.eventNames = function() {
25
+ var t = [], n, r;
26
+ if (this._eventsCount === 0) return t;
27
+ for (r in n = this._events)
28
+ g.call(n, r) && t.push(c ? r.slice(1) : r);
29
+ return Object.getOwnPropertySymbols ? t.concat(Object.getOwnPropertySymbols(n)) : t;
30
+ }, f.prototype.listeners = function(t) {
31
+ var n = c ? c + t : t, r = this._events[n];
32
+ if (!r) return [];
33
+ if (r.fn) return [r.fn];
34
+ for (var l = 0, u = r.length, o = new Array(u); l < u; l++)
35
+ o[l] = r[l].fn;
36
+ return o;
37
+ }, f.prototype.listenerCount = function(t) {
38
+ var n = c ? c + t : t, r = this._events[n];
39
+ return r ? r.fn ? 1 : r.length : 0;
40
+ }, f.prototype.emit = function(t, n, r, l, u, o) {
41
+ var a = c ? c + t : t;
42
+ if (!this._events[a]) return !1;
43
+ var e = this._events[a], p = arguments.length, v, i;
44
+ if (e.fn) {
45
+ switch (e.once && this.removeListener(t, e.fn, void 0, !0), p) {
46
+ case 1:
47
+ return e.fn.call(e.context), !0;
48
+ case 2:
49
+ return e.fn.call(e.context, n), !0;
50
+ case 3:
51
+ return e.fn.call(e.context, n, r), !0;
52
+ case 4:
53
+ return e.fn.call(e.context, n, r, l), !0;
54
+ case 5:
55
+ return e.fn.call(e.context, n, r, l, u), !0;
56
+ case 6:
57
+ return e.fn.call(e.context, n, r, l, u, o), !0;
58
+ }
59
+ for (i = 1, v = new Array(p - 1); i < p; i++)
60
+ v[i - 1] = arguments[i];
61
+ e.fn.apply(e.context, v);
62
+ } else {
63
+ var E = e.length, _;
64
+ for (i = 0; i < E; i++)
65
+ switch (e[i].once && this.removeListener(t, e[i].fn, void 0, !0), p) {
66
+ case 1:
67
+ e[i].fn.call(e[i].context);
68
+ break;
69
+ case 2:
70
+ e[i].fn.call(e[i].context, n);
71
+ break;
72
+ case 3:
73
+ e[i].fn.call(e[i].context, n, r);
74
+ break;
75
+ case 4:
76
+ e[i].fn.call(e[i].context, n, r, l);
77
+ break;
78
+ default:
79
+ if (!v) for (_ = 1, v = new Array(p - 1); _ < p; _++)
80
+ v[_ - 1] = arguments[_];
81
+ e[i].fn.apply(e[i].context, v);
82
+ }
83
+ }
84
+ return !0;
85
+ }, f.prototype.on = function(t, n, r) {
86
+ return m(this, t, n, r, !1);
87
+ }, f.prototype.once = function(t, n, r) {
88
+ return m(this, t, n, r, !0);
89
+ }, f.prototype.removeListener = function(t, n, r, l) {
90
+ var u = c ? c + t : t;
91
+ if (!this._events[u]) return this;
92
+ if (!n)
93
+ return y(this, u), this;
94
+ var o = this._events[u];
95
+ if (o.fn)
96
+ o.fn === n && (!l || o.once) && (!r || o.context === r) && y(this, u);
97
+ else {
98
+ for (var a = 0, e = [], p = o.length; a < p; a++)
99
+ (o[a].fn !== n || l && !o[a].once || r && o[a].context !== r) && e.push(o[a]);
100
+ e.length ? this._events[u] = e.length === 1 ? e[0] : e : y(this, u);
101
+ }
102
+ return this;
103
+ }, f.prototype.removeAllListeners = function(t) {
104
+ var n;
105
+ return t ? (n = c ? c + t : t, this._events[n] && y(this, n)) : (this._events = new h(), this._eventsCount = 0), this;
106
+ }, f.prototype.off = f.prototype.removeListener, f.prototype.addListener = f.prototype.on, f.prefixed = c, f.EventEmitter = f, d.exports = f;
107
+ }(x), x.exports);
7
108
  }
8
109
  export {
9
- s as __require
110
+ O as __require
10
111
  };
@@ -1,380 +1,49 @@
1
- import { __exports as o } from "./index.native168.js";
2
- /**
3
- * @license React
4
- * react.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- var $;
12
- function X() {
13
- if ($) return o;
14
- $ = 1;
15
- var E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), b = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), C = Symbol.iterator;
16
- function D(t) {
17
- return t === null || typeof t != "object" ? null : (t = C && t[C] || t["@@iterator"], typeof t == "function" ? t : null);
18
- }
19
- var w = {
20
- isMounted: function() {
21
- return !1;
22
- },
23
- enqueueForceUpdate: function() {
24
- },
25
- enqueueReplaceState: function() {
26
- },
27
- enqueueSetState: function() {
28
- }
29
- }, A = Object.assign, S = {};
30
- function _(t, e, n) {
31
- this.props = t, this.context = e, this.refs = S, this.updater = n || w;
32
- }
33
- _.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
34
- if (typeof t != "object" && typeof t != "function" && t != null)
35
- throw Error(
36
- "takes an object of state variables to update or a function which returns an object of state variables."
37
- );
38
- this.updater.enqueueSetState(this, t, e, "setState");
39
- }, _.prototype.forceUpdate = function(t) {
40
- this.updater.enqueueForceUpdate(this, t, "forceUpdate");
41
- };
42
- function h() {
43
- }
44
- h.prototype = _.prototype;
45
- function y(t, e, n) {
46
- this.props = t, this.context = e, this.refs = S, this.updater = n || w;
47
- }
48
- var v = y.prototype = new h();
49
- v.constructor = y, A(v, _.prototype), v.isPureReactComponent = !0;
50
- var g = Array.isArray, i = { H: null, A: null, T: null, S: null, V: null }, O = Object.prototype.hasOwnProperty;
51
- function R(t, e, n, r, s, f) {
52
- return n = f.ref, {
53
- $$typeof: E,
54
- type: t,
55
- key: e,
56
- ref: n !== void 0 ? n : null,
57
- props: f
58
- };
59
- }
60
- function q(t, e) {
61
- return R(
62
- t.type,
63
- e,
64
- void 0,
65
- void 0,
66
- void 0,
67
- t.props
68
- );
69
- }
70
- function T(t) {
71
- return typeof t == "object" && t !== null && t.$$typeof === E;
72
- }
73
- function z(t) {
74
- var e = { "=": "=0", ":": "=2" };
75
- return "$" + t.replace(/[=:]/g, function(n) {
76
- return e[n];
1
+ import { BaseError as f } from "./index.native58.js";
2
+ import { pad as g } from "./index.native167.js";
3
+ function m(t, i = {}) {
4
+ const { signed: r, size: e } = i, o = BigInt(t);
5
+ let n;
6
+ e ? r ? n = (1n << BigInt(e) * 8n - 1n) - 1n : n = 2n ** (BigInt(e) * 8n) - 1n : typeof t == "number" && (n = BigInt(Number.MAX_SAFE_INTEGER));
7
+ const u = typeof n == "bigint" && r ? -n - 1n : 0;
8
+ if (n && o > n || o < u) {
9
+ const s = typeof t == "bigint" ? "n" : "";
10
+ throw new d({
11
+ max: n ? `${n}${s}` : void 0,
12
+ min: `${u}${s}`,
13
+ signed: r,
14
+ size: e,
15
+ value: `${t}${s}`
77
16
  });
78
17
  }
79
- var H = /\/+/g;
80
- function m(t, e) {
81
- return typeof t == "object" && t !== null && t.key != null ? z("" + t.key) : e.toString(36);
82
- }
83
- function j() {
84
- }
85
- function G(t) {
86
- switch (t.status) {
87
- case "fulfilled":
88
- return t.value;
89
- case "rejected":
90
- throw t.reason;
91
- default:
92
- switch (typeof t.status == "string" ? t.then(j, j) : (t.status = "pending", t.then(
93
- function(e) {
94
- t.status === "pending" && (t.status = "fulfilled", t.value = e);
95
- },
96
- function(e) {
97
- t.status === "pending" && (t.status = "rejected", t.reason = e);
98
- }
99
- )), t.status) {
100
- case "fulfilled":
101
- return t.value;
102
- case "rejected":
103
- throw t.reason;
104
- }
105
- }
106
- throw t;
107
- }
108
- function a(t, e, n, r, s) {
109
- var f = typeof t;
110
- (f === "undefined" || f === "boolean") && (t = null);
111
- var u = !1;
112
- if (t === null) u = !0;
113
- else
114
- switch (f) {
115
- case "bigint":
116
- case "string":
117
- case "number":
118
- u = !0;
119
- break;
120
- case "object":
121
- switch (t.$$typeof) {
122
- case E:
123
- case N:
124
- u = !0;
125
- break;
126
- case d:
127
- return u = t._init, a(
128
- u(t._payload),
129
- e,
130
- n,
131
- r,
132
- s
133
- );
134
- }
135
- }
136
- if (u)
137
- 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) {
138
- return W;
139
- })) : s != null && (T(s) && (s = q(
140
- s,
141
- n + (s.key == null || t && t.key === s.key ? "" : ("" + s.key).replace(
142
- H,
143
- "$&/"
144
- ) + "/") + u
145
- )), e.push(s)), 1;
146
- u = 0;
147
- var p = r === "" ? "." : r + ":";
148
- if (g(t))
149
- for (var c = 0; c < t.length; c++)
150
- r = t[c], f = p + m(r, c), u += a(
151
- r,
152
- e,
153
- n,
154
- f,
155
- s
156
- );
157
- else if (c = D(t), typeof c == "function")
158
- for (t = c.call(t), c = 0; !(r = t.next()).done; )
159
- r = r.value, f = p + m(r, c++), u += a(
160
- r,
161
- e,
162
- n,
163
- f,
164
- s
165
- );
166
- else if (f === "object") {
167
- if (typeof t.then == "function")
168
- return a(
169
- G(t),
170
- e,
171
- n,
172
- r,
173
- s
174
- );
175
- throw e = String(t), Error(
176
- "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."
177
- );
178
- }
179
- return u;
180
- }
181
- function l(t, e, n) {
182
- if (t == null) return t;
183
- var r = [], s = 0;
184
- return a(t, r, "", "", function(f) {
185
- return e.call(n, f, s++);
186
- }), r;
187
- }
188
- function K(t) {
189
- if (t._status === -1) {
190
- var e = t._result;
191
- e = e(), e.then(
192
- function(n) {
193
- (t._status === 0 || t._status === -1) && (t._status = 1, t._result = n);
194
- },
195
- function(n) {
196
- (t._status === 0 || t._status === -1) && (t._status = 2, t._result = n);
197
- }
198
- ), t._status === -1 && (t._status = 0, t._result = e);
199
- }
200
- if (t._status === 1) return t._result.default;
201
- throw t._result;
18
+ const a = `0x${(r && o < 0 ? (1n << BigInt(e * 8)) + BigInt(o) : o).toString(16)}`;
19
+ return e ? c(a, e) : a;
20
+ }
21
+ function c(t, i) {
22
+ return g(t, { dir: "left", size: i });
23
+ }
24
+ class d extends f {
25
+ constructor({ max: i, min: r, signed: e, size: o, value: n }) {
26
+ super(`Number \`${n}\` is not in safe${o ? ` ${o * 8}-bit` : ""}${e ? " signed" : " unsigned"} integer range ${i ? `(\`${r}\` to \`${i}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
27
+ enumerable: !0,
28
+ configurable: !0,
29
+ writable: !0,
30
+ value: "Hex.IntegerOutOfRangeError"
31
+ });
202
32
  }
203
- var P = typeof reportError == "function" ? reportError : function(t) {
204
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
205
- var e = new window.ErrorEvent("error", {
206
- bubbles: !0,
207
- cancelable: !0,
208
- message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
209
- error: t
210
- });
211
- if (!window.dispatchEvent(e)) return;
212
- } else if (typeof process == "object" && typeof process.emit == "function") {
213
- process.emit("uncaughtException", t);
214
- return;
215
- }
216
- console.error(t);
217
- };
218
- function B() {
33
+ }
34
+ class p extends f {
35
+ constructor({ size: i, targetSize: r, type: e }) {
36
+ super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (\`${i}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0,
40
+ value: "Hex.SizeExceedsPaddingSizeError"
41
+ });
219
42
  }
220
- return o.Children = {
221
- map: l,
222
- forEach: function(t, e, n) {
223
- l(
224
- t,
225
- function() {
226
- e.apply(this, arguments);
227
- },
228
- n
229
- );
230
- },
231
- count: function(t) {
232
- var e = 0;
233
- return l(t, function() {
234
- e++;
235
- }), e;
236
- },
237
- toArray: function(t) {
238
- return l(t, function(e) {
239
- return e;
240
- }) || [];
241
- },
242
- only: function(t) {
243
- if (!T(t))
244
- throw Error(
245
- "React.Children.only expected to receive a single React element child."
246
- );
247
- return t;
248
- }
249
- }, 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 = {
250
- __proto__: null,
251
- c: function(t) {
252
- return i.H.useMemoCache(t);
253
- }
254
- }, o.cache = function(t) {
255
- return function() {
256
- return t.apply(null, arguments);
257
- };
258
- }, o.cloneElement = function(t, e, n) {
259
- if (t == null)
260
- throw Error(
261
- "The argument must be a React element, but you passed " + t + "."
262
- );
263
- var r = A({}, t.props), s = t.key, f = void 0;
264
- if (e != null)
265
- for (u in e.ref !== void 0 && (f = void 0), e.key !== void 0 && (s = "" + e.key), e)
266
- !O.call(e, u) || u === "key" || u === "__self" || u === "__source" || u === "ref" && e.ref === void 0 || (r[u] = e[u]);
267
- var u = arguments.length - 2;
268
- if (u === 1) r.children = n;
269
- else if (1 < u) {
270
- for (var p = Array(u), c = 0; c < u; c++)
271
- p[c] = arguments[c + 2];
272
- r.children = p;
273
- }
274
- return R(t.type, s, void 0, void 0, f, r);
275
- }, o.createContext = function(t) {
276
- return t = {
277
- $$typeof: U,
278
- _currentValue: t,
279
- _currentValue2: t,
280
- _threadCount: 0,
281
- Provider: null,
282
- Consumer: null
283
- }, t.Provider = t, t.Consumer = {
284
- $$typeof: L,
285
- _context: t
286
- }, t;
287
- }, o.createElement = function(t, e, n) {
288
- var r, s = {}, f = null;
289
- if (e != null)
290
- for (r in e.key !== void 0 && (f = "" + e.key), e)
291
- O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (s[r] = e[r]);
292
- var u = arguments.length - 2;
293
- if (u === 1) s.children = n;
294
- else if (1 < u) {
295
- for (var p = Array(u), c = 0; c < u; c++)
296
- p[c] = arguments[c + 2];
297
- s.children = p;
298
- }
299
- if (t && t.defaultProps)
300
- for (r in u = t.defaultProps, u)
301
- s[r] === void 0 && (s[r] = u[r]);
302
- return R(t, f, void 0, void 0, null, s);
303
- }, o.createRef = function() {
304
- return { current: null };
305
- }, o.forwardRef = function(t) {
306
- return { $$typeof: k, render: t };
307
- }, o.isValidElement = T, o.lazy = function(t) {
308
- return {
309
- $$typeof: d,
310
- _payload: { _status: -1, _result: t },
311
- _init: K
312
- };
313
- }, o.memo = function(t, e) {
314
- return {
315
- $$typeof: b,
316
- type: t,
317
- compare: e === void 0 ? null : e
318
- };
319
- }, o.startTransition = function(t) {
320
- var e = i.T, n = {};
321
- i.T = n;
322
- try {
323
- var r = t(), s = i.S;
324
- s !== null && s(n, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(B, P);
325
- } catch (f) {
326
- P(f);
327
- } finally {
328
- i.T = e;
329
- }
330
- }, o.unstable_useCacheRefresh = function() {
331
- return i.H.useCacheRefresh();
332
- }, o.use = function(t) {
333
- return i.H.use(t);
334
- }, o.useActionState = function(t, e, n) {
335
- return i.H.useActionState(t, e, n);
336
- }, o.useCallback = function(t, e) {
337
- return i.H.useCallback(t, e);
338
- }, o.useContext = function(t) {
339
- return i.H.useContext(t);
340
- }, o.useDebugValue = function() {
341
- }, o.useDeferredValue = function(t, e) {
342
- return i.H.useDeferredValue(t, e);
343
- }, o.useEffect = function(t, e, n) {
344
- var r = i.H;
345
- if (typeof n == "function")
346
- throw Error(
347
- "useEffect CRUD overload is not enabled in this build of React."
348
- );
349
- return r.useEffect(t, e);
350
- }, o.useId = function() {
351
- return i.H.useId();
352
- }, o.useImperativeHandle = function(t, e, n) {
353
- return i.H.useImperativeHandle(t, e, n);
354
- }, o.useInsertionEffect = function(t, e) {
355
- return i.H.useInsertionEffect(t, e);
356
- }, o.useLayoutEffect = function(t, e) {
357
- return i.H.useLayoutEffect(t, e);
358
- }, o.useMemo = function(t, e) {
359
- return i.H.useMemo(t, e);
360
- }, o.useOptimistic = function(t, e) {
361
- return i.H.useOptimistic(t, e);
362
- }, o.useReducer = function(t, e, n) {
363
- return i.H.useReducer(t, e, n);
364
- }, o.useRef = function(t) {
365
- return i.H.useRef(t);
366
- }, o.useState = function(t) {
367
- return i.H.useState(t);
368
- }, o.useSyncExternalStore = function(t, e, n) {
369
- return i.H.useSyncExternalStore(
370
- t,
371
- e,
372
- n
373
- );
374
- }, o.useTransition = function() {
375
- return i.H.useTransition();
376
- }, o.version = "19.1.0", o;
377
43
  }
378
44
  export {
379
- X as __require
45
+ d as IntegerOutOfRangeError,
46
+ p as SizeExceedsPaddingSizeError,
47
+ m as fromNumber,
48
+ c as padLeft
380
49
  };