@springmicro/auth 0.2.0 → 0.3.4
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.
- package/.eslintrc.cjs +0 -0
- package/README.md +60 -60
- package/dist/{Index-c419311f-C4ismbFI.js → Index-64ac63ff-mcEPPGzJ.js} +101 -102
- package/dist/{Index-652aeb8c-CnQjaQIW.js → Index-6c094240-D4xpr8fA.js} +70 -71
- package/dist/{Web3Auth-bM2cUiiC.js → Web3Auth-DB9s-qbl.js} +12454 -12511
- package/dist/alphawallet-B7eovdf-.js +0 -0
- package/dist/apexwallet-ysP20G9D.js +0 -0
- package/dist/atoken-BBnNTzcz.js +0 -0
- package/dist/bifrostwallet-CNNBO92h.js +0 -0
- package/dist/binance-DvPgAzCw.js +0 -0
- package/dist/bitget-DZOUrwgy.js +0 -0
- package/dist/bitpie-C_uxmEzw.js +0 -0
- package/dist/bitski-DpzkHNkv.js +0 -0
- package/dist/blockwallet-BL69cqkA.js +0 -0
- package/dist/brave-DnRzMQYW.js +0 -0
- package/dist/ccip-c78d2f16-DLcRlwod.js +0 -0
- package/dist/coin98wallet-CkFdOvXt.js +0 -0
- package/dist/coinbase-CaGNx5if.js +0 -0
- package/dist/core-9rK8tWud.js +0 -0
- package/dist/defiwallet-0AsgJBSy.js +0 -0
- package/dist/detected-CX_JZaUk.js +0 -0
- package/dist/echooo-CmaetT_Z.js +0 -0
- package/dist/enkrypt-BibtwvK7.js +0 -0
- package/dist/exodus-BxzkDWWP.js +0 -0
- package/dist/fordefi-CvKyVwhI.js +0 -0
- package/dist/foxwallet-D7c_LDTf.js +0 -0
- package/dist/frame-CDfNmjUy.js +0 -0
- package/dist/frontier-DqKNSj2z.js +0 -0
- package/dist/hashMessage-Dw0KdqMZ.js +2101 -0
- package/dist/huobiwallet-CxSwqa5L.js +0 -0
- package/dist/hyperpay-nmHE3WqM.js +0 -0
- package/dist/icon-2Zqy7pqQ.js +0 -0
- package/dist/icon-CGWI1Ies.js +0 -0
- package/dist/icon-C_O4nprO.js +0 -0
- package/dist/icon-DbgmZCnU.js +0 -0
- package/dist/icon-Dbjb6jc5.js +20 -0
- package/dist/icon-cAd7RhSC.js +0 -0
- package/dist/imtoken-yENtOTS3.js +0 -0
- package/dist/index-021f6a62-Zz543EDB.js +0 -0
- package/dist/index-40a497ea-Bn2mC0r7.js +0 -0
- package/dist/{index-UIY0HLkp.js → index-C0yeApwY.js} +750 -751
- package/dist/{index-CWOsToua.js → index-CDaoza_m.js} +2 -2
- package/dist/index-CiwBcaZ0.js +384 -0
- package/dist/{index-DsVRaLEN.js → index-CroNOC7e.js} +1859 -1826
- package/dist/{index-DhlCF-kH.js → index-Df5ie3cE.js} +2 -2
- package/dist/{index-CSySSnNv.js → index-F-gl3DJX.js} +8 -10
- package/dist/index-wNV8PBAh.js +11412 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +347 -336
- package/dist/infinitywallet-C8J4FUYw.js +0 -0
- package/dist/kayros-AIrUK1za.js +0 -0
- package/dist/keplr-CyLTca9B.js +36 -0
- package/dist/lif3wallet-C5D6r8pg.js +0 -0
- package/dist/liquality-nbCtErVq.js +0 -0
- package/dist/mathwallet-CWkivCXo.js +0 -0
- package/dist/meetone-kKmvI8md.js +0 -0
- package/dist/metamask-BN7yiDV1.js +0 -0
- package/dist/mykey-CQZ6UcLH.js +0 -0
- package/dist/native-FDN9oNjc.js +15 -0
- package/dist/number-ByqdQYDu.js +1529 -0
- package/dist/okxwallet-CJLVogh2.js +0 -0
- package/dist/oneInch-CciyZ4Pz.js +0 -0
- package/dist/onekey-Dal8kYjU.js +0 -0
- package/dist/opera-DnKg-TJU.js +0 -0
- package/dist/ownbit-BshJUVuW.js +0 -0
- package/dist/phantom-CJ8dIcov.js +0 -0
- package/dist/rabby-D4thTcd6.js +0 -0
- package/dist/rainbow-mXld6yWV.js +0 -0
- package/dist/roninwallet-ZyYrd-D1.js +0 -0
- package/dist/safeheron-Eg1Jb29V.js +0 -0
- package/dist/safepal-DVIKy94N.js +0 -0
- package/dist/sequence-BS2IbtDg.js +0 -0
- package/dist/stablewallet-jyB079Wb.js +0 -0
- package/dist/status-FrAvQjfn.js +0 -0
- package/dist/subwallet-DMvFqKyY.js +0 -0
- package/dist/talisman-Bp8zUXqB.js +0 -0
- package/dist/tallywallet-B4OS9nIr.js +0 -0
- package/dist/tokenary-C7jjcbQa.js +0 -0
- package/dist/tokenpocket-9ZRPmAFA.js +0 -0
- package/dist/tp-V2em5bdl.js +0 -0
- package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +0 -0
- package/dist/trust-SgHubMq7.js +20 -0
- package/dist/xdefi-COVIyGz4.js +0 -0
- package/dist/zeal-DxHbDqm0.js +0 -0
- package/dist/zerion-BfW0UElc.js +0 -0
- package/dist/zodiacpilot-CrId6F4w.js +0 -0
- package/index.html +0 -0
- package/package.json +2 -2
- package/src/auth/config.ts +91 -91
- package/src/components/SignUp.tsx +442 -442
- package/src/components/forms/AgreementModal.tsx +88 -88
- package/src/components/forms/CaptchaController.tsx +94 -94
- package/src/components/forms/CaptchaModal.jsx +171 -171
- package/src/components/forms/CaptchaWidget.jsx +146 -146
- package/src/components/forms/PasswordChecker.ts +88 -88
- package/src/components/forms/SendCodeInput.tsx +149 -149
- package/src/components/forms/SignUpFormItem.tsx +704 -704
- package/src/components/forms/util/application-api.ts +155 -155
- package/src/components/forms/util/auth-api.ts +198 -198
- package/src/components/forms/util/auth-util.tsx +346 -346
- package/src/components/forms/util/core.ts +493 -493
- package/src/components/forms/util/invitation-api.ts +132 -132
- package/src/components/forms/util/provider.tsx +603 -603
- package/src/components/forms/util/user-api.ts +303 -303
- package/src/components/provider/AdfsLoginButton.jsx +38 -38
- package/src/components/provider/AlipayLoginButton.jsx +38 -38
- package/src/components/provider/AppleLoginButton.jsx +38 -38
- package/src/components/provider/AzureADB2CLoginButton.jsx +38 -38
- package/src/components/provider/AzureADLoginButton.jsx +38 -38
- package/src/components/provider/BaiduLoginButton.jsx +38 -38
- package/src/components/provider/BilibiliLoginButton.jsx +37 -37
- package/src/components/provider/CasdoorLoginButton.jsx +38 -38
- package/src/components/provider/DingTalkLoginButton.jsx +37 -37
- package/src/components/provider/DouyinLoginButton.jsx +38 -38
- package/src/components/provider/FacebookLoginButton.jsx +37 -37
- package/src/components/provider/GitHubLoginButton.jsx +37 -37
- package/src/components/provider/GitLabLoginButton.jsx +38 -38
- package/src/components/provider/GiteeLoginButton.jsx +34 -34
- package/src/components/provider/GoogleLoginButton.jsx +68 -68
- package/src/components/provider/InfoflowLoginButton.jsx +38 -38
- package/src/components/provider/LarkLoginButton.jsx +38 -38
- package/src/components/provider/LinkedInLoginButton.jsx +37 -37
- package/src/components/provider/LoginButton.jsx +33 -33
- package/src/components/provider/OktaLoginButton.jsx +38 -38
- package/src/components/provider/Provider.jsx +3 -3
- package/src/components/provider/ProviderButton.jsx +327 -327
- package/src/components/provider/QqLoginButton.jsx +31 -31
- package/src/components/provider/SelfLoginButton.jsx +47 -47
- package/src/components/provider/SlackLoginButton.jsx +38 -38
- package/src/components/provider/SteamLoginButton.jsx +38 -38
- package/src/components/provider/WeComLoginButton.jsx +34 -34
- package/src/components/provider/Web3Auth.jsx +365 -365
- package/src/components/provider/WechatLoginButton.jsx +37 -37
- package/src/components/provider/WeiboLoginButton.jsx +34 -34
- package/src/components/util.tsx +173 -173
- package/src/i18n/en/signup.json +48 -48
- package/src/i18n/index.ts +17 -17
- package/src/index.tsx +8 -8
- package/src/vite-env.d.ts +0 -0
- package/tsconfig.json +0 -0
- package/tsconfig.node.json +0 -0
- package/vite.config.ts +33 -33
- package/dist/hmac-CGR-aDxj.js +0 -47
- package/dist/icon-duCa3gfT.js +0 -11
- package/dist/index-6lyEypQV.js +0 -161
- package/dist/index-BtLU53lm.js +0 -6023
- package/dist/index-C6mFEZgd.js +0 -14043
- package/dist/number-CgDDPrEe.js +0 -1291
- package/dist/sha256-JJGtJ2gn.js +0 -325
- package/dist/trust-gPypS1O7.js +0 -11
package/dist/sha256-JJGtJ2gn.js
DELETED
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
function m(t) {
|
|
2
|
-
if (!Number.isSafeInteger(t) || t < 0)
|
|
3
|
-
throw new Error(`Wrong positive integer: ${t}`);
|
|
4
|
-
}
|
|
5
|
-
function T(t, ...e) {
|
|
6
|
-
if (!(t instanceof Uint8Array))
|
|
7
|
-
throw new Error("Expected Uint8Array");
|
|
8
|
-
if (e.length > 0 && !e.includes(t.length))
|
|
9
|
-
throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`);
|
|
10
|
-
}
|
|
11
|
-
function Z(t) {
|
|
12
|
-
if (typeof t != "function" || typeof t.create != "function")
|
|
13
|
-
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
14
|
-
m(t.outputLen), m(t.blockLen);
|
|
15
|
-
}
|
|
16
|
-
function B(t, e = !0) {
|
|
17
|
-
if (t.destroyed)
|
|
18
|
-
throw new Error("Hash instance has been destroyed");
|
|
19
|
-
if (e && t.finished)
|
|
20
|
-
throw new Error("Hash#digest() has already been called");
|
|
21
|
-
}
|
|
22
|
-
function I(t, e) {
|
|
23
|
-
T(t);
|
|
24
|
-
const s = e.outputLen;
|
|
25
|
-
if (t.length < s)
|
|
26
|
-
throw new Error(`digestInto() expects output buffer of length at least ${s}`);
|
|
27
|
-
}
|
|
28
|
-
const A = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
29
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
30
|
-
const E = (t) => t instanceof Uint8Array, j = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), C = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), w = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), u = (t, e) => t << 32 - e | t >>> e, _ = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
31
|
-
if (!_)
|
|
32
|
-
throw new Error("Non little-endian hardware is not supported");
|
|
33
|
-
const D = /* @__PURE__ */ Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0"));
|
|
34
|
-
function N(t) {
|
|
35
|
-
if (!E(t))
|
|
36
|
-
throw new Error("Uint8Array expected");
|
|
37
|
-
let e = "";
|
|
38
|
-
for (let s = 0; s < t.length; s++)
|
|
39
|
-
e += D[t[s]];
|
|
40
|
-
return e;
|
|
41
|
-
}
|
|
42
|
-
function F(t) {
|
|
43
|
-
if (typeof t != "string")
|
|
44
|
-
throw new Error("hex string expected, got " + typeof t);
|
|
45
|
-
const e = t.length;
|
|
46
|
-
if (e % 2)
|
|
47
|
-
throw new Error("padded hex string expected, got unpadded hex of length " + e);
|
|
48
|
-
const s = new Uint8Array(e / 2);
|
|
49
|
-
for (let n = 0; n < s.length; n++) {
|
|
50
|
-
const o = n * 2, i = t.slice(o, o + 2), r = Number.parseInt(i, 16);
|
|
51
|
-
if (Number.isNaN(r) || r < 0)
|
|
52
|
-
throw new Error("Invalid byte sequence");
|
|
53
|
-
s[n] = r;
|
|
54
|
-
}
|
|
55
|
-
return s;
|
|
56
|
-
}
|
|
57
|
-
const H = async () => {
|
|
58
|
-
};
|
|
59
|
-
async function V(t, e, s) {
|
|
60
|
-
let n = Date.now();
|
|
61
|
-
for (let o = 0; o < t; o++) {
|
|
62
|
-
s(o);
|
|
63
|
-
const i = Date.now() - n;
|
|
64
|
-
i >= 0 && i < e || (await H(), n += i);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function O(t) {
|
|
68
|
-
if (typeof t != "string")
|
|
69
|
-
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
70
|
-
return new Uint8Array(new TextEncoder().encode(t));
|
|
71
|
-
}
|
|
72
|
-
function g(t) {
|
|
73
|
-
if (typeof t == "string" && (t = O(t)), !E(t))
|
|
74
|
-
throw new Error(`expected Uint8Array, got ${typeof t}`);
|
|
75
|
-
return t;
|
|
76
|
-
}
|
|
77
|
-
function $(...t) {
|
|
78
|
-
const e = new Uint8Array(t.reduce((n, o) => n + o.length, 0));
|
|
79
|
-
let s = 0;
|
|
80
|
-
return t.forEach((n) => {
|
|
81
|
-
if (!E(n))
|
|
82
|
-
throw new Error("Uint8Array expected");
|
|
83
|
-
e.set(n, s), s += n.length;
|
|
84
|
-
}), e;
|
|
85
|
-
}
|
|
86
|
-
class S {
|
|
87
|
-
// Safe version that clones internal state
|
|
88
|
-
clone() {
|
|
89
|
-
return this._cloneInto();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const G = {}.toString;
|
|
93
|
-
function W(t, e) {
|
|
94
|
-
if (e !== void 0 && G.call(e) !== "[object Object]")
|
|
95
|
-
throw new Error("Options should be object or undefined");
|
|
96
|
-
return Object.assign(t, e);
|
|
97
|
-
}
|
|
98
|
-
function L(t) {
|
|
99
|
-
const e = (n) => t().update(g(n)).digest(), s = t();
|
|
100
|
-
return e.outputLen = s.outputLen, e.blockLen = s.blockLen, e.create = () => t(), e;
|
|
101
|
-
}
|
|
102
|
-
function M(t) {
|
|
103
|
-
const e = (n, o) => t(o).update(g(n)).digest(), s = t({});
|
|
104
|
-
return e.outputLen = s.outputLen, e.blockLen = s.blockLen, e.create = (n) => t(n), e;
|
|
105
|
-
}
|
|
106
|
-
function v(t) {
|
|
107
|
-
const e = (n, o) => t(o).update(g(n)).digest(), s = t({});
|
|
108
|
-
return e.outputLen = s.outputLen, e.blockLen = s.blockLen, e.create = (n) => t(n), e;
|
|
109
|
-
}
|
|
110
|
-
function R(t = 32) {
|
|
111
|
-
if (A && typeof A.getRandomValues == "function")
|
|
112
|
-
return A.getRandomValues(new Uint8Array(t));
|
|
113
|
-
throw new Error("crypto.getRandomValues must be defined");
|
|
114
|
-
}
|
|
115
|
-
const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
116
|
-
__proto__: null,
|
|
117
|
-
Hash: S,
|
|
118
|
-
asyncLoop: V,
|
|
119
|
-
bytesToHex: N,
|
|
120
|
-
checkOpts: W,
|
|
121
|
-
concatBytes: $,
|
|
122
|
-
createView: w,
|
|
123
|
-
hexToBytes: F,
|
|
124
|
-
isLE: _,
|
|
125
|
-
nextTick: H,
|
|
126
|
-
randomBytes: R,
|
|
127
|
-
rotr: u,
|
|
128
|
-
toBytes: g,
|
|
129
|
-
u32: C,
|
|
130
|
-
u8: j,
|
|
131
|
-
utf8ToBytes: O,
|
|
132
|
-
wrapConstructor: L,
|
|
133
|
-
wrapConstructorWithOpts: M,
|
|
134
|
-
wrapXOFConstructorWithOpts: v
|
|
135
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
136
|
-
function z(t, e, s, n) {
|
|
137
|
-
if (typeof t.setBigUint64 == "function")
|
|
138
|
-
return t.setBigUint64(e, s, n);
|
|
139
|
-
const o = BigInt(32), i = BigInt(4294967295), r = Number(s >> o & i), f = Number(s & i), h = n ? 4 : 0, a = n ? 0 : 4;
|
|
140
|
-
t.setUint32(e + h, r, n), t.setUint32(e + a, f, n);
|
|
141
|
-
}
|
|
142
|
-
class P extends S {
|
|
143
|
-
constructor(e, s, n, o) {
|
|
144
|
-
super(), this.blockLen = e, this.outputLen = s, this.padOffset = n, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = w(this.buffer);
|
|
145
|
-
}
|
|
146
|
-
update(e) {
|
|
147
|
-
B(this);
|
|
148
|
-
const { view: s, buffer: n, blockLen: o } = this;
|
|
149
|
-
e = g(e);
|
|
150
|
-
const i = e.length;
|
|
151
|
-
for (let r = 0; r < i; ) {
|
|
152
|
-
const f = Math.min(o - this.pos, i - r);
|
|
153
|
-
if (f === o) {
|
|
154
|
-
const h = w(e);
|
|
155
|
-
for (; o <= i - r; r += o)
|
|
156
|
-
this.process(h, r);
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
n.set(e.subarray(r, r + f), this.pos), this.pos += f, r += f, this.pos === o && (this.process(s, 0), this.pos = 0);
|
|
160
|
-
}
|
|
161
|
-
return this.length += e.length, this.roundClean(), this;
|
|
162
|
-
}
|
|
163
|
-
digestInto(e) {
|
|
164
|
-
B(this), I(e, this), this.finished = !0;
|
|
165
|
-
const { buffer: s, view: n, blockLen: o, isLE: i } = this;
|
|
166
|
-
let { pos: r } = this;
|
|
167
|
-
s[r++] = 128, this.buffer.subarray(r).fill(0), this.padOffset > o - r && (this.process(n, 0), r = 0);
|
|
168
|
-
for (let c = r; c < o; c++)
|
|
169
|
-
s[c] = 0;
|
|
170
|
-
z(n, o - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
171
|
-
const f = w(e), h = this.outputLen;
|
|
172
|
-
if (h % 4)
|
|
173
|
-
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
174
|
-
const a = h / 4, x = this.get();
|
|
175
|
-
if (a > x.length)
|
|
176
|
-
throw new Error("_sha2: outputLen bigger than state");
|
|
177
|
-
for (let c = 0; c < a; c++)
|
|
178
|
-
f.setUint32(4 * c, x[c], i);
|
|
179
|
-
}
|
|
180
|
-
digest() {
|
|
181
|
-
const { buffer: e, outputLen: s } = this;
|
|
182
|
-
this.digestInto(e);
|
|
183
|
-
const n = e.slice(0, s);
|
|
184
|
-
return this.destroy(), n;
|
|
185
|
-
}
|
|
186
|
-
_cloneInto(e) {
|
|
187
|
-
e || (e = new this.constructor()), e.set(...this.get());
|
|
188
|
-
const { blockLen: s, buffer: n, length: o, finished: i, destroyed: r, pos: f } = this;
|
|
189
|
-
return e.length = o, e.pos = f, e.finished = i, e.destroyed = r, o % s && e.buffer.set(n), e;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
const q = (t, e, s) => t & e ^ ~t & s, K = (t, e, s) => t & e ^ t & s ^ e & s, X = /* @__PURE__ */ new Uint32Array([
|
|
193
|
-
1116352408,
|
|
194
|
-
1899447441,
|
|
195
|
-
3049323471,
|
|
196
|
-
3921009573,
|
|
197
|
-
961987163,
|
|
198
|
-
1508970993,
|
|
199
|
-
2453635748,
|
|
200
|
-
2870763221,
|
|
201
|
-
3624381080,
|
|
202
|
-
310598401,
|
|
203
|
-
607225278,
|
|
204
|
-
1426881987,
|
|
205
|
-
1925078388,
|
|
206
|
-
2162078206,
|
|
207
|
-
2614888103,
|
|
208
|
-
3248222580,
|
|
209
|
-
3835390401,
|
|
210
|
-
4022224774,
|
|
211
|
-
264347078,
|
|
212
|
-
604807628,
|
|
213
|
-
770255983,
|
|
214
|
-
1249150122,
|
|
215
|
-
1555081692,
|
|
216
|
-
1996064986,
|
|
217
|
-
2554220882,
|
|
218
|
-
2821834349,
|
|
219
|
-
2952996808,
|
|
220
|
-
3210313671,
|
|
221
|
-
3336571891,
|
|
222
|
-
3584528711,
|
|
223
|
-
113926993,
|
|
224
|
-
338241895,
|
|
225
|
-
666307205,
|
|
226
|
-
773529912,
|
|
227
|
-
1294757372,
|
|
228
|
-
1396182291,
|
|
229
|
-
1695183700,
|
|
230
|
-
1986661051,
|
|
231
|
-
2177026350,
|
|
232
|
-
2456956037,
|
|
233
|
-
2730485921,
|
|
234
|
-
2820302411,
|
|
235
|
-
3259730800,
|
|
236
|
-
3345764771,
|
|
237
|
-
3516065817,
|
|
238
|
-
3600352804,
|
|
239
|
-
4094571909,
|
|
240
|
-
275423344,
|
|
241
|
-
430227734,
|
|
242
|
-
506948616,
|
|
243
|
-
659060556,
|
|
244
|
-
883997877,
|
|
245
|
-
958139571,
|
|
246
|
-
1322822218,
|
|
247
|
-
1537002063,
|
|
248
|
-
1747873779,
|
|
249
|
-
1955562222,
|
|
250
|
-
2024104815,
|
|
251
|
-
2227730452,
|
|
252
|
-
2361852424,
|
|
253
|
-
2428436474,
|
|
254
|
-
2756734187,
|
|
255
|
-
3204031479,
|
|
256
|
-
3329325298
|
|
257
|
-
]), l = /* @__PURE__ */ new Uint32Array([
|
|
258
|
-
1779033703,
|
|
259
|
-
3144134277,
|
|
260
|
-
1013904242,
|
|
261
|
-
2773480762,
|
|
262
|
-
1359893119,
|
|
263
|
-
2600822924,
|
|
264
|
-
528734635,
|
|
265
|
-
1541459225
|
|
266
|
-
]), d = /* @__PURE__ */ new Uint32Array(64);
|
|
267
|
-
class k extends P {
|
|
268
|
-
constructor() {
|
|
269
|
-
super(64, 32, 8, !1), this.A = l[0] | 0, this.B = l[1] | 0, this.C = l[2] | 0, this.D = l[3] | 0, this.E = l[4] | 0, this.F = l[5] | 0, this.G = l[6] | 0, this.H = l[7] | 0;
|
|
270
|
-
}
|
|
271
|
-
get() {
|
|
272
|
-
const { A: e, B: s, C: n, D: o, E: i, F: r, G: f, H: h } = this;
|
|
273
|
-
return [e, s, n, o, i, r, f, h];
|
|
274
|
-
}
|
|
275
|
-
// prettier-ignore
|
|
276
|
-
set(e, s, n, o, i, r, f, h) {
|
|
277
|
-
this.A = e | 0, this.B = s | 0, this.C = n | 0, this.D = o | 0, this.E = i | 0, this.F = r | 0, this.G = f | 0, this.H = h | 0;
|
|
278
|
-
}
|
|
279
|
-
process(e, s) {
|
|
280
|
-
for (let c = 0; c < 16; c++, s += 4)
|
|
281
|
-
d[c] = e.getUint32(s, !1);
|
|
282
|
-
for (let c = 16; c < 64; c++) {
|
|
283
|
-
const p = d[c - 15], b = d[c - 2], U = u(p, 7) ^ u(p, 18) ^ p >>> 3, y = u(b, 17) ^ u(b, 19) ^ b >>> 10;
|
|
284
|
-
d[c] = y + d[c - 7] + U + d[c - 16] | 0;
|
|
285
|
-
}
|
|
286
|
-
let { A: n, B: o, C: i, D: r, E: f, F: h, G: a, H: x } = this;
|
|
287
|
-
for (let c = 0; c < 64; c++) {
|
|
288
|
-
const p = u(f, 6) ^ u(f, 11) ^ u(f, 25), b = x + p + q(f, h, a) + X[c] + d[c] | 0, y = (u(n, 2) ^ u(n, 13) ^ u(n, 22)) + K(n, o, i) | 0;
|
|
289
|
-
x = a, a = h, h = f, f = r + b | 0, r = i, i = o, o = n, n = b + y | 0;
|
|
290
|
-
}
|
|
291
|
-
n = n + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, r = r + this.D | 0, f = f + this.E | 0, h = h + this.F | 0, a = a + this.G | 0, x = x + this.H | 0, this.set(n, o, i, r, f, h, a, x);
|
|
292
|
-
}
|
|
293
|
-
roundClean() {
|
|
294
|
-
d.fill(0);
|
|
295
|
-
}
|
|
296
|
-
destroy() {
|
|
297
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
class J extends k {
|
|
301
|
-
constructor() {
|
|
302
|
-
super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
const Q = /* @__PURE__ */ L(() => new k()), Y = /* @__PURE__ */ L(() => new J()), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
306
|
-
__proto__: null,
|
|
307
|
-
sha224: Y,
|
|
308
|
-
sha256: Q
|
|
309
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
310
|
-
export {
|
|
311
|
-
S as H,
|
|
312
|
-
et as a,
|
|
313
|
-
T as b,
|
|
314
|
-
$ as c,
|
|
315
|
-
C as d,
|
|
316
|
-
B as e,
|
|
317
|
-
Z as h,
|
|
318
|
-
m as n,
|
|
319
|
-
I as o,
|
|
320
|
-
R as r,
|
|
321
|
-
Q as s,
|
|
322
|
-
g as t,
|
|
323
|
-
tt as u,
|
|
324
|
-
L as w
|
|
325
|
-
};
|
package/dist/trust-gPypS1O7.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const s = `
|
|
2
|
-
<svg width="100%" height="100%"
|
|
3
|
-
viewBox="0 0 40 40"
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
>
|
|
6
|
-
<path d="m1.36250526 6.825c-1.36250526 2.675-1.36250526 6.175-1.36250526 13.175s0 10.5 1.36250526 13.1750526c1.2 2.35 3.11249474 4.2624211 5.46249474 5.4624211 2.675 1.3625263 6.175 1.3625263 13.175 1.3625263s10.5 0 13.1750526-1.3625263c2.35-1.2 4.2624211-3.1124211 5.4624211-5.4624211 1.3625263-2.6750526 1.3625263-6.1750526 1.3625263-13.1750526s0-10.5-1.3625263-13.175c-1.2-2.35-3.1124211-4.26249474-5.4624211-5.46249474-2.6750526-1.36250526-6.1750526-1.36250526-13.1750526-1.36250526s-10.5 0-13.175 1.36250526c-2.35 1.2-4.26249474 3.11249474-5.46249474 5.46249474zm28.61875794 3.9624737c.35 0 .6812631.1437895.9250526.3875789.2436842.25.3812631.5874737.3751557.9311579-.0626294 3.7250527-.2064189 6.5750527-.4751557 8.8312632-.2625263 2.2563158-.6563158 3.9312631-1.25 5.2875789-.4.9062106-.8937895 1.6562106-1.4750526 2.2936842-.7812632.8437895-1.6749474 1.4563158-2.65 2.037579-.4168421.2492631-.8502106.4953684-1.3048421.7535789-.97.5508421-2.0365264 1.1565264-3.2451579 1.9651579-.4374737.2936842-1.0062106.2936842-1.4436843 0-1.2271578-.8181052-2.3077894-1.4312631-3.2866315-1.9865263-.2176842-.1234737-.4303158-.2441052-.6384211-.3634737-1.1436842-.6625263-2.1749474-1.2937894-3.0749474-2.2063158-.6-.6-1.1187368-1.3312631-1.5312631-2.2-.5625158-1.1625263-.94376843-2.5687368-1.22501054-4.3874736-.37501052-2.4312632-.56250526-5.6125264-.63146616-10.0250527-.0060391-.3436842.12521353-.6811579.3689609-.9311579.24374737-.2437894.5812526-.3875789.9312526-.3875789h.5375263c1.6562106.0063158 5.3124211-.1562105 8.4749474-2.61871581.4687369-.36250526 1.1250526-.36250526 1.5937895 0 3.1625263 2.46250531 6.8187368 2.62503161 8.4812631 2.61871581zm-2.9062106 14.6063158c.4062106-.837579.7437895-1.9937895 1-3.6563158.3062106-1.9874737.4937895-4.6874737.5812632-8.3624211-1.95-.0563158-5.3-.4312631-8.4937895-2.5812631-3.1936842 2.1436842-6.5436842 2.5187368-8.4874737 2.5812631.0687369 3.0374737.2062106 5.4.4249474 7.2562106.25 2.1125263.6063158 3.5437894 1.05 4.55.2937895.6687368.6188421 1.15 1.0063158 1.5749473.5187368.5688421 1.1749474 1.037579 2.0687368 1.5750527.3707369.222421.7794737.4537894 1.2244211.7056842.7927368.4486315 1.7003158.9623158 2.7130526 1.6068421.9941053-.634 1.8886316-1.1424211 2.6721053-1.5877895.2362105-.1342105.4622105-.2627368.6778947-.3872632 1.1-.6312631 1.9125263-1.1562105 2.5187369-1.7687368.4063157-.4187368.7375789-.8749474 1.0437894-1.5062105z" fill="#3375bb" fill-rule="evenodd"/>
|
|
7
|
-
</svg>
|
|
8
|
-
`;
|
|
9
|
-
export {
|
|
10
|
-
s as default
|
|
11
|
-
};
|