standard-log 6.2.1 → 6.2.5

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.
Files changed (67) hide show
  1. package/dist/standard-log.js +648 -396
  2. package/dist/standard-log.js.gz +0 -0
  3. package/dist/standard-log.js.map +1 -1
  4. package/dist/standard-log.js.map.gz +0 -0
  5. package/lib/captureLogs.js +2 -2
  6. package/lib/captureLogs.js.map +1 -1
  7. package/lib/config.js +4 -4
  8. package/lib/config.js.map +1 -1
  9. package/lib/configForTest.js +2 -2
  10. package/lib/configForTest.js.map +1 -1
  11. package/lib/console/createConsoleLogReporter.js +4 -4
  12. package/lib/console/createConsoleLogReporter.js.map +1 -1
  13. package/lib/console/index.js +3 -3
  14. package/lib/console/index.js.map +1 -1
  15. package/lib/console/isConsoleDebugAvailable.js +2 -2
  16. package/lib/console/isConsoleDebugAvailable.js.map +1 -1
  17. package/lib/console/polyfilledConsole.js +2 -2
  18. package/lib/console/polyfilledConsole.js.map +1 -1
  19. package/lib/customLogLevel.js +3 -3
  20. package/lib/customLogLevel.js.map +1 -1
  21. package/lib/errors.d.ts +2 -2
  22. package/lib/errors.d.ts.map +1 -1
  23. package/lib/errors.js +9 -13
  24. package/lib/errors.js.map +1 -1
  25. package/lib/formatter/createTimestampFormatter.js +2 -2
  26. package/lib/formatter/createTimestampFormatter.js.map +1 -1
  27. package/lib/formatter/formatLogLevel.js +1 -1
  28. package/lib/formatter/formatLogLevel.js.map +1 -1
  29. package/lib/formatter/index.js +3 -3
  30. package/lib/formatter/index.js.map +1 -1
  31. package/lib/formatter/plainLogFormatter.js +1 -1
  32. package/lib/formatter/plainLogFormatter.js.map +1 -1
  33. package/lib/getDefaultReporter.browser.js +1 -1
  34. package/lib/getDefaultReporter.browser.js.map +1 -1
  35. package/lib/getDefaultReporter.js +1 -1
  36. package/lib/getDefaultReporter.js.map +1 -1
  37. package/lib/getLogger.js +9 -9
  38. package/lib/getLogger.js.map +1 -1
  39. package/lib/getLoggers.js +1 -1
  40. package/lib/getLoggers.js.map +1 -1
  41. package/lib/index.js +15 -15
  42. package/lib/index.js.map +1 -1
  43. package/lib/logLevelFn.js +5 -5
  44. package/lib/logLevelFn.js.map +1 -1
  45. package/lib/logReporter.js +3 -3
  46. package/lib/logReporter.js.map +1 -1
  47. package/lib/logReporterInternal.js +1 -1
  48. package/lib/logReporterInternal.js.map +1 -1
  49. package/lib/memory/MemoryLogReporter.js +4 -4
  50. package/lib/memory/MemoryLogReporter.js.map +1 -1
  51. package/lib/memory/index.js +2 -2
  52. package/lib/memory/index.js.map +1 -1
  53. package/lib/memory/toInspectStringForObject.js +1 -1
  54. package/lib/memory/toInspectStringForObject.js.map +1 -1
  55. package/lib/store.js +3 -3
  56. package/lib/store.js.map +1 -1
  57. package/lib/testUtil.js +1 -1
  58. package/lib/testUtil.js.map +1 -1
  59. package/lib/writeToReporters.js +1 -1
  60. package/lib/writeToReporters.js.map +1 -1
  61. package/libm/errors.d.ts +2 -2
  62. package/libm/errors.d.ts.map +1 -1
  63. package/libm/errors.js +7 -2
  64. package/libm/errors.js.map +1 -1
  65. package/package.json +9 -9
  66. package/src/errors.ts +3 -3
  67. package/CHANGELOG.md +0 -702
@@ -2,6 +2,27 @@ var StandardLog;
2
2
  /******/ (function() { // webpackBootstrap
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
+ /***/ "../../node_modules/is-buffer/index.js":
6
+ /*!*********************************************!*\
7
+ !*** ../../node_modules/is-buffer/index.js ***!
8
+ \*********************************************/
9
+ /***/ (function(module) {
10
+
11
+ /*!
12
+ * Determine if an object is a Buffer
13
+ *
14
+ * @author Feross Aboukhadijeh <https://feross.org>
15
+ * @license MIT
16
+ */
17
+
18
+ module.exports = function isBuffer (obj) {
19
+ return obj != null && obj.constructor != null &&
20
+ typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
21
+ }
22
+
23
+
24
+ /***/ }),
25
+
5
26
  /***/ "../../node_modules/is-node/index.js":
6
27
  /*!*******************************************!*\
7
28
  !*** ../../node_modules/is-node/index.js ***!
@@ -17,22 +38,25 @@ exports = module.exports = !!(typeof process !== 'undefined' && process.versions
17
38
 
18
39
  /***/ }),
19
40
 
20
- /***/ "../../node_modules/iso-error/lib/index.js":
41
+ /***/ "../../node_modules/iso-error/cjs/index.js":
21
42
  /*!*************************************************!*\
22
- !*** ../../node_modules/iso-error/lib/index.js ***!
43
+ !*** ../../node_modules/iso-error/cjs/index.js ***!
23
44
  \*************************************************/
