@itilite/lumina-ui 1.0.0-alpha → 1.0.1-alpha
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/{AdvancedDateRangePicker-Eh6n4ne0.d.mts → AdvancedDateRangePicker-ozItnkhp.d.mts} +1 -1
- package/dist/{AdvancedDateRangePicker-Eh6n4ne0.d.ts → AdvancedDateRangePicker-ozItnkhp.d.ts} +1 -1
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +1 -1
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +1 -1
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +1 -2
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +1 -2
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +2 -2
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +2 -2
- package/dist/index.d.mts +14 -15
- package/dist/index.d.ts +14 -15
- package/dist/index.mjs +8 -8
- package/dist/styles.css +328 -312
- package/package.json +1 -1
- package/dist/AdvancedDateRangePicker-CN9WN0rH.d.mts +0 -56
- package/dist/AdvancedDateRangePicker-CN9WN0rH.d.ts +0 -56
- package/dist/AdvancedDateRangePicker-CzN1HGsC.d.mts +0 -57
- package/dist/AdvancedDateRangePicker-CzN1HGsC.d.ts +0 -57
- package/dist/AdvancedDateRangePicker-DAPxgRl3.d.mts +0 -54
- package/dist/AdvancedDateRangePicker-DAPxgRl3.d.ts +0 -54
- package/dist/AdvancedDateRangePicker-DW94285G.d.mts +0 -56
- package/dist/AdvancedDateRangePicker-DW94285G.d.ts +0 -56
- package/dist/Avatar-DX2JwvAs.d.mts +0 -17
- package/dist/Avatar-DX2JwvAs.d.ts +0 -17
- package/dist/Table-BA0D3p1m.d.mts +0 -78
- package/dist/Table-BA0D3p1m.d.ts +0 -78
- package/dist/Table-BLZ6c46U.d.mts +0 -77
- package/dist/Table-BLZ6c46U.d.ts +0 -77
- package/dist/Table-BMqYnFi4.d.mts +0 -25
- package/dist/Table-BMqYnFi4.d.ts +0 -25
- package/dist/Table-BRcthrYV.d.mts +0 -98
- package/dist/Table-BRcthrYV.d.ts +0 -98
- package/dist/Table-BWlFCfBG.d.mts +0 -106
- package/dist/Table-BWlFCfBG.d.ts +0 -106
- package/dist/Table-CHFmNrme.d.mts +0 -77
- package/dist/Table-CHFmNrme.d.ts +0 -77
- package/dist/Table-CX6UwQiD.d.mts +0 -116
- package/dist/Table-CX6UwQiD.d.ts +0 -116
- package/dist/Table-Chud2XSq.d.mts +0 -99
- package/dist/Table-Chud2XSq.d.ts +0 -99
- package/dist/Table-D5QRe_j3.d.mts +0 -121
- package/dist/Table-D5QRe_j3.d.ts +0 -121
- package/dist/Table-DAgFGahx.d.mts +0 -39
- package/dist/Table-DAgFGahx.d.ts +0 -39
- package/dist/Table-DWniK7At.d.mts +0 -87
- package/dist/Table-DWniK7At.d.ts +0 -87
- package/dist/Table-PyFlnUDu.d.mts +0 -47
- package/dist/Table-PyFlnUDu.d.ts +0 -47
- package/dist/Table-wqyg13Y9.d.mts +0 -77
- package/dist/Table-wqyg13Y9.d.ts +0 -77
- package/dist/Tag-l7I5oeyk.d.mts +0 -13
- package/dist/Tag-l7I5oeyk.d.ts +0 -13
- package/dist/atom/Table/LuminaPagination.d.mts +0 -7
- package/dist/atom/Table/LuminaPagination.d.ts +0 -7
- package/dist/atom/Table/LuminaPagination.js +0 -153
- package/dist/atom/Table/LuminaPagination.mjs +0 -9
- package/dist/atom/Table/TableAccordion.d.mts +0 -9
- package/dist/atom/Table/TableAccordion.d.ts +0 -9
- package/dist/atom/Table/TableAccordion.js +0 -91
- package/dist/atom/Table/TableAccordion.mjs +0 -10
- package/dist/atom/Table/TableColumnHeader.d.mts +0 -7
- package/dist/atom/Table/TableColumnHeader.d.ts +0 -7
- package/dist/atom/Table/TableColumnHeader.js +0 -151
- package/dist/atom/Table/TableColumnHeader.mjs +0 -10
- package/dist/atom/Table/TableToolbar.d.mts +0 -9
- package/dist/atom/Table/TableToolbar.d.ts +0 -9
- package/dist/atom/Table/TableToolbar.js +0 -114
- package/dist/atom/Table/TableToolbar.mjs +0 -10
- package/dist/atom/Table/__tests__/Table.test.d.mts +0 -2
- package/dist/atom/Table/__tests__/Table.test.d.ts +0 -2
- package/dist/atom/Table/__tests__/Table.test.js +0 -61133
- package/dist/atom/Table/__tests__/Table.test.mjs +0 -59522
- package/dist/atom/TableAccordion/index.d.mts +0 -17
- package/dist/atom/TableAccordion/index.d.ts +0 -17
- package/dist/atom/TableAccordion/index.js +0 -91
- package/dist/atom/TableAccordion/index.mjs +0 -9
- package/dist/atom/TableToolbar/index.d.mts +0 -23
- package/dist/atom/TableToolbar/index.d.ts +0 -23
- package/dist/atom/TableToolbar/index.js +0 -114
- package/dist/atom/TableToolbar/index.mjs +0 -9
- package/dist/chunk-2PIFDGVK.mjs +0 -420
- package/dist/chunk-35KDS27M.mjs +0 -618
- package/dist/chunk-3S4X3YO2.mjs +0 -64
- package/dist/chunk-3XUHGVYA.mjs +0 -77
- package/dist/chunk-5HF6Y37C.mjs +0 -642
- package/dist/chunk-5OGQ4YIR.mjs +0 -238
- package/dist/chunk-6FCSXN7R.mjs +0 -388
- package/dist/chunk-7W72LPSU.mjs +0 -66
- package/dist/chunk-A66QDQHK.mjs +0 -627
- package/dist/chunk-ABLIL47F.mjs +0 -618
- package/dist/chunk-AEPDEUGY.mjs +0 -627
- package/dist/chunk-AFLEGUF3.mjs +0 -232
- package/dist/chunk-APCEITHQ.mjs +0 -232
- package/dist/chunk-AVQBFGBT.mjs +0 -141
- package/dist/chunk-B5BOBELW.mjs +0 -213
- package/dist/chunk-BQ4PVLJ4.mjs +0 -262
- package/dist/chunk-DBNLBCQK.mjs +0 -64
- package/dist/chunk-DLLT6V65.mjs +0 -141
- package/dist/chunk-DOQQRYTS.mjs +0 -73
- package/dist/chunk-DSVR2DVF.mjs +0 -660
- package/dist/chunk-DXUPULDI.mjs +0 -424
- package/dist/chunk-E465D6OH.mjs +0 -644
- package/dist/chunk-E4FCLHYA.mjs +0 -678
- package/dist/chunk-ENQN5BAN.mjs +0 -225
- package/dist/chunk-F6VMSH4N.mjs +0 -79
- package/dist/chunk-FKGGN3FA.mjs +0 -412
- package/dist/chunk-GFTO2N3Q.mjs +0 -432
- package/dist/chunk-GM6H6RPJ.mjs +0 -232
- package/dist/chunk-HF3VJBMY.mjs +0 -244
- package/dist/chunk-HISCHZ5H.mjs +0 -77
- package/dist/chunk-HWQBE6PT.mjs +0 -99
- package/dist/chunk-HXM657YW.mjs +0 -115
- package/dist/chunk-I5VHKSQR.mjs +0 -64
- package/dist/chunk-ICSZZNTY.mjs +0 -384
- package/dist/chunk-IZGLD7U3.mjs +0 -667
- package/dist/chunk-J7X2PZG6.mjs +0 -232
- package/dist/chunk-JUXBLRMQ.mjs +0 -50
- package/dist/chunk-JXFSGADI.mjs +0 -678
- package/dist/chunk-KGKRSR6D.mjs +0 -388
- package/dist/chunk-KQKNFGWZ.mjs +0 -388
- package/dist/chunk-LCH4DXJY.mjs +0 -92
- package/dist/chunk-LCXU3K57.mjs +0 -232
- package/dist/chunk-LRN4XOIR.mjs +0 -71
- package/dist/chunk-LROMXY35.mjs +0 -116
- package/dist/chunk-LUNPHYAR.mjs +0 -681
- package/dist/chunk-LVOTEPLC.mjs +0 -64
- package/dist/chunk-M2ZM3X5Y.mjs +0 -56
- package/dist/chunk-M4MIYHAV.mjs +0 -43
- package/dist/chunk-M7F7DOC4.mjs +0 -41
- package/dist/chunk-MHWFVML4.mjs +0 -115
- package/dist/chunk-MPTVYTYS.mjs +0 -0
- package/dist/chunk-MQFW3LZR.mjs +0 -111
- package/dist/chunk-N355RJGH.mjs +0 -141
- package/dist/chunk-N3YFQDW7.mjs +0 -77
- package/dist/chunk-NGCBOOIE.mjs +0 -225
- package/dist/chunk-NWQQYJSP.mjs +0 -688
- package/dist/chunk-NYQV556V.mjs +0 -667
- package/dist/chunk-O5C3355V.mjs +0 -246
- package/dist/chunk-OCP43S7U.mjs +0 -241
- package/dist/chunk-OHLFRULE.mjs +0 -432
- package/dist/chunk-PLO46EKV.mjs +0 -65
- package/dist/chunk-PSBEYGD4.mjs +0 -618
- package/dist/chunk-PWIBJI6Z.mjs +0 -115
- package/dist/chunk-Q5KPXEH5.mjs +0 -223
- package/dist/chunk-QC34HHAY.mjs +0 -57
- package/dist/chunk-QVWV36BK.mjs +0 -73
- package/dist/chunk-QWK3MYDM.mjs +0 -64
- package/dist/chunk-RE44YAMD.mjs +0 -47
- package/dist/chunk-RH6DAYBU.mjs +0 -369
- package/dist/chunk-RSSEJENT.mjs +0 -269
- package/dist/chunk-SJBS5QCJ.mjs +0 -225
- package/dist/chunk-SWRFCTJW.mjs +0 -77
- package/dist/chunk-T4XNCAIB.mjs +0 -231
- package/dist/chunk-TCX5IFQ4.mjs +0 -627
- package/dist/chunk-TSAUBT2F.mjs +0 -74
- package/dist/chunk-U7Q7ILSE.mjs +0 -690
- package/dist/chunk-UHTUJJH7.mjs +0 -112
- package/dist/chunk-UOHYCMUS.mjs +0 -53
- package/dist/chunk-UQZBL3F7.mjs +0 -0
- package/dist/chunk-URGYNKJM.mjs +0 -229
- package/dist/chunk-UTMZY37A.mjs +0 -141
- package/dist/chunk-UUEPD2FH.mjs +0 -141
- package/dist/chunk-VQOUJQIF.mjs +0 -249
- package/dist/chunk-VY3QH43W.mjs +0 -6
- package/dist/chunk-W2N3AWY6.mjs +0 -80
- package/dist/chunk-WUVS6S7N.mjs +0 -119
- package/dist/chunk-WZS2K7X3.mjs +0 -688
- package/dist/chunk-X76GNSBB.mjs +0 -87
- package/dist/chunk-XG7CZXBW.mjs +0 -244
- package/dist/chunk-XXKIBYXD.mjs +0 -109
- package/dist/chunk-XXTUVMAY.mjs +0 -51
- package/dist/chunk-Y3BIY4DW.mjs +0 -618
- package/dist/chunk-Y7FP6ZMW.mjs +0 -225
- package/dist/chunk-YELLXCMY.mjs +0 -265
- package/dist/chunk-YQEEM26W.mjs +0 -232
- package/dist/chunk-ZGFE3OPJ.mjs +0 -678
- package/dist/chunk-ZMJ3KDDY.mjs +0 -618
- package/dist/chunk-ZYPWQ53U.mjs +0 -6
- package/dist/dist-U2IPN4FB.mjs +0 -567
- package/dist/magic-string.es-XOWQCRDO.mjs +0 -1311
- package/dist/types-CA0Wby2L.d.mts +0 -67
- package/dist/types-CA0Wby2L.d.ts +0 -67
- package/dist/types-CncMmuJM.d.mts +0 -44
- package/dist/types-CncMmuJM.d.ts +0 -44
- package/dist/types-D4fdeMWQ.d.mts +0 -62
- package/dist/types-D4fdeMWQ.d.ts +0 -62
package/dist/dist-U2IPN4FB.mjs
DELETED
|
@@ -1,567 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__async,
|
|
3
|
-
__pow,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "./chunk-HWQBE6PT.mjs";
|
|
6
|
-
|
|
7
|
-
// ../../node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.js
|
|
8
|
-
var $ = Object.defineProperty;
|
|
9
|
-
var C = (s) => {
|
|
10
|
-
throw TypeError(s);
|
|
11
|
-
};
|
|
12
|
-
var D = (s, n, t) => n in s ? $(s, n, { enumerable: true, configurable: true, writable: true, value: t }) : s[n] = t;
|
|
13
|
-
var O = (s, n, t) => D(s, typeof n != "symbol" ? n + "" : n, t);
|
|
14
|
-
var q = (s, n, t) => n.has(s) || C("Cannot " + t);
|
|
15
|
-
var d = (s, n, t) => (q(s, n, "read from private field"), t ? t.call(s) : n.get(s));
|
|
16
|
-
var k = (s, n, t) => n.has(s) ? C("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, t);
|
|
17
|
-
var f = (s, n, t, e) => (q(s, n, "write to private field"), e ? e.call(s, t) : n.set(s, t), t);
|
|
18
|
-
var F = (s, n, t, e) => ({
|
|
19
|
-
set _(r) {
|
|
20
|
-
f(s, n, r, t);
|
|
21
|
-
},
|
|
22
|
-
get _() {
|
|
23
|
-
return d(s, n, e);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
var M = class {
|
|
27
|
-
constructor(n) {
|
|
28
|
-
O(this, "value");
|
|
29
|
-
O(this, "next");
|
|
30
|
-
this.value = n;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var m;
|
|
34
|
-
var w;
|
|
35
|
-
var E;
|
|
36
|
-
var g = class {
|
|
37
|
-
constructor() {
|
|
38
|
-
k(this, m);
|
|
39
|
-
k(this, w);
|
|
40
|
-
k(this, E);
|
|
41
|
-
this.clear();
|
|
42
|
-
}
|
|
43
|
-
enqueue(n) {
|
|
44
|
-
let t = new M(n);
|
|
45
|
-
d(this, m) ? (d(this, w).next = t, f(this, w, t)) : (f(this, m, t), f(this, w, t)), F(this, E)._++;
|
|
46
|
-
}
|
|
47
|
-
dequeue() {
|
|
48
|
-
let n = d(this, m);
|
|
49
|
-
if (n)
|
|
50
|
-
return f(this, m, d(this, m).next), F(this, E)._--, n.value;
|
|
51
|
-
}
|
|
52
|
-
clear() {
|
|
53
|
-
f(this, m, void 0), f(this, w, void 0), f(this, E, 0);
|
|
54
|
-
}
|
|
55
|
-
get size() {
|
|
56
|
-
return d(this, E);
|
|
57
|
-
}
|
|
58
|
-
*[Symbol.iterator]() {
|
|
59
|
-
let n = d(this, m);
|
|
60
|
-
for (; n; )
|
|
61
|
-
yield n.value, n = n.next;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
m = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
65
|
-
function y(s) {
|
|
66
|
-
if (!((Number.isInteger(s) || s === Number.POSITIVE_INFINITY) && s > 0))
|
|
67
|
-
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
68
|
-
let n = new g(), t = 0, e = () => {
|
|
69
|
-
t--, n.size > 0 && n.dequeue()();
|
|
70
|
-
}, r = (h, p, a) => __async(null, null, function* () {
|
|
71
|
-
t++;
|
|
72
|
-
let l = (() => __async(null, null, function* () {
|
|
73
|
-
return h(...a);
|
|
74
|
-
}))();
|
|
75
|
-
p(l);
|
|
76
|
-
try {
|
|
77
|
-
yield l;
|
|
78
|
-
} catch (T) {
|
|
79
|
-
}
|
|
80
|
-
e();
|
|
81
|
-
}), i = (h, p, a) => {
|
|
82
|
-
n.enqueue(r.bind(void 0, h, p, a)), (() => __async(null, null, function* () {
|
|
83
|
-
return yield Promise.resolve(), t < s && n.size > 0 && n.dequeue()();
|
|
84
|
-
}))();
|
|
85
|
-
}, c = (h, ...p) => new Promise((a) => {
|
|
86
|
-
i(h, a, p);
|
|
87
|
-
});
|
|
88
|
-
return Object.defineProperties(c, {
|
|
89
|
-
activeCount: {
|
|
90
|
-
get: () => t
|
|
91
|
-
},
|
|
92
|
-
pendingCount: {
|
|
93
|
-
get: () => n.size
|
|
94
|
-
},
|
|
95
|
-
clearQueue: {
|
|
96
|
-
value: () => {
|
|
97
|
-
n.clear();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}), c;
|
|
101
|
-
}
|
|
102
|
-
function o(s, n = null) {
|
|
103
|
-
let t = new Event(s);
|
|
104
|
-
return n && Object.defineProperty(t, "task", {
|
|
105
|
-
value: n,
|
|
106
|
-
enumerable: true,
|
|
107
|
-
writable: false,
|
|
108
|
-
configurable: false
|
|
109
|
-
}), t;
|
|
110
|
-
}
|
|
111
|
-
var G = {
|
|
112
|
-
1: 12.71,
|
|
113
|
-
2: 4.303,
|
|
114
|
-
3: 3.182,
|
|
115
|
-
4: 2.776,
|
|
116
|
-
5: 2.571,
|
|
117
|
-
6: 2.447,
|
|
118
|
-
7: 2.365,
|
|
119
|
-
8: 2.306,
|
|
120
|
-
9: 2.262,
|
|
121
|
-
10: 2.228,
|
|
122
|
-
11: 2.201,
|
|
123
|
-
12: 2.179,
|
|
124
|
-
13: 2.16,
|
|
125
|
-
14: 2.145,
|
|
126
|
-
15: 2.131,
|
|
127
|
-
16: 2.12,
|
|
128
|
-
17: 2.11,
|
|
129
|
-
18: 2.101,
|
|
130
|
-
19: 2.093,
|
|
131
|
-
20: 2.086,
|
|
132
|
-
21: 2.08,
|
|
133
|
-
22: 2.074,
|
|
134
|
-
23: 2.069,
|
|
135
|
-
24: 2.064,
|
|
136
|
-
25: 2.06,
|
|
137
|
-
26: 2.056,
|
|
138
|
-
27: 2.052,
|
|
139
|
-
28: 2.048,
|
|
140
|
-
29: 2.045,
|
|
141
|
-
30: 2.042,
|
|
142
|
-
31: 2.0399,
|
|
143
|
-
32: 2.0378,
|
|
144
|
-
33: 2.0357,
|
|
145
|
-
34: 2.0336,
|
|
146
|
-
35: 2.0315,
|
|
147
|
-
36: 2.0294,
|
|
148
|
-
37: 2.0273,
|
|
149
|
-
38: 2.0252,
|
|
150
|
-
39: 2.0231,
|
|
151
|
-
40: 2.021,
|
|
152
|
-
41: 2.0198,
|
|
153
|
-
42: 2.0186,
|
|
154
|
-
43: 2.0174,
|
|
155
|
-
44: 2.0162,
|
|
156
|
-
45: 2.015,
|
|
157
|
-
46: 2.0138,
|
|
158
|
-
47: 2.0126,
|
|
159
|
-
48: 2.0114,
|
|
160
|
-
49: 2.0102,
|
|
161
|
-
50: 2.009,
|
|
162
|
-
51: 2.0081,
|
|
163
|
-
52: 2.0072,
|
|
164
|
-
53: 2.0063,
|
|
165
|
-
54: 2.0054,
|
|
166
|
-
55: 2.0045,
|
|
167
|
-
56: 2.0036,
|
|
168
|
-
57: 2.0027,
|
|
169
|
-
58: 2.0018,
|
|
170
|
-
59: 2.0009,
|
|
171
|
-
60: 2,
|
|
172
|
-
61: 1.9995,
|
|
173
|
-
62: 1.999,
|
|
174
|
-
63: 1.9985,
|
|
175
|
-
64: 1.998,
|
|
176
|
-
65: 1.9975,
|
|
177
|
-
66: 1.997,
|
|
178
|
-
67: 1.9965,
|
|
179
|
-
68: 1.996,
|
|
180
|
-
69: 1.9955,
|
|
181
|
-
70: 1.995,
|
|
182
|
-
71: 1.9945,
|
|
183
|
-
72: 1.994,
|
|
184
|
-
73: 1.9935,
|
|
185
|
-
74: 1.993,
|
|
186
|
-
75: 1.9925,
|
|
187
|
-
76: 1.992,
|
|
188
|
-
77: 1.9915,
|
|
189
|
-
78: 1.991,
|
|
190
|
-
79: 1.9905,
|
|
191
|
-
80: 1.99,
|
|
192
|
-
81: 1.9897,
|
|
193
|
-
82: 1.9894,
|
|
194
|
-
83: 1.9891,
|
|
195
|
-
84: 1.9888,
|
|
196
|
-
85: 1.9885,
|
|
197
|
-
86: 1.9882,
|
|
198
|
-
87: 1.9879,
|
|
199
|
-
88: 1.9876,
|
|
200
|
-
89: 1.9873,
|
|
201
|
-
90: 1.987,
|
|
202
|
-
91: 1.9867,
|
|
203
|
-
92: 1.9864,
|
|
204
|
-
93: 1.9861,
|
|
205
|
-
94: 1.9858,
|
|
206
|
-
95: 1.9855,
|
|
207
|
-
96: 1.9852,
|
|
208
|
-
97: 1.9849,
|
|
209
|
-
98: 1.9846,
|
|
210
|
-
99: 1.9843,
|
|
211
|
-
100: 1.984,
|
|
212
|
-
101: 1.9838,
|
|
213
|
-
102: 1.9836,
|
|
214
|
-
103: 1.9834,
|
|
215
|
-
104: 1.9832,
|
|
216
|
-
105: 1.983,
|
|
217
|
-
106: 1.9828,
|
|
218
|
-
107: 1.9826,
|
|
219
|
-
108: 1.9824,
|
|
220
|
-
109: 1.9822,
|
|
221
|
-
110: 1.982,
|
|
222
|
-
111: 1.9818,
|
|
223
|
-
112: 1.9816,
|
|
224
|
-
113: 1.9814,
|
|
225
|
-
114: 1.9812,
|
|
226
|
-
115: 1.9819,
|
|
227
|
-
116: 1.9808,
|
|
228
|
-
117: 1.9806,
|
|
229
|
-
118: 1.9804,
|
|
230
|
-
119: 1.9802,
|
|
231
|
-
120: 1.98,
|
|
232
|
-
infinity: 1.96
|
|
233
|
-
};
|
|
234
|
-
var N = G;
|
|
235
|
-
var J = (s) => s / 1e6;
|
|
236
|
-
var U = () => J(Number(process.hrtime.bigint()));
|
|
237
|
-
var B = () => performance.now();
|
|
238
|
-
function W(s) {
|
|
239
|
-
return s !== null && typeof s == "object" && typeof s.then == "function";
|
|
240
|
-
}
|
|
241
|
-
var S = (s, n) => s.reduce((e, r) => e + __pow(r - n, 2), 0) / (s.length - 1) || 0;
|
|
242
|
-
var X = (() => __async(null, null, function* () {
|
|
243
|
-
})).constructor;
|
|
244
|
-
var Z = (s) => s.constructor === X;
|
|
245
|
-
var z = (s) => __async(null, null, function* () {
|
|
246
|
-
if (Z(s.fn))
|
|
247
|
-
return true;
|
|
248
|
-
try {
|
|
249
|
-
if (s.opts.beforeEach != null)
|
|
250
|
-
try {
|
|
251
|
-
yield s.opts.beforeEach.call(s);
|
|
252
|
-
} catch (e) {
|
|
253
|
-
}
|
|
254
|
-
let n = s.fn(), t = W(n);
|
|
255
|
-
if (t)
|
|
256
|
-
try {
|
|
257
|
-
yield n;
|
|
258
|
-
} catch (e) {
|
|
259
|
-
}
|
|
260
|
-
if (s.opts.afterEach != null)
|
|
261
|
-
try {
|
|
262
|
-
yield s.opts.afterEach.call(s);
|
|
263
|
-
} catch (e) {
|
|
264
|
-
}
|
|
265
|
-
return t;
|
|
266
|
-
} catch (n) {
|
|
267
|
-
return false;
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
var b = class extends EventTarget {
|
|
271
|
-
constructor(t, e, r, i = {}) {
|
|
272
|
-
super();
|
|
273
|
-
this.runs = 0;
|
|
274
|
-
this.bench = t, this.name = e, this.fn = r, this.opts = i;
|
|
275
|
-
}
|
|
276
|
-
loop(t, e) {
|
|
277
|
-
return __async(this, null, function* () {
|
|
278
|
-
var T;
|
|
279
|
-
let r = this.bench.concurrency === "task", { threshold: i } = this.bench, c = 0, h = [];
|
|
280
|
-
if (this.opts.beforeAll != null)
|
|
281
|
-
try {
|
|
282
|
-
yield this.opts.beforeAll.call(this);
|
|
283
|
-
} catch (u) {
|
|
284
|
-
return { error: u };
|
|
285
|
-
}
|
|
286
|
-
let p = yield z(this), a = () => __async(this, null, function* () {
|
|
287
|
-
this.opts.beforeEach != null && (yield this.opts.beforeEach.call(this));
|
|
288
|
-
let u = 0;
|
|
289
|
-
if (p) {
|
|
290
|
-
let v = this.bench.now();
|
|
291
|
-
yield this.fn.call(this), u = this.bench.now() - v;
|
|
292
|
-
} else {
|
|
293
|
-
let v = this.bench.now();
|
|
294
|
-
this.fn.call(this), u = this.bench.now() - v;
|
|
295
|
-
}
|
|
296
|
-
h.push(u), c += u, this.opts.afterEach != null && (yield this.opts.afterEach.call(this));
|
|
297
|
-
}), l = y(i);
|
|
298
|
-
try {
|
|
299
|
-
let u = [];
|
|
300
|
-
for (; (c < t || h.length + l.activeCount + l.pendingCount < e) && !((T = this.bench.signal) != null && T.aborted); )
|
|
301
|
-
r ? u.push(l(a)) : yield a();
|
|
302
|
-
u.length && (yield Promise.all(u));
|
|
303
|
-
} catch (u) {
|
|
304
|
-
return { error: u };
|
|
305
|
-
}
|
|
306
|
-
if (this.opts.afterAll != null)
|
|
307
|
-
try {
|
|
308
|
-
yield this.opts.afterAll.call(this);
|
|
309
|
-
} catch (u) {
|
|
310
|
-
return { error: u };
|
|
311
|
-
}
|
|
312
|
-
return { samples: h };
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* run the current task and write the results in `Task.result` object
|
|
317
|
-
*/
|
|
318
|
-
run() {
|
|
319
|
-
return __async(this, null, function* () {
|
|
320
|
-
var r, i;
|
|
321
|
-
if ((r = this.result) != null && r.error)
|
|
322
|
-
return this;
|
|
323
|
-
this.dispatchEvent(o("start", this)), yield this.bench.setup(this, "run");
|
|
324
|
-
let { samples: t, error: e } = yield this.loop(this.bench.time, this.bench.iterations);
|
|
325
|
-
if (this.bench.teardown(this, "run"), t) {
|
|
326
|
-
let c = t.reduce((L, A) => L + A, 0);
|
|
327
|
-
this.runs = t.length, t.sort((L, A) => L - A);
|
|
328
|
-
let h = c / this.runs, p = 1e3 / h, a = t.length, l = a - 1, T = t[0], u = t[l], v = c / t.length || 0, P = S(t, v), R = Math.sqrt(P), I = R / Math.sqrt(a), _ = N[String(Math.round(l) || 1)] || N.infinity, K = I * _, j = K / v * 100, H = t[Math.ceil(a * 0.75) - 1], V = t[Math.ceil(a * 0.99) - 1], Q = t[Math.ceil(a * 0.995) - 1], Y = t[Math.ceil(a * 0.999) - 1];
|
|
329
|
-
if ((i = this.bench.signal) != null && i.aborted)
|
|
330
|
-
return this;
|
|
331
|
-
this.setResult({
|
|
332
|
-
totalTime: c,
|
|
333
|
-
min: T,
|
|
334
|
-
max: u,
|
|
335
|
-
hz: p,
|
|
336
|
-
period: h,
|
|
337
|
-
samples: t,
|
|
338
|
-
mean: v,
|
|
339
|
-
variance: P,
|
|
340
|
-
sd: R,
|
|
341
|
-
sem: I,
|
|
342
|
-
df: l,
|
|
343
|
-
critical: _,
|
|
344
|
-
moe: K,
|
|
345
|
-
rme: j,
|
|
346
|
-
p75: H,
|
|
347
|
-
p99: V,
|
|
348
|
-
p995: Q,
|
|
349
|
-
p999: Y
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
if (e) {
|
|
353
|
-
if (this.setResult({ error: e }), this.bench.throws)
|
|
354
|
-
throw e;
|
|
355
|
-
this.dispatchEvent(o("error", this)), this.bench.dispatchEvent(o("error", this));
|
|
356
|
-
}
|
|
357
|
-
return this.dispatchEvent(o("cycle", this)), this.bench.dispatchEvent(o("cycle", this)), this.dispatchEvent(o("complete", this)), this;
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* warmup the current task
|
|
362
|
-
*/
|
|
363
|
-
warmup() {
|
|
364
|
-
return __async(this, null, function* () {
|
|
365
|
-
var e;
|
|
366
|
-
if ((e = this.result) != null && e.error)
|
|
367
|
-
return;
|
|
368
|
-
this.dispatchEvent(o("warmup", this)), yield this.bench.setup(this, "warmup");
|
|
369
|
-
let { error: t } = yield this.loop(this.bench.warmupTime, this.bench.warmupIterations);
|
|
370
|
-
if (this.bench.teardown(this, "warmup"), t && (this.setResult({ error: t }), this.bench.throws))
|
|
371
|
-
throw t;
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
addEventListener(t, e, r) {
|
|
375
|
-
super.addEventListener(t, e, r);
|
|
376
|
-
}
|
|
377
|
-
removeEventListener(t, e, r) {
|
|
378
|
-
super.removeEventListener(t, e, r);
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* change the result object values
|
|
382
|
-
*/
|
|
383
|
-
setResult(t) {
|
|
384
|
-
this.result = __spreadValues(__spreadValues({}, this.result), t), Object.freeze(this.result);
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* reset the task to make the `Task.runs` a zero-value and remove the `Task.result`
|
|
388
|
-
* object
|
|
389
|
-
*/
|
|
390
|
-
reset() {
|
|
391
|
-
this.dispatchEvent(o("reset", this)), this.runs = 0, this.result = void 0;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
var x = class extends EventTarget {
|
|
395
|
-
constructor(t = {}) {
|
|
396
|
-
var e, r, i, c, h, p, a, l;
|
|
397
|
-
super();
|
|
398
|
-
this._tasks = /* @__PURE__ */ new Map();
|
|
399
|
-
this._todos = /* @__PURE__ */ new Map();
|
|
400
|
-
this.concurrency = null;
|
|
401
|
-
this.threshold = 1 / 0;
|
|
402
|
-
this.warmupTime = 100;
|
|
403
|
-
this.warmupIterations = 5;
|
|
404
|
-
this.time = 500;
|
|
405
|
-
this.iterations = 10;
|
|
406
|
-
this.now = B;
|
|
407
|
-
this.now = (e = t.now) != null ? e : this.now, this.warmupTime = (r = t.warmupTime) != null ? r : this.warmupTime, this.warmupIterations = (i = t.warmupIterations) != null ? i : this.warmupIterations, this.time = (c = t.time) != null ? c : this.time, this.iterations = (h = t.iterations) != null ? h : this.iterations, this.signal = t.signal, this.throws = (p = t.throws) != null ? p : false, this.setup = (a = t.setup) != null ? a : () => {
|
|
408
|
-
}, this.teardown = (l = t.teardown) != null ? l : () => {
|
|
409
|
-
}, this.signal && this.signal.addEventListener(
|
|
410
|
-
"abort",
|
|
411
|
-
() => {
|
|
412
|
-
this.dispatchEvent(o("abort"));
|
|
413
|
-
},
|
|
414
|
-
{ once: true }
|
|
415
|
-
);
|
|
416
|
-
}
|
|
417
|
-
runTask(t) {
|
|
418
|
-
var e;
|
|
419
|
-
return (e = this.signal) != null && e.aborted ? t : t.run();
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* run the added tasks that were registered using the
|
|
423
|
-
* {@link add} method.
|
|
424
|
-
* Note: This method does not do any warmup. Call {@link warmup} for that.
|
|
425
|
-
*/
|
|
426
|
-
run() {
|
|
427
|
-
return __async(this, null, function* () {
|
|
428
|
-
if (this.concurrency === "bench")
|
|
429
|
-
return this.runConcurrently(this.threshold, this.concurrency);
|
|
430
|
-
this.dispatchEvent(o("start"));
|
|
431
|
-
let t = [];
|
|
432
|
-
for (let e of [...this._tasks.values()])
|
|
433
|
-
t.push(yield this.runTask(e));
|
|
434
|
-
return this.dispatchEvent(o("complete")), t;
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* See Bench.{@link concurrency}
|
|
439
|
-
*/
|
|
440
|
-
runConcurrently() {
|
|
441
|
-
return __async(this, arguments, function* (t = 1 / 0, e = "bench") {
|
|
442
|
-
if (this.threshold = t, this.concurrency = e, e === "task")
|
|
443
|
-
return this.run();
|
|
444
|
-
this.dispatchEvent(o("start"));
|
|
445
|
-
let r = y(t), i = [];
|
|
446
|
-
for (let h of [...this._tasks.values()])
|
|
447
|
-
i.push(r(() => this.runTask(h)));
|
|
448
|
-
let c = yield Promise.all(i);
|
|
449
|
-
return this.dispatchEvent(o("complete")), c;
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* warmup the benchmark tasks.
|
|
454
|
-
* This is not run by default by the {@link run} method.
|
|
455
|
-
*/
|
|
456
|
-
warmup() {
|
|
457
|
-
return __async(this, null, function* () {
|
|
458
|
-
if (this.concurrency === "bench") {
|
|
459
|
-
yield this.warmupConcurrently(this.threshold, this.concurrency);
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
this.dispatchEvent(o("warmup"));
|
|
463
|
-
for (let [, t] of this._tasks)
|
|
464
|
-
yield t.warmup();
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* warmup the benchmark tasks concurrently.
|
|
469
|
-
* This is not run by default by the {@link runConcurrently} method.
|
|
470
|
-
*/
|
|
471
|
-
warmupConcurrently() {
|
|
472
|
-
return __async(this, arguments, function* (t = 1 / 0, e = "bench") {
|
|
473
|
-
if (this.threshold = t, this.concurrency = e, e === "task") {
|
|
474
|
-
yield this.warmup();
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
this.dispatchEvent(o("warmup"));
|
|
478
|
-
let r = y(t), i = [];
|
|
479
|
-
for (let [, c] of this._tasks)
|
|
480
|
-
i.push(r(() => c.warmup()));
|
|
481
|
-
yield Promise.all(i);
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* reset each task and remove its result
|
|
486
|
-
*/
|
|
487
|
-
reset() {
|
|
488
|
-
this.dispatchEvent(o("reset")), this._tasks.forEach((t) => {
|
|
489
|
-
t.reset();
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* add a benchmark task to the task map
|
|
494
|
-
*/
|
|
495
|
-
add(t, e, r = {}) {
|
|
496
|
-
let i = new b(this, t, e, r);
|
|
497
|
-
return this._tasks.set(t, i), this.dispatchEvent(o("add", i)), this;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* add a benchmark todo to the todo map
|
|
501
|
-
*/
|
|
502
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
503
|
-
todo(t, e = () => {
|
|
504
|
-
}, r = {}) {
|
|
505
|
-
let i = new b(this, t, e, r);
|
|
506
|
-
return this._todos.set(t, i), this.dispatchEvent(o("todo", i)), this;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* remove a benchmark task from the task map
|
|
510
|
-
*/
|
|
511
|
-
remove(t) {
|
|
512
|
-
let e = this.getTask(t);
|
|
513
|
-
return e && (this.dispatchEvent(o("remove", e)), this._tasks.delete(t)), this;
|
|
514
|
-
}
|
|
515
|
-
addEventListener(t, e, r) {
|
|
516
|
-
super.addEventListener(t, e, r);
|
|
517
|
-
}
|
|
518
|
-
removeEventListener(t, e, r) {
|
|
519
|
-
super.removeEventListener(t, e, r);
|
|
520
|
-
}
|
|
521
|
-
/**
|
|
522
|
-
* table of the tasks results
|
|
523
|
-
*/
|
|
524
|
-
table(t) {
|
|
525
|
-
return this.tasks.map((e) => {
|
|
526
|
-
if (e.result) {
|
|
527
|
-
if (e.result.error)
|
|
528
|
-
throw e.result.error;
|
|
529
|
-
return (t == null ? void 0 : t(e)) || {
|
|
530
|
-
"Task Name": e.name,
|
|
531
|
-
"ops/sec": e.result.error ? "NaN" : parseInt(e.result.hz.toString(), 10).toLocaleString(),
|
|
532
|
-
"Average Time (ns)": e.result.error ? "NaN" : e.result.mean * 1e3 * 1e3,
|
|
533
|
-
Margin: e.result.error ? "NaN" : `\xB1${e.result.rme.toFixed(2)}%`,
|
|
534
|
-
Samples: e.result.error ? "NaN" : e.result.samples.length
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
return null;
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* (getter) tasks results as an array
|
|
542
|
-
*/
|
|
543
|
-
get results() {
|
|
544
|
-
return [...this._tasks.values()].map((t) => t.result);
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* (getter) tasks as an array
|
|
548
|
-
*/
|
|
549
|
-
get tasks() {
|
|
550
|
-
return [...this._tasks.values()];
|
|
551
|
-
}
|
|
552
|
-
get todos() {
|
|
553
|
-
return [...this._todos.values()];
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* get a task based on the task name
|
|
557
|
-
*/
|
|
558
|
-
getTask(t) {
|
|
559
|
-
return this._tasks.get(t);
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
export {
|
|
563
|
-
x as Bench,
|
|
564
|
-
b as Task,
|
|
565
|
-
U as hrtimeNow,
|
|
566
|
-
B as now
|
|
567
|
-
};
|