@gardenfi/core 0.2.0-beta.71 → 0.2.0-beta.72
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/dist/index.cjs +1 -1
- package/dist/index.js +14 -15
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +41 -55
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +2 -2
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +136 -30
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -25
- package/dist/index18.cjs +3 -1
- package/dist/index18.js +26 -29
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +17 -32
- package/dist/index20.cjs +2 -1
- package/dist/index20.js +25 -53
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +39 -26
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +199 -15
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -9
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -9
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -138
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +28 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +14 -12
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +174 -36
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +21 -41
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -24
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +34 -25
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +8 -54
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -28
- package/dist/index34.cjs +6 -3
- package/dist/index34.js +949 -30
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +4 -17
- package/dist/index36.cjs +1 -2
- package/dist/index36.js +18 -23
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +29 -38
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +60 -197
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +33 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +87 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +49 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +25 -12
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -12
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -4
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +19 -45
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +30 -38
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +360 -165
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +21 -13
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +54 -3
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +3 -17
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +70 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +2 -175
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +57 -21
- package/dist/index54.js +2 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +39 -34
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +43 -9
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +17 -34
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +103 -50
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +19 -58
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +225 -3
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +4 -128
- package/dist/index62.cjs +1 -2
- package/dist/index62.js +152 -37
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +2 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +13 -11
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +2 -12
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +32 -13
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +2 -7
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +355 -17
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +235 -75
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +67 -14
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +60 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +11 -21
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +44 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +63 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +226 -2
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +3 -7
- package/dist/index77.cjs +1 -2
- package/dist/index77.js +166 -32
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +27 -5
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +19 -18
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +68 -30
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +128 -2
- package/dist/index82.cjs +1 -6
- package/dist/index82.js +9 -949
- package/dist/index83.cjs +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +25 -61
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +2 -33
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +1 -3
- package/package.json +2 -2
- package/dist/index100.cjs +0 -1
- package/dist/index100.js +0 -37
- package/dist/index101.cjs +0 -1
- package/dist/index101.js +0 -369
- package/dist/index102.cjs +0 -1
- package/dist/index102.js +0 -23
- package/dist/index103.cjs +0 -1
- package/dist/index103.js +0 -58
- package/dist/index104.cjs +0 -1
- package/dist/index104.js +0 -5
- package/dist/index105.cjs +0 -1
- package/dist/index105.js +0 -51
- package/dist/index106.cjs +0 -1
- package/dist/index106.js +0 -28
- package/dist/index107.cjs +0 -1
- package/dist/index107.js +0 -4
- package/dist/index108.cjs +0 -1
- package/dist/index108.js +0 -4
- package/dist/index109.cjs +0 -1
- package/dist/index109.js +0 -64
- package/dist/index110.cjs +0 -1
- package/dist/index110.js +0 -37
- package/dist/index111.cjs +0 -1
- package/dist/index111.js +0 -4
- package/dist/index112.cjs +0 -1
- package/dist/index112.js +0 -60
- package/dist/index113.cjs +0 -1
- package/dist/index113.js +0 -4
- package/dist/index114.cjs +0 -1
- package/dist/index114.js +0 -42
- package/dist/index115.cjs +0 -1
- package/dist/index115.js +0 -45
- package/dist/index116.cjs +0 -1
- package/dist/index116.js +0 -20
- package/dist/index117.cjs +0 -1
- package/dist/index117.js +0 -111
- package/dist/index118.cjs +0 -1
- package/dist/index118.js +0 -23
- package/dist/index119.cjs +0 -1
- package/dist/index119.js +0 -228
- package/dist/index120.cjs +0 -1
- package/dist/index120.js +0 -6
- package/dist/index121.cjs +0 -1
- package/dist/index121.js +0 -160
- package/dist/index122.cjs +0 -1
- package/dist/index122.js +0 -4
- package/dist/index123.cjs +0 -1
- package/dist/index123.js +0 -75
- package/dist/index124.cjs +0 -1
- package/dist/index124.js +0 -7
- package/dist/index125.cjs +0 -1
- package/dist/index125.js +0 -107
- package/dist/index126.cjs +0 -1
- package/dist/index126.js +0 -15
- package/dist/index127.cjs +0 -1
- package/dist/index127.js +0 -35
- package/dist/index128.cjs +0 -1
- package/dist/index128.js +0 -32
- package/dist/index129.cjs +0 -1
- package/dist/index129.js +0 -4
- package/dist/index130.cjs +0 -1
- package/dist/index130.js +0 -21
- package/dist/index131.cjs +0 -1
- package/dist/index131.js +0 -4
- package/dist/index132.cjs +0 -1
- package/dist/index132.js +0 -358
- package/dist/index133.cjs +0 -1
- package/dist/index133.js +0 -241
- package/dist/index134.cjs +0 -1
- package/dist/index134.js +0 -70
- package/dist/index135.cjs +0 -1
- package/dist/index135.js +0 -64
- package/dist/index136.cjs +0 -1
- package/dist/index136.js +0 -14
- package/dist/index137.cjs +0 -1
- package/dist/index137.js +0 -47
- package/dist/index138.cjs +0 -1
- package/dist/index138.js +0 -65
- package/dist/index139.cjs +0 -1
- package/dist/index139.js +0 -228
- package/dist/index140.cjs +0 -1
- package/dist/index140.js +0 -5
- package/dist/index141.cjs +0 -1
- package/dist/index141.js +0 -171
- package/dist/index142.cjs +0 -1
- package/dist/index142.js +0 -30
- package/dist/index143.cjs +0 -1
- package/dist/index143.js +0 -23
- package/dist/index144.cjs +0 -1
- package/dist/index144.js +0 -72
- package/dist/index145.cjs +0 -1
- package/dist/index145.js +0 -130
- package/dist/index146.cjs +0 -1
- package/dist/index146.js +0 -9
- package/dist/index147.cjs +0 -1
- package/dist/index147.js +0 -4
- package/dist/index148.cjs +0 -1
- package/dist/index148.js +0 -28
- package/dist/index149.cjs +0 -1
- package/dist/index149.js +0 -4
- package/dist/index86.cjs +0 -1
- package/dist/index86.js +0 -89
- package/dist/index87.cjs +0 -1
- package/dist/index87.js +0 -15
- package/dist/index88.cjs +0 -1
- package/dist/index88.js +0 -9
- package/dist/index89.cjs +0 -1
- package/dist/index89.js +0 -115
- package/dist/index90.cjs +0 -1
- package/dist/index90.js +0 -9
- package/dist/index91.cjs +0 -1
- package/dist/index91.js +0 -35
- package/dist/index92.cjs +0 -1
- package/dist/index92.js +0 -4
- package/dist/index93.cjs +0 -1
- package/dist/index93.js +0 -40
- package/dist/index94.cjs +0 -1
- package/dist/index94.js +0 -31
- package/dist/index95.cjs +0 -1
- package/dist/index95.js +0 -23
- package/dist/index96.cjs +0 -1
- package/dist/index96.js +0 -9
- package/dist/index97.cjs +0 -1
- package/dist/index97.js +0 -7
- package/dist/index98.cjs +0 -1
- package/dist/index98.js +0 -13
- package/dist/index99.cjs +0 -1
- package/dist/index99.js +0 -22
package/dist/index119.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a0=require("./index99.cjs"),h0=require("./index127.cjs"),e0=require("./index55.cjs");var x0=a0.inherits_browserExports,K=h0.hash,c0=e0.safeBufferExports.Buffer,U=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],t0=new Array(160);function E(){this.init(),this._w=t0,K.call(this,128,112)}x0(E,K);E.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function k(h,a,c){return c^h&(a^c)}function D(h,a,c){return h&a|c&(h|a)}function F(h,a){return(h>>>28|a<<4)^(a>>>2|h<<30)^(a>>>7|h<<25)}function J(h,a){return(h>>>14|a<<18)^(h>>>18|a<<14)^(a>>>9|h<<23)}function b0(h,a){return(h>>>1|a<<31)^(h>>>8|a<<24)^h>>>7}function f0(h,a){return(h>>>1|a<<31)^(h>>>8|a<<24)^(h>>>7|a<<25)}function s0(h,a){return(h>>>19|a<<13)^(a>>>29|h<<3)^h>>>6}function r0(h,a){return(h>>>19|a<<13)^(a>>>29|h<<3)^(h>>>6|a<<26)}function x(h,a){return h>>>0<a>>>0?1:0}E.prototype._update=function(h){for(var a=this._w,c=this._ah|0,d=this._bh|0,_=this._ch|0,G=this._dh|0,n=this._eh|0,y=this._fh|0,I=this._gh|0,q=this._hh|0,f=this._al|0,u=this._bl|0,o=this._cl|0,l=this._dl|0,s=this._el|0,g=this._fl|0,p=this._gl|0,w=this._hl|0,e=0;e<32;e+=2)a[e]=h.readInt32BE(e*4),a[e+1]=h.readInt32BE(e*4+4);for(;e<160;e+=2){var B=a[e-30],m=a[e-15*2+1],L=b0(B,m),S=f0(m,B);B=a[e-2*2],m=a[e-2*2+1];var M=s0(B,m),C=r0(m,B),N=a[e-7*2],Q=a[e-7*2+1],R=a[e-16*2],H=a[e-16*2+1],b=S+Q|0,i=L+N+x(b,S)|0;b=b+C|0,i=i+M+x(b,C)|0,b=b+H|0,i=i+R+x(b,H)|0,a[e]=i,a[e+1]=b}for(var v=0;v<160;v+=2){i=a[v],b=a[v+1];var V=D(c,d,_),X=D(f,u,o),Y=F(c,f),A=F(f,c),Z=J(n,s),$=J(s,n),z=U[v],O=U[v+1],j=k(n,y,I),P=k(s,g,p),t=w+$|0,r=q+Z+x(t,w)|0;t=t+P|0,r=r+j+x(t,P)|0,t=t+O|0,r=r+z+x(t,O)|0,t=t+b|0,r=r+i+x(t,b)|0;var T=A+X|0,W=Y+V+x(T,A)|0;q=I,w=p,I=y,p=g,y=n,g=s,s=l+t|0,n=G+r+x(s,l)|0,G=_,l=o,_=d,o=u,d=c,u=f,f=t+T|0,c=r+W+x(f,t)|0}this._al=this._al+f|0,this._bl=this._bl+u|0,this._cl=this._cl+o|0,this._dl=this._dl+l|0,this._el=this._el+s|0,this._fl=this._fl+g|0,this._gl=this._gl+p|0,this._hl=this._hl+w|0,this._ah=this._ah+c+x(this._al,f)|0,this._bh=this._bh+d+x(this._bl,u)|0,this._ch=this._ch+_+x(this._cl,o)|0,this._dh=this._dh+G+x(this._dl,l)|0,this._eh=this._eh+n+x(this._el,s)|0,this._fh=this._fh+y+x(this._fl,g)|0,this._gh=this._gh+I+x(this._gl,p)|0,this._hh=this._hh+q+x(this._hl,w)|0};E.prototype._hash=function(){var h=c0.allocUnsafe(64);function a(c,d,_){h.writeInt32BE(c,_),h.writeInt32BE(d,_+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),a(this._gh,this._gl,48),a(this._hh,this._hl,56),h};var _0=E;exports.sha512=_0;
|
package/dist/index119.js
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { i as a0 } from "./index99.js";
|
|
2
|
-
import { h as x0 } from "./index127.js";
|
|
3
|
-
import { s as h0 } from "./index55.js";
|
|
4
|
-
var e0 = a0, O = x0, c0 = h0.Buffer, F = [
|
|
5
|
-
1116352408,
|
|
6
|
-
3609767458,
|
|
7
|
-
1899447441,
|
|
8
|
-
602891725,
|
|
9
|
-
3049323471,
|
|
10
|
-
3964484399,
|
|
11
|
-
3921009573,
|
|
12
|
-
2173295548,
|
|
13
|
-
961987163,
|
|
14
|
-
4081628472,
|
|
15
|
-
1508970993,
|
|
16
|
-
3053834265,
|
|
17
|
-
2453635748,
|
|
18
|
-
2937671579,
|
|
19
|
-
2870763221,
|
|
20
|
-
3664609560,
|
|
21
|
-
3624381080,
|
|
22
|
-
2734883394,
|
|
23
|
-
310598401,
|
|
24
|
-
1164996542,
|
|
25
|
-
607225278,
|
|
26
|
-
1323610764,
|
|
27
|
-
1426881987,
|
|
28
|
-
3590304994,
|
|
29
|
-
1925078388,
|
|
30
|
-
4068182383,
|
|
31
|
-
2162078206,
|
|
32
|
-
991336113,
|
|
33
|
-
2614888103,
|
|
34
|
-
633803317,
|
|
35
|
-
3248222580,
|
|
36
|
-
3479774868,
|
|
37
|
-
3835390401,
|
|
38
|
-
2666613458,
|
|
39
|
-
4022224774,
|
|
40
|
-
944711139,
|
|
41
|
-
264347078,
|
|
42
|
-
2341262773,
|
|
43
|
-
604807628,
|
|
44
|
-
2007800933,
|
|
45
|
-
770255983,
|
|
46
|
-
1495990901,
|
|
47
|
-
1249150122,
|
|
48
|
-
1856431235,
|
|
49
|
-
1555081692,
|
|
50
|
-
3175218132,
|
|
51
|
-
1996064986,
|
|
52
|
-
2198950837,
|
|
53
|
-
2554220882,
|
|
54
|
-
3999719339,
|
|
55
|
-
2821834349,
|
|
56
|
-
766784016,
|
|
57
|
-
2952996808,
|
|
58
|
-
2566594879,
|
|
59
|
-
3210313671,
|
|
60
|
-
3203337956,
|
|
61
|
-
3336571891,
|
|
62
|
-
1034457026,
|
|
63
|
-
3584528711,
|
|
64
|
-
2466948901,
|
|
65
|
-
113926993,
|
|
66
|
-
3758326383,
|
|
67
|
-
338241895,
|
|
68
|
-
168717936,
|
|
69
|
-
666307205,
|
|
70
|
-
1188179964,
|
|
71
|
-
773529912,
|
|
72
|
-
1546045734,
|
|
73
|
-
1294757372,
|
|
74
|
-
1522805485,
|
|
75
|
-
1396182291,
|
|
76
|
-
2643833823,
|
|
77
|
-
1695183700,
|
|
78
|
-
2343527390,
|
|
79
|
-
1986661051,
|
|
80
|
-
1014477480,
|
|
81
|
-
2177026350,
|
|
82
|
-
1206759142,
|
|
83
|
-
2456956037,
|
|
84
|
-
344077627,
|
|
85
|
-
2730485921,
|
|
86
|
-
1290863460,
|
|
87
|
-
2820302411,
|
|
88
|
-
3158454273,
|
|
89
|
-
3259730800,
|
|
90
|
-
3505952657,
|
|
91
|
-
3345764771,
|
|
92
|
-
106217008,
|
|
93
|
-
3516065817,
|
|
94
|
-
3606008344,
|
|
95
|
-
3600352804,
|
|
96
|
-
1432725776,
|
|
97
|
-
4094571909,
|
|
98
|
-
1467031594,
|
|
99
|
-
275423344,
|
|
100
|
-
851169720,
|
|
101
|
-
430227734,
|
|
102
|
-
3100823752,
|
|
103
|
-
506948616,
|
|
104
|
-
1363258195,
|
|
105
|
-
659060556,
|
|
106
|
-
3750685593,
|
|
107
|
-
883997877,
|
|
108
|
-
3785050280,
|
|
109
|
-
958139571,
|
|
110
|
-
3318307427,
|
|
111
|
-
1322822218,
|
|
112
|
-
3812723403,
|
|
113
|
-
1537002063,
|
|
114
|
-
2003034995,
|
|
115
|
-
1747873779,
|
|
116
|
-
3602036899,
|
|
117
|
-
1955562222,
|
|
118
|
-
1575990012,
|
|
119
|
-
2024104815,
|
|
120
|
-
1125592928,
|
|
121
|
-
2227730452,
|
|
122
|
-
2716904306,
|
|
123
|
-
2361852424,
|
|
124
|
-
442776044,
|
|
125
|
-
2428436474,
|
|
126
|
-
593698344,
|
|
127
|
-
2756734187,
|
|
128
|
-
3733110249,
|
|
129
|
-
3204031479,
|
|
130
|
-
2999351573,
|
|
131
|
-
3329325298,
|
|
132
|
-
3815920427,
|
|
133
|
-
3391569614,
|
|
134
|
-
3928383900,
|
|
135
|
-
3515267271,
|
|
136
|
-
566280711,
|
|
137
|
-
3940187606,
|
|
138
|
-
3454069534,
|
|
139
|
-
4118630271,
|
|
140
|
-
4000239992,
|
|
141
|
-
116418474,
|
|
142
|
-
1914138554,
|
|
143
|
-
174292421,
|
|
144
|
-
2731055270,
|
|
145
|
-
289380356,
|
|
146
|
-
3203993006,
|
|
147
|
-
460393269,
|
|
148
|
-
320620315,
|
|
149
|
-
685471733,
|
|
150
|
-
587496836,
|
|
151
|
-
852142971,
|
|
152
|
-
1086792851,
|
|
153
|
-
1017036298,
|
|
154
|
-
365543100,
|
|
155
|
-
1126000580,
|
|
156
|
-
2618297676,
|
|
157
|
-
1288033470,
|
|
158
|
-
3409855158,
|
|
159
|
-
1501505948,
|
|
160
|
-
4234509866,
|
|
161
|
-
1607167915,
|
|
162
|
-
987167468,
|
|
163
|
-
1816402316,
|
|
164
|
-
1246189591
|
|
165
|
-
], f0 = new Array(160);
|
|
166
|
-
function E() {
|
|
167
|
-
this.init(), this._w = f0, O.call(this, 128, 112);
|
|
168
|
-
}
|
|
169
|
-
e0(E, O);
|
|
170
|
-
E.prototype.init = function() {
|
|
171
|
-
return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this;
|
|
172
|
-
};
|
|
173
|
-
function J(x, a, c) {
|
|
174
|
-
return c ^ x & (a ^ c);
|
|
175
|
-
}
|
|
176
|
-
function K(x, a, c) {
|
|
177
|
-
return x & a | c & (x | a);
|
|
178
|
-
}
|
|
179
|
-
function L(x, a) {
|
|
180
|
-
return (x >>> 28 | a << 4) ^ (a >>> 2 | x << 30) ^ (a >>> 7 | x << 25);
|
|
181
|
-
}
|
|
182
|
-
function N(x, a) {
|
|
183
|
-
return (x >>> 14 | a << 18) ^ (x >>> 18 | a << 14) ^ (a >>> 9 | x << 23);
|
|
184
|
-
}
|
|
185
|
-
function t0(x, a) {
|
|
186
|
-
return (x >>> 1 | a << 31) ^ (x >>> 8 | a << 24) ^ x >>> 7;
|
|
187
|
-
}
|
|
188
|
-
function b0(x, a) {
|
|
189
|
-
return (x >>> 1 | a << 31) ^ (x >>> 8 | a << 24) ^ (x >>> 7 | a << 25);
|
|
190
|
-
}
|
|
191
|
-
function s0(x, a) {
|
|
192
|
-
return (x >>> 19 | a << 13) ^ (a >>> 29 | x << 3) ^ x >>> 6;
|
|
193
|
-
}
|
|
194
|
-
function r0(x, a) {
|
|
195
|
-
return (x >>> 19 | a << 13) ^ (a >>> 29 | x << 3) ^ (x >>> 6 | a << 26);
|
|
196
|
-
}
|
|
197
|
-
function e(x, a) {
|
|
198
|
-
return x >>> 0 < a >>> 0 ? 1 : 0;
|
|
199
|
-
}
|
|
200
|
-
E.prototype._update = function(x) {
|
|
201
|
-
for (var a = this._w, c = this._ah | 0, d = this._bh | 0, _ = this._ch | 0, G = this._dh | 0, v = this._eh | 0, I = this._fh | 0, y = this._gh | 0, C = this._hh | 0, b = this._al | 0, o = this._bl | 0, u = this._cl | 0, l = this._dl | 0, s = this._el | 0, g = this._fl | 0, p = this._gl | 0, m = this._hl | 0, h = 0; h < 32; h += 2)
|
|
202
|
-
a[h] = x.readInt32BE(h * 4), a[h + 1] = x.readInt32BE(h * 4 + 4);
|
|
203
|
-
for (; h < 160; h += 2) {
|
|
204
|
-
var B = a[h - 30], w = a[h - 15 * 2 + 1], P = t0(B, w), H = b0(w, B);
|
|
205
|
-
B = a[h - 2 * 2], w = a[h - 2 * 2 + 1];
|
|
206
|
-
var Q = s0(B, w), A = r0(w, B), R = a[h - 7 * 2], T = a[h - 7 * 2 + 1], V = a[h - 16 * 2], S = a[h - 16 * 2 + 1], t = H + T | 0, i = P + R + e(t, H) | 0;
|
|
207
|
-
t = t + A | 0, i = i + Q + e(t, A) | 0, t = t + S | 0, i = i + V + e(t, S) | 0, a[h] = i, a[h + 1] = t;
|
|
208
|
-
}
|
|
209
|
-
for (var n = 0; n < 160; n += 2) {
|
|
210
|
-
i = a[n], t = a[n + 1];
|
|
211
|
-
var X = K(c, d, _), Y = K(b, o, u), Z = L(c, b), U = L(b, c), $ = N(v, s), z = N(s, v), M = F[n], k = F[n + 1], j = J(v, I, y), q = J(s, g, p), f = m + z | 0, r = C + $ + e(f, m) | 0;
|
|
212
|
-
f = f + q | 0, r = r + j + e(f, q) | 0, f = f + k | 0, r = r + M + e(f, k) | 0, f = f + t | 0, r = r + i + e(f, t) | 0;
|
|
213
|
-
var D = U + Y | 0, W = Z + X + e(D, U) | 0;
|
|
214
|
-
C = y, m = p, y = I, p = g, I = v, g = s, s = l + f | 0, v = G + r + e(s, l) | 0, G = _, l = u, _ = d, u = o, d = c, o = b, b = f + D | 0, c = r + W + e(b, f) | 0;
|
|
215
|
-
}
|
|
216
|
-
this._al = this._al + b | 0, this._bl = this._bl + o | 0, this._cl = this._cl + u | 0, this._dl = this._dl + l | 0, this._el = this._el + s | 0, this._fl = this._fl + g | 0, this._gl = this._gl + p | 0, this._hl = this._hl + m | 0, this._ah = this._ah + c + e(this._al, b) | 0, this._bh = this._bh + d + e(this._bl, o) | 0, this._ch = this._ch + _ + e(this._cl, u) | 0, this._dh = this._dh + G + e(this._dl, l) | 0, this._eh = this._eh + v + e(this._el, s) | 0, this._fh = this._fh + I + e(this._fl, g) | 0, this._gh = this._gh + y + e(this._gl, p) | 0, this._hh = this._hh + C + e(this._hl, m) | 0;
|
|
217
|
-
};
|
|
218
|
-
E.prototype._hash = function() {
|
|
219
|
-
var x = c0.allocUnsafe(64);
|
|
220
|
-
function a(c, d, _) {
|
|
221
|
-
x.writeInt32BE(c, _), x.writeInt32BE(d, _ + 4);
|
|
222
|
-
}
|
|
223
|
-
return a(this._ah, this._al, 0), a(this._bh, this._bl, 8), a(this._ch, this._cl, 16), a(this._dh, this._dl, 24), a(this._eh, this._el, 32), a(this._fh, this._fl, 40), a(this._gh, this._gl, 48), a(this._hh, this._hl, 56), x;
|
|
224
|
-
};
|
|
225
|
-
var v0 = E;
|
|
226
|
-
export {
|
|
227
|
-
v0 as s
|
|
228
|
-
};
|
package/dist/index120.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./index129.cjs"),r=require("./index53.cjs"),o=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),n=o(t),s=r.getAugmentedNamespace(n);module.exports=s;
|
package/dist/index120.js
DELETED
package/dist/index121.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./index122.cjs"),c=require("./index55.cjs");var l=c.safeBufferExports.Buffer,h=l.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function u(t){var e=d(t);if(typeof e!="string"&&(l.isEncoding===h||!h(t)))throw new Error("Unknown encoding: "+t);return e||t}o.__exports.StringDecoder=n;function n(t){this.encoding=u(t);var e;switch(this.encoding){case"utf16le":this.text=p,this.end=v,e=4;break;case"utf8":this.fillLast=N,e=4;break;case"base64":this.text=w,this.end=E,e=3;break;default:this.write=T,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(e)}n.prototype.write=function(t){if(t.length===0)return"";var e,s;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<t.length?e?e+this.text(t,s):this.text(t,s):e||""};n.prototype.end=C;n.prototype.text=x;n.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function f(t,e,s){var i=e.length-1;if(i<s)return 0;var r=a(e[i]);return r>=0?(r>0&&(t.lastNeed=r-1),r):--i<s||r===-2?0:(r=a(e[i]),r>=0?(r>0&&(t.lastNeed=r-2),r):--i<s||r===-2?0:(r=a(e[i]),r>=0?(r>0&&(r===2?r=0:t.lastNeed=r-3),r):0))}function g(t,e,s){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function N(t){var e=this.lastTotal-this.lastNeed,s=g(this,t);if(s!==void 0)return s;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function x(t,e){var s=f(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=s;var i=t.length-(s-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function C(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2===0){var s=t.toString("utf16le",e);if(s){var i=s.charCodeAt(s.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function v(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,s)}return e}function w(t,e){var s=(t.length-e)%3;return s===0?t.toString("base64",e):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-s))}function E(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function T(t){return t.toString(this.encoding)}function S(t){return t&&t.length?this.write(t):""}module.exports=o.__exports;
|
package/dist/index121.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { __exports as o } from "./index122.js";
|
|
2
|
-
import { s as c } from "./index55.js";
|
|
3
|
-
var l = c.Buffer, h = l.isEncoding || function(t) {
|
|
4
|
-
switch (t = "" + t, t && t.toLowerCase()) {
|
|
5
|
-
case "hex":
|
|
6
|
-
case "utf8":
|
|
7
|
-
case "utf-8":
|
|
8
|
-
case "ascii":
|
|
9
|
-
case "binary":
|
|
10
|
-
case "base64":
|
|
11
|
-
case "ucs2":
|
|
12
|
-
case "ucs-2":
|
|
13
|
-
case "utf16le":
|
|
14
|
-
case "utf-16le":
|
|
15
|
-
case "raw":
|
|
16
|
-
return !0;
|
|
17
|
-
default:
|
|
18
|
-
return !1;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
function d(t) {
|
|
22
|
-
if (!t) return "utf8";
|
|
23
|
-
for (var e; ; )
|
|
24
|
-
switch (t) {
|
|
25
|
-
case "utf8":
|
|
26
|
-
case "utf-8":
|
|
27
|
-
return "utf8";
|
|
28
|
-
case "ucs2":
|
|
29
|
-
case "ucs-2":
|
|
30
|
-
case "utf16le":
|
|
31
|
-
case "utf-16le":
|
|
32
|
-
return "utf16le";
|
|
33
|
-
case "latin1":
|
|
34
|
-
case "binary":
|
|
35
|
-
return "latin1";
|
|
36
|
-
case "base64":
|
|
37
|
-
case "ascii":
|
|
38
|
-
case "hex":
|
|
39
|
-
return t;
|
|
40
|
-
default:
|
|
41
|
-
if (e) return;
|
|
42
|
-
t = ("" + t).toLowerCase(), e = !0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function u(t) {
|
|
46
|
-
var e = d(t);
|
|
47
|
-
if (typeof e != "string" && (l.isEncoding === h || !h(t))) throw new Error("Unknown encoding: " + t);
|
|
48
|
-
return e || t;
|
|
49
|
-
}
|
|
50
|
-
o.StringDecoder = a;
|
|
51
|
-
function a(t) {
|
|
52
|
-
this.encoding = u(t);
|
|
53
|
-
var e;
|
|
54
|
-
switch (this.encoding) {
|
|
55
|
-
case "utf16le":
|
|
56
|
-
this.text = p, this.end = v, e = 4;
|
|
57
|
-
break;
|
|
58
|
-
case "utf8":
|
|
59
|
-
this.fillLast = N, e = 4;
|
|
60
|
-
break;
|
|
61
|
-
case "base64":
|
|
62
|
-
this.text = w, this.end = E, e = 3;
|
|
63
|
-
break;
|
|
64
|
-
default:
|
|
65
|
-
this.write = T, this.end = S;
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = l.allocUnsafe(e);
|
|
69
|
-
}
|
|
70
|
-
a.prototype.write = function(t) {
|
|
71
|
-
if (t.length === 0) return "";
|
|
72
|
-
var e, s;
|
|
73
|
-
if (this.lastNeed) {
|
|
74
|
-
if (e = this.fillLast(t), e === void 0) return "";
|
|
75
|
-
s = this.lastNeed, this.lastNeed = 0;
|
|
76
|
-
} else
|
|
77
|
-
s = 0;
|
|
78
|
-
return s < t.length ? e ? e + this.text(t, s) : this.text(t, s) : e || "";
|
|
79
|
-
};
|
|
80
|
-
a.prototype.end = C;
|
|
81
|
-
a.prototype.text = x;
|
|
82
|
-
a.prototype.fillLast = function(t) {
|
|
83
|
-
if (this.lastNeed <= t.length)
|
|
84
|
-
return t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
85
|
-
t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), this.lastNeed -= t.length;
|
|
86
|
-
};
|
|
87
|
-
function n(t) {
|
|
88
|
-
return t <= 127 ? 0 : t >> 5 === 6 ? 2 : t >> 4 === 14 ? 3 : t >> 3 === 30 ? 4 : t >> 6 === 2 ? -1 : -2;
|
|
89
|
-
}
|
|
90
|
-
function f(t, e, s) {
|
|
91
|
-
var i = e.length - 1;
|
|
92
|
-
if (i < s) return 0;
|
|
93
|
-
var r = n(e[i]);
|
|
94
|
-
return r >= 0 ? (r > 0 && (t.lastNeed = r - 1), r) : --i < s || r === -2 ? 0 : (r = n(e[i]), r >= 0 ? (r > 0 && (t.lastNeed = r - 2), r) : --i < s || r === -2 ? 0 : (r = n(e[i]), r >= 0 ? (r > 0 && (r === 2 ? r = 0 : t.lastNeed = r - 3), r) : 0));
|
|
95
|
-
}
|
|
96
|
-
function g(t, e, s) {
|
|
97
|
-
if ((e[0] & 192) !== 128)
|
|
98
|
-
return t.lastNeed = 0, "�";
|
|
99
|
-
if (t.lastNeed > 1 && e.length > 1) {
|
|
100
|
-
if ((e[1] & 192) !== 128)
|
|
101
|
-
return t.lastNeed = 1, "�";
|
|
102
|
-
if (t.lastNeed > 2 && e.length > 2 && (e[2] & 192) !== 128)
|
|
103
|
-
return t.lastNeed = 2, "�";
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function N(t) {
|
|
107
|
-
var e = this.lastTotal - this.lastNeed, s = g(this, t);
|
|
108
|
-
if (s !== void 0) return s;
|
|
109
|
-
if (this.lastNeed <= t.length)
|
|
110
|
-
return t.copy(this.lastChar, e, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
111
|
-
t.copy(this.lastChar, e, 0, t.length), this.lastNeed -= t.length;
|
|
112
|
-
}
|
|
113
|
-
function x(t, e) {
|
|
114
|
-
var s = f(this, t, e);
|
|
115
|
-
if (!this.lastNeed) return t.toString("utf8", e);
|
|
116
|
-
this.lastTotal = s;
|
|
117
|
-
var i = t.length - (s - this.lastNeed);
|
|
118
|
-
return t.copy(this.lastChar, 0, i), t.toString("utf8", e, i);
|
|
119
|
-
}
|
|
120
|
-
function C(t) {
|
|
121
|
-
var e = t && t.length ? this.write(t) : "";
|
|
122
|
-
return this.lastNeed ? e + "�" : e;
|
|
123
|
-
}
|
|
124
|
-
function p(t, e) {
|
|
125
|
-
if ((t.length - e) % 2 === 0) {
|
|
126
|
-
var s = t.toString("utf16le", e);
|
|
127
|
-
if (s) {
|
|
128
|
-
var i = s.charCodeAt(s.length - 1);
|
|
129
|
-
if (i >= 55296 && i <= 56319)
|
|
130
|
-
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1], s.slice(0, -1);
|
|
131
|
-
}
|
|
132
|
-
return s;
|
|
133
|
-
}
|
|
134
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t[t.length - 1], t.toString("utf16le", e, t.length - 1);
|
|
135
|
-
}
|
|
136
|
-
function v(t) {
|
|
137
|
-
var e = t && t.length ? this.write(t) : "";
|
|
138
|
-
if (this.lastNeed) {
|
|
139
|
-
var s = this.lastTotal - this.lastNeed;
|
|
140
|
-
return e + this.lastChar.toString("utf16le", 0, s);
|
|
141
|
-
}
|
|
142
|
-
return e;
|
|
143
|
-
}
|
|
144
|
-
function w(t, e) {
|
|
145
|
-
var s = (t.length - e) % 3;
|
|
146
|
-
return s === 0 ? t.toString("base64", e) : (this.lastNeed = 3 - s, this.lastTotal = 3, s === 1 ? this.lastChar[0] = t[t.length - 1] : (this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1]), t.toString("base64", e, t.length - s));
|
|
147
|
-
}
|
|
148
|
-
function E(t) {
|
|
149
|
-
var e = t && t.length ? this.write(t) : "";
|
|
150
|
-
return this.lastNeed ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e;
|
|
151
|
-
}
|
|
152
|
-
function T(t) {
|
|
153
|
-
return t.toString(this.encoding);
|
|
154
|
-
}
|
|
155
|
-
function S(t) {
|
|
156
|
-
return t && t.length ? this.write(t) : "";
|
|
157
|
-
}
|
|
158
|
-
export {
|
|
159
|
-
o as default
|
|
160
|
-
};
|
package/dist/index122.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index122.js
DELETED
package/dist/index123.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index55.cjs");var b=C.safeBufferExports.Buffer;function m(w){if(w.length>=255)throw new TypeError("Alphabet too long");for(var d=new Uint8Array(256),u=0;u<d.length;u++)d[u]=255;for(var p=0;p<w.length;p++){var E=w.charAt(p),A=E.charCodeAt(0);if(d[A]!==255)throw new TypeError(E+" is ambiguous");d[A]=p}var g=w.length,z=w.charAt(0),M=Math.log(g)/Math.log(256),c=Math.log(256)/Math.log(g);function S(r){if((Array.isArray(r)||r instanceof Uint8Array)&&(r=b.from(r)),!b.isBuffer(r))throw new TypeError("Expected Buffer");if(r.length===0)return"";for(var e=0,l=0,t=0,o=r.length;t!==o&&r[t]===0;)t++,e++;for(var f=(o-t)*c+1>>>0,n=new Uint8Array(f);t!==o;){for(var h=r[t],i=0,a=f-1;(h!==0||i<l)&&a!==-1;a--,i++)h+=256*n[a]>>>0,n[a]=h%g>>>0,h=h/g>>>0;if(h!==0)throw new Error("Non-zero carry");l=i,t++}for(var v=f-l;v!==f&&n[v]===0;)v++;for(var s=z.repeat(e);v<f;++v)s+=w.charAt(n[v]);return s}function U(r){if(typeof r!="string")throw new TypeError("Expected String");if(r.length===0)return b.alloc(0);for(var e=0,l=0,t=0;r[e]===z;)l++,e++;for(var o=(r.length-e)*M+1>>>0,f=new Uint8Array(o);e<r.length;){var n=d[r.charCodeAt(e)];if(n===255)return;for(var h=0,i=o-1;(n!==0||h<t)&&i!==-1;i--,h++)n+=g*f[i]>>>0,f[i]=n%256>>>0,n=n/256>>>0;if(n!==0)throw new Error("Non-zero carry");t=h,e++}for(var a=o-t;a!==o&&f[a]===0;)a++;var v=b.allocUnsafe(l+(o-a));v.fill(0,0,l);for(var s=l;a!==o;)v[s++]=f[a++];return v}function y(r){var e=U(r);if(e)return e;throw new Error("Non-base"+g+" character")}return{encode:S,decodeUnsafe:U,decode:y}}var x=m;exports.src=x;
|
package/dist/index123.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { s as N } from "./index55.js";
|
|
2
|
-
var E = N.Buffer;
|
|
3
|
-
function R(w) {
|
|
4
|
-
if (w.length >= 255)
|
|
5
|
-
throw new TypeError("Alphabet too long");
|
|
6
|
-
for (var d = new Uint8Array(256), b = 0; b < d.length; b++)
|
|
7
|
-
d[b] = 255;
|
|
8
|
-
for (var p = 0; p < w.length; p++) {
|
|
9
|
-
var A = w.charAt(p), z = A.charCodeAt(0);
|
|
10
|
-
if (d[z] !== 255)
|
|
11
|
-
throw new TypeError(A + " is ambiguous");
|
|
12
|
-
d[z] = p;
|
|
13
|
-
}
|
|
14
|
-
var g = w.length, U = w.charAt(0), M = Math.log(g) / Math.log(256), m = Math.log(256) / Math.log(g);
|
|
15
|
-
function C(r) {
|
|
16
|
-
if ((Array.isArray(r) || r instanceof Uint8Array) && (r = E.from(r)), !E.isBuffer(r))
|
|
17
|
-
throw new TypeError("Expected Buffer");
|
|
18
|
-
if (r.length === 0)
|
|
19
|
-
return "";
|
|
20
|
-
for (var e = 0, l = 0, n = 0, o = r.length; n !== o && r[n] === 0; )
|
|
21
|
-
n++, e++;
|
|
22
|
-
for (var f = (o - n) * m + 1 >>> 0, a = new Uint8Array(f); n !== o; ) {
|
|
23
|
-
for (var h = r[n], i = 0, t = f - 1; (h !== 0 || i < l) && t !== -1; t--, i++)
|
|
24
|
-
h += 256 * a[t] >>> 0, a[t] = h % g >>> 0, h = h / g >>> 0;
|
|
25
|
-
if (h !== 0)
|
|
26
|
-
throw new Error("Non-zero carry");
|
|
27
|
-
l = i, n++;
|
|
28
|
-
}
|
|
29
|
-
for (var v = f - l; v !== f && a[v] === 0; )
|
|
30
|
-
v++;
|
|
31
|
-
for (var s = U.repeat(e); v < f; ++v)
|
|
32
|
-
s += w.charAt(a[v]);
|
|
33
|
-
return s;
|
|
34
|
-
}
|
|
35
|
-
function u(r) {
|
|
36
|
-
if (typeof r != "string")
|
|
37
|
-
throw new TypeError("Expected String");
|
|
38
|
-
if (r.length === 0)
|
|
39
|
-
return E.alloc(0);
|
|
40
|
-
for (var e = 0, l = 0, n = 0; r[e] === U; )
|
|
41
|
-
l++, e++;
|
|
42
|
-
for (var o = (r.length - e) * M + 1 >>> 0, f = new Uint8Array(o); e < r.length; ) {
|
|
43
|
-
var a = d[r.charCodeAt(e)];
|
|
44
|
-
if (a === 255)
|
|
45
|
-
return;
|
|
46
|
-
for (var h = 0, i = o - 1; (a !== 0 || h < n) && i !== -1; i--, h++)
|
|
47
|
-
a += g * f[i] >>> 0, f[i] = a % 256 >>> 0, a = a / 256 >>> 0;
|
|
48
|
-
if (a !== 0)
|
|
49
|
-
throw new Error("Non-zero carry");
|
|
50
|
-
n = h, e++;
|
|
51
|
-
}
|
|
52
|
-
for (var t = o - n; t !== o && f[t] === 0; )
|
|
53
|
-
t++;
|
|
54
|
-
var v = E.allocUnsafe(l + (o - t));
|
|
55
|
-
v.fill(0, 0, l);
|
|
56
|
-
for (var s = l; t !== o; )
|
|
57
|
-
v[s++] = f[t++];
|
|
58
|
-
return v;
|
|
59
|
-
}
|
|
60
|
-
function x(r) {
|
|
61
|
-
var e = u(r);
|
|
62
|
-
if (e)
|
|
63
|
-
return e;
|
|
64
|
-
throw new Error("Non-base" + g + " character");
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
encode: C,
|
|
68
|
-
decodeUnsafe: u,
|
|
69
|
-
decode: x
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
var y = R;
|
|
73
|
-
export {
|
|
74
|
-
y as s
|
|
75
|
-
};
|
package/dist/index124.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=6,s=32,e=4096,n=s*e,o=n*t-1-1*e*t;exports.bytesPerBlob=n;exports.bytesPerFieldElement=s;exports.fieldElementsPerBlob=e;exports.maxBytesPerTransaction=o;
|
package/dist/index124.js
DELETED
package/dist/index125.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index128.cjs"),a=require("./index130.cjs"),c=require("./index110.cjs"),I=[],O=[],w=[],B=BigInt(0),f=BigInt(1),A=BigInt(2),S=BigInt(7),H=BigInt(256),T=BigInt(113);for(let i=0,t=f,s=1,n=0;i<24;i++){[s,n]=[n,(2*s+3*n)%5],I.push(2*(5*n+s)),O.push((i+1)*(i+2)/2%64);let o=B;for(let r=0;r<7;r++)t=(t<<f^(t>>S)*T)%H,t&A&&(o^=f<<(f<<BigInt(r))-f);w.push(o)}const[m,E]=a.split(w,!0),y=(i,t,s)=>s>32?a.rotlBH(i,t,s):a.rotlSH(i,t,s),b=(i,t,s)=>s>32?a.rotlBL(i,t,s):a.rotlSL(i,t,s);function L(i,t=24){const s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let e=0;e<10;e++)s[e]=i[e]^i[e+10]^i[e+20]^i[e+30]^i[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,p=(e+2)%10,d=s[p],u=s[p+1],_=y(d,u,1)^s[h],g=b(d,u,1)^s[h+1];for(let k=0;k<50;k+=10)i[e+k]^=_,i[e+k+1]^=g}let o=i[2],r=i[3];for(let e=0;e<24;e++){const h=O[e],p=y(o,r,h),d=b(o,r,h),u=I[e];o=i[u],r=i[u+1],i[u]=p,i[u+1]=d}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=i[e+h];for(let h=0;h<10;h++)i[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}i[0]^=m[n],i[1]^=E[n]}s.fill(0)}class x extends c.Hash{constructor(t,s,n,o=!1,r=24){if(super(),this.blockLen=t,this.suffix=s,this.outputLen=n,this.enableXOF=o,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,l.number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=c.u32(this.state)}keccak(){c.isLE||c.byteSwap32(this.state32),L(this.state32,this.rounds),c.isLE||c.byteSwap32(this.state32),this.posOut=0,this.pos=0}update(t){l.exists(this);const{blockLen:s,state:n}=this;t=c.toBytes(t);const o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)n[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:n,blockLen:o}=this;t[n]^=s,s&128&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){l.exists(this,!1),l.bytes(t),this.finish();const s=this.state,{blockLen:n}=this;for(let o=0,r=t.length;o<r;){this.posOut>=n&&this.keccak();const e=Math.min(n-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return l.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(l.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:s,suffix:n,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new x(s,n,o,e,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=n,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const F=(i,t,s)=>c.wrapConstructor(()=>new x(t,i,s)),P=F(1,136,256/8);exports.Keccak=x;exports.keccakP=L;exports.keccak_256=P;
|
package/dist/index125.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { number as d, exists as k, bytes as B, output as A } from "./index128.js";
|
|
2
|
-
import { split as H, rotlBH as m, rotlSH as S, rotlBL as T, rotlSL as F } from "./index130.js";
|
|
3
|
-
import { wrapConstructor as X, Hash as E, u32 as U, isLE as x, byteSwap32 as I, toBytes as P } from "./index110.js";
|
|
4
|
-
const y = [], L = [], b = [], M = /* @__PURE__ */ BigInt(0), f = /* @__PURE__ */ BigInt(1), R = /* @__PURE__ */ BigInt(2), j = /* @__PURE__ */ BigInt(7), C = /* @__PURE__ */ BigInt(256), q = /* @__PURE__ */ BigInt(113);
|
|
5
|
-
for (let e = 0, t = f, s = 1, n = 0; e < 24; e++) {
|
|
6
|
-
[s, n] = [n, (2 * s + 3 * n) % 5], y.push(2 * (5 * n + s)), L.push((e + 1) * (e + 2) / 2 % 64);
|
|
7
|
-
let o = M;
|
|
8
|
-
for (let r = 0; r < 7; r++)
|
|
9
|
-
t = (t << f ^ (t >> j) * q) % C, t & R && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
10
|
-
b.push(o);
|
|
11
|
-
}
|
|
12
|
-
const [v, z] = /* @__PURE__ */ H(b, !0), O = (e, t, s) => s > 32 ? m(e, t, s) : S(e, t, s), w = (e, t, s) => s > 32 ? T(e, t, s) : F(e, t, s);
|
|
13
|
-
function D(e, t = 24) {
|
|
14
|
-
const s = new Uint32Array(10);
|
|
15
|
-
for (let n = 24 - t; n < 24; n++) {
|
|
16
|
-
for (let i = 0; i < 10; i++)
|
|
17
|
-
s[i] = e[i] ^ e[i + 10] ^ e[i + 20] ^ e[i + 30] ^ e[i + 40];
|
|
18
|
-
for (let i = 0; i < 10; i += 2) {
|
|
19
|
-
const h = (i + 8) % 10, l = (i + 2) % 10, u = s[l], c = s[l + 1], _ = O(u, c, 1) ^ s[h], g = w(u, c, 1) ^ s[h + 1];
|
|
20
|
-
for (let a = 0; a < 50; a += 10)
|
|
21
|
-
e[i + a] ^= _, e[i + a + 1] ^= g;
|
|
22
|
-
}
|
|
23
|
-
let o = e[2], r = e[3];
|
|
24
|
-
for (let i = 0; i < 24; i++) {
|
|
25
|
-
const h = L[i], l = O(o, r, h), u = w(o, r, h), c = y[i];
|
|
26
|
-
o = e[c], r = e[c + 1], e[c] = l, e[c + 1] = u;
|
|
27
|
-
}
|
|
28
|
-
for (let i = 0; i < 50; i += 10) {
|
|
29
|
-
for (let h = 0; h < 10; h++)
|
|
30
|
-
s[h] = e[i + h];
|
|
31
|
-
for (let h = 0; h < 10; h++)
|
|
32
|
-
e[i + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
|
|
33
|
-
}
|
|
34
|
-
e[0] ^= v[n], e[1] ^= z[n];
|
|
35
|
-
}
|
|
36
|
-
s.fill(0);
|
|
37
|
-
}
|
|
38
|
-
class p extends E {
|
|
39
|
-
// NOTE: we accept arguments in bytes instead of bits here.
|
|
40
|
-
constructor(t, s, n, o = !1, r = 24) {
|
|
41
|
-
if (super(), this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = o, this.rounds = r, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, d(n), 0 >= this.blockLen || this.blockLen >= 200)
|
|
42
|
-
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
43
|
-
this.state = new Uint8Array(200), this.state32 = U(this.state);
|
|
44
|
-
}
|
|
45
|
-
keccak() {
|
|
46
|
-
x || I(this.state32), D(this.state32, this.rounds), x || I(this.state32), this.posOut = 0, this.pos = 0;
|
|
47
|
-
}
|
|
48
|
-
update(t) {
|
|
49
|
-
k(this);
|
|
50
|
-
const { blockLen: s, state: n } = this;
|
|
51
|
-
t = P(t);
|
|
52
|
-
const o = t.length;
|
|
53
|
-
for (let r = 0; r < o; ) {
|
|
54
|
-
const i = Math.min(s - this.pos, o - r);
|
|
55
|
-
for (let h = 0; h < i; h++)
|
|
56
|
-
n[this.pos++] ^= t[r++];
|
|
57
|
-
this.pos === s && this.keccak();
|
|
58
|
-
}
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
|
-
finish() {
|
|
62
|
-
if (this.finished)
|
|
63
|
-
return;
|
|
64
|
-
this.finished = !0;
|
|
65
|
-
const { state: t, suffix: s, pos: n, blockLen: o } = this;
|
|
66
|
-
t[n] ^= s, s & 128 && n === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
|
|
67
|
-
}
|
|
68
|
-
writeInto(t) {
|
|
69
|
-
k(this, !1), B(t), this.finish();
|
|
70
|
-
const s = this.state, { blockLen: n } = this;
|
|
71
|
-
for (let o = 0, r = t.length; o < r; ) {
|
|
72
|
-
this.posOut >= n && this.keccak();
|
|
73
|
-
const i = Math.min(n - this.posOut, r - o);
|
|
74
|
-
t.set(s.subarray(this.posOut, this.posOut + i), o), this.posOut += i, o += i;
|
|
75
|
-
}
|
|
76
|
-
return t;
|
|
77
|
-
}
|
|
78
|
-
xofInto(t) {
|
|
79
|
-
if (!this.enableXOF)
|
|
80
|
-
throw new Error("XOF is not possible for this instance");
|
|
81
|
-
return this.writeInto(t);
|
|
82
|
-
}
|
|
83
|
-
xof(t) {
|
|
84
|
-
return d(t), this.xofInto(new Uint8Array(t));
|
|
85
|
-
}
|
|
86
|
-
digestInto(t) {
|
|
87
|
-
if (A(t, this), this.finished)
|
|
88
|
-
throw new Error("digest() was already called");
|
|
89
|
-
return this.writeInto(t), this.destroy(), t;
|
|
90
|
-
}
|
|
91
|
-
digest() {
|
|
92
|
-
return this.digestInto(new Uint8Array(this.outputLen));
|
|
93
|
-
}
|
|
94
|
-
destroy() {
|
|
95
|
-
this.destroyed = !0, this.state.fill(0);
|
|
96
|
-
}
|
|
97
|
-
_cloneInto(t) {
|
|
98
|
-
const { blockLen: s, suffix: n, outputLen: o, rounds: r, enableXOF: i } = this;
|
|
99
|
-
return t || (t = new p(s, n, o, i, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = n, t.outputLen = o, t.enableXOF = i, t.destroyed = this.destroyed, t;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const G = (e, t, s) => X(() => new p(t, e, s)), Q = /* @__PURE__ */ G(1, 136, 256 / 8);
|
|
103
|
-
export {
|
|
104
|
-
p as Keccak,
|
|
105
|
-
D as keccakP,
|
|
106
|
-
Q as keccak_256
|
|
107
|
-
};
|
package/dist/index126.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index131.cjs"),_=require("./index132.cjs"),t=require("./index133.cjs"),i=require("./index134.cjs"),s=require("./index135.cjs"),u=require("./index136.cjs"),n=require("./index137.cjs"),o=require("./index138.cjs");(function(a,e){e=a.exports=_.__require(),e.Stream=e,e.Readable=e,e.Writable=t.__require(),e.Duplex=i.__require(),e.Transform=s._stream_transform,e.PassThrough=u._stream_passthrough,e.finished=n.endOfStream,e.pipeline=o.pipeline_1})(r.__module,r.__module.exports);var l=r.__module.exports;exports.readableBrowserExports=l;
|
package/dist/index126.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __module as e } from "./index131.js";
|
|
2
|
-
import { __require as m } from "./index132.js";
|
|
3
|
-
import { __require as i } from "./index133.js";
|
|
4
|
-
import { __require as _ } from "./index134.js";
|
|
5
|
-
import { _ as o } from "./index135.js";
|
|
6
|
-
import { _ as s } from "./index136.js";
|
|
7
|
-
import { e as t } from "./index137.js";
|
|
8
|
-
import { p as f } from "./index138.js";
|
|
9
|
-
(function(a, r) {
|
|
10
|
-
r = a.exports = m(), r.Stream = r, r.Readable = r, r.Writable = i(), r.Duplex = _(), r.Transform = o, r.PassThrough = s, r.finished = t, r.pipeline = f;
|
|
11
|
-
})(e, e.exports);
|
|
12
|
-
var w = e.exports;
|
|
13
|
-
export {
|
|
14
|
-
w as r
|
|
15
|
-
};
|
package/dist/index127.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index55.cjs");var n=a.safeBufferExports.Buffer;function f(t,i){this._block=n.alloc(t),this._finalSize=i,this._blockSize=t,this._len=0}f.prototype.update=function(t,i){typeof t=="string"&&(i=i||"utf8",t=n.from(t,i));for(var e=this._block,h=this._blockSize,s=t.length,r=this._len,l=0;l<s;){for(var c=r%h,_=Math.min(s-l,h-c),o=0;o<_;o++)e[c+o]=t[l+o];r+=_,l+=_,r%h===0&&this._update(e)}return this._len+=s,this};f.prototype.digest=function(t){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=this._len*8;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var h=(e&4294967295)>>>0,s=(e-h)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(h,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r};f.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var b=f;exports.hash=b;
|