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