@private.me/xbind 1.2.17 → 1.3.5

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 (77) hide show
  1. package/README.md +97 -7
  2. package/dist-standalone/_deps/crypto/base64.js +212 -87
  3. package/dist-standalone/_deps/crypto/cjs/base64.js +653 -91
  4. package/dist-standalone/_deps/crypto/cjs/errors.js +658 -102
  5. package/dist-standalone/_deps/crypto/cjs/hmac.js +468 -66
  6. package/dist-standalone/_deps/crypto/cjs/index.js +848 -82
  7. package/dist-standalone/_deps/crypto/cjs/package.json +1 -0
  8. package/dist-standalone/_deps/crypto/cjs/padding.js +504 -50
  9. package/dist-standalone/_deps/crypto/cjs/share-header.js +369 -65
  10. package/dist-standalone/_deps/crypto/cjs/shares.js +865 -143
  11. package/dist-standalone/_deps/crypto/cjs/tlv.js +1005 -183
  12. package/dist-standalone/_deps/crypto/cjs/uuid.js +437 -55
  13. package/dist-standalone/_deps/crypto/cjs/verify.js +414 -24
  14. package/dist-standalone/_deps/crypto/cjs/xorida.js +888 -186
  15. package/dist-standalone/_deps/crypto/errors.js +179 -89
  16. package/dist-standalone/_deps/crypto/hmac.js +129 -61
  17. package/dist-standalone/_deps/crypto/index.js +140 -40
  18. package/dist-standalone/_deps/crypto/padding.js +151 -45
  19. package/dist-standalone/_deps/crypto/share-header.js +89 -60
  20. package/dist-standalone/_deps/crypto/shares.js +280 -133
  21. package/dist-standalone/_deps/crypto/tlv.js +348 -179
  22. package/dist-standalone/_deps/crypto/uuid.js +130 -50
  23. package/dist-standalone/_deps/crypto/verify.js +71 -15
  24. package/dist-standalone/_deps/crypto/xorida.js +332 -181
  25. package/dist-standalone/_deps/shared/cjs/errors.js +582 -525
  26. package/dist-standalone/_deps/shared/cjs/index.js +413 -409
  27. package/dist-standalone/_deps/shared/cjs/types.js +262 -348
  28. package/dist-standalone/_deps/shared/errors.d.ts +7 -1
  29. package/dist-standalone/_deps/shared/errors.d.ts.map +1 -1
  30. package/dist-standalone/_deps/shared/errors.js +229 -166
  31. package/dist-standalone/_deps/shared/errors.js.map +1 -1
  32. package/dist-standalone/_deps/shared/index.js +50 -54
  33. package/dist-standalone/_deps/shared/types.js +61 -60
  34. package/dist-standalone/_deps/ux-helpers/cjs/errors.js +1 -1
  35. package/dist-standalone/_deps/ux-helpers/cjs/pagination.js +1 -1
  36. package/dist-standalone/_deps/ux-helpers/cjs/progress.js +1 -1
  37. package/dist-standalone/_deps/ux-helpers/cjs/search.js +1 -1
  38. package/dist-standalone/_deps/ux-helpers/errors.js +1 -1
  39. package/dist-standalone/_deps/ux-helpers/pagination.js +1 -1
  40. package/dist-standalone/_deps/ux-helpers/progress.js +1 -1
  41. package/dist-standalone/_deps/ux-helpers/search.js +1 -1
  42. package/dist-standalone/_deps/xchange/auto-accept.js +1 -1
  43. package/dist-standalone/_deps/xchange/cjs/auto-accept.js +1 -1
  44. package/dist-standalone/_deps/xchange/cjs/errors.js +1 -1
  45. package/dist-standalone/_deps/xchange/cjs/index.js +1 -1
  46. package/dist-standalone/_deps/xchange/cjs/invite-client.js +1 -1
  47. package/dist-standalone/_deps/xchange/cjs/lazy-init.js +1 -1
  48. package/dist-standalone/_deps/xchange/cjs/trust-integration.js +1 -1
  49. package/dist-standalone/_deps/xchange/cjs/xchange.js +1 -1
  50. package/dist-standalone/_deps/xchange/errors.js +1 -1
  51. package/dist-standalone/_deps/xchange/index.js +1 -1
  52. package/dist-standalone/_deps/xchange/invite-client.js +1 -1
  53. package/dist-standalone/_deps/xchange/lazy-init.js +1 -1
  54. package/dist-standalone/_deps/xchange/trust-integration.js +1 -1
  55. package/dist-standalone/_deps/xchange/xchange.js +1 -1
  56. package/dist-standalone/_deps/xregistry/cjs/discovery.js +1 -1
  57. package/dist-standalone/_deps/xregistry/cjs/errors.js +1 -1
  58. package/dist-standalone/_deps/xregistry/cjs/index.js +1 -1
  59. package/dist-standalone/_deps/xregistry/cjs/registry.js +1 -1
  60. package/dist-standalone/_deps/xregistry/cjs/schema.js +1 -1
  61. package/dist-standalone/_deps/xregistry/cjs/types.js +1 -1
  62. package/dist-standalone/_deps/xregistry/discovery.js +1 -1
  63. package/dist-standalone/_deps/xregistry/errors.js +1 -1
  64. package/dist-standalone/_deps/xregistry/index.js +1 -1
  65. package/dist-standalone/_deps/xregistry/registry.js +1 -1
  66. package/dist-standalone/_deps/xregistry/schema.js +1 -1
  67. package/dist-standalone/_deps/xregistry/types.js +1 -1
  68. package/dist-standalone/cjs/identity.js +2 -3
  69. package/dist-standalone/cli/setup.d.ts +52 -0
  70. package/dist-standalone/cli/setup.js +515 -0
  71. package/dist-standalone/cli/types.d.ts +79 -0
  72. package/dist-standalone/cli/types.js +27 -0
  73. package/dist-standalone/cli/xbind.d.ts +20 -0
  74. package/dist-standalone/cli/xbind.js +149 -0
  75. package/dist-standalone/identity.js +2 -3
  76. package/package.json +3 -2
  77. package/share1.dat +0 -0