24
- /***/ (function(__unused_webpack_module, exports) {
45
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
25
46
 
26
47
  "use strict";
27
48
 
49
+ /* eslint-disable @typescript-eslint/unbound-method */
28
50
  var __extends = (this && this.__extends) || (function () {
29
51
  var extendStatics = function (d, b) {
30
52
  extendStatics = Object.setPrototypeOf ||
31
53
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
54
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
33
55
  return extendStatics(d, b);
34
56
  };
35
57
  return function (d, b) {
58
+ if (typeof b !== "function" && b !== null)
59
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
36
60
  extendStatics(d, b);
37
61
  function __() { this.constructor = d; }
38
62
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -60,14 +84,32 @@ var __rest = (this && this.__rest) || function (s, e) {
60
84
  }
61
85
  return t;
62
86
  };
63
- var __spreadArrays = (this && this.__spreadArrays) || function () {
64
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
65
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
66
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
67
- r[k] = a[j];
68
- return r;
69
- };
70
87
  Object.defineProperty(exports, "__esModule", ({ value: true }));
88
+ exports.ModuleError = exports.IsoError = void 0;
89
+ //#region captureStackTrace polyfill
90
+ // istanbul ignore next
91
+ if (!Error.captureStackTrace) {
92
+ Error.captureStackTrace = function (error) {
93
+ var container = new Error();
94
+ Object.defineProperty(error, 'stack', {
95
+ configurable: true,
96
+ get: function () {
97
+ // Replace property with value for faster future accesses.
98
+ defineStack(this, container.stack);
99
+ return container.stack;
100
+ },
101
+ set: function (stack) { defineStack(error, stack); },
102
+ });
103
+ };
104
+ }
105
+ // istanbul ignore next
106
+ function defineStack(target, value) {
107
+ Object.defineProperty(target, 'stack', {
108
+ configurable: true,
109
+ value: value,
110
+ writable: true,
111
+ });
112
+ }
71
113
  var serializers = [];
72
114
  var deserializers = [];
73
115
  /**
@@ -75,82 +117,157 @@ var deserializers = [];
75
117
  */
76
118
  var IsoError = /** @class */ (function (_super) {
77
119
  __extends(IsoError, _super);
78
- function IsoError(message) {
120
+ function IsoError(message, options) {
79
121
  var _newTarget = this.constructor;
80
- var errors = [];
81
- for (var _i = 1; _i < arguments.length; _i++) {
82
- errors[_i - 1] = arguments[_i];
83
- }
84
122
  var _this = _super.call(this, message) || this;
85
- // restore prototype chain
123
+ /**
124
+ * Name of the error
125
+ */
126
+ Object.defineProperty(_this, "name", {
127
+ enumerable: true,
128
+ configurable: true,
129
+ writable: true,
130
+ value: void 0
131
+ });
132
+ /**
133
+ * Error cause
134
+ */
135
+ Object.defineProperty(_this, "cause", {
136
+ enumerable: true,
137
+ configurable: true,
138
+ writable: true,
139
+ value: void 0
140
+ });
141
+ //restore prototype chain
86
142
  var actualProto = _newTarget.prototype;
87
143
  _this.name = actualProto.constructor.name;
88
144
  // istanbul ignore next
89
145
  if (Object.setPrototypeOf)
90
146
  Object.setPrototypeOf(_this, actualProto);
147
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
91
148
  else
92
149
  _this.__proto__ = actualProto;
93
- if (errors.length > 0)
94
- _this.errors = errors.map(toIsoError);
150
+ if (options === null || options === void 0 ? void 0 : options.cause)
151
+ _this.cause = toIsoError(options.cause);
152
+ if (options === null || options === void 0 ? void 0 : options.ssf)
153
+ Error.captureStackTrace(_this, options.ssf);
95
154
  return _this;
96
155
  }
97
156
  /**
98
157
  * Create an IsoError with additional properties without the need to create a new class.
99
158
  * @param props properties of the IsoError
100
159
  */
101
- IsoError.create = function (props) {
102
- var message = props.message, _a = props.errors, errors = _a === void 0 ? [] : _a, rest = __rest(props, ["message", "errors"]);
103
- var err = new (IsoError.bind.apply(IsoError, __spreadArrays([void 0, message], errors)))();
104
- captureStackTrace(err, IsoError.create);
105
- return Object.assign(err, rest);
106
- };
107
- IsoError.stringify = function (err) {
108
- return this.serialize(err);
109
- };
160
+ Object.defineProperty(IsoError, "create", {
161
+ enumerable: false,
162
+ configurable: true,
163
+ writable: true,
164
+ value: function (props) {
165
+ var message = props.message, cause = props.cause, rest = __rest(props, ["message", "cause"]);
166
+ var err = new IsoError(message, { cause: cause, ssf: IsoError.create });
167
+ return Object.assign(err, rest);
168
+ }
169
+ });
170
+ Object.defineProperty(IsoError, "stringify", {
171
+ enumerable: false,
172
+ configurable: true,
173
+ writable: true,
174
+ value: function (err) {
175
+ return this.serialize(err);
176
+ }
177
+ });
178
+ Object.defineProperty(IsoError, "serialize", {
179
+ enumerable: false,
180
+ configurable: true,
181
+ writable: true,
182
+ value: function (err) {
183
+ return JSON.stringify(this.toSerializable(err));
184
+ }
185
+ });
110
186
  /**
111
- * @type P Additonal properties of the IsoError
187
+ * @type P Additional properties of the IsoError
112
188
  * @param text Json representation of a IsoError
113
189
  */
114
- IsoError.parse = function (text) {
115
- var json = JSON.parse(text);
116
- var err = deserializeError(json);
117
- captureStackTrace(err, IsoError.parse);
118
- return err;
119
- };
120
- IsoError.serialize = function (err) {
121
- return JSON.stringify(this.toSerializable(err));
122
- };
123
- IsoError.toSerializable = function (err) {
124
- return serializers.reduce(function (p, s) { return p || s(err); }, undefined) || toSerializableError(err);
125
- };
190
+ Object.defineProperty(IsoError, "parse", {
191
+ enumerable: false,
192
+ configurable: true,
193
+ writable: true,
194
+ value: function (text) {
195
+ return deserialize(IsoError.parse, text);
196
+ }
197
+ });
126
198
  /**
127
- * @type P Additonal properties of the IsoError
199
+ * @type P Additional properties of the IsoError
128
200
  * @param text Json representation of a IsoError
129
201
  */
130
- IsoError.deserialize = function (text) {
131
- var json = JSON.parse(text);
132
- var err = deserializeError(json);
133
- captureStackTrace(err, IsoError.deserialize);
134
- return err;
135
- };
136
- IsoError.fromSerializable = function (json) {
137
- var err = deserializeError(json);
138
- captureStackTrace(err, IsoError.fromSerializable);
139
- return err;
140
- };
141
- IsoError.addPlugin = function (_a) {
142
- var serialize = _a.toSerializable, deserialize = _a.fromSerializable;
143
- serializers.unshift(serialize);
144
- deserializers.unshift(deserialize);
145
- };
146
- IsoError.prototype.toString = function () { return IsoError.serialize(this); };
202
+ Object.defineProperty(IsoError, "deserialize", {
203
+ enumerable: false,
204
+ configurable: true,
205
+ writable: true,
206
+ value: function (text) {
207
+ return deserialize(IsoError.deserialize, text);
208
+ }
209
+ });
210
+ Object.defineProperty(IsoError, "toSerializable", {
211
+ enumerable: false,
212
+ configurable: true,
213
+ writable: true,
214
+ value: function (err) {
215
+ return serializers.reduce(function (p, s) { return p || s(err); }, undefined)
216
+ || toSerializableError(err);
217
+ }
218
+ });
219
+ Object.defineProperty(IsoError, "fromSerializable", {
220
+ enumerable: false,
221
+ configurable: true,
222
+ writable: true,
223
+ value: function (json) {
224
+ var err = deserializeError(json);
225
+ Error.captureStackTrace(err, IsoError.fromSerializable);
226
+ return err;
227
+ }
228
+ });
147
229
  /**
148
230
  * returns the error message including the error causes.
149
231
  */
150
- IsoError.trace = trace;
232
+ Object.defineProperty(IsoError, "trace", {
233
+ enumerable: false,
234
+ configurable: true,
235
+ writable: true,
236
+ value: function (err) {
237
+ return trace(err);
238
+ }
239
+ });
240
+ Object.defineProperty(IsoError, "addPlugin", {
241
+ enumerable: false,
242
+ configurable: true,
243
+ writable: true,
244
+ value: function (_a) {
245
+ var toSerializable = _a.toSerializable, fromSerializable = _a.fromSerializable;
246
+ serializers.unshift(toSerializable);
247
+ deserializers.unshift(fromSerializable);
248
+ }
249
+ });
250
+ Object.defineProperty(IsoError.prototype, "toString", {
251
+ enumerable: false,
252
+ configurable: true,
253
+ writable: true,
254
+ value: function () { return IsoError.serialize(this); }
255
+ });
256
+ Object.defineProperty(IsoError.prototype, "trace", {
257
+ enumerable: false,
258
+ configurable: true,
259
+ writable: true,
260
+ value: function () { return IsoError.trace(this); }
261
+ });
151
262
  return IsoError;
152
263
  }(Error));
153
264
  exports.IsoError = IsoError;
265
+ function deserialize(fn, text) {
266
+ var json = JSON.parse(text);
267
+ var err = deserializeError(json);
268
+ Error.captureStackTrace(err, fn);
269
+ return err;
270
+ }
154
271
  function deserializeError(json) {
155
272
  var err = undefined;
156
273
  for (var _i = 0, deserializers_1 = deserializers; _i < deserializers_1.length; _i++) {
@@ -159,17 +276,33 @@ function deserializeError(json) {
159
276
  if (err)
160
277
  break;
161
278
  }
162
- return err || deserializeIsoError(json);
279
+ return err || defaultDeserializeError(json);
163
280
  }
164
- function deserializeIsoError(_a) {
165
- var _b = _a.message, message = _b === void 0 ? '' : _b, _c = _a.errors, errors = _c === void 0 ? [] : _c, rest = __rest(_a, ["message", "errors"]);
166
- return Object.assign(new (IsoError.bind.apply(IsoError, __spreadArrays([void 0, message], errors)))(), rest);
281
+ function defaultDeserializeError(json) {
282
+ if (json.name === 'AggregateError') {
283
+ var _a = json, message_1 = _a.message, errors = _a.errors, rest_1 = __rest(_a, ["message", "errors"]);
284
+ // @ts-ignore
285
+ return Object.assign(new AggregateError(errors, message_1), rest_1);
286
+ }
287
+ var _b = json, message = _b.message, cause = _b.cause, rest = __rest(_b, ["message", "cause"]);
288
+ var causeError = cause ? deserializeError(cause) : undefined;
289
+ if (json.name === 'Error') {
290
+ return Object.assign(new Error(message), causeError ? __assign(__assign({}, rest), { cause: causeError }) : rest);
291
+ }
292
+ // @ts-ignore
293
+ return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);
167
294
  }
168
295
  function toSerializableError(err) {
169
- var message = err.message, _a = err.errors, errors = _a === void 0 ? [] : _a;
170
- return __assign(__assign({}, err), { name: err.constructor.name, message: message, errors: errors.map(toSerializableError) });
296
+ if (__webpack_require__.g.AggregateError && err instanceof AggregateError) {
297
+ return __assign(__assign({}, err), { name: err.constructor.name, message: err.message, errors: err.errors.map(toSerializableError) });
298
+ }
299
+ if (err instanceof Error) {
300
+ var message = err.message, cause = err.cause;
301
+ return cause
302
+ ? __assign(__assign({}, err), { name: err.constructor.name, message: message, cause: toSerializableError(cause) }) : __assign(__assign({}, err), { name: err.constructor.name, message: message });
303
+ }
304
+ return err;
171
305
  }
172
- exports.toSerializableError = toSerializableError;
173
306
  // NOTE: In this function I have to to Object.assign to keep the err instance and its stack trace.
174
307
  function toIsoError(err) {
175
308
  if (err instanceof IsoError)
@@ -179,11 +312,29 @@ function toIsoError(err) {
179
312
  return Object.assign(err, { name: err.constructor.name !== 'Object' ? err.constructor.name : err.name });
180
313
  }
181
314
  function trace(err) {
182
- var messages = ["" + err.name + (err.module ? "(" + err.module + ")" : '') + ": " + err.message];
183
- if (err.errors)
315
+ var messages = [];
316
+ if (err instanceof ModuleError) {
317
+ messages.push("".concat(err.name, "(").concat(err.module, "): ").concat(err.message));
318
+ }
319
+ else if (err instanceof Error) {
320
+ messages.push("".concat(err.name, ": ").concat(err.message));
321
+ }
322
+ if (__webpack_require__.g.AggregateError && err instanceof AggregateError) {
184
323
  err.errors.forEach(function (e) { return messages.push.apply(messages, trace(e).split('\n').map(function (s) { return ' ' + s; })); });
324
+ }
325
+ if (err instanceof Error) {
326
+ if (hasCause(err))
327
+ messages.push.apply(messages, trace(err.cause).split('\n').map(function (s) { return ' ' + s; }));
328
+ }
329
+ else {
330
+ messages.push(typeof err === 'string' ? err : JSON.stringify(err));
331
+ }
185
332
  return messages.join('\n');
186
333
  }
334
+ function hasCause(x) {
335
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
336
+ return !!x.cause;
337
+ }
187
338
  /**
188
339
  * An IsoError with a module property.
189
340
  */
@@ -192,39 +343,19 @@ var ModuleError = /** @class */ (function (_super) {
192
343
  /**
193
344
  * @param module The module that defines this error.
194
345
  */
195
- function ModuleError(module, description) {
196
- var errors = [];
197
- for (var _i = 2; _i < arguments.length; _i++) {
198
- errors[_i - 2] = arguments[_i];
199
- }
200
- var _this = _super.apply(this, __spreadArrays([description], errors)) || this;
201
- _this.module = module;
346
+ function ModuleError(module, message, options) {
347
+ var _this = _super.call(this, message, options) || this;
348
+ Object.defineProperty(_this, "module", {
349
+ enumerable: true,
350
+ configurable: true,
351
+ writable: true,
352
+ value: module
353
+ });
202
354
  return _this;
203
355
  }
204
356
  return ModuleError;
205
357
  }(IsoError));
206
358
  exports.ModuleError = ModuleError;
207
- // istanbul ignore next
208
- var captureStackTrace = Error.captureStackTrace || function (error) {
209
- var container = new Error();
210
- Object.defineProperty(error, 'stack', {
211
- configurable: true,
212
- get: function () {
213
- // Replace property with value for faster future accesses.
214
- defineStack(this, container.stack);
215
- return container.stack;
216
- },
217
- set: function (stack) { defineStack(error, stack); },
218
- });
219
- };
220
- // istanbul ignore next
221
- function defineStack(target, value) {
222
- Object.defineProperty(target, 'stack', {
223
- configurable: true,
224
- value: value,
225
- writable: true,
226
- });
227
- }
228
359
  //# sourceMappingURL=index.js.map
229
360
 
230
361
  /***/ }),
@@ -401,15 +532,16 @@ function plural(ms, msAbs, n, name) {
401
532
 
402
533
  /***/ }),
403
534
 
404
- /***/ "../../node_modules/tersify/lib/constants.browser.js":
535
+ /***/ "../../node_modules/tersify/cjs/constants.browser.js":
405
536
  /*!***********************************************************!*\
406
- !*** ../../node_modules/tersify/lib/constants.browser.js ***!
537
+ !*** ../../node_modules/tersify/cjs/constants.browser.js ***!
407
538
  \***********************************************************/
408
539
  /***/ (function(__unused_webpack_module, exports) {
409
540
 
410
541
  "use strict";
411
542
 
412
543
  Object.defineProperty(exports, "__esModule", ({ value: true }));
544
+ exports.defaultOptions = exports.EOL = void 0;
413
545
  // istanbul ignore file
414
546
  exports.EOL = '\n';
415
547
  exports.defaultOptions = { maxLength: 120, references: [] };
@@ -417,15 +549,16 @@ exports.defaultOptions = { maxLength: 120, references: [] };
417
549
 
418
550
  /***/ }),
419
551
 
420
- /***/ "../../node_modules/tersify/lib/hasTersifyFn.js":
552
+ /***/ "../../node_modules/tersify/cjs/hasTersifyFn.js":
421
553
  /*!******************************************************!*\
422
- !*** ../../node_modules/tersify/lib/hasTersifyFn.js ***!
554
+ !*** ../../node_modules/tersify/cjs/hasTersifyFn.js ***!
423
555
  \******************************************************/
424
556
  /***/ (function(__unused_webpack_module, exports) {
425
557
 
426
558
  "use strict";
427
559
 
428
560
  Object.defineProperty(exports, "__esModule", ({ value: true }));
561
+ exports.hasTersifyFn = void 0;
429
562
  function hasTersifyFn(obj) {
430
563
  return typeof obj['tersify'] === 'function';
431
564
  }
@@ -434,27 +567,35 @@ exports.hasTersifyFn = hasTersifyFn;
434
567
 
435
568
  /***/ }),
436
569
 
437
- /***/ "../../node_modules/tersify/lib/index.js":
570
+ /***/ "../../node_modules/tersify/cjs/index.js":
438
571
  /*!***********************************************!*\
439
- !*** ../../node_modules/tersify/lib/index.js ***!
572
+ !*** ../../node_modules/tersify/cjs/index.js ***!
440
573
  \***********************************************/
441
574
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
442
575
 
443
576
  "use strict";
444
577
 
445
- function __export(m) {
446
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
447
- }
578
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
579
+ if (k2 === undefined) k2 = k;
580
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
581
+ }) : (function(o, m, k, k2) {
582
+ if (k2 === undefined) k2 = k;
583
+ o[k2] = m[k];
584
+ }));
585
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
586
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
587
+ };
448
588
  Object.defineProperty(exports, "__esModule", ({ value: true }));
449
- __export(__webpack_require__(/*! ./tersible */ "../../node_modules/tersify/lib/tersible.js"));
450
- __export(__webpack_require__(/*! ./tersify */ "../../node_modules/tersify/lib/tersify.js"));
589
+ __exportStar(__webpack_require__(/*! ./tersible */ "../../node_modules/tersify/cjs/tersible.js"), exports);
590
+ __exportStar(__webpack_require__(/*! ./tersify */ "../../node_modules/tersify/cjs/tersify.js"), exports);
591
+ __exportStar(__webpack_require__(/*! ./types */ "../../node_modules/tersify/cjs/types.js"), exports);
451
592
  //# sourceMappingURL=index.js.map
452
593
 
453
594
  /***/ }),
454
595
 
455
- /***/ "../../node_modules/tersify/lib/tersible.js":
596
+ /***/ "../../node_modules/tersify/cjs/tersible.js":
456
597
  /*!**************************************************!*\
457
- !*** ../../node_modules/tersify/lib/tersible.js ***!
598
+ !*** ../../node_modules/tersify/cjs/tersible.js ***!
458
599
  \**************************************************/
459
600
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
460
601
 
@@ -464,17 +605,20 @@ var __extends = (this && this.__extends) || (function () {
464
605
  var extendStatics = function (d, b) {
465
606
  extendStatics = Object.setPrototypeOf ||
466
607
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
467
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
608
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
468
609
  return extendStatics(d, b);
469
610
  };
470
611
  return function (d, b) {
612
+ if (typeof b !== "function" && b !== null)
613
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
471
614
  extendStatics(d, b);
472
615
  function __() { this.constructor = d; }
473
616
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
474
617
  };
475
618
  })();
476
619
  Object.defineProperty(exports, "__esModule", ({ value: true }));
477
- var tersify_1 = __webpack_require__(/*! ./tersify */ "../../node_modules/tersify/lib/tersify.js");
620
+ exports.tersible = exports.Tersiblized = void 0;
621
+ var tersify_1 = __webpack_require__(/*! ./tersify */ "../../node_modules/tersify/cjs/tersify.js");
478
622
  /**
479
623
  * Create a Tersible mixin class
480
624
  * NOTE: `this` in `tersify` is not typed.
@@ -495,9 +639,14 @@ function Tersiblized(Base, tersify) {
495
639
  }
496
640
  return _super.apply(this, args) || this;
497
641
  }
498
- class_1.prototype.tersify = function (options) {
499
- return tersify.call(this, options);
500
- };
642
+ Object.defineProperty(class_1.prototype, "tersify", {
643
+ enumerable: false,
644
+ configurable: true,
645
+ writable: true,
646
+ value: function (options) {
647
+ return tersify.call(this, options);
648
+ }
649
+ });
501
650
  return class_1;
502
651
  }(Base));
503
652
  }
@@ -527,9 +676,9 @@ exports.tersible = tersible;
527
676
 
528
677
  /***/ }),
529
678
 
530
- /***/ "../../node_modules/tersify/lib/tersify.js":
679
+ /***/ "../../node_modules/tersify/cjs/tersify.js":
531
680
  /*!*************************************************!*\
532
- !*** ../../node_modules/tersify/lib/tersify.js ***!
681
+ !*** ../../node_modules/tersify/cjs/tersify.js ***!
533
682
  \*************************************************/
534
683
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
535
684
 
@@ -546,29 +695,32 @@ var __assign = (this && this.__assign) || function () {
546
695
  };
547
696
  return __assign.apply(this, arguments);
548
697
  };
549
- var __spreadArrays = (this && this.__spreadArrays) || function () {
550
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
551
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
552
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
553
- r[k] = a[j];
554
- return r;
698
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
699
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
700
+ if (ar || !(i in from)) {
701
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
702
+ ar[i] = from[i];
703
+ }
704
+ }
705
+ return to.concat(ar || Array.prototype.slice.call(from));
555
706
  };
556
707
  var __importDefault = (this && this.__importDefault) || function (mod) {
557
708
  return (mod && mod.__esModule) ? mod : { "default": mod };
558
709
  };
559
710
  Object.defineProperty(exports, "__esModule", ({ value: true }));
560
- var is_buffer_1 = __importDefault(__webpack_require__(/*! is-buffer */ "../../node_modules/tersify/node_modules/is-buffer/index.js"));
711
+ exports.tersify = exports.defaultTersify = void 0;
712
+ var is_buffer_1 = __importDefault(__webpack_require__(/*! is-buffer */ "../../node_modules/is-buffer/index.js"));
561
713
  var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/unpartial/lib/index.js");
562
- var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/lib/constants.browser.js");
563
- var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/lib/hasTersifyFn.js");
564
- var tersifyFunction_1 = __webpack_require__(/*! ./tersifyFunction */ "../../node_modules/tersify/lib/tersifyFunction.browser.js");
565
- var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/lib/trim.js");
714
+ var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/cjs/constants.browser.js");
715
+ var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/cjs/hasTersifyFn.js");
716
+ var tersifyFunction_1 = __webpack_require__(/*! ./tersifyFunction */ "../../node_modules/tersify/cjs/tersifyFunction.browser.js");
717
+ var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/cjs/trim.js");
566
718
  function defaultTersify(options) {
567
719
  return tersify(this, options);
568
720
  }
569
721
  exports.defaultTersify = defaultTersify;
570
722
  function tersify(obj, options) {
571
- var context = unpartial_1.required(constants_1.defaultOptions, options, { path: [], references: [] });
723
+ var context = (0, unpartial_1.required)(constants_1.defaultOptions, options, { path: [], references: [] });
572
724
  return tersifyValue(context, obj, context.maxLength);
573
725
  }
