@attocash/cli 0.2.3 → 0.3.1

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 (137) hide show
  1. package/README.md +148 -7
  2. package/dist/application/app.d.ts +34 -3
  3. package/dist/application/app.js +138 -126
  4. package/dist/application/operations.d.ts +3 -0
  5. package/dist/application/operations.js +30 -8
  6. package/dist/cli/cli.d.ts +1 -0
  7. package/dist/cli/cli.js +101 -13
  8. package/dist/cli/onboarding.d.ts +13 -0
  9. package/dist/cli/onboarding.js +99 -2
  10. package/dist/cli/output.js +18 -2
  11. package/dist/doctor/profile.js +2 -1
  12. package/dist/internal-marketplace.d.ts +25 -0
  13. package/dist/internal-marketplace.js +50 -0
  14. package/dist/marketplace/approval-files.d.ts +3 -0
  15. package/dist/marketplace/approval-files.js +97 -0
  16. package/dist/marketplace/approval-preview.d.ts +2 -0
  17. package/dist/marketplace/approval-preview.js +86 -0
  18. package/dist/marketplace/proof-approval.d.ts +82 -0
  19. package/dist/marketplace/proof-approval.js +671 -0
  20. package/dist/marketplace/topups.d.ts +82 -0
  21. package/dist/marketplace/topups.js +485 -0
  22. package/dist/network/batching.d.ts +2 -0
  23. package/dist/network/batching.js +23 -0
  24. package/dist/network/entry.d.ts +2 -0
  25. package/dist/network/entry.js +35 -0
  26. package/dist/network/reader.d.ts +2 -0
  27. package/dist/network/reader.js +125 -37
  28. package/dist/spending/approval.d.ts +5 -0
  29. package/dist/spending/approval.js +2 -0
  30. package/dist/spending/atto-x402.d.ts +31 -0
  31. package/dist/spending/atto-x402.js +174 -0
  32. package/dist/spending/ledger.d.ts +74 -2
  33. package/dist/spending/ledger.js +298 -7
  34. package/dist/spending/payments.d.ts +105 -5
  35. package/dist/spending/payments.js +795 -11
  36. package/dist/storage/recovery-seed.d.ts +13 -0
  37. package/dist/storage/recovery-seed.js +93 -0
  38. package/dist/storage/state.d.ts +4 -0
  39. package/dist/storage/state.js +32 -2
  40. package/dist/wallet/receive.d.ts +39 -0
  41. package/dist/wallet/receive.js +264 -0
  42. package/dist/wallet/signing.d.ts +1 -0
  43. package/dist/wallet/signing.js +37 -21
  44. package/dist/wallet/types.d.ts +1 -0
  45. package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs +1922 -1918
  46. package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
  47. package/node_modules/@attocash/commons-core/README.md +9 -0
  48. package/node_modules/@attocash/commons-core/commons-commons-core.d.mts +10 -0
  49. package/node_modules/@attocash/commons-core/commons-commons-core.mjs +2543 -2434
  50. package/node_modules/@attocash/commons-core/commons-commons-core.mjs.map +1 -1
  51. package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs +4695 -4227
  52. package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs.map +1 -1
  53. package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
  54. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs +60 -60
  55. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
  56. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs +651 -631
  57. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  58. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs +2294 -2295
  59. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  60. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  61. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  62. package/node_modules/@attocash/commons-core/package.json +1 -1
  63. package/node_modules/@attocash/commons-node/commons-commons-node.d.mts +1 -0
  64. package/node_modules/@attocash/commons-node/commons-commons-node.mjs +873 -847
  65. package/node_modules/@attocash/commons-node/commons-commons-node.mjs.map +1 -1
  66. package/node_modules/@attocash/commons-node/kotlin-logging.mjs +109 -109
  67. package/node_modules/@attocash/commons-node/kotlin-logging.mjs.map +1 -1
  68. package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  69. package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  70. package/node_modules/@attocash/commons-node/package.json +3 -3
  71. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.d.mts +1 -0
  72. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs +674 -640
  73. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs.map +1 -1
  74. package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs +109 -109
  75. package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs.map +1 -1
  76. package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs.map +1 -1
  77. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  78. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  79. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  80. package/node_modules/@attocash/commons-node-remote/package.json +4 -4
  81. package/node_modules/@attocash/commons-transport/commons-commons-transport.d.mts +1 -0
  82. package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs +52 -51
  83. package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs.map +1 -1
  84. package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs +13 -13
  85. package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs.map +1 -1
  86. package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs.map +1 -1
  87. package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs +2639 -2608
  88. package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs.map +1 -1
  89. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  90. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  91. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  92. package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs +411 -196
  93. package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs.map +1 -1
  94. package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs +2115 -1976
  95. package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs.map +1 -1
  96. package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs +7 -7
  97. package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs.map +1 -1
  98. package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs +385 -384
  99. package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs.map +1 -1
  100. package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs +1261 -1185
  101. package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs.map +1 -1
  102. package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs +668 -656
  103. package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs.map +1 -1
  104. package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs +89 -0
  105. package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs.map +1 -0
  106. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
  107. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
  108. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs +120 -128
  109. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
  110. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs +46 -49
  111. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs.map +1 -1
  112. package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs.map +1 -1
  113. package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs +1041 -985
  114. package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs.map +1 -1
  115. package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs.map +1 -1
  116. package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs +530 -455
  117. package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs.map +1 -1
  118. package/node_modules/@attocash/commons-transport/package.json +4 -4
  119. package/node_modules/@attocash/commons-worker/commons-commons-worker.d.mts +1 -0
  120. package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs +230 -226
  121. package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs.map +1 -1
  122. package/node_modules/@attocash/commons-worker/kotlin-logging.mjs +109 -109
  123. package/node_modules/@attocash/commons-worker/kotlin-logging.mjs.map +1 -1
  124. package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  125. package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  126. package/node_modules/@attocash/commons-worker/package.json +3 -3
  127. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.d.mts +1 -0
  128. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs +91 -86
  129. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs.map +1 -1
  130. package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs +109 -109
  131. package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs.map +1 -1
  132. package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs.map +1 -1
  133. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  134. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  135. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  136. package/node_modules/@attocash/commons-worker-remote/package.json +4 -4
  137. package/package.json +9 -5
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;"}
1
+ {"version":3,"sources":["NATIVE_IMPLEMENTATIONS.kt"],"sourcesContent":[null],"ignoreList":[0],"x_google_ignoreList":[0],"names":[],"mappings":";;"}
@@ -6,15 +6,15 @@ import {
6
6
  copyOfRange3alro60z4hhf8 as copyOfRange,
7
7
  getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
8
8
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
9
- Unit_instance3vdlo4e4f5ggx as Unit_instance,
9
+ Unit_instance3kz1zqli6gr1r as Unit_instance,
10
10
  contentEquals1cdp6c846cfdi as contentEquals,
11
11
  contentHashCode25jw6rgkgywwr as contentHashCode,
12
12
  IndexOutOfBoundsException1qfr429iumro0 as IndexOutOfBoundsException,
13
- _UByte___init__impl__g9hnc430zp6cgd9f0jq as _UByte___init__impl__g9hnc4,
14
- _UByte___get_data__impl__jof9qryxuf3cmdpzyk as _UByte___get_data__impl__jof9qr,
13
+ _UByte___init__impl__g9hnc49zztd2brjj2m as _UByte___init__impl__g9hnc4,
14
+ _UByte___get_data__impl__jof9qr100nrznmlnqj as _UByte___get_data__impl__jof9qr,
15
15
  compareTo3ankvs086tmwq as compareTo,
16
16
  StringBuildermazzzhj6kkai as StringBuilder,
17
- _Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
17
+ _Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
18
18
  Comparable198qfk8pnblz0 as Comparable,
19
19
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
20
20
  decodeToString1x4faah2liw2p as decodeToString,
@@ -27,32 +27,32 @@ var imul = Math.imul;
27
27
  class Companion {
28
28
  constructor() {
29
29
  Companion_instance = this;
30
- this.u1r_1 = ByteString.y1r(new Int8Array(0), null);
31
- this.v1r_1 = toCharArray('0123456789abcdef');
30
+ this.EMPTY_1 = ByteString.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(new Int8Array(0), null);
31
+ this.HEX_DIGITS_1 = toCharArray('0123456789abcdef');
32
32
  }
33
- z1r(byteArray) {
34
- return ByteString.y1r(byteArray, null);
33
+ wrap_yhiemk_k$(byteArray) {
34
+ return ByteString.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(byteArray, null);
35
35
  }
36
36
  }
37
37
  class ByteString {
38
38
  constructor(data, dummy) {
39
- return new.target.y1r(data, dummy);
39
+ return new.target.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(data, dummy);
40
40
  }
41
- static y1r(data, dummy) {
41
+ static new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(data, dummy) {
42
42
  Companion_getInstance();
43
43
  var $this = createThis(this);
44
- $this.w1r_1 = data;
45
- $this.x1r_1 = 0;
44
+ $this.data_1 = data;
45
+ $this.hashCode_2 = 0;
46
46
  return $this;
47
47
  }
48
- static a1s(data, startIndex, endIndex) {
48
+ static new_kotlinx_io_bytestring_ByteString_507kaj_k$(data, startIndex, endIndex) {
49
49
  Companion_getInstance();
50
50
  startIndex = startIndex === VOID ? 0 : startIndex;
51
51
  endIndex = endIndex === VOID ? data.length : endIndex;
52
- return this.y1r(copyOfRange(data, startIndex, endIndex), null);
52
+ return this.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(copyOfRange(data, startIndex, endIndex), null);
53
53
  }
54
- p2() {
55
- return this.w1r_1.length;
54
+ get_size_woubt6_k$() {
55
+ return this.data_1.length;
56
56
  }
57
57
  equals(other) {
58
58
  if (this === other)
@@ -61,47 +61,47 @@ class ByteString {
61
61
  return false;
62
62
  if (!(other instanceof ByteString))
63
63
  THROW_CCE();
64
- if (!(other.w1r_1.length === this.w1r_1.length))
64
+ if (!(other.data_1.length === this.data_1.length))
65
65
  return false;
66
- if (!(other.x1r_1 === 0) && !(this.x1r_1 === 0) && !(other.x1r_1 === this.x1r_1))
66
+ if (!(other.hashCode_2 === 0) && !(this.hashCode_2 === 0) && !(other.hashCode_2 === this.hashCode_2))
67
67
  return false;
68
- return contentEquals(this.w1r_1, other.w1r_1);
68
+ return contentEquals(this.data_1, other.data_1);
69
69
  }
70
70
  hashCode() {
71
- var hc = this.x1r_1;
71
+ var hc = this.hashCode_2;
72
72
  if (hc === 0) {
73
- hc = contentHashCode(this.w1r_1);
74
- this.x1r_1 = hc;
73
+ hc = contentHashCode(this.data_1);
74
+ this.hashCode_2 = hc;
75
75
  }
76
76
  return hc;
77
77
  }
78
- q2(index) {
79
- if (index < 0 || index >= this.p2())
80
- throw IndexOutOfBoundsException.ie('index (' + index + ') is out of byte string bounds: [0..' + this.p2() + ')');
81
- return this.w1r_1[index];
78
+ get_c1px32_k$(index) {
79
+ if (index < 0 || index >= this.get_size_woubt6_k$())
80
+ throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('index (' + index + ') is out of byte string bounds: [0..' + this.get_size_woubt6_k$() + ')');
81
+ return this.data_1[index];
82
82
  }
83
- f1r(startIndex, endIndex) {
83
+ substring_d7lab3_k$(startIndex, endIndex) {
84
84
  var tmp;
85
85
  if (startIndex === endIndex) {
86
- tmp = Companion_getInstance().u1r_1;
86
+ tmp = Companion_getInstance().EMPTY_1;
87
87
  } else {
88
- tmp = ByteString.a1s(this.w1r_1, startIndex, endIndex);
88
+ tmp = ByteString.new_kotlinx_io_bytestring_ByteString_507kaj_k$(this.data_1, startIndex, endIndex);
89
89
  }
90
90
  return tmp;
91
91
  }
92
- b1s(startIndex, endIndex, $super) {
93
- endIndex = endIndex === VOID ? this.p2() : endIndex;
94
- return $super === VOID ? this.f1r(startIndex, endIndex) : $super.f1r.call(this, startIndex, endIndex);
92
+ substring$default_wq769b_k$(startIndex, endIndex, $super) {
93
+ endIndex = endIndex === VOID ? this.get_size_woubt6_k$() : endIndex;
94
+ return $super === VOID ? this.substring_d7lab3_k$(startIndex, endIndex) : $super.substring_d7lab3_k$.call(this, startIndex, endIndex);
95
95
  }
96
- c1s(other) {
96
+ compareTo_370sij_k$(other) {
97
97
  if (other === this)
98
98
  return 0;
99
- var localData = this.w1r_1;
100
- var otherData = other.w1r_1;
99
+ var localData = this.data_1;
100
+ var otherData = other.data_1;
101
101
  var inductionVariable = 0;
102
- var tmp0 = this.p2();
102
+ var tmp0 = this.get_size_woubt6_k$();
103
103
  // Inline function 'kotlin.math.min' call
104
- var b = other.p2();
104
+ var b = other.get_size_woubt6_k$();
105
105
  var last = Math.min(tmp0, b);
106
106
  if (inductionVariable < last)
107
107
  do {
@@ -123,43 +123,43 @@ class ByteString {
123
123
  return cmp;
124
124
  }
125
125
  while (inductionVariable < last);
126
- return compareTo(this.p2(), other.p2());
126
+ return compareTo(this.get_size_woubt6_k$(), other.get_size_woubt6_k$());
127
127
  }
128
- d(other) {
129
- return this.c1s(other instanceof ByteString ? other : THROW_CCE());
128
+ compareTo_hpufkf_k$(other) {
129
+ return this.compareTo_370sij_k$(other instanceof ByteString ? other : THROW_CCE());
130
130
  }
131
131
  toString() {
132
132
  if (isEmpty(this)) {
133
133
  return 'ByteString(size=0)';
134
134
  }
135
- var sizeStr = this.p2().toString();
136
- var len = (22 + sizeStr.length | 0) + imul(this.p2(), 2) | 0;
135
+ var sizeStr = this.get_size_woubt6_k$().toString();
136
+ var len = (22 + sizeStr.length | 0) + imul(this.get_size_woubt6_k$(), 2) | 0;
137
137
  // Inline function 'kotlin.with' call
138
- var $this$with = StringBuilder.ec(len);
139
- $this$with.i1('ByteString(size=');
140
- $this$with.i1(sizeStr);
141
- $this$with.i1(' hex=');
142
- var localData = this.w1r_1;
138
+ var $this$with = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(len);
139
+ $this$with.append_22ad7x_k$('ByteString(size=');
140
+ $this$with.append_22ad7x_k$(sizeStr);
141
+ $this$with.append_22ad7x_k$(' hex=');
142
+ var localData = this.data_1;
143
143
  var inductionVariable = 0;
144
- var last = this.p2();
144
+ var last = this.get_size_woubt6_k$();
145
145
  if (inductionVariable < last)
146
146
  do {
147
147
  var i = inductionVariable;
148
148
  inductionVariable = inductionVariable + 1 | 0;
149
149
  var b = localData[i];
150
- $this$with.k1(Companion_getInstance().v1r_1[(b >>> 4 | 0) & 15]);
151
- $this$with.k1(Companion_getInstance().v1r_1[b & 15]);
150
+ $this$with.append_58al37_k$(Companion_getInstance().HEX_DIGITS_1[(b >>> 4 | 0) & 15]);
151
+ $this$with.append_58al37_k$(Companion_getInstance().HEX_DIGITS_1[b & 15]);
152
152
  }
153
153
  while (inductionVariable < last);
154
- return $this$with.k1(_Char___init__impl__6a9atx(41)).toString();
154
+ return $this$with.append_58al37_k$(_Char___init__impl__6a9atx(41)).toString();
155
155
  }
156
- d1s() {
157
- return this.w1r_1;
156
+ getBackingArrayReference_x19ruh_k$() {
157
+ return this.data_1;
158
158
  }
159
159
  }
160
160
  class UnsafeByteStringOperations {
161
- e1s(array) {
162
- return Companion_getInstance().z1r(array);
161
+ wrapUnsafe_3fobxs_k$(array) {
162
+ return Companion_getInstance().wrap_yhiemk_k$(array);
163
163
  }
164
164
  }
165
165
  //endregion
@@ -173,17 +173,17 @@ function ByteString_0(bytes) {
173
173
  var tmp;
174
174
  // Inline function 'kotlin.collections.isEmpty' call
175
175
  if (bytes.length === 0) {
176
- tmp = Companion_getInstance().u1r_1;
176
+ tmp = Companion_getInstance().EMPTY_1;
177
177
  } else {
178
- tmp = Companion_getInstance().z1r(bytes);
178
+ tmp = Companion_getInstance().wrap_yhiemk_k$(bytes);
179
179
  }
180
180
  return tmp;
181
181
  }
182
182
  function decodeToString_0(_this__u8e3s4) {
183
- return decodeToString(_this__u8e3s4.d1s());
183
+ return decodeToString(_this__u8e3s4.getBackingArrayReference_x19ruh_k$());
184
184
  }
185
185
  function isEmpty(_this__u8e3s4) {
186
- return _this__u8e3s4.p2() === 0;
186
+ return _this__u8e3s4.get_size_woubt6_k$() === 0;
187
187
  }
188
188
  var UnsafeByteStringOperations_instance;
189
189
  function UnsafeByteStringOperations_getInstance() {
@@ -199,7 +199,7 @@ UnsafeByteStringOperations_instance = new UnsafeByteStringOperations();
199
199
  //endregion
200
200
  //region block: exports
201
201
  export {
202
- UnsafeByteStringOperations_instance as UnsafeByteStringOperations_instance32go50d8u0bll,
202
+ UnsafeByteStringOperations_instance as UnsafeByteStringOperations_instance2qzwn5iz9dqfo,
203
203
  ByteString_0 as ByteString3c9fk8lsh3lvs,
204
204
  ByteString as ByteString10sanmoo66key,
205
205
  decodeToString_0 as decodeToString2ede220pr5xir,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../.gradle/daemon/9.5.0/Z:/BuildAgent/work/22e3a7db6b861ba7/bytestring/common/src/ByteString.kt","../../../../../commons-npm-bundle/build/compileSync/js/main/productionLibrary/kotlin/js/src/kotlin/math.kt","../../../../../commons-npm-bundle/build/compileSync/js/main/productionLibrary/kotlin/unsigned/src/kotlin/UByte.kt","../../../../../../../../.gradle/daemon/9.5.0/Z:/BuildAgent/work/22e3a7db6b861ba7/bytestring/common/src/unsafe/UnsafeByteStringOperations.kt","../../../../../commons-npm-bundle/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Arrays.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["wrap","byteArray","<init>","data","dummy","startIndex","endIndex","<get-size>","equals","other","hashCode","hc","get","index","substring","substring$default","compareTo","localData","otherData","i","cmp","toString","sizeStr","len","b","getBackingArrayReference","wrapUnsafe","array","ByteString","bytes","decodeToString","<this>","isEmpty"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwGyC,4BAAW,cAAU,CAAV,CAAX,EAAyB,IAAzB,C;IAIW,yBAAnB,kBAAmB,C;;KAFnC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,C;KASSC,CAAAA,EAA4C;A,IAAI,OAAJ,IAAI,CAAJ,K;EAAG,C;;;KG9PjDC,CAAeC,KAAfD,EAA+C;A,IAAsB,OAAX,4BAAK,KAAL,C;EAAU,C;;;;;;;;;qBHKxEE,CAAeC,KAAfD,EAAiD;A;;EAAI,IAAA,KIggSjD,YAAQ,CJhgSyC,C;kCAC7C,K;;UAEA,4BAAK,KAAL,C;;EACd,U;AAAD,C;yBA0eOE,CAAIC,aAAJD,EAAwC;A,EAC3C,OAAkC,eAA3B,mBAA2B,C;AACtC,C;gBAdOE,CAAID,aAAJC,EAAoC;A,EAAS,OAAT,uBAAQ,C;AAAA,C;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"sources":["NATIVE_IMPLEMENTATIONS.kt","Z:/BuildAgent/work/22e3a7db6b861ba7/bytestring/common/src/ByteString.kt","js/src/kotlin/math.kt","unsigned/src/kotlin/UByte.kt","Z:/BuildAgent/work/22e3a7db6b861ba7/bytestring/common/src/unsafe/UnsafeByteStringOperations.kt","common/src/generated/_Arrays.kt"],"sourcesContent":[null,null,null,null,null,null],"ignoreList":[0],"x_google_ignoreList":[0],"names":["wrap","byteArray","<get-size>","equals","other","hashCode","hc","get","index","substring","startIndex","endIndex","compareTo","localData","otherData","cmp","toString","sizeStr","len","b","getBackingArrayReference","wrapUnsafe","array","ByteString","bytes","decodeToString","<this>","isEmpty"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICwGyC,yEAAW,cAAU,CAAV,CAAX,EAAyB,IAAzB,C;IAIW,gCAAnB,kBAAmB,C;;EAFnCA,eAASC,SAATD,EAA6C;A,IAA2B,iEAAhB,SAAgB,EAAL,IAAK,C;EAAD,C;;;ED1GxF,YAAA,IAAA,EAAA,KAAA,EAAA;AAAA;AAAA,EAAA,CAAA;EAAA,sDAAA,IAAA,EAAA,KAAA,EAAA;AAAA,IAAA,uBAAA;QAAA,wBAAA;IAAA,KAAA,UAAA,IAAA;IAAA,KAAA,cAAA,C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