@@ -1,119 +1,675 @@
1
- "use strict";
2
- /**
3
- * @module errors
4
- * Named error class hierarchy for @private.me/crypto.
5
- *
6
- * Provides structured error types for XorIDA threshold sharing,
7
- * HMAC integrity verification, PKCS#7 padding, and TLV serialization.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ERROR_DETAILS = exports.ERROR_MESSAGES = exports.CryptoSerializationError = exports.CryptoPaddingError = exports.CryptoIntegrityError = exports.CryptoSplitError = exports.CryptoError = void 0;
11
- exports.toCryptoError = toCryptoError;
12
- exports.isCryptoError = isCryptoError;
13
- const DOC_BASE = 'https://private.me/docs/packages/crypto';
14
- /** Base error class for all crypto operations. */
1
+ 'use strict';
2
+ function a1_0x591d(_0x10616a, _0x2f71f4) {
3
+ _0x10616a = _0x10616a - 0x1d8;
4
+ const _0x510cf1 = a1_0x510c();
5
+ let _0x591d49 = _0x510cf1[_0x10616a];
6
+ if (a1_0x591d['NJMaPB'] === undefined) {
7
+ var _0x161f4f = function (_0x18ce7b) {
8
+ const _0x570f5c = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
9
+ let _0x992b08 = '', _0x54ad95 = '';
10
+ for (let _0x2390fa = 0x0, _0x47dad6, _0xbfe275, _0xb98e67 = 0x0; _0xbfe275 = _0x18ce7b['charAt'](_0xb98e67++); ~_0xbfe275 && (_0x47dad6 = _0x2390fa % 0x4 ? _0x47dad6 * 0x40 + _0xbfe275 : _0xbfe275, _0x2390fa++ % 0x4) ? _0x992b08 += String['fromCharCode'](0xff & _0x47dad6 >> (-0x2 * _0x2390fa & 0x6)) : 0x0) {
11
+ _0xbfe275 = _0x570f5c['indexOf'](_0xbfe275);
12
+ }
13
+ for (let _0xa9c79a = 0x0, _0x472b5c = _0x992b08['length']; _0xa9c79a < _0x472b5c; _0xa9c79a++) {
14
+ _0x54ad95 += '%' + ('00' + _0x992b08['charCodeAt'](_0xa9c79a)['toString'](0x10))['slice'](-0x2);
15
+ }
16
+ return decodeURIComponent(_0x54ad95);
17
+ };
18
+ a1_0x591d['lUNyOT'] = _0x161f4f, a1_0x591d['tUiypB'] = {}, a1_0x591d['NJMaPB'] = !![];
19
+ }
20
+ const _0x3f8ed9 = _0x510cf1[0x0], _0x4fa7e9 = _0x10616a + _0x3f8ed9, _0x1675be = a1_0x591d['tUiypB'][_0x4fa7e9];
21
+ return !_0x1675be ? (_0x591d49 = a1_0x591d['lUNyOT'](_0x591d49), a1_0x591d['tUiypB'][_0x4fa7e9] = _0x591d49) : _0x591d49 = _0x1675be, _0x591d49;
22
+ }
23
+ function a1_0x510c() {
24
+ const _0x142bf8 = [
25
+ 'xZb4ndrJzte4',
26
+ 'Chrnt3i',
27
+ 'Chjtuue',
28
+ 'CtnQnunOCLz1m2jtqxHYzKnoALzdrW',
29
+ 'uw1wuvq',
30
+ 'xZb4mJzIztHJ',
31
+ 'CNzQC3qXAKzYzxz1CxvmBxvx',
32
+ 'xZb4ngu0y2eW',
33
+ 'C2XPy2u',
34
+ 'q3j5ChrVrxjYB3i',
35
+ 'BuPLwg10AvPUDZvmCMDyC3zh',
36
+ 'q3j5ChrVsw50zwDYAxr5rxjYB3i',
37
+ 'D0nlvfC',
38
+ 'Dg9dCNLWDg9fCNjVCG',
39
+ 'zwLwtMO',
40
+ 'CvH6C0m',
41
+ 'qZjyuhKYDq',
42
+ 'BxrQEeeYsgH0DMu',
43
+ 'rMXlvwC',
44
+ 'xZb4ndC0y2e5',
45
+ 'C3vIq29Kzq',
46
+ 'D2Hztwq',
47
+ 'DMvyD2LOEKHcAhzmAwDytejnrdbby2jmrwDUthP3CLPPz2OXEK16tenjyKLcm3zvEMHT',
48
+ 'Du12wer3tfL6D3fhDMvyD2LNELb6D1HlAwDmwMLNmvbdm25qqK1dr3PoALzcC2jAENHQuhL3wfbftxzlAwDYserNzq',
49
+ 'xZb4mZC1mZy3',
50
+ 'tNrLv2W',
51
+ 'DhH6s3KZyq',
52
+ 'q3rlz3G',
53
+ 'BwvZC2fNzq',
54
+ 'DwvuzhvzBtnPAgjiEMDYuejnq0DbEg1hqxC1mNL3wfb6y2jwq0LIsKiZALLeEgiWENDX',
55
+ 'uMDQzxK',
56
+ 'DLnsCLy',
57
+ 'shbmt24',
58
+ 'AtnUtennteHcz0W2ExHYueiYna',
59
+ 'tLPjy0S',
60
+ 'zgvMAw5LuhjVCgvYDhK',
61
+ 'y2HHCKnVzgvbDa',
62
+ 'CtnQnunOCLz1z2zlEMDmvxOWDLLdttLz',
63
+ 'uM9uu0S',
64
+ 'rvjst1jFtuvtu0fhrvm',
65
+ 'ChvZAa',
66
+ 'zKHTrhu',
67
+ 'veXwigrHDgeGAxmGBwfSzM9YBwvKig9YihrYDw5JyxrLzc4',
68
+ 'rKnssu4',
69
+ 'xZb4zJi2ntfI',
70
+ 'mtiZnZG4m0PRrgPfvW',
71
+ 'Aw5KzxHpzG',
72
+ 'xZb4ngzLzwi4',
73
+ 'q3j5ChrVu2vYAwfSAxPHDgLVBKvYCM9Y',
74
+ 'DNuXAhf2Eq',
75
+ 'DenuDMS',
76
+ 'uhz6EKK',
77
+ 'D3HmAeu',
78
+ 'yNPIr1a',
79
+ 'uxLSvK0',
80
+ 'xZb4mwe3zdLM',
81
+ 'xZb4mtfHmZyZ',
82
+ 'xZb4mJK2otu5',
83
+ 'qxHUzenotfDezZLMq05QvKnh',
84
+ 'nZq0uLPzEK96',
85
+ 'yLLkuNK',
86
+ 'mte2mffivMTjAG',
87
+ 'xZb4mZfJzMrH',
88
+ 'nZuZotnwDKznsxO',
89
+ 'ELPXDwO',
90
+ 'mJmXotmZnLvABfDVsG',
91
+ 'xZb4nde3ngvM',
92
+ 'xZb4ndnKn2m0',
93
+ 'vNr1tfq',
94
+ 'nte2ntCYn0H1rwjJDW',
95
+ 'BMrXv3rNsgLcz2zW',
96
+ 'CeXYs1m',
97
+ 'we1vwei',
98
+ 'BMr1ng5ksZfVzMPAqJf2vurx',
99
+ 'C2HPzNq',
100
+ 'DtjisennDLPPz0Hire11r0f3nuPcmJvAqxHUmhP3ntbPz1HmqK1emefOBvnPz3iXq2DyuhKYzJb6C2jqqK1YuhKYDLPSy2jwq0LIvef4BLr5EhjkqwD2s2LOyKHdtwzuENHYtenoBvu',
101
+ 'sMHWuvm',
102
+ 'mtzzC2jXANi',
103
+ 'xZb4nMrMm2m3',
104
+ 'y2HHCKf0',
105
+ 'u2HHCMvZigHHDMuGAw5JB25ZAxn0zw50ifvvsuqSig4Sig9YigSGDMfSDwvZ',
106
+ 'BxrPwemWEKfbtMy2',
107
+ 'wg9YsurbihnWBgL0ig9WzxjHDgLVBIbMywLSzwq',
108
+ 'BNr5v25AEJnZs3zJrwuW',
109
+ 'EwriCw8',
110
+ 'CNfPuKS',
111
+ 'ANvkB2W',
112
+ 'q3HqAeG',
113
+ 'CxnIwxP4zJfbEgPmEMnIDxrMEuD6tuXmqMDXr2TNDvv6wtrtAwuXzNuXBMjYmhzgDNz2ANjJs0DbEg1hExDQwNP3ntbSrW',
114
+ 'se1bqYbRzxKGAw1WB3j0igzHAwXLzcaOAw52ywXPzcbSzw5NDgGGB3iGzM9YBwf0ks4',
115
+ 'BKD4vvi',
116
+ 'DMvyD2LNAJf6txPmq0LIuenzyLr5D1HnqJnQvhP3CuDcm2LhrgHQmujnBKHez3zl',
117
+ 'DtnIu0f4CuD5mJLvEK1mtKr4AKHez0XwqKLIuenzyLbctNPiqMDms2XjyNn6EgyXqxHQtenzyLvPzdq5AwrPu2LNu0DWsJbhBuLxr3L3nuTPz1nhCgqWr0jjna',
118
+ 'q0LHtgu',
119
+ 'weXszfK',
120
+ 'DfjQB1a',
121
+ 'DJjyshyWna',
122
+ 'CNzQC3qXAKz0Dxz0DtbMAhj2Bq',
123
+ 'CtnQnunOCLzYEgPzqJnP',
124
+ 'CePcz3C',
125
+ 'rvjst1jFrevuquLmuW',
126
+ 'CuS1s3mWtW',
127
+ 'AgfXveW',
128
+ 'tePbzem',
129
+ 'r1r2rhu',
130
+ 'vNvYq1G',
131
+ 'tLnRqNy',
132
+ 'y3LvtNu',
133
+ 'v2XHv04',
134
+ 'xZb4mJqZn2mZ',
135
+ 'AxvetgO',
136
+ 'uvrcq2W',
137
+ 'xZb4ndzJota5',
138
+ 'BMfTzq',
139
+ 'qwHYmenOBtzSwtLxq01mmNL4CKXSttfmBdjYvNKZBvzdz2zkqtjMtNP4Bvz5m2O1q2HYvG',
140
+ 'zxDqrfq',
141
+ 'A0LQven4',
142
+ 'CtnQnunOCLz1mNzzqxDMu0f4ueHez0XwqKT2wunnovK',
143
+ 'rMv3zxiGC2HHCMvZihbYB3zPzgvKihrOyw4GDgHLihjLCxvPCMvKihrOCMvZAg9SzcbRlG',
144
+ 'BKPPnw5kDKHYmxzMDu0W',
145
+ 'xZb4nte0nZG2',
146
+ 'mZmXnZK0ovbKqKn5Ca',
147
+ 'zxn2D3y',
148
+ 'BxrLmw1kCvHUz0HTEMD2wNPX',
149
+ 's2Tmthm',
150
+ 'mtu2odbrENjrrfq',
151
+ 'AtnUv0jNtdbez0XvELC',
152
+ 'xZb4ngjImZm2',
153
+ 'q1zNCe4',
154
+ 'u1nUCgq',
155
+ 'uePmweS',
156
+ 'yuL2wLq',
157
+ 'tfnougG',
158
+ 'CxC0r0r3nvL6D25wEJi1uevnDKTPzNjTDKLImev4yKXPAhjiELLIm3L4BuD6DZvkqJn2vurNDLL6D3fhqxC0r3LZyLL6EgyXqxHQthPJyLDcm25qrgDmvKjjna',
159
+ 'Ahv2vuHY',
160
+ 'De05mgLNDLvcm3zoqwnIwKfNzLL6Eg1hq2HQvKrnteT6D3fhEK05wwLOAKX5mJLvqZnYwur3BJbbDZLv',
161
+ 'DwvuzhvzBtnPAgjiEMDYuejnq0D5tKWWENHTr3L4AKXPz0Xvre1Mu0f3CuDcm2LhqxC1sKiYnvPbEg4WENC1mgXjyMv5EhjiAwCXsevZyKL6C2jkqJnQwur4yJb6D3fv',
162
+ 'zg9JvxjS',
163
+ 'CeTpC3u',
164
+ 'zKXxEhG',
165
+ 'qMLOwxG',
166
+ 'r0fVwvq',
167
+ 'mJCXmdeWr29cwfvl',
168
+ 'qu05uejh',
169
+ 'DtjisennDuDbDZvlENHhr0f4BuDcm3yWAwC5twLOAKHcturmAwC5wwLNCJfdz1HqEtjMmhP3Cq',
170
+ 'AtnIshPNCLbctum',
171
+ 'xZb4mwzIy2qW',
172
+ 'se1bqY1tseeYntyGDMvYAwzPy2f0Aw9UigzHAwXLzcbKDxjPBMCGCMvJB25ZDhj1y3rPB24Uie9UzsbVCIbTB3jLihnOyxjLCYbOyxzLigjLzw4GDgfTCgvYzwqGD2L0Ac4',
173
+ 'wKvYtwG',
174
+ 'D2C5wxn1CMjPAgPmEti5vumZCLLeD24WqxC5vwLNEKHbD1HmEMe',
175
+ 'AtjmvurNDK5dtuWWrxe',
176
+ 'BgvUz3rO',
177
+ 'A1z1ugy',
178
+ 'ExfJD1m',
179
+ 'qZnIu0f4Cq',
180
+ 'CxftC0m',
181
+ 'DMvyD2LNweXctuqWqwnItuf3DLn6y2jmrwDUthP3CLPPz2yYExDmu3L3ALn6C2jlExHYsgXh',
182
+ 'u2HHCMvZihjLzMvYzw5JzsbKAwzMzxjLBNqGBwvZC2fNzsbvvuLeCYbHBMqGy2fUBM90igjLignVBwjPBMvKlG',
183
+ 'D2TtD3q',
184
+ 'Bxbhu3DR',
185
+ 'qML6tva'
186
+ ];
187
+ a1_0x510c = function () {
188
+ return _0x142bf8;
189
+ };
190
+ return a1_0x510c();
191
+ }
192
+ const a1_0x1ff95 = a1_0x591d;
193
+ (function (_0x1e2ca0, _0x331fae) {
194
+ const a1_0x6846f = {
195
+ _0x4c367c: 0x235,
196
+ _0x15b17b: 0x239,
197
+ _0x3021d1: 0x237
198
+ }, _0x433f17 = a1_0x591d, _0x1d415b = _0x1e2ca0();
199
+ while (!![]) {
200
+ try {
201
+ const _0x596511 = -parseInt(_0x433f17(0x227)) / 0x1 + -parseInt(_0x433f17(0x1e7)) / 0x2 + -parseInt(_0x433f17(0x273)) / 0x3 + parseInt(_0x433f17(0x23b)) / 0x4 + -parseInt(_0x433f17(0x277)) / 0x5 * (-parseInt(_0x433f17(a1_0x6846f._0x4c367c)) / 0x6) + -parseInt(_0x433f17(0x23f)) / 0x7 * (-parseInt(_0x433f17(0x247)) / 0x8) + parseInt(_0x433f17(a1_0x6846f._0x15b17b)) / 0x9 * (parseInt(_0x433f17(a1_0x6846f._0x3021d1)) / 0xa);
202
+ if (_0x596511 === _0x331fae)
203
+ break;
204
+ else
205
+ _0x1d415b['push'](_0x1d415b['shift']());
206
+ } catch (_0x1360b7) {
207
+ _0x1d415b['push'](_0x1d415b['shift']());
208
+ }
209
+ }
210
+ }(a1_0x510c, 0xe4c15));
211
+ const a2_0x455e08 = a2_0x1e35;
212
+ (function (_0x909708, _0xba76ae) {
213
+ const a1_0x375cfe = {
214
+ _0xa354ec: 0x222,
215
+ _0x4b784e: 0x23e,
216
+ _0x489903: 0x265,
217
+ _0xf42ded: 0x241,
218
+ _0x50504c: 0x233,
219
+ _0x153d15: 0x257,
220
+ _0x3e3e90: 0x242,
221
+ _0x1c5094: 0x26a,
222
+ _0x269f6f: 0x259,
223
+ _0x540851: 0x246,
224
+ _0x5c2480: 0x201,
225
+ _0x2fd49e: 0x222,
226
+ _0x1626e4: 0x209
227
+ }, _0x2fc4ea = a1_0x591d, _0x1f81e9 = {
228
+ 'ptMOr': function (_0x57e720) {
229
+ return _0x57e720();
230
+ },
231
+ 'VtuLT': function (_0x2347b3, _0x497cfd) {
232
+ return _0x2347b3 + _0x497cfd;
233
+ },
234
+ 'ydHqo': function (_0x452ac5, _0x10c8c3) {
235
+ return _0x452ac5 / _0x10c8c3;
236
+ },
237
+ 'GAoYT': function (_0x101cad, _0x253721) {
238
+ return _0x101cad / _0x253721;
239
+ },
240
+ 'pLrKS': function (_0x53afae, _0x3de3f3) {
241
+ return _0x53afae(_0x3de3f3);
242
+ },
243
+ 'XMUXB': function (_0x2587e3, _0x49a894) {
244
+ return _0x2587e3(_0x49a894);
245
+ },
246
+ 'PJrPm': function (_0x39b225, _0x2ba0d2) {
247
+ return _0x39b225(_0x2ba0d2);
248
+ },
249
+ 'cyUNu': function (_0x204c8a, _0x23b351) {
250
+ return _0x204c8a / _0x23b351;
251
+ },
252
+ 'kVuPf': function (_0x18dc8b, _0xbd64e) {
253
+ return _0x18dc8b(_0xbd64e);
254
+ },
255
+ 'JhpQS': function (_0xb6cd0b, _0x38be74) {
256
+ return _0xb6cd0b(_0x38be74);
257
+ },
258
+ 'NteWl': function (_0xd31553, _0x207358) {
259
+ return _0xd31553 / _0x207358;
260
+ },
261
+ 'AoouS': function (_0x428704, _0x256d3b) {
262
+ return _0x428704 / _0x256d3b;
263
+ },
264
+ 'Rgjey': function (_0x4ebf64, _0xf36eae) {
265
+ return _0x4ebf64 * _0xf36eae;
266
+ },
267
+ 'CIaLe': function (_0x31e0e9, _0x526da7) {
268
+ return _0x31e0e9 / _0x526da7;
269
+ },
270
+ 'HpLOn': function (_0x1e11af, _0x3b1e27) {
271
+ return _0x1e11af / _0x3b1e27;
272
+ },
273
+ 'tRjoP': function (_0x2d82b4, _0x2c151d) {
274
+ return _0x2d82b4(_0x2c151d);
275
+ },
276
+ 'njBqp': function (_0x58b71b, _0x340673) {
277
+ return _0x58b71b === _0x340673;
278
+ },
279
+ 'qXzsC': _0x2fc4ea(a1_0x375cfe._0xa354ec),
280
+ 'fCsRj': _0x2fc4ea(0x244)
281
+ }, _0x1a276 = {
282
+ '_0x42585f': 0x1d0,
283
+ '_0x4174ef': 0x1e0,
284
+ '_0x296959': 0x1be,
285
+ '_0x5c871c': 0x1e4,
286
+ '_0x46c909': 0x1c1,
287
+ '_0x4e4ca0': 0x1c9
288
+ }, _0x5da961 = a2_0x1e35, _0x30ee96 = _0x1f81e9[_0x2fc4ea(0x1fb)](_0x909708);
289
+ while (!![]) {
290
+ try {
291
+ const _0x5832de = _0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x4b784e)](_0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x4b784e)](_0x1f81e9['VtuLT'](_0x1f81e9[_0x2fc4ea(0x24e)](-parseInt(_0x5da961(_0x1a276['_0x42585f'])), 0x1) * _0x1f81e9[_0x2fc4ea(0x1e6)](parseInt(_0x1f81e9['pLrKS'](_0x5da961, 0x1ea)), 0x2) + -_0x1f81e9[_0x2fc4ea(0x242)](parseInt, _0x1f81e9['PJrPm'](_0x5da961, _0x1a276[_0x2fc4ea(0x23c)])) / 0x3 + _0x1f81e9[_0x2fc4ea(0x24e)](-parseInt(_0x1f81e9[_0x2fc4ea(0x242)](_0x5da961, 0x1bf)), 0x4) * _0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x489903)](-_0x1f81e9[_0x2fc4ea(a1_0x375cfe._0xf42ded)](parseInt, _0x1f81e9[_0x2fc4ea(0x1f1)](_0x5da961, 0x1eb)), 0x5), parseInt(_0x1f81e9[_0x2fc4ea(0x246)](_0x5da961, 0x1c8)) / 0x6), _0x1f81e9[_0x2fc4ea(0x213)](parseInt(_0x1f81e9[_0x2fc4ea(0x241)](_0x5da961, 0x1d3)), 0x7)) + _0x1f81e9['AoouS'](-parseInt(_0x5da961(_0x1a276[_0x2fc4ea(a1_0x375cfe._0x50504c)])), 0x8) * _0x1f81e9['ydHqo'](-parseInt(_0x5da961(_0x1a276['_0x5c871c'])), 0x9), _0x1f81e9[_0x2fc4ea(0x218)](_0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x153d15)](-_0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x3e3e90)](parseInt, _0x5da961(_0x1a276[_0x2fc4ea(a1_0x375cfe._0x1c5094)])), 0xa), _0x1f81e9[_0x2fc4ea(0x21a)](_0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x269f6f)](parseInt, _0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x540851)](_0x5da961, _0x1a276[_0x2fc4ea(a1_0x375cfe._0x5c2480)])), 0xb)));
292
+ if (_0x1f81e9['njBqp'](_0x5832de, _0xba76ae))
293
+ break;
294
+ else
295
+ _0x30ee96[_0x2fc4ea(a1_0x375cfe._0x2fd49e)](_0x30ee96[_0x2fc4ea(0x244)]());
296
+ } catch (_0x28bf9a) {
297
+ _0x30ee96[_0x1f81e9[_0x2fc4ea(a1_0x375cfe._0x1626e4)]](_0x30ee96[_0x1f81e9['fCsRj']]());
298
+ }
299
+ }
300
+ }(a2_0x1b83, 0x98404), (Object[a1_0x1ff95(0x21d)](exports, '__esModule', { 'value': !![] }), exports[a2_0x455e08(0x1f0)] = exports[a1_0x1ff95(0x221)] = exports[a2_0x455e08(0x1ef)] = exports[a2_0x455e08(0x1e5)] = exports[a2_0x455e08(0x1d8)] = exports[a2_0x455e08(0x1d4)] = exports[a1_0x1ff95(0x203)] = void 0x0, exports[a1_0x1ff95(0x207)] = toCryptoError, exports[a2_0x455e08(0x1cf)] = isCryptoError));
301
+ const DOC_BASE = a2_0x455e08(0x1cc);
15
302
  class CryptoError extends Error {
16
- code;
17
- subCode;
18
- docUrl;
19
- constructor(code, message, docUrl) {
20
- super(message);
21
- this.name = 'CryptoError';
22
- const parts = code.split(':');
23
- this.code = parts[0] ?? code;
24
- this.subCode = parts.length > 1 ? parts.slice(1).join(':') : undefined;
25
- this.docUrl = docUrl;
303
+ ['code'];
304
+ [a1_0x1ff95(0x20e)];
305
+ [a2_0x455e08(0x1c6)];
306
+ constructor(_0x252dc9, _0xecd525, _0x57ad42) {
307
+ const a1_0x941626 = {
308
+ _0x2ce9b3: 0x22f,
309
+ _0x593689: 0x264,
310
+ _0x1eb456: 0x20d,
311
+ _0x52df61: 0x212,
312
+ _0x1ab117: 0x23d,
313
+ _0x205e1c: 0x226,
314
+ _0x102623: 0x231,
315
+ _0x281088: 0x1fa
316
+ }, _0x5c4a54 = a1_0x591d, _0x5516d7 = {
317
+ 'NSkBv': function (_0x574944, _0x1a0c6d) {
318
+ return _0x574944(_0x1a0c6d);
319
+ },
320
+ 'juJol': _0x5c4a54(a1_0x941626._0x2ce9b3),
321
+ 'nGxUR': _0x5c4a54(0x1f0),
322
+ 'GTvDu': function (_0x1b8416, _0xd657b9) {
323
+ return _0x1b8416(_0xd657b9);
324
+ }
325
+ }, _0x1a0f1b = {
326
+ '_0x474ca9': 0x1ed,
327
+ '_0x375367': 0x1ec,
328
+ '_0x43d7c4': 0x1cb,
329
+ '_0xf2651b': 0x1f1,
330
+ '_0x1a7d9f': 0x1cd,
331
+ '_0x44ce18': 0x1df
332
+ }, _0x2e9f2c = a2_0x1e35, _0x1c019b = {
333
+ 'BNdKJ': _0x5516d7[_0x5c4a54(a1_0x941626._0x593689)](_0x2e9f2c, _0x1a0f1b[_0x5c4a54(a1_0x941626._0x1eb456)]),
334
+ 'bzbGP': function (_0x12a3a9, _0x5d44dc) {
335
+ return _0x12a3a9 > _0x5d44dc;
336
+ }
337
+ };
338
+ super(_0xecd525), this[_0x2e9f2c(_0x1a0f1b[_0x5c4a54(a1_0x941626._0x52df61)])] = _0x1c019b[_0x5516d7['NSkBv'](_0x2e9f2c, _0x1a0f1b[_0x5c4a54(a1_0x941626._0x1ab117)])];
339
+ const _0x5bfd32 = _0x252dc9[_0x2e9f2c(0x1f3)](':');
340
+ this[_0x5516d7[_0x5c4a54(a1_0x941626._0x593689)](_0x2e9f2c, _0x1a0f1b[_0x5c4a54(a1_0x941626._0x205e1c)])] = _0x5bfd32[0x0] ?? _0x252dc9, this[_0x5516d7['NSkBv'](_0x2e9f2c, _0x1a0f1b[_0x5c4a54(a1_0x941626._0x102623)])] = _0x1c019b[_0x5516d7[_0x5c4a54(0x250)]](_0x5bfd32[_0x5516d7[_0x5c4a54(0x254)]], 0x1) ? _0x5bfd32[_0x5516d7[_0x5c4a54(0x262)](_0x2e9f2c, _0x1a0f1b[_0x5c4a54(a1_0x941626._0x281088)])](0x1)[_0x2e9f2c(0x1da)](':') : undefined, this[_0x5c4a54(0x1e2)] = _0x57ad42;
26
341
  }
27
342
  }
28
- exports.CryptoError = CryptoError;
29
- /** Error thrown during XorIDA split or reconstruction operations. */
343
+ exports[a1_0x1ff95(0x203)] = CryptoError;
30
344
  class CryptoSplitError extends CryptoError {
31
- constructor(code, message) {
32
- super(code, message, `${DOC_BASE}#splitting`);
33
- this.name = 'CryptoSplitError';
345
+ constructor(_0x5d5608, _0x56712e) {
346
+ const a1_0x5e0584 = {
347
+ _0xa15888: 0x21c,
348
+ _0x2511b7: 0x1d9,
349
+ _0x1c8307: 0x232,
350
+ _0x10b2fc: 0x1eb,
351
+ _0x2c37f6: 0x1d9
352
+ }, _0x10f31e = a1_0x591d, _0x3c009f = {
353
+ 'NZIcK': function (_0x4fcce6, _0x3edc0b) {
354
+ return _0x4fcce6 + _0x3edc0b;
355
+ },
356
+ 'CVgpN': function (_0x50d798, _0x51edec) {
357
+ return _0x50d798(_0x51edec);
358
+ }
359
+ }, _0x291efc = {
360
+ '_0x11a363': 0x1e3,
361
+ '_0x1fbcd0': 0x1ec
362
+ }, _0x24c264 = a2_0x1e35;
363
+ super(_0x5d5608, _0x56712e, _0x3c009f[_0x10f31e(a1_0x5e0584._0xa15888)](DOC_BASE, _0x3c009f[_0x10f31e(a1_0x5e0584._0x2511b7)](_0x24c264, _0x291efc[_0x10f31e(a1_0x5e0584._0x1c8307)]))), this[_0x24c264(_0x291efc[_0x10f31e(a1_0x5e0584._0x10b2fc)])] = _0x3c009f[_0x10f31e(a1_0x5e0584._0x2c37f6)](_0x24c264, 0x1d4);
34
364
  }
35
365
  }
36
- exports.CryptoSplitError = CryptoSplitError;
37
- /** Error thrown when HMAC integrity verification fails. */
366
+ exports[a2_0x455e08(0x1d4)] = CryptoSplitError;
367
+ function a2_0x1e35(_0x4f131f, _0x100cd2) {
368
+ const a1_0x573892 = {
369
+ _0x407b75: 0x21e,
370
+ _0x36b974: 0x26e,
371
+ _0x358015: 0x223,
372
+ _0x1554fb: 0x268,
373
+ _0x3bc84b: 0x215,
374
+ _0x14494c: 0x1da,
375
+ _0xca7faa: 0x26e,
376
+ _0x706151: 0x1df
377
+ }, a1_0x414c97 = {
378
+ _0x25f8cb: 0x23a,
379
+ _0x4a53bc: 0x22c
380
+ }, _0x1cfde7 = a1_0x591d, _0x53ca8a = {
381
+ 'qqSsC': 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=',
382
+ 'XpIFL': function (_0x443297, _0x21edf2) {
383
+ return _0x443297 % _0x21edf2;
384
+ },
385
+ 'CxPhH': function (_0x41e205, _0x295585) {
386
+ return _0x41e205 & _0x295585;
387
+ },
388
+ 'zZquj': function (_0x282532, _0x416490) {
389
+ return _0x282532 >> _0x416490;
390
+ },
391
+ 'tCTvk': _0x1cfde7(0x1f0),
392
+ 'UTZTS': function (_0x26390b, _0x60aedb) {
393
+ return _0x26390b + _0x60aedb;
394
+ },
395
+ 'eiVNj': _0x1cfde7(a1_0x573892._0x407b75),
396
+ 'LSNPh': function (_0x1a6347, _0x4f6abf) {
397
+ return _0x1a6347(_0x4f6abf);
398
+ },
399
+ 'fHmDu': function (_0x35a486, _0x24d1a2) {
400
+ return _0x35a486 - _0x24d1a2;
401
+ },
402
+ 'iuDLj': function (_0x56cce2) {
403
+ return _0x56cce2();
404
+ },
405
+ 'CtKgx': _0x1cfde7(0x1df),
406
+ 'SSnpd': _0x1cfde7(0x1f8),
407
+ 'FCRIN': function (_0x21c092, _0x677af7) {
408
+ return _0x21c092 + _0x677af7;
409
+ },
410
+ 'PJLXK': _0x1cfde7(a1_0x573892._0x36b974)
411
+ };
412
+ _0x4f131f = _0x53ca8a[_0x1cfde7(a1_0x573892._0x358015)](_0x4f131f, 0x1be);
413
+ const _0x24fda2 = _0x53ca8a[_0x1cfde7(a1_0x573892._0x1554fb)](a2_0x1b83);
414
+ let _0x115997 = _0x24fda2[_0x4f131f];
415
+ if (a2_0x1e35[_0x53ca8a[_0x1cfde7(a1_0x573892._0x3bc84b)]] === undefined) {
416
+ var _0x4ee01b = function (_0x4fe832) {
417
+ const _0x536248 = a1_0x591d, _0x5b15c8 = _0x53ca8a[_0x536248(0x1f4)];
418
+ let _0x3ac4f0 = '', _0x48ddfb = '';
419
+ for (let _0x14e05a = 0x0, _0xb37d69, _0x39d75d, _0x558326 = 0x0; _0x39d75d = _0x4fe832[_0x536248(0x249)](_0x558326++); ~_0x39d75d && (_0xb37d69 = _0x53ca8a['XpIFL'](_0x14e05a, 0x4) ? _0xb37d69 * 0x40 + _0x39d75d : _0x39d75d, _0x14e05a++ % 0x4) ? _0x3ac4f0 += String['fromCharCode'](_0x53ca8a[_0x536248(0x251)](0xff, _0x53ca8a[_0x536248(a1_0x414c97._0x25f8cb)](_0xb37d69, -0x2 * _0x14e05a & 0x6))) : 0x0) {
420
+ _0x39d75d = _0x5b15c8[_0x536248(0x228)](_0x39d75d);
421
+ }
422
+ for (let _0x3d416b = 0x0, _0x295139 = _0x3ac4f0[_0x53ca8a[_0x536248(a1_0x414c97._0x4a53bc)]]; _0x3d416b < _0x295139; _0x3d416b++) {
423
+ _0x48ddfb += '%' + _0x53ca8a['UTZTS']('00', _0x3ac4f0[_0x53ca8a[_0x536248(0x208)]](_0x3d416b)['toString'](0x10))[_0x536248(0x202)](-0x2);
424
+ }
425
+ return _0x53ca8a[_0x536248(0x1dd)](decodeURIComponent, _0x48ddfb);
426
+ };
427
+ a2_0x1e35[_0x53ca8a[_0x1cfde7(a1_0x573892._0x14494c)]] = _0x4ee01b, a2_0x1e35[_0x1cfde7(a1_0x573892._0xca7faa)] = {}, a2_0x1e35[_0x1cfde7(a1_0x573892._0x706151)] = !![];
428
+ }
429
+ const _0x41d249 = _0x24fda2[0x0], _0x3184a2 = _0x53ca8a[_0x1cfde7(0x225)](_0x4f131f, _0x41d249), _0x28db24 = a2_0x1e35[_0x53ca8a[_0x1cfde7(0x1db)]][_0x3184a2];
430
+ return !_0x28db24 ? (_0x115997 = a2_0x1e35[_0x1cfde7(0x1f8)](_0x115997), a2_0x1e35[_0x53ca8a['PJLXK']][_0x3184a2] = _0x115997) : _0x115997 = _0x28db24, _0x115997;
431
+ }
38
432
  class CryptoIntegrityError extends CryptoError {
39
- constructor(code, message) {
40
- super(code, message, `${DOC_BASE}#integrity`);
41
- this.name = 'CryptoIntegrityError';
433
+ constructor(_0x1c0757, _0xbda47e) {
434
+ const a1_0x4e2a9d = {
435
+ _0x1a380f: 0x205,
436
+ _0x21b92f: 0x272,
437
+ _0x35c78e: 0x1d8
438
+ }, _0x3e50f6 = a1_0x591d, _0x37ff70 = {
439
+ 'pKOsu': function (_0x75db6f, _0xc132be) {
440
+ return _0x75db6f(_0xc132be);
441
+ },
442
+ 'bxnuu': function (_0x116b67, _0x4623b9) {
443
+ return _0x116b67(_0x4623b9);
444
+ }
445
+ }, _0xb48fa7 = {
446
+ '_0x514786': 0x1f2,
447
+ '_0x4bb336': 0x1ec
448
+ }, _0x5e0503 = a2_0x1e35, _0xc6d9b7 = { 'Mvdcp': _0x3e50f6(a1_0x4e2a9d._0x1a380f) };
449
+ super(_0x1c0757, _0xbda47e, DOC_BASE + _0x37ff70[_0x3e50f6(0x1e3)](_0x5e0503, _0xb48fa7[_0x3e50f6(a1_0x4e2a9d._0x21b92f)])), this[_0x5e0503(_0xb48fa7[_0x3e50f6(a1_0x4e2a9d._0x35c78e)])] = _0xc6d9b7[_0x37ff70['bxnuu'](_0x5e0503, 0x1c0)];
42
450
  }
43
451
  }
44
- exports.CryptoIntegrityError = CryptoIntegrityError;
45
- /** Error thrown for PKCS#7 padding issues. */
452
+ function a2_0x1b83() {
453
+ const a1_0x3d34b9 = {
454
+ _0x35c7e8: 0x245,
455
+ _0x16b7ac: 0x24b,
456
+ _0x177e7d: 0x25f,
457
+ _0x494dae: 0x271,
458
+ _0x1645a1: 0x204,
459
+ _0x48a678: 0x1fd,
460
+ _0x296b0c: 0x1de,
461
+ _0x48fdfd: 0x20a,
462
+ _0x52affc: 0x21f,
463
+ _0x4e7052: 0x255,
464
+ _0x4f2155: 0x20b,
465
+ _0x3ae34e: 0x25c,
466
+ _0x2f54c7: 0x200,
467
+ _0x2d4a66: 0x1f3,
468
+ _0x2097ea: 0x263,
469
+ _0x7c5d: 0x1ea,
470
+ _0x2e23a9: 0x22d,
471
+ _0x4dc8a: 0x243,
472
+ _0x32485b: 0x219,
473
+ _0x3b2d29: 0x26c,
474
+ _0x320467: 0x234,
475
+ _0x44c9eb: 0x1fc,
476
+ _0x2757d6: 0x1ee,
477
+ _0x15e02f: 0x1ed,
478
+ _0x89e089: 0x1e5,
479
+ _0x55e11a: 0x274,
480
+ _0x53d145: 0x20c,
481
+ _0x38538e: 0x275,
482
+ _0x303929: 0x1e0,
483
+ _0x6f63a7: 0x276,
484
+ _0x3bce84: 0x25a,
485
+ _0x2c63bf: 0x230,
486
+ _0x288113: 0x26f
487
+ }, _0x88d32a = a1_0x591d, _0x522613 = {
488
+ 'VurCX': _0x88d32a(0x214),
489
+ 'suBfL': _0x88d32a(a1_0x3d34b9._0x35c7e8),
490
+ 'PvzzI': 'zg9JvxjS',
491
+ 'wCKTW': _0x88d32a(a1_0x3d34b9._0x16b7ac),
492
+ 'vSRrV': _0x88d32a(a1_0x3d34b9._0x177e7d),
493
+ 'ewPDT': 'C3vIq29Kzq',
494
+ 'whYMd': _0x88d32a(0x22b),
495
+ 'prSQA': _0x88d32a(a1_0x3d34b9._0x494dae),
496
+ 'mrfpM': _0x88d32a(0x252),
497
+ 'BLzPz': _0x88d32a(a1_0x3d34b9._0x1645a1),
498
+ 'wxLhE': _0x88d32a(a1_0x3d34b9._0x48a678),
499
+ 'ZErMh': 'wg9YsurbihnWBgL0ig9WzxjHDgLVBIbMywLSzwqGzhvLihrVigLUDMfSAwqGAw5WDxqGB3iGy29UzMLNDxjHDgLVBI4',
500
+ 'LJAdC': 'u1bmsvrFrKfjteve',
501
+ 'QmVQT': _0x88d32a(a1_0x3d34b9._0x296b0c),
502
+ 'zlhmA': 'q3j5ChrVsw50zwDYAxr5rxjYB3i',
503
+ 'BihYx': _0x88d32a(0x1e1),
504
+ 'esvwv': _0x88d32a(0x1e8),
505
+ 'QTBCl': _0x88d32a(0x25b),
506
+ 'FlKUg': _0x88d32a(0x211),
507
+ 'wkSwt': _0x88d32a(a1_0x3d34b9._0x48fdfd),
508
+ 'KkLLs': 'mta1mJq2odfrCNjSDgy',
509
+ 'yqcwS': _0x88d32a(a1_0x3d34b9._0x52affc),
510
+ 'aIvZT': _0x88d32a(a1_0x3d34b9._0x4e7052),
511
+ 'bYJRy': _0x88d32a(0x1e9),
512
+ 'rqiRK': 'u3bSAxqGy29UzMLNDxjHDgLVBIbPCYbPBNzHBgLKicHUidWGmIWGAYa8idiSig9YigSGpIbUkq',
513
+ 'QylVM': _0x88d32a(a1_0x3d34b9._0x4f2155),
514
+ 'ORrXO': _0x88d32a(0x240),
515
+ 'BizMP': _0x88d32a(a1_0x3d34b9._0x3ae34e),
516
+ 'LpnIz': _0x88d32a(a1_0x3d34b9._0x2f54c7)
517
+ }, _0x381b21 = [
518
+ _0x88d32a(a1_0x3d34b9._0x2d4a66),
519
+ 'ogDIruPzAW',
520
+ _0x88d32a(0x24d),
521
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x2097ea)],
522
+ 'mtG5ndiXmevjBefyBa',
523
+ _0x522613['suBfL'],
524
+ _0x88d32a(0x21b),
525
+ 'rw52zwXVCguGvvvjrcbKB2vZig5VDcbTyxrJAcbutfyGCgf5Bg9HzcbvvuLe',
526
+ _0x88d32a(a1_0x3d34b9._0x7c5d),
527
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x2e23a9)],
528
+ _0x88d32a(0x1f5),
529
+ _0x88d32a(a1_0x3d34b9._0x4dc8a),
530
+ _0x522613[_0x88d32a(0x206)],
531
+ _0x88d32a(0x256),
532
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x32485b)],
533
+ _0x88d32a(a1_0x3d34b9._0x3b2d29),
534
+ _0x522613[_0x88d32a(0x26d)],
535
+ _0x522613[_0x88d32a(0x20f)],
536
+ _0x88d32a(a1_0x3d34b9._0x320467),
537
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x44c9eb)],
538
+ _0x88d32a(a1_0x3d34b9._0x2757d6),
539
+ _0x522613['mrfpM'],
540
+ _0x522613['BLzPz'],
541
+ _0x522613[_0x88d32a(0x22e)],
542
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x15e02f)],
543
+ _0x522613[_0x88d32a(0x261)],
544
+ _0x522613[_0x88d32a(0x1fe)],
545
+ _0x522613['zlhmA'],
546
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x89e089)],
547
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x55e11a)],
548
+ _0x522613[_0x88d32a(0x269)],
549
+ _0x88d32a(0x210),
550
+ _0x88d32a(0x217),
551
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x53d145)],
552
+ _0x522613[_0x88d32a(0x1f7)],
553
+ _0x88d32a(a1_0x3d34b9._0x38538e),
554
+ _0x88d32a(a1_0x3d34b9._0x303929),
555
+ 'u3rHBMrHBg9UzsbitufdihzLCMLMAwnHDgLVBIbMywLSzwqUierHDgeGB3iGA2v5igLZigLUy29YCMvJDc4',
556
+ _0x88d32a(0x278),
557
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x6f63a7)],
558
+ _0x522613[_0x88d32a(0x1f2)],
559
+ _0x522613[_0x88d32a(0x1dc)],
560
+ _0x522613[_0x88d32a(0x236)],
561
+ _0x522613[_0x88d32a(0x24f)],
562
+ _0x88d32a(a1_0x3d34b9._0x3bce84),
563
+ _0x522613[_0x88d32a(a1_0x3d34b9._0x2c63bf)],
564
+ _0x522613['ORrXO'],
565
+ 'BMfTzq',
566
+ _0x522613[_0x88d32a(0x1f9)],
567
+ 'sM1otge',
568
+ _0x88d32a(a1_0x3d34b9._0x288113),
569
+ _0x522613['LpnIz'],
570
+ 'y29Kzq',
571
+ _0x88d32a(0x1ef)
572
+ ];
573
+ return a2_0x1b83 = function () {
574
+ return _0x381b21;
575
+ }, a2_0x1b83();
576
+ }
577
+ exports[a2_0x455e08(0x1d8)] = CryptoIntegrityError;
46
578
  class CryptoPaddingError extends CryptoError {
47
- constructor(code, message) {
48
- super(code, message, `${DOC_BASE}#padding`);
49
- this.name = 'CryptoPaddingError';
579
+ constructor(_0x108b2f, _0x1e001b) {
580
+ const a1_0x45adcb = { _0x86434c: 0x229 }, _0x5ad5c8 = a1_0x591d, _0xcb145f = {
581
+ 'haqTL': function (_0x143b1c, _0x2382a5) {
582
+ return _0x143b1c(_0x2382a5);
583
+ }
584
+ }, _0x36d906 = { '_0x4feeb8': 0x1ec }, _0x4cd0ba = a2_0x1e35;
585
+ super(_0x108b2f, _0x1e001b, DOC_BASE + _0xcb145f[_0x5ad5c8(0x260)](_0x4cd0ba, 0x1c5)), this[_0x4cd0ba(_0x36d906[_0x5ad5c8(a1_0x45adcb._0x86434c)])] = _0x4cd0ba(0x1e5);
50
586
  }
51
587
  }
52
- exports.CryptoPaddingError = CryptoPaddingError;
53
- /** Error thrown during TLV serialization or deserialization. */
588
+ exports[a2_0x455e08(0x1e5)] = CryptoPaddingError;
54
589
  class CryptoSerializationError extends CryptoError {
55
- constructor(code, message) {
56
- super(code, message, `${DOC_BASE}#serialization`);
57
- this.name = 'CryptoSerializationError';
590
+ constructor(_0x2b1beb, _0x4ba8c2) {
591
+ const a1_0x1ed6a1 = {
592
+ _0x4b293a: 0x25d,
593
+ _0x5866d7: 0x220,
594
+ _0xe9a28a: 0x22a
595
+ }, _0x1987dc = a1_0x591d, _0x48a003 = {
596
+ 'pJBgw': function (_0x541cc2, _0xf7c18a) {
597
+ return _0x541cc2 + _0xf7c18a;
598
+ },
599
+ 'RoTSK': function (_0x3eefde, _0x53a133) {
600
+ return _0x3eefde(_0x53a133);
601
+ }
602
+ }, _0x525541 = { '_0x31cfda': 0x1c3 }, _0x380ddf = a2_0x1e35;
603
+ super(_0x2b1beb, _0x4ba8c2, _0x48a003[_0x1987dc(a1_0x1ed6a1._0x4b293a)](DOC_BASE, _0x48a003[_0x1987dc(a1_0x1ed6a1._0x5866d7)](_0x380ddf, _0x525541[_0x1987dc(0x238)]))), this[_0x1987dc(0x26b)] = _0x1987dc(a1_0x1ed6a1._0xe9a28a);
58
604
  }
59
605
  }
60
- exports.CryptoSerializationError = CryptoSerializationError;
61
- /** Human-readable messages for each error code. */
62
- exports.ERROR_MESSAGES = {
63
- SPLIT_FAILED: 'XorIDA split operation failed',
64
- RECONSTRUCTION_FAILED: 'XorIDA reconstruction failed',
65
- INSUFFICIENT_SHARES: 'Not enough shares provided for reconstruction',
66
- INVALID_SHARES: 'Shares have inconsistent UUID, n, or k values',
67
- INVALID_INDEX: 'Share index is out of range or duplicated',
68
- HMAC_FAILURE: 'HMAC integrity verification failed -- data may be corrupted',
69
- UUID_MISMATCH: 'Envelope UUID does not match TLV payload UUID',
70
- INVALID_PADDING: 'PKCS#7 padding is invalid or corrupted',
71
- INVALID_TLV: 'TLV buffer is malformed or truncated',
72
- BUFFER_OVERFLOW: 'TLV value length exceeds buffer bounds',
73
- MISSING_FIELD: 'Required TLV field is missing from serialized data',
74
- INVALID_CONFIG: 'Split configuration is invalid (n < 2, k < 2, or k > n)',
75
- };
76
- /**
77
- * Detailed descriptions for each error code.
78
- * Maps error codes to comprehensive explanations including cause and resolution.
79
- */
80
- exports.ERROR_DETAILS = {
81
- INVALID_PADDING: 'PKCS#7 padding bytes are invalid or inconsistent. Data may be corrupted.',
82
- HMAC_FAILURE: 'HMAC-SHA256 verification failed during reconstruction. One or more shares have been tampered with.',
83
- INVALID_SHARES: 'Shares have inconsistent lengths, duplicate indices, or mismatched parameters.',
84
- INSUFFICIENT_SHARES: 'Fewer shares provided than the required threshold k.',
85
- INVALID_INDEX: 'A share index is out of range (must be 0 to n-1).',
86
- UUID_MISMATCH: 'Shares reference different message UUIDs and cannot be combined.',
87
- INVALID_TLV: 'TLV data is malformed or truncated.',
88
- BUFFER_OVERFLOW: 'TLV length field exceeds available data.',
89
- MISSING_FIELD: 'A required TLV field (e.g., MESSAGE_UUID) is absent.',
90
- INVALID_TYPE: 'An unrecognized TLV type tag was encountered in a required position.',
91
- HMAC_MISMATCH: 'Standalone HMAC verification failed. Data or key is incorrect.',
92
- KEY_ERROR: 'HMAC key import failed (invalid length or format).',
93
- SPLIT_FAILED: 'XorIDA split operation failed due to invalid input or configuration.',
94
- RECONSTRUCTION_FAILED: 'XorIDA reconstruction failed. Check share integrity and parameters.',
95
- INVALID_CONFIG: 'Split configuration is invalid. Requires n >= 2, k >= 2, and k <= n.',
606
+ exports[a2_0x455e08(0x1ef)] = CryptoSerializationError, exports[a2_0x455e08(0x1db)] = {
607
+ 'SPLIT_FAILED': a1_0x1ff95(0x24c),
608
+ 'RECONSTRUCTION_FAILED': a2_0x455e08(0x1d1),
609
+ 'INSUFFICIENT_SHARES': a2_0x455e08(0x1e1),
610
+ 'INVALID_SHARES': a1_0x1ff95(0x24a),
611
+ 'INVALID_INDEX': a2_0x455e08(0x1e7),
612
+ 'HMAC_FAILURE': 'HMAC\x20integrity\x20verification\x20failed\x20--\x20data\x20may\x20be\x20corrupted',
613
+ 'UUID_MISMATCH': a2_0x455e08(0x1c4),
614
+ 'INVALID_PADDING': a2_0x455e08(0x1dd),
615
+ 'INVALID_TLV': a2_0x455e08(0x1e6),
616
+ 'BUFFER_OVERFLOW': a2_0x455e08(0x1dc),
617
+ 'MISSING_FIELD': a2_0x455e08(0x1de),
618
+ 'INVALID_CONFIG': a2_0x455e08(0x1e8)
619
+ }, exports[a1_0x1ff95(0x25e)] = {
620
+ 'INVALID_PADDING': a2_0x455e08(0x1d9),
621
+ 'HMAC_FAILURE': a1_0x1ff95(0x1ec),
622
+ 'INVALID_SHARES': a2_0x455e08(0x1c2),
623
+ 'INSUFFICIENT_SHARES': a1_0x1ff95(0x270),
624
+ 'INVALID_INDEX': 'A\x20share\x20index\x20is\x20out\x20of\x20range\x20(must\x20be\x200\x20to\x20n-1).',
625
+ 'UUID_MISMATCH': a1_0x1ff95(0x1f6),
626
+ 'INVALID_TLV': a1_0x1ff95(0x224),
627
+ 'BUFFER_OVERFLOW': a2_0x455e08(0x1c7),
628
+ 'MISSING_FIELD': a2_0x455e08(0x1d2),
629
+ 'INVALID_TYPE': a2_0x455e08(0x1d7),
630
+ 'HMAC_MISMATCH': a2_0x455e08(0x1e2),
631
+ 'KEY_ERROR': a1_0x1ff95(0x253),
632
+ 'SPLIT_FAILED': a2_0x455e08(0x1d5),
633
+ 'RECONSTRUCTION_FAILED': 'XorIDA\x20reconstruction\x20failed.\x20Check\x20share\x20integrity\x20and\x20parameters.',
634
+ 'INVALID_CONFIG': a2_0x455e08(0x1ca)
96
635
  };
97
- /**
98
- * Convert an unknown error into a CryptoError.
99
- *
100
- * @param error - The unknown error to convert
101
- * @returns A CryptoError instance
102
- */
103
- function toCryptoError(error) {
104
- if (error instanceof CryptoError)
105
- return error;
106
- if (error instanceof Error) {
107
- return new CryptoError('SPLIT_FAILED', error.message);
108
- }
109
- return new CryptoError('SPLIT_FAILED', String(error));
110
- }
111
- /**
112
- * Type guard to check if an error is a CryptoError.
113
- *
114
- * @param error - The value to check
115
- * @returns true if the value is a CryptoError instance
116
- */
117
- function isCryptoError(error) {
118
- return error instanceof CryptoError;
636
+ function toCryptoError(_0x218d52) {
637
+ const a1_0x5e3cee = {
638
+ _0x1a752b: 0x258,
639
+ _0xd57dd4: 0x267,
640
+ _0x13d65e: 0x266
641
+ }, a1_0x4db86c = { _0x1a5a0d: 0x258 }, _0x2f5b73 = a1_0x591d, _0x1985b2 = {
642
+ 'OJSSv': function (_0x11a11b, _0x5110f5) {
643
+ return _0x11a11b instanceof _0x5110f5;
644
+ },
645
+ 'XLRdY': function (_0x49e5ab, _0x247fb9) {
646
+ return _0x49e5ab(_0x247fb9);
647
+ }
648
+ }, _0x389465 = {
649
+ '_0x2437c3': 0x1ee,
650
+ '_0x6df3c7': 0x1e9,
651
+ '_0x26be8c': 0x1ce
652
+ }, _0xabee35 = a2_0x1e35, _0x446c39 = {
653
+ 'JmNLa': function (_0x5d6262, _0x145c9b) {
654
+ return _0x1985b2['OJSSv'](_0x5d6262, _0x145c9b);
655
+ },
656
+ 'WlaWN': _0xabee35(0x1d6),
657
+ 'UMGAV': function (_0x50423d, _0x2c7a7f) {
658
+ const _0xdafbc2 = a1_0x591d;
659
+ return _0x1985b2[_0xdafbc2(a1_0x4db86c._0x1a5a0d)](_0x50423d, _0x2c7a7f);
660
+ }
661
+ };
662
+ if (_0x218d52 instanceof CryptoError)
663
+ return _0x218d52;
664
+ if (_0x446c39[_0x1985b2[_0x2f5b73(a1_0x5e3cee._0x1a752b)](_0xabee35, _0x389465[_0x2f5b73(a1_0x5e3cee._0xd57dd4)])](_0x218d52, Error))
665
+ return new CryptoError(_0x446c39[_0xabee35(_0x389465[_0x2f5b73(0x248)])], _0x218d52[_0x2f5b73(0x216)]);
666
+ return new CryptoError(_0x446c39[_0x2f5b73(a1_0x5e3cee._0x13d65e)], _0x446c39[_0xabee35(_0x389465[_0x2f5b73(0x1ff)])](String, _0x218d52));
119
667
  }
668
+ function isCryptoError(_0x8ecdbb) {
669
+ const a1_0xc77827 = { _0x1840ec: 0x1e4 }, _0x38ba9a = a1_0x591d, _0x4a72c8 = {
670
+ 'fLWxx': function (_0x23c5a1, _0x278f40) {
671
+ return _0x23c5a1 instanceof _0x278f40;
672
+ }
673
+ };
674
+ return _0x4a72c8[_0x38ba9a(a1_0xc77827._0x1840ec)](_0x8ecdbb, CryptoError);
675
+ }