574
726
  exports.tersify = tersify;
@@ -577,7 +729,7 @@ function tersifyValue(context, value, length) {
577
729
  var func = tersifyFactory[valueType];
578
730
  // istanbul ignore next
579
731
  if (!func)
580
- throw new Error("Can't find fn for " + JSON.stringify(value));
732
+ throw new Error("Can't find fn for ".concat(JSON.stringify(value)));
581
733
  return func(context, value, length);
582
734
  }
583
735
  function getType(value) {
@@ -591,7 +743,7 @@ function getType(value) {
591
743
  return 'Array';
592
744
  if (value instanceof Error)
593
745
  return 'Error';
594
- if (is_buffer_1.default(value))
746
+ if ((0, is_buffer_1.default)(value))
595
747
  return 'Buffer';
596
748
  var type = typeof value;
597
749
  if (type === 'object' && Object.getPrototypeOf(value) !== Object.prototype)
@@ -616,45 +768,45 @@ var tersifyFactory = {
616
768
  'Error': tersifyError
617
769
  };
618
770
  function tersifyLiteral(context, node, length) {
619
- return trim_1.trim(context, String(node), length);
771
+ return (0, trim_1.trim)(context, String(node), length);
620
772
  }
621
773
  function tersifyDate(context, node, length) {
622
- return trim_1.trim(context, node.toISOString(), length);
774
+ return (0, trim_1.trim)(context, node.toISOString(), length);
623
775
  }
624
776
  function tersifyRegExp(context, node, length) {
625
- return trim_1.trim(context, String(node), length);
777
+ return (0, trim_1.trim)(context, String(node), length);
626
778
  }
627
779
  function tersifyString(context, value, length) {
628
- return trim_1.trim(context, "'" + value + "'", length);
780
+ return (0, trim_1.trim)(context, "'".concat(value, "'"), length);
629
781
  }
630
782
  function tersifySymbol(context, node, length) {
631
783
  if (context.raw)
632
784
  return node.toString();
633
- return trim_1.trim(context, node.toString().replace('Symbol(', 'Sym('), length);
785
+ return (0, trim_1.trim)(context, node.toString().replace('Symbol(', 'Sym('), length);
634
786
  }
635
787
  function tersifyBigint(context, value, length) {
636
- return trim_1.trim(context, String(value) + 'n', length);
788
+ return (0, trim_1.trim)(context, String(value) + 'n', length);
637
789
  }
638
790
  function tersifyError(context, node, length) {
639
791
  var errorName = node.constructor.name;
640
792
  // 7 = length of `Error()`
641
- var trimmedMsg = trim_1.trim(context, "'" + node.message + "'", length - 7);
793
+ var trimmedMsg = (0, trim_1.trim)(context, "'".concat(node.message, "'"), length - 7);
642
794
  if (!node.message)
643
- return trim_1.trim(context, errorName + "()", length);
795
+ return (0, trim_1.trim)(context, "".concat(errorName, "()"), length);
644
796
  if (trimmedMsg.length === 0)
645
- return trim_1.trim(context, errorName + "( )", length);
646
- return trim_1.trim(context, errorName + "(" + trimmedMsg + ")", length);
797
+ return (0, trim_1.trim)(context, "".concat(errorName, "( )"), length);
798
+ return (0, trim_1.trim)(context, "".concat(errorName, "(").concat(trimmedMsg, ")"), length);
647
799
  }
648
800
  function tersifyBuffer(context, node, length) {
649
- return trim_1.trim(context, node.inspect(), length);
801
+ return (0, trim_1.trim)(context, node.inspect(), length);
650
802
  }
651
803
  function tersifyArray(context, value, length) {
652
804
  var ref = context.references.find(function (r) { return r.value === value; });
653
805
  if (ref) {
654
- return "ref(" + ref.path.join(', ') + ")";
806
+ return "ref(".concat(ref.path.join(', '), ")");
655
807
  }
656
808
  context.references.push({ value: value, path: context.path });
657
- if (!context.raw && hasTersifyFn_1.hasTersifyFn(value) && value.tersify !== defaultTersify) {
809
+ if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(value) && value.tersify !== defaultTersify) {
658
810
  return value.tersify({ maxLength: length });
659
811
  }
660
812
  if (value.length === 0)
@@ -663,7 +815,7 @@ function tersifyArray(context, value, length) {
663
815
  var entriesLen = 0;
664
816
  var commaAndSpaceLen = 2;
665
817
  var entries = value.reduce(function (entries, v, i) {
666
- var path = __spreadArrays(context.path, [i]);
818
+ var path = __spreadArray(__spreadArray([], context.path, true), [i], false);
667
819
  var str = tersifyValue(__assign(__assign({}, context), { path: path }), v, length - entriesLen);
668
820
  entriesLen += str.length;
669
821
  if (i !== value.length - 1)
@@ -671,18 +823,18 @@ function tersifyArray(context, value, length) {
671
823
  entries.push(str);
672
824
  return entries;
673
825
  }, []);
674
- var content = trim_1.trim(context, entries.join(', '), length - bracketLen);
826
+ var content = (0, trim_1.trim)(context, entries.join(', '), length - bracketLen);
675
827
  if (content.length === 0)
676
- return trim_1.trim(context, "[ ]", length);
677
- return "[" + content + "]";
828
+ return (0, trim_1.trim)(context, "[ ]", length);
829
+ return "[".concat(content, "]");
678
830
  }
679
831
  function tersifyObject(context, value, length) {
680
832
  var ref = context.references.find(function (r) { return r.value === value; });
681
833
  if (ref) {
682
- return "ref(" + ref.path.join(', ') + ")";
834
+ return "ref(".concat(ref.path.join(', '), ")");
683
835
  }
684
836
  context.references.push({ value: value, path: context.path });
685
- if (!context.raw && hasTersifyFn_1.hasTersifyFn(value) && value.tersify !== defaultTersify) {
837
+ if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(value) && value.tersify !== defaultTersify) {
686
838
  return value.tersify({ maxLength: length });
687
839
  }
688
840
  var bracketLen = 4;
@@ -699,19 +851,19 @@ function tersifyObject(context, value, length) {
699
851
  }, []);
700
852
  var hasSkippedProps = keys.length > props.length;
701
853
  var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
702
- var trimmedContent = trim_1.trim(context, content, length - bracketLen);
854
+ var trimmedContent = (0, trim_1.trim)(context, content, length - bracketLen);
703
855
  return keys.length === 0 ? '{}' :
704
856
  trimmedContent.length === 0 ?
705
- trim_1.trim(context, "{ }", length) :
706
- "{ " + trimmedContent + " }";
857
+ (0, trim_1.trim)(context, "{ }", length) :
858
+ "{ ".concat(trimmedContent, " }");
707
859
  }
708
860
  function tersifyInstance(context, value, length) {
709
861
  var ref = context.references.find(function (r) { return r.value === value; });
710
862
  if (ref) {
711
- return "ref(" + ref.path.join(', ') + ")";
863
+ return "ref(".concat(ref.path.join(', '), ")");
712
864
  }
713
865
  context.references.push({ value: value, path: context.path });
714
- if (!context.raw && hasTersifyFn_1.hasTersifyFn(value) && value.tersify !== defaultTersify) {
866
+ if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(value) && value.tersify !== defaultTersify) {
715
867
  return value.tersify({ maxLength: length });
716
868
  }
717
869
  if (length <= 4)
@@ -729,7 +881,7 @@ function tersifyInstance(context, value, length) {
729
881
  var _a = length < (name.length + spaceLen + bracketLen) ?
730
882
  [length - spaceLen - bracketLen, bracketLen] :
731
883
  [name.length, length - name.length - spaceLen], nameLength = _a[0], valueLength = _a[1];
732
- var nameStr = trim_1.trim(context, name, nameLength);
884
+ var nameStr = (0, trim_1.trim)(context, name, nameLength);
733
885
  var remaining = valueLength;
734
886
  var keys = Object.keys(value);
735
887
  var props = keys.reduce(function (p, k, i) {
@@ -743,16 +895,16 @@ function tersifyInstance(context, value, length) {
743
895
  }, []);
744
896
  var hasSkippedProps = keys.length > props.length;
745
897
  var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
746
- var trimmedContent = trim_1.trim(context, content, valueLength - bracketLen - 2);
747
- return keys.length === 0 ? nameStr + " {}" :
898
+ var trimmedContent = (0, trim_1.trim)(context, content, valueLength - bracketLen - 2);
899
+ return keys.length === 0 ? "".concat(nameStr, " {}") :
748
900
  trimmedContent.length === 0 ?
749
- trim_1.trim(context, nameStr + " { }", length) :
750
- nameStr + " { " + trimmedContent + " }";
901
+ (0, trim_1.trim)(context, "".concat(nameStr, " { }"), length) :
902
+ "".concat(nameStr, " { ").concat(trimmedContent, " }");
751
903
  }
752
904
  function getPropStr(context, bag, key, length, isLastKey) {
753
905
  var commaAndSpaceLen = isLastKey ? 0 : 2;
754
906
  var colonAndSpaceLen = 2;
755
- var path = __spreadArrays(context.path, [key]);
907
+ var path = __spreadArray(__spreadArray([], context.path, true), [key], false);
756
908
  var d = Object.getOwnPropertyDescriptor(bag, key);
757
909
  var accessor = [];
758
910
  if (d.get)
@@ -760,70 +912,72 @@ function getPropStr(context, bag, key, length, isLastKey) {
760
912
  if (d.set)
761
913
  accessor.push('Set');
762
914
  if (accessor.length > 0) {
763
- return getPropKey(key) + ": [" + accessor.join('/') + "]";
915
+ return "".concat(getPropKey(key), ": [").concat(accessor.join('/'), "]");
764
916
  }
765
917
  var value = bag[key];
766
918
  if (typeof value === 'function') {
767
919
  var fnLen = 2;
768
920
  if ((/^(.*) => /.test(value.toString()))) {
769
921
  var propValue = tersifyValue(__assign(__assign({}, context), { path: path }), value, length - key.length - commaAndSpaceLen - colonAndSpaceLen);
770
- return getPropKey(key) + ": " + propValue;
922
+ return "".concat(getPropKey(key), ": ").concat(propValue);
771
923
  }
772
924
  else {
773
925
  var propValue = tersifyValue(__assign(__assign({}, context), { path: path }), value, length - key.length - commaAndSpaceLen + fnLen);
774
926
  var asyncToken = /^async fn/.test(propValue) ? 'async ' : '';
775
927
  var generatorToken = /^(async )?fn\*/.test(propValue) ? '*' : '';
776
- return "" + asyncToken + generatorToken + getPropKey(key) + propValue.slice(propValue.indexOf('('));
928
+ return "".concat(asyncToken).concat(generatorToken).concat(getPropKey(key)).concat(propValue.slice(propValue.indexOf('(')));
777
929
  }
778
930
  }
779
931
  else {
780
932
  // console.log(remaining, k.length, colonAndSpaceLen, commaAndSpaceLen, remaining - k.length - colonAndSpaceLen - commaAndSpaceLen)
781
933
  var propValue = tersifyValue(__assign(__assign({}, context), { path: path, noTrim: true }), value, length - key.length - colonAndSpaceLen - commaAndSpaceLen);
782
- return getPropKey(key) + ": " + propValue;
934
+ return "".concat(getPropKey(key), ": ").concat(propValue);
783
935
  }
784
936
  }
785
937
  function getPropKey(key) {
786
- return key.indexOf('-') >= 0 ? "'" + key + "'" : key;
938
+ return key.indexOf('-') >= 0 ? "'".concat(key, "'") : key;
787
939
  }
788
940
  //# sourceMappingURL=tersify.js.map
789
941
 
790
942
  /***/ }),
791
943
 
792
- /***/ "../../node_modules/tersify/lib/tersifyFunction.browser.js":
944
+ /***/ "../../node_modules/tersify/cjs/tersifyFunction.browser.js":
793
945
  /*!*****************************************************************!*\
794
- !*** ../../node_modules/tersify/lib/tersifyFunction.browser.js ***!
946
+ !*** ../../node_modules/tersify/cjs/tersifyFunction.browser.js ***!
795
947
  \*****************************************************************/
796
948
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
797
949
 
798
950
  "use strict";
799
951
 
800
952
  Object.defineProperty(exports, "__esModule", ({ value: true }));
801
- var tersifyFunctionByString_1 = __webpack_require__(/*! ./tersifyFunctionByString */ "../../node_modules/tersify/lib/tersifyFunctionByString.js");
802
- var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/lib/hasTersifyFn.js");
803
- var tersify_1 = __webpack_require__(/*! ./tersify */ "../../node_modules/tersify/lib/tersify.js");
953
+ exports.tersifyFunction = void 0;
954
+ var tersifyFunctionByString_1 = __webpack_require__(/*! ./tersifyFunctionByString */ "../../node_modules/tersify/cjs/tersifyFunctionByString.js");
955
+ var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/cjs/hasTersifyFn.js");
956
+ var tersify_1 = __webpack_require__(/*! ./tersify */ "../../node_modules/tersify/cjs/tersify.js");
804
957
  // istanbul ignore next
805
958
  function tersifyFunction(context, fn, _length) {
806
- if (!context.raw && hasTersifyFn_1.hasTersifyFn(fn) && fn.tersify !== tersify_1.defaultTersify) {
959
+ if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(fn) && fn.tersify !== tersify_1.defaultTersify) {
807
960
  return fn.tersify({ maxLength: context.maxLength, raw: context.raw });
808
961
  }
809
- return tersifyFunctionByString_1.tersifyFunctionByString(fn, context);
962
+ return (0, tersifyFunctionByString_1.tersifyFunctionByString)(fn, context);
810
963
  }
811
964
  exports.tersifyFunction = tersifyFunction;
812
965
  //# sourceMappingURL=tersifyFunction.browser.js.map
813
966
 
814
967
  /***/ }),
815
968
 
816
- /***/ "../../node_modules/tersify/lib/tersifyFunctionByString.js":
969
+ /***/ "../../node_modules/tersify/cjs/tersifyFunctionByString.js":
817
970
  /*!*****************************************************************!*\
818
- !*** ../../node_modules/tersify/lib/tersifyFunctionByString.js ***!
971
+ !*** ../../node_modules/tersify/cjs/tersifyFunctionByString.js ***!
819
972
  \*****************************************************************/
820
973
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
821
974
 
822
975
  "use strict";
823
976
 
824
977
  Object.defineProperty(exports, "__esModule", ({ value: true }));
825
- var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/lib/constants.browser.js");
826
- var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/lib/trim.js");
978
+ exports.tersifyFunctionByString = void 0;
979
+ var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/cjs/constants.browser.js");
980
+ var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/cjs/trim.js");
827
981
  function tersifyFunctionByString(fn, options) {
828
982
  var str = fn.toString();
829
983
  if (options.raw)
@@ -840,51 +994,49 @@ function isFunc(str) {
840
994
  }
841
995
  function formatArrow(str, maxLength) {
842
996
  var struct = getArrowStruct(str);
843
- var template = "" + (struct.async ? 'async ' : '') + (struct.singleParam ? '%1' : "(" + (struct.params ? '%1' : '') + ")") + " => " + (struct.singleLineBody ? '%2' : "{" + (struct.body ? ' %2 ' : '') + "}");
997
+ var template = "".concat(struct.async ? 'async ' : '').concat(struct.singleParam ? '%1' : "(".concat(struct.params ? '%1' : '', ")"), " => ").concat(struct.singleLineBody ? '%2' : "{".concat(struct.body ? ' %2 ' : '', "}"));
844
998
  var baseLength = struct.params && struct.body ? template.length - 4 :
845
999
  struct.params || struct.body ? template.length - 2 : template.length;
846
- struct.params = trim_1.trim({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
847
- struct.body = trim_1.trim({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
848
- return trim_1.trim({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
1000
+ struct.params = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
1001
+ struct.body = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
1002
+ return (0, trim_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
849
1003
  }
850
1004
  function getArrowStruct(str) {
851
1005
  str = str.trim();
852
1006
  var isAsync = str.startsWith('async ');
853
1007
  if (isAsync)
854
1008
  str = str.slice(5).trim();
855
- var indexOfOpenParen = str.indexOf('(');
856
- var name = str.slice(0, indexOfOpenParen).trim();
857
- str = str.slice(indexOfOpenParen);
858
- var paramsNotTrimmed = getParams(str);
859
- str = str.slice(paramsNotTrimmed.length + 2).trim();
860
- str = str.slice(str.indexOf('=>') + 2).trim();
861
- var isSingle = isSingleLineBody(str);
862
- var body = removeLineBreaks(isSingle ? str : getEnclosedBody(str)).trim();
1009
+ var arrowIndex = str.indexOf(' => ');
1010
+ var paramRaw = str.slice(0, arrowIndex).trim();
1011
+ var bodyRaw = str.slice(arrowIndex + 4).trim();
1012
+ var params = getParams(paramRaw.startsWith('(') ? paramRaw : "(".concat(paramRaw, ")"));
1013
+ var isSingle = isSingleLineBody(bodyRaw);
1014
+ var body = removeLineBreaks(isSingle ? bodyRaw : getEnclosedBody(bodyRaw)).trim();
863
1015
  if (!isSingle && body.startsWith('return ') && body.endsWith(';')) {
864
1016
  isSingle = true;
865
1017
  body = body.slice(7, -1);
866
1018
  if (body.startsWith('{')) {
867
- body = "(" + body + ")";
1019
+ body = "(".concat(body, ")");
868
1020
  }
869
1021
  }
870
1022
  return {
871
1023
  async: isAsync,
872
1024
  generator: false,
873
- name: name,
874
- singleParam: paramsNotTrimmed && paramsNotTrimmed.indexOf(',') === -1,
875
- params: paramsNotTrimmed.trim(),
1025
+ name: '',
1026
+ singleParam: params && params.indexOf(',') === -1,
1027
+ params: params,
876
1028
  singleLineBody: isSingle,
877
1029
  body: body
878
1030
  };
879
1031
  }
880
1032
  function formatFn(str, maxLength) {
881
1033
  var struct = getFuncStruct(str);
882
- var template = (struct.async ? 'async ' : '') + "fn" + (struct.generator ? '*' : '') + (struct.name ? ' ' + struct.name : '') + "(" + (struct.params ? '%1' : '') + ") {" + (struct.body ? ' %2 ' : '') + "}";
1034
+ var template = "".concat(struct.async ? 'async ' : '', "fn").concat(struct.generator ? '*' : '').concat(struct.name ? ' ' + struct.name : '', "(").concat(struct.params ? '%1' : '', ") {").concat(struct.body ? ' %2 ' : '', "}");
883
1035
  var baseLength = struct.params && struct.body ? template.length - 4 :
884
1036
  struct.params || struct.body ? template.length - 2 : template.length;
885
- struct.params = trim_1.trim({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
886
- struct.body = trim_1.trim({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
887
- return trim_1.trim({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
1037
+ struct.params = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
1038
+ struct.body = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
1039
+ return (0, trim_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
888
1040
  }
889
1041
  function getFuncStruct(str) {
890
1042
  str = str.trim();
@@ -951,7 +1103,7 @@ function getEnclosedBody(str) {
951
1103
  return str;
952
1104
  }
953
1105
  function removeLineBreaks(value) {
954
- return value.split('\n').map(function (x) { return x.trim(); }).join(' ');
1106
+ return value.split('\n').map(function (x) { return x.trim(); }).filter(function (x) { return !!x; }).join(' ');
955
1107
  }
956
1108
  function applyTemplate(template, struct) {
957
1109
  if (struct.params) {
@@ -966,15 +1118,16 @@ function applyTemplate(template, struct) {
966
1118
 
967
1119
  /***/ }),
968
1120
 
969
- /***/ "../../node_modules/tersify/lib/trim.js":
1121
+ /***/ "../../node_modules/tersify/cjs/trim.js":
970
1122
  /*!**********************************************!*\
971
- !*** ../../node_modules/tersify/lib/trim.js ***!
1123
+ !*** ../../node_modules/tersify/cjs/trim.js ***!
972
1124
  \**********************************************/
973
1125
  /***/ (function(__unused_webpack_module, exports) {
974
1126
 
975
1127
  "use strict";
976
1128
 
977
1129
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1130
+ exports.trim = void 0;
978
1131
  function trim(_a, value, length) {
979
1132
  var raw = _a.raw, noTrim = _a.noTrim;
980
1133
  if (noTrim || raw || value.length <= length)
@@ -990,24 +1143,16 @@ exports.trim = trim;
990
1143
 
991
1144
  /***/ }),
992
1145
 
993
- /***/ "../../node_modules/tersify/node_modules/is-buffer/index.js":
994
- /*!******************************************************************!*\
995
- !*** ../../node_modules/tersify/node_modules/is-buffer/index.js ***!
996
- \******************************************************************/
997
- /***/ (function(module) {
998
-
999
- /*!
1000
- * Determine if an object is a Buffer
1001
- *
1002
- * @author Feross Aboukhadijeh <https://feross.org>
1003
- * @license MIT
1004
- */
1146
+ /***/ "../../node_modules/tersify/cjs/types.js":
1147
+ /*!***********************************************!*\
1148
+ !*** ../../node_modules/tersify/cjs/types.js ***!
1149
+ \***********************************************/
1150
+ /***/ (function(__unused_webpack_module, exports) {
1005
1151
 
1006
- module.exports = function isBuffer (obj) {
1007
- return obj != null && obj.constructor != null &&
1008
- typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
1009
- }
1152
+ "use strict";
1010
1153
 
1154
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1155
+ //# sourceMappingURL=types.js.map
1011
1156
 
1012
1157
  /***/ }),
1013
1158
 
@@ -1025,11 +1170,11 @@ var memory_1 = __webpack_require__(/*! ./memory */ "./src/memory/index.ts");
1025
1170
  var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
1026
1171
  var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/lib/index.js");
1027
1172
  function captureLogs(logger, funcBlock) {
1028
- var reporter = memory_1.createMemoryLogReporter();
1173
+ var reporter = (0, memory_1.createMemoryLogReporter)();
1029
1174
  addRedirect(logger.id, reporter);
1030
1175
  try {
1031
1176
  var result = funcBlock();
1032
- if (type_plus_1.isPromise(result)) {
1177
+ if ((0, type_plus_1.isPromise)(result)) {
1033
1178
  return result.then(function (r) { return [r, reporter.logs]; })
1034
1179
  .finally(function () { return removeRedirect(logger.id, reporter); });
1035
1180
  }
@@ -1090,11 +1235,11 @@ exports.config = function config(options) {
1090
1235
  store_1.store.value.logLevel = options.logLevel !== undefined ? options.logLevel : store_1.store.value.logLevel;
1091
1236
  if (options.customLevels) {
1092
1237
  var customLevels_1 = options.customLevels;
1093
- type_plus_1.forEachKey(customLevels_1, function (k) {
1094
- customLogLevel_1.addCustomLogLevel(k, customLevels_1[k]);
1238
+ (0, type_plus_1.forEachKey)(customLevels_1, function (k) {
1239
+ (0, customLogLevel_1.addCustomLogLevel)(k, customLevels_1[k]);
1095
1240
  });
1096
1241
  }
1097
- store_1.store.value.reporters = options.reporters || [getDefaultReporter_1.getDefaultReporter()];
1242
+ store_1.store.value.reporters = options.reporters || [(0, getDefaultReporter_1.getDefaultReporter)()];
1098
1243
  store_1.store.value.configured = true;
1099
1244
  if (store_1.store.value.mode === 'production') {
1100
1245
  store_1.store.freeze(__assign(__assign({}, store_1.store.value), { reporters: Object.freeze(store_1.store.value.reporters) }));
@@ -1128,8 +1273,8 @@ exports.configForTest = void 0;
1128
1273
  var config_1 = __webpack_require__(/*! ./config */ "./src/config.ts");
1129
1274
  var memory_1 = __webpack_require__(/*! ./memory */ "./src/memory/index.ts");
1130
1275
  function configForTest(logLevel) {
1131
- var reporter = memory_1.createMemoryLogReporter();
1132
- config_1.config({
1276
+ var reporter = (0, memory_1.createMemoryLogReporter)();
1277
+ (0, config_1.config)({
1133
1278
  reporters: [reporter],
1134
1279
  mode: 'test',
1135
1280
  logLevel: logLevel
@@ -1157,7 +1302,7 @@ var utils_1 = __webpack_require__(/*! ../utils */ "./src/utils.ts");
1157
1302
  var polyfilledConsole_1 = __webpack_require__(/*! ./polyfilledConsole */ "./src/console/polyfilledConsole.ts");
1158
1303
  var toConsoleMethod_1 = __webpack_require__(/*! ./toConsoleMethod */ "./src/console/toConsoleMethod.ts");
1159
1304
  function createConsoleLogReporter(options) {
1160
- var opts = type_plus_1.required({ id: 'console', formatter: formatter_1.plainLogFormatter }, options);
1305
+ var opts = (0, type_plus_1.required)({ id: 'console', formatter: formatter_1.plainLogFormatter }, options);
1161
1306
  var id = opts.id;
1162
1307
  var formatter = opts.formatter, filter = opts.filter;
1163
1308
  return {
@@ -1167,14 +1312,14 @@ function createConsoleLogReporter(options) {
1167
1312
  return formatter;
1168
1313
  },
1169
1314
  set formatter(value) {
1170
- utils_1.assertLogModeIsNotProduction('set Reporter.formatter');
1315
+ (0, utils_1.assertLogModeIsNotProduction)('set Reporter.formatter');
1171
1316
  formatter = value;
1172
1317
  },
1173
1318
  get filter() {
1174
1319
  return filter;
1175
1320
  },
1176
1321
  set filter(value) {
1177
- utils_1.assertLogModeIsNotProduction('set Reporter.filter');
1322
+ (0, utils_1.assertLogModeIsNotProduction)('set Reporter.filter');
1178
1323
  filter = value;
1179
1324
  },
1180
1325
  console: polyfilledConsole_1.polyfilledConsole,
@@ -1183,7 +1328,7 @@ function createConsoleLogReporter(options) {
1183
1328
  if (filter && !filter(entry))
1184
1329
  return;
1185
1330
  var values = formatter(entry);
1186
- var method = toConsoleMethod_1.toConsoleMethod(entry.level);
1331
+ var method = (0, toConsoleMethod_1.toConsoleMethod)(entry.level);
1187
1332
  (_a = this.console)[method].apply(_a, values);
1188
1333
  }
1189
1334
  };
@@ -1242,7 +1387,7 @@ function isConsoleDebugAvailable() {
1242
1387
  if (!__webpack_require__.g.process)
1243
1388
  return true;
1244
1389
  var versionString = process.version.startsWith('v') ? process.version.slice(1) : process.version;
1245
- return semverGt_1.semverGt(versionString, [9, 3, 0]);
1390
+ return (0, semverGt_1.semverGt)(versionString, [9, 3, 0]);
1246
1391
  }
1247
1392
  exports.isConsoleDebugAvailable = isConsoleDebugAvailable;
1248
1393
 
@@ -1269,7 +1414,7 @@ function buildPolyfillConsole() {
1269
1414
  return {
1270
1415
  // Node@9.3 or below has `console.debug = undefined` or it doesn't log
1271
1416
  // Should use `console.log()` in those case.
1272
- debug: (isConsoleDebugAvailable_1.isConsoleDebugAvailable() ? console.debug : console.log).bind(console),
1417
+ debug: ((0, isConsoleDebugAvailable_1.isConsoleDebugAvailable)() ? console.debug : console.log).bind(console),
1273
1418
  // the `typeof` guards against IE where `console.log.apply()`
1274
1419
  // results in error `Object doesn't support property or method 'apply'`
1275
1420
  info: (typeof console.info === 'function' ? console.info : console.log).bind(console),
@@ -1279,7 +1424,7 @@ function buildPolyfillConsole() {
1279
1424
  }
1280
1425
  else {
1281
1426
  return {
1282
- debug: buildFn(isConsoleDebugAvailable_1.isConsoleDebugAvailable() ? 'debug' : 'log'),
1427
+ debug: buildFn((0, isConsoleDebugAvailable_1.isConsoleDebugAvailable)() ? 'debug' : 'log'),
1283
1428
  info: buildFn(typeof console.info === 'function' ? 'info' : 'log'),
1284
1429
  warn: buildFn(typeof console.warn === 'function' ? 'warn' : 'log'),
1285
1430
  error: buildFn(typeof console.error === 'function' ? 'error' : 'log'),
@@ -1389,13 +1534,13 @@ function addCustomLogLevel(name, level) {
1389
1534
  customLevels[name] = level;
1390
1535
  customLevelsReverse[level] = name;
1391
1536
  var loggerClosures = store_1.store.value.loggerClosures;
1392
- type_plus_1.forEachKey(loggerClosures, function (id) { return loggerClosures[id].addMethod(name, level); });
1537
+ (0, type_plus_1.forEachKey)(loggerClosures, function (id) { return loggerClosures[id].addMethod(name, level); });
1393
1538
  }
1394
1539
  exports.addCustomLogLevel = addCustomLogLevel;
1395
1540
  function clearCustomLogLevel() {
1396
1541
  var _a = store_1.store.value, customLevels = _a.customLevels, customLevelsReverse = _a.customLevelsReverse;
1397
1542
  // Don't replace the object would prevent reference divergence
1398
- type_plus_1.forEachKey(customLevels, function (k) { return delete customLevels[k]; });
1543
+ (0, type_plus_1.forEachKey)(customLevels, function (k) { return delete customLevels[k]; });
1399
1544
  customLevelsReverse.splice(0, customLevelsReverse.length);
1400
1545
  }
1401
1546
  exports.clearCustomLogLevel = clearCustomLogLevel;
@@ -1409,7 +1554,7 @@ function getCustomLevelName(level) {
1409
1554
  exports.getCustomLevelName = getCustomLevelName;
1410
1555
  function getCustomLevels() {
1411
1556
  var customLevels = store_1.store.value.customLevels;
1412
- return type_plus_1.mapKey(customLevels, function (name) { return ({ name: name, level: customLevels[name] }); });
1557
+ return (0, type_plus_1.mapKey)(customLevels, function (name) { return ({ name: name, level: customLevels[name] }); });
1413
1558
  }
1414
1559
  exports.getCustomLevels = getCustomLevels;
1415
1560
 
@@ -1439,22 +1584,13 @@ var __extends = (this && this.__extends) || (function () {
1439
1584
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1440
1585
  };
1441
1586
  })();
1442
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
1443
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
1444
- to[j] = from[i];
1445
- return to;
1446
- };
1447
1587
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1448
1588
  exports.InvalidEnvVar = exports.ProhibitedDuringProduction = exports.InvalidId = exports.StandardLogError = void 0;
1449
- var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/iso-error/lib/index.js");
1589
+ var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/iso-error/cjs/index.js");
1450
1590
  var StandardLogError = /** @class */ (function (_super) {
1451
1591
  __extends(StandardLogError, _super);
1452
- function StandardLogError(description) {
1453
- var errors = [];
1454
- for (var _i = 1; _i < arguments.length; _i++) {
1455
- errors[_i - 1] = arguments[_i];
1456
- }
1457
- return _super.apply(this, __spreadArray(['standard-log', description], errors)) || this;
1592
+ function StandardLogError(description, options) {
1593
+ return _super.call(this, 'standard-log', description, options) || this;
1458
1594
  }
1459
1595
  return StandardLogError;
1460
1596
  }(iso_error_1.ModuleError));
@@ -1462,7 +1598,7 @@ exports.StandardLogError = StandardLogError;
1462
1598
  var InvalidId = /** @class */ (function (_super) {
1463
1599
  __extends(InvalidId, _super);
1464
1600
  function InvalidId(id) {
1465
- var _this = _super.call(this, "logger id only supports alphanumeric, unicode characters, and [:_-.]. Received " + id) || this;
1601
+ var _this = _super.call(this, "logger id only supports alphanumeric, unicode characters, and [:_-.]. Received ".concat(id)) || this;
1466
1602
  _this.id = id;
1467
1603
  return _this;
1468
1604
  }
@@ -1472,7 +1608,7 @@ exports.InvalidId = InvalidId;
1472
1608
  var ProhibitedDuringProduction = /** @class */ (function (_super) {
1473
1609
  __extends(ProhibitedDuringProduction, _super);
1474
1610
  function ProhibitedDuringProduction(action) {
1475
- var _this = _super.call(this, "Cannot perform " + action + " during production") || this;
1611
+ var _this = _super.call(this, "Cannot perform ".concat(action, " during production")) || this;
1476
1612
  _this.action = action;
1477
1613
  return _this;
1478
1614
  }
@@ -1482,7 +1618,7 @@ exports.ProhibitedDuringProduction = ProhibitedDuringProduction;
1482
1618
  var InvalidEnvVar = /** @class */ (function (_super) {
1483
1619
  __extends(InvalidEnvVar, _super);
1484
1620
  function InvalidEnvVar(name, value, possibleValues) {
1485
- var _this = _super.call(this, name + " contains invalid value '" + value + "'" + (" valid values: [" + possibleValues.join() + "]")) || this;
1621
+ var _this = _super.call(this, "".concat(name, " contains invalid value '").concat(value, "'").concat(" valid values: [".concat(possibleValues.join(), "]"))) || this;
1486
1622
  _this.name = name;
1487
1623
  _this.value = value;
1488
1624
  _this.possibleValues = possibleValues;
@@ -1519,7 +1655,7 @@ function createTimestampFormatter(format) {
1519
1655
  var lastTick_1 = undefined;
1520
1656
  return function (timestamp) {
1521
1657
  var newTick = timestamp.getTime();
1522
- var result = ms_1.default(lastTick_1 === undefined ? 0 : newTick - lastTick_1);
1658
+ var result = (0, ms_1.default)(lastTick_1 === undefined ? 0 : newTick - lastTick_1);
1523
1659
  lastTick_1 = newTick;
1524
1660
  return result;
1525
1661
  };
@@ -1544,7 +1680,7 @@ exports.formatLogLevel = void 0;
1544
1680
  var upper_case_1 = __webpack_require__(/*! upper-case */ "../../node_modules/upper-case/dist/index.js");
1545
1681
  var logLevelFn_1 = __webpack_require__(/*! ../logLevelFn */ "./src/logLevelFn.ts");
1546
1682
  function formatLogLevel(level) {
1547
- return "(" + upper_case_1.upperCase(logLevelFn_1.toLogLevelName(level)) + ")";
1683
+ return "(".concat((0, upper_case_1.upperCase)((0, logLevelFn_1.toLogLevelName)(level)), ")");
1548
1684
  }
1549
1685
  exports.formatLogLevel = formatLogLevel;
1550
1686
 
@@ -1585,17 +1721,21 @@ __exportStar(__webpack_require__(/*! ./plainLogFormatter */ "./src/formatter/pla
1585
1721
 
1586
1722
  "use strict";
1587
1723
 
1588
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
1589
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
1590
- to[j] = from[i];
1591
- return to;
1724
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
1725
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1726
+ if (ar || !(i in from)) {
1727
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1728
+ ar[i] = from[i];
1729
+ }
1730
+ }
1731
+ return to.concat(ar || Array.prototype.slice.call(from));
1592
1732
  };
1593
1733
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1594
1734
  exports.plainLogFormatter = void 0;
1595
1735
  var formatLogLevel_1 = __webpack_require__(/*! ./formatLogLevel */ "./src/formatter/formatLogLevel.ts");
1596
1736
  function plainLogFormatter(_a) {
1597
1737
  var id = _a.id, level = _a.level, args = _a.args, timestamp = _a.timestamp;
1598
- return __spreadArray([timestamp.toISOString(), id, formatLogLevel_1.formatLogLevel(level)], args);
1738
+ return __spreadArray([timestamp.toISOString(), id, (0, formatLogLevel_1.formatLogLevel)(level)], args, true);
1599
1739
  }
1600
1740
  exports.plainLogFormatter = plainLogFormatter;
1601
1741
 
@@ -1619,7 +1759,7 @@ function getDefaultReporter() {
1619
1759
  return StandardLogColor.createColorLogReporter();
1620
1760
  }
1621
1761
  catch (e) {
1622
- return console_1.createConsoleLogReporter();
1762
+ return (0, console_1.createConsoleLogReporter)();
1623
1763
  }
1624
1764
  }
1625
1765
  exports.getDefaultReporter = getDefaultReporter;
@@ -1654,10 +1794,14 @@ exports.getLogModeFromEnvironment = getLogModeFromEnvironment;
1654
1794
 
1655
1795
  "use strict";
1656
1796
 
1657
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
1658
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
1659
- to[j] = from[i];
1660
- return to;
1797
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
1798
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1799
+ if (ar || !(i in from)) {
1800
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1801
+ ar[i] = from[i];
1802
+ }
1803
+ }
1804
+ return to.concat(ar || Array.prototype.slice.call(from));
1661
1805
  };
1662
1806
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1663
1807
  exports.getLogger = void 0;
@@ -1688,9 +1832,9 @@ function createLoggerClosure(id, _a) {
1688
1832
  ? function (id) { return writeTo.test(id); }
1689
1833
  : typeof writeTo === 'function'
1690
1834
  ? writeTo
1691
- : (logReporterInternal_1.addLogReporterInternal(writeTo), function (id) { return id === writeTo.id; });
1835
+ : ((0, logReporterInternal_1.addLogReporterInternal)(writeTo), function (id) { return id === writeTo.id; });
1692
1836
  function write(entry) {
1693
- writeToReporters_1.writeToReporters(entry, filter);
1837
+ (0, writeToReporters_1.writeToReporters)(entry, filter);
1694
1838
  }
1695
1839
  var logger = {
1696
1840
  level: level,
@@ -1706,11 +1850,11 @@ function createLoggerClosure(id, _a) {
1706
1850
  args[_i] = arguments[_i];
1707
1851
  }
1708
1852
  var level = logLevel_1.logLevels.debug;
1709
- if (shouldLog_1.shouldLog(level, logger.level))
1853
+ if ((0, shouldLog_1.shouldLog)(level, logger.level))
1710
1854
  write({
1711
1855
  id: id,
1712
1856
  level: level,
1713
- args: __spreadArray([++counter], args),
1857
+ args: __spreadArray([++counter], args, true),
1714
1858
  timestamp: new Date()
1715
1859
  });
1716
1860
  }; })(0)
@@ -1718,9 +1862,9 @@ function createLoggerClosure(id, _a) {
1718
1862
  on: {
1719
1863
  writable: false,
1720
1864
  value: function (level, logFn) {
1721
- var logLevel = typeof level === 'string' ? logLevelFn_1.toLogLevel(level) : level;
1722
- if (shouldLog_1.shouldLog(logLevel, logger.level)) {
1723
- var methodName = logLevelFn_1.toLogLevelName(logLevel);
1865
+ var logLevel = typeof level === 'string' ? (0, logLevelFn_1.toLogLevel)(level) : level;
1866
+ if ((0, shouldLog_1.shouldLog)(logLevel, logger.level)) {
1867
+ var methodName = (0, logLevelFn_1.toLogLevelName)(logLevel);
1724
1868
  var bindedMethod = logger[methodName].bind(logger);
1725
1869
  var result = logFn(bindedMethod);
1726
1870
  if (result)
@@ -1738,14 +1882,14 @@ function createLoggerClosure(id, _a) {
1738
1882
  for (var _i = 0; _i < arguments.length; _i++) {
1739
1883
  args[_i] = arguments[_i];
1740
1884
  }
1741
- if (shouldLog_1.shouldLog(level, logger.level))
1885
+ if ((0, shouldLog_1.shouldLog)(level, logger.level))
1742
1886
  write({ id: id, level: level, args: args, timestamp: new Date() });
1743
1887
  }
1744
1888
  });
1745
1889
  },
1746
1890
  logger: logger
1747
1891
  };
1748
- logLevelFn_1.getAllLogLevels().forEach(function (_a) {
1892
+ (0, logLevelFn_1.getAllLogLevels)().forEach(function (_a) {
1749
1893
  var name = _a.name, level = _a.level;
1750
1894
  return loggerClosure.addMethod(name, level);
1751
1895
  });
@@ -1773,7 +1917,7 @@ var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
1773
1917
  */
1774
1918
  function getLoggers(filter) {
1775
1919
  var loggerClosures = store_1.store.value.loggerClosures;
1776
- return type_plus_1.filterKey(loggerClosures, function (id) { return filter.test(id); }).map(function (k) { return loggerClosures[k].logger; });
1920
+ return (0, type_plus_1.filterKey)(loggerClosures, function (id) { return filter.test(id); }).map(function (k) { return loggerClosures[k].logger; });
1777
1921
  }
1778
1922
  exports.getLoggers = getLoggers;
1779
1923
 
@@ -1923,18 +2067,18 @@ exports.setLogLevel = setLogLevel;
1923
2067
  * This will override the local log level of the loggers.
1924
2068
  */
1925
2069
  function setLogLevels(filter, level) {
1926
- return getLoggers_1.getLoggers(filter).map(function (log) {
2070
+ return (0, getLoggers_1.getLoggers)(filter).map(function (log) {
1927
2071
  log.level = level;
1928
2072
  return log;
1929
2073
  });
1930
2074
  }
1931
2075
  exports.setLogLevels = setLogLevels;
1932
2076
  function toLogLevel(name) {
1933
- return customLogLevel_1.getCustomLevel(name) || logLevel_1.logLevels[name.toLowerCase()];
2077
+ return (0, customLogLevel_1.getCustomLevel)(name) || logLevel_1.logLevels[name.toLowerCase()];
1934
2078
  }
1935
2079
  exports.toLogLevel = toLogLevel;
1936
2080
  function toLogLevelName(level) {
1937
- var custom = customLogLevel_1.getCustomLevelName(level);
2081
+ var custom = (0, customLogLevel_1.getCustomLevelName)(level);
1938
2082
  if (custom)
1939
2083
  return custom;
1940
2084
  switch (true) {
@@ -1962,11 +2106,11 @@ function toLogLevelName(level) {
1962
2106
  }
1963
2107
  exports.toLogLevelName = toLogLevelName;
1964
2108
  function getAllLogLevels() {
1965
- return type_plus_1.reduceKey(logLevel_1.logLevels, function (result, name) {
2109
+ return (0, type_plus_1.reduceKey)(logLevel_1.logLevels, function (result, name) {
1966
2110
  if (name !== 'none' && name !== 'all')
1967
2111
  result.push({ name: name, level: logLevel_1.logLevels[name] });
1968
2112
  return result;
1969
- }, customLogLevel_1.getCustomLevels());
2113
+ }, (0, customLogLevel_1.getCustomLevels)());
1970
2114
  }
1971
2115
  exports.getAllLogLevels = getAllLogLevels;
1972
2116
 
@@ -1987,8 +2131,8 @@ var logReporterInternal_1 = __webpack_require__(/*! ./logReporterInternal */ "./
1987
2131
  var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
1988
2132
  var utils_1 = __webpack_require__(/*! ./utils */ "./src/utils.ts");
1989
2133
  function addLogReporter(reporter) {
1990
- utils_1.assertLogModeIsNotProduction('addLogReporter');
1991
- logReporterInternal_1.addLogReporterInternal(reporter);
2134
+ (0, utils_1.assertLogModeIsNotProduction)('addLogReporter');
2135
+ (0, logReporterInternal_1.addLogReporterInternal)(reporter);
1992
2136
  }
1993
2137
  exports.addLogReporter = addLogReporter;
1994
2138
  function getLogReporter(id) {
@@ -2004,7 +2148,7 @@ function getConsoleReporter() {
2004
2148
  }
2005
2149
  exports.getConsoleReporter = getConsoleReporter;
2006
2150
  function clearLogReporters() {
2007
- utils_1.assertLogModeIsNotProduction('clearLogReporters');
2151
+ (0, utils_1.assertLogModeIsNotProduction)('clearLogReporters');
2008
2152
  store_1.store.value.reporters.splice(0, store_1.store.value.reporters.length);
2009
2153
  }
2010
2154
  exports.clearLogReporters = clearLogReporters;
@@ -2026,7 +2170,7 @@ var logReporter_1 = __webpack_require__(/*! ./logReporter */ "./src/logReporter.
2026
2170
  var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
2027
2171
  function addLogReporterInternal(reporter) {
2028
2172
  if (reporter.isConsoleReporter) {
2029
- var r = logReporter_1.getConsoleReporter();
2173
+ var r = (0, logReporter_1.getConsoleReporter)();
2030
2174
  if (r && reporter.filter) {
2031
2175
  var f_1 = r.filter;
2032
2176
  var f2_1 = reporter.filter;
@@ -2069,12 +2213,12 @@ function createGetLogMessage() {
2069
2213
  function createGetMessageWithLevel() {
2070
2214
  return function getLogMessage() {
2071
2215
  return this.logs.map(toInspectStringForObject_1.toInspectLogEntry)
2072
- .map(function (log) { return formatter_1.formatLogLevel(log.level) + " " + log.args.join(' '); })
2216
+ .map(function (log) { return "".concat((0, formatter_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); })
2073
2217
  .join('\n');
2074
2218
  };
2075
2219
  }
2076
2220
  function createMemoryLogReporter(options) {
2077
- var opt = type_plus_1.required({ id: 'memory', formatter: function (e) { return e; } }, options);
2221
+ var opt = (0, type_plus_1.required)({ id: 'memory', formatter: function (e) { return e; } }, options);
2078
2222
  var id = opt.id;
2079
2223
  var formatter = opt.formatter, filter = opt.filter;
2080
2224
  return {
@@ -2083,14 +2227,14 @@ function createMemoryLogReporter(options) {
2083
2227
  return formatter;
2084
2228
  },
2085
2229
  set formatter(value) {
2086
- utils_1.assertLogModeIsNotProduction('set Reporter.formatter');
2230
+ (0, utils_1.assertLogModeIsNotProduction)('set Reporter.formatter');
2087
2231
  formatter = value;
2088
2232
  },
2089
2233
  get filter() {
2090
2234
  return filter;
2091
2235
  },
2092
2236
  set filter(value) {
2093
- utils_1.assertLogModeIsNotProduction('set Reporter.filter');
2237
+ (0, utils_1.assertLogModeIsNotProduction)('set Reporter.filter');
2094
2238
  filter = value;
2095
2239
  },
2096
2240
  logs: [],
@@ -2170,7 +2314,7 @@ var is_node_1 = __importDefault(__webpack_require__(/*! is-node */ "../../node_m
2170
2314
  exports.toInspectLogEntry = is_node_1.default
2171
2315
  ? (function () {
2172
2316
  // eslint-disable-next-line @typescript-eslint/no-var-requires
2173
- var inspect = __webpack_require__(/*! util */ "../../node_modules/util/util.js").inspect;
2317
+ var inspect = (__webpack_require__(/*! util */ "../../node_modules/util/util.js").inspect);
2174
2318
  return function (e) { return (e.args = e.args.map(function (value) { return typeof value === 'object' && value !== null ? inspect(value) : value; }),
2175
2319
  e); };
2176
2320
  })()
@@ -2228,12 +2372,12 @@ exports.store = void 0;
2228
2372
  var global_store_1 = __webpack_require__(/*! global-store */ "global-store");
2229
2373
  var getLogModeFromEnvironment_1 = __webpack_require__(/*! ./getLogModeFromEnvironment */ "./src/getLogModeFromEnvironment.browser.ts");
2230
2374
  var logLevel_1 = __webpack_require__(/*! ./logLevel */ "./src/logLevel.ts");
2231
- exports.store = global_store_1.createStore({
2375
+ exports.store = (0, global_store_1.createStore)({
2232
2376
  moduleName: 'standard-log',
2233
2377
  key: 'e53d0937-f420-40a0-9901-099725fa4a53',
2234
2378
  version: '2.0.0',
2235
2379
  initializer: function (current) {
2236
- var mode = getLogModeFromEnvironment_1.getLogModeFromEnvironment() || 'production';
2380
+ var mode = (0, getLogModeFromEnvironment_1.getLogModeFromEnvironment)() || 'production';
2237
2381
  return __assign({ addCustomLogLevelListeners: [], configured: false, loggerClosures: {}, redirects: {}, reporters: [], customLevels: {}, customLevelsReverse: [], mode: mode, logLevel: logLevel_1.logLevels.info }, current);
2238
2382
  }
2239
2383
  });
@@ -2303,11 +2447,24 @@ writeToReporters.fn = function (logEntry, filter) {
2303
2447
  };
2304
2448
  function getConfiguredStore() {
2305
2449
  if (!store_1.store.value.configured)
2306
- config_1.config();
2450
+ (0, config_1.config)();
2307
2451
  return store_1.store;
2308
2452
  }
2309
2453
 
2310
2454
 
2455
+ /***/ }),
2456
+
2457
+ /***/ "../../node_modules/type-plus/lib/ComposableTypes.js":
2458
+ /*!***********************************************************!*\
2459
+ !*** ../../node_modules/type-plus/lib/ComposableTypes.js ***!
2460
+ \***********************************************************/
2461
+ /***/ (function(__unused_webpack_module, exports) {
2462
+
2463
+ "use strict";
2464
+
2465
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
2466
+ //# sourceMappingURL=ComposableTypes.js.map
2467
+
2311
2468
  /***/ }),
2312
2469
 
2313
2470
  /***/ "../../node_modules/type-plus/lib/JSONTypes.js":
@@ -2318,7 +2475,31 @@ function getConfiguredStore() {
2318
2475
 
2319
2476
  "use strict";
2320
2477
 
2478
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2479
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2480
+ if (ar || !(i in from)) {
2481
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2482
+ ar[i] = from[i];
2483
+ }
2484
+ }
2485
+ return to.concat(ar || Array.prototype.slice.call(from));
2486
+ };
2321
2487
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2488
+ exports.JSONTypes = void 0;
2489
+ exports.JSONTypes = { get: get };
2490
+ function get(obj) {
2491
+ var props = [];
2492
+ for (var _i = 1; _i < arguments.length; _i++) {
2493
+ props[_i - 1] = arguments[_i];
2494
+ }
2495
+ if (props.length === 0)
2496
+ return obj;
2497
+ if (typeof obj !== 'object' || obj === null)
2498
+ return undefined;
2499
+ var p = props.shift();
2500
+ // @ts-ignore
2501
+ return get.apply(void 0, __spreadArray([obj[p]], props, false));
2502
+ }
2322
2503
  //# sourceMappingURL=JSONTypes.js.map
2323
2504
 
2324
2505
  /***/ }),
@@ -2669,12 +2850,12 @@ exports.reduceWhile = reduceWhile;
2669
2850
 
2670
2851
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2671
2852
  exports.assertType = void 0;
2672
- var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/lib/index.js");
2853
+ var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/cjs/index.js");
2673
2854
  var class_1 = __webpack_require__(/*! ../class */ "../../node_modules/type-plus/lib/class/index.js");
2674
2855
  function assertType(subject, validator) {
2675
2856
  if (validator) {
2676
- if ((class_1.isConstructor(validator) && !(subject instanceof validator)) || !validator(subject))
2677
- throw new TypeError("subject fails to satisfy " + tersify_1.tersify(validator));
2857
+ if (((0, class_1.isConstructor)(validator) && !(subject instanceof validator)) || !validator(subject))
2858
+ throw new TypeError("subject fails to satisfy ".concat((0, tersify_1.tersify)(validator)));
2678
2859
  }
2679
2860
  return;
2680
2861
  }
@@ -2746,7 +2927,7 @@ assertType.noFunction = function (subject) {
2746
2927
  throw TypeError("subject is function");
2747
2928
  };
2748
2929
  assertType.isConstructor = function (subject) {
2749
- if (!class_1.isConstructor(subject))
2930
+ if (!(0, class_1.isConstructor)(subject))
2750
2931
  throw TypeError("subject is not a constructor");
2751
2932
  };
2752
2933
  assertType.isError = function (subject) {
@@ -2768,7 +2949,7 @@ assertType.isNever = function (subject) {
2768
2949
  assertType.custom = function (validator) {
2769
2950
  return function (subject) {
2770
2951
  if (!validator(subject))
2771
- throw new TypeError("subject fails to satisfy " + tersify_1.tersify(validator));
2952
+ throw new TypeError("subject fails to satisfy ".concat((0, tersify_1.tersify)(validator)));
2772
2953
  return;
2773
2954
  };
2774
2955
  };
@@ -2849,12 +3030,12 @@ __exportStar(__webpack_require__(/*! ./isConstructor */ "../../node_modules/type
2849
3030
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2850
3031
  exports.isConstructor = void 0;
2851
3032
  function isConstructor(subject) {
2852
- var _a;
2853
3033
  try {
2854
3034
  new subject();
2855
3035
  }
2856
3036
  catch (err) {
2857
- if (((_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.indexOf('is not a constructor')) >= 0) {
3037
+ var msg = err === null || err === void 0 ? void 0 : err.message;
3038
+ if (msg && msg.indexOf('is not a constructor') >= 0) {
2858
3039
  return false;
2859
3040
  }
2860
3041
  }
@@ -2981,6 +3162,7 @@ Object.defineProperty(exports, "requiredDeep", ({ enumerable: true, get: functio
2981
3162
  __exportStar(__webpack_require__(/*! ./array */ "../../node_modules/type-plus/lib/array/index.js"), exports);
2982
3163
  __exportStar(__webpack_require__(/*! ./assertion */ "../../node_modules/type-plus/lib/assertion/index.js"), exports);
2983
3164
  __exportStar(__webpack_require__(/*! ./class */ "../../node_modules/type-plus/lib/class/index.js"), exports);
3165
+ __exportStar(__webpack_require__(/*! ./ComposableTypes */ "../../node_modules/type-plus/lib/ComposableTypes.js"), exports);
2984
3166
  __exportStar(__webpack_require__(/*! ./function */ "../../node_modules/type-plus/lib/function/index.js"), exports);
2985
3167
  __exportStar(__webpack_require__(/*! ./functional */ "../../node_modules/type-plus/lib/functional/index.js"), exports);
2986
3168
  __exportStar(__webpack_require__(/*! ./JSONTypes */ "../../node_modules/type-plus/lib/JSONTypes.js"), exports);
@@ -3160,9 +3342,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3160
3342
  exports.flavor = void 0;
3161
3343
  var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/lib/nominal-types/types.js");
3162
3344
  function flavor(type, subject) {
3163
- if (subject === undefined) {
3345
+ if (subject === undefined)
3164
3346
  return function (subject) { return flavor(type, subject); };
3165
- }
3166
3347
  if (typeof subject === 'object' && subject !== null) {
3167
3348
  // if subject is not an object, the branding will exist only in type-level.
3168
3349
  subject[types_1.typeSym] = type;
@@ -3351,6 +3532,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3351
3532
 
3352
3533
  "use strict";
3353
3534
 
3535
+ // Original by Klaus Meinhardt @ajafff
3536
+ // known from Gerrit Birkeland @Gerrit0
3537
+ // https://github.com/Microsoft/TypeScript/issues/25987#issuecomment-408339599
3354
3538
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3355
3539
  //# sourceMappingURL=KnownKeys.js.map
3356
3540
 
@@ -3510,14 +3694,17 @@ function facade(subject) {
3510
3694
  return props.reduce(function (p, k) {
3511
3695
  var prop = subject[k];
3512
3696
  if (typeof prop === 'function') {
3697
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
3513
3698
  p[k] = prop.bind(subject);
3514
3699
  }
3515
3700
  else {
3516
3701
  Object.defineProperty(p, k, {
3517
3702
  get: function () {
3703
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
3518
3704
  return subject[k];
3519
3705
  },
3520
3706
  set: function (value) {
3707
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment
3521
3708
  return subject[k] = value;
3522
3709
  },
3523
3710
  });
@@ -3737,7 +3924,7 @@ var reduceKey_1 = __webpack_require__(/*! ./reduceKey */ "../../node_modules/typ
3737
3924
  * I keep this parameter order because this parameter order provides better type inference.
3738
3925
  */
3739
3926
  function mapProperties(subject, callbackfn) {
3740
- return reduceKey_1.reduceByKey(subject, function (p, key) { return (p[key] = callbackfn(subject[key], key, subject),
3927
+ return (0, reduceKey_1.reduceByKey)(subject, function (p, key) { return (p[key] = callbackfn(subject[key], key, subject),
3741
3928
  p); }, {});
3742
3929
  }
3743
3930
  exports.mapProperties = mapProperties;
@@ -3761,7 +3948,7 @@ function omit(subject) {
3761
3948
  for (var _i = 1; _i < arguments.length; _i++) {
3762
3949
  props[_i - 1] = arguments[_i];
3763
3950
  }
3764
- return object_1.reduceByKey(subject, function (p, k) {
3951
+ return (0, object_1.reduceByKey)(subject, function (p, k) {
3765
3952
  if (props.indexOf(k) === -1)
3766
3953
  p[k] = subject[k];
3767
3954
  return p;
@@ -3788,7 +3975,7 @@ function pick(subject) {
3788
3975
  for (var _i = 1; _i < arguments.length; _i++) {
3789
3976
  props[_i - 1] = arguments[_i];
3790
3977
  }
3791
- return reduceKey_1.reduceByKey(subject, function (p, k) {
3978
+ return (0, reduceKey_1.reduceByKey)(subject, function (p, k) {
3792
3979
  if (props.indexOf(k) >= 0)
3793
3980
  p[k] = subject[k];
3794
3981
  return p;
@@ -3982,10 +4169,24 @@ __exportStar(__webpack_require__(/*! ./Extends */ "../../node_modules/type-plus/
3982
4169
  __exportStar(__webpack_require__(/*! ./If */ "../../node_modules/type-plus/lib/predicates/If.js"), exports);
3983
4170
  __exportStar(__webpack_require__(/*! ./isType */ "../../node_modules/type-plus/lib/predicates/isType.js"), exports);
3984
4171
  __exportStar(__webpack_require__(/*! ./logical */ "../../node_modules/type-plus/lib/predicates/logical.js"), exports);
4172
+ __exportStar(__webpack_require__(/*! ./isEmptyObject */ "../../node_modules/type-plus/lib/predicates/isEmptyObject.js"), exports);
3985
4173
  //# sourceMappingURL=index.js.map
3986
4174
 
3987
4175
  /***/ }),
3988
4176
 
4177
+ /***/ "../../node_modules/type-plus/lib/predicates/isEmptyObject.js":
4178
+ /*!********************************************************************!*\
4179
+ !*** ../../node_modules/type-plus/lib/predicates/isEmptyObject.js ***!
4180
+ \********************************************************************/
4181
+ /***/ (function(__unused_webpack_module, exports) {
4182
+
4183
+ "use strict";
4184
+
4185
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
4186
+ //# sourceMappingURL=isEmptyObject.js.map
4187
+
4188
+ /***/ }),
4189
+
3989
4190
  /***/ "../../node_modules/type-plus/lib/predicates/isType.js":
3990
4191
  /*!*************************************************************!*\
3991
4192
  !*** ../../node_modules/type-plus/lib/predicates/isType.js ***!
@@ -3999,7 +4200,7 @@ exports.isType = void 0;
3999
4200
  var class_1 = __webpack_require__(/*! ../class */ "../../node_modules/type-plus/lib/class/index.js");
4000
4201
  function isType(subject, validator) {
4001
4202
  if (validator) {
4002
- if (class_1.isConstructor(validator))
4203
+ if ((0, class_1.isConstructor)(validator))
4003
4204
  return subject instanceof validator;
4004
4205
  else
4005
4206
  return validator(subject);
@@ -4007,18 +4208,15 @@ function isType(subject, validator) {
4007
4208
  return true;
4008
4209
  }
4009
4210
  exports.isType = isType;
4010
- var sym = Symbol();
4011
- isType.true = function (subject) {
4012
- if (subject === void 0) { subject = sym; }
4013
- return subject === sym || subject === true;
4211
+ isType.t = function (subject) {
4212
+ return subject === undefined || subject === true;
4014
4213
  };
4015
- isType.false = function (subject) {
4016
- if (subject === void 0) { subject = sym; }
4017
- return subject === sym || subject === false;
4214
+ isType.f = function (subject) {
4215
+ return subject === undefined || subject === false;
4018
4216
  };
4019
4217
  /**
4020
4218
  * are types A and B equals/not equals.
4021
- * Slightly easier to use then `isType.true<>()` and `isType.false<>()`,
4219
+ * Slightly easier to use then `isType.t<>()` and `isType.f<>()`,
4022
4220
  * when doing type level only equality comparison as you don't have to import `Equal<>`.
4023
4221
  */
4024
4222
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -4104,7 +4302,8 @@ __exportStar(__webpack_require__(/*! ./mapSeries */ "../../node_modules/type-plu
4104
4302
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4105
4303
  exports.isPromise = void 0;
4106
4304
  function isPromise(subject) {
4107
- return !!subject && typeof subject.then === 'function';
4305
+ // @ts-ignore
4306
+ return !!subject && typeof subject['then'] === 'function';
4108
4307
  }
4109
4308
  exports.isPromise = isPromise;
4110
4309
  //# sourceMappingURL=isPromise.js.map
@@ -4122,13 +4321,7 @@ exports.isPromise = isPromise;
4122
4321
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4123
4322
  exports.mapSeries = void 0;
4124
4323
  function mapSeries(values, fn) {
4125
- var results = [];
4126
- return values.reduce(function (p, v) {
4127
- return p.then(function () { return fn(v); }).then(function (r) {
4128
- results.push(r);
4129
- return results;
4130
- });
4131
- }, Promise.resolve());
4324
+ return values.reduce(function (p, v) { return p.then(function (r) { return fn(v).then(function (v) { return (r.push(v), r); }); }); }, Promise.resolve([]));
4132
4325
  }
4133
4326
  exports.mapSeries = mapSeries;
4134
4327
  //# sourceMappingURL=mapSeries.js.map
@@ -4282,12 +4475,14 @@ exports.nil = Object.assign({}, any, {
4282
4475
 
4283
4476
  "use strict";
4284
4477
 
4285
- var __spreadArrays = (this && this.__spreadArrays) || function () {
4286
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4287
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
4288
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4289
- r[k] = a[j];
4290
- return r;
4478
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4479
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4480
+ if (ar || !(i in from)) {
4481
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
4482
+ ar[i] = from[i];
4483
+ }
4484
+ }
4485
+ return to.concat(ar || Array.prototype.slice.call(from));
4291
4486
  };
4292
4487
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4293
4488
  exports.number = void 0;
@@ -4309,7 +4504,7 @@ exports.number = Object.assign(any, {
4309
4504
  for (var _i = 1; _i < arguments.length; _i++) {
4310
4505
  values[_i - 1] = arguments[_i];
4311
4506
  }
4312
- return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create)));
4507
+ return Union_1.union.create.apply(Union_1.union, __spreadArray([create(value)], values.map(create), false));
4313
4508
  },
4314
4509
  optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
4315
4510
  /**
@@ -4324,7 +4519,7 @@ exports.number = Object.assign(any, {
4324
4519
  for (var _i = 1; _i < arguments.length; _i++) {
4325
4520
  values[_i - 1] = arguments[_i];
4326
4521
  }
4327
- return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create), [Undefined_1.undef]));
4522
+ return Union_1.union.create.apply(Union_1.union, __spreadArray(__spreadArray([create(value)], values.map(create), false), [Undefined_1.undef], false));
4328
4523
  }
4329
4524
  })
4330
4525
  });
@@ -4356,7 +4551,7 @@ function create(props) {
4356
4551
  }
4357
4552
  var any = create(undefined);
4358
4553
  function map(callback, subject) {
4359
- return object_1.reduceByKey(subject, function (p, k) { return (p[k] = callback(subject[k], k, p), p); }, {});
4554
+ return (0, object_1.reduceByKey)(subject, function (p, k) { return (p[k] = callback(subject[k], k, p), p); }, {});
4360
4555
  }
4361
4556
  exports.map = map;
4362
4557
  exports.object = Object.assign(any, {
@@ -4412,12 +4607,14 @@ exports.record = {
4412
4607
 
4413
4608
  "use strict";
4414
4609
 
4415
- var __spreadArrays = (this && this.__spreadArrays) || function () {
4416
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4417
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
4418
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4419
- r[k] = a[j];
4420
- return r;
4610
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4611
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4612
+ if (ar || !(i in from)) {
4613
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
4614
+ ar[i] = from[i];
4615
+ }
4616
+ }
4617
+ return to.concat(ar || Array.prototype.slice.call(from));
4421
4618
  };
4422
4619
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4423
4620
  exports.string = void 0;
@@ -4440,7 +4637,7 @@ exports.string = Object.assign(any, {
4440
4637
  for (var _i = 1; _i < arguments.length; _i++) {
4441
4638
  values[_i - 1] = arguments[_i];
4442
4639
  }
4443
- return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create)));
4640
+ return Union_1.union.create.apply(Union_1.union, __spreadArray([create(value)], values.map(create), false));
4444
4641
  },
4445
4642
  optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
4446
4643
  /**
@@ -4455,7 +4652,7 @@ exports.string = Object.assign(any, {
4455
4652
  for (var _i = 1; _i < arguments.length; _i++) {
4456
4653
  values[_i - 1] = arguments[_i];
4457
4654
  }
4458
- return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create), [Undefined_1.undef]));
4655
+ return Union_1.union.create.apply(Union_1.union, __spreadArray(__spreadArray([create(value)], values.map(create), false), [Undefined_1.undef], false));
4459
4656
  }
4460
4657
  })
4461
4658
  });
@@ -4494,12 +4691,14 @@ exports.symbol = Object.assign(any, {
4494
4691
 
4495
4692
  "use strict";
4496
4693
 
4497
- var __spreadArrays = (this && this.__spreadArrays) || function () {
4498
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4499
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
4500
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4501
- r[k] = a[j];
4502
- return r;
4694
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4695
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4696
+ if (ar || !(i in from)) {
4697
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
4698
+ ar[i] = from[i];
4699
+ }
4700
+ }
4701
+ return to.concat(ar || Array.prototype.slice.call(from));
4503
4702
  };
4504
4703
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4505
4704
  exports.tuple = void 0;
@@ -4515,7 +4714,7 @@ function create(value) {
4515
4714
  }
4516
4715
  return {
4517
4716
  type: 'tuple',
4518
- value: __spreadArrays([value], values)
4717
+ value: __spreadArray([value], values, true)
4519
4718
  };
4520
4719
  }
4521
4720
  exports.tuple = {
@@ -4529,7 +4728,7 @@ exports.tuple = {
4529
4728
  for (var _i = 1; _i < arguments.length; _i++) {
4530
4729
  values[_i - 1] = arguments[_i];
4531
4730
  }
4532
- return Union_1.union.create(create.apply(void 0, __spreadArrays([value], values)), Undefined_1.undef);
4731
+ return Union_1.union.create(create.apply(void 0, __spreadArray([value], values, false)), Undefined_1.undef);
4533
4732
  }
4534
4733
  }
4535
4734
  };
@@ -4560,12 +4759,14 @@ exports.undef = { type: 'undefined', value: undefined };
4560
4759
 
4561
4760
  "use strict";
4562
4761
 
4563
- var __spreadArrays = (this && this.__spreadArrays) || function () {
4564
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4565
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
4566
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4567
- r[k] = a[j];
4568
- return r;
4762
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4763
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4764
+ if (ar || !(i in from)) {
4765
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
4766
+ ar[i] = from[i];
4767
+ }
4768
+ }
4769
+ return to.concat(ar || Array.prototype.slice.call(from));
4569
4770
  };
4570
4771
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4571
4772
  exports.union = void 0;
@@ -4604,7 +4805,7 @@ exports.union = {
4604
4805
  values[_i - 1] = arguments[_i];
4605
4806
  }
4606
4807
  values.push(Undefined_1.undef);
4607
- return create.apply(void 0, __spreadArrays([value], values));
4808
+ return create.apply(void 0, __spreadArray([value], values, false));
4608
4809
  }
4609
4810
  }
4610
4811
  };
@@ -4757,7 +4958,7 @@ function analyzeRecord(options, type, actual) {
4757
4958
  var subType = type['value'];
4758
4959
  if (!isOnlyObject(actual))
4759
4960
  return fail('record', ok(subType));
4760
- var r = object_1.reduceByKey(actual, function (p, k) {
4961
+ var r = (0, object_1.reduceByKey)(actual, function (p, k) {
4761
4962
  var r = analyzeInternal(options, subType, actual[k]);
4762
4963
  if (r.fail) {
4763
4964
  p.value = r.value;
@@ -4782,7 +4983,8 @@ function ok(t) {
4782
4983
  if (value['type'])
4783
4984
  return { type: type, value: ok(value) };
4784
4985
  return {
4785
- type: type, value: object_1.reduceByKey(value, function (p, k) { return (p[k] = ok(value[k]), p); }, {})
4986
+ type: type,
4987
+ value: (0, object_1.reduceByKey)(value, function (p, k) { return (p[k] = ok(value[k]), p); }, {})
4786
4988
  };
4787
4989
  }
4788
4990
  function fail(type, value) {
@@ -4814,7 +5016,7 @@ var getPlainAnalysisReport_1 = __webpack_require__(/*! ./getPlainAnalysisReport
4814
5016
  * and you can get a string report using `check.getReport()`
4815
5017
  */
4816
5018
  function check(options, type, subject) {
4817
- var result = check.result = analyze_1.analyze(options, type, subject);
5019
+ var result = check.result = (0, analyze_1.analyze)(options, type, subject);
4818
5020
  return !result.analysis.fail;
4819
5021
  }
4820
5022
  exports.check = check;
@@ -4825,7 +5027,7 @@ check.result = { analysis: {}, actual: undefined };
4825
5027
  /**
4826
5028
  * Gets a simple report of the analysis.
4827
5029
  */
4828
- check.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalysisReport(check.result); };
5030
+ check.getReport = function () { return (0, getPlainAnalysisReport_1.getPlainAnalysisReport)(check.result); };
4829
5031
  //# sourceMappingURL=check.js.map
4830
5032
 
4831
5033
  /***/ }),
@@ -4850,7 +5052,7 @@ var getPlainAnalysisReport_1 = __webpack_require__(/*! ./getPlainAnalysisReport
4850
5052
  * and you can get a string report using `conform.getReport()`
4851
5053
  */
4852
5054
  function conform(type, subject) {
4853
- var result = conform.result = analyze_1.analyze({ strict: true }, type, subject);
5055
+ var result = conform.result = (0, analyze_1.analyze)({ strict: true }, type, subject);
4854
5056
  return !result.analysis.fail;
4855
5057
  }
4856
5058
  exports.conform = conform;
@@ -4861,7 +5063,7 @@ conform.result = { analysis: {}, actual: undefined };
4861
5063
  /**
4862
5064
  * Gets a simple report of the analysis.
4863
5065
  */
4864
- conform.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalysisReport(conform.result); };
5066
+ conform.getReport = function () { return (0, getPlainAnalysisReport_1.getPlainAnalysisReport)(conform.result); };
4865
5067
  //# sourceMappingURL=conform.js.map
4866
5068
 
4867
5069
  /***/ }),
@@ -4874,20 +5076,22 @@ conform.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalys
4874
5076
 
4875
5077
  "use strict";
4876
5078
 
4877
- var __spreadArrays = (this && this.__spreadArrays) || function () {
4878
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4879
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
4880
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4881
- r[k] = a[j];
4882
- return r;
5079
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5080
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5081
+ if (ar || !(i in from)) {
5082
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5083
+ ar[i] = from[i];
5084
+ }
5085
+ }
5086
+ return to.concat(ar || Array.prototype.slice.call(from));
4883
5087
  };
4884
5088
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4885
5089
  exports.getPlainAnalysisReport = void 0;
4886
- var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/lib/index.js");
5090
+ var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/cjs/index.js");
4887
5091
  var object_1 = __webpack_require__(/*! ../object */ "../../node_modules/type-plus/lib/object/index.js");
4888
5092
  function getPlainAnalysisReport(analysisResult) {
4889
5093
  if (!analysisResult.analysis.fail) {
4890
- return "The subject" + (analysisResult.options.strict ? ' strictly' : '') + " satisfies type " + formatAnalysis(analysisResult.analysis);
5094
+ return "The subject".concat(analysisResult.options.strict ? ' strictly' : '', " satisfies type ").concat(formatAnalysis(analysisResult.analysis));
4891
5095
  }
4892
5096
  return toViolations(analysisResult.options, [], analysisResult.actual, analysisResult.analysis).join('\n');
4893
5097
  }
@@ -4897,16 +5101,16 @@ function formatAnalysis(a) {
4897
5101
  }
4898
5102
  function toViolations(options, path, actual, analysis) {
4899
5103
  var clause = options.strict ? "expects to be strictly" : "expects to be";
4900
- var violations = [formatPath(path) + " " + clause + " " + formatType(analysis) + " but is actually " + tersify_1.tersify(actual)];
5104
+ var violations = ["".concat(formatPath(path), " ").concat(clause, " ").concat(formatType(analysis), " but is actually ").concat((0, tersify_1.tersify)(actual))];
4901
5105
  switch (analysis.type) {
4902
5106
  case 'tuple': {
4903
5107
  if (options.strict && analysis.value.length < actual.length) {
4904
5108
  var index = actual.length - analysis.value.length === 1 ? 'index' : 'indices';
4905
- violations.push(index + " " + range(analysis.value.length, actual.length) + " should not contain any value");
5109
+ violations.push("".concat(index, " ").concat(range(analysis.value.length, actual.length), " should not contain any value"));
4906
5110
  }
4907
5111
  var v2 = analysis.value.reduce(function (p, a, i) {
4908
5112
  if (a.fail)
4909
- p.push.apply(p, toViolations(options, __spreadArrays(path, [i]), actual[i], a));
5113
+ p.push.apply(p, toViolations(options, __spreadArray(__spreadArray([], path, true), [i], false), actual[i], a));
4910
5114
  return p;
4911
5115
  }, []);
4912
5116
  if (v2.length > 0)
@@ -4920,12 +5124,12 @@ function toViolations(options, path, actual, analysis) {
4920
5124
  if (options.strict) {
4921
5125
  var extraKeys = actualKeys.filter(function (k) { return typeKeys_1.indexOf(k) === -1; });
4922
5126
  var index = extraKeys.length === 1 ? 'property' : 'properties';
4923
- violations.push(index + " " + extraKeys.join(',') + " should not contain any value");
5127
+ violations.push("".concat(index, " ").concat(extraKeys.join(','), " should not contain any value"));
4924
5128
  }
4925
5129
  var propViolations = typeKeys_1.reduce(function (p, k) {
4926
5130
  var a = analysis.value[k];
4927
5131
  if (a.fail)
4928
- p.push.apply(p, toViolations(options, __spreadArrays(path, [k]), actual[k], a));
5132
+ p.push.apply(p, toViolations(options, __spreadArray(__spreadArray([], path, true), [k], false), actual[k], a));
4929
5133
  return p;
4930
5134
  }, []);
4931
5135
  if (propViolations.length > 0)
@@ -4936,17 +5140,17 @@ function toViolations(options, path, actual, analysis) {
4936
5140
  return violations;
4937
5141
  }
4938
5142
  function formatPath(path) {
4939
- return path.length === 0 ? 'subject' : "subject" + path.map(function (p) { return toAccessor(p); }).join('');
5143
+ return path.length === 0 ? 'subject' : "subject".concat(path.map(function (p) { return toAccessor(p); }).join(''));
4940
5144
  }
4941
5145
  function toAccessor(p) {
4942
5146
  if (typeof p === 'number')
4943
- return "[" + p + "]";
5147
+ return "[".concat(p, "]");
4944
5148
  if (p.indexOf('-') >= 0)
4945
- return "['" + p + "']";
4946
- return "." + p;
5149
+ return "['".concat(p, "']");
5150
+ return ".".concat(p);
4947
5151
  }
4948
5152
  function toProp(p) {
4949
- return p.indexOf('-') >= 0 ? "'" + p + "'" : p;
5153
+ return p.indexOf('-') >= 0 ? "'".concat(p, "'") : p;
4950
5154
  }
4951
5155
  function formatType(e) {
4952
5156
  switch (e.type) {
@@ -4960,24 +5164,24 @@ function formatType(e) {
4960
5164
  // case 'bigint':
4961
5165
  return e.value === undefined ? e.type : String(e.value);
4962
5166
  case 'string':
4963
- return e.value === undefined ? e.type : "'" + e.value + "'";
5167
+ return e.value === undefined ? e.type : "'".concat(e.value, "'");
4964
5168
  case 'array':
4965
- return e.value === undefined ? 'Array<any>' : "Array<" + formatType(e.value) + ">";
5169
+ return e.value === undefined ? 'Array<any>' : "Array<".concat(formatType(e.value), ">");
4966
5170
  case 'tuple':
4967
- return "[" + formatExpectations(e.value) + "]";
5171
+ return "[".concat(formatExpectations(e.value), "]");
4968
5172
  case 'object':
4969
5173
  return e.value === undefined ? e.type
4970
- : "{ " + object_1.reduceByKey(e.value, function (p, k) {
4971
- p.push(toProp(k) + ": " + formatType(e.value[k]));
5174
+ : "{ ".concat((0, object_1.reduceByKey)(e.value, function (p, k) {
5175
+ p.push("".concat(toProp(k), ": ").concat(formatType(e.value[k])));
4972
5176
  return p;
4973
- }, []).join(', ') + " }";
5177
+ }, []).join(', '), " }");
4974
5178
  case 'record':
4975
- return "Record<string, " + formatType(e.value) + ">";
5179
+ return "Record<string, ".concat(formatType(e.value), ">");
4976
5180
  case 'union':
4977
- return "(" + formatExpectations(e.value, ' | ') + ")";
5181
+ return "(".concat(formatExpectations(e.value, ' | '), ")");
4978
5182
  // istanbul ignore next
4979
5183
  default:
4980
- return "report not expected: " + e.value;
5184
+ return "report not expected: ".concat(e.value);
4981
5185
  }
4982
5186
  }
4983
5187
  function formatExpectations(es, sep) {
@@ -5020,7 +5224,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
5020
5224
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5021
5225
  };
5022
5226
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5023
- exports.undefined = exports.object = exports.keys = exports.null = void 0;
5227
+ exports.undefined = exports.object = exports.keys = exports["null"] = void 0;
5024
5228
  // export * from './BigInt'
5025
5229
  __exportStar(__webpack_require__(/*! ./AllType */ "../../node_modules/type-plus/lib/types/AllType.js"), exports);
5026
5230
  __exportStar(__webpack_require__(/*! ./Any */ "../../node_modules/type-plus/lib/types/Any.js"), exports);
@@ -5155,7 +5359,7 @@ var getPlainAnalysisReport_1 = __webpack_require__(/*! ./getPlainAnalysisReport
5155
5359
  * and you can get a string report using `satisfy.getReport()`
5156
5360
  */
5157
5361
  function satisfy(type, subject) {
5158
- var result = satisfy.result = analyze_1.analyze({ strict: false }, type, subject);
5362
+ var result = satisfy.result = (0, analyze_1.analyze)({ strict: false }, type, subject);
5159
5363
  return !result.analysis.fail;
5160
5364
  }
5161
5365
  exports.satisfy = satisfy;
@@ -5166,7 +5370,7 @@ satisfy.result = { analysis: {} };
5166
5370
  /**
5167
5371
  * Gets a simple report of the analysis.
5168
5372
  */
5169
- satisfy.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalysisReport(satisfy.result); };
5373
+ satisfy.getReport = function () { return (0, getPlainAnalysisReport_1.getPlainAnalysisReport)(satisfy.result); };
5170
5374
  //# sourceMappingURL=satisfy.js.map
5171
5375
 
5172
5376
  /***/ }),
@@ -5197,6 +5401,28 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
5197
5401
 
5198
5402
  /***/ }),
5199
5403
 
5404
+ /***/ "../../node_modules/type-plus/lib/utils/as.js":
5405
+ /*!****************************************************!*\
5406
+ !*** ../../node_modules/type-plus/lib/utils/as.js ***!
5407
+ \****************************************************/
5408
+ /***/ (function(__unused_webpack_module, exports) {
5409
+
5410
+ "use strict";
5411
+
5412
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5413
+ exports.asAny = exports.as = void 0;
5414
+ function as(subject) {
5415
+ return true;
5416
+ }
5417
+ exports.as = as;
5418
+ function asAny(subject) {
5419
+ return true;
5420
+ }
5421
+ exports.asAny = asAny;
5422
+ //# sourceMappingURL=as.js.map
5423
+
5424
+ /***/ }),
5425
+
5200
5426
  /***/ "../../node_modules/type-plus/lib/utils/index.js":
5201
5427
  /*!*******************************************************!*\
5202
5428
  !*** ../../node_modules/type-plus/lib/utils/index.js ***!
@@ -5216,6 +5442,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
5216
5442
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5217
5443
  };
5218
5444
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5445
+ __exportStar(__webpack_require__(/*! ./as */ "../../node_modules/type-plus/lib/utils/as.js"), exports);
5219
5446
  __exportStar(__webpack_require__(/*! ./Widen */ "../../node_modules/type-plus/lib/utils/Widen.js"), exports);
5220
5447
  //# sourceMappingURL=index.js.map
5221
5448
 
@@ -5229,12 +5456,19 @@ __exportStar(__webpack_require__(/*! ./Widen */ "../../node_modules/type-plus/li
5229
5456
 
5230
5457
  "use strict";
5231
5458
 
5232
- function __export(m) {
5233
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5234
- }
5459
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5460
+ if (k2 === undefined) k2 = k;
5461
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5462
+ }) : (function(o, m, k, k2) {
5463
+ if (k2 === undefined) k2 = k;
5464
+ o[k2] = m[k];
5465
+ }));
5466
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
5467
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5468
+ };
5235
5469
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5236
- __export(__webpack_require__(/*! ./required */ "../../node_modules/unpartial/lib/required.js"));
5237
- __export(__webpack_require__(/*! ./unpartial */ "../../node_modules/unpartial/lib/unpartial.js"));
5470
+ __exportStar(__webpack_require__(/*! ./required */ "../../node_modules/unpartial/lib/required.js"), exports);
5471
+ __exportStar(__webpack_require__(/*! ./unpartial */ "../../node_modules/unpartial/lib/unpartial.js"), exports);
5238
5472
  //# sourceMappingURL=index.js.map
5239
5473
 
5240
5474
  /***/ }),
@@ -5258,9 +5492,21 @@ var __assign = (this && this.__assign) || function () {
5258
5492
  };
5259
5493
  return __assign.apply(this, arguments);
5260
5494
  };
5495
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5496
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5497
+ if (ar || !(i in from)) {
5498
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5499
+ ar[i] = from[i];
5500
+ }
5501
+ }
5502
+ return to.concat(ar || Array.prototype.slice.call(from));
5503
+ };
5261
5504
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5505
+ exports.requiredDeep = exports.required = void 0;
5506
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
5507
+ /* eslint-disable @typescript-eslint/no-unsafe-return */
5262
5508
  function required(source1, source2, source3) {
5263
- return merge([source1, source2, source3], function (p, e) { return (__assign({}, p, e)); });
5509
+ return merge([source1, source2, source3], function (p, e) { return (__assign(__assign({}, p), e)); });
5264
5510
  }
5265
5511
  exports.required = required;
5266
5512
  function requiredDeep(source1, source2, source3) {
@@ -5279,10 +5525,11 @@ function deepmerge(source1, source2) {
5279
5525
  if (Array.isArray(source2))
5280
5526
  return source2;
5281
5527
  if (source2 === undefined)
5282
- return source1.slice();
5283
- return source1.concat([source2]);
5528
+ return __spreadArray([], source1, true);
5529
+ return __spreadArray(__spreadArray([], source1, true), [source2], false);
5284
5530
  }
5285
5531
  return getAllKeys(source1).concat(getAllKeys(source2)).reduce(function (p, k) {
5532
+ // @ts-ignore
5286
5533
  p[k] = deepmerge(source1[k], source2 && source2[k]);
5287
5534
  return p;
5288
5535
  }, {});
@@ -5293,6 +5540,7 @@ function getAllKeys(subject, internal) {
5293
5540
  return [];
5294
5541
  var propertyNames = Object.getOwnPropertyNames(subject);
5295
5542
  var keys = internal ? propertyNames.filter(function (n) { return n !== 'constructor'; }) : propertyNames;
5543
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
5296
5544
  var proto = Object.getPrototypeOf(subject);
5297
5545
  return proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;
5298
5546
  }
@@ -5309,13 +5557,16 @@ function getAllKeys(subject, internal) {
5309
5557
  "use strict";
5310
5558
 
5311
5559
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5560
+ exports.unpartialRecursively = exports.unpartial = void 0;
5312
5561
  var required_1 = __webpack_require__(/*! ./required */ "../../node_modules/unpartial/lib/required.js");
5313
5562
  function unpartial(arg1, arg2, arg3) {
5314
- return required_1.required(arg1, arg2, arg3);
5563
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5564
+ return (0, required_1.required)(arg1, arg2, arg3);
5315
5565
  }
5316
5566
  exports.unpartial = unpartial;
5317
5567
  function unpartialRecursively(arg1, arg2, arg3) {
5318
- return required_1.requiredDeep(arg1, arg2, arg3);
5568
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5569
+ return (0, required_1.requiredDeep)(arg1, arg2, arg3);
5319
5570
  }
5320
5571
  exports.unpartialRecursively = unpartialRecursively;
5321
5572
  //# sourceMappingURL=unpartial.js.map
@@ -6161,8 +6412,9 @@ module.exports = GlobalStore;
6161
6412
  /******/ // The require function
6162
6413
  /******/ function __webpack_require__(moduleId) {
6163
6414
  /******/ // Check if module is in cache
6164
- /******/ if(__webpack_module_cache__[moduleId]) {
6165
- /******/ return __webpack_module_cache__[moduleId].exports;
6415
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
6416
+ /******/ if (cachedModule !== undefined) {
6417
+ /******/ return cachedModule.exports;
6166
6418
  /******/ }
6167
6419
  /******/ // Create a new module (and put it into the cache)
6168
6420
  /******/ var module = __webpack_module_cache__[moduleId] = {