@bemoje/profiler 2.2.1 → 2.2.3

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/lib/index.js CHANGED
@@ -3,2533 +3,11 @@ import { isSymbol, isFunction } from 'es-toolkit/predicate';
3
3
  import { isAsyncFunction } from 'util/types';
4
4
  import { round } from 'es-toolkit/math';
5
5
  import colors from 'ansi-colors';
6
+ import memoizee from 'memoizee';
7
+ import { ms } from 'enhanced-ms';
6
8
 
7
- var __create = Object.create;
8
9
  var __defProp = Object.defineProperty;
9
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __getOwnPropNames = Object.getOwnPropertyNames;
11
- var __getProtoOf = Object.getPrototypeOf;
12
- var __hasOwnProp = Object.prototype.hasOwnProperty;
13
10
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
- };
17
- var __commonJS = (cb, mod) => function __require() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __copyProps = (to, from, except, desc) => {
21
- if (from && typeof from === "object" || typeof from === "function") {
22
- for (let key of __getOwnPropNames(from))
23
- if (!__hasOwnProp.call(to, key) && key !== except)
24
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
- }
26
- return to;
27
- };
28
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
- // If the importer is in node compatibility mode or this is not an ESM
30
- // file that has been converted to a CommonJS file using a Babel-
31
- // compatible transform (i.e. "__esModule" has not been set), then set
32
- // "default" to the CommonJS "module.exports" for node compatibility.
33
- __defProp(target, "default", { value: mod, enumerable: true }) ,
34
- mod
35
- ));
36
-
37
- // ../../node_modules/tsup/assets/esm_shims.js
38
- var init_esm_shims = __esm({
39
- "../../node_modules/tsup/assets/esm_shims.js"() {
40
- }
41
- });
42
-
43
- // ../../node_modules/es5-ext/function/noop.js
44
- var require_noop = __commonJS({
45
- "../../node_modules/es5-ext/function/noop.js"(exports$1, module) {
46
- init_esm_shims();
47
- module.exports = function() {
48
- };
49
- }
50
- });
51
-
52
- // ../../node_modules/es5-ext/object/is-value.js
53
- var require_is_value = __commonJS({
54
- "../../node_modules/es5-ext/object/is-value.js"(exports$1, module) {
55
- init_esm_shims();
56
- var _undefined = require_noop()();
57
- module.exports = function(val) {
58
- return val !== _undefined && val !== null;
59
- };
60
- }
61
- });
62
-
63
- // ../../node_modules/es5-ext/object/normalize-options.js
64
- var require_normalize_options = __commonJS({
65
- "../../node_modules/es5-ext/object/normalize-options.js"(exports$1, module) {
66
- init_esm_shims();
67
- var isValue = require_is_value();
68
- var forEach = Array.prototype.forEach;
69
- var create = Object.create;
70
- var process2 = /* @__PURE__ */ __name(function(src, obj) {
71
- var key;
72
- for (key in src) obj[key] = src[key];
73
- }, "process");
74
- module.exports = function(opts1) {
75
- var result = create(null);
76
- forEach.call(arguments, function(options) {
77
- if (!isValue(options)) return;
78
- process2(Object(options), result);
79
- });
80
- return result;
81
- };
82
- }
83
- });
84
-
85
- // ../../node_modules/es5-ext/math/sign/is-implemented.js
86
- var require_is_implemented = __commonJS({
87
- "../../node_modules/es5-ext/math/sign/is-implemented.js"(exports$1, module) {
88
- init_esm_shims();
89
- module.exports = function() {
90
- var sign = Math.sign;
91
- if (typeof sign !== "function") return false;
92
- return sign(10) === 1 && sign(-20) === -1;
93
- };
94
- }
95
- });
96
-
97
- // ../../node_modules/es5-ext/math/sign/shim.js
98
- var require_shim = __commonJS({
99
- "../../node_modules/es5-ext/math/sign/shim.js"(exports$1, module) {
100
- init_esm_shims();
101
- module.exports = function(value) {
102
- value = Number(value);
103
- if (isNaN(value) || value === 0) return value;
104
- return value > 0 ? 1 : -1;
105
- };
106
- }
107
- });
108
-
109
- // ../../node_modules/es5-ext/math/sign/index.js
110
- var require_sign = __commonJS({
111
- "../../node_modules/es5-ext/math/sign/index.js"(exports$1, module) {
112
- init_esm_shims();
113
- module.exports = require_is_implemented()() ? Math.sign : require_shim();
114
- }
115
- });
116
-
117
- // ../../node_modules/es5-ext/number/to-integer.js
118
- var require_to_integer = __commonJS({
119
- "../../node_modules/es5-ext/number/to-integer.js"(exports$1, module) {
120
- init_esm_shims();
121
- var sign = require_sign();
122
- var abs = Math.abs;
123
- var floor = Math.floor;
124
- module.exports = function(value) {
125
- if (isNaN(value)) return 0;
126
- value = Number(value);
127
- if (value === 0 || !isFinite(value)) return value;
128
- return sign(value) * floor(abs(value));
129
- };
130
- }
131
- });
132
-
133
- // ../../node_modules/es5-ext/number/to-pos-integer.js
134
- var require_to_pos_integer = __commonJS({
135
- "../../node_modules/es5-ext/number/to-pos-integer.js"(exports$1, module) {
136
- init_esm_shims();
137
- var toInteger = require_to_integer();
138
- var max = Math.max;
139
- module.exports = function(value) {
140
- return max(0, toInteger(value));
141
- };
142
- }
143
- });
144
-
145
- // ../../node_modules/memoizee/lib/resolve-length.js
146
- var require_resolve_length = __commonJS({
147
- "../../node_modules/memoizee/lib/resolve-length.js"(exports$1, module) {
148
- init_esm_shims();
149
- var toPosInt = require_to_pos_integer();
150
- module.exports = function(optsLength, fnLength, isAsync) {
151
- var length;
152
- if (isNaN(optsLength)) {
153
- length = fnLength;
154
- if (!(length >= 0)) return 1;
155
- if (isAsync && length) return length - 1;
156
- return length;
157
- }
158
- if (optsLength === false) return false;
159
- return toPosInt(optsLength);
160
- };
161
- }
162
- });
163
-
164
- // ../../node_modules/es5-ext/object/valid-callable.js
165
- var require_valid_callable = __commonJS({
166
- "../../node_modules/es5-ext/object/valid-callable.js"(exports$1, module) {
167
- init_esm_shims();
168
- module.exports = function(fn) {
169
- if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
170
- return fn;
171
- };
172
- }
173
- });
174
-
175
- // ../../node_modules/es5-ext/object/valid-value.js
176
- var require_valid_value = __commonJS({
177
- "../../node_modules/es5-ext/object/valid-value.js"(exports$1, module) {
178
- init_esm_shims();
179
- var isValue = require_is_value();
180
- module.exports = function(value) {
181
- if (!isValue(value)) throw new TypeError("Cannot use null or undefined");
182
- return value;
183
- };
184
- }
185
- });
186
-
187
- // ../../node_modules/es5-ext/object/_iterate.js
188
- var require_iterate = __commonJS({
189
- "../../node_modules/es5-ext/object/_iterate.js"(exports$1, module) {
190
- init_esm_shims();
191
- var callable = require_valid_callable();
192
- var value = require_valid_value();
193
- var bind = Function.prototype.bind;
194
- var call = Function.prototype.call;
195
- var keys = Object.keys;
196
- var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
197
- module.exports = function(method, defVal) {
198
- return function(obj, cb) {
199
- var list, thisArg = arguments[2], compareFn = arguments[3];
200
- obj = Object(value(obj));
201
- callable(cb);
202
- list = keys(obj);
203
- if (compareFn) {
204
- list.sort(typeof compareFn === "function" ? bind.call(compareFn, obj) : void 0);
205
- }
206
- if (typeof method !== "function") method = list[method];
207
- return call.call(method, list, function(key, index) {
208
- if (!objPropertyIsEnumerable.call(obj, key)) return defVal;
209
- return call.call(cb, thisArg, obj[key], key, obj, index);
210
- });
211
- };
212
- };
213
- }
214
- });
215
-
216
- // ../../node_modules/es5-ext/object/for-each.js
217
- var require_for_each = __commonJS({
218
- "../../node_modules/es5-ext/object/for-each.js"(exports$1, module) {
219
- init_esm_shims();
220
- module.exports = require_iterate()("forEach");
221
- }
222
- });
223
-
224
- // ../../node_modules/memoizee/lib/registered-extensions.js
225
- var require_registered_extensions = __commonJS({
226
- "../../node_modules/memoizee/lib/registered-extensions.js"() {
227
- init_esm_shims();
228
- }
229
- });
230
-
231
- // ../../node_modules/es5-ext/object/assign/is-implemented.js
232
- var require_is_implemented2 = __commonJS({
233
- "../../node_modules/es5-ext/object/assign/is-implemented.js"(exports$1, module) {
234
- init_esm_shims();
235
- module.exports = function() {
236
- var assign = Object.assign, obj;
237
- if (typeof assign !== "function") return false;
238
- obj = {
239
- foo: "raz"
240
- };
241
- assign(obj, {
242
- bar: "dwa"
243
- }, {
244
- trzy: "trzy"
245
- });
246
- return obj.foo + obj.bar + obj.trzy === "razdwatrzy";
247
- };
248
- }
249
- });
250
-
251
- // ../../node_modules/es5-ext/object/keys/is-implemented.js
252
- var require_is_implemented3 = __commonJS({
253
- "../../node_modules/es5-ext/object/keys/is-implemented.js"(exports$1, module) {
254
- init_esm_shims();
255
- module.exports = function() {
256
- try {
257
- Object.keys("primitive");
258
- return true;
259
- } catch (e) {
260
- return false;
261
- }
262
- };
263
- }
264
- });
265
-
266
- // ../../node_modules/es5-ext/object/keys/shim.js
267
- var require_shim2 = __commonJS({
268
- "../../node_modules/es5-ext/object/keys/shim.js"(exports$1, module) {
269
- init_esm_shims();
270
- var isValue = require_is_value();
271
- var keys = Object.keys;
272
- module.exports = function(object) {
273
- return keys(isValue(object) ? Object(object) : object);
274
- };
275
- }
276
- });
277
-
278
- // ../../node_modules/es5-ext/object/keys/index.js
279
- var require_keys = __commonJS({
280
- "../../node_modules/es5-ext/object/keys/index.js"(exports$1, module) {
281
- init_esm_shims();
282
- module.exports = require_is_implemented3()() ? Object.keys : require_shim2();
283
- }
284
- });
285
-
286
- // ../../node_modules/es5-ext/object/assign/shim.js
287
- var require_shim3 = __commonJS({
288
- "../../node_modules/es5-ext/object/assign/shim.js"(exports$1, module) {
289
- init_esm_shims();
290
- var keys = require_keys();
291
- var value = require_valid_value();
292
- var max = Math.max;
293
- module.exports = function(dest, src) {
294
- var error, i, length = max(arguments.length, 2), assign;
295
- dest = Object(value(dest));
296
- assign = /* @__PURE__ */ __name(function(key) {
297
- try {
298
- dest[key] = src[key];
299
- } catch (e) {
300
- if (!error) error = e;
301
- }
302
- }, "assign");
303
- for (i = 1; i < length; ++i) {
304
- src = arguments[i];
305
- keys(src).forEach(assign);
306
- }
307
- if (error !== void 0) throw error;
308
- return dest;
309
- };
310
- }
311
- });
312
-
313
- // ../../node_modules/es5-ext/object/assign/index.js
314
- var require_assign = __commonJS({
315
- "../../node_modules/es5-ext/object/assign/index.js"(exports$1, module) {
316
- init_esm_shims();
317
- module.exports = require_is_implemented2()() ? Object.assign : require_shim3();
318
- }
319
- });
320
-
321
- // ../../node_modules/es5-ext/object/is-object.js
322
- var require_is_object = __commonJS({
323
- "../../node_modules/es5-ext/object/is-object.js"(exports$1, module) {
324
- init_esm_shims();
325
- var isValue = require_is_value();
326
- var map = {
327
- function: true,
328
- object: true
329
- };
330
- module.exports = function(value) {
331
- return isValue(value) && map[typeof value] || false;
332
- };
333
- }
334
- });
335
-
336
- // ../../node_modules/es5-ext/error/custom.js
337
- var require_custom = __commonJS({
338
- "../../node_modules/es5-ext/error/custom.js"(exports$1, module) {
339
- init_esm_shims();
340
- var assign = require_assign();
341
- var isObject = require_is_object();
342
- var isValue = require_is_value();
343
- var captureStackTrace = Error.captureStackTrace;
344
- module.exports = function(message) {
345
- var err = new Error(message), code = arguments[1], ext = arguments[2];
346
- if (!isValue(ext)) {
347
- if (isObject(code)) {
348
- ext = code;
349
- code = null;
350
- }
351
- }
352
- if (isValue(ext)) assign(err, ext);
353
- if (isValue(code)) err.code = code;
354
- if (captureStackTrace) captureStackTrace(err, module.exports);
355
- return err;
356
- };
357
- }
358
- });
359
-
360
- // ../../node_modules/es5-ext/object/mixin.js
361
- var require_mixin = __commonJS({
362
- "../../node_modules/es5-ext/object/mixin.js"(exports$1, module) {
363
- init_esm_shims();
364
- var value = require_valid_value();
365
- var defineProperty = Object.defineProperty;
366
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
367
- var getOwnPropertyNames = Object.getOwnPropertyNames;
368
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
369
- module.exports = function(target, source) {
370
- var error, sourceObject = Object(value(source));
371
- target = Object(value(target));
372
- getOwnPropertyNames(sourceObject).forEach(function(name) {
373
- try {
374
- defineProperty(target, name, getOwnPropertyDescriptor(source, name));
375
- } catch (e) {
376
- error = e;
377
- }
378
- });
379
- if (typeof getOwnPropertySymbols === "function") {
380
- getOwnPropertySymbols(sourceObject).forEach(function(symbol) {
381
- try {
382
- defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol));
383
- } catch (e) {
384
- error = e;
385
- }
386
- });
387
- }
388
- if (error !== void 0) throw error;
389
- return target;
390
- };
391
- }
392
- });
393
-
394
- // ../../node_modules/es5-ext/function/_define-length.js
395
- var require_define_length = __commonJS({
396
- "../../node_modules/es5-ext/function/_define-length.js"(exports$1, module) {
397
- init_esm_shims();
398
- var toPosInt = require_to_pos_integer();
399
- var test = /* @__PURE__ */ __name(function(arg1, arg2) {
400
- return arg2;
401
- }, "test");
402
- var desc;
403
- var defineProperty;
404
- var generate;
405
- var mixin;
406
- try {
407
- Object.defineProperty(test, "length", {
408
- configurable: true,
409
- writable: false,
410
- enumerable: false,
411
- value: 1
412
- });
413
- } catch (ignore) {
414
- }
415
- if (test.length === 1) {
416
- desc = {
417
- configurable: true,
418
- writable: false,
419
- enumerable: false
420
- };
421
- defineProperty = Object.defineProperty;
422
- module.exports = function(fn, length) {
423
- length = toPosInt(length);
424
- if (fn.length === length) return fn;
425
- desc.value = length;
426
- return defineProperty(fn, "length", desc);
427
- };
428
- } else {
429
- mixin = require_mixin();
430
- generate = /* @__PURE__ */ (function() {
431
- var cache = [];
432
- return function(length) {
433
- var args, i = 0;
434
- if (cache[length]) return cache[length];
435
- args = [];
436
- while (length--) args.push("a" + (++i).toString(36));
437
- return new Function("fn", "return function (" + args.join(", ") + ") { return fn.apply(this, arguments); };");
438
- };
439
- })();
440
- module.exports = function(src, length) {
441
- var target;
442
- length = toPosInt(length);
443
- if (src.length === length) return src;
444
- target = generate(length)(src);
445
- try {
446
- mixin(target, src);
447
- } catch (ignore) {
448
- }
449
- return target;
450
- };
451
- }
452
- }
453
- });
454
-
455
- // ../../node_modules/type/value/is.js
456
- var require_is = __commonJS({
457
- "../../node_modules/type/value/is.js"(exports$1, module) {
458
- init_esm_shims();
459
- var _undefined = void 0;
460
- module.exports = function(value) {
461
- return value !== _undefined && value !== null;
462
- };
463
- }
464
- });
465
-
466
- // ../../node_modules/type/object/is.js
467
- var require_is2 = __commonJS({
468
- "../../node_modules/type/object/is.js"(exports$1, module) {
469
- init_esm_shims();
470
- var isValue = require_is();
471
- var possibleTypes = {
472
- "object": true,
473
- "function": true,
474
- "undefined": true
475
- };
476
- module.exports = function(value) {
477
- if (!isValue(value)) return false;
478
- return hasOwnProperty.call(possibleTypes, typeof value);
479
- };
480
- }
481
- });
482
-
483
- // ../../node_modules/type/prototype/is.js
484
- var require_is3 = __commonJS({
485
- "../../node_modules/type/prototype/is.js"(exports$1, module) {
486
- init_esm_shims();
487
- var isObject = require_is2();
488
- module.exports = function(value) {
489
- if (!isObject(value)) return false;
490
- try {
491
- if (!value.constructor) return false;
492
- return value.constructor.prototype === value;
493
- } catch (error) {
494
- return false;
495
- }
496
- };
497
- }
498
- });
499
-
500
- // ../../node_modules/type/function/is.js
501
- var require_is4 = __commonJS({
502
- "../../node_modules/type/function/is.js"(exports$1, module) {
503
- init_esm_shims();
504
- var isPrototype = require_is3();
505
- module.exports = function(value) {
506
- if (typeof value !== "function") return false;
507
- if (!hasOwnProperty.call(value, "length")) return false;
508
- try {
509
- if (typeof value.length !== "number") return false;
510
- if (typeof value.call !== "function") return false;
511
- if (typeof value.apply !== "function") return false;
512
- } catch (error) {
513
- return false;
514
- }
515
- return !isPrototype(value);
516
- };
517
- }
518
- });
519
-
520
- // ../../node_modules/type/plain-function/is.js
521
- var require_is5 = __commonJS({
522
- "../../node_modules/type/plain-function/is.js"(exports$1, module) {
523
- init_esm_shims();
524
- var isFunction4 = require_is4();
525
- var classRe = /^\s*class[\s{/}]/;
526
- var functionToString = Function.prototype.toString;
527
- module.exports = function(value) {
528
- if (!isFunction4(value)) return false;
529
- if (classRe.test(functionToString.call(value))) return false;
530
- return true;
531
- };
532
- }
533
- });
534
-
535
- // ../../node_modules/es5-ext/string/#/contains/is-implemented.js
536
- var require_is_implemented4 = __commonJS({
537
- "../../node_modules/es5-ext/string/#/contains/is-implemented.js"(exports$1, module) {
538
- init_esm_shims();
539
- var str = "razdwatrzy";
540
- module.exports = function() {
541
- if (typeof str.contains !== "function") return false;
542
- return str.contains("dwa") === true && str.contains("foo") === false;
543
- };
544
- }
545
- });
546
-
547
- // ../../node_modules/es5-ext/string/#/contains/shim.js
548
- var require_shim4 = __commonJS({
549
- "../../node_modules/es5-ext/string/#/contains/shim.js"(exports$1, module) {
550
- init_esm_shims();
551
- var indexOf = String.prototype.indexOf;
552
- module.exports = function(searchString) {
553
- return indexOf.call(this, searchString, arguments[1]) > -1;
554
- };
555
- }
556
- });
557
-
558
- // ../../node_modules/es5-ext/string/#/contains/index.js
559
- var require_contains = __commonJS({
560
- "../../node_modules/es5-ext/string/#/contains/index.js"(exports$1, module) {
561
- init_esm_shims();
562
- module.exports = require_is_implemented4()() ? String.prototype.contains : require_shim4();
563
- }
564
- });
565
-
566
- // ../../node_modules/d/index.js
567
- var require_d = __commonJS({
568
- "../../node_modules/d/index.js"(exports$1, module) {
569
- init_esm_shims();
570
- var isValue = require_is();
571
- var isPlainFunction = require_is5();
572
- var assign = require_assign();
573
- var normalizeOpts = require_normalize_options();
574
- var contains = require_contains();
575
- var d = module.exports = function(dscr, value) {
576
- var c, e, w, options, desc;
577
- if (arguments.length < 2 || typeof dscr !== "string") {
578
- options = value;
579
- value = dscr;
580
- dscr = null;
581
- } else {
582
- options = arguments[2];
583
- }
584
- if (isValue(dscr)) {
585
- c = contains.call(dscr, "c");
586
- e = contains.call(dscr, "e");
587
- w = contains.call(dscr, "w");
588
- } else {
589
- c = w = true;
590
- e = false;
591
- }
592
- desc = {
593
- value,
594
- configurable: c,
595
- enumerable: e,
596
- writable: w
597
- };
598
- return !options ? desc : assign(normalizeOpts(options), desc);
599
- };
600
- d.gs = function(dscr, get, set) {
601
- var c, e, options, desc;
602
- if (typeof dscr !== "string") {
603
- options = set;
604
- set = get;
605
- get = dscr;
606
- dscr = null;
607
- } else {
608
- options = arguments[3];
609
- }
610
- if (!isValue(get)) {
611
- get = void 0;
612
- } else if (!isPlainFunction(get)) {
613
- options = get;
614
- get = set = void 0;
615
- } else if (!isValue(set)) {
616
- set = void 0;
617
- } else if (!isPlainFunction(set)) {
618
- options = set;
619
- set = void 0;
620
- }
621
- if (isValue(dscr)) {
622
- c = contains.call(dscr, "c");
623
- e = contains.call(dscr, "e");
624
- } else {
625
- c = true;
626
- e = false;
627
- }
628
- desc = {
629
- get,
630
- set,
631
- configurable: c,
632
- enumerable: e
633
- };
634
- return !options ? desc : assign(normalizeOpts(options), desc);
635
- };
636
- }
637
- });
638
-
639
- // ../../node_modules/event-emitter/index.js
640
- var require_event_emitter = __commonJS({
641
- "../../node_modules/event-emitter/index.js"(exports$1, module) {
642
- init_esm_shims();
643
- var d = require_d();
644
- var callable = require_valid_callable();
645
- var apply = Function.prototype.apply;
646
- var call = Function.prototype.call;
647
- var create = Object.create;
648
- var defineProperty = Object.defineProperty;
649
- var defineProperties = Object.defineProperties;
650
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
651
- var descriptor = {
652
- configurable: true,
653
- enumerable: false,
654
- writable: true
655
- };
656
- var on;
657
- var once;
658
- var off;
659
- var emit;
660
- var methods;
661
- var descriptors;
662
- var base;
663
- on = /* @__PURE__ */ __name(function(type, listener) {
664
- var data;
665
- callable(listener);
666
- if (!hasOwnProperty2.call(this, "__ee__")) {
667
- data = descriptor.value = create(null);
668
- defineProperty(this, "__ee__", descriptor);
669
- descriptor.value = null;
670
- } else {
671
- data = this.__ee__;
672
- }
673
- if (!data[type]) data[type] = listener;
674
- else if (typeof data[type] === "object") data[type].push(listener);
675
- else data[type] = [
676
- data[type],
677
- listener
678
- ];
679
- return this;
680
- }, "on");
681
- once = /* @__PURE__ */ __name(function(type, listener) {
682
- var once2, self2;
683
- callable(listener);
684
- self2 = this;
685
- on.call(this, type, once2 = /* @__PURE__ */ __name(function() {
686
- off.call(self2, type, once2);
687
- apply.call(listener, this, arguments);
688
- }, "once"));
689
- once2.__eeOnceListener__ = listener;
690
- return this;
691
- }, "once");
692
- off = /* @__PURE__ */ __name(function(type, listener) {
693
- var data, listeners, candidate, i;
694
- callable(listener);
695
- if (!hasOwnProperty2.call(this, "__ee__")) return this;
696
- data = this.__ee__;
697
- if (!data[type]) return this;
698
- listeners = data[type];
699
- if (typeof listeners === "object") {
700
- for (i = 0; candidate = listeners[i]; ++i) {
701
- if (candidate === listener || candidate.__eeOnceListener__ === listener) {
702
- if (listeners.length === 2) data[type] = listeners[i ? 0 : 1];
703
- else listeners.splice(i, 1);
704
- }
705
- }
706
- } else {
707
- if (listeners === listener || listeners.__eeOnceListener__ === listener) {
708
- delete data[type];
709
- }
710
- }
711
- return this;
712
- }, "off");
713
- emit = /* @__PURE__ */ __name(function(type) {
714
- var i, l, listener, listeners, args;
715
- if (!hasOwnProperty2.call(this, "__ee__")) return;
716
- listeners = this.__ee__[type];
717
- if (!listeners) return;
718
- if (typeof listeners === "object") {
719
- l = arguments.length;
720
- args = new Array(l - 1);
721
- for (i = 1; i < l; ++i) args[i - 1] = arguments[i];
722
- listeners = listeners.slice();
723
- for (i = 0; listener = listeners[i]; ++i) {
724
- apply.call(listener, this, args);
725
- }
726
- } else {
727
- switch (arguments.length) {
728
- case 1:
729
- call.call(listeners, this);
730
- break;
731
- case 2:
732
- call.call(listeners, this, arguments[1]);
733
- break;
734
- case 3:
735
- call.call(listeners, this, arguments[1], arguments[2]);
736
- break;
737
- default:
738
- l = arguments.length;
739
- args = new Array(l - 1);
740
- for (i = 1; i < l; ++i) {
741
- args[i - 1] = arguments[i];
742
- }
743
- apply.call(listeners, this, args);
744
- }
745
- }
746
- }, "emit");
747
- methods = {
748
- on,
749
- once,
750
- off,
751
- emit
752
- };
753
- descriptors = {
754
- on: d(on),
755
- once: d(once),
756
- off: d(off),
757
- emit: d(emit)
758
- };
759
- base = defineProperties({}, descriptors);
760
- module.exports = exports$1 = /* @__PURE__ */ __name(function(o) {
761
- return o == null ? create(base) : defineProperties(Object(o), descriptors);
762
- }, "exports");
763
- exports$1.methods = methods;
764
- }
765
- });
766
-
767
- // ../../node_modules/es5-ext/array/from/is-implemented.js
768
- var require_is_implemented5 = __commonJS({
769
- "../../node_modules/es5-ext/array/from/is-implemented.js"(exports$1, module) {
770
- init_esm_shims();
771
- module.exports = function() {
772
- var from = Array.from, arr, result;
773
- if (typeof from !== "function") return false;
774
- arr = [
775
- "raz",
776
- "dwa"
777
- ];
778
- result = from(arr);
779
- return Boolean(result && result !== arr && result[1] === "dwa");
780
- };
781
- }
782
- });
783
-
784
- // ../../node_modules/ext/global-this/is-implemented.js
785
- var require_is_implemented6 = __commonJS({
786
- "../../node_modules/ext/global-this/is-implemented.js"(exports$1, module) {
787
- init_esm_shims();
788
- module.exports = function() {
789
- if (typeof globalThis !== "object") return false;
790
- if (!globalThis) return false;
791
- return globalThis.Array === Array;
792
- };
793
- }
794
- });
795
-
796
- // ../../node_modules/ext/global-this/implementation.js
797
- var require_implementation = __commonJS({
798
- "../../node_modules/ext/global-this/implementation.js"(exports$1, module) {
799
- init_esm_shims();
800
- var naiveFallback = /* @__PURE__ */ __name(function() {
801
- if (typeof self === "object" && self) return self;
802
- if (typeof window === "object" && window) return window;
803
- throw new Error("Unable to resolve global `this`");
804
- }, "naiveFallback");
805
- module.exports = (function() {
806
- if (this) return this;
807
- try {
808
- Object.defineProperty(Object.prototype, "__global__", {
809
- get: /* @__PURE__ */ __name(function() {
810
- return this;
811
- }, "get"),
812
- configurable: true
813
- });
814
- } catch (error) {
815
- return naiveFallback();
816
- }
817
- try {
818
- if (!__global__) return naiveFallback();
819
- return __global__;
820
- } finally {
821
- delete Object.prototype.__global__;
822
- }
823
- })();
824
- }
825
- });
826
-
827
- // ../../node_modules/ext/global-this/index.js
828
- var require_global_this = __commonJS({
829
- "../../node_modules/ext/global-this/index.js"(exports$1, module) {
830
- init_esm_shims();
831
- module.exports = require_is_implemented6()() ? globalThis : require_implementation();
832
- }
833
- });
834
-
835
- // ../../node_modules/es6-symbol/is-implemented.js
836
- var require_is_implemented7 = __commonJS({
837
- "../../node_modules/es6-symbol/is-implemented.js"(exports$1, module) {
838
- init_esm_shims();
839
- var global = require_global_this();
840
- var validTypes = {
841
- object: true,
842
- symbol: true
843
- };
844
- module.exports = function() {
845
- var Symbol2 = global.Symbol;
846
- var symbol;
847
- if (typeof Symbol2 !== "function") return false;
848
- symbol = Symbol2("test symbol");
849
- try {
850
- String(symbol);
851
- } catch (e) {
852
- return false;
853
- }
854
- if (!validTypes[typeof Symbol2.iterator]) return false;
855
- if (!validTypes[typeof Symbol2.toPrimitive]) return false;
856
- if (!validTypes[typeof Symbol2.toStringTag]) return false;
857
- return true;
858
- };
859
- }
860
- });
861
-
862
- // ../../node_modules/es6-symbol/is-symbol.js
863
- var require_is_symbol = __commonJS({
864
- "../../node_modules/es6-symbol/is-symbol.js"(exports$1, module) {
865
- init_esm_shims();
866
- module.exports = function(value) {
867
- if (!value) return false;
868
- if (typeof value === "symbol") return true;
869
- if (!value.constructor) return false;
870
- if (value.constructor.name !== "Symbol") return false;
871
- return value[value.constructor.toStringTag] === "Symbol";
872
- };
873
- }
874
- });
875
-
876
- // ../../node_modules/es6-symbol/validate-symbol.js
877
- var require_validate_symbol = __commonJS({
878
- "../../node_modules/es6-symbol/validate-symbol.js"(exports$1, module) {
879
- init_esm_shims();
880
- var isSymbol2 = require_is_symbol();
881
- module.exports = function(value) {
882
- if (!isSymbol2(value)) throw new TypeError(value + " is not a symbol");
883
- return value;
884
- };
885
- }
886
- });
887
-
888
- // ../../node_modules/es6-symbol/lib/private/generate-name.js
889
- var require_generate_name = __commonJS({
890
- "../../node_modules/es6-symbol/lib/private/generate-name.js"(exports$1, module) {
891
- init_esm_shims();
892
- var d = require_d();
893
- var create = Object.create;
894
- var defineProperty = Object.defineProperty;
895
- var objPrototype = Object.prototype;
896
- var created = create(null);
897
- module.exports = function(desc) {
898
- var postfix = 0, name, ie11BugWorkaround;
899
- while (created[desc + (postfix || "")]) ++postfix;
900
- desc += postfix || "";
901
- created[desc] = true;
902
- name = "@@" + desc;
903
- defineProperty(objPrototype, name, d.gs(null, function(value) {
904
- if (ie11BugWorkaround) return;
905
- ie11BugWorkaround = true;
906
- defineProperty(this, name, d(value));
907
- ie11BugWorkaround = false;
908
- }));
909
- return name;
910
- };
911
- }
912
- });
913
-
914
- // ../../node_modules/es6-symbol/lib/private/setup/standard-symbols.js
915
- var require_standard_symbols = __commonJS({
916
- "../../node_modules/es6-symbol/lib/private/setup/standard-symbols.js"(exports$1, module) {
917
- init_esm_shims();
918
- var d = require_d();
919
- var NativeSymbol = require_global_this().Symbol;
920
- module.exports = function(SymbolPolyfill) {
921
- return Object.defineProperties(SymbolPolyfill, {
922
- // To ensure proper interoperability with other native functions (e.g. Array.from)
923
- // fallback to eventual native implementation of given symbol
924
- hasInstance: d("", NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill("hasInstance")),
925
- isConcatSpreadable: d("", NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill("isConcatSpreadable")),
926
- iterator: d("", NativeSymbol && NativeSymbol.iterator || SymbolPolyfill("iterator")),
927
- match: d("", NativeSymbol && NativeSymbol.match || SymbolPolyfill("match")),
928
- replace: d("", NativeSymbol && NativeSymbol.replace || SymbolPolyfill("replace")),
929
- search: d("", NativeSymbol && NativeSymbol.search || SymbolPolyfill("search")),
930
- species: d("", NativeSymbol && NativeSymbol.species || SymbolPolyfill("species")),
931
- split: d("", NativeSymbol && NativeSymbol.split || SymbolPolyfill("split")),
932
- toPrimitive: d("", NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill("toPrimitive")),
933
- toStringTag: d("", NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill("toStringTag")),
934
- unscopables: d("", NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill("unscopables"))
935
- });
936
- };
937
- }
938
- });
939
-
940
- // ../../node_modules/es6-symbol/lib/private/setup/symbol-registry.js
941
- var require_symbol_registry = __commonJS({
942
- "../../node_modules/es6-symbol/lib/private/setup/symbol-registry.js"(exports$1, module) {
943
- init_esm_shims();
944
- var d = require_d();
945
- var validateSymbol = require_validate_symbol();
946
- var registry = /* @__PURE__ */ Object.create(null);
947
- module.exports = function(SymbolPolyfill) {
948
- return Object.defineProperties(SymbolPolyfill, {
949
- for: d(function(key) {
950
- if (registry[key]) return registry[key];
951
- return registry[key] = SymbolPolyfill(String(key));
952
- }),
953
- keyFor: d(function(symbol) {
954
- var key;
955
- validateSymbol(symbol);
956
- for (key in registry) {
957
- if (registry[key] === symbol) return key;
958
- }
959
- return void 0;
960
- })
961
- });
962
- };
963
- }
964
- });
965
-
966
- // ../../node_modules/es6-symbol/polyfill.js
967
- var require_polyfill = __commonJS({
968
- "../../node_modules/es6-symbol/polyfill.js"(exports$1, module) {
969
- init_esm_shims();
970
- var d = require_d();
971
- var validateSymbol = require_validate_symbol();
972
- var NativeSymbol = require_global_this().Symbol;
973
- var generateName = require_generate_name();
974
- var setupStandardSymbols = require_standard_symbols();
975
- var setupSymbolRegistry = require_symbol_registry();
976
- var create = Object.create;
977
- var defineProperties = Object.defineProperties;
978
- var defineProperty = Object.defineProperty;
979
- var SymbolPolyfill;
980
- var HiddenSymbol;
981
- var isNativeSafe;
982
- if (typeof NativeSymbol === "function") {
983
- try {
984
- String(NativeSymbol());
985
- isNativeSafe = true;
986
- } catch (ignore) {
987
- }
988
- } else {
989
- NativeSymbol = null;
990
- }
991
- HiddenSymbol = /* @__PURE__ */ __name(function Symbol2(description) {
992
- if (this instanceof HiddenSymbol) throw new TypeError("Symbol is not a constructor");
993
- return SymbolPolyfill(description);
994
- }, "Symbol");
995
- module.exports = SymbolPolyfill = /* @__PURE__ */ __name(function Symbol2(description) {
996
- var symbol;
997
- if (this instanceof Symbol2) throw new TypeError("Symbol is not a constructor");
998
- if (isNativeSafe) return NativeSymbol(description);
999
- symbol = create(HiddenSymbol.prototype);
1000
- description = description === void 0 ? "" : String(description);
1001
- return defineProperties(symbol, {
1002
- __description__: d("", description),
1003
- __name__: d("", generateName(description))
1004
- });
1005
- }, "Symbol");
1006
- setupStandardSymbols(SymbolPolyfill);
1007
- setupSymbolRegistry(SymbolPolyfill);
1008
- defineProperties(HiddenSymbol.prototype, {
1009
- constructor: d(SymbolPolyfill),
1010
- toString: d("", function() {
1011
- return this.__name__;
1012
- })
1013
- });
1014
- defineProperties(SymbolPolyfill.prototype, {
1015
- toString: d(function() {
1016
- return "Symbol (" + validateSymbol(this).__description__ + ")";
1017
- }),
1018
- valueOf: d(function() {
1019
- return validateSymbol(this);
1020
- })
1021
- });
1022
- defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d("", function() {
1023
- var symbol = validateSymbol(this);
1024
- if (typeof symbol === "symbol") return symbol;
1025
- return symbol.toString();
1026
- }));
1027
- defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d("c", "Symbol"));
1028
- defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d("c", SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]));
1029
- defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d("c", SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]));
1030
- }
1031
- });
1032
-
1033
- // ../../node_modules/es6-symbol/index.js
1034
- var require_es6_symbol = __commonJS({
1035
- "../../node_modules/es6-symbol/index.js"(exports$1, module) {
1036
- init_esm_shims();
1037
- module.exports = require_is_implemented7()() ? require_global_this().Symbol : require_polyfill();
1038
- }
1039
- });
1040
-
1041
- // ../../node_modules/es5-ext/function/is-arguments.js
1042
- var require_is_arguments = __commonJS({
1043
- "../../node_modules/es5-ext/function/is-arguments.js"(exports$1, module) {
1044
- init_esm_shims();
1045
- var objToString = Object.prototype.toString;
1046
- var id = objToString.call(/* @__PURE__ */ (function() {
1047
- return arguments;
1048
- })());
1049
- module.exports = function(value) {
1050
- return objToString.call(value) === id;
1051
- };
1052
- }
1053
- });
1054
-
1055
- // ../../node_modules/es5-ext/function/is-function.js
1056
- var require_is_function = __commonJS({
1057
- "../../node_modules/es5-ext/function/is-function.js"(exports$1, module) {
1058
- init_esm_shims();
1059
- var objToString = Object.prototype.toString;
1060
- var isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);
1061
- module.exports = function(value) {
1062
- return typeof value === "function" && isFunctionStringTag(objToString.call(value));
1063
- };
1064
- }
1065
- });
1066
-
1067
- // ../../node_modules/es5-ext/string/is-string.js
1068
- var require_is_string = __commonJS({
1069
- "../../node_modules/es5-ext/string/is-string.js"(exports$1, module) {
1070
- init_esm_shims();
1071
- var objToString = Object.prototype.toString;
1072
- var id = objToString.call("");
1073
- module.exports = function(value) {
1074
- return typeof value === "string" || value && typeof value === "object" && (value instanceof String || objToString.call(value) === id) || false;
1075
- };
1076
- }
1077
- });
1078
-
1079
- // ../../node_modules/es5-ext/array/from/shim.js
1080
- var require_shim5 = __commonJS({
1081
- "../../node_modules/es5-ext/array/from/shim.js"(exports$1, module) {
1082
- init_esm_shims();
1083
- var iteratorSymbol = require_es6_symbol().iterator;
1084
- var isArguments = require_is_arguments();
1085
- var isFunction4 = require_is_function();
1086
- var toPosInt = require_to_pos_integer();
1087
- var callable = require_valid_callable();
1088
- var validValue = require_valid_value();
1089
- var isValue = require_is_value();
1090
- var isString = require_is_string();
1091
- var isArray = Array.isArray;
1092
- var call = Function.prototype.call;
1093
- var desc = {
1094
- configurable: true,
1095
- enumerable: true,
1096
- writable: true,
1097
- value: null
1098
- };
1099
- var defineProperty = Object.defineProperty;
1100
- module.exports = function(arrayLike) {
1101
- var mapFn = arguments[1], thisArg = arguments[2], Context, i, j, arr, length, code, iterator, result, getIterator, value;
1102
- arrayLike = Object(validValue(arrayLike));
1103
- if (isValue(mapFn)) callable(mapFn);
1104
- if (!this || this === Array || !isFunction4(this)) {
1105
- if (!mapFn) {
1106
- if (isArguments(arrayLike)) {
1107
- length = arrayLike.length;
1108
- if (length !== 1) return Array.apply(null, arrayLike);
1109
- arr = new Array(1);
1110
- arr[0] = arrayLike[0];
1111
- return arr;
1112
- }
1113
- if (isArray(arrayLike)) {
1114
- arr = new Array(length = arrayLike.length);
1115
- for (i = 0; i < length; ++i) arr[i] = arrayLike[i];
1116
- return arr;
1117
- }
1118
- }
1119
- arr = [];
1120
- } else {
1121
- Context = this;
1122
- }
1123
- if (!isArray(arrayLike)) {
1124
- if ((getIterator = arrayLike[iteratorSymbol]) !== void 0) {
1125
- iterator = callable(getIterator).call(arrayLike);
1126
- if (Context) arr = new Context();
1127
- result = iterator.next();
1128
- i = 0;
1129
- while (!result.done) {
1130
- value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value;
1131
- if (Context) {
1132
- desc.value = value;
1133
- defineProperty(arr, i, desc);
1134
- } else {
1135
- arr[i] = value;
1136
- }
1137
- result = iterator.next();
1138
- ++i;
1139
- }
1140
- length = i;
1141
- } else if (isString(arrayLike)) {
1142
- length = arrayLike.length;
1143
- if (Context) arr = new Context();
1144
- for (i = 0, j = 0; i < length; ++i) {
1145
- value = arrayLike[i];
1146
- if (i + 1 < length) {
1147
- code = value.charCodeAt(0);
1148
- if (code >= 55296 && code <= 56319) value += arrayLike[++i];
1149
- }
1150
- value = mapFn ? call.call(mapFn, thisArg, value, j) : value;
1151
- if (Context) {
1152
- desc.value = value;
1153
- defineProperty(arr, j, desc);
1154
- } else {
1155
- arr[j] = value;
1156
- }
1157
- ++j;
1158
- }
1159
- length = j;
1160
- }
1161
- }
1162
- if (length === void 0) {
1163
- length = toPosInt(arrayLike.length);
1164
- if (Context) arr = new Context(length);
1165
- for (i = 0; i < length; ++i) {
1166
- value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i];
1167
- if (Context) {
1168
- desc.value = value;
1169
- defineProperty(arr, i, desc);
1170
- } else {
1171
- arr[i] = value;
1172
- }
1173
- }
1174
- }
1175
- if (Context) {
1176
- desc.value = null;
1177
- arr.length = length;
1178
- }
1179
- return arr;
1180
- };
1181
- }
1182
- });
1183
-
1184
- // ../../node_modules/es5-ext/array/from/index.js
1185
- var require_from = __commonJS({
1186
- "../../node_modules/es5-ext/array/from/index.js"(exports$1, module) {
1187
- init_esm_shims();
1188
- module.exports = require_is_implemented5()() ? Array.from : require_shim5();
1189
- }
1190
- });
1191
-
1192
- // ../../node_modules/es5-ext/array/to-array.js
1193
- var require_to_array = __commonJS({
1194
- "../../node_modules/es5-ext/array/to-array.js"(exports$1, module) {
1195
- init_esm_shims();
1196
- var from = require_from();
1197
- var isArray = Array.isArray;
1198
- module.exports = function(arrayLike) {
1199
- return isArray(arrayLike) ? arrayLike : from(arrayLike);
1200
- };
1201
- }
1202
- });
1203
-
1204
- // ../../node_modules/memoizee/lib/resolve-resolve.js
1205
- var require_resolve_resolve = __commonJS({
1206
- "../../node_modules/memoizee/lib/resolve-resolve.js"(exports$1, module) {
1207
- init_esm_shims();
1208
- var toArray = require_to_array();
1209
- var isValue = require_is_value();
1210
- var callable = require_valid_callable();
1211
- var slice = Array.prototype.slice;
1212
- var resolveArgs;
1213
- resolveArgs = /* @__PURE__ */ __name(function(args) {
1214
- return this.map(function(resolve, i) {
1215
- return resolve ? resolve(args[i]) : args[i];
1216
- }).concat(slice.call(args, this.length));
1217
- }, "resolveArgs");
1218
- module.exports = function(resolvers) {
1219
- resolvers = toArray(resolvers);
1220
- resolvers.forEach(function(resolve) {
1221
- if (isValue(resolve)) callable(resolve);
1222
- });
1223
- return resolveArgs.bind(resolvers);
1224
- };
1225
- }
1226
- });
1227
-
1228
- // ../../node_modules/memoizee/lib/resolve-normalize.js
1229
- var require_resolve_normalize = __commonJS({
1230
- "../../node_modules/memoizee/lib/resolve-normalize.js"(exports$1, module) {
1231
- init_esm_shims();
1232
- var callable = require_valid_callable();
1233
- module.exports = function(userNormalizer) {
1234
- var normalizer;
1235
- if (typeof userNormalizer === "function") return {
1236
- set: userNormalizer,
1237
- get: userNormalizer
1238
- };
1239
- normalizer = {
1240
- get: callable(userNormalizer.get)
1241
- };
1242
- if (userNormalizer.set !== void 0) {
1243
- normalizer.set = callable(userNormalizer.set);
1244
- if (userNormalizer.delete) normalizer.delete = callable(userNormalizer.delete);
1245
- if (userNormalizer.clear) normalizer.clear = callable(userNormalizer.clear);
1246
- return normalizer;
1247
- }
1248
- normalizer.set = normalizer.get;
1249
- return normalizer;
1250
- };
1251
- }
1252
- });
1253
-
1254
- // ../../node_modules/memoizee/lib/configure-map.js
1255
- var require_configure_map = __commonJS({
1256
- "../../node_modules/memoizee/lib/configure-map.js"(exports$1, module) {
1257
- init_esm_shims();
1258
- var customError = require_custom();
1259
- var defineLength = require_define_length();
1260
- var d = require_d();
1261
- var ee = require_event_emitter().methods;
1262
- var resolveResolve = require_resolve_resolve();
1263
- var resolveNormalize = require_resolve_normalize();
1264
- var apply = Function.prototype.apply;
1265
- var call = Function.prototype.call;
1266
- var create = Object.create;
1267
- var defineProperties = Object.defineProperties;
1268
- var on = ee.on;
1269
- var emit = ee.emit;
1270
- module.exports = function(original, length, options) {
1271
- var cache = create(null), conf, memLength, get, set, del, clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;
1272
- if (length !== false) memLength = length;
1273
- else if (isNaN(original.length)) memLength = 1;
1274
- else memLength = original.length;
1275
- if (options.normalizer) {
1276
- normalizer = resolveNormalize(options.normalizer);
1277
- get = normalizer.get;
1278
- set = normalizer.set;
1279
- del = normalizer.delete;
1280
- clear = normalizer.clear;
1281
- }
1282
- if (options.resolvers != null) resolve = resolveResolve(options.resolvers);
1283
- if (get) {
1284
- memoized = defineLength(function(arg) {
1285
- var id, result, args = arguments;
1286
- if (resolve) args = resolve(args);
1287
- id = get(args);
1288
- if (id !== null) {
1289
- if (hasOwnProperty.call(cache, id)) {
1290
- if (getListeners) conf.emit("get", id, args, this);
1291
- return cache[id];
1292
- }
1293
- }
1294
- if (args.length === 1) result = call.call(original, this, args[0]);
1295
- else result = apply.call(original, this, args);
1296
- if (id === null) {
1297
- id = get(args);
1298
- if (id !== null) throw customError("Circular invocation", "CIRCULAR_INVOCATION");
1299
- id = set(args);
1300
- } else if (hasOwnProperty.call(cache, id)) {
1301
- throw customError("Circular invocation", "CIRCULAR_INVOCATION");
1302
- }
1303
- cache[id] = result;
1304
- if (setListeners) conf.emit("set", id, null, result);
1305
- return result;
1306
- }, memLength);
1307
- } else if (length === 0) {
1308
- memoized = /* @__PURE__ */ __name(function() {
1309
- var result;
1310
- if (hasOwnProperty.call(cache, "data")) {
1311
- if (getListeners) conf.emit("get", "data", arguments, this);
1312
- return cache.data;
1313
- }
1314
- if (arguments.length) result = apply.call(original, this, arguments);
1315
- else result = call.call(original, this);
1316
- if (hasOwnProperty.call(cache, "data")) {
1317
- throw customError("Circular invocation", "CIRCULAR_INVOCATION");
1318
- }
1319
- cache.data = result;
1320
- if (setListeners) conf.emit("set", "data", null, result);
1321
- return result;
1322
- }, "memoized");
1323
- } else {
1324
- memoized = /* @__PURE__ */ __name(function(arg) {
1325
- var result, args = arguments, id;
1326
- if (resolve) args = resolve(arguments);
1327
- id = String(args[0]);
1328
- if (hasOwnProperty.call(cache, id)) {
1329
- if (getListeners) conf.emit("get", id, args, this);
1330
- return cache[id];
1331
- }
1332
- if (args.length === 1) result = call.call(original, this, args[0]);
1333
- else result = apply.call(original, this, args);
1334
- if (hasOwnProperty.call(cache, id)) {
1335
- throw customError("Circular invocation", "CIRCULAR_INVOCATION");
1336
- }
1337
- cache[id] = result;
1338
- if (setListeners) conf.emit("set", id, null, result);
1339
- return result;
1340
- }, "memoized");
1341
- }
1342
- conf = {
1343
- original,
1344
- memoized,
1345
- profileName: options.profileName,
1346
- get: /* @__PURE__ */ __name(function(args) {
1347
- if (resolve) args = resolve(args);
1348
- if (get) return get(args);
1349
- return String(args[0]);
1350
- }, "get"),
1351
- has: /* @__PURE__ */ __name(function(id) {
1352
- return hasOwnProperty.call(cache, id);
1353
- }, "has"),
1354
- delete: /* @__PURE__ */ __name(function(id) {
1355
- var result;
1356
- if (!hasOwnProperty.call(cache, id)) return;
1357
- if (del) del(id);
1358
- result = cache[id];
1359
- delete cache[id];
1360
- if (deleteListeners) conf.emit("delete", id, result);
1361
- }, "delete"),
1362
- clear: /* @__PURE__ */ __name(function() {
1363
- var oldCache = cache;
1364
- if (clear) clear();
1365
- cache = create(null);
1366
- conf.emit("clear", oldCache);
1367
- }, "clear"),
1368
- on: /* @__PURE__ */ __name(function(type, listener) {
1369
- if (type === "get") getListeners = true;
1370
- else if (type === "set") setListeners = true;
1371
- else if (type === "delete") deleteListeners = true;
1372
- return on.call(this, type, listener);
1373
- }, "on"),
1374
- emit,
1375
- updateEnv: /* @__PURE__ */ __name(function() {
1376
- original = conf.original;
1377
- }, "updateEnv")
1378
- };
1379
- if (get) {
1380
- extDel = defineLength(function(arg) {
1381
- var id, args = arguments;
1382
- if (resolve) args = resolve(args);
1383
- id = get(args);
1384
- if (id === null) return;
1385
- conf.delete(id);
1386
- }, memLength);
1387
- } else if (length === 0) {
1388
- extDel = /* @__PURE__ */ __name(function() {
1389
- return conf.delete("data");
1390
- }, "extDel");
1391
- } else {
1392
- extDel = /* @__PURE__ */ __name(function(arg) {
1393
- if (resolve) arg = resolve(arguments)[0];
1394
- return conf.delete(arg);
1395
- }, "extDel");
1396
- }
1397
- extGet = defineLength(function() {
1398
- var id, args = arguments;
1399
- if (length === 0) return cache.data;
1400
- if (resolve) args = resolve(args);
1401
- if (get) id = get(args);
1402
- else id = String(args[0]);
1403
- return cache[id];
1404
- });
1405
- extHas = defineLength(function() {
1406
- var id, args = arguments;
1407
- if (length === 0) return conf.has("data");
1408
- if (resolve) args = resolve(args);
1409
- if (get) id = get(args);
1410
- else id = String(args[0]);
1411
- if (id === null) return false;
1412
- return conf.has(id);
1413
- });
1414
- defineProperties(memoized, {
1415
- __memoized__: d(true),
1416
- delete: d(extDel),
1417
- clear: d(conf.clear),
1418
- _get: d(extGet),
1419
- _has: d(extHas)
1420
- });
1421
- return conf;
1422
- };
1423
- }
1424
- });
1425
-
1426
- // ../../node_modules/memoizee/plain.js
1427
- var require_plain = __commonJS({
1428
- "../../node_modules/memoizee/plain.js"(exports$1, module) {
1429
- init_esm_shims();
1430
- var callable = require_valid_callable();
1431
- var forEach = require_for_each();
1432
- var extensions = require_registered_extensions();
1433
- var configure = require_configure_map();
1434
- var resolveLength = require_resolve_length();
1435
- module.exports = /* @__PURE__ */ __name(function self2(fn) {
1436
- var options, length, conf;
1437
- callable(fn);
1438
- options = Object(arguments[1]);
1439
- if (options.async && options.promise) {
1440
- throw new Error("Options 'async' and 'promise' cannot be used together");
1441
- }
1442
- if (hasOwnProperty.call(fn, "__memoized__") && !options.force) return fn;
1443
- length = resolveLength(options.length, fn.length, options.async && extensions.async);
1444
- conf = configure(fn, length, options);
1445
- forEach(extensions, function(extFn, name) {
1446
- if (options[name]) extFn(options[name], conf, options);
1447
- });
1448
- if (self2.__profiler__) self2.__profiler__(conf);
1449
- conf.updateEnv();
1450
- return conf.memoized;
1451
- }, "self");
1452
- }
1453
- });
1454
-
1455
- // ../../node_modules/memoizee/normalizers/primitive.js
1456
- var require_primitive = __commonJS({
1457
- "../../node_modules/memoizee/normalizers/primitive.js"(exports$1, module) {
1458
- init_esm_shims();
1459
- module.exports = function(args) {
1460
- var id, i, length = args.length;
1461
- if (!length) return "";
1462
- id = String(args[i = 0]);
1463
- while (--length) id += "" + args[++i];
1464
- return id;
1465
- };
1466
- }
1467
- });
1468
-
1469
- // ../../node_modules/memoizee/normalizers/get-primitive-fixed.js
1470
- var require_get_primitive_fixed = __commonJS({
1471
- "../../node_modules/memoizee/normalizers/get-primitive-fixed.js"(exports$1, module) {
1472
- init_esm_shims();
1473
- module.exports = function(length) {
1474
- if (!length) {
1475
- return function() {
1476
- return "";
1477
- };
1478
- }
1479
- return function(args) {
1480
- var id = String(args[0]), i = 0, currentLength = length;
1481
- while (--currentLength) {
1482
- id += "" + args[++i];
1483
- }
1484
- return id;
1485
- };
1486
- };
1487
- }
1488
- });
1489
-
1490
- // ../../node_modules/es5-ext/number/is-nan/is-implemented.js
1491
- var require_is_implemented8 = __commonJS({
1492
- "../../node_modules/es5-ext/number/is-nan/is-implemented.js"(exports$1, module) {
1493
- init_esm_shims();
1494
- module.exports = function() {
1495
- var numberIsNaN = Number.isNaN;
1496
- if (typeof numberIsNaN !== "function") return false;
1497
- return !numberIsNaN({}) && numberIsNaN(NaN) && !numberIsNaN(34);
1498
- };
1499
- }
1500
- });
1501
-
1502
- // ../../node_modules/es5-ext/number/is-nan/shim.js
1503
- var require_shim6 = __commonJS({
1504
- "../../node_modules/es5-ext/number/is-nan/shim.js"(exports$1, module) {
1505
- init_esm_shims();
1506
- module.exports = function(value) {
1507
- return value !== value;
1508
- };
1509
- }
1510
- });
1511
-
1512
- // ../../node_modules/es5-ext/number/is-nan/index.js
1513
- var require_is_nan = __commonJS({
1514
- "../../node_modules/es5-ext/number/is-nan/index.js"(exports$1, module) {
1515
- init_esm_shims();
1516
- module.exports = require_is_implemented8()() ? Number.isNaN : require_shim6();
1517
- }
1518
- });
1519
-
1520
- // ../../node_modules/es5-ext/array/#/e-index-of.js
1521
- var require_e_index_of = __commonJS({
1522
- "../../node_modules/es5-ext/array/#/e-index-of.js"(exports$1, module) {
1523
- init_esm_shims();
1524
- var numberIsNaN = require_is_nan();
1525
- var toPosInt = require_to_pos_integer();
1526
- var value = require_valid_value();
1527
- var indexOf = Array.prototype.indexOf;
1528
- var objHasOwnProperty = Object.prototype.hasOwnProperty;
1529
- var abs = Math.abs;
1530
- var floor = Math.floor;
1531
- module.exports = function(searchElement) {
1532
- var i, length, fromIndex, val;
1533
- if (!numberIsNaN(searchElement)) return indexOf.apply(this, arguments);
1534
- length = toPosInt(value(this).length);
1535
- fromIndex = arguments[1];
1536
- if (isNaN(fromIndex)) fromIndex = 0;
1537
- else if (fromIndex >= 0) fromIndex = floor(fromIndex);
1538
- else fromIndex = toPosInt(this.length) - floor(abs(fromIndex));
1539
- for (i = fromIndex; i < length; ++i) {
1540
- if (objHasOwnProperty.call(this, i)) {
1541
- val = this[i];
1542
- if (numberIsNaN(val)) return i;
1543
- }
1544
- }
1545
- return -1;
1546
- };
1547
- }
1548
- });
1549
-
1550
- // ../../node_modules/memoizee/normalizers/get.js
1551
- var require_get = __commonJS({
1552
- "../../node_modules/memoizee/normalizers/get.js"(exports$1, module) {
1553
- init_esm_shims();
1554
- var indexOf = require_e_index_of();
1555
- var create = Object.create;
1556
- module.exports = function() {
1557
- var lastId = 0, map = [], cache = create(null);
1558
- return {
1559
- get: /* @__PURE__ */ __name(function(args) {
1560
- var index = 0, set = map, i, length = args.length;
1561
- if (length === 0) return set[length] || null;
1562
- if (set = set[length]) {
1563
- while (index < length - 1) {
1564
- i = indexOf.call(set[0], args[index]);
1565
- if (i === -1) return null;
1566
- set = set[1][i];
1567
- ++index;
1568
- }
1569
- i = indexOf.call(set[0], args[index]);
1570
- if (i === -1) return null;
1571
- return set[1][i] || null;
1572
- }
1573
- return null;
1574
- }, "get"),
1575
- set: /* @__PURE__ */ __name(function(args) {
1576
- var index = 0, set = map, i, length = args.length;
1577
- if (length === 0) {
1578
- set[length] = ++lastId;
1579
- } else {
1580
- if (!set[length]) {
1581
- set[length] = [
1582
- [],
1583
- []
1584
- ];
1585
- }
1586
- set = set[length];
1587
- while (index < length - 1) {
1588
- i = indexOf.call(set[0], args[index]);
1589
- if (i === -1) {
1590
- i = set[0].push(args[index]) - 1;
1591
- set[1].push([
1592
- [],
1593
- []
1594
- ]);
1595
- }
1596
- set = set[1][i];
1597
- ++index;
1598
- }
1599
- i = indexOf.call(set[0], args[index]);
1600
- if (i === -1) {
1601
- i = set[0].push(args[index]) - 1;
1602
- }
1603
- set[1][i] = ++lastId;
1604
- }
1605
- cache[lastId] = args;
1606
- return lastId;
1607
- }, "set"),
1608
- delete: /* @__PURE__ */ __name(function(id) {
1609
- var index = 0, set = map, i, args = cache[id], length = args.length, path = [];
1610
- if (length === 0) {
1611
- delete set[length];
1612
- } else if (set = set[length]) {
1613
- while (index < length - 1) {
1614
- i = indexOf.call(set[0], args[index]);
1615
- if (i === -1) {
1616
- return;
1617
- }
1618
- path.push(set, i);
1619
- set = set[1][i];
1620
- ++index;
1621
- }
1622
- i = indexOf.call(set[0], args[index]);
1623
- if (i === -1) {
1624
- return;
1625
- }
1626
- id = set[1][i];
1627
- set[0].splice(i, 1);
1628
- set[1].splice(i, 1);
1629
- while (!set[0].length && path.length) {
1630
- i = path.pop();
1631
- set = path.pop();
1632
- set[0].splice(i, 1);
1633
- set[1].splice(i, 1);
1634
- }
1635
- }
1636
- delete cache[id];
1637
- }, "delete"),
1638
- clear: /* @__PURE__ */ __name(function() {
1639
- map = [];
1640
- cache = create(null);
1641
- }, "clear")
1642
- };
1643
- };
1644
- }
1645
- });
1646
-
1647
- // ../../node_modules/memoizee/normalizers/get-1.js
1648
- var require_get_1 = __commonJS({
1649
- "../../node_modules/memoizee/normalizers/get-1.js"(exports$1, module) {
1650
- init_esm_shims();
1651
- var indexOf = require_e_index_of();
1652
- module.exports = function() {
1653
- var lastId = 0, argsMap = [], cache = [];
1654
- return {
1655
- get: /* @__PURE__ */ __name(function(args) {
1656
- var index = indexOf.call(argsMap, args[0]);
1657
- return index === -1 ? null : cache[index];
1658
- }, "get"),
1659
- set: /* @__PURE__ */ __name(function(args) {
1660
- argsMap.push(args[0]);
1661
- cache.push(++lastId);
1662
- return lastId;
1663
- }, "set"),
1664
- delete: /* @__PURE__ */ __name(function(id) {
1665
- var index = indexOf.call(cache, id);
1666
- if (index !== -1) {
1667
- argsMap.splice(index, 1);
1668
- cache.splice(index, 1);
1669
- }
1670
- }, "delete"),
1671
- clear: /* @__PURE__ */ __name(function() {
1672
- argsMap = [];
1673
- cache = [];
1674
- }, "clear")
1675
- };
1676
- };
1677
- }
1678
- });
1679
-
1680
- // ../../node_modules/memoizee/normalizers/get-fixed.js
1681
- var require_get_fixed = __commonJS({
1682
- "../../node_modules/memoizee/normalizers/get-fixed.js"(exports$1, module) {
1683
- init_esm_shims();
1684
- var indexOf = require_e_index_of();
1685
- var create = Object.create;
1686
- module.exports = function(length) {
1687
- var lastId = 0, map = [
1688
- [],
1689
- []
1690
- ], cache = create(null);
1691
- return {
1692
- get: /* @__PURE__ */ __name(function(args) {
1693
- var index = 0, set = map, i;
1694
- while (index < length - 1) {
1695
- i = indexOf.call(set[0], args[index]);
1696
- if (i === -1) return null;
1697
- set = set[1][i];
1698
- ++index;
1699
- }
1700
- i = indexOf.call(set[0], args[index]);
1701
- if (i === -1) return null;
1702
- return set[1][i] || null;
1703
- }, "get"),
1704
- set: /* @__PURE__ */ __name(function(args) {
1705
- var index = 0, set = map, i;
1706
- while (index < length - 1) {
1707
- i = indexOf.call(set[0], args[index]);
1708
- if (i === -1) {
1709
- i = set[0].push(args[index]) - 1;
1710
- set[1].push([
1711
- [],
1712
- []
1713
- ]);
1714
- }
1715
- set = set[1][i];
1716
- ++index;
1717
- }
1718
- i = indexOf.call(set[0], args[index]);
1719
- if (i === -1) {
1720
- i = set[0].push(args[index]) - 1;
1721
- }
1722
- set[1][i] = ++lastId;
1723
- cache[lastId] = args;
1724
- return lastId;
1725
- }, "set"),
1726
- delete: /* @__PURE__ */ __name(function(id) {
1727
- var index = 0, set = map, i, path = [], args = cache[id];
1728
- while (index < length - 1) {
1729
- i = indexOf.call(set[0], args[index]);
1730
- if (i === -1) {
1731
- return;
1732
- }
1733
- path.push(set, i);
1734
- set = set[1][i];
1735
- ++index;
1736
- }
1737
- i = indexOf.call(set[0], args[index]);
1738
- if (i === -1) {
1739
- return;
1740
- }
1741
- id = set[1][i];
1742
- set[0].splice(i, 1);
1743
- set[1].splice(i, 1);
1744
- while (!set[0].length && path.length) {
1745
- i = path.pop();
1746
- set = path.pop();
1747
- set[0].splice(i, 1);
1748
- set[1].splice(i, 1);
1749
- }
1750
- delete cache[id];
1751
- }, "delete"),
1752
- clear: /* @__PURE__ */ __name(function() {
1753
- map = [
1754
- [],
1755
- []
1756
- ];
1757
- cache = create(null);
1758
- }, "clear")
1759
- };
1760
- };
1761
- }
1762
- });
1763
-
1764
- // ../../node_modules/es5-ext/object/map.js
1765
- var require_map = __commonJS({
1766
- "../../node_modules/es5-ext/object/map.js"(exports$1, module) {
1767
- init_esm_shims();
1768
- var callable = require_valid_callable();
1769
- var forEach = require_for_each();
1770
- var call = Function.prototype.call;
1771
- module.exports = function(obj, cb) {
1772
- var result = {}, thisArg = arguments[2];
1773
- callable(cb);
1774
- forEach(obj, function(value, key, targetObj, index) {
1775
- result[key] = call.call(cb, thisArg, value, key, targetObj, index);
1776
- });
1777
- return result;
1778
- };
1779
- }
1780
- });
1781
-
1782
- // ../../node_modules/next-tick/index.js
1783
- var require_next_tick = __commonJS({
1784
- "../../node_modules/next-tick/index.js"(exports$1, module) {
1785
- init_esm_shims();
1786
- var ensureCallable = /* @__PURE__ */ __name(function(fn) {
1787
- if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
1788
- return fn;
1789
- }, "ensureCallable");
1790
- var byObserver = /* @__PURE__ */ __name(function(Observer) {
1791
- var node = document.createTextNode(""), queue, currentQueue, i = 0;
1792
- new Observer(function() {
1793
- var callback;
1794
- if (!queue) {
1795
- if (!currentQueue) return;
1796
- queue = currentQueue;
1797
- } else if (currentQueue) {
1798
- queue = currentQueue.concat(queue);
1799
- }
1800
- currentQueue = queue;
1801
- queue = null;
1802
- if (typeof currentQueue === "function") {
1803
- callback = currentQueue;
1804
- currentQueue = null;
1805
- callback();
1806
- return;
1807
- }
1808
- node.data = i = ++i % 2;
1809
- while (currentQueue) {
1810
- callback = currentQueue.shift();
1811
- if (!currentQueue.length) currentQueue = null;
1812
- callback();
1813
- }
1814
- }).observe(node, {
1815
- characterData: true
1816
- });
1817
- return function(fn) {
1818
- ensureCallable(fn);
1819
- if (queue) {
1820
- if (typeof queue === "function") queue = [
1821
- queue,
1822
- fn
1823
- ];
1824
- else queue.push(fn);
1825
- return;
1826
- }
1827
- queue = fn;
1828
- node.data = i = ++i % 2;
1829
- };
1830
- }, "byObserver");
1831
- module.exports = (function() {
1832
- if (typeof process === "object" && process && typeof process.nextTick === "function") {
1833
- return process.nextTick;
1834
- }
1835
- if (typeof queueMicrotask === "function") {
1836
- return function(cb) {
1837
- queueMicrotask(ensureCallable(cb));
1838
- };
1839
- }
1840
- if (typeof document === "object" && document) {
1841
- if (typeof MutationObserver === "function") return byObserver(MutationObserver);
1842
- if (typeof WebKitMutationObserver === "function") return byObserver(WebKitMutationObserver);
1843
- }
1844
- if (typeof setImmediate === "function") {
1845
- return function(cb) {
1846
- setImmediate(ensureCallable(cb));
1847
- };
1848
- }
1849
- if (typeof setTimeout === "function" || typeof setTimeout === "object") {
1850
- return function(cb) {
1851
- setTimeout(ensureCallable(cb), 0);
1852
- };
1853
- }
1854
- return null;
1855
- })();
1856
- }
1857
- });
1858
-
1859
- // ../../node_modules/memoizee/ext/async.js
1860
- var require_async = __commonJS({
1861
- "../../node_modules/memoizee/ext/async.js"() {
1862
- init_esm_shims();
1863
- var aFrom = require_from();
1864
- var objectMap = require_map();
1865
- var mixin = require_mixin();
1866
- var defineLength = require_define_length();
1867
- var nextTick = require_next_tick();
1868
- var slice = Array.prototype.slice;
1869
- var apply = Function.prototype.apply;
1870
- var create = Object.create;
1871
- require_registered_extensions().async = function(tbi, conf) {
1872
- var waiting = create(null), cache = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;
1873
- conf.memoized = defineLength(function(arg) {
1874
- var args = arguments, last = args[args.length - 1];
1875
- if (typeof last === "function") {
1876
- currentCallback = last;
1877
- args = slice.call(args, 0, -1);
1878
- }
1879
- return base.apply(currentContext = this, currentArgs = args);
1880
- }, base);
1881
- try {
1882
- mixin(conf.memoized, base);
1883
- } catch (ignore) {
1884
- }
1885
- conf.on("get", function(id) {
1886
- var cb, context, args;
1887
- if (!currentCallback) return;
1888
- if (waiting[id]) {
1889
- if (typeof waiting[id] === "function") waiting[id] = [
1890
- waiting[id],
1891
- currentCallback
1892
- ];
1893
- else waiting[id].push(currentCallback);
1894
- currentCallback = null;
1895
- return;
1896
- }
1897
- cb = currentCallback;
1898
- context = currentContext;
1899
- args = currentArgs;
1900
- currentCallback = currentContext = currentArgs = null;
1901
- nextTick(function() {
1902
- var data;
1903
- if (hasOwnProperty.call(cache, id)) {
1904
- data = cache[id];
1905
- conf.emit("getasync", id, args, context);
1906
- apply.call(cb, data.context, data.args);
1907
- } else {
1908
- currentCallback = cb;
1909
- currentContext = context;
1910
- currentArgs = args;
1911
- base.apply(context, args);
1912
- }
1913
- });
1914
- });
1915
- conf.original = function() {
1916
- var args, cb, origCb, result;
1917
- if (!currentCallback) return apply.call(original, this, arguments);
1918
- args = aFrom(arguments);
1919
- cb = /* @__PURE__ */ __name(function self2(err) {
1920
- var cb2, args2, id = self2.id;
1921
- if (id == null) {
1922
- nextTick(apply.bind(self2, this, arguments));
1923
- return void 0;
1924
- }
1925
- delete self2.id;
1926
- cb2 = waiting[id];
1927
- delete waiting[id];
1928
- if (!cb2) {
1929
- return void 0;
1930
- }
1931
- args2 = aFrom(arguments);
1932
- if (conf.has(id)) {
1933
- if (err) {
1934
- conf.delete(id);
1935
- } else {
1936
- cache[id] = {
1937
- context: this,
1938
- args: args2
1939
- };
1940
- conf.emit("setasync", id, typeof cb2 === "function" ? 1 : cb2.length);
1941
- }
1942
- }
1943
- if (typeof cb2 === "function") {
1944
- result = apply.call(cb2, this, args2);
1945
- } else {
1946
- cb2.forEach(function(cb3) {
1947
- result = apply.call(cb3, this, args2);
1948
- }, this);
1949
- }
1950
- return result;
1951
- }, "self");
1952
- origCb = currentCallback;
1953
- currentCallback = currentContext = currentArgs = null;
1954
- args.push(cb);
1955
- result = apply.call(original, this, args);
1956
- cb.cb = origCb;
1957
- currentCallback = cb;
1958
- return result;
1959
- };
1960
- conf.on("set", function(id) {
1961
- if (!currentCallback) {
1962
- conf.delete(id);
1963
- return;
1964
- }
1965
- if (waiting[id]) {
1966
- if (typeof waiting[id] === "function") waiting[id] = [
1967
- waiting[id],
1968
- currentCallback.cb
1969
- ];
1970
- else waiting[id].push(currentCallback.cb);
1971
- } else {
1972
- waiting[id] = currentCallback.cb;
1973
- }
1974
- delete currentCallback.cb;
1975
- currentCallback.id = id;
1976
- currentCallback = null;
1977
- });
1978
- conf.on("delete", function(id) {
1979
- var result;
1980
- if (hasOwnProperty.call(waiting, id)) return;
1981
- if (!cache[id]) return;
1982
- result = cache[id];
1983
- delete cache[id];
1984
- conf.emit("deleteasync", id, slice.call(result.args, 1));
1985
- });
1986
- conf.on("clear", function() {
1987
- var oldCache = cache;
1988
- cache = create(null);
1989
- conf.emit("clearasync", objectMap(oldCache, function(data) {
1990
- return slice.call(data.args, 1);
1991
- }));
1992
- });
1993
- };
1994
- }
1995
- });
1996
-
1997
- // ../../node_modules/es5-ext/object/primitive-set.js
1998
- var require_primitive_set = __commonJS({
1999
- "../../node_modules/es5-ext/object/primitive-set.js"(exports$1, module) {
2000
- init_esm_shims();
2001
- var forEach = Array.prototype.forEach;
2002
- var create = Object.create;
2003
- module.exports = function(arg) {
2004
- var set = create(null);
2005
- forEach.call(arguments, function(name) {
2006
- set[name] = true;
2007
- });
2008
- return set;
2009
- };
2010
- }
2011
- });
2012
-
2013
- // ../../node_modules/es5-ext/object/is-callable.js
2014
- var require_is_callable = __commonJS({
2015
- "../../node_modules/es5-ext/object/is-callable.js"(exports$1, module) {
2016
- init_esm_shims();
2017
- module.exports = function(obj) {
2018
- return typeof obj === "function";
2019
- };
2020
- }
2021
- });
2022
-
2023
- // ../../node_modules/es5-ext/object/validate-stringifiable.js
2024
- var require_validate_stringifiable = __commonJS({
2025
- "../../node_modules/es5-ext/object/validate-stringifiable.js"(exports$1, module) {
2026
- init_esm_shims();
2027
- var isCallable = require_is_callable();
2028
- module.exports = function(stringifiable) {
2029
- try {
2030
- if (stringifiable && isCallable(stringifiable.toString)) return stringifiable.toString();
2031
- return String(stringifiable);
2032
- } catch (e) {
2033
- throw new TypeError("Passed argument cannot be stringifed");
2034
- }
2035
- };
2036
- }
2037
- });
2038
-
2039
- // ../../node_modules/es5-ext/object/validate-stringifiable-value.js
2040
- var require_validate_stringifiable_value = __commonJS({
2041
- "../../node_modules/es5-ext/object/validate-stringifiable-value.js"(exports$1, module) {
2042
- init_esm_shims();
2043
- var ensureValue = require_valid_value();
2044
- var stringifiable = require_validate_stringifiable();
2045
- module.exports = function(value) {
2046
- return stringifiable(ensureValue(value));
2047
- };
2048
- }
2049
- });
2050
-
2051
- // ../../node_modules/es5-ext/safe-to-string.js
2052
- var require_safe_to_string = __commonJS({
2053
- "../../node_modules/es5-ext/safe-to-string.js"(exports$1, module) {
2054
- init_esm_shims();
2055
- var isCallable = require_is_callable();
2056
- module.exports = function(value) {
2057
- try {
2058
- if (value && isCallable(value.toString)) return value.toString();
2059
- return String(value);
2060
- } catch (e) {
2061
- return "<Non-coercible to string value>";
2062
- }
2063
- };
2064
- }
2065
- });
2066
-
2067
- // ../../node_modules/es5-ext/to-short-string-representation.js
2068
- var require_to_short_string_representation = __commonJS({
2069
- "../../node_modules/es5-ext/to-short-string-representation.js"(exports$1, module) {
2070
- init_esm_shims();
2071
- var safeToString = require_safe_to_string();
2072
- var reNewLine = /[\n\r\u2028\u2029]/g;
2073
- module.exports = function(value) {
2074
- var string = safeToString(value);
2075
- if (string.length > 100) string = string.slice(0, 99) + "\u2026";
2076
- string = string.replace(reNewLine, function(char) {
2077
- return JSON.stringify(char).slice(1, -1);
2078
- });
2079
- return string;
2080
- };
2081
- }
2082
- });
2083
-
2084
- // ../../node_modules/is-promise/index.js
2085
- var require_is_promise = __commonJS({
2086
- "../../node_modules/is-promise/index.js"(exports$1, module) {
2087
- init_esm_shims();
2088
- module.exports = isPromise;
2089
- module.exports.default = isPromise;
2090
- function isPromise(obj) {
2091
- return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
2092
- }
2093
- __name(isPromise, "isPromise");
2094
- }
2095
- });
2096
-
2097
- // ../../node_modules/memoizee/ext/promise.js
2098
- var require_promise = __commonJS({
2099
- "../../node_modules/memoizee/ext/promise.js"() {
2100
- init_esm_shims();
2101
- var objectMap = require_map();
2102
- var primitiveSet = require_primitive_set();
2103
- var ensureString = require_validate_stringifiable_value();
2104
- var toShortString = require_to_short_string_representation();
2105
- var isPromise = require_is_promise();
2106
- var nextTick = require_next_tick();
2107
- var create = Object.create;
2108
- var supportedModes = primitiveSet("then", "then:finally", "done", "done:finally");
2109
- require_registered_extensions().promise = function(mode, conf) {
2110
- var waiting = create(null), cache = create(null), promises = create(null);
2111
- if (mode === true) {
2112
- mode = null;
2113
- } else {
2114
- mode = ensureString(mode);
2115
- if (!supportedModes[mode]) {
2116
- throw new TypeError("'" + toShortString(mode) + "' is not valid promise mode");
2117
- }
2118
- }
2119
- conf.on("set", function(id, ignore, promise) {
2120
- var isFailed = false;
2121
- if (!isPromise(promise)) {
2122
- cache[id] = promise;
2123
- conf.emit("setasync", id, 1);
2124
- return;
2125
- }
2126
- waiting[id] = 1;
2127
- promises[id] = promise;
2128
- var onSuccess = /* @__PURE__ */ __name(function(result) {
2129
- var count = waiting[id];
2130
- if (isFailed) {
2131
- throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");
2132
- }
2133
- if (!count) return;
2134
- delete waiting[id];
2135
- cache[id] = result;
2136
- conf.emit("setasync", id, count);
2137
- }, "onSuccess");
2138
- var onFailure = /* @__PURE__ */ __name(function() {
2139
- isFailed = true;
2140
- if (!waiting[id]) return;
2141
- delete waiting[id];
2142
- delete promises[id];
2143
- conf.delete(id);
2144
- }, "onFailure");
2145
- var resolvedMode = mode;
2146
- if (!resolvedMode) resolvedMode = "then";
2147
- if (resolvedMode === "then") {
2148
- var nextTickFailure = /* @__PURE__ */ __name(function() {
2149
- nextTick(onFailure);
2150
- }, "nextTickFailure");
2151
- promise = promise.then(function(result) {
2152
- nextTick(onSuccess.bind(this, result));
2153
- }, nextTickFailure);
2154
- if (typeof promise.finally === "function") {
2155
- promise.finally(nextTickFailure);
2156
- }
2157
- } else if (resolvedMode === "done") {
2158
- if (typeof promise.done !== "function") {
2159
- throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");
2160
- }
2161
- promise.done(onSuccess, onFailure);
2162
- } else if (resolvedMode === "done:finally") {
2163
- if (typeof promise.done !== "function") {
2164
- throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");
2165
- }
2166
- if (typeof promise.finally !== "function") {
2167
- throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");
2168
- }
2169
- promise.done(onSuccess);
2170
- promise.finally(onFailure);
2171
- }
2172
- });
2173
- conf.on("get", function(id, args, context) {
2174
- var promise;
2175
- if (waiting[id]) {
2176
- ++waiting[id];
2177
- return;
2178
- }
2179
- promise = promises[id];
2180
- var emit = /* @__PURE__ */ __name(function() {
2181
- conf.emit("getasync", id, args, context);
2182
- }, "emit");
2183
- if (isPromise(promise)) {
2184
- if (typeof promise.done === "function") promise.done(emit);
2185
- else {
2186
- promise.then(function() {
2187
- nextTick(emit);
2188
- });
2189
- }
2190
- } else {
2191
- emit();
2192
- }
2193
- });
2194
- conf.on("delete", function(id) {
2195
- delete promises[id];
2196
- if (waiting[id]) {
2197
- delete waiting[id];
2198
- return;
2199
- }
2200
- if (!hasOwnProperty.call(cache, id)) return;
2201
- var result = cache[id];
2202
- delete cache[id];
2203
- conf.emit("deleteasync", id, [
2204
- result
2205
- ]);
2206
- });
2207
- conf.on("clear", function() {
2208
- var oldCache = cache;
2209
- cache = create(null);
2210
- waiting = create(null);
2211
- promises = create(null);
2212
- conf.emit("clearasync", objectMap(oldCache, function(data) {
2213
- return [
2214
- data
2215
- ];
2216
- }));
2217
- });
2218
- };
2219
- }
2220
- });
2221
-
2222
- // ../../node_modules/memoizee/ext/dispose.js
2223
- var require_dispose = __commonJS({
2224
- "../../node_modules/memoizee/ext/dispose.js"() {
2225
- init_esm_shims();
2226
- var callable = require_valid_callable();
2227
- var forEach = require_for_each();
2228
- var extensions = require_registered_extensions();
2229
- var apply = Function.prototype.apply;
2230
- extensions.dispose = function(dispose, conf, options) {
2231
- var del;
2232
- callable(dispose);
2233
- if (options.async && extensions.async || options.promise && extensions.promise) {
2234
- conf.on("deleteasync", del = /* @__PURE__ */ __name(function(id, resultArray) {
2235
- apply.call(dispose, null, resultArray);
2236
- }, "del"));
2237
- conf.on("clearasync", function(cache) {
2238
- forEach(cache, function(result, id) {
2239
- del(id, result);
2240
- });
2241
- });
2242
- return;
2243
- }
2244
- conf.on("delete", del = /* @__PURE__ */ __name(function(id, result) {
2245
- dispose(result);
2246
- }, "del"));
2247
- conf.on("clear", function(cache) {
2248
- forEach(cache, function(result, id) {
2249
- del(id, result);
2250
- });
2251
- });
2252
- };
2253
- }
2254
- });
2255
-
2256
- // ../../node_modules/timers-ext/max-timeout.js
2257
- var require_max_timeout = __commonJS({
2258
- "../../node_modules/timers-ext/max-timeout.js"(exports$1, module) {
2259
- init_esm_shims();
2260
- module.exports = 2147483647;
2261
- }
2262
- });
2263
-
2264
- // ../../node_modules/timers-ext/valid-timeout.js
2265
- var require_valid_timeout = __commonJS({
2266
- "../../node_modules/timers-ext/valid-timeout.js"(exports$1, module) {
2267
- init_esm_shims();
2268
- var toPosInt = require_to_pos_integer();
2269
- var maxTimeout = require_max_timeout();
2270
- module.exports = function(value) {
2271
- value = toPosInt(value);
2272
- if (value > maxTimeout) throw new TypeError(value + " exceeds maximum possible timeout");
2273
- return value;
2274
- };
2275
- }
2276
- });
2277
-
2278
- // ../../node_modules/memoizee/ext/max-age.js
2279
- var require_max_age = __commonJS({
2280
- "../../node_modules/memoizee/ext/max-age.js"() {
2281
- init_esm_shims();
2282
- var aFrom = require_from();
2283
- var forEach = require_for_each();
2284
- var nextTick = require_next_tick();
2285
- var isPromise = require_is_promise();
2286
- var timeout = require_valid_timeout();
2287
- var extensions = require_registered_extensions();
2288
- var noop = Function.prototype;
2289
- var max = Math.max;
2290
- var min = Math.min;
2291
- var create = Object.create;
2292
- extensions.maxAge = function(maxAge, conf, options) {
2293
- var timeouts, postfix, preFetchAge, preFetchTimeouts;
2294
- maxAge = timeout(maxAge);
2295
- if (!maxAge) return;
2296
- timeouts = create(null);
2297
- postfix = options.async && extensions.async || options.promise && extensions.promise ? "async" : "";
2298
- conf.on("set" + postfix, function(id) {
2299
- timeouts[id] = setTimeout(function() {
2300
- conf.delete(id);
2301
- }, maxAge);
2302
- if (typeof timeouts[id].unref === "function") timeouts[id].unref();
2303
- if (!preFetchTimeouts) return;
2304
- if (preFetchTimeouts[id]) {
2305
- if (preFetchTimeouts[id] !== "nextTick") clearTimeout(preFetchTimeouts[id]);
2306
- }
2307
- preFetchTimeouts[id] = setTimeout(function() {
2308
- delete preFetchTimeouts[id];
2309
- }, preFetchAge);
2310
- if (typeof preFetchTimeouts[id].unref === "function") preFetchTimeouts[id].unref();
2311
- });
2312
- conf.on("delete" + postfix, function(id) {
2313
- clearTimeout(timeouts[id]);
2314
- delete timeouts[id];
2315
- if (!preFetchTimeouts) return;
2316
- if (preFetchTimeouts[id] !== "nextTick") clearTimeout(preFetchTimeouts[id]);
2317
- delete preFetchTimeouts[id];
2318
- });
2319
- if (options.preFetch) {
2320
- if (options.preFetch === true || isNaN(options.preFetch)) {
2321
- preFetchAge = 0.333;
2322
- } else {
2323
- preFetchAge = max(min(Number(options.preFetch), 1), 0);
2324
- }
2325
- if (preFetchAge) {
2326
- preFetchTimeouts = {};
2327
- preFetchAge = (1 - preFetchAge) * maxAge;
2328
- conf.on("get" + postfix, function(id, args, context) {
2329
- if (!preFetchTimeouts[id]) {
2330
- preFetchTimeouts[id] = "nextTick";
2331
- nextTick(function() {
2332
- var result;
2333
- if (preFetchTimeouts[id] !== "nextTick") return;
2334
- delete preFetchTimeouts[id];
2335
- conf.delete(id);
2336
- if (options.async) {
2337
- args = aFrom(args);
2338
- args.push(noop);
2339
- }
2340
- result = conf.memoized.apply(context, args);
2341
- if (options.promise) {
2342
- if (isPromise(result)) {
2343
- if (typeof result.done === "function") result.done(noop, noop);
2344
- else result.then(noop, noop);
2345
- }
2346
- }
2347
- });
2348
- }
2349
- });
2350
- }
2351
- }
2352
- conf.on("clear" + postfix, function() {
2353
- forEach(timeouts, function(id) {
2354
- clearTimeout(id);
2355
- });
2356
- timeouts = {};
2357
- if (preFetchTimeouts) {
2358
- forEach(preFetchTimeouts, function(id) {
2359
- if (id !== "nextTick") clearTimeout(id);
2360
- });
2361
- preFetchTimeouts = {};
2362
- }
2363
- });
2364
- };
2365
- }
2366
- });
2367
-
2368
- // ../../node_modules/lru-queue/index.js
2369
- var require_lru_queue = __commonJS({
2370
- "../../node_modules/lru-queue/index.js"(exports$1, module) {
2371
- init_esm_shims();
2372
- var toPosInt = require_to_pos_integer();
2373
- var create = Object.create;
2374
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
2375
- module.exports = function(limit) {
2376
- var size = 0, base = 1, queue = create(null), map = create(null), index = 0, del;
2377
- limit = toPosInt(limit);
2378
- return {
2379
- hit: /* @__PURE__ */ __name(function(id) {
2380
- var oldIndex = map[id], nuIndex = ++index;
2381
- queue[nuIndex] = id;
2382
- map[id] = nuIndex;
2383
- if (!oldIndex) {
2384
- ++size;
2385
- if (size <= limit) return;
2386
- id = queue[base];
2387
- del(id);
2388
- return id;
2389
- }
2390
- delete queue[oldIndex];
2391
- if (base !== oldIndex) return;
2392
- while (!hasOwnProperty2.call(queue, ++base)) continue;
2393
- }, "hit"),
2394
- delete: del = /* @__PURE__ */ __name(function(id) {
2395
- var oldIndex = map[id];
2396
- if (!oldIndex) return;
2397
- delete queue[oldIndex];
2398
- delete map[id];
2399
- --size;
2400
- if (base !== oldIndex) return;
2401
- if (!size) {
2402
- index = 0;
2403
- base = 1;
2404
- return;
2405
- }
2406
- while (!hasOwnProperty2.call(queue, ++base)) continue;
2407
- }, "del"),
2408
- clear: /* @__PURE__ */ __name(function() {
2409
- size = 0;
2410
- base = 1;
2411
- queue = create(null);
2412
- map = create(null);
2413
- index = 0;
2414
- }, "clear")
2415
- };
2416
- };
2417
- }
2418
- });
2419
-
2420
- // ../../node_modules/memoizee/ext/max.js
2421
- var require_max = __commonJS({
2422
- "../../node_modules/memoizee/ext/max.js"() {
2423
- init_esm_shims();
2424
- var toPosInteger = require_to_pos_integer();
2425
- var lruQueue = require_lru_queue();
2426
- var extensions = require_registered_extensions();
2427
- extensions.max = function(max, conf, options) {
2428
- var postfix, queue, hit;
2429
- max = toPosInteger(max);
2430
- if (!max) return;
2431
- queue = lruQueue(max);
2432
- postfix = options.async && extensions.async || options.promise && extensions.promise ? "async" : "";
2433
- conf.on("set" + postfix, hit = /* @__PURE__ */ __name(function(id) {
2434
- id = queue.hit(id);
2435
- if (id === void 0) return;
2436
- conf.delete(id);
2437
- }, "hit"));
2438
- conf.on("get" + postfix, hit);
2439
- conf.on("delete" + postfix, queue.delete);
2440
- conf.on("clear" + postfix, queue.clear);
2441
- };
2442
- }
2443
- });
2444
-
2445
- // ../../node_modules/memoizee/ext/ref-counter.js
2446
- var require_ref_counter = __commonJS({
2447
- "../../node_modules/memoizee/ext/ref-counter.js"() {
2448
- init_esm_shims();
2449
- var d = require_d();
2450
- var extensions = require_registered_extensions();
2451
- var create = Object.create;
2452
- var defineProperties = Object.defineProperties;
2453
- extensions.refCounter = function(ignore, conf, options) {
2454
- var cache, postfix;
2455
- cache = create(null);
2456
- postfix = options.async && extensions.async || options.promise && extensions.promise ? "async" : "";
2457
- conf.on("set" + postfix, function(id, length) {
2458
- cache[id] = length || 1;
2459
- });
2460
- conf.on("get" + postfix, function(id) {
2461
- ++cache[id];
2462
- });
2463
- conf.on("delete" + postfix, function(id) {
2464
- delete cache[id];
2465
- });
2466
- conf.on("clear" + postfix, function() {
2467
- cache = {};
2468
- });
2469
- defineProperties(conf.memoized, {
2470
- deleteRef: d(function() {
2471
- var id = conf.get(arguments);
2472
- if (id === null) return null;
2473
- if (!cache[id]) return null;
2474
- if (!--cache[id]) {
2475
- conf.delete(id);
2476
- return true;
2477
- }
2478
- return false;
2479
- }),
2480
- getRefCount: d(function() {
2481
- var id = conf.get(arguments);
2482
- if (id === null) return 0;
2483
- if (!cache[id]) return 0;
2484
- return cache[id];
2485
- })
2486
- });
2487
- };
2488
- }
2489
- });
2490
-
2491
- // ../../node_modules/memoizee/index.js
2492
- var require_memoizee = __commonJS({
2493
- "../../node_modules/memoizee/index.js"(exports$1, module) {
2494
- init_esm_shims();
2495
- var normalizeOpts = require_normalize_options();
2496
- var resolveLength = require_resolve_length();
2497
- var plain = require_plain();
2498
- module.exports = function(fn) {
2499
- var options = normalizeOpts(arguments[1]), length;
2500
- if (!options.normalizer) {
2501
- length = options.length = resolveLength(options.length, fn.length, options.async);
2502
- if (length !== 0) {
2503
- if (options.primitive) {
2504
- if (length === false) {
2505
- options.normalizer = require_primitive();
2506
- } else if (length > 1) {
2507
- options.normalizer = require_get_primitive_fixed()(length);
2508
- }
2509
- } else if (length === false) options.normalizer = require_get()();
2510
- else if (length === 1) options.normalizer = require_get_1()();
2511
- else options.normalizer = require_get_fixed()(length);
2512
- }
2513
- }
2514
- if (options.async) require_async();
2515
- if (options.promise) require_promise();
2516
- if (options.dispose) require_dispose();
2517
- if (options.maxAge) require_max_age();
2518
- if (options.max) require_max();
2519
- if (options.refCounter) require_ref_counter();
2520
- return plain(fn, options);
2521
- };
2522
- }
2523
- });
2524
-
2525
- // src/index.ts
2526
- init_esm_shims();
2527
-
2528
- // src/Profiler/Profiler.ts
2529
- init_esm_shims();
2530
-
2531
- // src/internal/FunctionProfiler/FunctionProfiler.ts
2532
- init_esm_shims();
2533
11
  var FunctionProfiler = class _FunctionProfiler {
2534
12
  static {
2535
13
  __name(this, "FunctionProfiler");
@@ -2602,20 +80,7 @@ var FunctionProfiler = class _FunctionProfiler {
2602
80
  }
2603
81
  };
2604
82
 
2605
- // src/internal/ProfilerFactory/ModuleMethodProfilerFactory.ts
2606
- init_esm_shims();
2607
-
2608
- // src/internal/FunctionIdentifier/ModuleMethodIdentifier.ts
2609
- init_esm_shims();
2610
-
2611
- // src/internal/FunctionIdentifier/AbstractMethodIdentifier.ts
2612
- init_esm_shims();
2613
-
2614
- // src/internal/FunctionIdentifier/AbstractFunctionIdentifier.ts
2615
- init_esm_shims();
2616
-
2617
83
  // ../object/src/setNonEnumerable.ts
2618
- init_esm_shims();
2619
84
  function setNonEnumerable(object, ...properties) {
2620
85
  for (const prop of properties) {
2621
86
  Object.defineProperty(object, prop, {
@@ -2701,14 +166,7 @@ var ModuleMethodProfilerFactory = class {
2701
166
  }
2702
167
  };
2703
168
 
2704
- // src/internal/ProfilerWrapMethodsStrategy/ProfilerWrapMethodsStrategy.ts
2705
- init_esm_shims();
2706
-
2707
- // src/internal/FunctionProfiler/profilerWrap.ts
2708
- init_esm_shims();
2709
-
2710
169
  // ../fn/src/setNameAndLength.ts
2711
- init_esm_shims();
2712
170
  function setNameAndLength(source, target, lengthDelta = 0) {
2713
171
  return Object.defineProperties(target, {
2714
172
  name: {
@@ -2722,9 +180,6 @@ function setNameAndLength(source, target, lengthDelta = 0) {
2722
180
  });
2723
181
  }
2724
182
  __name(setNameAndLength, "setNameAndLength");
2725
-
2726
- // ../fn/src/functionSpy.ts
2727
- init_esm_shims();
2728
183
  function functionSpy(func, spy, options = {}) {
2729
184
  if (options.async === false) {
2730
185
  return wrapSync(func, spy, options);
@@ -2784,7 +239,6 @@ function wrapAsync(func, spy, options = {}) {
2784
239
  __name(wrapAsync, "wrapAsync");
2785
240
 
2786
241
  // ../fn/src/setName.ts
2787
- init_esm_shims();
2788
242
  function setName(name, target) {
2789
243
  return Object.defineProperty(target, "name", {
2790
244
  value: typeof name === "string" ? name : name.name,
@@ -2793,9 +247,6 @@ function setName(name, target) {
2793
247
  });
2794
248
  }
2795
249
  __name(setName, "setName");
2796
-
2797
- // ../fn/src/wrapMethods.ts
2798
- init_esm_shims();
2799
250
  function wrapMethods(target, strat) {
2800
251
  for (const [key, type, des] of iterateMethods(target)) {
2801
252
  if (strat.filter && !strat.filter(target, key, type, des)) {
@@ -2932,11 +383,7 @@ var ProfilerWrapMethodsStrategy = class {
2932
383
  }
2933
384
  };
2934
385
 
2935
- // src/internal/ProfilerFactory/PrototypeMethodProfilerFactory.ts
2936
- init_esm_shims();
2937
-
2938
386
  // src/internal/FunctionIdentifier/PrototypeMethodIdentifier.ts
2939
- init_esm_shims();
2940
387
  var PrototypeMethodIdentifier = class extends AbstractMethodIdentifier {
2941
388
  static {
2942
389
  __name(this, "PrototypeMethodIdentifier");
@@ -2964,7 +411,6 @@ var PrototypeMethodProfilerFactory = class {
2964
411
  };
2965
412
 
2966
413
  // src/internal/FunctionIdentifier/StandaloneFunctionIdentifier.ts
2967
- init_esm_shims();
2968
414
  var StandaloneFunctionIdentifier = class extends AbstractFunctionIdentifier {
2969
415
  static {
2970
416
  __name(this, "StandaloneFunctionIdentifier");
@@ -2980,11 +426,7 @@ var StandaloneFunctionIdentifier = class extends AbstractFunctionIdentifier {
2980
426
  }
2981
427
  };
2982
428
 
2983
- // src/internal/ProfilerFactory/StaticMethodProfilerFactory.ts
2984
- init_esm_shims();
2985
-
2986
429
  // src/internal/FunctionIdentifier/StaticMethodIdentifier.ts
2987
- init_esm_shims();
2988
430
  var StaticMethodIdentifier = class extends AbstractMethodIdentifier {
2989
431
  static {
2990
432
  __name(this, "StaticMethodIdentifier");
@@ -3011,15 +453,6 @@ var StaticMethodProfilerFactory = class {
3011
453
  }
3012
454
  };
3013
455
 
3014
- // ../table/src/TableFormatter.ts
3015
- init_esm_shims();
3016
-
3017
- // ../number/src/NumberFormatter.ts
3018
- init_esm_shims();
3019
-
3020
- // ../number/src/round.ts
3021
- init_esm_shims();
3022
-
3023
456
  // ../number/src/NumberFormatter.ts
3024
457
  var locales = /* @__PURE__ */ new Map([
3025
458
  [
@@ -3117,7 +550,6 @@ var NumberFormatter = class {
3117
550
  };
3118
551
 
3119
552
  // ../decorators/src/assertDescriptorValueIsFunction.ts
3120
- init_esm_shims();
3121
553
  function assertDescriptorValueIsFunction(key, descriptor) {
3122
554
  if (!(typeof descriptor.value === "function" && descriptor.value !== Function.prototype)) {
3123
555
  throw new TypeError(`"value" not a function for ${key} with descriptor: ${JSON.stringify(descriptor)}.`);
@@ -3125,11 +557,7 @@ function assertDescriptorValueIsFunction(key, descriptor) {
3125
557
  }
3126
558
  __name(assertDescriptorValueIsFunction, "assertDescriptorValueIsFunction");
3127
559
 
3128
- // ../decorators/src/lazyProp.ts
3129
- init_esm_shims();
3130
-
3131
560
  // ../map/src/mapGetOrDefault.ts
3132
- init_esm_shims();
3133
561
  function mapGetOrDefault(map, key, factory) {
3134
562
  let value = map.get(key);
3135
563
  if (value !== void 0 || map.has(key)) {
@@ -3142,7 +570,6 @@ function mapGetOrDefault(map, key, factory) {
3142
570
  __name(mapGetOrDefault, "mapGetOrDefault");
3143
571
 
3144
572
  // ../map/src/TimeoutWeakMap.ts
3145
- init_esm_shims();
3146
573
  var TimeoutWeakMap = class {
3147
574
  static {
3148
575
  __name(this, "TimeoutWeakMap");
@@ -3257,1933 +684,6 @@ var TimeoutWeakMap = class {
3257
684
  }
3258
685
  }
3259
686
  };
3260
-
3261
- // ../decorators/src/memoizeSync.ts
3262
- init_esm_shims();
3263
- var import_memoizee = __toESM(require_memoizee());
3264
-
3265
- // ../../node_modules/enhanced-ms/dist/index.js
3266
- init_esm_shims();
3267
- var units = {
3268
- nanosecond: 1e-6,
3269
- microsecond: 1e-3,
3270
- millisecond: 1,
3271
- second: 1e3,
3272
- minute: 6e4,
3273
- hour: 36e5,
3274
- day: 864e5,
3275
- // 24 hours
3276
- week: 6048e5,
3277
- // 7 days
3278
- month: 2628e6,
3279
- // 28 days
3280
- year: 31536e6,
3281
- // 365 days
3282
- decade: 31536e7,
3283
- // 10 years
3284
- century: 31536e8,
3285
- // 100 years
3286
- millennium: 31536e9
3287
- };
3288
- var UnitsMap = {
3289
- nanosekundy: [
3290
- "nanosekunda",
3291
- "nanosekundy",
3292
- "nanosekund"
3293
- ],
3294
- mikrosekundy: [
3295
- "mikrosekunda",
3296
- "mikrosekundy",
3297
- "mikrosekund"
3298
- ],
3299
- milisekundy: [
3300
- "milisekunda",
3301
- "milisekundy",
3302
- "milisekund"
3303
- ],
3304
- sekundy: [
3305
- "sekunda",
3306
- "sekundy",
3307
- "sekund"
3308
- ],
3309
- minuty: [
3310
- "minuta",
3311
- "minuty",
3312
- "minut"
3313
- ],
3314
- hodiny: [
3315
- "hodina",
3316
- "hodiny",
3317
- "hodin"
3318
- ],
3319
- dny: [
3320
- "den",
3321
- "dny",
3322
- "dn\xED"
3323
- ],
3324
- t\u00FDdny: [
3325
- "t\xFDden",
3326
- "t\xFDdny",
3327
- "t\xFDdn\u016F"
3328
- ],
3329
- m\u011Bs\u00EDce: [
3330
- "m\u011Bs\xEDc",
3331
- "m\u011Bs\xEDce",
3332
- "m\u011Bs\xEDc\u016F"
3333
- ],
3334
- roky: [
3335
- "rok",
3336
- "roky",
3337
- "let"
3338
- ],
3339
- dek\u00E1dy: [
3340
- "dek\xE1da",
3341
- "dek\xE1dy",
3342
- "dek\xE1d"
3343
- ],
3344
- stolet\u00ED: [
3345
- "stolet\xED",
3346
- "stolet\xED",
3347
- "stolet\xED"
3348
- ],
3349
- tis\u00EDcilet\u00ED: [
3350
- "tis\xEDcilet\xED",
3351
- "tis\xEDcilet\xED",
3352
- "tis\xEDcilet\xED"
3353
- ]
3354
- };
3355
- function formatTime(unit, count) {
3356
- const words = UnitsMap[unit];
3357
- let word;
3358
- if (count === 1) word = words[0];
3359
- else if (count >= 2 && count <= 4) word = words[1];
3360
- else word = words[2];
3361
- return word || "";
3362
- }
3363
- __name(formatTime, "formatTime");
3364
- var cs_default = {
3365
- decimal: ",",
3366
- and: "a",
3367
- units: {
3368
- nanosecond: {
3369
- name: /* @__PURE__ */ __name((c) => formatTime("nanosekundy", c), "name"),
3370
- abbreviation: "ns",
3371
- matches: [
3372
- "ns",
3373
- "nanosekunda",
3374
- "nanosekundy",
3375
- "nanosekund"
3376
- ]
3377
- },
3378
- microsecond: {
3379
- name: /* @__PURE__ */ __name((c) => formatTime("mikrosekundy", c), "name"),
3380
- abbreviation: "\u03BCs",
3381
- matches: [
3382
- "\u03BCs",
3383
- "us",
3384
- "mikrosekunda",
3385
- "mikrosekundy",
3386
- "mikrosekund"
3387
- ]
3388
- },
3389
- millisecond: {
3390
- name: /* @__PURE__ */ __name((c) => formatTime("milisekundy", c), "name"),
3391
- abbreviation: "ms",
3392
- matches: [
3393
- "ms",
3394
- "milisekunda",
3395
- "milisekundy",
3396
- "milisekund"
3397
- ]
3398
- },
3399
- second: {
3400
- name: /* @__PURE__ */ __name((c) => formatTime("sekundy", c), "name"),
3401
- abbreviation: "s",
3402
- matches: [
3403
- "s",
3404
- "sek",
3405
- "sekunda",
3406
- "sekundy",
3407
- "sekund"
3408
- ]
3409
- },
3410
- minute: {
3411
- name: /* @__PURE__ */ __name((c) => formatTime("minuty", c), "name"),
3412
- abbreviation: "min",
3413
- matches: [
3414
- "m",
3415
- "min",
3416
- "minuta",
3417
- "minuty",
3418
- "minut"
3419
- ]
3420
- },
3421
- hour: {
3422
- name: /* @__PURE__ */ __name((c) => formatTime("hodiny", c), "name"),
3423
- abbreviation: "h",
3424
- matches: [
3425
- "h",
3426
- "hod",
3427
- "hodina",
3428
- "hodiny",
3429
- "hodin"
3430
- ]
3431
- },
3432
- day: {
3433
- name: /* @__PURE__ */ __name((c) => formatTime("dny", c), "name"),
3434
- abbreviation: "d",
3435
- matches: [
3436
- "d",
3437
- "den",
3438
- "dny",
3439
- "dn\xED"
3440
- ]
3441
- },
3442
- week: {
3443
- name: /* @__PURE__ */ __name((c) => formatTime("t\xFDdny", c), "name"),
3444
- abbreviation: "t\xFDd.",
3445
- matches: [
3446
- "w",
3447
- "t\xFDd",
3448
- "t\xFDden",
3449
- "t\xFDdny",
3450
- "t\xFDdn\u016F"
3451
- ]
3452
- },
3453
- month: {
3454
- name: /* @__PURE__ */ __name((c) => formatTime("m\u011Bs\xEDce", c), "name"),
3455
- abbreviation: "m\u011Bs.",
3456
- matches: [
3457
- "mo",
3458
- "m\u011Bs",
3459
- "m\u011Bs\xEDc",
3460
- "m\u011Bs\xEDce",
3461
- "m\u011Bs\xEDc\u016F"
3462
- ]
3463
- },
3464
- year: {
3465
- name: /* @__PURE__ */ __name((c) => formatTime("roky", c), "name"),
3466
- abbreviation: "r.",
3467
- matches: [
3468
- "y",
3469
- "r",
3470
- "rok",
3471
- "roky",
3472
- "let"
3473
- ]
3474
- },
3475
- decade: {
3476
- name: /* @__PURE__ */ __name((c) => formatTime("dek\xE1dy", c), "name"),
3477
- abbreviation: "dek.",
3478
- matches: [
3479
- "dek",
3480
- "dek\xE1da",
3481
- "dek\xE1dy",
3482
- "dek\xE1d"
3483
- ]
3484
- },
3485
- century: {
3486
- name: /* @__PURE__ */ __name((c) => formatTime("stolet\xED", c), "name"),
3487
- abbreviation: "stol.",
3488
- matches: [
3489
- "c",
3490
- "stol",
3491
- "stolet\xED"
3492
- ]
3493
- },
3494
- millennium: {
3495
- name: /* @__PURE__ */ __name((c) => formatTime("tis\xEDcilet\xED", c), "name"),
3496
- abbreviation: "tis.",
3497
- matches: [
3498
- "mil",
3499
- "tis",
3500
- "tis\xEDcilet\xED"
3501
- ]
3502
- }
3503
- }
3504
- };
3505
- var de_default = {
3506
- decimal: ",",
3507
- and: "und",
3508
- units: {
3509
- nanosecond: {
3510
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Nanosekunde" : "Nanosekunden", "name"),
3511
- abbreviation: "ns",
3512
- matches: [
3513
- "ns",
3514
- "nanos",
3515
- "nanosekunde",
3516
- "nanosekunden"
3517
- ]
3518
- },
3519
- microsecond: {
3520
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Mikrosekunde" : "Mikrosekunden", "name"),
3521
- abbreviation: "\u03BCs",
3522
- matches: [
3523
- "us",
3524
- "mk",
3525
- "mikrosekunde",
3526
- "mikrosekunden",
3527
- "mikros"
3528
- ]
3529
- },
3530
- millisecond: {
3531
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Millisekunde" : "Millisekunden", "name"),
3532
- abbreviation: "ms",
3533
- matches: [
3534
- "ms",
3535
- "ml",
3536
- "mi",
3537
- "millisekunde",
3538
- "millisekunden",
3539
- "millis"
3540
- ]
3541
- },
3542
- second: {
3543
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Sekunde" : "Sekunden", "name"),
3544
- abbreviation: "Sek.",
3545
- matches: [
3546
- "s",
3547
- "sekunde",
3548
- "sekunden",
3549
- "sek",
3550
- "seks"
3551
- ]
3552
- },
3553
- minute: {
3554
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Minute" : "Minuten", "name"),
3555
- abbreviation: "Min.",
3556
- matches: [
3557
- "m",
3558
- "minute",
3559
- "minuten",
3560
- "min",
3561
- "mins"
3562
- ]
3563
- },
3564
- hour: {
3565
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Stunde" : "Stunden", "name"),
3566
- abbreviation: "Std.",
3567
- matches: [
3568
- "h",
3569
- "stunde",
3570
- "stunden",
3571
- "st"
3572
- ]
3573
- },
3574
- day: {
3575
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Tag" : "Tage", "name"),
3576
- abbreviation: "T.",
3577
- matches: [
3578
- "d",
3579
- "t",
3580
- "tag",
3581
- "tage"
3582
- ]
3583
- },
3584
- week: {
3585
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Woche" : "Wochen", "name"),
3586
- abbreviation: "W.",
3587
- matches: [
3588
- "w",
3589
- "wo",
3590
- "woche",
3591
- "wochen"
3592
- ]
3593
- },
3594
- month: {
3595
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Monat" : "Monate", "name"),
3596
- abbreviation: "M.",
3597
- matches: [
3598
- "mo",
3599
- "monat",
3600
- "monate"
3601
- ]
3602
- },
3603
- year: {
3604
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Jahr" : "Jahre", "name"),
3605
- abbreviation: "J.",
3606
- matches: [
3607
- "y",
3608
- "a",
3609
- "j",
3610
- "jahr",
3611
- "jahre"
3612
- ]
3613
- },
3614
- decade: {
3615
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Jahrzehnt" : "Jahrzehnte", "name"),
3616
- abbreviation: "Jz.",
3617
- matches: [
3618
- "jz",
3619
- "jahrzehnt",
3620
- "jahrzehnte"
3621
- ]
3622
- },
3623
- century: {
3624
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Jahrhundert" : "Jahrhunderte", "name"),
3625
- abbreviation: "Jh.",
3626
- matches: [
3627
- "c",
3628
- "jh",
3629
- "jhd",
3630
- "jahrhundert",
3631
- "jahrhunderte"
3632
- ]
3633
- },
3634
- millennium: {
3635
- name: /* @__PURE__ */ __name((c) => c === 1 ? "Jahrtausend" : "Jahrtausende", "name"),
3636
- abbreviation: "Jt.",
3637
- matches: [
3638
- "jt",
3639
- "jtd",
3640
- "jtsd",
3641
- "jahrt",
3642
- "jahrtausend",
3643
- "jahrtausende"
3644
- ]
3645
- }
3646
- }
3647
- };
3648
- var en_default = {
3649
- decimal: ".",
3650
- and: "and",
3651
- units: {
3652
- nanosecond: {
3653
- name: /* @__PURE__ */ __name((c) => c === 1 ? "nanosecond" : "nanoseconds", "name"),
3654
- abbreviation: "ns",
3655
- matches: [
3656
- "nanosecond",
3657
- "nanoseconds",
3658
- "ns"
3659
- ]
3660
- },
3661
- microsecond: {
3662
- name: /* @__PURE__ */ __name((c) => c === 1 ? "microsecond" : "microseconds", "name"),
3663
- abbreviation: "\u03BCs",
3664
- matches: [
3665
- "microsecond",
3666
- "microseconds",
3667
- "\u03BCs"
3668
- ]
3669
- },
3670
- millisecond: {
3671
- name: /* @__PURE__ */ __name((c) => c === 1 ? "millisecond" : "milliseconds", "name"),
3672
- abbreviation: "ms",
3673
- matches: [
3674
- "millisecond",
3675
- "milliseconds",
3676
- "ms"
3677
- ]
3678
- },
3679
- second: {
3680
- name: /* @__PURE__ */ __name((c) => c === 1 ? "second" : "seconds", "name"),
3681
- abbreviation: "s",
3682
- matches: [
3683
- "second",
3684
- "seconds",
3685
- "s"
3686
- ]
3687
- },
3688
- minute: {
3689
- name: /* @__PURE__ */ __name((c) => c === 1 ? "minute" : "minutes", "name"),
3690
- abbreviation: "m",
3691
- matches: [
3692
- "minute",
3693
- "minutes",
3694
- "m"
3695
- ]
3696
- },
3697
- hour: {
3698
- name: /* @__PURE__ */ __name((c) => c === 1 ? "hour" : "hours", "name"),
3699
- abbreviation: "h",
3700
- matches: [
3701
- "hour",
3702
- "hours",
3703
- "h"
3704
- ]
3705
- },
3706
- day: {
3707
- name: /* @__PURE__ */ __name((c) => c === 1 ? "day" : "days", "name"),
3708
- abbreviation: "d",
3709
- matches: [
3710
- "day",
3711
- "days",
3712
- "d"
3713
- ]
3714
- },
3715
- week: {
3716
- name: /* @__PURE__ */ __name((c) => c === 1 ? "week" : "weeks", "name"),
3717
- abbreviation: "w",
3718
- matches: [
3719
- "week",
3720
- "weeks",
3721
- "w"
3722
- ]
3723
- },
3724
- month: {
3725
- name: /* @__PURE__ */ __name((c) => c === 1 ? "month" : "months", "name"),
3726
- abbreviation: "mo",
3727
- matches: [
3728
- "month",
3729
- "months",
3730
- "mo"
3731
- ]
3732
- },
3733
- year: {
3734
- name: /* @__PURE__ */ __name((c) => c === 1 ? "year" : "years", "name"),
3735
- abbreviation: "y",
3736
- matches: [
3737
- "year",
3738
- "years",
3739
- "y"
3740
- ]
3741
- },
3742
- decade: {
3743
- name: /* @__PURE__ */ __name((c) => c === 1 ? "decade" : "decades", "name"),
3744
- abbreviation: "dec",
3745
- matches: [
3746
- "decade",
3747
- "decades",
3748
- "dec"
3749
- ]
3750
- },
3751
- century: {
3752
- name: /* @__PURE__ */ __name((c) => c === 1 ? "century" : "centuries", "name"),
3753
- abbreviation: "c",
3754
- matches: [
3755
- "century",
3756
- "centuries",
3757
- "c"
3758
- ]
3759
- },
3760
- millennium: {
3761
- name: /* @__PURE__ */ __name((c) => c === 1 ? "millennium" : "millennia", "name"),
3762
- abbreviation: "mil",
3763
- matches: [
3764
- "millennium",
3765
- "millennia",
3766
- "mil"
3767
- ]
3768
- }
3769
- }
3770
- };
3771
- var es_default = {
3772
- decimal: ",",
3773
- and: "y",
3774
- units: {
3775
- nanosecond: {
3776
- name: /* @__PURE__ */ __name((c) => c === 1 ? "nanosegundo" : "nanosegundos", "name"),
3777
- abbreviation: "ns",
3778
- matches: [
3779
- "nanosegundo",
3780
- "nanosegundos",
3781
- "ns"
3782
- ]
3783
- },
3784
- microsecond: {
3785
- name: /* @__PURE__ */ __name((c) => c === 1 ? "microsegundo" : "microsegundos", "name"),
3786
- abbreviation: "\u03BCs",
3787
- matches: [
3788
- "microsegundo",
3789
- "microsegundos",
3790
- "\u03BCs"
3791
- ]
3792
- },
3793
- millisecond: {
3794
- name: /* @__PURE__ */ __name((c) => c === 1 ? "milisegundo" : "milisegundos", "name"),
3795
- abbreviation: "ms",
3796
- matches: [
3797
- "milisegundo",
3798
- "milisegundos",
3799
- "ms"
3800
- ]
3801
- },
3802
- second: {
3803
- name: /* @__PURE__ */ __name((c) => c === 1 ? "segundo" : "segundos", "name"),
3804
- abbreviation: "s",
3805
- matches: [
3806
- "segundo",
3807
- "segundos",
3808
- "s"
3809
- ]
3810
- },
3811
- minute: {
3812
- name: /* @__PURE__ */ __name((c) => c === 1 ? "minuto" : "minutos", "name"),
3813
- abbreviation: "min",
3814
- matches: [
3815
- "minuto",
3816
- "minutos",
3817
- "min"
3818
- ]
3819
- },
3820
- hour: {
3821
- name: /* @__PURE__ */ __name((c) => c === 1 ? "hora" : "horas", "name"),
3822
- abbreviation: "h",
3823
- matches: [
3824
- "hora",
3825
- "horas",
3826
- "h"
3827
- ]
3828
- },
3829
- day: {
3830
- name: /* @__PURE__ */ __name((c) => c === 1 ? "d\xEDa" : "d\xEDas", "name"),
3831
- abbreviation: "d",
3832
- matches: [
3833
- "d\xEDa",
3834
- "d\xEDas",
3835
- "d"
3836
- ]
3837
- },
3838
- week: {
3839
- name: /* @__PURE__ */ __name((c) => c === 1 ? "semana" : "semanas", "name"),
3840
- abbreviation: "sem",
3841
- matches: [
3842
- "semana",
3843
- "semanas",
3844
- "sem"
3845
- ]
3846
- },
3847
- month: {
3848
- name: /* @__PURE__ */ __name((c) => c === 1 ? "mes" : "meses", "name"),
3849
- abbreviation: "mes",
3850
- matches: [
3851
- "mes",
3852
- "meses",
3853
- "mes"
3854
- ]
3855
- },
3856
- year: {
3857
- name: /* @__PURE__ */ __name((c) => c === 1 ? "a\xF1o" : "a\xF1os", "name"),
3858
- abbreviation: "a",
3859
- matches: [
3860
- "a\xF1o",
3861
- "a\xF1os",
3862
- "a"
3863
- ]
3864
- },
3865
- decade: {
3866
- name: /* @__PURE__ */ __name((c) => c === 1 ? "d\xE9cada" : "d\xE9cadas", "name"),
3867
- abbreviation: "d\xE9c",
3868
- matches: [
3869
- "d\xE9cada",
3870
- "d\xE9cadas",
3871
- "d\xE9c"
3872
- ]
3873
- },
3874
- century: {
3875
- name: /* @__PURE__ */ __name((c) => c === 1 ? "siglo" : "siglos", "name"),
3876
- abbreviation: "sig",
3877
- matches: [
3878
- "siglo",
3879
- "siglos",
3880
- "sig"
3881
- ]
3882
- },
3883
- millennium: {
3884
- name: /* @__PURE__ */ __name((c) => c === 1 ? "milenio" : "milenios", "name"),
3885
- abbreviation: "mil",
3886
- matches: [
3887
- "milenio",
3888
- "milenios",
3889
- "mil"
3890
- ]
3891
- }
3892
- }
3893
- };
3894
- var fr_default = {
3895
- decimal: ",",
3896
- and: "et",
3897
- units: {
3898
- nanosecond: {
3899
- name: /* @__PURE__ */ __name((c) => c === 1 ? "nanoseconde" : "nanosecondes", "name"),
3900
- abbreviation: "ns",
3901
- matches: [
3902
- "nanoseconde",
3903
- "nanosecondes",
3904
- "ns"
3905
- ]
3906
- },
3907
- microsecond: {
3908
- name: /* @__PURE__ */ __name((c) => c === 1 ? "microseconde" : "microsecondes", "name"),
3909
- abbreviation: "\u03BCs",
3910
- matches: [
3911
- "microseconde",
3912
- "microsecondes",
3913
- "\u03BCs"
3914
- ]
3915
- },
3916
- millisecond: {
3917
- name: /* @__PURE__ */ __name((c) => c === 1 ? "milliseconde" : "millisecondes", "name"),
3918
- abbreviation: "ms",
3919
- matches: [
3920
- "milliseconde",
3921
- "millisecondes",
3922
- "ms"
3923
- ]
3924
- },
3925
- second: {
3926
- name: /* @__PURE__ */ __name((c) => c === 1 ? "seconde" : "secondes", "name"),
3927
- abbreviation: "s",
3928
- matches: [
3929
- "seconde",
3930
- "secondes",
3931
- "s"
3932
- ]
3933
- },
3934
- minute: {
3935
- name: /* @__PURE__ */ __name((c) => c === 1 ? "minute" : "minutes", "name"),
3936
- abbreviation: "min",
3937
- matches: [
3938
- "minute",
3939
- "minutes",
3940
- "min"
3941
- ]
3942
- },
3943
- hour: {
3944
- name: /* @__PURE__ */ __name((c) => c === 1 ? "heure" : "heures", "name"),
3945
- abbreviation: "h",
3946
- matches: [
3947
- "heure",
3948
- "heures",
3949
- "h"
3950
- ]
3951
- },
3952
- day: {
3953
- name: /* @__PURE__ */ __name((c) => c === 1 ? "jour" : "jours", "name"),
3954
- abbreviation: "j",
3955
- matches: [
3956
- "jour",
3957
- "jours",
3958
- "j"
3959
- ]
3960
- },
3961
- week: {
3962
- name: /* @__PURE__ */ __name((c) => c === 1 ? "semaine" : "semaines", "name"),
3963
- abbreviation: "sem",
3964
- matches: [
3965
- "semaine",
3966
- "semaines",
3967
- "sem"
3968
- ]
3969
- },
3970
- month: {
3971
- name: /* @__PURE__ */ __name((_c) => "mois", "name"),
3972
- // In French, the singular and plural form is identical.
3973
- abbreviation: "mo",
3974
- matches: [
3975
- "mois",
3976
- "mo"
3977
- ]
3978
- },
3979
- year: {
3980
- name: /* @__PURE__ */ __name((c) => c === 1 ? "an" : "ans", "name"),
3981
- abbreviation: "an",
3982
- matches: [
3983
- "an",
3984
- "ans"
3985
- ]
3986
- },
3987
- decade: {
3988
- name: /* @__PURE__ */ __name((c) => c === 1 ? "d\xE9cennie" : "d\xE9cennies", "name"),
3989
- abbreviation: "dec",
3990
- matches: [
3991
- "d\xE9cennie",
3992
- "d\xE9cennies",
3993
- "dec"
3994
- ]
3995
- },
3996
- century: {
3997
- name: /* @__PURE__ */ __name((c) => c === 1 ? "si\xE8cle" : "si\xE8cles", "name"),
3998
- abbreviation: "si\xE8",
3999
- matches: [
4000
- "si\xE8cle",
4001
- "si\xE8cles",
4002
- "si\xE8"
4003
- ]
4004
- },
4005
- millennium: {
4006
- name: /* @__PURE__ */ __name((c) => c === 1 ? "mill\xE9naire" : "mill\xE9naires", "name"),
4007
- abbreviation: "mil",
4008
- matches: [
4009
- "mill\xE9naire",
4010
- "mill\xE9naires",
4011
- "mil"
4012
- ]
4013
- }
4014
- }
4015
- };
4016
- var it_default = {
4017
- decimal: ",",
4018
- and: "e",
4019
- units: {
4020
- nanosecond: {
4021
- name: /* @__PURE__ */ __name((c) => c === 1 ? "nanosecondo" : "nanosecondi", "name"),
4022
- abbreviation: "ns",
4023
- matches: [
4024
- "nanosecondo",
4025
- "nanosecondi",
4026
- "ns"
4027
- ]
4028
- },
4029
- microsecond: {
4030
- name: /* @__PURE__ */ __name((c) => c === 1 ? "microsecondo" : "microsecondi", "name"),
4031
- abbreviation: "\u03BCs",
4032
- matches: [
4033
- "microsecondo",
4034
- "microsecondi",
4035
- "\u03BCs"
4036
- ]
4037
- },
4038
- millisecond: {
4039
- name: /* @__PURE__ */ __name((c) => c === 1 ? "millisecondo" : "millisecondi", "name"),
4040
- abbreviation: "ms",
4041
- matches: [
4042
- "millisecondo",
4043
- "millisecondi",
4044
- "ms"
4045
- ]
4046
- },
4047
- second: {
4048
- name: /* @__PURE__ */ __name((c) => c === 1 ? "secondo" : "secondi", "name"),
4049
- abbreviation: "s",
4050
- matches: [
4051
- "secondo",
4052
- "secondi",
4053
- "s"
4054
- ]
4055
- },
4056
- minute: {
4057
- name: /* @__PURE__ */ __name((c) => c === 1 ? "minuto" : "minuti", "name"),
4058
- abbreviation: "min",
4059
- matches: [
4060
- "minuto",
4061
- "minuti",
4062
- "min"
4063
- ]
4064
- },
4065
- hour: {
4066
- name: /* @__PURE__ */ __name((c) => c === 1 ? "ora" : "ore", "name"),
4067
- abbreviation: "h",
4068
- matches: [
4069
- "ora",
4070
- "ore",
4071
- "h"
4072
- ]
4073
- },
4074
- day: {
4075
- name: /* @__PURE__ */ __name((c) => c === 1 ? "giorno" : "giorni", "name"),
4076
- abbreviation: "g",
4077
- matches: [
4078
- "giorno",
4079
- "giorni",
4080
- "g"
4081
- ]
4082
- },
4083
- week: {
4084
- name: /* @__PURE__ */ __name((c) => c === 1 ? "settimana" : "settimane", "name"),
4085
- abbreviation: "sett",
4086
- matches: [
4087
- "settimana",
4088
- "settimane",
4089
- "sett"
4090
- ]
4091
- },
4092
- month: {
4093
- name: /* @__PURE__ */ __name((c) => c === 1 ? "mese" : "mesi", "name"),
4094
- abbreviation: "mes",
4095
- matches: [
4096
- "mese",
4097
- "mesi",
4098
- "mes"
4099
- ]
4100
- },
4101
- year: {
4102
- name: /* @__PURE__ */ __name((c) => c === 1 ? "anno" : "anni", "name"),
4103
- abbreviation: "a",
4104
- matches: [
4105
- "anno",
4106
- "anni",
4107
- "a"
4108
- ]
4109
- },
4110
- decade: {
4111
- name: /* @__PURE__ */ __name((c) => c === 1 ? "decennio" : "decenni", "name"),
4112
- abbreviation: "dec",
4113
- matches: [
4114
- "decennio",
4115
- "decenni",
4116
- "dec"
4117
- ]
4118
- },
4119
- century: {
4120
- name: /* @__PURE__ */ __name((c) => c === 1 ? "secolo" : "secoli", "name"),
4121
- abbreviation: "sc",
4122
- matches: [
4123
- "secolo",
4124
- "secoli",
4125
- "sc"
4126
- ]
4127
- },
4128
- millennium: {
4129
- name: /* @__PURE__ */ __name((c) => c === 1 ? "millennio" : "millenni", "name"),
4130
- abbreviation: "mil",
4131
- matches: [
4132
- "millennio",
4133
- "millenni",
4134
- "mil"
4135
- ]
4136
- }
4137
- }
4138
- };
4139
- var mi_default = {
4140
- decimal: ".",
4141
- and: "me te",
4142
- units: {
4143
- nanosecond: {
4144
- name: "h\u0113kona nanomiri",
4145
- matches: [
4146
- "h\u0113kona nanomiri",
4147
- "h\u0113konananomiri",
4148
- "hekona nanomiri",
4149
- "hekonananomiri"
4150
- ]
4151
- },
4152
- microsecond: {
4153
- name: "h\u0113kona miriona",
4154
- matches: [
4155
- "h\u0113kona miriona",
4156
- "h\u0113konamiriona",
4157
- "hekona miriona",
4158
- "hekonamiriona"
4159
- ]
4160
- },
4161
- millisecond: {
4162
- name: "h\u0113kona miri",
4163
- matches: [
4164
- "h\u0113kona miri",
4165
- "k\u0101konamiri",
4166
- "hekona miri",
4167
- "hekonamiri"
4168
- ]
4169
- },
4170
- second: {
4171
- name: "h\u0113kona",
4172
- matches: [
4173
- "h\u0113kona",
4174
- "hekona"
4175
- ]
4176
- },
4177
- minute: {
4178
- name: "meneti",
4179
- matches: [
4180
- "meneti"
4181
- ]
4182
- },
4183
- hour: {
4184
- name: "h\u0101ora",
4185
- matches: [
4186
- "h\u0101ora",
4187
- "haora"
4188
- ]
4189
- },
4190
- day: {
4191
- name: "r\u0101",
4192
- matches: [
4193
- "r\u0101",
4194
- "ra"
4195
- ]
4196
- },
4197
- week: {
4198
- name: "wiki",
4199
- matches: [
4200
- "wiki"
4201
- ]
4202
- },
4203
- month: {
4204
- name: "marama",
4205
- matches: [
4206
- "marama"
4207
- ]
4208
- },
4209
- year: {
4210
- name: "tau",
4211
- matches: [
4212
- "tau",
4213
- "houanga"
4214
- ]
4215
- },
4216
- decade: {
4217
- name: "tekau tau",
4218
- matches: [
4219
- "tekautau",
4220
- "tekau tau"
4221
- ]
4222
- },
4223
- century: {
4224
- name: "rau tau",
4225
- matches: [
4226
- "rautau",
4227
- "rau tau"
4228
- ]
4229
- },
4230
- millennium: {
4231
- name: "mano tau",
4232
- matches: [
4233
- "manotau",
4234
- "mano tau"
4235
- ]
4236
- }
4237
- }
4238
- };
4239
- var nl_default = {
4240
- decimal: ",",
4241
- and: "en",
4242
- units: {
4243
- nanosecond: {
4244
- name: /* @__PURE__ */ __name((c) => c === 1 ? "nanoseconde" : "nanoseconden", "name"),
4245
- abbreviation: "ns",
4246
- matches: [
4247
- "nanoseconde",
4248
- "nanoseconden",
4249
- "ns"
4250
- ]
4251
- },
4252
- microsecond: {
4253
- name: /* @__PURE__ */ __name((c) => c === 1 ? "microseconde" : "microseconden", "name"),
4254
- abbreviation: "\u03BCs",
4255
- matches: [
4256
- "microseconde",
4257
- "microseconden",
4258
- "\u03BCs"
4259
- ]
4260
- },
4261
- millisecond: {
4262
- name: /* @__PURE__ */ __name((c) => c === 1 ? "milliseconde" : "milliseconden", "name"),
4263
- abbreviation: "ms",
4264
- matches: [
4265
- "milliseconde",
4266
- "milliseconden",
4267
- "ms"
4268
- ]
4269
- },
4270
- second: {
4271
- name: /* @__PURE__ */ __name((c) => c === 1 ? "seconde" : "seconden", "name"),
4272
- abbreviation: "s",
4273
- matches: [
4274
- "seconde",
4275
- "seconden",
4276
- "s"
4277
- ]
4278
- },
4279
- minute: {
4280
- name: /* @__PURE__ */ __name((c) => c === 1 ? "minuut" : "minuten", "name"),
4281
- abbreviation: "min",
4282
- matches: [
4283
- "minuut",
4284
- "minuten",
4285
- "min"
4286
- ]
4287
- },
4288
- hour: {
4289
- name: /* @__PURE__ */ __name((c) => c === 1 ? "uur" : "uren", "name"),
4290
- abbreviation: "h",
4291
- matches: [
4292
- "uur",
4293
- "uren",
4294
- "h"
4295
- ]
4296
- },
4297
- day: {
4298
- name: /* @__PURE__ */ __name((c) => c === 1 ? "dag" : "dagen", "name"),
4299
- abbreviation: "d",
4300
- matches: [
4301
- "dag",
4302
- "dagen",
4303
- "d"
4304
- ]
4305
- },
4306
- week: {
4307
- name: /* @__PURE__ */ __name((c) => c === 1 ? "week" : "weken", "name"),
4308
- abbreviation: "w",
4309
- matches: [
4310
- "week",
4311
- "weken",
4312
- "w"
4313
- ]
4314
- },
4315
- month: {
4316
- name: /* @__PURE__ */ __name((c) => c === 1 ? "maand" : "maanden", "name"),
4317
- abbreviation: "mnd",
4318
- matches: [
4319
- "maand",
4320
- "maanden",
4321
- "mnd"
4322
- ]
4323
- },
4324
- year: {
4325
- name: /* @__PURE__ */ __name((c) => c === 1 ? "jaar" : "jaren", "name"),
4326
- abbreviation: "jr",
4327
- matches: [
4328
- "jaar",
4329
- "jaren",
4330
- "jr"
4331
- ]
4332
- },
4333
- decade: {
4334
- name: /* @__PURE__ */ __name((c) => c === 1 ? "decennium" : "decennia", "name"),
4335
- abbreviation: "dec",
4336
- matches: [
4337
- "decennium",
4338
- "decennia",
4339
- "dec"
4340
- ]
4341
- },
4342
- century: {
4343
- name: /* @__PURE__ */ __name((c) => c === 1 ? "eeuw" : "eeuwen", "name"),
4344
- abbreviation: "eeuw",
4345
- matches: [
4346
- "eeuw",
4347
- "eeuwen"
4348
- ]
4349
- },
4350
- millennium: {
4351
- name: /* @__PURE__ */ __name((c) => c === 1 ? "millennium" : "millennia", "name"),
4352
- abbreviation: "mil",
4353
- matches: [
4354
- "millennium",
4355
- "millennia",
4356
- "mil"
4357
- ]
4358
- }
4359
- }
4360
- };
4361
- var UnitsMap2 = {
4362
- nanosekundy: [
4363
- "nanosekunda",
4364
- "nanosekundy",
4365
- "nanosekund"
4366
- ],
4367
- mikrosekundy: [
4368
- "mikrosekunda",
4369
- "mikrosekundy",
4370
- "mikrosekund"
4371
- ],
4372
- milisekundy: [
4373
- "milisekunda",
4374
- "milisekundy",
4375
- "milisekund"
4376
- ],
4377
- sekundy: [
4378
- "sekunda",
4379
- "sekundy",
4380
- "sekund"
4381
- ],
4382
- minuty: [
4383
- "minuta",
4384
- "minuty",
4385
- "minut"
4386
- ],
4387
- godziny: [
4388
- "godzina",
4389
- "godziny",
4390
- "godzin"
4391
- ],
4392
- dni: [
4393
- "dzie\u0144",
4394
- "dni",
4395
- "dni"
4396
- ],
4397
- tygodnie: [
4398
- "tydzie\u0144",
4399
- "tygodnie",
4400
- "tygodni"
4401
- ],
4402
- miesi\u0105ce: [
4403
- "miesi\u0105c",
4404
- "miesi\u0105ce",
4405
- "miesi\u0119cy"
4406
- ],
4407
- lata: [
4408
- "rok",
4409
- "lata",
4410
- "lat"
4411
- ],
4412
- dekady: [
4413
- "dekada",
4414
- "dekady",
4415
- "dekad"
4416
- ],
4417
- wieki: [
4418
- "wiek",
4419
- "wieki",
4420
- "wiek\xF3w"
4421
- ],
4422
- tysi\u0105clecia: [
4423
- "tysi\u0105clecie",
4424
- "tysi\u0105clecia",
4425
- "tysi\u0105cleci"
4426
- ]
4427
- };
4428
- function formatTime2(unit, count) {
4429
- const words = UnitsMap2[unit];
4430
- const lastDigit = count % 10;
4431
- const lastTwoDigits = count % 100;
4432
- let word;
4433
- if (lastTwoDigits >= 11 && lastTwoDigits <= 19) word = words[2];
4434
- else if (lastDigit === 1) word = words[0];
4435
- else if (lastDigit >= 2 && lastDigit <= 4) word = words[1];
4436
- else word = words[2];
4437
- return word || "";
4438
- }
4439
- __name(formatTime2, "formatTime2");
4440
- var pl_default = {
4441
- decimal: ",",
4442
- and: "i",
4443
- units: {
4444
- nanosecond: {
4445
- name: /* @__PURE__ */ __name((c) => formatTime2("nanosekundy", c), "name"),
4446
- abbreviation: "ns",
4447
- matches: [
4448
- "ns",
4449
- "nanosekunda",
4450
- "nanosekundy",
4451
- "nanosekund"
4452
- ]
4453
- },
4454
- microsecond: {
4455
- name: /* @__PURE__ */ __name((c) => formatTime2("mikrosekundy", c), "name"),
4456
- abbreviation: "\u03BCs",
4457
- matches: [
4458
- "\u03BCs",
4459
- "us",
4460
- "mikrosekunda",
4461
- "mikrosekundy",
4462
- "mikrosekund"
4463
- ]
4464
- },
4465
- millisecond: {
4466
- name: /* @__PURE__ */ __name((c) => formatTime2("milisekundy", c), "name"),
4467
- abbreviation: "ms",
4468
- matches: [
4469
- "ms",
4470
- "milisekunda",
4471
- "milisekundy",
4472
- "milisekund"
4473
- ]
4474
- },
4475
- second: {
4476
- name: /* @__PURE__ */ __name((c) => formatTime2("sekundy", c), "name"),
4477
- abbreviation: "s",
4478
- matches: [
4479
- "s",
4480
- "sek",
4481
- "sekunda",
4482
- "sekundy",
4483
- "sekund"
4484
- ]
4485
- },
4486
- minute: {
4487
- name: /* @__PURE__ */ __name((c) => formatTime2("minuty", c), "name"),
4488
- abbreviation: "min",
4489
- matches: [
4490
- "m",
4491
- "min",
4492
- "minuta",
4493
- "minuty",
4494
- "minut"
4495
- ]
4496
- },
4497
- hour: {
4498
- name: /* @__PURE__ */ __name((c) => formatTime2("godziny", c), "name"),
4499
- abbreviation: "godz.",
4500
- matches: [
4501
- "h",
4502
- "godz",
4503
- "godzina",
4504
- "godziny",
4505
- "godzin"
4506
- ]
4507
- },
4508
- day: {
4509
- name: /* @__PURE__ */ __name((c) => formatTime2("dni", c), "name"),
4510
- abbreviation: "d",
4511
- matches: [
4512
- "d",
4513
- "dzie\u0144",
4514
- "dni"
4515
- ]
4516
- },
4517
- week: {
4518
- name: /* @__PURE__ */ __name((c) => formatTime2("tygodnie", c), "name"),
4519
- abbreviation: "tydz.",
4520
- matches: [
4521
- "w",
4522
- "tydz",
4523
- "tydzie\u0144",
4524
- "tygodnie",
4525
- "tygodni"
4526
- ]
4527
- },
4528
- month: {
4529
- name: /* @__PURE__ */ __name((c) => formatTime2("miesi\u0105ce", c), "name"),
4530
- abbreviation: "mies.",
4531
- matches: [
4532
- "mo",
4533
- "mies",
4534
- "miesi\u0105c",
4535
- "miesi\u0105ce",
4536
- "miesi\u0119cy"
4537
- ]
4538
- },
4539
- year: {
4540
- name: /* @__PURE__ */ __name((c) => formatTime2("lata", c), "name"),
4541
- abbreviation: "r.",
4542
- matches: [
4543
- "y",
4544
- "r",
4545
- "rok",
4546
- "lata",
4547
- "lat"
4548
- ]
4549
- },
4550
- decade: {
4551
- name: /* @__PURE__ */ __name((c) => formatTime2("dekady", c), "name"),
4552
- abbreviation: "dek.",
4553
- matches: [
4554
- "dek",
4555
- "dekada",
4556
- "dekady",
4557
- "dekad"
4558
- ]
4559
- },
4560
- century: {
4561
- name: /* @__PURE__ */ __name((c) => formatTime2("wieki", c), "name"),
4562
- abbreviation: "w.",
4563
- matches: [
4564
- "c",
4565
- "wiek",
4566
- "wieki",
4567
- "wiek\xF3w"
4568
- ]
4569
- },
4570
- millennium: {
4571
- name: /* @__PURE__ */ __name((c) => formatTime2("tysi\u0105clecia", c), "name"),
4572
- abbreviation: "tys.",
4573
- matches: [
4574
- "mil",
4575
- "tys",
4576
- "tysi\u0105clecie",
4577
- "tysi\u0105clecia",
4578
- "tysi\u0105cleci"
4579
- ]
4580
- }
4581
- }
4582
- };
4583
- var UnitsMap3 = {
4584
- \u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B: [
4585
- "\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4586
- "\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B",
4587
- "\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434"
4588
- ],
4589
- \u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B: [
4590
- "\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4591
- "\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B",
4592
- "\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434"
4593
- ],
4594
- \u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B: [
4595
- "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4596
- "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B",
4597
- "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"
4598
- ],
4599
- \u0441\u0435\u043A\u0443\u043D\u0434\u044B: [
4600
- "\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4601
- "\u0441\u0435\u043A\u0443\u043D\u0434\u044B",
4602
- "\u0441\u0435\u043A\u0443\u043D\u0434"
4603
- ],
4604
- \u043C\u0438\u043D\u0443\u0442\u044B: [
4605
- "\u043C\u0438\u043D\u0443\u0442\u0430",
4606
- "\u043C\u0438\u043D\u0443\u0442\u044B",
4607
- "\u043C\u0438\u043D\u0443\u0442"
4608
- ],
4609
- \u0447\u0430\u0441\u044B: [
4610
- "\u0447\u0430\u0441",
4611
- "\u0447\u0430\u0441\u0430",
4612
- "\u0447\u0430\u0441\u043E\u0432"
4613
- ],
4614
- \u0434\u043D\u0438: [
4615
- "\u0434\u0435\u043D\u044C",
4616
- "\u0434\u043D\u044F",
4617
- "\u0434\u043D\u0435\u0439"
4618
- ],
4619
- \u043D\u0435\u0434\u0435\u043B\u0438: [
4620
- "\u043D\u0435\u0434\u0435\u043B\u044F",
4621
- "\u043D\u0435\u0434\u0435\u043B\u0438",
4622
- "\u043D\u0435\u0434\u0435\u043B\u044C"
4623
- ],
4624
- \u043C\u0435\u0441\u044F\u0446\u044B: [
4625
- "\u043C\u0435\u0441\u044F\u0446",
4626
- "\u043C\u0435\u0441\u044F\u0446\u0430",
4627
- "\u043C\u0435\u0441\u044F\u0446\u0435\u0432"
4628
- ],
4629
- \u0433\u043E\u0434\u044B: [
4630
- "\u0433\u043E\u0434",
4631
- "\u0433\u043E\u0434\u0430",
4632
- "\u043B\u0435\u0442"
4633
- ],
4634
- \u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u044F: [
4635
- "\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0435",
4636
- "\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u044F",
4637
- "\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0439"
4638
- ],
4639
- \u0432\u0435\u043A\u0430: [
4640
- "\u0432\u0435\u043A",
4641
- "\u0432\u0435\u043A\u0430",
4642
- "\u0432\u0435\u043A\u043E\u0432"
4643
- ],
4644
- \u0442\u044B\u0441\u044F\u0447\u0435\u043B\u0435\u0442\u0438\u044F: [
4645
- "\u0442\u044B\u0441\u044F\u0447\u0435\u043B\u0435\u0442\u0438\u0435",
4646
- "\u0442\u044B\u0441\u044F\u0447\u0435\u043B\u0435\u0442\u0438\u044F",
4647
- "\u0442\u044B\u0441\u044F\u0447\u0435\u043B\u0435\u0442\u0438\u0439"
4648
- ]
4649
- };
4650
- function formatTime3(unit, count) {
4651
- const words = UnitsMap3[unit];
4652
- const lastDigit = count % 10;
4653
- const lastTwoDigits = count % 100;
4654
- let word;
4655
- if (lastTwoDigits >= 11 && lastTwoDigits <= 19) word = words[2];
4656
- else if (lastDigit === 1) word = words[0];
4657
- else if (lastDigit >= 2 && lastDigit <= 4) word = words[1];
4658
- else word = words[2];
4659
- return word || "";
4660
- }
4661
- __name(formatTime3, "formatTime3");
4662
- var ru_default = {
4663
- decimal: ".",
4664
- and: "\u0438",
4665
- units: {
4666
- nanosecond: {
4667
- name: /* @__PURE__ */ __name((c) => formatTime3("\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B", c), "name"),
4668
- abbreviation: "\u043D\u0441",
4669
- matches: [
4670
- "\u043D\u0441",
4671
- "\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4672
- "\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434",
4673
- "\u043D\u0430\u043D\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B"
4674
- ]
4675
- },
4676
- microsecond: {
4677
- name: /* @__PURE__ */ __name((c) => formatTime3("\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B", c), "name"),
4678
- abbreviation: "\u043C\u043A\u0441",
4679
- matches: [
4680
- "\u043C\u043A\u0441",
4681
- "\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4682
- "\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434",
4683
- "\u043C\u0438\u043A\u0440\u043E\u0441\u0435\u043A\u0443\u043D\u0434\u044B"
4684
- ]
4685
- },
4686
- millisecond: {
4687
- name: /* @__PURE__ */ __name((c) => formatTime3("\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B", c), "name"),
4688
- abbreviation: "\u043C\u0441",
4689
- matches: [
4690
- "\u043C\u0441",
4691
- "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4692
- "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434",
4693
- "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B",
4694
- "\u043C\u0441\u0435\u043A"
4695
- ]
4696
- },
4697
- second: {
4698
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0441\u0435\u043A\u0443\u043D\u0434\u044B", c), "name"),
4699
- abbreviation: "\u0441",
4700
- matches: [
4701
- "\u0441",
4702
- "\u0441\u0435\u043A\u0443\u043D\u0434\u0430",
4703
- "\u0441\u0435\u043A\u0443\u043D\u0434",
4704
- "\u0441\u0435\u043A\u0443\u043D\u0434\u044B",
4705
- "\u0441\u0435\u043A"
4706
- ]
4707
- },
4708
- minute: {
4709
- name: /* @__PURE__ */ __name((c) => formatTime3("\u043C\u0438\u043D\u0443\u0442\u044B", c), "name"),
4710
- abbreviation: "\u043C",
4711
- matches: [
4712
- "\u043C",
4713
- "\u043C\u0438\u043D\u0443\u0442\u0430",
4714
- "\u043C\u0438\u043D\u0443\u0442\u044B",
4715
- "\u043C\u0438\u043D\u0443\u0442",
4716
- "\u043C\u0438\u043D"
4717
- ]
4718
- },
4719
- hour: {
4720
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0447\u0430\u0441\u044B", c), "name"),
4721
- abbreviation: "\u0447",
4722
- matches: [
4723
- "\u0447",
4724
- "\u0447\u0430\u0441",
4725
- "\u0447\u0430\u0441\u0430",
4726
- "\u0447\u0430\u0441\u043E\u0432"
4727
- ]
4728
- },
4729
- day: {
4730
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0434\u043D\u0438", c), "name"),
4731
- abbreviation: "\u0434",
4732
- matches: [
4733
- "\u0434",
4734
- "\u0434\u0435\u043D\u044C",
4735
- "\u0434\u043D\u044F",
4736
- "\u0434\u043D\u0435\u0439"
4737
- ]
4738
- },
4739
- week: {
4740
- name: /* @__PURE__ */ __name((c) => formatTime3("\u043D\u0435\u0434\u0435\u043B\u0438", c), "name"),
4741
- abbreviation: "\u043D",
4742
- matches: [
4743
- "\u043D",
4744
- "\u043D\u0435\u0434\u0435\u043B\u044F",
4745
- "\u043D\u0435\u0434\u0435\u043B\u0438",
4746
- "\u043D\u0435\u0434\u0435\u043B\u044C"
4747
- ]
4748
- },
4749
- month: {
4750
- name: /* @__PURE__ */ __name((c) => formatTime3("\u043C\u0435\u0441\u044F\u0446\u044B", c), "name"),
4751
- abbreviation: "\u043C\u0435\u0441",
4752
- matches: [
4753
- "\u043C\u0435\u0441",
4754
- "\u043C\u0435\u0441\u044F\u0446",
4755
- "\u043C\u0435\u0441\u044F\u0446\u0430",
4756
- "\u043C\u0435\u0441\u044F\u0446\u0435\u0432"
4757
- ]
4758
- },
4759
- year: {
4760
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0433\u043E\u0434\u044B", c), "name"),
4761
- abbreviation: "\u0433",
4762
- matches: [
4763
- "\u0433",
4764
- "\u0433\u043E\u0434",
4765
- "\u0433\u043E\u0434\u0430",
4766
- "\u043B\u0435\u0442",
4767
- "\u043B"
4768
- ]
4769
- },
4770
- decade: {
4771
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u044F", c), "name"),
4772
- abbreviation: "\u0434\u0441\u043B",
4773
- matches: [
4774
- "\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0435",
4775
- "\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u044F",
4776
- "\u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0439",
4777
- "\u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043B\u0435\u0442",
4778
- "\u0434\u0435\u0441\u044F\u0442\u043A\u0430 \u043B\u0435\u0442",
4779
- "\u0434\u0435\u0441\u044F\u0442\u043E\u043A \u043B\u0435\u0442"
4780
- ]
4781
- },
4782
- century: {
4783
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0432\u0435\u043A\u0430", c), "name"),
4784
- abbreviation: "\u0432\u043A",
4785
- matches: [
4786
- "\u0432\u0435\u043A",
4787
- "\u0432\u0435\u043A\u0430",
4788
- "\u0432\u0435\u043A\u043E\u0432"
4789
- ]
4790
- },
4791
- millennium: {
4792
- name: /* @__PURE__ */ __name((c) => formatTime3("\u0442\u044B\u0441\u044F\u0447\u0435\u043B\u0435\u0442\u0438\u044F", c), "name"),
4793
- abbreviation: "\u0442\u044B\u0441",
4794
- matches: [
4795
- "\u0442\u044B\u0441",
4796
- "\u0442\u044B\u0441\u044F\u0447\u0435\u043B\u0435\u0442\u0438\u0435",
4797
- "\u0442\u044B\u0441\u044F\u0447\u0430\u043B\u0435\u0442\u0438\u044F",
4798
- "\u0442\u044B\u0441\u044F\u0447\u0430\u043B\u0435\u0442\u0438\u0439",
4799
- "\u0442\u044B\u0441\u044F\u0447\u0430 \u043B\u0435\u0442",
4800
- "\u0442\u044B\u0441\u044F\u0447\u0438 \u043B\u0435\u0442",
4801
- "\u0442\u044B\u0441\u044F\u0447 \u043B\u0435\u0442"
4802
- ]
4803
- }
4804
- }
4805
- };
4806
- var zh_CN_default = {
4807
- decimal: ".",
4808
- and: "\u548C",
4809
- units: {
4810
- nanosecond: {
4811
- name: "\u7EB3\u79D2",
4812
- abbreviation: "ns",
4813
- matches: [
4814
- "\u7EB3\u79D2",
4815
- "ns"
4816
- ]
4817
- },
4818
- microsecond: {
4819
- name: "\u5FAE\u79D2",
4820
- abbreviation: "\u03BCs",
4821
- matches: [
4822
- "\u5FAE\u79D2",
4823
- "\u03BCs",
4824
- "us"
4825
- ]
4826
- },
4827
- millisecond: {
4828
- name: "\u6BEB\u79D2",
4829
- abbreviation: "ms",
4830
- matches: [
4831
- "\u6BEB\u79D2",
4832
- "ms"
4833
- ]
4834
- },
4835
- second: {
4836
- name: "\u79D2",
4837
- abbreviation: "s",
4838
- matches: [
4839
- "\u79D2",
4840
- "s"
4841
- ]
4842
- },
4843
- minute: {
4844
- name: "\u5206\u949F",
4845
- abbreviation: "\u5206",
4846
- matches: [
4847
- "\u5206\u949F",
4848
- "\u5206",
4849
- "m",
4850
- "min"
4851
- ]
4852
- },
4853
- hour: {
4854
- name: "\u5C0F\u65F6",
4855
- abbreviation: "\u65F6",
4856
- matches: [
4857
- "\u5C0F\u65F6",
4858
- "\u65F6",
4859
- "h",
4860
- "hour"
4861
- ]
4862
- },
4863
- day: {
4864
- name: "\u5929",
4865
- abbreviation: "\u5929",
4866
- matches: [
4867
- "\u5929",
4868
- "\u65E5",
4869
- "d",
4870
- "day"
4871
- ]
4872
- },
4873
- week: {
4874
- name: "\u5468",
4875
- abbreviation: "\u5468",
4876
- matches: [
4877
- "\u5468",
4878
- "\u661F\u671F",
4879
- "w",
4880
- "week"
4881
- ]
4882
- },
4883
- month: {
4884
- name: "\u4E2A\u6708",
4885
- abbreviation: "\u6708",
4886
- matches: [
4887
- "\u4E2A\u6708",
4888
- "\u6708",
4889
- "mo",
4890
- "month"
4891
- ]
4892
- },
4893
- year: {
4894
- name: "\u5E74",
4895
- abbreviation: "\u5E74",
4896
- matches: [
4897
- "\u5E74",
4898
- "y",
4899
- "year"
4900
- ]
4901
- },
4902
- decade: {
4903
- name: "\u5341\u5E74",
4904
- abbreviation: "\u5341\u5E74",
4905
- matches: [
4906
- "\u5341\u5E74",
4907
- "dec",
4908
- "decade"
4909
- ]
4910
- },
4911
- century: {
4912
- name: "\u4E16\u7EAA",
4913
- abbreviation: "\u4E16\u7EAA",
4914
- matches: [
4915
- "\u4E16\u7EAA",
4916
- "c",
4917
- "century"
4918
- ]
4919
- },
4920
- millennium: {
4921
- name: "\u5343\u5E74",
4922
- abbreviation: "\u5343\u5E74",
4923
- matches: [
4924
- "\u5343\u5E74",
4925
- "mil",
4926
- "millennium"
4927
- ]
4928
- }
4929
- }
4930
- };
4931
- var languages = {
4932
- cs: cs_default,
4933
- de: de_default,
4934
- en: en_default,
4935
- es: es_default,
4936
- fr: fr_default,
4937
- it: it_default,
4938
- mi: mi_default,
4939
- nl: nl_default,
4940
- pl: pl_default,
4941
- ru: ru_default,
4942
- "zh-CN": zh_CN_default
4943
- };
4944
- function makeLanguage(languageDefinition) {
4945
- const decimalSeparator = languageDefinition.decimal;
4946
- const thousandSeparator = decimalSeparator === "." ? "," : ".";
4947
- const matcherRegex = new RegExp(
4948
- // biome-ignore lint/style/useTemplate: Better readability
4949
- `(?![${decimalSeparator}${thousandSeparator}])[\\d${decimalSeparator}${thousandSeparator}]+|(?<=\\s|\\d)((?:-)?(` + // Units
4950
- Object.values(languageDefinition.units).flatMap(({ matches }) => matches).sort((a, b) => b.length - a.length).join("|") + "))",
4951
- "gi"
4952
- );
4953
- const timeUnits = Object.fromEntries(Object.entries(languageDefinition.units).flatMap(([unit, definition]) => [
4954
- unit,
4955
- ...definition.matches
4956
- ].map((m) => [
4957
- m,
4958
- {
4959
- ...definition,
4960
- ms: units[unit]
4961
- }
4962
- ])));
4963
- return {
4964
- andValue: languageDefinition.and,
4965
- decimalSeparator,
4966
- thousandSeparator,
4967
- matcherRegex,
4968
- timeUnits,
4969
- supportsAbbreviations: Object.values(timeUnits).every((u) => u.abbreviation)
4970
- };
4971
- }
4972
- __name(makeLanguage, "makeLanguage");
4973
- var languageCache = /* @__PURE__ */ new Map();
4974
- function getLanguage(localeOrLanguageDefinition) {
4975
- const languageDefinition = typeof localeOrLanguageDefinition === "string" ? languages[localeOrLanguageDefinition] : localeOrLanguageDefinition;
4976
- if (!languageDefinition) throw new Error("Invalid language");
4977
- const key = JSON.stringify(languageDefinition);
4978
- if (languageCache.has(key)) return languageCache.get(key);
4979
- const language = makeLanguage(languageDefinition);
4980
- languageCache.set(key, language);
4981
- return language;
4982
- }
4983
- __name(getLanguage, "getLanguage");
4984
- function formatUnit(unit, count, options) {
4985
- const { useAbbreviations, hideUnitNames, minimumDigits } = options;
4986
- const amount = count.toString().padStart(minimumDigits, "0");
4987
- if (hideUnitNames) return amount;
4988
- const name = pluraliseUnit(unit, count, options);
4989
- return `${amount}${useAbbreviations ? "" : " "}${name}`;
4990
- }
4991
- __name(formatUnit, "formatUnit");
4992
- function pluraliseUnit(unit, count, options) {
4993
- const { useAbbreviations } = options;
4994
- const factory = useAbbreviations && unit.abbreviation ? unit.abbreviation : unit.name;
4995
- return typeof factory === "function" ? factory(Math.abs(count)) : factory;
4996
- }
4997
- __name(pluraliseUnit, "pluraliseUnit");
4998
- var parseUnits = {
4999
- year: units.year,
5000
- day: units.day,
5001
- hour: units.hour,
5002
- minute: units.minute,
5003
- second: units.second,
5004
- millisecond: units.millisecond,
5005
- microsecond: units.microsecond,
5006
- nanosecond: units.nanosecond
5007
- };
5008
- function parseMilliseconds(milliseconds, includedUnits = Object.keys(parseUnits)) {
5009
- let remainingMs = milliseconds;
5010
- const parsed = {};
5011
- for (const key in parseUnits) {
5012
- const unit = key;
5013
- if (includedUnits.includes(unit)) {
5014
- parsed[unit] = Math.trunc(remainingMs / parseUnits[unit]);
5015
- remainingMs %= parseUnits[unit];
5016
- } else {
5017
- parsed[unit] = null;
5018
- }
5019
- }
5020
- return parsed;
5021
- }
5022
- __name(parseMilliseconds, "parseMilliseconds");
5023
- var defaultFormatOptions = {
5024
- hideUnitNames: false,
5025
- useAbbreviations: false,
5026
- includeZero: false,
5027
- includeMs: false,
5028
- includeSubMs: false,
5029
- includedUnits: [
5030
- "year",
5031
- "day",
5032
- "hour",
5033
- "minute",
5034
- "second"
5035
- ],
5036
- unitLimit: -1,
5037
- unitSeparator: " ",
5038
- minimumDigits: 0
5039
- };
5040
- function resolveFormatOptions(options) {
5041
- let { hideUnitNames = defaultFormatOptions.hideUnitNames, useAbbreviations = defaultFormatOptions.useAbbreviations, includeZero = defaultFormatOptions.includeZero, includeMs = defaultFormatOptions.includeMs, includeSubMs = defaultFormatOptions.includeSubMs, includedUnits = [
5042
- ...defaultFormatOptions.includedUnits
5043
- ], unitLimit = defaultFormatOptions.unitLimit, unitSeparator = defaultFormatOptions.unitSeparator, minimumDigits = defaultFormatOptions.minimumDigits } = options;
5044
- if (typeof includeMs !== "boolean") throw new Error("Invalid includeMs option");
5045
- if (typeof includeSubMs !== "boolean") throw new Error("Invalid includeSubMs option");
5046
- if (typeof hideUnitNames !== "boolean") throw new Error("Invalid hideUnitNames option");
5047
- if (typeof useAbbreviations !== "boolean") throw new Error("Invalid useAbbreviations option");
5048
- if (typeof includeZero !== "boolean") throw new Error("Invalid includeZero option");
5049
- if (!Array.isArray(includedUnits)) throw new Error("Invalid includedUnits option");
5050
- if (typeof unitLimit !== "number") throw new Error("Invalid unitLimit option");
5051
- if (typeof unitSeparator !== "string") throw new Error("Invalid unitSeparator option");
5052
- if (typeof minimumDigits !== "number") throw new Error("Invalid minimumDigits option");
5053
- if (includeSubMs) {
5054
- if (includeMs === false) throw new Error("Conflicting options: `includeSubMs` is true while `includeMs` is false.");
5055
- includeMs = true;
5056
- }
5057
- if (includeMs) includedUnits.push("millisecond");
5058
- if (includeSubMs) includedUnits.push("microsecond", "nanosecond");
5059
- return {
5060
- hideUnitNames,
5061
- useAbbreviations,
5062
- includeZero,
5063
- includedUnits,
5064
- unitLimit,
5065
- unitSeparator,
5066
- minimumDigits,
5067
- __transformDuration__: options.__transformDuration__
5068
- };
5069
- }
5070
- __name(resolveFormatOptions, "resolveFormatOptions");
5071
- var formatOptionsPresets = {
5072
- short: {
5073
- useAbbreviations: true,
5074
- unitLimit: 2
5075
- },
5076
- fullPrecision: {
5077
- includeMs: true,
5078
- includeSubMs: true
5079
- },
5080
- colonNotation: {
5081
- hideUnitNames: true,
5082
- unitLimit: 3,
5083
- includeZero: true,
5084
- includedUnits: [
5085
- "hour",
5086
- "minute",
5087
- "second"
5088
- ],
5089
- unitSeparator: ":",
5090
- minimumDigits: 2,
5091
- // I couldn't think of an option that would be better than this
5092
- __transformDuration__: /* @__PURE__ */ __name((duration) => duration.replace(/^00:/, ""), "__transformDuration__")
5093
- }
5094
- };
5095
- function resolveFormatPresetOptions(options = {}) {
5096
- if (typeof options === "string") options = {
5097
- extends: options
5098
- };
5099
- return {
5100
- ...options.extends && formatOptionsPresets[options.extends],
5101
- ...options,
5102
- preset: void 0
5103
- };
5104
- }
5105
- __name(resolveFormatPresetOptions, "resolveFormatPresetOptions");
5106
- function formatMilliseconds(milliseconds, language = getLanguage("en"), options = {}) {
5107
- const presetOptions = resolveFormatPresetOptions(options);
5108
- const resolvedOptions = resolveFormatOptions(presetOptions);
5109
- const { includedUnits } = resolvedOptions;
5110
- const time = parseMilliseconds(milliseconds, includedUnits);
5111
- const entries = [];
5112
- for (const key in time) {
5113
- const unit = key;
5114
- const value = time[unit];
5115
- entries.push({
5116
- unit: language.timeUnits[unit],
5117
- amount: value
5118
- });
5119
- }
5120
- const { includeZero } = resolvedOptions;
5121
- const filtered = entries.filter((entry) => {
5122
- if (entry.amount === null) return false;
5123
- if (entry.amount === 0) return includeZero;
5124
- return true;
5125
- });
5126
- const { unitLimit } = resolvedOptions;
5127
- const formatted = [];
5128
- for (let i = 0; i < filtered.length; i++) {
5129
- const entry = filtered.at(i);
5130
- if (unitLimit !== -1 && formatted.length >= unitLimit) break;
5131
- const format = formatUnit(entry.unit, entry.amount, resolvedOptions);
5132
- formatted.push(format);
5133
- }
5134
- const { unitSeparator, __transformDuration__ } = resolvedOptions;
5135
- const duration = formatted.join(unitSeparator) || null;
5136
- return duration && __transformDuration__ ? __transformDuration__(duration) : duration;
5137
- }
5138
- __name(formatMilliseconds, "formatMilliseconds");
5139
- function parseDuration(duration, language = getLanguage("en")) {
5140
- const matches = duration.toLowerCase().match(language.matcherRegex);
5141
- if (!matches || matches.length === 0) return 0;
5142
- let total = 0;
5143
- for (let i = 0; i < matches.length; i += 2) {
5144
- const [amount, unit] = matches.slice(i, i + 2);
5145
- const ms2 = language.timeUnits[unit]?.ms;
5146
- if (ms2) total += Number(amount) * ms2;
5147
- }
5148
- return total;
5149
- }
5150
- __name(parseDuration, "parseDuration");
5151
- function createMs(options = {}) {
5152
- const language = getLanguage(options.language ?? "en");
5153
- const defaultFormatOptions2 = (
5154
- //
5155
- resolveFormatPresetOptions(options.formatOptions)
5156
- );
5157
- function ms2(...args) {
5158
- switch (typeof args[0]) {
5159
- case "number": {
5160
- const [milliseconds, additionalOptions] = args;
5161
- if (Number.isNaN(milliseconds) || !Number.isFinite(milliseconds)) throw new TypeError("Expected a finite number");
5162
- if (milliseconds < 0) throw new TypeError("Expected a positive number");
5163
- const presetOptions = resolveFormatPresetOptions(additionalOptions);
5164
- const formatOptions = {
5165
- ...defaultFormatOptions2,
5166
- ...presetOptions
5167
- };
5168
- return formatMilliseconds(milliseconds, language, formatOptions);
5169
- }
5170
- case "string": {
5171
- const [duration] = args;
5172
- return parseDuration(duration, language) ?? 0;
5173
- }
5174
- default:
5175
- throw new TypeError("Expected a finite number or a string");
5176
- }
5177
- }
5178
- __name(ms2, "ms2");
5179
- return ms2;
5180
- }
5181
- __name(createMs, "createMs");
5182
- var ms = createMs({
5183
- language: "en"
5184
- });
5185
-
5186
- // ../decorators/src/memoizeSync.ts
5187
687
  function memoizeSync(arg = {}) {
5188
688
  const opts = typeof arg === "object" ? arg : {
5189
689
  maxAge: typeof arg === "number" ? arg : ms(arg)
@@ -5200,12 +700,12 @@ function memoizeSync(arg = {}) {
5200
700
  };
5201
701
  if (opts.instancesShareCache) {
5202
702
  Reflect.deleteProperty(options, "instancesShareCache");
5203
- descriptor.value = (0, import_memoizee.default)(orig, options);
703
+ descriptor.value = memoizee(orig, options);
5204
704
  } else {
5205
705
  const wmap = /* @__PURE__ */ new WeakMap();
5206
706
  descriptor.value = function(...args) {
5207
707
  const memoized = mapGetOrDefault(wmap, this, () => {
5208
- return (0, import_memoizee.default)(orig, options);
708
+ return memoizee(orig, options);
5209
709
  });
5210
710
  return memoized.apply(this, args);
5211
711
  };
@@ -5214,8 +714,6 @@ function memoizeSync(arg = {}) {
5214
714
  }, "decorator");
5215
715
  }
5216
716
  __name(memoizeSync, "memoizeSync");
5217
-
5218
- // ../decorators/src/lazyProp.ts
5219
717
  function lazyProp(targetOrTimeout, key, descriptor) {
5220
718
  if (typeof targetOrTimeout === "number" || typeof targetOrTimeout === "string") {
5221
719
  const maxAge = typeof targetOrTimeout === "number" ? targetOrTimeout : ms(targetOrTimeout);