@rife/logger 0.0.6-beta.10 → 0.0.6-beta.11

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.
@@ -0,0 +1,2870 @@
1
+ var __webpack_modules__ = {
2
+ "../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js": function(module1) {
3
+ "use strict";
4
+ if ('undefined' != typeof SharedArrayBuffer && 'undefined' != typeof Atomics) {
5
+ const nil = new Int32Array(new SharedArrayBuffer(4));
6
+ function sleep(ms) {
7
+ const valid = ms > 0 && ms < 1 / 0;
8
+ if (false === valid) {
9
+ if ('number' != typeof ms && 'bigint' != typeof ms) throw TypeError('sleep: ms must be a number');
10
+ throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity');
11
+ }
12
+ Atomics.wait(nil, 0, 0, Number(ms));
13
+ }
14
+ module1.exports = sleep;
15
+ } else {
16
+ function sleep1(ms) {
17
+ const valid = ms > 0 && ms < 1 / 0;
18
+ if (false === valid) {
19
+ if ('number' != typeof ms && 'bigint' != typeof ms) throw TypeError('sleep: ms must be a number');
20
+ throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity');
21
+ }
22
+ const target = Date.now() + Number(ms);
23
+ while(target > Date.now());
24
+ }
25
+ module1.exports = sleep1;
26
+ }
27
+ },
28
+ "../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js": function(module1, exports) {
29
+ "use strict";
30
+ function _typeof(obj) {
31
+ _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
32
+ return typeof obj;
33
+ } : function(obj) {
34
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
35
+ };
36
+ return _typeof(obj);
37
+ }
38
+ (function(global1) {
39
+ var _arguments = arguments;
40
+ var dateFormat = function() {
41
+ var token = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g;
42
+ var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
43
+ var timezoneClip = /[^-+\dA-Z]/g;
44
+ return function(date, mask, utc, gmt) {
45
+ if (1 === _arguments.length && "string" === kindOf(date) && !/\d/.test(date)) {
46
+ mask = date;
47
+ date = void 0;
48
+ }
49
+ date = date || 0 === date ? date : new Date;
50
+ if (!(date instanceof Date)) date = new Date(date);
51
+ if (isNaN(date)) throw TypeError("Invalid date");
52
+ mask = String(dateFormat.masks[mask] || mask || dateFormat.masks["default"]);
53
+ var maskSlice = mask.slice(0, 4);
54
+ if ("UTC:" === maskSlice || "GMT:" === maskSlice) {
55
+ mask = mask.slice(4);
56
+ utc = true;
57
+ if ("GMT:" === maskSlice) gmt = true;
58
+ }
59
+ var _ = function() {
60
+ return utc ? "getUTC" : "get";
61
+ };
62
+ var _d = function() {
63
+ return date[_() + "Date"]();
64
+ };
65
+ var D = function() {
66
+ return date[_() + "Day"]();
67
+ };
68
+ var _m = function() {
69
+ return date[_() + "Month"]();
70
+ };
71
+ var y = function() {
72
+ return date[_() + "FullYear"]();
73
+ };
74
+ var _H = function() {
75
+ return date[_() + "Hours"]();
76
+ };
77
+ var _M = function() {
78
+ return date[_() + "Minutes"]();
79
+ };
80
+ var _s = function() {
81
+ return date[_() + "Seconds"]();
82
+ };
83
+ var _L = function() {
84
+ return date[_() + "Milliseconds"]();
85
+ };
86
+ var _o = function() {
87
+ return utc ? 0 : date.getTimezoneOffset();
88
+ };
89
+ var _W = function() {
90
+ return getWeek(date);
91
+ };
92
+ var _N = function() {
93
+ return getDayOfWeek(date);
94
+ };
95
+ var flags = {
96
+ d: function() {
97
+ return _d();
98
+ },
99
+ dd: function() {
100
+ return pad(_d());
101
+ },
102
+ ddd: function() {
103
+ return dateFormat.i18n.dayNames[D()];
104
+ },
105
+ DDD: function() {
106
+ return getDayName({
107
+ y: y(),
108
+ m: _m(),
109
+ d: _d(),
110
+ _: _(),
111
+ dayName: dateFormat.i18n.dayNames[D()],
112
+ short: true
113
+ });
114
+ },
115
+ dddd: function() {
116
+ return dateFormat.i18n.dayNames[D() + 7];
117
+ },
118
+ DDDD: function() {
119
+ return getDayName({
120
+ y: y(),
121
+ m: _m(),
122
+ d: _d(),
123
+ _: _(),
124
+ dayName: dateFormat.i18n.dayNames[D() + 7]
125
+ });
126
+ },
127
+ m: function() {
128
+ return _m() + 1;
129
+ },
130
+ mm: function() {
131
+ return pad(_m() + 1);
132
+ },
133
+ mmm: function() {
134
+ return dateFormat.i18n.monthNames[_m()];
135
+ },
136
+ mmmm: function() {
137
+ return dateFormat.i18n.monthNames[_m() + 12];
138
+ },
139
+ yy: function() {
140
+ return String(y()).slice(2);
141
+ },
142
+ yyyy: function() {
143
+ return pad(y(), 4);
144
+ },
145
+ h: function() {
146
+ return _H() % 12 || 12;
147
+ },
148
+ hh: function() {
149
+ return pad(_H() % 12 || 12);
150
+ },
151
+ H: function() {
152
+ return _H();
153
+ },
154
+ HH: function() {
155
+ return pad(_H());
156
+ },
157
+ M: function() {
158
+ return _M();
159
+ },
160
+ MM: function() {
161
+ return pad(_M());
162
+ },
163
+ s: function() {
164
+ return _s();
165
+ },
166
+ ss: function() {
167
+ return pad(_s());
168
+ },
169
+ l: function() {
170
+ return pad(_L(), 3);
171
+ },
172
+ L: function() {
173
+ return pad(Math.floor(_L() / 10));
174
+ },
175
+ t: function() {
176
+ return _H() < 12 ? dateFormat.i18n.timeNames[0] : dateFormat.i18n.timeNames[1];
177
+ },
178
+ tt: function() {
179
+ return _H() < 12 ? dateFormat.i18n.timeNames[2] : dateFormat.i18n.timeNames[3];
180
+ },
181
+ T: function() {
182
+ return _H() < 12 ? dateFormat.i18n.timeNames[4] : dateFormat.i18n.timeNames[5];
183
+ },
184
+ TT: function() {
185
+ return _H() < 12 ? dateFormat.i18n.timeNames[6] : dateFormat.i18n.timeNames[7];
186
+ },
187
+ Z: function() {
188
+ return gmt ? "GMT" : utc ? "UTC" : (String(date).match(timezone) || [
189
+ ""
190
+ ]).pop().replace(timezoneClip, "").replace(/GMT\+0000/g, "UTC");
191
+ },
192
+ o: function() {
193
+ return (_o() > 0 ? "-" : "+") + pad(100 * Math.floor(Math.abs(_o()) / 60) + Math.abs(_o()) % 60, 4);
194
+ },
195
+ p: function() {
196
+ return (_o() > 0 ? "-" : "+") + pad(Math.floor(Math.abs(_o()) / 60), 2) + ":" + pad(Math.floor(Math.abs(_o()) % 60), 2);
197
+ },
198
+ S: function() {
199
+ return [
200
+ "th",
201
+ "st",
202
+ "nd",
203
+ "rd"
204
+ ][_d() % 10 > 3 ? 0 : (_d() % 100 - _d() % 10 != 10) * _d() % 10];
205
+ },
206
+ W: function() {
207
+ return _W();
208
+ },
209
+ WW: function() {
210
+ return pad(_W());
211
+ },
212
+ N: function() {
213
+ return _N();
214
+ }
215
+ };
216
+ return mask.replace(token, function(match) {
217
+ if (match in flags) return flags[match]();
218
+ return match.slice(1, match.length - 1);
219
+ });
220
+ };
221
+ }();
222
+ dateFormat.masks = {
223
+ default: "ddd mmm dd yyyy HH:MM:ss",
224
+ shortDate: "m/d/yy",
225
+ paddedShortDate: "mm/dd/yyyy",
226
+ mediumDate: "mmm d, yyyy",
227
+ longDate: "mmmm d, yyyy",
228
+ fullDate: "dddd, mmmm d, yyyy",
229
+ shortTime: "h:MM TT",
230
+ mediumTime: "h:MM:ss TT",
231
+ longTime: "h:MM:ss TT Z",
232
+ isoDate: "yyyy-mm-dd",
233
+ isoTime: "HH:MM:ss",
234
+ isoDateTime: "yyyy-mm-dd'T'HH:MM:sso",
235
+ isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",
236
+ expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z"
237
+ };
238
+ dateFormat.i18n = {
239
+ dayNames: [
240
+ "Sun",
241
+ "Mon",
242
+ "Tue",
243
+ "Wed",
244
+ "Thu",
245
+ "Fri",
246
+ "Sat",
247
+ "Sunday",
248
+ "Monday",
249
+ "Tuesday",
250
+ "Wednesday",
251
+ "Thursday",
252
+ "Friday",
253
+ "Saturday"
254
+ ],
255
+ monthNames: [
256
+ "Jan",
257
+ "Feb",
258
+ "Mar",
259
+ "Apr",
260
+ "May",
261
+ "Jun",
262
+ "Jul",
263
+ "Aug",
264
+ "Sep",
265
+ "Oct",
266
+ "Nov",
267
+ "Dec",
268
+ "January",
269
+ "February",
270
+ "March",
271
+ "April",
272
+ "May",
273
+ "June",
274
+ "July",
275
+ "August",
276
+ "September",
277
+ "October",
278
+ "November",
279
+ "December"
280
+ ],
281
+ timeNames: [
282
+ "a",
283
+ "p",
284
+ "am",
285
+ "pm",
286
+ "A",
287
+ "P",
288
+ "AM",
289
+ "PM"
290
+ ]
291
+ };
292
+ var pad = function(val, len) {
293
+ val = String(val);
294
+ len = len || 2;
295
+ while(val.length < len)val = "0" + val;
296
+ return val;
297
+ };
298
+ var getDayName = function(_ref) {
299
+ var y = _ref.y, m = _ref.m, d = _ref.d, _ = _ref._, dayName = _ref.dayName, _ref$short = _ref["short"], _short = void 0 === _ref$short ? false : _ref$short;
300
+ var today = new Date;
301
+ var yesterday = new Date;
302
+ yesterday.setDate(yesterday[_ + "Date"]() - 1);
303
+ var tomorrow = new Date;
304
+ tomorrow.setDate(tomorrow[_ + "Date"]() + 1);
305
+ var today_d = function() {
306
+ return today[_ + "Date"]();
307
+ };
308
+ var today_m = function() {
309
+ return today[_ + "Month"]();
310
+ };
311
+ var today_y = function() {
312
+ return today[_ + "FullYear"]();
313
+ };
314
+ var yesterday_d = function() {
315
+ return yesterday[_ + "Date"]();
316
+ };
317
+ var yesterday_m = function() {
318
+ return yesterday[_ + "Month"]();
319
+ };
320
+ var yesterday_y = function() {
321
+ return yesterday[_ + "FullYear"]();
322
+ };
323
+ var tomorrow_d = function() {
324
+ return tomorrow[_ + "Date"]();
325
+ };
326
+ var tomorrow_m = function() {
327
+ return tomorrow[_ + "Month"]();
328
+ };
329
+ var tomorrow_y = function() {
330
+ return tomorrow[_ + "FullYear"]();
331
+ };
332
+ if (today_y() === y && today_m() === m && today_d() === d) return _short ? "Tdy" : "Today";
333
+ if (yesterday_y() === y && yesterday_m() === m && yesterday_d() === d) return _short ? "Ysd" : "Yesterday";
334
+ if (tomorrow_y() === y && tomorrow_m() === m && tomorrow_d() === d) return _short ? "Tmw" : "Tomorrow";
335
+ return dayName;
336
+ };
337
+ var getWeek = function(date) {
338
+ var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate());
339
+ targetThursday.setDate(targetThursday.getDate() - (targetThursday.getDay() + 6) % 7 + 3);
340
+ var firstThursday = new Date(targetThursday.getFullYear(), 0, 4);
341
+ firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3);
342
+ var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset();
343
+ targetThursday.setHours(targetThursday.getHours() - ds);
344
+ var weekDiff = (targetThursday - firstThursday) / (864e5 * 7);
345
+ return 1 + Math.floor(weekDiff);
346
+ };
347
+ var getDayOfWeek = function(date) {
348
+ var dow = date.getDay();
349
+ if (0 === dow) dow = 7;
350
+ return dow;
351
+ };
352
+ var kindOf = function(val) {
353
+ if (null === val) return "null";
354
+ if (void 0 === val) return "undefined";
355
+ if ("object" !== _typeof(val)) return _typeof(val);
356
+ if (Array.isArray(val)) return "array";
357
+ return ({}).toString.call(val).slice(8, -1).toLowerCase();
358
+ };
359
+ if ("function" == typeof define && define.amd) define(function() {
360
+ return dateFormat;
361
+ });
362
+ else if ("object" === _typeof(exports)) module1.exports = dateFormat;
363
+ else global1.dateFormat = dateFormat;
364
+ })(void 0);
365
+ },
366
+ "../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
367
+ var once = __webpack_require__("../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js");
368
+ var noop = function() {};
369
+ var isRequest = function(stream) {
370
+ return stream.setHeader && 'function' == typeof stream.abort;
371
+ };
372
+ var isChildProcess = function(stream) {
373
+ return stream.stdio && Array.isArray(stream.stdio) && 3 === stream.stdio.length;
374
+ };
375
+ var eos = function(stream, opts, callback) {
376
+ if ('function' == typeof opts) return eos(stream, null, opts);
377
+ if (!opts) opts = {};
378
+ callback = once(callback || noop);
379
+ var ws = stream._writableState;
380
+ var rs = stream._readableState;
381
+ var readable = opts.readable || false !== opts.readable && stream.readable;
382
+ var writable = opts.writable || false !== opts.writable && stream.writable;
383
+ var cancelled = false;
384
+ var onlegacyfinish = function() {
385
+ if (!stream.writable) onfinish();
386
+ };
387
+ var onfinish = function() {
388
+ writable = false;
389
+ if (!readable) callback.call(stream);
390
+ };
391
+ var onend = function() {
392
+ readable = false;
393
+ if (!writable) callback.call(stream);
394
+ };
395
+ var onexit = function(exitCode) {
396
+ callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
397
+ };
398
+ var onerror = function(err) {
399
+ callback.call(stream, err);
400
+ };
401
+ var onclose = function() {
402
+ process.nextTick(onclosenexttick);
403
+ };
404
+ var onclosenexttick = function() {
405
+ if (cancelled) return;
406
+ if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream, new Error('premature close'));
407
+ if (writable && !(ws && ws.ended && !ws.destroyed)) return callback.call(stream, new Error('premature close'));
408
+ };
409
+ var onrequest = function() {
410
+ stream.req.on('finish', onfinish);
411
+ };
412
+ if (isRequest(stream)) {
413
+ stream.on('complete', onfinish);
414
+ stream.on('abort', onclose);
415
+ if (stream.req) onrequest();
416
+ else stream.on('request', onrequest);
417
+ } else if (writable && !ws) {
418
+ stream.on('end', onlegacyfinish);
419
+ stream.on('close', onlegacyfinish);
420
+ }
421
+ if (isChildProcess(stream)) stream.on('exit', onexit);
422
+ stream.on('end', onend);
423
+ stream.on('finish', onfinish);
424
+ if (false !== opts.error) stream.on('error', onerror);
425
+ stream.on('close', onclose);
426
+ return function() {
427
+ cancelled = true;
428
+ stream.removeListener('complete', onfinish);
429
+ stream.removeListener('abort', onclose);
430
+ stream.removeListener('request', onrequest);
431
+ if (stream.req) stream.req.removeListener('finish', onfinish);
432
+ stream.removeListener('end', onlegacyfinish);
433
+ stream.removeListener('close', onlegacyfinish);
434
+ stream.removeListener('finish', onfinish);
435
+ stream.removeListener('exit', onexit);
436
+ stream.removeListener('end', onend);
437
+ stream.removeListener('error', onerror);
438
+ stream.removeListener('close', onclose);
439
+ };
440
+ };
441
+ module1.exports = eos;
442
+ },
443
+ "../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js": function(module1) {
444
+ module1.exports = stringify;
445
+ stringify.default = stringify;
446
+ stringify.stable = deterministicStringify;
447
+ stringify.stableStringify = deterministicStringify;
448
+ var LIMIT_REPLACE_NODE = '[...]';
449
+ var CIRCULAR_REPLACE_NODE = '[Circular]';
450
+ var arr = [];
451
+ var replacerStack = [];
452
+ function defaultOptions() {
453
+ return {
454
+ depthLimit: Number.MAX_SAFE_INTEGER,
455
+ edgesLimit: Number.MAX_SAFE_INTEGER
456
+ };
457
+ }
458
+ function stringify(obj, replacer, spacer, options) {
459
+ if (void 0 === options) options = defaultOptions();
460
+ decirc(obj, '', 0, [], void 0, 0, options);
461
+ var res;
462
+ try {
463
+ res = 0 === replacerStack.length ? JSON.stringify(obj, replacer, spacer) : JSON.stringify(obj, replaceGetterValues(replacer), spacer);
464
+ } catch (_) {
465
+ return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');
466
+ } finally{
467
+ while(0 !== arr.length){
468
+ var part = arr.pop();
469
+ if (4 === part.length) Object.defineProperty(part[0], part[1], part[3]);
470
+ else part[0][part[1]] = part[2];
471
+ }
472
+ }
473
+ return res;
474
+ }
475
+ function setReplace(replace, val, k, parent) {
476
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);
477
+ if (void 0 !== propertyDescriptor.get) if (propertyDescriptor.configurable) {
478
+ Object.defineProperty(parent, k, {
479
+ value: replace
480
+ });
481
+ arr.push([
482
+ parent,
483
+ k,
484
+ val,
485
+ propertyDescriptor
486
+ ]);
487
+ } else replacerStack.push([
488
+ val,
489
+ k,
490
+ replace
491
+ ]);
492
+ else {
493
+ parent[k] = replace;
494
+ arr.push([
495
+ parent,
496
+ k,
497
+ val
498
+ ]);
499
+ }
500
+ }
501
+ function decirc(val, k, edgeIndex, stack, parent, depth, options) {
502
+ depth += 1;
503
+ var i;
504
+ if ('object' == typeof val && null !== val) {
505
+ for(i = 0; i < stack.length; i++)if (stack[i] === val) return void setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
506
+ if (void 0 !== options.depthLimit && depth > options.depthLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
507
+ if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
508
+ stack.push(val);
509
+ if (Array.isArray(val)) for(i = 0; i < val.length; i++)decirc(val[i], i, i, stack, val, depth, options);
510
+ else {
511
+ var keys = Object.keys(val);
512
+ for(i = 0; i < keys.length; i++){
513
+ var key = keys[i];
514
+ decirc(val[key], key, i, stack, val, depth, options);
515
+ }
516
+ }
517
+ stack.pop();
518
+ }
519
+ }
520
+ function compareFunction(a, b) {
521
+ if (a < b) return -1;
522
+ if (a > b) return 1;
523
+ return 0;
524
+ }
525
+ function deterministicStringify(obj, replacer, spacer, options) {
526
+ if (void 0 === options) options = defaultOptions();
527
+ var tmp = deterministicDecirc(obj, '', 0, [], void 0, 0, options) || obj;
528
+ var res;
529
+ try {
530
+ res = 0 === replacerStack.length ? JSON.stringify(tmp, replacer, spacer) : JSON.stringify(tmp, replaceGetterValues(replacer), spacer);
531
+ } catch (_) {
532
+ return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');
533
+ } finally{
534
+ while(0 !== arr.length){
535
+ var part = arr.pop();
536
+ if (4 === part.length) Object.defineProperty(part[0], part[1], part[3]);
537
+ else part[0][part[1]] = part[2];
538
+ }
539
+ }
540
+ return res;
541
+ }
542
+ function deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {
543
+ depth += 1;
544
+ var i;
545
+ if ('object' == typeof val && null !== val) {
546
+ for(i = 0; i < stack.length; i++)if (stack[i] === val) return void setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
547
+ try {
548
+ if ('function' == typeof val.toJSON) return;
549
+ } catch (_) {
550
+ return;
551
+ }
552
+ if (void 0 !== options.depthLimit && depth > options.depthLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
553
+ if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
554
+ stack.push(val);
555
+ if (Array.isArray(val)) for(i = 0; i < val.length; i++)deterministicDecirc(val[i], i, i, stack, val, depth, options);
556
+ else {
557
+ var tmp = {};
558
+ var keys = Object.keys(val).sort(compareFunction);
559
+ for(i = 0; i < keys.length; i++){
560
+ var key = keys[i];
561
+ deterministicDecirc(val[key], key, i, stack, val, depth, options);
562
+ tmp[key] = val[key];
563
+ }
564
+ if (void 0 === parent) return tmp;
565
+ arr.push([
566
+ parent,
567
+ k,
568
+ val
569
+ ]);
570
+ parent[k] = tmp;
571
+ }
572
+ stack.pop();
573
+ }
574
+ }
575
+ function replaceGetterValues(replacer) {
576
+ replacer = void 0 !== replacer ? replacer : function(k, v) {
577
+ return v;
578
+ };
579
+ return function(key, val) {
580
+ if (replacerStack.length > 0) for(var i = 0; i < replacerStack.length; i++){
581
+ var part = replacerStack[i];
582
+ if (part[1] === key && part[0] === val) {
583
+ val = part[2];
584
+ replacerStack.splice(i, 1);
585
+ break;
586
+ }
587
+ }
588
+ return replacer.call(this, key, val);
589
+ };
590
+ }
591
+ },
592
+ "../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js": function(module1) {
593
+ "use strict";
594
+ const refs = {
595
+ exit: [],
596
+ beforeExit: []
597
+ };
598
+ const functions = {
599
+ exit: onExit,
600
+ beforeExit: onBeforeExit
601
+ };
602
+ let registry;
603
+ function ensureRegistry() {
604
+ if (void 0 === registry) registry = new FinalizationRegistry(clear);
605
+ }
606
+ function install(event) {
607
+ if (refs[event].length > 0) return;
608
+ process.on(event, functions[event]);
609
+ }
610
+ function uninstall(event) {
611
+ if (refs[event].length > 0) return;
612
+ process.removeListener(event, functions[event]);
613
+ if (0 === refs.exit.length && 0 === refs.beforeExit.length) registry = void 0;
614
+ }
615
+ function onExit() {
616
+ callRefs('exit');
617
+ }
618
+ function onBeforeExit() {
619
+ callRefs('beforeExit');
620
+ }
621
+ function callRefs(event) {
622
+ for (const ref of refs[event]){
623
+ const obj = ref.deref();
624
+ const fn = ref.fn;
625
+ if (void 0 !== obj) fn(obj, event);
626
+ }
627
+ refs[event] = [];
628
+ }
629
+ function clear(ref) {
630
+ for (const event of [
631
+ 'exit',
632
+ 'beforeExit'
633
+ ]){
634
+ const index = refs[event].indexOf(ref);
635
+ refs[event].splice(index, index + 1);
636
+ uninstall(event);
637
+ }
638
+ }
639
+ function _register(event, obj, fn) {
640
+ if (void 0 === obj) throw new Error('the object can\'t be undefined');
641
+ install(event);
642
+ const ref = new WeakRef(obj);
643
+ ref.fn = fn;
644
+ ensureRegistry();
645
+ registry.register(obj, ref);
646
+ refs[event].push(ref);
647
+ }
648
+ function register(obj, fn) {
649
+ _register('exit', obj, fn);
650
+ }
651
+ function registerBeforeExit(obj, fn) {
652
+ _register('beforeExit', obj, fn);
653
+ }
654
+ function unregister(obj) {
655
+ if (void 0 === registry) return;
656
+ registry.unregister(obj);
657
+ for (const event of [
658
+ 'exit',
659
+ 'beforeExit'
660
+ ]){
661
+ refs[event] = refs[event].filter((ref)=>{
662
+ const _obj = ref.deref();
663
+ return _obj && _obj !== obj;
664
+ });
665
+ uninstall(event);
666
+ }
667
+ }
668
+ module1.exports = {
669
+ register,
670
+ registerBeforeExit,
671
+ unregister
672
+ };
673
+ },
674
+ "../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js": function(module1, __unused_webpack_exports, __webpack_require__) {
675
+ var wrappy = __webpack_require__("../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js");
676
+ module1.exports = wrappy(once);
677
+ module1.exports.strict = wrappy(onceStrict);
678
+ once.proto = once(function() {
679
+ Object.defineProperty(Function.prototype, 'once', {
680
+ value: function() {
681
+ return once(this);
682
+ },
683
+ configurable: true
684
+ });
685
+ Object.defineProperty(Function.prototype, 'onceStrict', {
686
+ value: function() {
687
+ return onceStrict(this);
688
+ },
689
+ configurable: true
690
+ });
691
+ });
692
+ function once(fn) {
693
+ var f = function() {
694
+ if (f.called) return f.value;
695
+ f.called = true;
696
+ return f.value = fn.apply(this, arguments);
697
+ };
698
+ f.called = false;
699
+ return f;
700
+ }
701
+ function onceStrict(fn) {
702
+ var f = function() {
703
+ if (f.called) throw new Error(f.onceError);
704
+ f.called = true;
705
+ return f.value = fn.apply(this, arguments);
706
+ };
707
+ var name = fn.name || 'Function wrapped with `once`';
708
+ f.onceError = name + " shouldn't be called more than once";
709
+ f.called = false;
710
+ return f;
711
+ }
712
+ },
713
+ "../../node_modules/.pnpm/pino-abstract-transport@2.0.0/node_modules/pino-abstract-transport/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
714
+ "use strict";
715
+ const metadata = Symbol.for('pino.metadata');
716
+ const split = __webpack_require__("../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js");
717
+ const { Duplex } = __webpack_require__("stream");
718
+ const { parentPort, workerData } = __webpack_require__("worker_threads");
719
+ function createDeferred() {
720
+ let resolve;
721
+ let reject;
722
+ const promise = new Promise((_resolve, _reject)=>{
723
+ resolve = _resolve;
724
+ reject = _reject;
725
+ });
726
+ promise.resolve = resolve;
727
+ promise.reject = reject;
728
+ return promise;
729
+ }
730
+ module1.exports = function(fn, opts = {}) {
731
+ const waitForConfig = true === opts.expectPinoConfig && workerData?.workerData?.pinoWillSendConfig === true;
732
+ const parseLines = 'lines' === opts.parse;
733
+ const parseLine = 'function' == typeof opts.parseLine ? opts.parseLine : JSON.parse;
734
+ const close = opts.close || defaultClose;
735
+ const stream = split(function(line) {
736
+ let value;
737
+ try {
738
+ value = parseLine(line);
739
+ } catch (error) {
740
+ this.emit('unknown', line, error);
741
+ return;
742
+ }
743
+ if (null === value) return void this.emit('unknown', line, 'Null value ignored');
744
+ if ('object' != typeof value) value = {
745
+ data: value,
746
+ time: Date.now()
747
+ };
748
+ if (stream[metadata]) {
749
+ stream.lastTime = value.time;
750
+ stream.lastLevel = value.level;
751
+ stream.lastObj = value;
752
+ }
753
+ if (parseLines) return line;
754
+ return value;
755
+ }, {
756
+ autoDestroy: true
757
+ });
758
+ stream._destroy = function(err, cb) {
759
+ const promise = close(err, cb);
760
+ if (promise && 'function' == typeof promise.then) promise.then(cb, cb);
761
+ };
762
+ if (true === opts.expectPinoConfig && workerData?.workerData?.pinoWillSendConfig !== true) setImmediate(()=>{
763
+ stream.emit('error', new Error('This transport is not compatible with the current version of pino. Please upgrade pino to the latest version.'));
764
+ });
765
+ if (false !== opts.metadata) {
766
+ stream[metadata] = true;
767
+ stream.lastTime = 0;
768
+ stream.lastLevel = 0;
769
+ stream.lastObj = null;
770
+ }
771
+ if (waitForConfig) {
772
+ let pinoConfig = {};
773
+ const configReceived = createDeferred();
774
+ parentPort.on('message', function handleMessage(message) {
775
+ if ('PINO_CONFIG' === message.code) {
776
+ pinoConfig = message.config;
777
+ configReceived.resolve();
778
+ parentPort.off('message', handleMessage);
779
+ }
780
+ });
781
+ Object.defineProperties(stream, {
782
+ levels: {
783
+ get () {
784
+ return pinoConfig.levels;
785
+ }
786
+ },
787
+ messageKey: {
788
+ get () {
789
+ return pinoConfig.messageKey;
790
+ }
791
+ },
792
+ errorKey: {
793
+ get () {
794
+ return pinoConfig.errorKey;
795
+ }
796
+ }
797
+ });
798
+ return configReceived.then(finish);
799
+ }
800
+ return finish();
801
+ function finish() {
802
+ let res = fn(stream);
803
+ if (res && 'function' == typeof res.catch) {
804
+ res.catch((err)=>{
805
+ stream.destroy(err);
806
+ });
807
+ res = null;
808
+ } else if (opts.enablePipelining && res) return Duplex.from({
809
+ writable: stream,
810
+ readable: res
811
+ });
812
+ return stream;
813
+ }
814
+ };
815
+ function defaultClose(err, cb) {
816
+ process.nextTick(cb, err);
817
+ }
818
+ },
819
+ "../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
820
+ var once = __webpack_require__("../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js");
821
+ var eos = __webpack_require__("../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js");
822
+ var fs;
823
+ try {
824
+ fs = __webpack_require__("fs");
825
+ } catch (e) {}
826
+ var noop = function() {};
827
+ var ancient = /^v?\.0/.test(process.version);
828
+ var isFn = function(fn) {
829
+ return 'function' == typeof fn;
830
+ };
831
+ var isFS = function(stream) {
832
+ if (!ancient) return false;
833
+ if (!fs) return false;
834
+ return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close);
835
+ };
836
+ var isRequest = function(stream) {
837
+ return stream.setHeader && isFn(stream.abort);
838
+ };
839
+ var destroyer = function(stream, reading, writing, callback) {
840
+ callback = once(callback);
841
+ var closed = false;
842
+ stream.on('close', function() {
843
+ closed = true;
844
+ });
845
+ eos(stream, {
846
+ readable: reading,
847
+ writable: writing
848
+ }, function(err) {
849
+ if (err) return callback(err);
850
+ closed = true;
851
+ callback();
852
+ });
853
+ var destroyed = false;
854
+ return function(err) {
855
+ if (closed) return;
856
+ if (destroyed) return;
857
+ destroyed = true;
858
+ if (isFS(stream)) return stream.close(noop);
859
+ if (isRequest(stream)) return stream.abort();
860
+ if (isFn(stream.destroy)) return stream.destroy();
861
+ callback(err || new Error('stream was destroyed'));
862
+ };
863
+ };
864
+ var call = function(fn) {
865
+ fn();
866
+ };
867
+ var pipe = function(from, to) {
868
+ return from.pipe(to);
869
+ };
870
+ var pump = function() {
871
+ var streams = Array.prototype.slice.call(arguments);
872
+ var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
873
+ if (Array.isArray(streams[0])) streams = streams[0];
874
+ if (streams.length < 2) throw new Error('pump requires two streams per minimum');
875
+ var error;
876
+ var destroys = streams.map(function(stream, i) {
877
+ var reading = i < streams.length - 1;
878
+ var writing = i > 0;
879
+ return destroyer(stream, reading, writing, function(err) {
880
+ if (!error) error = err;
881
+ if (err) destroys.forEach(call);
882
+ if (reading) return;
883
+ destroys.forEach(call);
884
+ callback(error);
885
+ });
886
+ });
887
+ return streams.reduce(pipe);
888
+ };
889
+ module1.exports = pump;
890
+ },
891
+ "../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
892
+ "use strict";
893
+ const { Transform } = __webpack_require__("stream");
894
+ const { StringDecoder } = __webpack_require__("string_decoder");
895
+ const kLast = Symbol('last');
896
+ const kDecoder = Symbol('decoder');
897
+ function transform(chunk, enc, cb) {
898
+ let list;
899
+ if (this.overflow) {
900
+ const buf = this[kDecoder].write(chunk);
901
+ list = buf.split(this.matcher);
902
+ if (1 === list.length) return cb();
903
+ list.shift();
904
+ this.overflow = false;
905
+ } else {
906
+ this[kLast] += this[kDecoder].write(chunk);
907
+ list = this[kLast].split(this.matcher);
908
+ }
909
+ this[kLast] = list.pop();
910
+ for(let i = 0; i < list.length; i++)try {
911
+ push(this, this.mapper(list[i]));
912
+ } catch (error) {
913
+ return cb(error);
914
+ }
915
+ this.overflow = this[kLast].length > this.maxLength;
916
+ if (this.overflow && !this.skipOverflow) return void cb(new Error('maximum buffer reached'));
917
+ cb();
918
+ }
919
+ function flush(cb) {
920
+ this[kLast] += this[kDecoder].end();
921
+ if (this[kLast]) try {
922
+ push(this, this.mapper(this[kLast]));
923
+ } catch (error) {
924
+ return cb(error);
925
+ }
926
+ cb();
927
+ }
928
+ function push(self, val) {
929
+ if (void 0 !== val) self.push(val);
930
+ }
931
+ function noop(incoming) {
932
+ return incoming;
933
+ }
934
+ function split(matcher, mapper, options) {
935
+ matcher = matcher || /\r?\n/;
936
+ mapper = mapper || noop;
937
+ options = options || {};
938
+ switch(arguments.length){
939
+ case 1:
940
+ if ('function' == typeof matcher) {
941
+ mapper = matcher;
942
+ matcher = /\r?\n/;
943
+ } else if ('object' == typeof matcher && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
944
+ options = matcher;
945
+ matcher = /\r?\n/;
946
+ }
947
+ break;
948
+ case 2:
949
+ if ('function' == typeof matcher) {
950
+ options = mapper;
951
+ mapper = matcher;
952
+ matcher = /\r?\n/;
953
+ } else if ('object' == typeof mapper) {
954
+ options = mapper;
955
+ mapper = noop;
956
+ }
957
+ }
958
+ options = Object.assign({}, options);
959
+ options.autoDestroy = true;
960
+ options.transform = transform;
961
+ options.flush = flush;
962
+ options.readableObjectMode = true;
963
+ const stream = new Transform(options);
964
+ stream[kLast] = '';
965
+ stream[kDecoder] = new StringDecoder('utf8');
966
+ stream.matcher = matcher;
967
+ stream.mapper = mapper;
968
+ stream.maxLength = options.maxLength;
969
+ stream.skipOverflow = options.skipOverflow || false;
970
+ stream.overflow = false;
971
+ stream._destroy = function(err, cb) {
972
+ this._writableState.errorEmitted = false;
973
+ cb(err);
974
+ };
975
+ return stream;
976
+ }
977
+ module1.exports = split;
978
+ },
979
+ "../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js": function(module1) {
980
+ module1.exports = wrappy;
981
+ function wrappy(fn, cb) {
982
+ if (fn && cb) return wrappy(fn)(cb);
983
+ if ('function' != typeof fn) throw new TypeError('need wrapper function');
984
+ Object.keys(fn).forEach(function(k) {
985
+ wrapper[k] = fn[k];
986
+ });
987
+ return wrapper;
988
+ function wrapper() {
989
+ var args = new Array(arguments.length);
990
+ for(var i = 0; i < args.length; i++)args[i] = arguments[i];
991
+ var ret = fn.apply(this, args);
992
+ var cb = args[args.length - 1];
993
+ if ('function' == typeof ret && ret !== cb) Object.keys(cb).forEach(function(k) {
994
+ ret[k] = cb[k];
995
+ });
996
+ return ret;
997
+ }
998
+ }
999
+ },
1000
+ assert: function(module1) {
1001
+ "use strict";
1002
+ module1.exports = require("assert");
1003
+ },
1004
+ events: function(module1) {
1005
+ "use strict";
1006
+ module1.exports = require("events");
1007
+ },
1008
+ fs: function(module1) {
1009
+ "use strict";
1010
+ module1.exports = require("fs");
1011
+ },
1012
+ "node:stream": function(module1) {
1013
+ "use strict";
1014
+ module1.exports = require("node:stream");
1015
+ },
1016
+ "node:worker_threads": function(module1) {
1017
+ "use strict";
1018
+ module1.exports = require("node:worker_threads");
1019
+ },
1020
+ path: function(module1) {
1021
+ "use strict";
1022
+ module1.exports = require("path");
1023
+ },
1024
+ stream: function(module1) {
1025
+ "use strict";
1026
+ module1.exports = require("stream");
1027
+ },
1028
+ string_decoder: function(module1) {
1029
+ "use strict";
1030
+ module1.exports = require("string_decoder");
1031
+ },
1032
+ tty: function(module1) {
1033
+ "use strict";
1034
+ module1.exports = require("tty");
1035
+ },
1036
+ util: function(module1) {
1037
+ "use strict";
1038
+ module1.exports = require("util");
1039
+ },
1040
+ worker_threads: function(module1) {
1041
+ "use strict";
1042
+ module1.exports = require("worker_threads");
1043
+ },
1044
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1045
+ "use strict";
1046
+ const { isColorSupported } = __webpack_require__("../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs");
1047
+ const pump = __webpack_require__("../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js");
1048
+ const { Transform } = __webpack_require__("node:stream");
1049
+ const abstractTransport = __webpack_require__("../../node_modules/.pnpm/pino-abstract-transport@2.0.0/node_modules/pino-abstract-transport/index.js");
1050
+ const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/colors.js");
1051
+ const { ERROR_LIKE_KEYS, LEVEL_KEY, LEVEL_LABEL, MESSAGE_KEY, TIMESTAMP_KEY } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
1052
+ const { buildSafeSonicBoom, parseFactoryOptions } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/index.js");
1053
+ const pretty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/pretty.js");
1054
+ const defaultOptions = {
1055
+ colorize: isColorSupported,
1056
+ colorizeObjects: true,
1057
+ crlf: false,
1058
+ customColors: null,
1059
+ customLevels: null,
1060
+ customPrettifiers: {},
1061
+ errorLikeObjectKeys: ERROR_LIKE_KEYS,
1062
+ errorProps: '',
1063
+ hideObject: false,
1064
+ ignore: 'hostname',
1065
+ include: void 0,
1066
+ levelFirst: false,
1067
+ levelKey: LEVEL_KEY,
1068
+ levelLabel: LEVEL_LABEL,
1069
+ messageFormat: null,
1070
+ messageKey: MESSAGE_KEY,
1071
+ minimumLevel: void 0,
1072
+ outputStream: process.stdout,
1073
+ singleLine: false,
1074
+ timestampKey: TIMESTAMP_KEY,
1075
+ translateTime: true,
1076
+ useOnlyCustomProps: true
1077
+ };
1078
+ function prettyFactory(options) {
1079
+ const context = parseFactoryOptions(Object.assign({}, defaultOptions, options));
1080
+ return pretty.bind({
1081
+ ...context,
1082
+ context
1083
+ });
1084
+ }
1085
+ function build(opts = {}) {
1086
+ let pretty = prettyFactory(opts);
1087
+ let destination;
1088
+ return abstractTransport(function(source) {
1089
+ source.on('message', function pinoConfigListener(message) {
1090
+ if (!message || 'PINO_CONFIG' !== message.code) return;
1091
+ Object.assign(opts, {
1092
+ messageKey: message.config.messageKey,
1093
+ errorLikeObjectKeys: Array.from(new Set([
1094
+ ...opts.errorLikeObjectKeys || ERROR_LIKE_KEYS,
1095
+ message.config.errorKey
1096
+ ])),
1097
+ customLevels: message.config.levels.values
1098
+ });
1099
+ pretty = prettyFactory(opts);
1100
+ source.off('message', pinoConfigListener);
1101
+ });
1102
+ const stream = new Transform({
1103
+ objectMode: true,
1104
+ autoDestroy: true,
1105
+ transform (chunk, enc, cb) {
1106
+ const line = pretty(chunk);
1107
+ cb(null, line);
1108
+ }
1109
+ });
1110
+ destination = 'object' == typeof opts.destination && 'function' == typeof opts.destination.write ? opts.destination : buildSafeSonicBoom({
1111
+ dest: opts.destination || 1,
1112
+ append: opts.append,
1113
+ mkdir: opts.mkdir,
1114
+ sync: opts.sync
1115
+ });
1116
+ source.on('unknown', function(line) {
1117
+ destination.write(line + '\n');
1118
+ });
1119
+ pump(source, stream, destination);
1120
+ return stream;
1121
+ }, {
1122
+ parse: 'lines',
1123
+ close (err, cb) {
1124
+ destination.on('close', ()=>{
1125
+ cb(err);
1126
+ });
1127
+ }
1128
+ });
1129
+ }
1130
+ module1.exports = build;
1131
+ module1.exports.build = build;
1132
+ module1.exports.PinoPretty = build;
1133
+ module1.exports.prettyFactory = prettyFactory;
1134
+ module1.exports.colorizerFactory = colors;
1135
+ module1.exports.isColorSupported = isColorSupported;
1136
+ module1.exports["default"] = build;
1137
+ },
1138
+ "../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs": function(__unused_webpack_module, exports, __webpack_require__) {
1139
+ "use strict";
1140
+ Object.defineProperty(exports, "__esModule", {
1141
+ value: true
1142
+ });
1143
+ var tty = __webpack_require__("tty");
1144
+ function _interopNamespace(e) {
1145
+ if (e && e.__esModule) return e;
1146
+ var n = Object.create(null);
1147
+ if (e) Object.keys(e).forEach(function(k) {
1148
+ if ('default' !== k) {
1149
+ var d = Object.getOwnPropertyDescriptor(e, k);
1150
+ Object.defineProperty(n, k, d.get ? d : {
1151
+ enumerable: true,
1152
+ get: function() {
1153
+ return e[k];
1154
+ }
1155
+ });
1156
+ }
1157
+ });
1158
+ n["default"] = e;
1159
+ return Object.freeze(n);
1160
+ }
1161
+ var tty__namespace = /*#__PURE__*/ _interopNamespace(tty);
1162
+ const { env = {}, argv = [], platform = "" } = "undefined" == typeof process ? {} : process;
1163
+ const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
1164
+ const isForced = "FORCE_COLOR" in env || argv.includes("--color");
1165
+ const isWindows = "win32" === platform;
1166
+ const isDumbTerminal = "dumb" === env.TERM;
1167
+ const isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
1168
+ const isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
1169
+ const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
1170
+ const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close))=>head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
1171
+ const clearBleed = (index, string, open, close, replace)=>index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
1172
+ const filterEmpty = (open, close, replace = open, at = open.length + 1)=>(string)=>string || !("" === string || void 0 === string) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
1173
+ const init = (open, close, replace)=>filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
1174
+ const colors = {
1175
+ reset: init(0, 0),
1176
+ bold: init(1, 22, "\x1b[22m\x1b[1m"),
1177
+ dim: init(2, 22, "\x1b[22m\x1b[2m"),
1178
+ italic: init(3, 23),
1179
+ underline: init(4, 24),
1180
+ inverse: init(7, 27),
1181
+ hidden: init(8, 28),
1182
+ strikethrough: init(9, 29),
1183
+ black: init(30, 39),
1184
+ red: init(31, 39),
1185
+ green: init(32, 39),
1186
+ yellow: init(33, 39),
1187
+ blue: init(34, 39),
1188
+ magenta: init(35, 39),
1189
+ cyan: init(36, 39),
1190
+ white: init(37, 39),
1191
+ gray: init(90, 39),
1192
+ bgBlack: init(40, 49),
1193
+ bgRed: init(41, 49),
1194
+ bgGreen: init(42, 49),
1195
+ bgYellow: init(43, 49),
1196
+ bgBlue: init(44, 49),
1197
+ bgMagenta: init(45, 49),
1198
+ bgCyan: init(46, 49),
1199
+ bgWhite: init(47, 49),
1200
+ blackBright: init(90, 39),
1201
+ redBright: init(91, 39),
1202
+ greenBright: init(92, 39),
1203
+ yellowBright: init(93, 39),
1204
+ blueBright: init(94, 39),
1205
+ magentaBright: init(95, 39),
1206
+ cyanBright: init(96, 39),
1207
+ whiteBright: init(97, 39),
1208
+ bgBlackBright: init(100, 49),
1209
+ bgRedBright: init(101, 49),
1210
+ bgGreenBright: init(102, 49),
1211
+ bgYellowBright: init(103, 49),
1212
+ bgBlueBright: init(104, 49),
1213
+ bgMagentaBright: init(105, 49),
1214
+ bgCyanBright: init(106, 49),
1215
+ bgWhiteBright: init(107, 49)
1216
+ };
1217
+ const createColors = ({ useColor = isColorSupported } = {})=>useColor ? colors : Object.keys(colors).reduce((colors, key)=>({
1218
+ ...colors,
1219
+ [key]: String
1220
+ }), {});
1221
+ const { reset, bold, dim, italic, underline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, blackBright, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlackBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = createColors();
1222
+ exports.bgBlack = bgBlack;
1223
+ exports.bgBlackBright = bgBlackBright;
1224
+ exports.bgBlue = bgBlue;
1225
+ exports.bgBlueBright = bgBlueBright;
1226
+ exports.bgCyan = bgCyan;
1227
+ exports.bgCyanBright = bgCyanBright;
1228
+ exports.bgGreen = bgGreen;
1229
+ exports.bgGreenBright = bgGreenBright;
1230
+ exports.bgMagenta = bgMagenta;
1231
+ exports.bgMagentaBright = bgMagentaBright;
1232
+ exports.bgRed = bgRed;
1233
+ exports.bgRedBright = bgRedBright;
1234
+ exports.bgWhite = bgWhite;
1235
+ exports.bgWhiteBright = bgWhiteBright;
1236
+ exports.bgYellow = bgYellow;
1237
+ exports.bgYellowBright = bgYellowBright;
1238
+ exports.black = black;
1239
+ exports.blackBright = blackBright;
1240
+ exports.blue = blue;
1241
+ exports.blueBright = blueBright;
1242
+ exports.bold = bold;
1243
+ exports.createColors = createColors;
1244
+ exports.cyan = cyan;
1245
+ exports.cyanBright = cyanBright;
1246
+ exports.dim = dim;
1247
+ exports.gray = gray;
1248
+ exports.green = green;
1249
+ exports.greenBright = greenBright;
1250
+ exports.hidden = hidden;
1251
+ exports.inverse = inverse;
1252
+ exports.isColorSupported = isColorSupported;
1253
+ exports.italic = italic;
1254
+ exports.magenta = magenta;
1255
+ exports.magentaBright = magentaBright;
1256
+ exports.red = red;
1257
+ exports.redBright = redBright;
1258
+ exports.reset = reset;
1259
+ exports.strikethrough = strikethrough;
1260
+ exports.underline = underline;
1261
+ exports.white = white;
1262
+ exports.whiteBright = whiteBright;
1263
+ exports.yellow = yellow;
1264
+ exports.yellowBright = yellowBright;
1265
+ },
1266
+ "../../node_modules/.pnpm/fast-copy@3.0.2/node_modules/fast-copy/dist/cjs/index.cjs": function(__unused_webpack_module, exports) {
1267
+ "use strict";
1268
+ Object.defineProperty(exports, "__esModule", {
1269
+ value: true
1270
+ });
1271
+ var toStringFunction = Function.prototype.toString;
1272
+ var create = Object.create;
1273
+ var toStringObject = Object.prototype.toString;
1274
+ var LegacyCache = function() {
1275
+ function LegacyCache() {
1276
+ this._keys = [];
1277
+ this._values = [];
1278
+ }
1279
+ LegacyCache.prototype.has = function(key) {
1280
+ return !!~this._keys.indexOf(key);
1281
+ };
1282
+ LegacyCache.prototype.get = function(key) {
1283
+ return this._values[this._keys.indexOf(key)];
1284
+ };
1285
+ LegacyCache.prototype.set = function(key, value) {
1286
+ this._keys.push(key);
1287
+ this._values.push(value);
1288
+ };
1289
+ return LegacyCache;
1290
+ }();
1291
+ function createCacheLegacy() {
1292
+ return new LegacyCache();
1293
+ }
1294
+ function createCacheModern() {
1295
+ return new WeakMap();
1296
+ }
1297
+ var createCache = 'undefined' != typeof WeakMap ? createCacheModern : createCacheLegacy;
1298
+ function getCleanClone(prototype) {
1299
+ if (!prototype) return create(null);
1300
+ var Constructor = prototype.constructor;
1301
+ if (Constructor === Object) return prototype === Object.prototype ? {} : create(prototype);
1302
+ if (Constructor && ~toStringFunction.call(Constructor).indexOf('[native code]')) try {
1303
+ return new Constructor();
1304
+ } catch (_a) {}
1305
+ return create(prototype);
1306
+ }
1307
+ function getRegExpFlagsLegacy(regExp) {
1308
+ var flags = '';
1309
+ if (regExp.global) flags += 'g';
1310
+ if (regExp.ignoreCase) flags += 'i';
1311
+ if (regExp.multiline) flags += 'm';
1312
+ if (regExp.unicode) flags += 'u';
1313
+ if (regExp.sticky) flags += 'y';
1314
+ return flags;
1315
+ }
1316
+ function getRegExpFlagsModern(regExp) {
1317
+ return regExp.flags;
1318
+ }
1319
+ var getRegExpFlags = 'g' === /test/g.flags ? getRegExpFlagsModern : getRegExpFlagsLegacy;
1320
+ function getTagLegacy(value) {
1321
+ var type = toStringObject.call(value);
1322
+ return type.substring(8, type.length - 1);
1323
+ }
1324
+ function getTagModern(value) {
1325
+ return value[Symbol.toStringTag] || getTagLegacy(value);
1326
+ }
1327
+ var getTag = 'undefined' != typeof Symbol ? getTagModern : getTagLegacy;
1328
+ var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
1329
+ var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
1330
+ var SUPPORTS_SYMBOL = 'function' == typeof getOwnPropertySymbols;
1331
+ function getStrictPropertiesModern(object) {
1332
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
1333
+ }
1334
+ var getStrictProperties = SUPPORTS_SYMBOL ? getStrictPropertiesModern : getOwnPropertyNames;
1335
+ function copyOwnPropertiesStrict(value, clone, state) {
1336
+ var properties = getStrictProperties(value);
1337
+ for(var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index){
1338
+ property = properties[index];
1339
+ if ('callee' !== property && 'caller' !== property) {
1340
+ descriptor = getOwnPropertyDescriptor(value, property);
1341
+ if (!descriptor) {
1342
+ clone[property] = state.copier(value[property], state);
1343
+ continue;
1344
+ }
1345
+ if (!descriptor.get && !descriptor.set) descriptor.value = state.copier(descriptor.value, state);
1346
+ try {
1347
+ defineProperty(clone, property, descriptor);
1348
+ } catch (error) {
1349
+ clone[property] = descriptor.value;
1350
+ }
1351
+ }
1352
+ }
1353
+ return clone;
1354
+ }
1355
+ function copyArrayLoose(array, state) {
1356
+ var clone = new state.Constructor();
1357
+ state.cache.set(array, clone);
1358
+ for(var index = 0, length_2 = array.length; index < length_2; ++index)clone[index] = state.copier(array[index], state);
1359
+ return clone;
1360
+ }
1361
+ function copyArrayStrict(array, state) {
1362
+ var clone = new state.Constructor();
1363
+ state.cache.set(array, clone);
1364
+ return copyOwnPropertiesStrict(array, clone, state);
1365
+ }
1366
+ function copyArrayBuffer(arrayBuffer, _state) {
1367
+ return arrayBuffer.slice(0);
1368
+ }
1369
+ function copyBlob(blob, _state) {
1370
+ return blob.slice(0, blob.size, blob.type);
1371
+ }
1372
+ function copyDataView(dataView, state) {
1373
+ return new state.Constructor(copyArrayBuffer(dataView.buffer));
1374
+ }
1375
+ function copyDate(date, state) {
1376
+ return new state.Constructor(date.getTime());
1377
+ }
1378
+ function copyMapLoose(map, state) {
1379
+ var clone = new state.Constructor();
1380
+ state.cache.set(map, clone);
1381
+ map.forEach(function(value, key) {
1382
+ clone.set(key, state.copier(value, state));
1383
+ });
1384
+ return clone;
1385
+ }
1386
+ function copyMapStrict(map, state) {
1387
+ return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
1388
+ }
1389
+ function copyObjectLooseLegacy(object, state) {
1390
+ var clone = getCleanClone(state.prototype);
1391
+ state.cache.set(object, clone);
1392
+ for(var key in object)if (hasOwnProperty.call(object, key)) clone[key] = state.copier(object[key], state);
1393
+ return clone;
1394
+ }
1395
+ function copyObjectLooseModern(object, state) {
1396
+ var clone = getCleanClone(state.prototype);
1397
+ state.cache.set(object, clone);
1398
+ for(var key in object)if (hasOwnProperty.call(object, key)) clone[key] = state.copier(object[key], state);
1399
+ var symbols = getOwnPropertySymbols(object);
1400
+ for(var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index){
1401
+ symbol = symbols[index];
1402
+ if (propertyIsEnumerable.call(object, symbol)) clone[symbol] = state.copier(object[symbol], state);
1403
+ }
1404
+ return clone;
1405
+ }
1406
+ var copyObjectLoose = SUPPORTS_SYMBOL ? copyObjectLooseModern : copyObjectLooseLegacy;
1407
+ function copyObjectStrict(object, state) {
1408
+ var clone = getCleanClone(state.prototype);
1409
+ state.cache.set(object, clone);
1410
+ return copyOwnPropertiesStrict(object, clone, state);
1411
+ }
1412
+ function copyPrimitiveWrapper(primitiveObject, state) {
1413
+ return new state.Constructor(primitiveObject.valueOf());
1414
+ }
1415
+ function copyRegExp(regExp, state) {
1416
+ var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
1417
+ clone.lastIndex = regExp.lastIndex;
1418
+ return clone;
1419
+ }
1420
+ function copySelf(value, _state) {
1421
+ return value;
1422
+ }
1423
+ function copySetLoose(set, state) {
1424
+ var clone = new state.Constructor();
1425
+ state.cache.set(set, clone);
1426
+ set.forEach(function(value) {
1427
+ clone.add(state.copier(value, state));
1428
+ });
1429
+ return clone;
1430
+ }
1431
+ function copySetStrict(set, state) {
1432
+ return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
1433
+ }
1434
+ var isArray = Array.isArray;
1435
+ var assign = Object.assign;
1436
+ var getPrototypeOf = Object.getPrototypeOf || function(obj) {
1437
+ return obj.__proto__;
1438
+ };
1439
+ var DEFAULT_LOOSE_OPTIONS = {
1440
+ array: copyArrayLoose,
1441
+ arrayBuffer: copyArrayBuffer,
1442
+ blob: copyBlob,
1443
+ dataView: copyDataView,
1444
+ date: copyDate,
1445
+ error: copySelf,
1446
+ map: copyMapLoose,
1447
+ object: copyObjectLoose,
1448
+ regExp: copyRegExp,
1449
+ set: copySetLoose
1450
+ };
1451
+ var DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, {
1452
+ array: copyArrayStrict,
1453
+ map: copyMapStrict,
1454
+ object: copyObjectStrict,
1455
+ set: copySetStrict
1456
+ });
1457
+ function getTagSpecificCopiers(options) {
1458
+ return {
1459
+ Arguments: options.object,
1460
+ Array: options.array,
1461
+ ArrayBuffer: options.arrayBuffer,
1462
+ Blob: options.blob,
1463
+ Boolean: copyPrimitiveWrapper,
1464
+ DataView: options.dataView,
1465
+ Date: options.date,
1466
+ Error: options.error,
1467
+ Float32Array: options.arrayBuffer,
1468
+ Float64Array: options.arrayBuffer,
1469
+ Int8Array: options.arrayBuffer,
1470
+ Int16Array: options.arrayBuffer,
1471
+ Int32Array: options.arrayBuffer,
1472
+ Map: options.map,
1473
+ Number: copyPrimitiveWrapper,
1474
+ Object: options.object,
1475
+ Promise: copySelf,
1476
+ RegExp: options.regExp,
1477
+ Set: options.set,
1478
+ String: copyPrimitiveWrapper,
1479
+ WeakMap: copySelf,
1480
+ WeakSet: copySelf,
1481
+ Uint8Array: options.arrayBuffer,
1482
+ Uint8ClampedArray: options.arrayBuffer,
1483
+ Uint16Array: options.arrayBuffer,
1484
+ Uint32Array: options.arrayBuffer,
1485
+ Uint64Array: options.arrayBuffer
1486
+ };
1487
+ }
1488
+ function createCopier(options) {
1489
+ var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);
1490
+ var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
1491
+ var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;
1492
+ function copier(value, state) {
1493
+ state.prototype = state.Constructor = void 0;
1494
+ if (!value || 'object' != typeof value) return value;
1495
+ if (state.cache.has(value)) return state.cache.get(value);
1496
+ state.prototype = getPrototypeOf(value);
1497
+ state.Constructor = state.prototype && state.prototype.constructor;
1498
+ if (!state.Constructor || state.Constructor === Object) return object(value, state);
1499
+ if (isArray(value)) return array(value, state);
1500
+ var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
1501
+ if (tagSpecificCopier) return tagSpecificCopier(value, state);
1502
+ return 'function' == typeof value.then ? value : object(value, state);
1503
+ }
1504
+ return function(value) {
1505
+ return copier(value, {
1506
+ Constructor: void 0,
1507
+ cache: createCache(),
1508
+ copier: copier,
1509
+ prototype: void 0
1510
+ });
1511
+ };
1512
+ }
1513
+ function createStrictCopier(options) {
1514
+ return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));
1515
+ }
1516
+ var copyStrict = createStrictCopier({});
1517
+ var index = createCopier({});
1518
+ exports.copyStrict = copyStrict;
1519
+ exports.createCopier = createCopier;
1520
+ exports.createStrictCopier = createStrictCopier;
1521
+ exports["default"] = index;
1522
+ },
1523
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/colors.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1524
+ "use strict";
1525
+ const nocolor = (input)=>input;
1526
+ const plain = {
1527
+ default: nocolor,
1528
+ 60: nocolor,
1529
+ 50: nocolor,
1530
+ 40: nocolor,
1531
+ 30: nocolor,
1532
+ 20: nocolor,
1533
+ 10: nocolor,
1534
+ message: nocolor,
1535
+ greyMessage: nocolor,
1536
+ property: nocolor
1537
+ };
1538
+ const { createColors } = __webpack_require__("../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs");
1539
+ const getLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-level-label-data.js");
1540
+ const availableColors = createColors({
1541
+ useColor: true
1542
+ });
1543
+ const { white, bgRed, red, yellow, green, blue, gray, cyan, magenta } = availableColors;
1544
+ const colored = {
1545
+ default: white,
1546
+ 60: bgRed,
1547
+ 50: red,
1548
+ 40: yellow,
1549
+ 30: green,
1550
+ 20: blue,
1551
+ 10: gray,
1552
+ message: cyan,
1553
+ greyMessage: gray,
1554
+ property: magenta
1555
+ };
1556
+ function resolveCustomColoredColorizer(customColors) {
1557
+ return customColors.reduce(function(agg, [level, color]) {
1558
+ agg[level] = 'function' == typeof availableColors[color] ? availableColors[color] : white;
1559
+ return agg;
1560
+ }, {
1561
+ default: white,
1562
+ message: cyan,
1563
+ greyMessage: gray,
1564
+ property: magenta
1565
+ });
1566
+ }
1567
+ function colorizeLevel(useOnlyCustomProps) {
1568
+ return function(level, colorizer, { customLevels, customLevelNames } = {}) {
1569
+ const [levelStr, levelNum] = getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames)(level);
1570
+ return Object.prototype.hasOwnProperty.call(colorizer, levelNum) ? colorizer[levelNum](levelStr) : colorizer.default(levelStr);
1571
+ };
1572
+ }
1573
+ function plainColorizer(useOnlyCustomProps) {
1574
+ const newPlainColorizer = colorizeLevel(useOnlyCustomProps);
1575
+ const customColoredColorizer = function(level, opts) {
1576
+ return newPlainColorizer(level, plain, opts);
1577
+ };
1578
+ customColoredColorizer.message = plain.message;
1579
+ customColoredColorizer.greyMessage = plain.greyMessage;
1580
+ customColoredColorizer.property = plain.property;
1581
+ customColoredColorizer.colors = createColors({
1582
+ useColor: false
1583
+ });
1584
+ return customColoredColorizer;
1585
+ }
1586
+ function coloredColorizer(useOnlyCustomProps) {
1587
+ const newColoredColorizer = colorizeLevel(useOnlyCustomProps);
1588
+ const customColoredColorizer = function(level, opts) {
1589
+ return newColoredColorizer(level, colored, opts);
1590
+ };
1591
+ customColoredColorizer.message = colored.message;
1592
+ customColoredColorizer.property = colored.property;
1593
+ customColoredColorizer.greyMessage = colored.greyMessage;
1594
+ customColoredColorizer.colors = availableColors;
1595
+ return customColoredColorizer;
1596
+ }
1597
+ function customColoredColorizerFactory(customColors, useOnlyCustomProps) {
1598
+ const onlyCustomColored = resolveCustomColoredColorizer(customColors);
1599
+ const customColored = useOnlyCustomProps ? onlyCustomColored : Object.assign({}, colored, onlyCustomColored);
1600
+ const colorizeLevelCustom = colorizeLevel(useOnlyCustomProps);
1601
+ const customColoredColorizer = function(level, opts) {
1602
+ return colorizeLevelCustom(level, customColored, opts);
1603
+ };
1604
+ customColoredColorizer.colors = availableColors;
1605
+ customColoredColorizer.message = customColoredColorizer.message || customColored.message;
1606
+ customColoredColorizer.property = customColoredColorizer.property || customColored.property;
1607
+ customColoredColorizer.greyMessage = customColoredColorizer.greyMessage || customColored.greyMessage;
1608
+ return customColoredColorizer;
1609
+ }
1610
+ module1.exports = function(useColors = false, customColors, useOnlyCustomProps) {
1611
+ if (useColors && void 0 !== customColors) return customColoredColorizerFactory(customColors, useOnlyCustomProps);
1612
+ if (useColors) return coloredColorizer(useOnlyCustomProps);
1613
+ return plainColorizer(useOnlyCustomProps);
1614
+ };
1615
+ },
1616
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js": function(module1) {
1617
+ "use strict";
1618
+ module1.exports = {
1619
+ DATE_FORMAT: 'yyyy-mm-dd HH:MM:ss.l o',
1620
+ DATE_FORMAT_SIMPLE: 'HH:MM:ss.l',
1621
+ ERROR_LIKE_KEYS: [
1622
+ 'err',
1623
+ 'error'
1624
+ ],
1625
+ MESSAGE_KEY: 'msg',
1626
+ LEVEL_KEY: 'level',
1627
+ LEVEL_LABEL: 'levelLabel',
1628
+ TIMESTAMP_KEY: 'time',
1629
+ LEVELS: {
1630
+ default: 'USERLVL',
1631
+ 60: 'FATAL',
1632
+ 50: 'ERROR',
1633
+ 40: 'WARN',
1634
+ 30: 'INFO',
1635
+ 20: 'DEBUG',
1636
+ 10: 'TRACE'
1637
+ },
1638
+ LEVEL_NAMES: {
1639
+ fatal: 60,
1640
+ error: 50,
1641
+ warn: 40,
1642
+ info: 30,
1643
+ debug: 20,
1644
+ trace: 10
1645
+ },
1646
+ LOGGER_KEYS: [
1647
+ 'pid',
1648
+ 'hostname',
1649
+ 'name',
1650
+ 'level',
1651
+ 'time',
1652
+ 'timestamp',
1653
+ 'caller'
1654
+ ]
1655
+ };
1656
+ },
1657
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/pretty.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1658
+ "use strict";
1659
+ module1.exports = pretty;
1660
+ const sjs = __webpack_require__("../../node_modules/.pnpm/secure-json-parse@4.0.0/node_modules/secure-json-parse/index.js");
1661
+ const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-object.js");
1662
+ const prettifyErrorLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-error-log.js");
1663
+ const prettifyLevel = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-level.js");
1664
+ const prettifyMessage = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-message.js");
1665
+ const prettifyMetadata = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-metadata.js");
1666
+ const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-object.js");
1667
+ const prettifyTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-time.js");
1668
+ const filterLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/filter-log.js");
1669
+ const { LEVELS, LEVEL_KEY, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
1670
+ const jsonParser = (input)=>{
1671
+ try {
1672
+ return {
1673
+ value: sjs.parse(input, {
1674
+ protoAction: 'remove'
1675
+ })
1676
+ };
1677
+ } catch (err) {
1678
+ return {
1679
+ err
1680
+ };
1681
+ }
1682
+ };
1683
+ function pretty(inputData) {
1684
+ let log;
1685
+ if (isObject(inputData)) log = inputData;
1686
+ else {
1687
+ const parsed = jsonParser(inputData);
1688
+ if (parsed.err || !isObject(parsed.value)) return inputData + this.EOL;
1689
+ log = parsed.value;
1690
+ }
1691
+ if (this.minimumLevel) {
1692
+ let condition;
1693
+ condition = this.useOnlyCustomProps ? this.customLevels : void 0 !== this.customLevelNames[this.minimumLevel];
1694
+ let minimum;
1695
+ minimum = condition ? this.customLevelNames[this.minimumLevel] : LEVEL_NAMES[this.minimumLevel];
1696
+ if (!minimum) minimum = 'string' == typeof this.minimumLevel ? LEVEL_NAMES[this.minimumLevel] : LEVEL_NAMES[LEVELS[this.minimumLevel].toLowerCase()];
1697
+ const level = log[void 0 === this.levelKey ? LEVEL_KEY : this.levelKey];
1698
+ if (level < minimum) return;
1699
+ }
1700
+ const prettifiedMessage = prettifyMessage({
1701
+ log,
1702
+ context: this.context
1703
+ });
1704
+ if (this.ignoreKeys || this.includeKeys) log = filterLog({
1705
+ log,
1706
+ context: this.context
1707
+ });
1708
+ const prettifiedLevel = prettifyLevel({
1709
+ log,
1710
+ context: {
1711
+ ...this.context,
1712
+ ...this.context.customProperties
1713
+ }
1714
+ });
1715
+ const prettifiedMetadata = prettifyMetadata({
1716
+ log,
1717
+ context: this.context
1718
+ });
1719
+ const prettifiedTime = prettifyTime({
1720
+ log,
1721
+ context: this.context
1722
+ });
1723
+ let line = '';
1724
+ if (this.levelFirst && prettifiedLevel) line = `${prettifiedLevel}`;
1725
+ if (prettifiedTime && '' === line) line = `${prettifiedTime}`;
1726
+ else if (prettifiedTime) line = `${line} ${prettifiedTime}`;
1727
+ if (!this.levelFirst && prettifiedLevel) line = line.length > 0 ? `${line} ${prettifiedLevel}` : prettifiedLevel;
1728
+ if (prettifiedMetadata) line = line.length > 0 ? `${line} ${prettifiedMetadata}:` : prettifiedMetadata;
1729
+ if (false === line.endsWith(':') && '' !== line) line += ':';
1730
+ if (void 0 !== prettifiedMessage) line = line.length > 0 ? `${line} ${prettifiedMessage}` : prettifiedMessage;
1731
+ if (line.length > 0 && !this.singleLine) line += this.EOL;
1732
+ if ('Error' === log.type && 'string' == typeof log.stack) {
1733
+ const prettifiedErrorLog = prettifyErrorLog({
1734
+ log,
1735
+ context: this.context
1736
+ });
1737
+ if (this.singleLine) line += this.EOL;
1738
+ line += prettifiedErrorLog;
1739
+ } else if (false === this.hideObject) {
1740
+ const skipKeys = [
1741
+ this.messageKey,
1742
+ this.levelKey,
1743
+ this.timestampKey
1744
+ ].map((key)=>key.replaceAll(/\\/g, '')).filter((key)=>'string' == typeof log[key] || 'number' == typeof log[key] || 'boolean' == typeof log[key]);
1745
+ const prettifiedObject = prettifyObject({
1746
+ log,
1747
+ skipKeys,
1748
+ context: this.context
1749
+ });
1750
+ if (this.singleLine && !/^\s$/.test(prettifiedObject)) line += ' ';
1751
+ line += prettifiedObject;
1752
+ }
1753
+ return line;
1754
+ }
1755
+ },
1756
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1757
+ "use strict";
1758
+ module1.exports = buildSafeSonicBoom;
1759
+ const { isMainThread } = __webpack_require__("node:worker_threads");
1760
+ const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js");
1761
+ const noop = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/noop.js");
1762
+ function buildSafeSonicBoom(opts) {
1763
+ const stream = new SonicBoom(opts);
1764
+ stream.on('error', filterBrokenPipe);
1765
+ if (!opts.sync && isMainThread) setupOnExit(stream);
1766
+ return stream;
1767
+ function filterBrokenPipe(err) {
1768
+ if ('EPIPE' === err.code) {
1769
+ stream.write = noop;
1770
+ stream.end = noop;
1771
+ stream.flushSync = noop;
1772
+ stream.destroy = noop;
1773
+ return;
1774
+ }
1775
+ stream.removeListener('error', filterBrokenPipe);
1776
+ }
1777
+ }
1778
+ function setupOnExit(stream) {
1779
+ if (global.WeakRef && global.WeakMap && global.FinalizationRegistry) {
1780
+ const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
1781
+ onExit.register(stream, autoEnd);
1782
+ stream.on('close', function() {
1783
+ onExit.unregister(stream);
1784
+ });
1785
+ }
1786
+ }
1787
+ function autoEnd(stream, eventName) {
1788
+ if (stream.destroyed) return;
1789
+ if ('beforeExit' === eventName) {
1790
+ stream.flush();
1791
+ stream.on('drain', function() {
1792
+ stream.end();
1793
+ });
1794
+ } else stream.flushSync();
1795
+ }
1796
+ },
1797
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/create-date.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1798
+ "use strict";
1799
+ module1.exports = createDate;
1800
+ const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-valid-date.js");
1801
+ function createDate(epoch) {
1802
+ let date = new Date(epoch);
1803
+ if (isValidDate(date)) return date;
1804
+ date = new Date(+epoch);
1805
+ return date;
1806
+ }
1807
+ },
1808
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/delete-log-property.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1809
+ "use strict";
1810
+ module1.exports = deleteLogProperty;
1811
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-property-value.js");
1812
+ const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/split-property-key.js");
1813
+ function deleteLogProperty(log, property) {
1814
+ const props = splitPropertyKey(property);
1815
+ const propToDelete = props.pop();
1816
+ log = getPropertyValue(log, props);
1817
+ if (null !== log && 'object' == typeof log && Object.prototype.hasOwnProperty.call(log, propToDelete)) delete log[propToDelete];
1818
+ }
1819
+ },
1820
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/filter-log.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1821
+ "use strict";
1822
+ module1.exports = filterLog;
1823
+ const { createCopier } = __webpack_require__("../../node_modules/.pnpm/fast-copy@3.0.2/node_modules/fast-copy/dist/cjs/index.cjs");
1824
+ const fastCopy = createCopier({});
1825
+ const deleteLogProperty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/delete-log-property.js");
1826
+ function filterLog({ log, context }) {
1827
+ const { ignoreKeys, includeKeys } = context;
1828
+ const logCopy = fastCopy(log);
1829
+ if (includeKeys) {
1830
+ const logIncluded = {};
1831
+ includeKeys.forEach((key)=>{
1832
+ logIncluded[key] = logCopy[key];
1833
+ });
1834
+ return logIncluded;
1835
+ }
1836
+ ignoreKeys.forEach((ignoreKey)=>{
1837
+ deleteLogProperty(logCopy, ignoreKey);
1838
+ });
1839
+ return logCopy;
1840
+ }
1841
+ },
1842
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/format-time.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1843
+ "use strict";
1844
+ module1.exports = formatTime;
1845
+ const { DATE_FORMAT, DATE_FORMAT_SIMPLE } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
1846
+ const dateformat = __webpack_require__("../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js");
1847
+ const createDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/create-date.js");
1848
+ const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-valid-date.js");
1849
+ function formatTime(epoch, translateTime = false) {
1850
+ if (false === translateTime) return epoch;
1851
+ const instant = createDate(epoch);
1852
+ if (!isValidDate(instant)) return epoch;
1853
+ if (true === translateTime) return dateformat(instant, DATE_FORMAT_SIMPLE);
1854
+ const upperFormat = translateTime.toUpperCase();
1855
+ if ('SYS:STANDARD' === upperFormat) return dateformat(instant, DATE_FORMAT);
1856
+ const prefix = upperFormat.substr(0, 4);
1857
+ if ('SYS:' === prefix || 'UTC:' === prefix) {
1858
+ if ('UTC:' === prefix) return dateformat(instant, translateTime);
1859
+ return dateformat(instant, translateTime.slice(4));
1860
+ }
1861
+ return dateformat(instant, `UTC:${translateTime}`);
1862
+ }
1863
+ },
1864
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-level-label-data.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1865
+ "use strict";
1866
+ module1.exports = getLevelLabelData;
1867
+ const { LEVELS, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
1868
+ function getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames) {
1869
+ const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels);
1870
+ const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames);
1871
+ return function(level) {
1872
+ let levelNum = 'default';
1873
+ levelNum = Number.isInteger(+level) ? Object.prototype.hasOwnProperty.call(levels, level) ? level : levelNum : Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum;
1874
+ return [
1875
+ levels[levelNum],
1876
+ levelNum
1877
+ ];
1878
+ };
1879
+ }
1880
+ },
1881
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-property-value.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1882
+ "use strict";
1883
+ module1.exports = getPropertyValue;
1884
+ const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/split-property-key.js");
1885
+ function getPropertyValue(obj, property) {
1886
+ const props = Array.isArray(property) ? property : splitPropertyKey(property);
1887
+ for (const prop of props){
1888
+ if (!Object.prototype.hasOwnProperty.call(obj, prop)) return;
1889
+ obj = obj[prop];
1890
+ }
1891
+ return obj;
1892
+ }
1893
+ },
1894
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js": function(module1) {
1895
+ "use strict";
1896
+ module1.exports = handleCustomLevelsNamesOpts;
1897
+ function handleCustomLevelsNamesOpts(cLevels) {
1898
+ if (!cLevels) return {};
1899
+ if ('string' == typeof cLevels) return cLevels.split(',').reduce((agg, value, idx)=>{
1900
+ const [levelName, levelNum = idx] = value.split(':');
1901
+ agg[levelName.toLowerCase()] = levelNum;
1902
+ return agg;
1903
+ }, {});
1904
+ if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
1905
+ agg[levelName.toLowerCase()] = cLevels[levelName];
1906
+ return agg;
1907
+ }, {});
1908
+ return {};
1909
+ }
1910
+ },
1911
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js": function(module1) {
1912
+ "use strict";
1913
+ module1.exports = handleCustomLevelsOpts;
1914
+ function handleCustomLevelsOpts(cLevels) {
1915
+ if (!cLevels) return {};
1916
+ if ('string' == typeof cLevels) return cLevels.split(',').reduce((agg, value, idx)=>{
1917
+ const [levelName, levelNum = idx] = value.split(':');
1918
+ agg[levelNum] = levelName.toUpperCase();
1919
+ return agg;
1920
+ }, {
1921
+ default: 'USERLVL'
1922
+ });
1923
+ if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
1924
+ agg[cLevels[levelName]] = levelName.toUpperCase();
1925
+ return agg;
1926
+ }, {
1927
+ default: 'USERLVL'
1928
+ });
1929
+ return {};
1930
+ }
1931
+ },
1932
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1933
+ "use strict";
1934
+ module1.exports = {
1935
+ buildSafeSonicBoom: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js"),
1936
+ createDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/create-date.js"),
1937
+ deleteLogProperty: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/delete-log-property.js"),
1938
+ filterLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/filter-log.js"),
1939
+ formatTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/format-time.js"),
1940
+ getPropertyValue: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-property-value.js"),
1941
+ handleCustomLevelsNamesOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js"),
1942
+ handleCustomLevelsOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js"),
1943
+ interpretConditionals: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/interpret-conditionals.js"),
1944
+ isObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-object.js"),
1945
+ isValidDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-valid-date.js"),
1946
+ joinLinesWithIndentation: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js"),
1947
+ noop: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/noop.js"),
1948
+ parseFactoryOptions: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/parse-factory-options.js"),
1949
+ prettifyErrorLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-error-log.js"),
1950
+ prettifyError: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-error.js"),
1951
+ prettifyLevel: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-level.js"),
1952
+ prettifyMessage: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-message.js"),
1953
+ prettifyMetadata: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-metadata.js"),
1954
+ prettifyObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-object.js"),
1955
+ prettifyTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-time.js"),
1956
+ splitPropertyKey: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/split-property-key.js"),
1957
+ getLevelLabelData: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-level-label-data.js")
1958
+ };
1959
+ },
1960
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/interpret-conditionals.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1961
+ "use strict";
1962
+ module1.exports = interpretConditionals;
1963
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-property-value.js");
1964
+ function interpretConditionals(messageFormat, log) {
1965
+ messageFormat = messageFormat.replace(/{if (.*?)}(.*?){end}/g, replacer);
1966
+ messageFormat = messageFormat.replace(/{if (.*?)}/g, '');
1967
+ messageFormat = messageFormat.replace(/{end}/g, '');
1968
+ return messageFormat.replace(/\s+/g, ' ').trim();
1969
+ function replacer(_, key, value) {
1970
+ const propertyValue = getPropertyValue(log, key);
1971
+ if (propertyValue && value.includes(key)) return value.replace(new RegExp('{' + key + '}', 'g'), propertyValue);
1972
+ return '';
1973
+ }
1974
+ }
1975
+ },
1976
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-object.js": function(module1) {
1977
+ "use strict";
1978
+ module1.exports = isObject;
1979
+ function isObject(input) {
1980
+ return '[object Object]' === Object.prototype.toString.apply(input);
1981
+ }
1982
+ },
1983
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-valid-date.js": function(module1) {
1984
+ "use strict";
1985
+ module1.exports = isValidDate;
1986
+ function isValidDate(date) {
1987
+ return date instanceof Date && !Number.isNaN(date.getTime());
1988
+ }
1989
+ },
1990
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js": function(module1) {
1991
+ "use strict";
1992
+ module1.exports = joinLinesWithIndentation;
1993
+ function joinLinesWithIndentation({ input, ident = ' ', eol = '\n' }) {
1994
+ const lines = input.split(/\r?\n/);
1995
+ for(let i = 1; i < lines.length; i += 1)lines[i] = ident + lines[i];
1996
+ return lines.join(eol);
1997
+ }
1998
+ },
1999
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/noop.js": function(module1) {
2000
+ "use strict";
2001
+ module1.exports = function() {};
2002
+ },
2003
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/parse-factory-options.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2004
+ "use strict";
2005
+ module1.exports = parseFactoryOptions;
2006
+ const { LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
2007
+ const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/colors.js");
2008
+ const handleCustomLevelsOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js");
2009
+ const handleCustomLevelsNamesOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js");
2010
+ const handleLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-level-label-data.js");
2011
+ function parseFactoryOptions(options) {
2012
+ const EOL = options.crlf ? '\r\n' : '\n';
2013
+ const IDENT = ' ';
2014
+ const { customPrettifiers, errorLikeObjectKeys, hideObject, levelFirst, levelKey, levelLabel, messageFormat, messageKey, minimumLevel, singleLine, timestampKey, translateTime } = options;
2015
+ const errorProps = options.errorProps.split(',');
2016
+ const useOnlyCustomProps = 'boolean' == typeof options.useOnlyCustomProps ? options.useOnlyCustomProps : 'true' === options.useOnlyCustomProps;
2017
+ const customLevels = handleCustomLevelsOpts(options.customLevels);
2018
+ const customLevelNames = handleCustomLevelsNamesOpts(options.customLevels);
2019
+ const getLevelLabelData = handleLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames);
2020
+ let customColors;
2021
+ if (options.customColors) if ('string' == typeof options.customColors) customColors = options.customColors.split(',').reduce((agg, value)=>{
2022
+ const [level, color] = value.split(':');
2023
+ const condition = useOnlyCustomProps ? options.customLevels : void 0 !== customLevelNames[level];
2024
+ const levelNum = condition ? customLevelNames[level] : LEVEL_NAMES[level];
2025
+ const colorIdx = void 0 !== levelNum ? levelNum : level;
2026
+ agg.push([
2027
+ colorIdx,
2028
+ color
2029
+ ]);
2030
+ return agg;
2031
+ }, []);
2032
+ else if ('object' == typeof options.customColors) customColors = Object.keys(options.customColors).reduce((agg, value)=>{
2033
+ const [level, color] = [
2034
+ value,
2035
+ options.customColors[value]
2036
+ ];
2037
+ const condition = useOnlyCustomProps ? options.customLevels : void 0 !== customLevelNames[level];
2038
+ const levelNum = condition ? customLevelNames[level] : LEVEL_NAMES[level];
2039
+ const colorIdx = void 0 !== levelNum ? levelNum : level;
2040
+ agg.push([
2041
+ colorIdx,
2042
+ color
2043
+ ]);
2044
+ return agg;
2045
+ }, []);
2046
+ else throw new Error('options.customColors must be of type string or object.');
2047
+ const customProperties = {
2048
+ customLevels,
2049
+ customLevelNames
2050
+ };
2051
+ if (true === useOnlyCustomProps && !options.customLevels) {
2052
+ customProperties.customLevels = void 0;
2053
+ customProperties.customLevelNames = void 0;
2054
+ }
2055
+ const includeKeys = void 0 !== options.include ? new Set(options.include.split(',')) : void 0;
2056
+ const ignoreKeys = !includeKeys && options.ignore ? new Set(options.ignore.split(',')) : void 0;
2057
+ const colorizer = colors(options.colorize, customColors, useOnlyCustomProps);
2058
+ const objectColorizer = options.colorizeObjects ? colorizer : colors(false, [], false);
2059
+ return {
2060
+ EOL,
2061
+ IDENT,
2062
+ colorizer,
2063
+ customColors,
2064
+ customLevelNames,
2065
+ customLevels,
2066
+ customPrettifiers,
2067
+ customProperties,
2068
+ errorLikeObjectKeys,
2069
+ errorProps,
2070
+ getLevelLabelData,
2071
+ hideObject,
2072
+ ignoreKeys,
2073
+ includeKeys,
2074
+ levelFirst,
2075
+ levelKey,
2076
+ levelLabel,
2077
+ messageFormat,
2078
+ messageKey,
2079
+ minimumLevel,
2080
+ objectColorizer,
2081
+ singleLine,
2082
+ timestampKey,
2083
+ translateTime,
2084
+ useOnlyCustomProps
2085
+ };
2086
+ }
2087
+ },
2088
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-error-log.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2089
+ "use strict";
2090
+ module1.exports = prettifyErrorLog;
2091
+ const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
2092
+ const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/is-object.js");
2093
+ const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
2094
+ const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-object.js");
2095
+ function prettifyErrorLog({ log, context }) {
2096
+ const { EOL: eol, IDENT: ident, errorProps: errorProperties, messageKey } = context;
2097
+ const stack = log.stack;
2098
+ const joinedLines = joinLinesWithIndentation({
2099
+ input: stack,
2100
+ ident,
2101
+ eol
2102
+ });
2103
+ let result = `${ident}${joinedLines}${eol}`;
2104
+ if (errorProperties.length > 0) {
2105
+ const excludeProperties = LOGGER_KEYS.concat(messageKey, 'type', 'stack');
2106
+ let propertiesToPrint;
2107
+ propertiesToPrint = '*' === errorProperties[0] ? Object.keys(log).filter((k)=>false === excludeProperties.includes(k)) : errorProperties.filter((k)=>false === excludeProperties.includes(k));
2108
+ for(let i = 0; i < propertiesToPrint.length; i += 1){
2109
+ const key = propertiesToPrint[i];
2110
+ if (key in log !== false) {
2111
+ if (isObject(log[key])) {
2112
+ const prettifiedObject = prettifyObject({
2113
+ log: log[key],
2114
+ excludeLoggerKeys: false,
2115
+ context: {
2116
+ ...context,
2117
+ IDENT: ident + ident
2118
+ }
2119
+ });
2120
+ result = `${result}${ident}${key}: {${eol}${prettifiedObject}${ident}}${eol}`;
2121
+ continue;
2122
+ }
2123
+ result = `${result}${ident}${key}: ${log[key]}${eol}`;
2124
+ }
2125
+ }
2126
+ }
2127
+ return result;
2128
+ }
2129
+ },
2130
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-error.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2131
+ "use strict";
2132
+ module1.exports = prettifyError;
2133
+ const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
2134
+ function prettifyError({ keyName, lines, eol, ident }) {
2135
+ let result = '';
2136
+ const joinedLines = joinLinesWithIndentation({
2137
+ input: lines,
2138
+ ident,
2139
+ eol
2140
+ });
2141
+ const splitLines = `${ident}${keyName}: ${joinedLines}${eol}`.split(eol);
2142
+ for(let j = 0; j < splitLines.length; j += 1){
2143
+ if (0 !== j) result += eol;
2144
+ const line = splitLines[j];
2145
+ if (/^\s*"stack"/.test(line)) {
2146
+ const matches = /^(\s*"stack":)\s*(".*"),?$/.exec(line);
2147
+ if (matches && 3 === matches.length) {
2148
+ const indentSize = /^\s*/.exec(line)[0].length + 4;
2149
+ const indentation = ' '.repeat(indentSize);
2150
+ const stackMessage = matches[2];
2151
+ result += matches[1] + eol + indentation + JSON.parse(stackMessage).replace(/\n/g, eol + indentation);
2152
+ } else result += line;
2153
+ } else result += line;
2154
+ }
2155
+ return result;
2156
+ }
2157
+ },
2158
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-level.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2159
+ "use strict";
2160
+ module1.exports = prettifyLevel;
2161
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-property-value.js");
2162
+ function prettifyLevel({ log, context }) {
2163
+ const { colorizer, customLevels, customLevelNames, levelKey, getLevelLabelData } = context;
2164
+ const prettifier = context.customPrettifiers?.level;
2165
+ const output = getPropertyValue(log, levelKey);
2166
+ if (void 0 === output) return;
2167
+ const labelColorized = colorizer(output, {
2168
+ customLevels,
2169
+ customLevelNames
2170
+ });
2171
+ if (prettifier) {
2172
+ const [label] = getLevelLabelData(output);
2173
+ return prettifier(output, levelKey, log, {
2174
+ label,
2175
+ labelColorized,
2176
+ colors: colorizer.colors
2177
+ });
2178
+ }
2179
+ return labelColorized;
2180
+ }
2181
+ },
2182
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-message.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2183
+ "use strict";
2184
+ module1.exports = prettifyMessage;
2185
+ const { LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
2186
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/get-property-value.js");
2187
+ const interpretConditionals = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/interpret-conditionals.js");
2188
+ function prettifyMessage({ log, context }) {
2189
+ const { colorizer, customLevels, levelKey, levelLabel, messageFormat, messageKey, useOnlyCustomProps } = context;
2190
+ if (messageFormat && 'string' == typeof messageFormat) {
2191
+ const parsedMessageFormat = interpretConditionals(messageFormat, log);
2192
+ const message = String(parsedMessageFormat).replace(/{([^{}]+)}/g, function(match, p1) {
2193
+ let level;
2194
+ if (p1 === levelLabel && void 0 !== (level = getPropertyValue(log, levelKey))) {
2195
+ const condition = useOnlyCustomProps ? void 0 === customLevels : void 0 === customLevels[level];
2196
+ return condition ? LEVELS[level] : customLevels[level];
2197
+ }
2198
+ return getPropertyValue(log, p1) || '';
2199
+ });
2200
+ return colorizer.message(message);
2201
+ }
2202
+ if (messageFormat && 'function' == typeof messageFormat) {
2203
+ const msg = messageFormat(log, messageKey, levelLabel, {
2204
+ colors: colorizer.colors
2205
+ });
2206
+ return colorizer.message(msg);
2207
+ }
2208
+ if (messageKey in log === false) return;
2209
+ if ('string' != typeof log[messageKey] && 'number' != typeof log[messageKey] && 'boolean' != typeof log[messageKey]) return;
2210
+ return colorizer.message(log[messageKey]);
2211
+ }
2212
+ },
2213
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-metadata.js": function(module1) {
2214
+ "use strict";
2215
+ module1.exports = prettifyMetadata;
2216
+ function prettifyMetadata({ log, context }) {
2217
+ const { customPrettifiers: prettifiers, colorizer } = context;
2218
+ let line = '';
2219
+ if (log.name || log.pid || log.hostname) {
2220
+ line += '(';
2221
+ if (log.name) line += prettifiers.name ? prettifiers.name(log.name, 'name', log, {
2222
+ colors: colorizer.colors
2223
+ }) : log.name;
2224
+ if (log.pid) {
2225
+ const prettyPid = prettifiers.pid ? prettifiers.pid(log.pid, 'pid', log, {
2226
+ colors: colorizer.colors
2227
+ }) : log.pid;
2228
+ if (log.name && log.pid) line += '/' + prettyPid;
2229
+ else line += prettyPid;
2230
+ }
2231
+ if (log.hostname) {
2232
+ const prettyHostname = prettifiers.hostname ? prettifiers.hostname(log.hostname, 'hostname', log, {
2233
+ colors: colorizer.colors
2234
+ }) : log.hostname;
2235
+ line += `${'(' === line ? 'on' : ' on'} ${prettyHostname}`;
2236
+ }
2237
+ line += ')';
2238
+ }
2239
+ if (log.caller) {
2240
+ const prettyCaller = prettifiers.caller ? prettifiers.caller(log.caller, 'caller', log, {
2241
+ colors: colorizer.colors
2242
+ }) : log.caller;
2243
+ line += `${'' === line ? '' : ' '}<${prettyCaller}>`;
2244
+ }
2245
+ if ('' === line) return;
2246
+ return line;
2247
+ }
2248
+ },
2249
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-object.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2250
+ "use strict";
2251
+ module1.exports = prettifyObject;
2252
+ const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/constants.js");
2253
+ const stringifySafe = __webpack_require__("../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js");
2254
+ const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
2255
+ const prettifyError = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-error.js");
2256
+ function prettifyObject({ log, excludeLoggerKeys = true, skipKeys = [], context }) {
2257
+ const { EOL: eol, IDENT: ident, customPrettifiers, errorLikeObjectKeys: errorLikeKeys, objectColorizer, singleLine, colorizer } = context;
2258
+ const keysToIgnore = [].concat(skipKeys);
2259
+ if (true === excludeLoggerKeys) Array.prototype.push.apply(keysToIgnore, LOGGER_KEYS);
2260
+ let result = '';
2261
+ const { plain, errors } = Object.entries(log).reduce(({ plain, errors }, [k, v])=>{
2262
+ if (false === keysToIgnore.includes(k)) {
2263
+ const pretty = 'function' == typeof customPrettifiers[k] ? customPrettifiers[k](v, k, log, {
2264
+ colors: colorizer.colors
2265
+ }) : v;
2266
+ if (errorLikeKeys.includes(k)) errors[k] = pretty;
2267
+ else plain[k] = pretty;
2268
+ }
2269
+ return {
2270
+ plain,
2271
+ errors
2272
+ };
2273
+ }, {
2274
+ plain: {},
2275
+ errors: {}
2276
+ });
2277
+ if (singleLine) {
2278
+ if (Object.keys(plain).length > 0) result += objectColorizer.greyMessage(stringifySafe(plain));
2279
+ result += eol;
2280
+ result = result.replace(/\\\\/gi, '\\');
2281
+ } else Object.entries(plain).forEach(([keyName, keyValue])=>{
2282
+ let lines = 'function' == typeof customPrettifiers[keyName] ? keyValue : stringifySafe(keyValue, null, 2);
2283
+ if (void 0 === lines) return;
2284
+ lines = lines.replace(/\\\\/gi, '\\');
2285
+ const joinedLines = joinLinesWithIndentation({
2286
+ input: lines,
2287
+ ident,
2288
+ eol
2289
+ });
2290
+ result += `${ident}${objectColorizer.property(keyName)}:${joinedLines.startsWith(eol) ? '' : ' '}${joinedLines}${eol}`;
2291
+ });
2292
+ Object.entries(errors).forEach(([keyName, keyValue])=>{
2293
+ const lines = 'function' == typeof customPrettifiers[keyName] ? keyValue : stringifySafe(keyValue, null, 2);
2294
+ if (void 0 === lines) return;
2295
+ result += prettifyError({
2296
+ keyName,
2297
+ lines,
2298
+ eol,
2299
+ ident
2300
+ });
2301
+ });
2302
+ return result;
2303
+ }
2304
+ },
2305
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/prettify-time.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2306
+ "use strict";
2307
+ module1.exports = prettifyTime;
2308
+ const formatTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/format-time.js");
2309
+ function prettifyTime({ log, context }) {
2310
+ const { timestampKey, translateTime: translateFormat } = context;
2311
+ const prettifier = context.customPrettifiers?.time;
2312
+ let time = null;
2313
+ if (timestampKey in log) time = log[timestampKey];
2314
+ else if ('timestamp' in log) time = log.timestamp;
2315
+ if (null === time) return;
2316
+ const output = translateFormat ? formatTime(time, translateFormat) : time;
2317
+ return prettifier ? prettifier(output) : `[${output}]`;
2318
+ }
2319
+ },
2320
+ "../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/lib/utils/split-property-key.js": function(module1) {
2321
+ "use strict";
2322
+ module1.exports = splitPropertyKey;
2323
+ function splitPropertyKey(key) {
2324
+ const result = [];
2325
+ let backslash = false;
2326
+ let segment = '';
2327
+ for(let i = 0; i < key.length; i++){
2328
+ const c = key.charAt(i);
2329
+ if ('\\' === c) {
2330
+ backslash = true;
2331
+ continue;
2332
+ }
2333
+ if (backslash) {
2334
+ backslash = false;
2335
+ segment += c;
2336
+ continue;
2337
+ }
2338
+ if ('.' === c) {
2339
+ result.push(segment);
2340
+ segment = '';
2341
+ continue;
2342
+ }
2343
+ segment += c;
2344
+ }
2345
+ if (segment.length) result.push(segment);
2346
+ return result;
2347
+ }
2348
+ },
2349
+ "../../node_modules/.pnpm/secure-json-parse@4.0.0/node_modules/secure-json-parse/index.js": function(module1) {
2350
+ "use strict";
2351
+ const hasBuffer = 'undefined' != typeof Buffer;
2352
+ const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
2353
+ const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
2354
+ function _parse(text, reviver, options) {
2355
+ if (null == options) {
2356
+ if (null !== reviver && 'object' == typeof reviver) {
2357
+ options = reviver;
2358
+ reviver = void 0;
2359
+ }
2360
+ }
2361
+ if (hasBuffer && Buffer.isBuffer(text)) text = text.toString();
2362
+ if (text && 0xFEFF === text.charCodeAt(0)) text = text.slice(1);
2363
+ const obj = JSON.parse(text, reviver);
2364
+ if (null === obj || 'object' != typeof obj) return obj;
2365
+ const protoAction = options && options.protoAction || 'error';
2366
+ const constructorAction = options && options.constructorAction || 'error';
2367
+ if ('ignore' === protoAction && 'ignore' === constructorAction) return obj;
2368
+ if ('ignore' !== protoAction && 'ignore' !== constructorAction) {
2369
+ if (false === suspectProtoRx.test(text) && false === suspectConstructorRx.test(text)) return obj;
2370
+ } else if ('ignore' !== protoAction && 'ignore' === constructorAction) {
2371
+ if (false === suspectProtoRx.test(text)) return obj;
2372
+ } else if (false === suspectConstructorRx.test(text)) return obj;
2373
+ return filter(obj, {
2374
+ protoAction,
2375
+ constructorAction,
2376
+ safe: options && options.safe
2377
+ });
2378
+ }
2379
+ function filter(obj, { protoAction = 'error', constructorAction = 'error', safe } = {}) {
2380
+ let next = [
2381
+ obj
2382
+ ];
2383
+ while(next.length){
2384
+ const nodes = next;
2385
+ next = [];
2386
+ for (const node of nodes){
2387
+ if ('ignore' !== protoAction && Object.prototype.hasOwnProperty.call(node, '__proto__')) {
2388
+ if (true === safe) return null;
2389
+ if ('error' === protoAction) throw new SyntaxError('Object contains forbidden prototype property');
2390
+ delete node.__proto__;
2391
+ }
2392
+ if ('ignore' !== constructorAction && Object.prototype.hasOwnProperty.call(node, 'constructor') && Object.prototype.hasOwnProperty.call(node.constructor, 'prototype')) {
2393
+ if (true === safe) return null;
2394
+ if ('error' === constructorAction) throw new SyntaxError('Object contains forbidden prototype property');
2395
+ delete node.constructor;
2396
+ }
2397
+ for(const key in node){
2398
+ const value = node[key];
2399
+ if (value && 'object' == typeof value) next.push(value);
2400
+ }
2401
+ }
2402
+ }
2403
+ return obj;
2404
+ }
2405
+ function parse(text, reviver, options) {
2406
+ const { stackTraceLimit } = Error;
2407
+ Error.stackTraceLimit = 0;
2408
+ try {
2409
+ return _parse(text, reviver, options);
2410
+ } finally{
2411
+ Error.stackTraceLimit = stackTraceLimit;
2412
+ }
2413
+ }
2414
+ function safeParse(text, reviver) {
2415
+ const { stackTraceLimit } = Error;
2416
+ Error.stackTraceLimit = 0;
2417
+ try {
2418
+ return _parse(text, reviver, {
2419
+ safe: true
2420
+ });
2421
+ } catch {
2422
+ return;
2423
+ } finally{
2424
+ Error.stackTraceLimit = stackTraceLimit;
2425
+ }
2426
+ }
2427
+ module1.exports = parse;
2428
+ module1.exports["default"] = parse;
2429
+ module1.exports.parse = parse;
2430
+ module1.exports.safeParse = safeParse;
2431
+ module1.exports.scan = filter;
2432
+ },
2433
+ "../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2434
+ "use strict";
2435
+ const fs = __webpack_require__("fs");
2436
+ const EventEmitter = __webpack_require__("events");
2437
+ const inherits = __webpack_require__("util").inherits;
2438
+ const path = __webpack_require__("path");
2439
+ const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
2440
+ const assert = __webpack_require__("assert");
2441
+ const BUSY_WRITE_TIMEOUT = 100;
2442
+ const kEmptyBuffer = Buffer.allocUnsafe(0);
2443
+ const MAX_WRITE = 16384;
2444
+ const kContentModeBuffer = 'buffer';
2445
+ const kContentModeUtf8 = 'utf8';
2446
+ const [major, minor] = (process.versions.node || '0.0').split('.').map(Number);
2447
+ const kCopyBuffer = major >= 22 && minor >= 7;
2448
+ function openFile(file, sonic) {
2449
+ sonic._opening = true;
2450
+ sonic._writing = true;
2451
+ sonic._asyncDrainScheduled = false;
2452
+ function fileOpened(err, fd) {
2453
+ if (err) {
2454
+ sonic._reopening = false;
2455
+ sonic._writing = false;
2456
+ sonic._opening = false;
2457
+ if (sonic.sync) process.nextTick(()=>{
2458
+ if (sonic.listenerCount('error') > 0) sonic.emit('error', err);
2459
+ });
2460
+ else sonic.emit('error', err);
2461
+ return;
2462
+ }
2463
+ const reopening = sonic._reopening;
2464
+ sonic.fd = fd;
2465
+ sonic.file = file;
2466
+ sonic._reopening = false;
2467
+ sonic._opening = false;
2468
+ sonic._writing = false;
2469
+ if (sonic.sync) process.nextTick(()=>sonic.emit('ready'));
2470
+ else sonic.emit('ready');
2471
+ if (sonic.destroyed) return;
2472
+ if (!sonic._writing && sonic._len > sonic.minLength || sonic._flushPending) sonic._actualWrite();
2473
+ else if (reopening) process.nextTick(()=>sonic.emit('drain'));
2474
+ }
2475
+ const flags = sonic.append ? 'a' : 'w';
2476
+ const mode = sonic.mode;
2477
+ if (sonic.sync) try {
2478
+ if (sonic.mkdir) fs.mkdirSync(path.dirname(file), {
2479
+ recursive: true
2480
+ });
2481
+ const fd = fs.openSync(file, flags, mode);
2482
+ fileOpened(null, fd);
2483
+ } catch (err) {
2484
+ fileOpened(err);
2485
+ throw err;
2486
+ }
2487
+ else if (sonic.mkdir) fs.mkdir(path.dirname(file), {
2488
+ recursive: true
2489
+ }, (err)=>{
2490
+ if (err) return fileOpened(err);
2491
+ fs.open(file, flags, mode, fileOpened);
2492
+ });
2493
+ else fs.open(file, flags, mode, fileOpened);
2494
+ }
2495
+ function SonicBoom(opts) {
2496
+ if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
2497
+ let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir, retryEAGAIN, fsync, contentMode, mode } = opts || {};
2498
+ fd = fd || dest;
2499
+ this._len = 0;
2500
+ this.fd = -1;
2501
+ this._bufs = [];
2502
+ this._lens = [];
2503
+ this._writing = false;
2504
+ this._ending = false;
2505
+ this._reopening = false;
2506
+ this._asyncDrainScheduled = false;
2507
+ this._flushPending = false;
2508
+ this._hwm = Math.max(minLength || 0, 16387);
2509
+ this.file = null;
2510
+ this.destroyed = false;
2511
+ this.minLength = minLength || 0;
2512
+ this.maxLength = maxLength || 0;
2513
+ this.maxWrite = maxWrite || MAX_WRITE;
2514
+ this._periodicFlush = periodicFlush || 0;
2515
+ this._periodicFlushTimer = void 0;
2516
+ this.sync = sync || false;
2517
+ this.writable = true;
2518
+ this._fsync = fsync || false;
2519
+ this.append = append || false;
2520
+ this.mode = mode;
2521
+ this.retryEAGAIN = retryEAGAIN || (()=>true);
2522
+ this.mkdir = mkdir || false;
2523
+ let fsWriteSync;
2524
+ let fsWrite;
2525
+ if (contentMode === kContentModeBuffer) {
2526
+ this._writingBuf = kEmptyBuffer;
2527
+ this.write = writeBuffer;
2528
+ this.flush = flushBuffer;
2529
+ this.flushSync = flushBufferSync;
2530
+ this._actualWrite = actualWriteBuffer;
2531
+ fsWriteSync = ()=>fs.writeSync(this.fd, this._writingBuf);
2532
+ fsWrite = ()=>fs.write(this.fd, this._writingBuf, this.release);
2533
+ } else if (void 0 === contentMode || contentMode === kContentModeUtf8) {
2534
+ this._writingBuf = '';
2535
+ this.write = write;
2536
+ this.flush = flush;
2537
+ this.flushSync = flushSync;
2538
+ this._actualWrite = actualWrite;
2539
+ fsWriteSync = ()=>fs.writeSync(this.fd, this._writingBuf, 'utf8');
2540
+ fsWrite = ()=>fs.write(this.fd, this._writingBuf, 'utf8', this.release);
2541
+ } else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
2542
+ if ('number' == typeof fd) {
2543
+ this.fd = fd;
2544
+ process.nextTick(()=>this.emit('ready'));
2545
+ } else if ('string' == typeof fd) openFile(fd, this);
2546
+ else throw new Error("SonicBoom supports only file descriptors and files");
2547
+ if (this.minLength >= this.maxWrite) throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);
2548
+ this.release = (err, n)=>{
2549
+ if (err) {
2550
+ if (('EAGAIN' === err.code || 'EBUSY' === err.code) && this.retryEAGAIN(err, this._writingBuf.length, this._len - this._writingBuf.length)) if (this.sync) try {
2551
+ sleep(BUSY_WRITE_TIMEOUT);
2552
+ this.release(void 0, 0);
2553
+ } catch (err) {
2554
+ this.release(err);
2555
+ }
2556
+ else setTimeout(fsWrite, BUSY_WRITE_TIMEOUT);
2557
+ else {
2558
+ this._writing = false;
2559
+ this.emit('error', err);
2560
+ }
2561
+ return;
2562
+ }
2563
+ this.emit('write', n);
2564
+ const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
2565
+ this._len = releasedBufObj.len;
2566
+ this._writingBuf = releasedBufObj.writingBuf;
2567
+ if (this._writingBuf.length) {
2568
+ if (!this.sync) return void fsWrite();
2569
+ try {
2570
+ do {
2571
+ const n = fsWriteSync();
2572
+ const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
2573
+ this._len = releasedBufObj.len;
2574
+ this._writingBuf = releasedBufObj.writingBuf;
2575
+ }while (this._writingBuf.length);
2576
+ } catch (err) {
2577
+ this.release(err);
2578
+ return;
2579
+ }
2580
+ }
2581
+ if (this._fsync) fs.fsyncSync(this.fd);
2582
+ const len = this._len;
2583
+ if (this._reopening) {
2584
+ this._writing = false;
2585
+ this._reopening = false;
2586
+ this.reopen();
2587
+ } else if (len > this.minLength) this._actualWrite();
2588
+ else if (this._ending) if (len > 0) this._actualWrite();
2589
+ else {
2590
+ this._writing = false;
2591
+ actualClose(this);
2592
+ }
2593
+ else {
2594
+ this._writing = false;
2595
+ if (this.sync) {
2596
+ if (!this._asyncDrainScheduled) {
2597
+ this._asyncDrainScheduled = true;
2598
+ process.nextTick(emitDrain, this);
2599
+ }
2600
+ } else this.emit('drain');
2601
+ }
2602
+ };
2603
+ this.on('newListener', function(name) {
2604
+ if ('drain' === name) this._asyncDrainScheduled = false;
2605
+ });
2606
+ if (0 !== this._periodicFlush) {
2607
+ this._periodicFlushTimer = setInterval(()=>this.flush(null), this._periodicFlush);
2608
+ this._periodicFlushTimer.unref();
2609
+ }
2610
+ }
2611
+ function releaseWritingBuf(writingBuf, len, n) {
2612
+ if ('string' == typeof writingBuf && Buffer.byteLength(writingBuf) !== n) n = Buffer.from(writingBuf).subarray(0, n).toString().length;
2613
+ len = Math.max(len - n, 0);
2614
+ writingBuf = writingBuf.slice(n);
2615
+ return {
2616
+ writingBuf,
2617
+ len
2618
+ };
2619
+ }
2620
+ function emitDrain(sonic) {
2621
+ const hasListeners = sonic.listenerCount('drain') > 0;
2622
+ if (!hasListeners) return;
2623
+ sonic._asyncDrainScheduled = false;
2624
+ sonic.emit('drain');
2625
+ }
2626
+ inherits(SonicBoom, EventEmitter);
2627
+ function mergeBuf(bufs, len) {
2628
+ if (0 === bufs.length) return kEmptyBuffer;
2629
+ if (1 === bufs.length) return bufs[0];
2630
+ return Buffer.concat(bufs, len);
2631
+ }
2632
+ function write(data) {
2633
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2634
+ const len = this._len + data.length;
2635
+ const bufs = this._bufs;
2636
+ if (this.maxLength && len > this.maxLength) {
2637
+ this.emit('drop', data);
2638
+ return this._len < this._hwm;
2639
+ }
2640
+ if (0 === bufs.length || bufs[bufs.length - 1].length + data.length > this.maxWrite) bufs.push('' + data);
2641
+ else bufs[bufs.length - 1] += data;
2642
+ this._len = len;
2643
+ if (!this._writing && this._len >= this.minLength) this._actualWrite();
2644
+ return this._len < this._hwm;
2645
+ }
2646
+ function writeBuffer(data) {
2647
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2648
+ const len = this._len + data.length;
2649
+ const bufs = this._bufs;
2650
+ const lens = this._lens;
2651
+ if (this.maxLength && len > this.maxLength) {
2652
+ this.emit('drop', data);
2653
+ return this._len < this._hwm;
2654
+ }
2655
+ if (0 === bufs.length || lens[lens.length - 1] + data.length > this.maxWrite) {
2656
+ bufs.push([
2657
+ data
2658
+ ]);
2659
+ lens.push(data.length);
2660
+ } else {
2661
+ bufs[bufs.length - 1].push(data);
2662
+ lens[lens.length - 1] += data.length;
2663
+ }
2664
+ this._len = len;
2665
+ if (!this._writing && this._len >= this.minLength) this._actualWrite();
2666
+ return this._len < this._hwm;
2667
+ }
2668
+ function callFlushCallbackOnDrain(cb) {
2669
+ this._flushPending = true;
2670
+ const onDrain = ()=>{
2671
+ if (this._fsync) {
2672
+ this._flushPending = false;
2673
+ cb();
2674
+ } else try {
2675
+ fs.fsync(this.fd, (err)=>{
2676
+ this._flushPending = false;
2677
+ cb(err);
2678
+ });
2679
+ } catch (err) {
2680
+ cb(err);
2681
+ }
2682
+ this.off('error', onError);
2683
+ };
2684
+ const onError = (err)=>{
2685
+ this._flushPending = false;
2686
+ cb(err);
2687
+ this.off('drain', onDrain);
2688
+ };
2689
+ this.once('drain', onDrain);
2690
+ this.once('error', onError);
2691
+ }
2692
+ function flush(cb) {
2693
+ if (null != cb && 'function' != typeof cb) throw new Error('flush cb must be a function');
2694
+ if (this.destroyed) {
2695
+ const error = new Error('SonicBoom destroyed');
2696
+ if (cb) return void cb(error);
2697
+ throw error;
2698
+ }
2699
+ if (this.minLength <= 0) return void cb?.();
2700
+ if (cb) callFlushCallbackOnDrain.call(this, cb);
2701
+ if (this._writing) return;
2702
+ if (0 === this._bufs.length) this._bufs.push('');
2703
+ this._actualWrite();
2704
+ }
2705
+ function flushBuffer(cb) {
2706
+ if (null != cb && 'function' != typeof cb) throw new Error('flush cb must be a function');
2707
+ if (this.destroyed) {
2708
+ const error = new Error('SonicBoom destroyed');
2709
+ if (cb) return void cb(error);
2710
+ throw error;
2711
+ }
2712
+ if (this.minLength <= 0) return void cb?.();
2713
+ if (cb) callFlushCallbackOnDrain.call(this, cb);
2714
+ if (this._writing) return;
2715
+ if (0 === this._bufs.length) {
2716
+ this._bufs.push([]);
2717
+ this._lens.push(0);
2718
+ }
2719
+ this._actualWrite();
2720
+ }
2721
+ SonicBoom.prototype.reopen = function(file) {
2722
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2723
+ if (this._opening) return void this.once('ready', ()=>{
2724
+ this.reopen(file);
2725
+ });
2726
+ if (this._ending) return;
2727
+ if (!this.file) throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");
2728
+ if (file) this.file = file;
2729
+ this._reopening = true;
2730
+ if (this._writing) return;
2731
+ const fd = this.fd;
2732
+ this.once('ready', ()=>{
2733
+ if (fd !== this.fd) fs.close(fd, (err)=>{
2734
+ if (err) return this.emit('error', err);
2735
+ });
2736
+ });
2737
+ openFile(this.file, this);
2738
+ };
2739
+ SonicBoom.prototype.end = function() {
2740
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2741
+ if (this._opening) return void this.once('ready', ()=>{
2742
+ this.end();
2743
+ });
2744
+ if (this._ending) return;
2745
+ this._ending = true;
2746
+ if (this._writing) return;
2747
+ if (this._len > 0 && this.fd >= 0) this._actualWrite();
2748
+ else actualClose(this);
2749
+ };
2750
+ function flushSync() {
2751
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2752
+ if (this.fd < 0) throw new Error('sonic boom is not ready yet');
2753
+ if (!this._writing && this._writingBuf.length > 0) {
2754
+ this._bufs.unshift(this._writingBuf);
2755
+ this._writingBuf = '';
2756
+ }
2757
+ let buf = '';
2758
+ while(this._bufs.length || buf){
2759
+ if (buf.length <= 0) buf = this._bufs[0];
2760
+ try {
2761
+ const n = fs.writeSync(this.fd, buf, 'utf8');
2762
+ const releasedBufObj = releaseWritingBuf(buf, this._len, n);
2763
+ buf = releasedBufObj.writingBuf;
2764
+ this._len = releasedBufObj.len;
2765
+ if (buf.length <= 0) this._bufs.shift();
2766
+ } catch (err) {
2767
+ const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
2768
+ if (shouldRetry && !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
2769
+ sleep(BUSY_WRITE_TIMEOUT);
2770
+ }
2771
+ }
2772
+ try {
2773
+ fs.fsyncSync(this.fd);
2774
+ } catch {}
2775
+ }
2776
+ function flushBufferSync() {
2777
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2778
+ if (this.fd < 0) throw new Error('sonic boom is not ready yet');
2779
+ if (!this._writing && this._writingBuf.length > 0) {
2780
+ this._bufs.unshift([
2781
+ this._writingBuf
2782
+ ]);
2783
+ this._writingBuf = kEmptyBuffer;
2784
+ }
2785
+ let buf = kEmptyBuffer;
2786
+ while(this._bufs.length || buf.length){
2787
+ if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
2788
+ try {
2789
+ const n = fs.writeSync(this.fd, buf);
2790
+ buf = buf.subarray(n);
2791
+ this._len = Math.max(this._len - n, 0);
2792
+ if (buf.length <= 0) {
2793
+ this._bufs.shift();
2794
+ this._lens.shift();
2795
+ }
2796
+ } catch (err) {
2797
+ const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
2798
+ if (shouldRetry && !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
2799
+ sleep(BUSY_WRITE_TIMEOUT);
2800
+ }
2801
+ }
2802
+ }
2803
+ SonicBoom.prototype.destroy = function() {
2804
+ if (this.destroyed) return;
2805
+ actualClose(this);
2806
+ };
2807
+ function actualWrite() {
2808
+ const release = this.release;
2809
+ this._writing = true;
2810
+ this._writingBuf = this._writingBuf || this._bufs.shift() || '';
2811
+ if (this.sync) try {
2812
+ const written = fs.writeSync(this.fd, this._writingBuf, 'utf8');
2813
+ release(null, written);
2814
+ } catch (err) {
2815
+ release(err);
2816
+ }
2817
+ else fs.write(this.fd, this._writingBuf, 'utf8', release);
2818
+ }
2819
+ function actualWriteBuffer() {
2820
+ const release = this.release;
2821
+ this._writing = true;
2822
+ this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
2823
+ if (this.sync) try {
2824
+ const written = fs.writeSync(this.fd, this._writingBuf);
2825
+ release(null, written);
2826
+ } catch (err) {
2827
+ release(err);
2828
+ }
2829
+ else {
2830
+ if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
2831
+ fs.write(this.fd, this._writingBuf, release);
2832
+ }
2833
+ }
2834
+ function actualClose(sonic) {
2835
+ if (-1 === sonic.fd) return void sonic.once('ready', actualClose.bind(null, sonic));
2836
+ if (void 0 !== sonic._periodicFlushTimer) clearInterval(sonic._periodicFlushTimer);
2837
+ sonic.destroyed = true;
2838
+ sonic._bufs = [];
2839
+ sonic._lens = [];
2840
+ assert('number' == typeof sonic.fd, `sonic.fd must be a number, got ${typeof sonic.fd}`);
2841
+ try {
2842
+ fs.fsync(sonic.fd, closeWrapped);
2843
+ } catch {}
2844
+ function closeWrapped() {
2845
+ if (1 !== sonic.fd && 2 !== sonic.fd) fs.close(sonic.fd, done);
2846
+ else done();
2847
+ }
2848
+ function done(err) {
2849
+ if (err) return void sonic.emit('error', err);
2850
+ if (sonic._ending && !sonic._writing) sonic.emit('finish');
2851
+ sonic.emit('close');
2852
+ }
2853
+ }
2854
+ SonicBoom.SonicBoom = SonicBoom;
2855
+ SonicBoom.default = SonicBoom;
2856
+ module1.exports = SonicBoom;
2857
+ }
2858
+ };
2859
+ var __webpack_module_cache__ = {};
2860
+ function __webpack_require__(moduleId) {
2861
+ var cachedModule = __webpack_module_cache__[moduleId];
2862
+ if (void 0 !== cachedModule) return cachedModule.exports;
2863
+ var module1 = __webpack_module_cache__[moduleId] = {
2864
+ exports: {}
2865
+ };
2866
+ __webpack_modules__[moduleId](module1, module1.exports, __webpack_require__);
2867
+ return module1.exports;
2868
+ }
2869
+ var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.1.2/node_modules/pino-pretty/index.js");
2870
+ module.exports = __webpack_exports__;