veloce-ts 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/cjs/src/errors/index.js +24 -28
- package/dist/cjs/src/errors/index.js.map +4 -43
- package/dist/cjs/src/index.js +57 -61
- package/dist/cjs/src/index.js.map +7 -46
- package/dist/cjs/src/middleware/index.js +23 -27
- package/dist/cjs/src/middleware/index.js.map +4 -43
- package/dist/cjs/src/plugins/index.js +43 -47
- package/dist/cjs/src/plugins/index.js.map +5 -44
- package/dist/cjs/src/testing/index.js +32 -36
- package/dist/cjs/src/testing/index.js.map +5 -44
- package/dist/esm/src/errors/index.js +24 -28
- package/dist/esm/src/errors/index.js.map +4 -43
- package/dist/esm/src/index.js +57 -61
- package/dist/esm/src/index.js.map +7 -46
- package/dist/esm/src/middleware/index.js +23 -27
- package/dist/esm/src/middleware/index.js.map +4 -43
- package/dist/esm/src/plugins/index.js +43 -47
- package/dist/esm/src/plugins/index.js.map +5 -44
- package/dist/esm/src/testing/index.js +32 -36
- package/dist/esm/src/testing/index.js.map +5 -44
- package/dist/types/core/application.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logging/logger.d.ts.map +1 -1
- package/dist/types/plugins/health.d.ts.map +1 -1
- package/package.json +20 -10
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.2] - 2026-03-27
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **HealthCheckPlugin:** checker display names are set with `Object.defineProperty` (with a fallback) so runtimes such as Bun do not throw when assigning `.name` on async checker functions.
|
|
14
|
+
- **Public API:** `@Req` is now exported from the main `veloce-ts` entry (it was implemented in `decorators/params` but missing from the package exports).
|
|
15
|
+
|
|
16
|
+
## [0.4.1] - 2026-03-27
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- `include()` in `VeloceTS` application no longer drops decorator-set route fields (e.g. `statusCode` from `@HttpCode`, `responseSchema` from `@ResponseSchema`) when registering controller routes.
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- New test suite: `tests/routing.test.ts`, `tests/validation.test.ts`, `tests/errors.test.ts`, `tests/di.test.ts` — 53 integration tests covering functional API, decorator routing, body/query validation, HTTP exceptions, and DI container.
|
|
23
|
+
- Console-based fallback logger: if `pino` is not installed, the framework now falls back silently to a `console`-based logger instead of crashing at startup.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- `pino`, `pino-pretty`, and `ioredis` moved from `dependencies` to `optionalDependencies`. They are no longer installed automatically, reducing the default install footprint by ~7 MB. Install them explicitly if needed (`bun add pino pino-pretty` / `bun add ioredis`).
|
|
27
|
+
- `winston` removed from `dependencies` entirely (it was listed but never used by the framework).
|
|
28
|
+
- `@types/ioredis` and `@types/pino` removed from `devDependencies` (no longer needed).
|
|
29
|
+
- Build threshold in `build.ts` updated from 100 KB to 600 KB to reflect the full framework scope.
|
|
30
|
+
- Core bundle reduced from 444 KB to 408 KB (minified ESM).
|
|
31
|
+
|
|
32
|
+
### Deprecated
|
|
33
|
+
- `FastAPITS` export: use `VeloceTS` or the shorter `Veloce` alias instead. `FastAPITS` will be removed in v1.0.0.
|
|
34
|
+
|
|
10
35
|
## [0.4.0] - 2026-03-27
|
|
11
36
|
|
|
12
37
|
Esta versión representa la mayor actualización desde el lanzamiento inicial. Se añadieron más de 25 mejoras nuevas distribuidas en tres oleadas de trabajo (alta, media y baja prioridad), cubriendo la cadena completa desde la generación de rutas hasta la documentación OpenAPI, el testing, el ORM y la CLI.
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
causes have become circular...`;let
|
|
3
|
-
caused by: `+r9(H,Y);else return $},n8=(Z)=>r9(Z,new Set),t9=(Z,Y,$)=>{if(!W1(Z))return"";let H=$?"":Z.message||"";if(Y.has(Z))return H+": ...";let G=R0(Z);if(G){Y.add(Z);let Q=typeof Z.cause==="function";return H+(Q?"":": ")+t9(G,Y,Q)}else return H},l8=(Z)=>t9(Z,new Set);e9.exports={isErrorLike:W1,getErrorCause:R0,stackWithCauses:n8,messageWithCauses:l8}});var V0=_((JQ,Y4)=>{var i8=Symbol("circular-ref-tag"),I1=Symbol("pino-raw-err-ref"),Z4=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[I1]},set:function(Z){this[I1]=Z}}});Object.defineProperty(Z4,I1,{writable:!0,value:{}});Y4.exports={pinoErrProto:Z4,pinoErrorSymbols:{seen:i8,rawSymbol:I1}}});var G4=_((XQ,H4)=>{H4.exports=z0;var{messageWithCauses:a8,stackWithCauses:o8,isErrorLike:$4}=A0(),{pinoErrProto:s8,pinoErrorSymbols:r8}=V0(),{seen:K0}=r8,{toString:t8}=Object.prototype;function z0(Z){if(!$4(Z))return Z;Z[K0]=void 0;let Y=Object.create(s8);if(Y.type=t8.call(Z.constructor)==="[object Function]"?Z.constructor.name:Z.name,Y.message=a8(Z),Y.stack=o8(Z),Array.isArray(Z.errors))Y.aggregateErrors=Z.errors.map(($)=>z0($));for(let $ in Z)if(Y[$]===void 0){let H=Z[$];if($4(H)){if($!=="cause"&&!Object.prototype.hasOwnProperty.call(H,K0))Y[$]=z0(H)}else Y[$]=H}return delete Z[K0],Y.raw=Z,Y}});var M4=_((UQ,Q4)=>{Q4.exports=C1;var{isErrorLike:F0}=A0(),{pinoErrProto:e8,pinoErrorSymbols:Z7}=V0(),{seen:E1}=Z7,{toString:Y7}=Object.prototype;function C1(Z){if(!F0(Z))return Z;Z[E1]=void 0;let Y=Object.create(e8);if(Y.type=Y7.call(Z.constructor)==="[object Function]"?Z.constructor.name:Z.name,Y.message=Z.message,Y.stack=Z.stack,Array.isArray(Z.errors))Y.aggregateErrors=Z.errors.map(($)=>C1($));if(F0(Z.cause)&&!Object.prototype.hasOwnProperty.call(Z.cause,E1))Y.cause=C1(Z.cause);for(let $ in Z)if(Y[$]===void 0){let H=Z[$];if(F0(H)){if(!Object.prototype.hasOwnProperty.call(H,E1))Y[$]=C1(H)}else Y[$]=H}return delete Z[E1],Y.raw=Z,Y}});var q4=_((qQ,U4)=>{U4.exports={mapHttpRequest:$7,reqSerializer:X4};var _0=Symbol("pino-raw-req-ref"),J4=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[_0]},set:function(Z){this[_0]=Z}}});Object.defineProperty(J4,_0,{writable:!0,value:{}});function X4(Z){let Y=Z.info||Z.socket,$=Object.create(J4);if($.id=typeof Z.id==="function"?Z.id():Z.id||(Z.info?Z.info.id:void 0),$.method=Z.method,Z.originalUrl)$.url=Z.originalUrl;else{let H=Z.path;$.url=typeof H==="string"?H:Z.url?Z.url.path||Z.url:void 0}if(Z.query)$.query=Z.query;if(Z.params)$.params=Z.params;return $.headers=Z.headers,$.remoteAddress=Y&&Y.remoteAddress,$.remotePort=Y&&Y.remotePort,$.raw=Z.raw||Z,$}function $7(Z){return{req:X4(Z)}}});var D4=_((wQ,W4)=>{W4.exports={mapHttpResponse:H7,resSerializer:B4};var T0=Symbol("pino-raw-res-ref"),w4=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[T0]},set:function(Z){this[T0]=Z}}});Object.defineProperty(w4,T0,{writable:!0,value:{}});function B4(Z){let Y=Object.create(w4);return Y.statusCode=Z.headersSent?Z.statusCode:null,Y.headers=Z.getHeaders?Z.getHeaders():Z._headers,Y.raw=Z,Y}function H7(Z){return{res:B4(Z)}}});var P0=_((BQ,N4)=>{var O0=G4(),G7=M4(),j1=q4(),x1=D4();N4.exports={err:O0,errWithCause:G7,mapHttpRequest:j1.mapHttpRequest,mapHttpResponse:x1.mapHttpResponse,req:j1.reqSerializer,res:x1.resSerializer,wrapErrorSerializer:function(Y){if(Y===O0)return Y;return function(H){return Y(O0(H))}},wrapRequestSerializer:function(Y){if(Y===j1.reqSerializer)return Y;return function(H){return Y(j1.reqSerializer(H))}},wrapResponseSerializer:function(Y){if(Y===x1.resSerializer)return Y;return function(H){return Y(x1.resSerializer(H))}}}});var I0=_((WQ,R4)=>{function Q7(Z,Y){return Y}R4.exports=function(){let Y=Error.prepareStackTrace;Error.prepareStackTrace=Q7;let $=Error().stack;if(Error.prepareStackTrace=Y,!Array.isArray($))return;let H=$.slice(2),G=[];for(let Q of H){if(!Q)continue;G.push(Q.getFileName())}return G}});var _4=_((DQ,F4)=>{function E0(Z){if(Z===null||typeof Z!=="object")return Z;if(Z instanceof Date)return new Date(Z.getTime());if(Z instanceof Array){let Y=[];for(let $=0;$<Z.length;$++)Y[$]=E0(Z[$]);return Y}if(typeof Z==="object"){let Y=Object.create(Object.getPrototypeOf(Z));for(let $ in Z)if(Object.prototype.hasOwnProperty.call(Z,$))Y[$]=E0(Z[$]);return Y}return Z}function A4(Z){let Y=[],$="",H=!1,G=!1,Q="";for(let M=0;M<Z.length;M++){let J=Z[M];if(!H&&J==="."){if($)Y.push($),$=""}else if(J==="["){if($)Y.push($),$="";H=!0}else if(J==="]"&&H)Y.push($),$="",H=!1,G=!1;else if((J==='"'||J==="'")&&H)if(!G)G=!0,Q=J;else if(J===Q)G=!1,Q="";else $+=J;else $+=J}if($)Y.push($);return Y}function V4(Z,Y,$){let H=Z;for(let Q=0;Q<Y.length-1;Q++){let M=Y[Q];if(typeof H!=="object"||H===null||!(M in H))return!1;if(typeof H[M]!=="object"||H[M]===null)return!1;H=H[M]}let G=Y[Y.length-1];if(G==="*"){if(Array.isArray(H))for(let Q=0;Q<H.length;Q++)H[Q]=$;else if(typeof H==="object"&&H!==null){for(let Q in H)if(Object.prototype.hasOwnProperty.call(H,Q))H[Q]=$}}else if(typeof H==="object"&&H!==null&&G in H&&Object.prototype.hasOwnProperty.call(H,G))H[G]=$;return!0}function K4(Z,Y){let $=Z;for(let G=0;G<Y.length-1;G++){let Q=Y[G];if(typeof $!=="object"||$===null||!(Q in $))return!1;if(typeof $[Q]!=="object"||$[Q]===null)return!1;$=$[Q]}let H=Y[Y.length-1];if(H==="*"){if(Array.isArray($))for(let G=0;G<$.length;G++)$[G]=void 0;else if(typeof $==="object"&&$!==null){for(let G in $)if(Object.prototype.hasOwnProperty.call($,G))delete $[G]}}else if(typeof $==="object"&&$!==null&&H in $&&Object.prototype.hasOwnProperty.call($,H))delete $[H];return!0}var S1=Symbol("PATH_NOT_FOUND");function M7(Z,Y){let $=Z;for(let H of Y){if($===null||$===void 0)return S1;if(typeof $!=="object"||$===null)return S1;if(!(H in $))return S1;$=$[H]}return $}function J7(Z,Y){let $=Z;for(let H of Y){if($===null||$===void 0)return;if(typeof $!=="object"||$===null)return;$=$[H]}return $}function X7(Z,Y,$,H=!1){for(let G of Y){let Q=A4(G);if(Q.includes("*"))z4(Z,Q,$,G,H);else if(H)K4(Z,Q);else{let M=M7(Z,Q);if(M===S1)continue;let J=typeof $==="function"?$(M,Q):$;V4(Z,Q,J)}}}function z4(Z,Y,$,H,G=!1){let Q=Y.indexOf("*");if(Q===Y.length-1){let M=Y.slice(0,-1),J=Z;for(let X of M){if(J===null||J===void 0)return;if(typeof J!=="object"||J===null)return;J=J[X]}if(Array.isArray(J))if(G)for(let X=0;X<J.length;X++)J[X]=void 0;else for(let X=0;X<J.length;X++){let U=[...M,X.toString()],B=typeof $==="function"?$(J[X],U):$;J[X]=B}else if(typeof J==="object"&&J!==null)if(G){let X=[];for(let U in J)if(Object.prototype.hasOwnProperty.call(J,U))X.push(U);for(let U of X)delete J[U]}else for(let X in J){let U=[...M,X],B=typeof $==="function"?$(J[X],U):$;J[X]=B}}else U7(Z,Y,$,Q,H,G)}function U7(Z,Y,$,H,G,Q=!1){let M=Y.slice(0,H),J=Y.slice(H+1),X=[];function U(B,q){if(q===M.length){if(Array.isArray(B))for(let D=0;D<B.length;D++)X[q]=D.toString(),U(B[D],q+1);else if(typeof B==="object"&&B!==null)for(let D in B)X[q]=D,U(B[D],q+1)}else if(q<M.length){let D=M[q];if(B&&typeof B==="object"&&B!==null&&D in B)X[q]=D,U(B[D],q+1)}else if(J.includes("*"))z4(B,J,typeof $==="function"?(W,w)=>{let A=[...X.slice(0,q),...w];return $(W,A)}:$,G,Q);else if(Q)K4(B,J);else{let D=typeof $==="function"?$(J7(B,J),[...X.slice(0,q),...J]):$;V4(B,J,D)}}if(M.length===0)U(Z,0);else{let B=Z;for(let q=0;q<M.length;q++){let D=M[q];if(B===null||B===void 0)return;if(typeof B!=="object"||B===null)return;B=B[D],X[q]=D}if(B!==null&&B!==void 0)U(B,M.length)}}function q7(Z){if(Z.length===0)return null;let Y=new Map;for(let $ of Z){let H=A4($),G=Y;for(let Q=0;Q<H.length;Q++){let M=H[Q];if(!G.has(M))G.set(M,new Map);G=G.get(M)}}return Y}function w7(Z,Y){if(!Y)return Z;function $(H,G,Q=0){if(!G||G.size===0)return H;if(H===null||typeof H!=="object")return H;if(H instanceof Date)return new Date(H.getTime());if(Array.isArray(H)){let J=[];for(let X=0;X<H.length;X++){let U=X.toString();if(G.has(U)||G.has("*"))J[X]=$(H[X],G.get(U)||G.get("*"));else J[X]=H[X]}return J}let M=Object.create(Object.getPrototypeOf(H));for(let J in H)if(Object.prototype.hasOwnProperty.call(H,J))if(G.has(J)||G.has("*"))M[J]=$(H[J],G.get(J)||G.get("*"));else M[J]=H[J];return M}return $(Z,Y)}function B7(Z){if(typeof Z!=="string")throw Error("Paths must be (non-empty) strings");if(Z==="")throw Error("Invalid redaction path ()");if(Z.includes(".."))throw Error(`Invalid redaction path (${Z})`);if(Z.includes(","))throw Error(`Invalid redaction path (${Z})`);let Y=0,$=!1,H="";for(let G=0;G<Z.length;G++){let Q=Z[G];if((Q==='"'||Q==="'")&&Y>0){if(!$)$=!0,H=Q;else if(Q===H)$=!1,H=""}else if(Q==="["&&!$)Y++;else if(Q==="]"&&!$){if(Y--,Y<0)throw Error(`Invalid redaction path (${Z})`)}}if(Y!==0)throw Error(`Invalid redaction path (${Z})`)}function W7(Z){if(!Array.isArray(Z))throw TypeError("paths must be an array");for(let Y of Z)B7(Y)}function D7(Z={}){let{paths:Y=[],censor:$="[REDACTED]",serialize:H=JSON.stringify,strict:G=!0,remove:Q=!1}=Z;W7(Y);let M=q7(Y);return function(X){if(G&&(X===null||typeof X!=="object")){if(X===null||X===void 0)return H?H(X):X;if(typeof X!=="object")return H?H(X):X}let U=w7(X,M),B=X,q=$;if(typeof $==="function")q=$;if(X7(U,Y,q,Q),H===!1)return U.restore=function(){return E0(B)},U;if(typeof H==="function")return H(U);return JSON.stringify(U)}}F4.exports=D7});var G1=_((NQ,T4)=>{var N7=Symbol("pino.setLevel"),R7=Symbol("pino.getLevel"),A7=Symbol("pino.levelVal"),V7=Symbol("pino.levelComp"),K7=Symbol("pino.useLevelLabels"),z7=Symbol("pino.useOnlyCustomLevels"),F7=Symbol("pino.mixin"),_7=Symbol("pino.lsCache"),T7=Symbol("pino.chindings"),O7=Symbol("pino.asJson"),P7=Symbol("pino.write"),I7=Symbol("pino.redactFmt"),E7=Symbol("pino.time"),C7=Symbol("pino.timeSliceIndex"),j7=Symbol("pino.stream"),x7=Symbol("pino.stringify"),S7=Symbol("pino.stringifySafe"),L7=Symbol("pino.stringifiers"),h7=Symbol("pino.end"),b7=Symbol("pino.formatOpts"),f7=Symbol("pino.messageKey"),k7=Symbol("pino.errorKey"),y7=Symbol("pino.nestedKey"),g7=Symbol("pino.nestedKeyStr"),v7=Symbol("pino.mixinMergeStrategy"),d7=Symbol("pino.msgPrefix"),u7=Symbol("pino.wildcardFirst"),c7=Symbol.for("pino.serializers"),m7=Symbol.for("pino.formatters"),p7=Symbol.for("pino.hooks"),n7=Symbol.for("pino.metadata");T4.exports={setLevelSym:N7,getLevelSym:R7,levelValSym:A7,levelCompSym:V7,useLevelLabelsSym:K7,mixinSym:F7,lsCacheSym:_7,chindingsSym:T7,asJsonSym:O7,writeSym:P7,serializersSym:c7,redactFmtSym:I7,timeSym:E7,timeSliceIndexSym:C7,streamSym:j7,stringifySym:x7,stringifySafeSym:S7,stringifiersSym:L7,endSym:h7,formatOptsSym:b7,messageKeySym:f7,errorKeySym:k7,nestedKeySym:y7,wildcardFirstSym:u7,needsMetadataGsym:n7,useOnlyCustomLevelsSym:z7,formattersSym:m7,hooksSym:p7,nestedKeyStrSym:g7,mixinMergeStrategySym:v7,msgPrefixSym:d7}});var j0=_((RQ,P4)=>{var O4=_4(),{redactFmtSym:l7,wildcardFirstSym:L1}=G1(),C0=/[^.[\]]+|\[([^[\]]*?)\]/g;function i7(Z,Y){let{paths:$,censor:H,remove:G}=a7(Z),Q=$.reduce((X,U)=>{C0.lastIndex=0;let B=C0.exec(U),q=C0.exec(U),D=B[1]!==void 0?B[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):B[0];if(D==="*")D=L1;if(q===null)return X[D]=null,X;if(X[D]===null)return X;let{index:W}=q,w=`${U.substr(W,U.length-1)}`;if(X[D]=X[D]||[],D!==L1&&X[D].length===0)X[D].push(...X[L1]||[]);if(D===L1)Object.keys(X).forEach(function(A){if(X[A])X[A].push(w)});return X[D].push(w),X},{}),M={[l7]:O4({paths:$,censor:H,serialize:Y,strict:!1,remove:G})},J=(...X)=>{return typeof H==="function"?Y(H(...X)):Y(H)};return[...Object.keys(Q),...Object.getOwnPropertySymbols(Q)].reduce((X,U)=>{if(Q[U]===null)X[U]=(B)=>J(B,[U]);else{let B=typeof H==="function"?(q,D)=>{return H(q,[U,...D])}:H;X[U]=O4({paths:Q[U],censor:B,serialize:Y,strict:!1,remove:G})}return X},M)}function a7(Z){if(Array.isArray(Z))return Z={paths:Z,censor:"[Redacted]"},Z;let{paths:Y,censor:$="[Redacted]",remove:H}=Z;if(Array.isArray(Y)===!1)throw Error("pino – redact must contain an array of strings");if(H===!0)$=void 0;return{paths:Y,censor:$,remove:H}}P4.exports=i7});var C4=_((AQ,E4)=>{var o7=()=>"",s7=()=>`,"time":${Date.now()}`,r7=()=>`,"time":${Math.round(Date.now()/1000)}`,t7=()=>`,"time":"${new Date(Date.now()).toISOString()}"`,e7=1000000n,I4=1000000000n,Z6=BigInt(Date.now())*e7,Y6=process.hrtime.bigint(),$6=()=>{let Z=process.hrtime.bigint()-Y6,Y=Z6+Z,$=Y/I4,H=Y%I4,G=Number($*1000n+H/1000000n),Q=new Date(G),M=Q.getUTCFullYear(),J=(Q.getUTCMonth()+1).toString().padStart(2,"0"),X=Q.getUTCDate().toString().padStart(2,"0"),U=Q.getUTCHours().toString().padStart(2,"0"),B=Q.getUTCMinutes().toString().padStart(2,"0"),q=Q.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${M}-${J}-${X}T${U}:${B}:${q}.${H.toString().padStart(9,"0")}Z"`};E4.exports={nullTime:o7,epochTime:s7,unixTime:r7,isoTime:t7,isoTimeNano:$6}});var x4=_((VQ,j4)=>{function H6(Z){try{return JSON.stringify(Z)}catch(Y){return'"[Circular]"'}}j4.exports=G6;function G6(Z,Y,$){var H=$&&$.stringify||H6,G=1;if(typeof Z==="object"&&Z!==null){var Q=Y.length+G;if(Q===1)return Z;var M=Array(Q);M[0]=H(Z);for(var J=1;J<Q;J++)M[J]=H(Y[J]);return M.join(" ")}if(typeof Z!=="string")return Z;var X=Y.length;if(X===0)return Z;var U="",B=1-G,q=-1,D=Z&&Z.length||0;for(var W=0;W<D;){if(Z.charCodeAt(W)===37&&W+1<D){switch(q=q>-1?q:0,Z.charCodeAt(W+1)){case 100:case 102:if(B>=X)break;if(Y[B]==null)break;if(q<W)U+=Z.slice(q,W);U+=Number(Y[B]),q=W+2,W++;break;case 105:if(B>=X)break;if(Y[B]==null)break;if(q<W)U+=Z.slice(q,W);U+=Math.floor(Number(Y[B])),q=W+2,W++;break;case 79:case 111:case 106:if(B>=X)break;if(Y[B]===void 0)break;if(q<W)U+=Z.slice(q,W);var w=typeof Y[B];if(w==="string"){U+="'"+Y[B]+"'",q=W+2,W++;break}if(w==="function"){U+=Y[B].name||"<anonymous>",q=W+2,W++;break}U+=H(Y[B]),q=W+2,W++;break;case 115:if(B>=X)break;if(q<W)U+=Z.slice(q,W);U+=String(Y[B]),q=W+2,W++;break;case 37:if(q<W)U+=Z.slice(q,W);U+="%",q=W+2,W++,B--;break}++B}++W}if(q===-1)return Z;else if(q<D)U+=Z.slice(q);return U}});var S0=_((KQ,x0)=>{if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let Y=function($){if(($>0&&$<1/0)===!1){if(typeof $!=="number"&&typeof $!=="bigint")throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(Z,0,0,Number($))},Z=new Int32Array(new SharedArrayBuffer(4));x0.exports=Y}else{let Z=function(Y){if((Y>0&&Y<1/0)===!1){if(typeof Y!=="number"&&typeof Y!=="bigint")throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let H=Date.now()+Number(Y);while(H>Date.now());};x0.exports=Z}});var b0=_((zQ,f4)=>{var b=require("fs"),Q6=require("events"),M6=require("util").inherits,S4=require("path"),h0=S0(),J6=require("assert"),h1=Buffer.allocUnsafe(0),[X6,U6]=(process.versions.node||"0.0").split(".").map(Number),q6=X6>=22&&U6>=7;function L4(Z,Y){Y._opening=!0,Y._writing=!0,Y._asyncDrainScheduled=!1;function $(Q,M){if(Q){if(Y._reopening=!1,Y._writing=!1,Y._opening=!1,Y.sync)process.nextTick(()=>{if(Y.listenerCount("error")>0)Y.emit("error",Q)});else Y.emit("error",Q);return}let J=Y._reopening;if(Y.fd=M,Y.file=Z,Y._reopening=!1,Y._opening=!1,Y._writing=!1,Y.sync)process.nextTick(()=>Y.emit("ready"));else Y.emit("ready");if(Y.destroyed)return;if(!Y._writing&&Y._len>Y.minLength||Y._flushPending)Y._actualWrite();else if(J)process.nextTick(()=>Y.emit("drain"))}let H=Y.append?"a":"w",G=Y.mode;if(Y.sync)try{if(Y.mkdir)b.mkdirSync(S4.dirname(Z),{recursive:!0});let Q=b.openSync(Z,H,G);$(null,Q)}catch(Q){throw $(Q),Q}else if(Y.mkdir)b.mkdir(S4.dirname(Z),{recursive:!0},(Q)=>{if(Q)return $(Q);b.open(Z,H,G,$)});else b.open(Z,H,G,$)}function d(Z){if(!(this instanceof d))return new d(Z);let{fd:Y,dest:$,minLength:H,maxLength:G,maxWrite:Q,periodicFlush:M,sync:J,append:X=!0,mkdir:U,retryEAGAIN:B,fsync:q,contentMode:D,mode:W}=Z||{};Y=Y||$,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(H||0,16387),this.file=null,this.destroyed=!1,this.minLength=H||0,this.maxLength=G||0,this.maxWrite=Q||16384,this._periodicFlush=M||0,this._periodicFlushTimer=void 0,this.sync=J||!1,this.writable=!0,this._fsync=q||!1,this.append=X||!1,this.mode=W,this.retryEAGAIN=B||(()=>!0),this.mkdir=U||!1;let w,A;if(D==="buffer")this._writingBuf=h1,this.write=W6,this.flush=N6,this.flushSync=A6,this._actualWrite=K6,w=()=>b.writeSync(this.fd,this._writingBuf),A=()=>b.write(this.fd,this._writingBuf,this.release);else if(D===void 0||D==="utf8")this._writingBuf="",this.write=B6,this.flush=D6,this.flushSync=R6,this._actualWrite=V6,w=()=>b.writeSync(this.fd,this._writingBuf,"utf8"),A=()=>b.write(this.fd,this._writingBuf,"utf8",this.release);else throw Error(`SonicBoom supports "utf8" and "buffer", but passed ${D}`);if(typeof Y==="number")this.fd=Y,process.nextTick(()=>this.emit("ready"));else if(typeof Y==="string")L4(Y,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);if(this.release=(R,V)=>{if(R){if((R.code==="EAGAIN"||R.code==="EBUSY")&&this.retryEAGAIN(R,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{h0(100),this.release(void 0,0)}catch(T){this.release(T)}else setTimeout(A,100);else this._writing=!1,this.emit("error",R);return}this.emit("write",V);let K=L0(this._writingBuf,this._len,V);if(this._len=K.len,this._writingBuf=K.writingBuf,this._writingBuf.length){if(!this.sync){A();return}try{do{let T=w(),I=L0(this._writingBuf,this._len,T);this._len=I.len,this._writingBuf=I.writingBuf}while(this._writingBuf.length)}catch(T){this.release(T);return}}if(this._fsync)b.fsyncSync(this.fd);let z=this._len;if(this._reopening)this._writing=!1,this._reopening=!1,this.reopen();else if(z>this.minLength)this._actualWrite();else if(this._ending)if(z>0)this._actualWrite();else this._writing=!1,b1(this);else if(this._writing=!1,this.sync){if(!this._asyncDrainScheduled)this._asyncDrainScheduled=!0,process.nextTick(w6,this)}else this.emit("drain")},this.on("newListener",function(R){if(R==="drain")this._asyncDrainScheduled=!1}),this._periodicFlush!==0)this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref()}function L0(Z,Y,$){if(typeof Z==="string"&&Buffer.byteLength(Z)!==$)$=Buffer.from(Z).subarray(0,$).toString().length;return Y=Math.max(Y-$,0),Z=Z.slice($),{writingBuf:Z,len:Y}}function w6(Z){if(!(Z.listenerCount("drain")>0))return;Z._asyncDrainScheduled=!1,Z.emit("drain")}M6(d,Q6);function h4(Z,Y){if(Z.length===0)return h1;if(Z.length===1)return Z[0];return Buffer.concat(Z,Y)}function B6(Z){if(this.destroyed)throw Error("SonicBoom destroyed");let Y=this._len+Z.length,$=this._bufs;if(this.maxLength&&Y>this.maxLength)return this.emit("drop",Z),this._len<this._hwm;if($.length===0||$[$.length-1].length+Z.length>this.maxWrite)$.push(""+Z);else $[$.length-1]+=Z;if(this._len=Y,!this._writing&&this._len>=this.minLength)this._actualWrite();return this._len<this._hwm}function W6(Z){if(this.destroyed)throw Error("SonicBoom destroyed");let Y=this._len+Z.length,$=this._bufs,H=this._lens;if(this.maxLength&&Y>this.maxLength)return this.emit("drop",Z),this._len<this._hwm;if($.length===0||H[H.length-1]+Z.length>this.maxWrite)$.push([Z]),H.push(Z.length);else $[$.length-1].push(Z),H[H.length-1]+=Z.length;if(this._len=Y,!this._writing&&this._len>=this.minLength)this._actualWrite();return this._len<this._hwm}function b4(Z){this._flushPending=!0;let Y=()=>{if(!this._fsync)try{b.fsync(this.fd,(H)=>{this._flushPending=!1,Z(H)})}catch(H){Z(H)}else this._flushPending=!1,Z();this.off("error",$)},$=(H)=>{this._flushPending=!1,Z(H),this.off("drain",Y)};this.once("drain",Y),this.once("error",$)}function D6(Z){if(Z!=null&&typeof Z!=="function")throw Error("flush cb must be a function");if(this.destroyed){let Y=Error("SonicBoom destroyed");if(Z){Z(Y);return}throw Y}if(this.minLength<=0){Z?.();return}if(Z)b4.call(this,Z);if(this._writing)return;if(this._bufs.length===0)this._bufs.push("");this._actualWrite()}function N6(Z){if(Z!=null&&typeof Z!=="function")throw Error("flush cb must be a function");if(this.destroyed){let Y=Error("SonicBoom destroyed");if(Z){Z(Y);return}throw Y}if(this.minLength<=0){Z?.();return}if(Z)b4.call(this,Z);if(this._writing)return;if(this._bufs.length===0)this._bufs.push([]),this._lens.push(0);this._actualWrite()}d.prototype.reopen=function(Z){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(Z)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(Z)this.file=Z;if(this._reopening=!0,this._writing)return;let Y=this.fd;this.once("ready",()=>{if(Y!==this.fd)b.close(Y,($)=>{if($)return this.emit("error",$)})}),L4(this.file,this)};d.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(this._ending)return;if(this._ending=!0,this._writing)return;if(this._len>0&&this.fd>=0)this._actualWrite();else b1(this)};function R6(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");if(!this._writing&&this._writingBuf.length>0)this._bufs.unshift(this._writingBuf),this._writingBuf="";let Z="";while(this._bufs.length||Z){if(Z.length<=0)Z=this._bufs[0];try{let Y=b.writeSync(this.fd,Z,"utf8"),$=L0(Z,this._len,Y);if(Z=$.writingBuf,this._len=$.len,Z.length<=0)this._bufs.shift()}catch(Y){if((Y.code==="EAGAIN"||Y.code==="EBUSY")&&!this.retryEAGAIN(Y,Z.length,this._len-Z.length))throw Y;h0(100)}}try{b.fsyncSync(this.fd)}catch{}}function A6(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");if(!this._writing&&this._writingBuf.length>0)this._bufs.unshift([this._writingBuf]),this._writingBuf=h1;let Z=h1;while(this._bufs.length||Z.length){if(Z.length<=0)Z=h4(this._bufs[0],this._lens[0]);try{let Y=b.writeSync(this.fd,Z);if(Z=Z.subarray(Y),this._len=Math.max(this._len-Y,0),Z.length<=0)this._bufs.shift(),this._lens.shift()}catch(Y){if((Y.code==="EAGAIN"||Y.code==="EBUSY")&&!this.retryEAGAIN(Y,Z.length,this._len-Z.length))throw Y;h0(100)}}}d.prototype.destroy=function(){if(this.destroyed)return;b1(this)};function V6(){let Z=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let Y=b.writeSync(this.fd,this._writingBuf,"utf8");Z(null,Y)}catch(Y){Z(Y)}else b.write(this.fd,this._writingBuf,"utf8",Z)}function K6(){let Z=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:h4(this._bufs.shift(),this._lens.shift()),this.sync)try{let Y=b.writeSync(this.fd,this._writingBuf);Z(null,Y)}catch(Y){Z(Y)}else{if(q6)this._writingBuf=Buffer.from(this._writingBuf);b.write(this.fd,this._writingBuf,Z)}}function b1(Z){if(Z.fd===-1){Z.once("ready",b1.bind(null,Z));return}if(Z._periodicFlushTimer!==void 0)clearInterval(Z._periodicFlushTimer);Z.destroyed=!0,Z._bufs=[],Z._lens=[],J6(typeof Z.fd==="number",`sonic.fd must be a number, got ${typeof Z.fd}`);try{b.fsync(Z.fd,Y)}catch{}function Y(){if(Z.fd!==1&&Z.fd!==2)b.close(Z.fd,$);else $()}function $(H){if(H){Z.emit("error",H);return}if(Z._ending&&!Z._writing)Z.emit("finish");Z.emit("close")}}d.SonicBoom=d;d.default=d;f4.exports=d});var f1=_((FQ,d4)=>{var u={exit:[],beforeExit:[]},k4={exit:_6,beforeExit:T6},Q1;function z6(){if(Q1===void 0)Q1=new FinalizationRegistry(O6)}function F6(Z){if(u[Z].length>0)return;process.on(Z,k4[Z])}function y4(Z){if(u[Z].length>0)return;if(process.removeListener(Z,k4[Z]),u.exit.length===0&&u.beforeExit.length===0)Q1=void 0}function _6(){g4("exit")}function T6(){g4("beforeExit")}function g4(Z){for(let Y of u[Z]){let $=Y.deref(),H=Y.fn;if($!==void 0)H($,Z)}u[Z]=[]}function O6(Z){for(let Y of["exit","beforeExit"]){let $=u[Y].indexOf(Z);u[Y].splice($,$+1),y4(Y)}}function v4(Z,Y,$){if(Y===void 0)throw Error("the object can't be undefined");F6(Z);let H=new WeakRef(Y);H.fn=$,z6(),Q1.register(Y,H),u[Z].push(H)}function P6(Z,Y){v4("exit",Z,Y)}function I6(Z,Y){v4("beforeExit",Z,Y)}function E6(Z){if(Q1===void 0)return;Q1.unregister(Z);for(let Y of["exit","beforeExit"])u[Y]=u[Y].filter(($)=>{let H=$.deref();return H&&H!==Z}),y4(Y)}d4.exports={register:P6,registerBeforeExit:I6,unregister:E6}});var u4=_((_Q,C6)=>{C6.exports={name:"thread-stream",version:"3.1.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0","@yao-pkg/pkg":"^5.11.5",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^5.3.2","why-is-node-running":"^2.2.2"},scripts:{build:"tsc --noEmit",test:'standard && npm run build && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts',"test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*","test/syntax-error.mjs"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var m4=_((TQ,c4)=>{function j6(Z,Y,$,H,G){let Q=Date.now()+H,M=Atomics.load(Z,Y);if(M===$){G(null,"ok");return}let J=M,X=(U)=>{if(Date.now()>Q)G(null,"timed-out");else setTimeout(()=>{if(J=M,M=Atomics.load(Z,Y),M===J)X(U>=1000?1000:U*2);else if(M===$)G(null,"ok");else G(null,"not-equal")},U)};X(1)}function x6(Z,Y,$,H,G){let Q=Date.now()+H,M=Atomics.load(Z,Y);if(M!==$){G(null,"ok");return}let J=(X)=>{if(Date.now()>Q)G(null,"timed-out");else setTimeout(()=>{if(M=Atomics.load(Z,Y),M!==$)G(null,"ok");else J(X>=1000?1000:X*2)},X)};J(1)}c4.exports={wait:j6,waitDiff:x6}});var n4=_((OQ,p4)=>{p4.exports={WRITE_INDEX:4,READ_INDEX:8}});var r4=_((PQ,s4)=>{var __dirname="C:\\Users\\alfredo\\Desktop\\veloce-ts-proyecto\\Veloce-TS\\node_modules\\thread-stream",{version:S6}=u4(),{EventEmitter:L6}=require("events"),{Worker:h6}=require("worker_threads"),{join:b6}=require("path"),{pathToFileURL:f6}=require("url"),{wait:k6}=m4(),{WRITE_INDEX:y,READ_INDEX:c}=n4(),y6=require("buffer"),g6=require("assert"),N=Symbol("kImpl"),v6=y6.constants.MAX_STRING_LENGTH;class y1{constructor(Z){this._value=Z}deref(){return this._value}}class k0{register(){}unregister(){}}var d6=process.env.NODE_V8_COVERAGE?k0:global.FinalizationRegistry||k0,u6=process.env.NODE_V8_COVERAGE?y1:global.WeakRef||y1,l4=new d6((Z)=>{if(Z.exited)return;Z.terminate()});function c6(Z,Y){let{filename:$,workerData:H}=Y,Q=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||b6(__dirname,"lib","worker.js"),M=new h6(Q,{...Y.workerOpts,trackUnmanagedFds:!1,workerData:{filename:$.indexOf("file://")===0?$:f6($).href,dataBuf:Z[N].dataBuf,stateBuf:Z[N].stateBuf,workerData:{$context:{threadStreamVersion:S6},...H}}});return M.stream=new y1(Z),M.on("message",m6),M.on("exit",a4),l4.register(Z,M),M}function i4(Z){if(g6(!Z[N].sync),Z[N].needDrain)Z[N].needDrain=!1,Z.emit("drain")}function k1(Z){let Y=Atomics.load(Z[N].state,y),$=Z[N].data.length-Y;if($>0){if(Z[N].buf.length===0){if(Z[N].flushing=!1,Z[N].ending)v0(Z);else if(Z[N].needDrain)process.nextTick(i4,Z);return}let H=Z[N].buf.slice(0,$),G=Buffer.byteLength(H);if(G<=$)Z[N].buf=Z[N].buf.slice($),g1(Z,H,k1.bind(null,Z));else Z.flush(()=>{if(Z.destroyed)return;Atomics.store(Z[N].state,c,0),Atomics.store(Z[N].state,y,0);while(G>Z[N].data.length)$=$/2,H=Z[N].buf.slice(0,$),G=Buffer.byteLength(H);Z[N].buf=Z[N].buf.slice($),g1(Z,H,k1.bind(null,Z))})}else if($===0){if(Y===0&&Z[N].buf.length===0)return;Z.flush(()=>{Atomics.store(Z[N].state,c,0),Atomics.store(Z[N].state,y,0),k1(Z)})}else m(Z,Error("overwritten"))}function m6(Z){let Y=this.stream.deref();if(Y===void 0){this.exited=!0,this.terminate();return}switch(Z.code){case"READY":this.stream=new u6(Y),Y.flush(()=>{Y[N].ready=!0,Y.emit("ready")});break;case"ERROR":m(Y,Z.err);break;case"EVENT":if(Array.isArray(Z.args))Y.emit(Z.name,...Z.args);else Y.emit(Z.name,Z.args);break;case"WARNING":process.emitWarning(Z.err);break;default:m(Y,Error("this should not happen: "+Z.code))}}function a4(Z){let Y=this.stream.deref();if(Y===void 0)return;l4.unregister(Y),Y.worker.exited=!0,Y.worker.off("exit",a4),m(Y,Z!==0?Error("the worker thread exited"):null)}class o4 extends L6{constructor(Z={}){super();if(Z.bufferSize<4)throw Error("bufferSize must at least fit a 4-byte utf-8 char");this[N]={},this[N].stateBuf=new SharedArrayBuffer(128),this[N].state=new Int32Array(this[N].stateBuf),this[N].dataBuf=new SharedArrayBuffer(Z.bufferSize||4194304),this[N].data=Buffer.from(this[N].dataBuf),this[N].sync=Z.sync||!1,this[N].ending=!1,this[N].ended=!1,this[N].needDrain=!1,this[N].destroyed=!1,this[N].flushing=!1,this[N].ready=!1,this[N].finished=!1,this[N].errored=null,this[N].closed=!1,this[N].buf="",this.worker=c6(this,Z),this.on("message",(Y,$)=>{this.worker.postMessage(Y,$)})}write(Z){if(this[N].destroyed)return y0(this,Error("the worker has exited")),!1;if(this[N].ending)return y0(this,Error("the worker is ending")),!1;if(this[N].flushing&&this[N].buf.length+Z.length>=v6)try{f0(this),this[N].flushing=!0}catch(Y){return m(this,Y),!1}if(this[N].buf+=Z,this[N].sync)try{return f0(this),!0}catch(Y){return m(this,Y),!1}if(!this[N].flushing)this[N].flushing=!0,setImmediate(k1,this);return this[N].needDrain=this[N].data.length-this[N].buf.length-Atomics.load(this[N].state,y)<=0,!this[N].needDrain}end(){if(this[N].destroyed)return;this[N].ending=!0,v0(this)}flush(Z){if(this[N].destroyed){if(typeof Z==="function")process.nextTick(Z,Error("the worker has exited"));return}let Y=Atomics.load(this[N].state,y);k6(this[N].state,c,Y,1/0,($,H)=>{if($){m(this,$),process.nextTick(Z,$);return}if(H==="not-equal"){this.flush(Z);return}process.nextTick(Z)})}flushSync(){if(this[N].destroyed)return;f0(this),g0(this)}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[N].ready}get destroyed(){return this[N].destroyed}get closed(){return this[N].closed}get writable(){return!this[N].destroyed&&!this[N].ending}get writableEnded(){return this[N].ending}get writableFinished(){return this[N].finished}get writableNeedDrain(){return this[N].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[N].errored}}function y0(Z,Y){setImmediate(()=>{Z.emit("error",Y)})}function m(Z,Y){if(Z[N].destroyed)return;if(Z[N].destroyed=!0,Y)Z[N].errored=Y,y0(Z,Y);if(!Z.worker.exited)Z.worker.terminate().catch(()=>{}).then(()=>{Z[N].closed=!0,Z.emit("close")});else setImmediate(()=>{Z[N].closed=!0,Z.emit("close")})}function g1(Z,Y,$){let H=Atomics.load(Z[N].state,y),G=Buffer.byteLength(Y);return Z[N].data.write(Y,H),Atomics.store(Z[N].state,y,H+G),Atomics.notify(Z[N].state,y),$(),!0}function v0(Z){if(Z[N].ended||!Z[N].ending||Z[N].flushing)return;Z[N].ended=!0;try{Z.flushSync();let Y=Atomics.load(Z[N].state,c);Atomics.store(Z[N].state,y,-1),Atomics.notify(Z[N].state,y);let $=0;while(Y!==-1){if(Atomics.wait(Z[N].state,c,Y,1000),Y=Atomics.load(Z[N].state,c),Y===-2){m(Z,Error("end() failed"));return}if(++$===10){m(Z,Error("end() took too long (10s)"));return}}process.nextTick(()=>{Z[N].finished=!0,Z.emit("finish")})}catch(Y){m(Z,Y)}}function f0(Z){let Y=()=>{if(Z[N].ending)v0(Z);else if(Z[N].needDrain)process.nextTick(i4,Z)};Z[N].flushing=!1;while(Z[N].buf.length!==0){let $=Atomics.load(Z[N].state,y),H=Z[N].data.length-$;if(H===0){g0(Z),Atomics.store(Z[N].state,c,0),Atomics.store(Z[N].state,y,0);continue}else if(H<0)throw Error("overwritten");let G=Z[N].buf.slice(0,H),Q=Buffer.byteLength(G);if(Q<=H)Z[N].buf=Z[N].buf.slice(H),g1(Z,G,Y);else{g0(Z),Atomics.store(Z[N].state,c,0),Atomics.store(Z[N].state,y,0);while(Q>Z[N].buf.length)H=H/2,G=Z[N].buf.slice(0,H),Q=Buffer.byteLength(G);Z[N].buf=Z[N].buf.slice(H),g1(Z,G,Y)}}}function g0(Z){if(Z[N].flushing)throw Error("unable to flush while flushing");let Y=Atomics.load(Z[N].state,y),$=0;while(!0){let H=Atomics.load(Z[N].state,c);if(H===-2)throw Error("_flushSync failed");if(H!==Y)Atomics.wait(Z[N].state,c,H,1000);else break;if(++$===10)throw Error("_flushSync took too long (10s)")}}s4.exports=o4});var c0=_((IQ,t4)=>{var __dirname="C:\\Users\\alfredo\\Desktop\\veloce-ts-proyecto\\Veloce-TS\\node_modules\\pino\\lib",{createRequire:p6}=require("module"),n6=I0(),{join:d0,isAbsolute:l6,sep:i6}=require("node:path"),a6=S0(),u0=f1(),o6=r4();function s6(Z){u0.register(Z,t6),u0.registerBeforeExit(Z,e6),Z.on("close",function(){u0.unregister(Z)})}function r6(Z,Y,$,H){let G=new o6({filename:Z,workerData:Y,workerOpts:$,sync:H});G.on("ready",Q),G.on("close",function(){process.removeListener("exit",M)}),process.on("exit",M);function Q(){if(process.removeListener("exit",M),G.unref(),$.autoEnd!==!1)s6(G)}function M(){if(G.closed)return;G.flushSync(),a6(100),G.end()}return G}function t6(Z){Z.ref(),Z.flushSync(),Z.end(),Z.once("close",function(){Z.unref()})}function e6(Z){Z.flushSync()}function ZZ(Z){let{pipeline:Y,targets:$,levels:H,dedupe:G,worker:Q={},caller:M=n6(),sync:J=!1}=Z,X={...Z.options},U=typeof M==="string"?[M]:M,B="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},q=Z.target;if(q&&$)throw Error("only one of target or targets can be specified");if($)q=B["pino-worker"]||d0(__dirname,"worker.js"),X.targets=$.filter((W)=>W.target).map((W)=>{return{...W,target:D(W.target)}}),X.pipelines=$.filter((W)=>W.pipeline).map((W)=>{return W.pipeline.map((w)=>{return{...w,level:W.level,target:D(w.target)}})});else if(Y)q=B["pino-worker"]||d0(__dirname,"worker.js"),X.pipelines=[Y.map((W)=>{return{...W,target:D(W.target)}})];if(H)X.levels=H;if(G)X.dedupe=G;return X.pinoWillSendConfig=!0,r6(D(q),X,Q,J);function D(W){if(W=B[W]||W,l6(W)||W.indexOf("file://")===0)return W;if(W==="pino/file")return d0(__dirname,"..","file.js");let w;for(let A of U)try{let R=A==="node:repl"?process.cwd()+i6:A;w=p6(R).resolve(W);break}catch(R){continue}if(!w)throw Error(`unable to determine transport target for "${W}"`);return w}}t4.exports=ZZ});var u1=_((EQ,w2)=>{var YZ=require("node:diagnostics_channel"),e4=x4(),{mapHttpRequest:$Z,mapHttpResponse:HZ}=P0(),p0=b0(),Z2=f1(),{lsCacheSym:GZ,chindingsSym:Q2,writeSym:Y2,serializersSym:M2,formatOptsSym:$2,endSym:QZ,stringifiersSym:J2,stringifySym:X2,stringifySafeSym:n0,wildcardFirstSym:U2,nestedKeySym:MZ,formattersSym:q2,messageKeySym:JZ,errorKeySym:XZ,nestedKeyStrSym:UZ,msgPrefixSym:v1}=G1(),{isMainThread:qZ}=require("worker_threads"),wZ=c0(),H2=YZ.tracingChannel("pino_asJson");function M1(){}function BZ(Z,Y){if(!Y)return $;return function(...G){Y.call(this,G,$,Z)};function $(H,...G){if(typeof H==="object"){let Q=H;if(H!==null){if(H.method&&H.headers&&H.socket)H=$Z(H);else if(typeof H.setHeader==="function")H=HZ(H)}let M;if(Q===null&&G.length===0)M=[null];else Q=G.shift(),M=G;if(typeof this[v1]==="string"&&Q!==void 0&&Q!==null)Q=this[v1]+Q;this[Y2](H,e4(Q,M,this[$2]),Z)}else{let Q=H===void 0?G.shift():H;if(typeof this[v1]==="string"&&Q!==void 0&&Q!==null)Q=this[v1]+Q;this[Y2](null,e4(Q,G,this[$2]),Z)}}}function m0(Z){let Y="",$=0,H=!1,G=255,Q=Z.length;if(Q>100)return JSON.stringify(Z);for(var M=0;M<Q&&G>=32;M++)if(G=Z.charCodeAt(M),G===34||G===92)Y+=Z.slice($,M)+"\\",$=M,H=!0;if(!H)Y=Z;else Y+=Z.slice($);return G<32?JSON.stringify(Z):'"'+Y+'"'}function WZ(Z,Y,$,H){if(H2.hasSubscribers===!1)return G2.call(this,Z,Y,$,H);let G={instance:this,arguments};return H2.traceSync(G2,G,this,Z,Y,$,H)}function G2(Z,Y,$,H){let G=this[X2],Q=this[n0],M=this[J2],J=this[QZ],X=this[Q2],U=this[M2],B=this[q2],q=this[JZ],D=this[XZ],W=this[GZ][$]+H;W=W+X;let w;if(B.log)Z=B.log(Z);let A=M[U2],R="";for(let K in Z)if(w=Z[K],Object.prototype.hasOwnProperty.call(Z,K)&&w!==void 0){if(U[K])w=U[K](w);else if(K===D&&U.err)w=U.err(w);let z=M[K]||A;switch(typeof w){case"undefined":case"function":continue;case"number":if(Number.isFinite(w)===!1)w=null;case"boolean":if(z)w=z(w);break;case"string":w=(z||m0)(w);break;default:w=(z||G)(w,Q)}if(w===void 0)continue;let T=m0(K);R+=","+T+":"+w}let V="";if(Y!==void 0){w=U[q]?U[q](Y):Y;let K=M[q]||A;switch(typeof w){case"function":break;case"number":if(Number.isFinite(w)===!1)w=null;case"boolean":if(K)w=K(w);V=',"'+q+'":'+w;break;case"string":w=(K||m0)(w),V=',"'+q+'":'+w;break;default:w=(K||G)(w,Q),V=',"'+q+'":'+w}}if(this[MZ]&&R)return W+this[UZ]+R.slice(1)+"}"+V+J;else return W+R+V+J}function DZ(Z,Y){let $,H=Z[Q2],G=Z[X2],Q=Z[n0],M=Z[J2],J=M[U2],X=Z[M2],U=Z[q2].bindings;Y=U(Y);for(let B in Y)if($=Y[B],((B.length<5||B!=="level"&&B!=="serializers"&&B!=="formatters"&&B!=="customLevels")&&Y.hasOwnProperty(B)&&$!==void 0)===!0){if($=X[B]?X[B]($):$,$=(M[B]||J||G)($,Q),$===void 0)continue;H+=',"'+B+'":'+$}return H}function NZ(Z){return Z.write!==Z.constructor.prototype.write}function d1(Z){let Y=new p0(Z);if(Y.on("error",$),!Z.sync&&qZ)Z2.register(Y,RZ),Y.on("close",function(){Z2.unregister(Y)});return Y;function $(H){if(H.code==="EPIPE"){Y.write=M1,Y.end=M1,Y.flushSync=M1,Y.destroy=M1;return}Y.removeListener("error",$),Y.emit("error",H)}}function RZ(Z,Y){if(Z.destroyed)return;if(Y==="beforeExit")Z.flush(),Z.on("drain",function(){Z.end()});else Z.flushSync()}function AZ(Z){return function($,H,G={},Q){if(typeof G==="string")Q=d1({dest:G}),G={};else if(typeof Q==="string"){if(G&&G.transport)throw Error("only one of option.transport or stream can be specified");Q=d1({dest:Q})}else if(G instanceof p0||G.writable||G._writableState)Q=G,G={};else if(G.transport){if(G.transport instanceof p0||G.transport.writable||G.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(G.transport.targets&&G.transport.targets.length&&G.formatters&&typeof G.formatters.level==="function")throw Error("option.transport.targets do not allow custom level formatters");let X;if(G.customLevels)X=G.useOnlyCustomLevels?G.customLevels:Object.assign({},G.levels,G.customLevels);Q=wZ({caller:H,...G.transport,levels:X})}if(G=Object.assign({},Z,G),G.serializers=Object.assign({},Z.serializers,G.serializers),G.formatters=Object.assign({},Z.formatters,G.formatters),G.prettyPrint)throw Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:M,onChild:J}=G;if(M===!1)G.level="silent";if(!J)G.onChild=M1;if(!Q)if(!NZ(process.stdout))Q=d1({fd:process.stdout.fd||1});else Q=process.stdout;return{opts:G,stream:Q}}}function VZ(Z,Y){try{return JSON.stringify(Z)}catch($){try{return(Y||this[n0])(Z)}catch(H){return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function KZ(Z,Y,$){return{level:Z,bindings:Y,log:$}}function zZ(Z){let Y=Number(Z);if(typeof Z==="string"&&Number.isFinite(Y))return Y;if(Z===void 0)return 1;return Z}w2.exports={noop:M1,buildSafeSonicBoom:d1,asChindings:DZ,asJson:WZ,genLog:BZ,createArgsNormalizer:AZ,stringify:VZ,buildFormatters:KZ,normalizeDestFileDescriptor:zZ}});var c1=_((CQ,B2)=>{var FZ={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},_Z={ASC:"ASC",DESC:"DESC"};B2.exports={DEFAULT_LEVELS:FZ,SORTING_ORDER:_Z}});var a0=_((jQ,R2)=>{var{lsCacheSym:TZ,levelValSym:l0,useOnlyCustomLevelsSym:OZ,streamSym:PZ,formattersSym:IZ,hooksSym:EZ,levelCompSym:W2}=G1(),{noop:CZ,genLog:t}=u1(),{DEFAULT_LEVELS:p,SORTING_ORDER:D2}=c1(),N2={fatal:(Z)=>{let Y=t(p.fatal,Z);return function(...$){let H=this[PZ];if(Y.call(this,...$),typeof H.flushSync==="function")try{H.flushSync()}catch(G){}}},error:(Z)=>t(p.error,Z),warn:(Z)=>t(p.warn,Z),info:(Z)=>t(p.info,Z),debug:(Z)=>t(p.debug,Z),trace:(Z)=>t(p.trace,Z)},i0=Object.keys(p).reduce((Z,Y)=>{return Z[p[Y]]=Y,Z},{}),jZ=Object.keys(i0).reduce((Z,Y)=>{return Z[Y]='{"level":'+Number(Y),Z},{});function xZ(Z){let Y=Z[IZ].level,{labels:$}=Z.levels,H={};for(let G in $){let Q=Y($[G],Number(G));H[G]=JSON.stringify(Q).slice(0,-1)}return Z[TZ]=H,Z}function SZ(Z,Y){if(Y)return!1;switch(Z){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function LZ(Z){let{labels:Y,values:$}=this.levels;if(typeof Z==="number"){if(Y[Z]===void 0)throw Error("unknown level value"+Z);Z=Y[Z]}if($[Z]===void 0)throw Error("unknown level "+Z);let H=this[l0],G=this[l0]=$[Z],Q=this[OZ],M=this[W2],J=this[EZ].logMethod;for(let X in $){if(M($[X],G)===!1){this[X]=CZ;continue}this[X]=SZ(X,Q)?N2[X](J):t($[X],J)}this.emit("level-change",Z,G,Y[H],H,this)}function hZ(Z){let{levels:Y,levelVal:$}=this;return Y&&Y.labels?Y.labels[$]:""}function bZ(Z){let{values:Y}=this.levels,$=Y[Z];return $!==void 0&&this[W2]($,this[l0])}function fZ(Z,Y,$){if(Z===D2.DESC)return Y<=$;return Y>=$}function kZ(Z){if(typeof Z==="string")return fZ.bind(null,Z);return Z}function yZ(Z=null,Y=!1){let $=Z?Object.keys(Z).reduce((Q,M)=>{return Q[Z[M]]=M,Q},{}):null,H=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),Y?null:i0,$),G=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),Y?null:p,Z);return{labels:H,values:G}}function gZ(Z,Y,$){if(typeof Z==="number"){if(![].concat(Object.keys(Y||{}).map((Q)=>Y[Q]),$?[]:Object.keys(i0).map((Q)=>+Q),1/0).includes(Z))throw Error(`default level:${Z} must be included in custom levels`);return}let H=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),$?null:p,Y);if(!(Z in H))throw Error(`default level:${Z} must be included in custom levels`)}function vZ(Z,Y){let{labels:$,values:H}=Z;for(let G in Y){if(G in H)throw Error("levels cannot be overridden");if(Y[G]in $)throw Error("pre-existing level values cannot be used for new levels")}}function dZ(Z){if(typeof Z==="function")return;if(typeof Z==="string"&&Object.values(D2).includes(Z))return;throw Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}R2.exports={initialLsCache:jZ,genLsCache:xZ,levelMethods:N2,getLevel:hZ,setLevel:LZ,isLevelEnabled:bZ,mappings:yZ,assertNoLevelCollisions:vZ,assertDefaultLevelFound:gZ,genLevelComparison:kZ,assertLevelComparison:dZ}});var o0=_((xQ,A2)=>{A2.exports={version:"10.1.0"}});var P2=_((SQ,O2)=>{var{EventEmitter:uZ}=require("node:events"),{lsCacheSym:cZ,levelValSym:mZ,setLevelSym:r0,getLevelSym:V2,chindingsSym:p1,mixinSym:pZ,asJsonSym:z2,writeSym:nZ,mixinMergeStrategySym:lZ,timeSym:iZ,timeSliceIndexSym:aZ,streamSym:F2,serializersSym:e,formattersSym:D1,errorKeySym:oZ,messageKeySym:sZ,useOnlyCustomLevelsSym:rZ,needsMetadataGsym:tZ,redactFmtSym:eZ,stringifySym:Z5,formatOptsSym:Y5,stringifiersSym:$5,msgPrefixSym:t0,hooksSym:H5}=G1(),{getLevel:G5,setLevel:Q5,isLevelEnabled:M5,mappings:J5,initialLsCache:X5,genLsCache:U5,assertNoLevelCollisions:q5}=a0(),{asChindings:e0,asJson:w5,buildFormatters:s0,stringify:K2,noop:_2}=u1(),{version:B5}=o0(),W5=j0(),D5=class{},T2={constructor:D5,child:N5,bindings:R5,setBindings:A5,flush:z5,isLevelEnabled:M5,version:B5,get level(){return this[V2]()},set level(Z){this[r0](Z)},get levelVal(){return this[mZ]},set levelVal(Z){throw Error("levelVal is read-only")},get msgPrefix(){return this[t0]},get[Symbol.toStringTag](){return"Pino"},[cZ]:X5,[nZ]:K5,[z2]:w5,[V2]:G5,[r0]:Q5};Object.setPrototypeOf(T2,uZ.prototype);O2.exports=function(){return Object.create(T2)};var m1=(Z)=>Z;function N5(Z,Y){if(!Z)throw Error("missing bindings for child Pino");let $=this[e],H=this[D1],G=Object.create(this);if(Y==null){if(G[D1].bindings!==m1)G[D1]=s0(H.level,m1,H.log);if(G[p1]=e0(G,Z),this.onChild!==_2)this.onChild(G);return G}if(Y.hasOwnProperty("serializers")===!0){G[e]=Object.create(null);for(let U in $)G[e][U]=$[U];let J=Object.getOwnPropertySymbols($);for(var Q=0;Q<J.length;Q++){let U=J[Q];G[e][U]=$[U]}for(let U in Y.serializers)G[e][U]=Y.serializers[U];let X=Object.getOwnPropertySymbols(Y.serializers);for(var M=0;M<X.length;M++){let U=X[M];G[e][U]=Y.serializers[U]}}else G[e]=$;if(Y.hasOwnProperty("formatters")){let{level:J,bindings:X,log:U}=Y.formatters;G[D1]=s0(J||H.level,X||m1,U||H.log)}else G[D1]=s0(H.level,m1,H.log);if(Y.hasOwnProperty("customLevels")===!0)q5(this.levels,Y.customLevels),G.levels=J5(Y.customLevels,G[rZ]),U5(G);if(typeof Y.redact==="object"&&Y.redact!==null||Array.isArray(Y.redact)){G.redact=Y.redact;let J=W5(G.redact,K2),X={stringify:J[eZ]};G[Z5]=K2,G[$5]=J,G[Y5]=X}if(typeof Y.msgPrefix==="string")G[t0]=(this[t0]||"")+Y.msgPrefix;if(G[p1]=e0(G,Z),Y.level!==void 0&&Y.level!==this.level||Y.hasOwnProperty("customLevels")){let J=Y.level||this.level;G[r0](J)}return this.onChild(G),G}function R5(){let Y=`{${this[p1].substr(1)}}`,$=JSON.parse(Y);return delete $.pid,delete $.hostname,$}function A5(Z){let Y=e0(this,Z);this[p1]=Y}function V5(Z,Y){return Object.assign(Y,Z)}function K5(Z,Y,$){let H=this[iZ](),G=this[pZ],Q=this[oZ],M=this[sZ],J=this[lZ]||V5,X,U=this[H5].streamWrite;if(Z===void 0||Z===null)X={};else if(Z instanceof Error){if(X={[Q]:Z},Y===void 0)Y=Z.message}else if(X=Z,Y===void 0&&Z[M]===void 0&&Z[Q])Y=Z[Q].message;if(G)X=J(X,G(X,$,this));let B=this[z2](X,Y,$,H),q=this[F2];if(q[tZ]===!0)q.lastLevel=$,q.lastObj=X,q.lastMsg=Y,q.lastTime=H.slice(this[aZ]),q.lastLogger=this;q.write(U?U(B):B)}function z5(Z){if(Z!=null&&typeof Z!=="function")throw Error("callback must be a function");let Y=this[F2];if(typeof Y.flush==="function")Y.flush(Z||_2);else if(Z)Z()}});var j2=_((H9,C2)=>{var{hasOwnProperty:N1}=Object.prototype,Y1=$9();Y1.configure=$9;Y1.stringify=Y1;Y1.default=Y1;H9.stringify=Y1;H9.configure=$9;C2.exports=Y1;var F5=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(Z){if(Z.length<5000&&!F5.test(Z))return`"${Z}"`;return JSON.stringify(Z)}function Z9(Z,Y){if(Z.length>200||Y)return Z.sort(Y);for(let $=1;$<Z.length;$++){let H=Z[$],G=$;while(G!==0&&Z[G-1]>H)Z[G]=Z[G-1],G--;Z[G]=H}return Z}var _5=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Y9(Z){return _5.call(Z)!==void 0&&Z.length!==0}function I2(Z,Y,$){if(Z.length<$)$=Z.length;let H=Y===","?"":" ",G=`"0":${H}${Z[0]}`;for(let Q=1;Q<$;Q++)G+=`${Y}"${Q}":${H}${Z[Q]}`;return G}function T5(Z){if(N1.call(Z,"circularValue")){let Y=Z.circularValue;if(typeof Y==="string")return`"${Y}"`;if(Y==null)return Y;if(Y===Error||Y===TypeError)return{toString(){throw TypeError("Converting circular structure to JSON")}};throw TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function O5(Z){let Y;if(N1.call(Z,"deterministic")){if(Y=Z.deterministic,typeof Y!=="boolean"&&typeof Y!=="function")throw TypeError('The "deterministic" argument must be of type boolean or comparator function')}return Y===void 0?!0:Y}function P5(Z,Y){let $;if(N1.call(Z,Y)){if($=Z[Y],typeof $!=="boolean")throw TypeError(`The "${Y}" argument must be of type boolean`)}return $===void 0?!0:$}function E2(Z,Y){let $;if(N1.call(Z,Y)){if($=Z[Y],typeof $!=="number")throw TypeError(`The "${Y}" argument must be of type number`);if(!Number.isInteger($))throw TypeError(`The "${Y}" argument must be an integer`);if($<1)throw RangeError(`The "${Y}" argument must be >= 1`)}return $===void 0?1/0:$}function Z1(Z){if(Z===1)return"1 item";return`${Z} items`}function I5(Z){let Y=new Set;for(let $ of Z)if(typeof $==="string"||typeof $==="number")Y.add(String($));return Y}function E5(Z){if(N1.call(Z,"strict")){let Y=Z.strict;if(typeof Y!=="boolean")throw TypeError('The "strict" argument must be of type boolean');if(Y)return($)=>{let H=`Object can not safely be stringified. Received type ${typeof $}`;if(typeof $!=="function")H+=` (${$.toString()})`;throw Error(H)}}}function $9(Z){Z={...Z};let Y=E5(Z);if(Y){if(Z.bigint===void 0)Z.bigint=!1;if(!("circularValue"in Z))Z.circularValue=Error}let $=T5(Z),H=P5(Z,"bigint"),G=O5(Z),Q=typeof G==="function"?G:void 0,M=E2(Z,"maximumDepth"),J=E2(Z,"maximumBreadth");function X(W,w,A,R,V,K){let z=w[W];if(typeof z==="object"&&z!==null&&typeof z.toJSON==="function")z=z.toJSON(W);switch(z=R.call(w,W,z),typeof z){case"string":return i(z);case"object":{if(z===null)return"null";if(A.indexOf(z)!==-1)return $;let T="",I=",",S=K;if(Array.isArray(z)){if(z.length===0)return"[]";if(M<A.length+1)return'"[Array]"';if(A.push(z),V!=="")K+=V,T+=`
|
|
4
|
-
${
|
|
5
|
-
${
|
|
6
|
-
${
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
1
|
+
var y5=Object.create;var{getPrototypeOf:v5,defineProperty:r,getOwnPropertyNames:b0,getOwnPropertyDescriptor:g5}=Object,h0=Object.prototype.hasOwnProperty;var D4=(Y,Z,$)=>{$=Y!=null?y5(v5(Y)):{};let Q=Z||!Y||!Y.__esModule?r($,"default",{value:Y,enumerable:!0}):$;for(let G of b0(Y))if(!h0.call(Q,G))r(Q,G,{get:()=>Y[G],enumerable:!0});return Q},S0=new WeakMap,d5=(Y)=>{var Z=S0.get(Y),$;if(Z)return Z;if(Z=r({},"__esModule",{value:!0}),Y&&typeof Y==="object"||typeof Y==="function")b0(Y).map((Q)=>!h0.call(Z,Q)&&r(Z,Q,{get:()=>Y[Q],enumerable:!($=g5(Y,Q))||$.enumerable}));return S0.set(Y,Z),Z},B=(Y,Z)=>()=>(Z||Y((Z={exports:{}}).exports,Z),Z.exports);var u5=(Y,Z)=>{for(var $ in Z)r(Y,$,{get:Z[$],enumerable:!0,configurable:!0,set:(Q)=>Z[$]=()=>Q})};var p5=(Y,Z)=>()=>(Y&&(Z=Y(Y=0)),Z);var x,C1,E1,j1,I1,L1,x1,S1,b1,h1,k1;var J1=p5(()=>{x=class x extends Error{statusCode;details;constructor(Y,Z,$){super(Z);this.statusCode=Y;this.details=$;if(this.name="HTTPException",Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};C1=class C1 extends x{constructor(Y="Not Found",Z){super(404,Y,Z);this.name="NotFoundException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};E1=class E1 extends x{constructor(Y="Unauthorized",Z){super(401,Y,Z);this.name="UnauthorizedException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};j1=class j1 extends x{constructor(Y="Forbidden",Z){super(403,Y,Z);this.name="ForbiddenException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};I1=class I1 extends x{constructor(Y="Bad Request",Z){super(400,Y,Z);this.name="BadRequestException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};L1=class L1 extends x{constructor(Y="Conflict",Z){super(409,Y,Z);this.name="ConflictException"}};x1=class x1 extends x{constructor(Y="Gone",Z){super(410,Y,Z);this.name="GoneException"}};S1=class S1 extends x{constructor(Y="Payload Too Large",Z){super(413,Y,Z);this.name="PayloadTooLargeException"}};b1=class b1 extends x{constructor(Y="Unprocessable Entity",Z){super(422,Y,Z);this.name="UnprocessableEntityException"}};h1=class h1 extends x{constructor(Y="Too Many Requests",Z){super(429,Y,Z);this.name="TooManyRequestsException"}};k1=class k1 extends x{constructor(Y="Service Unavailable",Z){super(503,Y,Z);this.name="ServiceUnavailableException"}}});var y1=B((_4,y0)=>{var e=(Y)=>{return Y&&typeof Y.message==="string"},f1=(Y)=>{if(!Y)return;let Z=Y.cause;if(typeof Z==="function"){let $=Y.cause();return e($)?$:void 0}else return e(Z)?Z:void 0},k0=(Y,Z)=>{if(!e(Y))return"";let $=Y.stack||"";if(Z.has(Y))return $+`
|
|
2
|
+
causes have become circular...`;let Q=f1(Y);if(Q)return Z.add(Y),$+`
|
|
3
|
+
caused by: `+k0(Q,Z);else return $},m5=(Y)=>k0(Y,new Set),f0=(Y,Z,$)=>{if(!e(Y))return"";let Q=$?"":Y.message||"";if(Z.has(Y))return Q+": ...";let G=f1(Y);if(G){Z.add(Y);let U=typeof Y.cause==="function";return Q+(U?"":": ")+f0(G,Z,U)}else return Q},l5=(Y)=>f0(Y,new Set);y0.exports={isErrorLike:e,getErrorCause:f1,stackWithCauses:m5,messageWithCauses:l5}});var v1=B((T4,g0)=>{var n5=Symbol("circular-ref-tag"),X1=Symbol("pino-raw-err-ref"),v0=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[X1]},set:function(Y){this[X1]=Y}}});Object.defineProperty(v0,X1,{writable:!0,value:{}});g0.exports={pinoErrProto:v0,pinoErrorSymbols:{seen:n5,rawSymbol:X1}}});var p0=B((C4,u0)=>{u0.exports=d1;var{messageWithCauses:i5,stackWithCauses:o5,isErrorLike:d0}=y1(),{pinoErrProto:a5,pinoErrorSymbols:t5}=v1(),{seen:g1}=t5,{toString:s5}=Object.prototype;function d1(Y){if(!d0(Y))return Y;Y[g1]=void 0;let Z=Object.create(a5);if(Z.type=s5.call(Y.constructor)==="[object Function]"?Y.constructor.name:Y.name,Z.message=i5(Y),Z.stack=o5(Y),Array.isArray(Y.errors))Z.aggregateErrors=Y.errors.map(($)=>d1($));for(let $ in Y)if(Z[$]===void 0){let Q=Y[$];if(d0(Q)){if($!=="cause"&&!Object.prototype.hasOwnProperty.call(Q,g1))Z[$]=d1(Q)}else Z[$]=Q}return delete Y[g1],Z.raw=Y,Z}});var m0=B((E4,c0)=>{c0.exports=M1;var{isErrorLike:u1}=y1(),{pinoErrProto:r5,pinoErrorSymbols:e5}=v1(),{seen:H1}=e5,{toString:Y3}=Object.prototype;function M1(Y){if(!u1(Y))return Y;Y[H1]=void 0;let Z=Object.create(r5);if(Z.type=Y3.call(Y.constructor)==="[object Function]"?Y.constructor.name:Y.name,Z.message=Y.message,Z.stack=Y.stack,Array.isArray(Y.errors))Z.aggregateErrors=Y.errors.map(($)=>M1($));if(u1(Y.cause)&&!Object.prototype.hasOwnProperty.call(Y.cause,H1))Z.cause=M1(Y.cause);for(let $ in Y)if(Z[$]===void 0){let Q=Y[$];if(u1(Q)){if(!Object.prototype.hasOwnProperty.call(Q,H1))Z[$]=M1(Q)}else Z[$]=Q}return delete Y[H1],Z.raw=Y,Z}});var o0=B((j4,i0)=>{i0.exports={mapHttpRequest:Z3,reqSerializer:n0};var p1=Symbol("pino-raw-req-ref"),l0=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[p1]},set:function(Y){this[p1]=Y}}});Object.defineProperty(l0,p1,{writable:!0,value:{}});function n0(Y){let Z=Y.info||Y.socket,$=Object.create(l0);if($.id=typeof Y.id==="function"?Y.id():Y.id||(Y.info?Y.info.id:void 0),$.method=Y.method,Y.originalUrl)$.url=Y.originalUrl;else{let Q=Y.path;$.url=typeof Q==="string"?Q:Y.url?Y.url.path||Y.url:void 0}if(Y.query)$.query=Y.query;if(Y.params)$.params=Y.params;return $.headers=Y.headers,$.remoteAddress=Z&&Z.remoteAddress,$.remotePort=Z&&Z.remotePort,$.raw=Y.raw||Y,$}function Z3(Y){return{req:n0(Y)}}});var r0=B((I4,s0)=>{s0.exports={mapHttpResponse:$3,resSerializer:t0};var c1=Symbol("pino-raw-res-ref"),a0=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[c1]},set:function(Y){this[c1]=Y}}});Object.defineProperty(a0,c1,{writable:!0,value:{}});function t0(Y){let Z=Object.create(a0);return Z.statusCode=Y.headersSent?Y.statusCode:null,Z.headers=Y.getHeaders?Y.getHeaders():Y._headers,Z.raw=Y,Z}function $3(Y){return{res:t0(Y)}}});var l1=B((L4,e0)=>{var m1=p0(),Q3=m0(),N1=o0(),K1=r0();e0.exports={err:m1,errWithCause:Q3,mapHttpRequest:N1.mapHttpRequest,mapHttpResponse:K1.mapHttpResponse,req:N1.reqSerializer,res:K1.resSerializer,wrapErrorSerializer:function(Z){if(Z===m1)return Z;return function(Q){return Z(m1(Q))}},wrapRequestSerializer:function(Z){if(Z===N1.reqSerializer)return Z;return function(Q){return Z(N1.reqSerializer(Q))}},wrapResponseSerializer:function(Z){if(Z===K1.resSerializer)return Z;return function(Q){return Z(K1.resSerializer(Q))}}}});var n1=B((x4,Y2)=>{function G3(Y,Z){return Z}Y2.exports=function(){let Z=Error.prepareStackTrace;Error.prepareStackTrace=G3;let $=Error().stack;if(Error.prepareStackTrace=Z,!Array.isArray($))return;let Q=$.slice(2),G=[];for(let U of Q){if(!U)continue;G.push(U.getFileName())}return G}});var U2=B((S4,J2)=>{function i1(Y){if(Y===null||typeof Y!=="object")return Y;if(Y instanceof Date)return new Date(Y.getTime());if(Y instanceof Array){let Z=[];for(let $=0;$<Y.length;$++)Z[$]=i1(Y[$]);return Z}if(typeof Y==="object"){let Z=Object.create(Object.getPrototypeOf(Y));for(let $ in Y)if(Object.prototype.hasOwnProperty.call(Y,$))Z[$]=i1(Y[$]);return Z}return Y}function Z2(Y){let Z=[],$="",Q=!1,G=!1,U="";for(let N=0;N<Y.length;N++){let H=Y[N];if(!Q&&H==="."){if($)Z.push($),$=""}else if(H==="["){if($)Z.push($),$="";Q=!0}else if(H==="]"&&Q)Z.push($),$="",Q=!1,G=!1;else if((H==='"'||H==="'")&&Q)if(!G)G=!0,U=H;else if(H===U)G=!1,U="";else $+=H;else $+=H}if($)Z.push($);return Z}function $2(Y,Z,$){let Q=Y;for(let U=0;U<Z.length-1;U++){let N=Z[U];if(typeof Q!=="object"||Q===null||!(N in Q))return!1;if(typeof Q[N]!=="object"||Q[N]===null)return!1;Q=Q[N]}let G=Z[Z.length-1];if(G==="*"){if(Array.isArray(Q))for(let U=0;U<Q.length;U++)Q[U]=$;else if(typeof Q==="object"&&Q!==null){for(let U in Q)if(Object.prototype.hasOwnProperty.call(Q,U))Q[U]=$}}else if(typeof Q==="object"&&Q!==null&&G in Q&&Object.prototype.hasOwnProperty.call(Q,G))Q[G]=$;return!0}function Q2(Y,Z){let $=Y;for(let G=0;G<Z.length-1;G++){let U=Z[G];if(typeof $!=="object"||$===null||!(U in $))return!1;if(typeof $[U]!=="object"||$[U]===null)return!1;$=$[U]}let Q=Z[Z.length-1];if(Q==="*"){if(Array.isArray($))for(let G=0;G<$.length;G++)$[G]=void 0;else if(typeof $==="object"&&$!==null){for(let G in $)if(Object.prototype.hasOwnProperty.call($,G))delete $[G]}}else if(typeof $==="object"&&$!==null&&Q in $&&Object.prototype.hasOwnProperty.call($,Q))delete $[Q];return!0}var A1=Symbol("PATH_NOT_FOUND");function J3(Y,Z){let $=Y;for(let Q of Z){if($===null||$===void 0)return A1;if(typeof $!=="object"||$===null)return A1;if(!(Q in $))return A1;$=$[Q]}return $}function U3(Y,Z){let $=Y;for(let Q of Z){if($===null||$===void 0)return;if(typeof $!=="object"||$===null)return;$=$[Q]}return $}function X3(Y,Z,$,Q=!1){for(let G of Z){let U=Z2(G);if(U.includes("*"))G2(Y,U,$,G,Q);else if(Q)Q2(Y,U);else{let N=J3(Y,U);if(N===A1)continue;let H=typeof $==="function"?$(N,U):$;$2(Y,U,H)}}}function G2(Y,Z,$,Q,G=!1){let U=Z.indexOf("*");if(U===Z.length-1){let N=Z.slice(0,-1),H=Y;for(let X of N){if(H===null||H===void 0)return;if(typeof H!=="object"||H===null)return;H=H[X]}if(Array.isArray(H))if(G)for(let X=0;X<H.length;X++)H[X]=void 0;else for(let X=0;X<H.length;X++){let A=[...N,X.toString()],z=typeof $==="function"?$(H[X],A):$;H[X]=z}else if(typeof H==="object"&&H!==null)if(G){let X=[];for(let A in H)if(Object.prototype.hasOwnProperty.call(H,A))X.push(A);for(let A of X)delete H[A]}else for(let X in H){let A=[...N,X],z=typeof $==="function"?$(H[X],A):$;H[X]=z}}else H3(Y,Z,$,U,Q,G)}function H3(Y,Z,$,Q,G,U=!1){let N=Z.slice(0,Q),H=Z.slice(Q+1),X=[];function A(z,M){if(M===N.length){if(Array.isArray(z))for(let R=0;R<z.length;R++)X[M]=R.toString(),A(z[R],M+1);else if(typeof z==="object"&&z!==null)for(let R in z)X[M]=R,A(z[R],M+1)}else if(M<N.length){let R=N[M];if(z&&typeof z==="object"&&z!==null&&R in z)X[M]=R,A(z[R],M+1)}else if(H.includes("*"))G2(z,H,typeof $==="function"?(V,J)=>{let q=[...X.slice(0,M),...J];return $(V,q)}:$,G,U);else if(U)Q2(z,H);else{let R=typeof $==="function"?$(U3(z,H),[...X.slice(0,M),...H]):$;$2(z,H,R)}}if(N.length===0)A(Y,0);else{let z=Y;for(let M=0;M<N.length;M++){let R=N[M];if(z===null||z===void 0)return;if(typeof z!=="object"||z===null)return;z=z[R],X[M]=R}if(z!==null&&z!==void 0)A(z,N.length)}}function M3(Y){if(Y.length===0)return null;let Z=new Map;for(let $ of Y){let Q=Z2($),G=Z;for(let U=0;U<Q.length;U++){let N=Q[U];if(!G.has(N))G.set(N,new Map);G=G.get(N)}}return Z}function N3(Y,Z){if(!Z)return Y;function $(Q,G,U=0){if(!G||G.size===0)return Q;if(Q===null||typeof Q!=="object")return Q;if(Q instanceof Date)return new Date(Q.getTime());if(Array.isArray(Q)){let H=[];for(let X=0;X<Q.length;X++){let A=X.toString();if(G.has(A)||G.has("*"))H[X]=$(Q[X],G.get(A)||G.get("*"));else H[X]=Q[X]}return H}let N=Object.create(Object.getPrototypeOf(Q));for(let H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))if(G.has(H)||G.has("*"))N[H]=$(Q[H],G.get(H)||G.get("*"));else N[H]=Q[H];return N}return $(Y,Z)}function K3(Y){if(typeof Y!=="string")throw Error("Paths must be (non-empty) strings");if(Y==="")throw Error("Invalid redaction path ()");if(Y.includes(".."))throw Error(`Invalid redaction path (${Y})`);if(Y.includes(","))throw Error(`Invalid redaction path (${Y})`);let Z=0,$=!1,Q="";for(let G=0;G<Y.length;G++){let U=Y[G];if((U==='"'||U==="'")&&Z>0){if(!$)$=!0,Q=U;else if(U===Q)$=!1,Q=""}else if(U==="["&&!$)Z++;else if(U==="]"&&!$){if(Z--,Z<0)throw Error(`Invalid redaction path (${Y})`)}}if(Z!==0)throw Error(`Invalid redaction path (${Y})`)}function A3(Y){if(!Array.isArray(Y))throw TypeError("paths must be an array");for(let Z of Y)K3(Z)}function z3(Y={}){let{paths:Z=[],censor:$="[REDACTED]",serialize:Q=JSON.stringify,strict:G=!0,remove:U=!1}=Y;A3(Z);let N=M3(Z);return function(X){if(G&&(X===null||typeof X!=="object")){if(X===null||X===void 0)return Q?Q(X):X;if(typeof X!=="object")return Q?Q(X):X}let A=N3(X,N),z=X,M=$;if(typeof $==="function")M=$;if(X3(A,Z,M,U),Q===!1)return A.restore=function(){return i1(z)},A;if(typeof Q==="function")return Q(A);return JSON.stringify(A)}}J2.exports=z3});var a=B((b4,X2)=>{var V3=Symbol("pino.setLevel"),q3=Symbol("pino.getLevel"),R3=Symbol("pino.levelVal"),w3=Symbol("pino.levelComp"),P3=Symbol("pino.useLevelLabels"),D3=Symbol("pino.useOnlyCustomLevels"),F3=Symbol("pino.mixin"),W3=Symbol("pino.lsCache"),O3=Symbol("pino.chindings"),B3=Symbol("pino.asJson"),_3=Symbol("pino.write"),T3=Symbol("pino.redactFmt"),C3=Symbol("pino.time"),E3=Symbol("pino.timeSliceIndex"),j3=Symbol("pino.stream"),I3=Symbol("pino.stringify"),L3=Symbol("pino.stringifySafe"),x3=Symbol("pino.stringifiers"),S3=Symbol("pino.end"),b3=Symbol("pino.formatOpts"),h3=Symbol("pino.messageKey"),k3=Symbol("pino.errorKey"),f3=Symbol("pino.nestedKey"),y3=Symbol("pino.nestedKeyStr"),v3=Symbol("pino.mixinMergeStrategy"),g3=Symbol("pino.msgPrefix"),d3=Symbol("pino.wildcardFirst"),u3=Symbol.for("pino.serializers"),p3=Symbol.for("pino.formatters"),c3=Symbol.for("pino.hooks"),m3=Symbol.for("pino.metadata");X2.exports={setLevelSym:V3,getLevelSym:q3,levelValSym:R3,levelCompSym:w3,useLevelLabelsSym:P3,mixinSym:F3,lsCacheSym:W3,chindingsSym:O3,asJsonSym:B3,writeSym:_3,serializersSym:u3,redactFmtSym:T3,timeSym:C3,timeSliceIndexSym:E3,streamSym:j3,stringifySym:I3,stringifySafeSym:L3,stringifiersSym:x3,endSym:S3,formatOptsSym:b3,messageKeySym:h3,errorKeySym:k3,nestedKeySym:f3,wildcardFirstSym:d3,needsMetadataGsym:m3,useOnlyCustomLevelsSym:D3,formattersSym:p3,hooksSym:c3,nestedKeyStrSym:y3,mixinMergeStrategySym:v3,msgPrefixSym:g3}});var a1=B((h4,M2)=>{var H2=U2(),{redactFmtSym:l3,wildcardFirstSym:z1}=a(),o1=/[^.[\]]+|\[([^[\]]*?)\]/g;function n3(Y,Z){let{paths:$,censor:Q,remove:G}=i3(Y),U=$.reduce((X,A)=>{o1.lastIndex=0;let z=o1.exec(A),M=o1.exec(A),R=z[1]!==void 0?z[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):z[0];if(R==="*")R=z1;if(M===null)return X[R]=null,X;if(X[R]===null)return X;let{index:V}=M,J=`${A.substr(V,A.length-1)}`;if(X[R]=X[R]||[],R!==z1&&X[R].length===0)X[R].push(...X[z1]||[]);if(R===z1)Object.keys(X).forEach(function(q){if(X[q])X[q].push(J)});return X[R].push(J),X},{}),N={[l3]:H2({paths:$,censor:Q,serialize:Z,strict:!1,remove:G})},H=(...X)=>{return typeof Q==="function"?Z(Q(...X)):Z(Q)};return[...Object.keys(U),...Object.getOwnPropertySymbols(U)].reduce((X,A)=>{if(U[A]===null)X[A]=(z)=>H(z,[A]);else{let z=typeof Q==="function"?(M,R)=>{return Q(M,[A,...R])}:Q;X[A]=H2({paths:U[A],censor:z,serialize:Z,strict:!1,remove:G})}return X},N)}function i3(Y){if(Array.isArray(Y))return Y={paths:Y,censor:"[Redacted]"},Y;let{paths:Z,censor:$="[Redacted]",remove:Q}=Y;if(Array.isArray(Z)===!1)throw Error("pino – redact must contain an array of strings");if(Q===!0)$=void 0;return{paths:Z,censor:$,remove:Q}}M2.exports=n3});var A2=B((k4,K2)=>{var o3=()=>"",a3=()=>`,"time":${Date.now()}`,t3=()=>`,"time":${Math.round(Date.now()/1000)}`,s3=()=>`,"time":"${new Date(Date.now()).toISOString()}"`,r3=1000000n,N2=1000000000n,e3=BigInt(Date.now())*r3,Y7=process.hrtime.bigint(),Z7=()=>{let Y=process.hrtime.bigint()-Y7,Z=e3+Y,$=Z/N2,Q=Z%N2,G=Number($*1000n+Q/1000000n),U=new Date(G),N=U.getUTCFullYear(),H=(U.getUTCMonth()+1).toString().padStart(2,"0"),X=U.getUTCDate().toString().padStart(2,"0"),A=U.getUTCHours().toString().padStart(2,"0"),z=U.getUTCMinutes().toString().padStart(2,"0"),M=U.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${N}-${H}-${X}T${A}:${z}:${M}.${Q.toString().padStart(9,"0")}Z"`};K2.exports={nullTime:o3,epochTime:a3,unixTime:t3,isoTime:s3,isoTimeNano:Z7}});var V2=B((f4,z2)=>{function $7(Y){try{return JSON.stringify(Y)}catch(Z){return'"[Circular]"'}}z2.exports=Q7;function Q7(Y,Z,$){var Q=$&&$.stringify||$7,G=1;if(typeof Y==="object"&&Y!==null){var U=Z.length+G;if(U===1)return Y;var N=Array(U);N[0]=Q(Y);for(var H=1;H<U;H++)N[H]=Q(Z[H]);return N.join(" ")}if(typeof Y!=="string")return Y;var X=Z.length;if(X===0)return Y;var A="",z=1-G,M=-1,R=Y&&Y.length||0;for(var V=0;V<R;){if(Y.charCodeAt(V)===37&&V+1<R){switch(M=M>-1?M:0,Y.charCodeAt(V+1)){case 100:case 102:if(z>=X)break;if(Z[z]==null)break;if(M<V)A+=Y.slice(M,V);A+=Number(Z[z]),M=V+2,V++;break;case 105:if(z>=X)break;if(Z[z]==null)break;if(M<V)A+=Y.slice(M,V);A+=Math.floor(Number(Z[z])),M=V+2,V++;break;case 79:case 111:case 106:if(z>=X)break;if(Z[z]===void 0)break;if(M<V)A+=Y.slice(M,V);var J=typeof Z[z];if(J==="string"){A+="'"+Z[z]+"'",M=V+2,V++;break}if(J==="function"){A+=Z[z].name||"<anonymous>",M=V+2,V++;break}A+=Q(Z[z]),M=V+2,V++;break;case 115:if(z>=X)break;if(M<V)A+=Y.slice(M,V);A+=String(Z[z]),M=V+2,V++;break;case 37:if(M<V)A+=Y.slice(M,V);A+="%",M=V+2,V++,z--;break}++z}++V}if(M===-1)return Y;else if(M<R)A+=Y.slice(M);return A}});var s1=B((y4,t1)=>{if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let Z=function($){if(($>0&&$<1/0)===!1){if(typeof $!=="number"&&typeof $!=="bigint")throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(Y,0,0,Number($))},Y=new Int32Array(new SharedArrayBuffer(4));t1.exports=Z}else{let Y=function(Z){if((Z>0&&Z<1/0)===!1){if(typeof Z!=="number"&&typeof Z!=="bigint")throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let Q=Date.now()+Number(Z);while(Q>Date.now());};t1.exports=Y}});var F2=B((v4,D2)=>{var j=require("fs"),G7=require("events"),J7=require("util").inherits,q2=require("path"),e1=s1(),U7=require("assert"),V1=Buffer.allocUnsafe(0),[X7,H7]=(process.versions.node||"0.0").split(".").map(Number),M7=X7>=22&&H7>=7;function R2(Y,Z){Z._opening=!0,Z._writing=!0,Z._asyncDrainScheduled=!1;function $(U,N){if(U){if(Z._reopening=!1,Z._writing=!1,Z._opening=!1,Z.sync)process.nextTick(()=>{if(Z.listenerCount("error")>0)Z.emit("error",U)});else Z.emit("error",U);return}let H=Z._reopening;if(Z.fd=N,Z.file=Y,Z._reopening=!1,Z._opening=!1,Z._writing=!1,Z.sync)process.nextTick(()=>Z.emit("ready"));else Z.emit("ready");if(Z.destroyed)return;if(!Z._writing&&Z._len>Z.minLength||Z._flushPending)Z._actualWrite();else if(H)process.nextTick(()=>Z.emit("drain"))}let Q=Z.append?"a":"w",G=Z.mode;if(Z.sync)try{if(Z.mkdir)j.mkdirSync(q2.dirname(Y),{recursive:!0});let U=j.openSync(Y,Q,G);$(null,U)}catch(U){throw $(U),U}else if(Z.mkdir)j.mkdir(q2.dirname(Y),{recursive:!0},(U)=>{if(U)return $(U);j.open(Y,Q,G,$)});else j.open(Y,Q,G,$)}function y(Y){if(!(this instanceof y))return new y(Y);let{fd:Z,dest:$,minLength:Q,maxLength:G,maxWrite:U,periodicFlush:N,sync:H,append:X=!0,mkdir:A,retryEAGAIN:z,fsync:M,contentMode:R,mode:V}=Y||{};Z=Z||$,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(Q||0,16387),this.file=null,this.destroyed=!1,this.minLength=Q||0,this.maxLength=G||0,this.maxWrite=U||16384,this._periodicFlush=N||0,this._periodicFlushTimer=void 0,this.sync=H||!1,this.writable=!0,this._fsync=M||!1,this.append=X||!1,this.mode=V,this.retryEAGAIN=z||(()=>!0),this.mkdir=A||!1;let J,q;if(R==="buffer")this._writingBuf=V1,this.write=A7,this.flush=V7,this.flushSync=R7,this._actualWrite=P7,J=()=>j.writeSync(this.fd,this._writingBuf),q=()=>j.write(this.fd,this._writingBuf,this.release);else if(R===void 0||R==="utf8")this._writingBuf="",this.write=K7,this.flush=z7,this.flushSync=q7,this._actualWrite=w7,J=()=>j.writeSync(this.fd,this._writingBuf,"utf8"),q=()=>j.write(this.fd,this._writingBuf,"utf8",this.release);else throw Error(`SonicBoom supports "utf8" and "buffer", but passed ${R}`);if(typeof Z==="number")this.fd=Z,process.nextTick(()=>this.emit("ready"));else if(typeof Z==="string")R2(Z,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);if(this.release=(w,F)=>{if(w){if((w.code==="EAGAIN"||w.code==="EBUSY")&&this.retryEAGAIN(w,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{e1(100),this.release(void 0,0)}catch(W){this.release(W)}else setTimeout(q,100);else this._writing=!1,this.emit("error",w);return}this.emit("write",F);let D=r1(this._writingBuf,this._len,F);if(this._len=D.len,this._writingBuf=D.writingBuf,this._writingBuf.length){if(!this.sync){q();return}try{do{let W=J(),T=r1(this._writingBuf,this._len,W);this._len=T.len,this._writingBuf=T.writingBuf}while(this._writingBuf.length)}catch(W){this.release(W);return}}if(this._fsync)j.fsyncSync(this.fd);let P=this._len;if(this._reopening)this._writing=!1,this._reopening=!1,this.reopen();else if(P>this.minLength)this._actualWrite();else if(this._ending)if(P>0)this._actualWrite();else this._writing=!1,q1(this);else if(this._writing=!1,this.sync){if(!this._asyncDrainScheduled)this._asyncDrainScheduled=!0,process.nextTick(N7,this)}else this.emit("drain")},this.on("newListener",function(w){if(w==="drain")this._asyncDrainScheduled=!1}),this._periodicFlush!==0)this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref()}function r1(Y,Z,$){if(typeof Y==="string"&&Buffer.byteLength(Y)!==$)$=Buffer.from(Y).subarray(0,$).toString().length;return Z=Math.max(Z-$,0),Y=Y.slice($),{writingBuf:Y,len:Z}}function N7(Y){if(!(Y.listenerCount("drain")>0))return;Y._asyncDrainScheduled=!1,Y.emit("drain")}J7(y,G7);function w2(Y,Z){if(Y.length===0)return V1;if(Y.length===1)return Y[0];return Buffer.concat(Y,Z)}function K7(Y){if(this.destroyed)throw Error("SonicBoom destroyed");let Z=this._len+Y.length,$=this._bufs;if(this.maxLength&&Z>this.maxLength)return this.emit("drop",Y),this._len<this._hwm;if($.length===0||$[$.length-1].length+Y.length>this.maxWrite)$.push(""+Y);else $[$.length-1]+=Y;if(this._len=Z,!this._writing&&this._len>=this.minLength)this._actualWrite();return this._len<this._hwm}function A7(Y){if(this.destroyed)throw Error("SonicBoom destroyed");let Z=this._len+Y.length,$=this._bufs,Q=this._lens;if(this.maxLength&&Z>this.maxLength)return this.emit("drop",Y),this._len<this._hwm;if($.length===0||Q[Q.length-1]+Y.length>this.maxWrite)$.push([Y]),Q.push(Y.length);else $[$.length-1].push(Y),Q[Q.length-1]+=Y.length;if(this._len=Z,!this._writing&&this._len>=this.minLength)this._actualWrite();return this._len<this._hwm}function P2(Y){this._flushPending=!0;let Z=()=>{if(!this._fsync)try{j.fsync(this.fd,(Q)=>{this._flushPending=!1,Y(Q)})}catch(Q){Y(Q)}else this._flushPending=!1,Y();this.off("error",$)},$=(Q)=>{this._flushPending=!1,Y(Q),this.off("drain",Z)};this.once("drain",Z),this.once("error",$)}function z7(Y){if(Y!=null&&typeof Y!=="function")throw Error("flush cb must be a function");if(this.destroyed){let Z=Error("SonicBoom destroyed");if(Y){Y(Z);return}throw Z}if(this.minLength<=0){Y?.();return}if(Y)P2.call(this,Y);if(this._writing)return;if(this._bufs.length===0)this._bufs.push("");this._actualWrite()}function V7(Y){if(Y!=null&&typeof Y!=="function")throw Error("flush cb must be a function");if(this.destroyed){let Z=Error("SonicBoom destroyed");if(Y){Y(Z);return}throw Z}if(this.minLength<=0){Y?.();return}if(Y)P2.call(this,Y);if(this._writing)return;if(this._bufs.length===0)this._bufs.push([]),this._lens.push(0);this._actualWrite()}y.prototype.reopen=function(Y){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(Y)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(Y)this.file=Y;if(this._reopening=!0,this._writing)return;let Z=this.fd;this.once("ready",()=>{if(Z!==this.fd)j.close(Z,($)=>{if($)return this.emit("error",$)})}),R2(this.file,this)};y.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(this._ending)return;if(this._ending=!0,this._writing)return;if(this._len>0&&this.fd>=0)this._actualWrite();else q1(this)};function q7(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");if(!this._writing&&this._writingBuf.length>0)this._bufs.unshift(this._writingBuf),this._writingBuf="";let Y="";while(this._bufs.length||Y){if(Y.length<=0)Y=this._bufs[0];try{let Z=j.writeSync(this.fd,Y,"utf8"),$=r1(Y,this._len,Z);if(Y=$.writingBuf,this._len=$.len,Y.length<=0)this._bufs.shift()}catch(Z){if((Z.code==="EAGAIN"||Z.code==="EBUSY")&&!this.retryEAGAIN(Z,Y.length,this._len-Y.length))throw Z;e1(100)}}try{j.fsyncSync(this.fd)}catch{}}function R7(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");if(!this._writing&&this._writingBuf.length>0)this._bufs.unshift([this._writingBuf]),this._writingBuf=V1;let Y=V1;while(this._bufs.length||Y.length){if(Y.length<=0)Y=w2(this._bufs[0],this._lens[0]);try{let Z=j.writeSync(this.fd,Y);if(Y=Y.subarray(Z),this._len=Math.max(this._len-Z,0),Y.length<=0)this._bufs.shift(),this._lens.shift()}catch(Z){if((Z.code==="EAGAIN"||Z.code==="EBUSY")&&!this.retryEAGAIN(Z,Y.length,this._len-Y.length))throw Z;e1(100)}}}y.prototype.destroy=function(){if(this.destroyed)return;q1(this)};function w7(){let Y=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let Z=j.writeSync(this.fd,this._writingBuf,"utf8");Y(null,Z)}catch(Z){Y(Z)}else j.write(this.fd,this._writingBuf,"utf8",Y)}function P7(){let Y=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:w2(this._bufs.shift(),this._lens.shift()),this.sync)try{let Z=j.writeSync(this.fd,this._writingBuf);Y(null,Z)}catch(Z){Y(Z)}else{if(M7)this._writingBuf=Buffer.from(this._writingBuf);j.write(this.fd,this._writingBuf,Y)}}function q1(Y){if(Y.fd===-1){Y.once("ready",q1.bind(null,Y));return}if(Y._periodicFlushTimer!==void 0)clearInterval(Y._periodicFlushTimer);Y.destroyed=!0,Y._bufs=[],Y._lens=[],U7(typeof Y.fd==="number",`sonic.fd must be a number, got ${typeof Y.fd}`);try{j.fsync(Y.fd,Z)}catch{}function Z(){if(Y.fd!==1&&Y.fd!==2)j.close(Y.fd,$);else $()}function $(Q){if(Q){Y.emit("error",Q);return}if(Y._ending&&!Y._writing)Y.emit("finish");Y.emit("close")}}y.SonicBoom=y;y.default=y;D2.exports=y});var Y0=B((g4,T2)=>{var v={exit:[],beforeExit:[]},W2={exit:W7,beforeExit:O7},t;function D7(){if(t===void 0)t=new FinalizationRegistry(B7)}function F7(Y){if(v[Y].length>0)return;process.on(Y,W2[Y])}function O2(Y){if(v[Y].length>0)return;if(process.removeListener(Y,W2[Y]),v.exit.length===0&&v.beforeExit.length===0)t=void 0}function W7(){B2("exit")}function O7(){B2("beforeExit")}function B2(Y){for(let Z of v[Y]){let $=Z.deref(),Q=Z.fn;if($!==void 0)Q($,Y)}v[Y]=[]}function B7(Y){for(let Z of["exit","beforeExit"]){let $=v[Z].indexOf(Y);v[Z].splice($,$+1),O2(Z)}}function _2(Y,Z,$){if(Z===void 0)throw Error("the object can't be undefined");F7(Y);let Q=new WeakRef(Z);Q.fn=$,D7(),t.register(Z,Q),v[Y].push(Q)}function _7(Y,Z){_2("exit",Y,Z)}function T7(Y,Z){_2("beforeExit",Y,Z)}function C7(Y){if(t===void 0)return;t.unregister(Y);for(let Z of["exit","beforeExit"])v[Z]=v[Z].filter(($)=>{let Q=$.deref();return Q&&Q!==Y}),O2(Z)}T2.exports={register:_7,registerBeforeExit:T7,unregister:C7}});var C2=B((d4,E7)=>{E7.exports={name:"thread-stream",version:"3.1.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0","@yao-pkg/pkg":"^5.11.5",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^5.3.2","why-is-node-running":"^2.2.2"},scripts:{build:"tsc --noEmit",test:'standard && npm run build && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts',"test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*","test/syntax-error.mjs"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var j2=B((u4,E2)=>{function j7(Y,Z,$,Q,G){let U=Date.now()+Q,N=Atomics.load(Y,Z);if(N===$){G(null,"ok");return}let H=N,X=(A)=>{if(Date.now()>U)G(null,"timed-out");else setTimeout(()=>{if(H=N,N=Atomics.load(Y,Z),N===H)X(A>=1000?1000:A*2);else if(N===$)G(null,"ok");else G(null,"not-equal")},A)};X(1)}function I7(Y,Z,$,Q,G){let U=Date.now()+Q,N=Atomics.load(Y,Z);if(N!==$){G(null,"ok");return}let H=(X)=>{if(Date.now()>U)G(null,"timed-out");else setTimeout(()=>{if(N=Atomics.load(Y,Z),N!==$)G(null,"ok");else H(X>=1000?1000:X*2)},X)};H(1)}E2.exports={wait:j7,waitDiff:I7}});var L2=B((p4,I2)=>{I2.exports={WRITE_INDEX:4,READ_INDEX:8}});var f2=B((c4,k2)=>{var __dirname="C:\\Users\\alfredo\\Desktop\\veloce-ts-proyecto\\Veloce-TS\\node_modules\\thread-stream",{version:L7}=C2(),{EventEmitter:x7}=require("events"),{Worker:S7}=require("worker_threads"),{join:b7}=require("path"),{pathToFileURL:h7}=require("url"),{wait:k7}=j2(),{WRITE_INDEX:b,READ_INDEX:g}=L2(),f7=require("buffer"),y7=require("assert"),K=Symbol("kImpl"),v7=f7.constants.MAX_STRING_LENGTH;class w1{constructor(Y){this._value=Y}deref(){return this._value}}class $0{register(){}unregister(){}}var g7=process.env.NODE_V8_COVERAGE?$0:global.FinalizationRegistry||$0,d7=process.env.NODE_V8_COVERAGE?w1:global.WeakRef||w1,x2=new g7((Y)=>{if(Y.exited)return;Y.terminate()});function u7(Y,Z){let{filename:$,workerData:Q}=Z,U=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||b7(__dirname,"lib","worker.js"),N=new S7(U,{...Z.workerOpts,trackUnmanagedFds:!1,workerData:{filename:$.indexOf("file://")===0?$:h7($).href,dataBuf:Y[K].dataBuf,stateBuf:Y[K].stateBuf,workerData:{$context:{threadStreamVersion:L7},...Q}}});return N.stream=new w1(Y),N.on("message",p7),N.on("exit",b2),x2.register(Y,N),N}function S2(Y){if(y7(!Y[K].sync),Y[K].needDrain)Y[K].needDrain=!1,Y.emit("drain")}function R1(Y){let Z=Atomics.load(Y[K].state,b),$=Y[K].data.length-Z;if($>0){if(Y[K].buf.length===0){if(Y[K].flushing=!1,Y[K].ending)J0(Y);else if(Y[K].needDrain)process.nextTick(S2,Y);return}let Q=Y[K].buf.slice(0,$),G=Buffer.byteLength(Q);if(G<=$)Y[K].buf=Y[K].buf.slice($),P1(Y,Q,R1.bind(null,Y));else Y.flush(()=>{if(Y.destroyed)return;Atomics.store(Y[K].state,g,0),Atomics.store(Y[K].state,b,0);while(G>Y[K].data.length)$=$/2,Q=Y[K].buf.slice(0,$),G=Buffer.byteLength(Q);Y[K].buf=Y[K].buf.slice($),P1(Y,Q,R1.bind(null,Y))})}else if($===0){if(Z===0&&Y[K].buf.length===0)return;Y.flush(()=>{Atomics.store(Y[K].state,g,0),Atomics.store(Y[K].state,b,0),R1(Y)})}else d(Y,Error("overwritten"))}function p7(Y){let Z=this.stream.deref();if(Z===void 0){this.exited=!0,this.terminate();return}switch(Y.code){case"READY":this.stream=new d7(Z),Z.flush(()=>{Z[K].ready=!0,Z.emit("ready")});break;case"ERROR":d(Z,Y.err);break;case"EVENT":if(Array.isArray(Y.args))Z.emit(Y.name,...Y.args);else Z.emit(Y.name,Y.args);break;case"WARNING":process.emitWarning(Y.err);break;default:d(Z,Error("this should not happen: "+Y.code))}}function b2(Y){let Z=this.stream.deref();if(Z===void 0)return;x2.unregister(Z),Z.worker.exited=!0,Z.worker.off("exit",b2),d(Z,Y!==0?Error("the worker thread exited"):null)}class h2 extends x7{constructor(Y={}){super();if(Y.bufferSize<4)throw Error("bufferSize must at least fit a 4-byte utf-8 char");this[K]={},this[K].stateBuf=new SharedArrayBuffer(128),this[K].state=new Int32Array(this[K].stateBuf),this[K].dataBuf=new SharedArrayBuffer(Y.bufferSize||4194304),this[K].data=Buffer.from(this[K].dataBuf),this[K].sync=Y.sync||!1,this[K].ending=!1,this[K].ended=!1,this[K].needDrain=!1,this[K].destroyed=!1,this[K].flushing=!1,this[K].ready=!1,this[K].finished=!1,this[K].errored=null,this[K].closed=!1,this[K].buf="",this.worker=u7(this,Y),this.on("message",(Z,$)=>{this.worker.postMessage(Z,$)})}write(Y){if(this[K].destroyed)return Q0(this,Error("the worker has exited")),!1;if(this[K].ending)return Q0(this,Error("the worker is ending")),!1;if(this[K].flushing&&this[K].buf.length+Y.length>=v7)try{Z0(this),this[K].flushing=!0}catch(Z){return d(this,Z),!1}if(this[K].buf+=Y,this[K].sync)try{return Z0(this),!0}catch(Z){return d(this,Z),!1}if(!this[K].flushing)this[K].flushing=!0,setImmediate(R1,this);return this[K].needDrain=this[K].data.length-this[K].buf.length-Atomics.load(this[K].state,b)<=0,!this[K].needDrain}end(){if(this[K].destroyed)return;this[K].ending=!0,J0(this)}flush(Y){if(this[K].destroyed){if(typeof Y==="function")process.nextTick(Y,Error("the worker has exited"));return}let Z=Atomics.load(this[K].state,b);k7(this[K].state,g,Z,1/0,($,Q)=>{if($){d(this,$),process.nextTick(Y,$);return}if(Q==="not-equal"){this.flush(Y);return}process.nextTick(Y)})}flushSync(){if(this[K].destroyed)return;Z0(this),G0(this)}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[K].ready}get destroyed(){return this[K].destroyed}get closed(){return this[K].closed}get writable(){return!this[K].destroyed&&!this[K].ending}get writableEnded(){return this[K].ending}get writableFinished(){return this[K].finished}get writableNeedDrain(){return this[K].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[K].errored}}function Q0(Y,Z){setImmediate(()=>{Y.emit("error",Z)})}function d(Y,Z){if(Y[K].destroyed)return;if(Y[K].destroyed=!0,Z)Y[K].errored=Z,Q0(Y,Z);if(!Y.worker.exited)Y.worker.terminate().catch(()=>{}).then(()=>{Y[K].closed=!0,Y.emit("close")});else setImmediate(()=>{Y[K].closed=!0,Y.emit("close")})}function P1(Y,Z,$){let Q=Atomics.load(Y[K].state,b),G=Buffer.byteLength(Z);return Y[K].data.write(Z,Q),Atomics.store(Y[K].state,b,Q+G),Atomics.notify(Y[K].state,b),$(),!0}function J0(Y){if(Y[K].ended||!Y[K].ending||Y[K].flushing)return;Y[K].ended=!0;try{Y.flushSync();let Z=Atomics.load(Y[K].state,g);Atomics.store(Y[K].state,b,-1),Atomics.notify(Y[K].state,b);let $=0;while(Z!==-1){if(Atomics.wait(Y[K].state,g,Z,1000),Z=Atomics.load(Y[K].state,g),Z===-2){d(Y,Error("end() failed"));return}if(++$===10){d(Y,Error("end() took too long (10s)"));return}}process.nextTick(()=>{Y[K].finished=!0,Y.emit("finish")})}catch(Z){d(Y,Z)}}function Z0(Y){let Z=()=>{if(Y[K].ending)J0(Y);else if(Y[K].needDrain)process.nextTick(S2,Y)};Y[K].flushing=!1;while(Y[K].buf.length!==0){let $=Atomics.load(Y[K].state,b),Q=Y[K].data.length-$;if(Q===0){G0(Y),Atomics.store(Y[K].state,g,0),Atomics.store(Y[K].state,b,0);continue}else if(Q<0)throw Error("overwritten");let G=Y[K].buf.slice(0,Q),U=Buffer.byteLength(G);if(U<=Q)Y[K].buf=Y[K].buf.slice(Q),P1(Y,G,Z);else{G0(Y),Atomics.store(Y[K].state,g,0),Atomics.store(Y[K].state,b,0);while(U>Y[K].buf.length)Q=Q/2,G=Y[K].buf.slice(0,Q),U=Buffer.byteLength(G);Y[K].buf=Y[K].buf.slice(Q),P1(Y,G,Z)}}}function G0(Y){if(Y[K].flushing)throw Error("unable to flush while flushing");let Z=Atomics.load(Y[K].state,b),$=0;while(!0){let Q=Atomics.load(Y[K].state,g);if(Q===-2)throw Error("_flushSync failed");if(Q!==Z)Atomics.wait(Y[K].state,g,Q,1000);else break;if(++$===10)throw Error("_flushSync took too long (10s)")}}k2.exports=h2});var H0=B((m4,y2)=>{var __dirname="C:\\Users\\alfredo\\Desktop\\veloce-ts-proyecto\\Veloce-TS\\node_modules\\pino\\lib",{createRequire:c7}=require("module"),m7=n1(),{join:U0,isAbsolute:l7,sep:n7}=require("node:path"),i7=s1(),X0=Y0(),o7=f2();function a7(Y){X0.register(Y,s7),X0.registerBeforeExit(Y,r7),Y.on("close",function(){X0.unregister(Y)})}function t7(Y,Z,$,Q){let G=new o7({filename:Y,workerData:Z,workerOpts:$,sync:Q});G.on("ready",U),G.on("close",function(){process.removeListener("exit",N)}),process.on("exit",N);function U(){if(process.removeListener("exit",N),G.unref(),$.autoEnd!==!1)a7(G)}function N(){if(G.closed)return;G.flushSync(),i7(100),G.end()}return G}function s7(Y){Y.ref(),Y.flushSync(),Y.end(),Y.once("close",function(){Y.unref()})}function r7(Y){Y.flushSync()}function e7(Y){let{pipeline:Z,targets:$,levels:Q,dedupe:G,worker:U={},caller:N=m7(),sync:H=!1}=Y,X={...Y.options},A=typeof N==="string"?[N]:N,z="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},M=Y.target;if(M&&$)throw Error("only one of target or targets can be specified");if($)M=z["pino-worker"]||U0(__dirname,"worker.js"),X.targets=$.filter((V)=>V.target).map((V)=>{return{...V,target:R(V.target)}}),X.pipelines=$.filter((V)=>V.pipeline).map((V)=>{return V.pipeline.map((J)=>{return{...J,level:V.level,target:R(J.target)}})});else if(Z)M=z["pino-worker"]||U0(__dirname,"worker.js"),X.pipelines=[Z.map((V)=>{return{...V,target:R(V.target)}})];if(Q)X.levels=Q;if(G)X.dedupe=G;return X.pinoWillSendConfig=!0,t7(R(M),X,U,H);function R(V){if(V=z[V]||V,l7(V)||V.indexOf("file://")===0)return V;if(V==="pino/file")return U0(__dirname,"..","file.js");let J;for(let q of A)try{let w=q==="node:repl"?process.cwd()+n7:q;J=c7(w).resolve(V);break}catch(w){continue}if(!J)throw Error(`unable to determine transport target for "${V}"`);return J}}y2.exports=e7});var W1=B((l4,t2)=>{var Y6=require("node:diagnostics_channel"),v2=V2(),{mapHttpRequest:Z6,mapHttpResponse:$6}=l1(),N0=F2(),g2=Y0(),{lsCacheSym:Q6,chindingsSym:m2,writeSym:d2,serializersSym:l2,formatOptsSym:u2,endSym:G6,stringifiersSym:n2,stringifySym:i2,stringifySafeSym:K0,wildcardFirstSym:o2,nestedKeySym:J6,formattersSym:a2,messageKeySym:U6,errorKeySym:X6,nestedKeyStrSym:H6,msgPrefixSym:D1}=a(),{isMainThread:M6}=require("worker_threads"),N6=H0(),p2=Y6.tracingChannel("pino_asJson");function s(){}function K6(Y,Z){if(!Z)return $;return function(...G){Z.call(this,G,$,Y)};function $(Q,...G){if(typeof Q==="object"){let U=Q;if(Q!==null){if(Q.method&&Q.headers&&Q.socket)Q=Z6(Q);else if(typeof Q.setHeader==="function")Q=$6(Q)}let N;if(U===null&&G.length===0)N=[null];else U=G.shift(),N=G;if(typeof this[D1]==="string"&&U!==void 0&&U!==null)U=this[D1]+U;this[d2](Q,v2(U,N,this[u2]),Y)}else{let U=Q===void 0?G.shift():Q;if(typeof this[D1]==="string"&&U!==void 0&&U!==null)U=this[D1]+U;this[d2](null,v2(U,G,this[u2]),Y)}}}function M0(Y){let Z="",$=0,Q=!1,G=255,U=Y.length;if(U>100)return JSON.stringify(Y);for(var N=0;N<U&&G>=32;N++)if(G=Y.charCodeAt(N),G===34||G===92)Z+=Y.slice($,N)+"\\",$=N,Q=!0;if(!Q)Z=Y;else Z+=Y.slice($);return G<32?JSON.stringify(Y):'"'+Z+'"'}function A6(Y,Z,$,Q){if(p2.hasSubscribers===!1)return c2.call(this,Y,Z,$,Q);let G={instance:this,arguments};return p2.traceSync(c2,G,this,Y,Z,$,Q)}function c2(Y,Z,$,Q){let G=this[i2],U=this[K0],N=this[n2],H=this[G6],X=this[m2],A=this[l2],z=this[a2],M=this[U6],R=this[X6],V=this[Q6][$]+Q;V=V+X;let J;if(z.log)Y=z.log(Y);let q=N[o2],w="";for(let D in Y)if(J=Y[D],Object.prototype.hasOwnProperty.call(Y,D)&&J!==void 0){if(A[D])J=A[D](J);else if(D===R&&A.err)J=A.err(J);let P=N[D]||q;switch(typeof J){case"undefined":case"function":continue;case"number":if(Number.isFinite(J)===!1)J=null;case"boolean":if(P)J=P(J);break;case"string":J=(P||M0)(J);break;default:J=(P||G)(J,U)}if(J===void 0)continue;let W=M0(D);w+=","+W+":"+J}let F="";if(Z!==void 0){J=A[M]?A[M](Z):Z;let D=N[M]||q;switch(typeof J){case"function":break;case"number":if(Number.isFinite(J)===!1)J=null;case"boolean":if(D)J=D(J);F=',"'+M+'":'+J;break;case"string":J=(D||M0)(J),F=',"'+M+'":'+J;break;default:J=(D||G)(J,U),F=',"'+M+'":'+J}}if(this[J6]&&w)return V+this[H6]+w.slice(1)+"}"+F+H;else return V+w+F+H}function z6(Y,Z){let $,Q=Y[m2],G=Y[i2],U=Y[K0],N=Y[n2],H=N[o2],X=Y[l2],A=Y[a2].bindings;Z=A(Z);for(let z in Z)if($=Z[z],((z.length<5||z!=="level"&&z!=="serializers"&&z!=="formatters"&&z!=="customLevels")&&Z.hasOwnProperty(z)&&$!==void 0)===!0){if($=X[z]?X[z]($):$,$=(N[z]||H||G)($,U),$===void 0)continue;Q+=',"'+z+'":'+$}return Q}function V6(Y){return Y.write!==Y.constructor.prototype.write}function F1(Y){let Z=new N0(Y);if(Z.on("error",$),!Y.sync&&M6)g2.register(Z,q6),Z.on("close",function(){g2.unregister(Z)});return Z;function $(Q){if(Q.code==="EPIPE"){Z.write=s,Z.end=s,Z.flushSync=s,Z.destroy=s;return}Z.removeListener("error",$),Z.emit("error",Q)}}function q6(Y,Z){if(Y.destroyed)return;if(Z==="beforeExit")Y.flush(),Y.on("drain",function(){Y.end()});else Y.flushSync()}function R6(Y){return function($,Q,G={},U){if(typeof G==="string")U=F1({dest:G}),G={};else if(typeof U==="string"){if(G&&G.transport)throw Error("only one of option.transport or stream can be specified");U=F1({dest:U})}else if(G instanceof N0||G.writable||G._writableState)U=G,G={};else if(G.transport){if(G.transport instanceof N0||G.transport.writable||G.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(G.transport.targets&&G.transport.targets.length&&G.formatters&&typeof G.formatters.level==="function")throw Error("option.transport.targets do not allow custom level formatters");let X;if(G.customLevels)X=G.useOnlyCustomLevels?G.customLevels:Object.assign({},G.levels,G.customLevels);U=N6({caller:Q,...G.transport,levels:X})}if(G=Object.assign({},Y,G),G.serializers=Object.assign({},Y.serializers,G.serializers),G.formatters=Object.assign({},Y.formatters,G.formatters),G.prettyPrint)throw Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:N,onChild:H}=G;if(N===!1)G.level="silent";if(!H)G.onChild=s;if(!U)if(!V6(process.stdout))U=F1({fd:process.stdout.fd||1});else U=process.stdout;return{opts:G,stream:U}}}function w6(Y,Z){try{return JSON.stringify(Y)}catch($){try{return(Z||this[K0])(Y)}catch(Q){return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function P6(Y,Z,$){return{level:Y,bindings:Z,log:$}}function D6(Y){let Z=Number(Y);if(typeof Y==="string"&&Number.isFinite(Z))return Z;if(Y===void 0)return 1;return Y}t2.exports={noop:s,buildSafeSonicBoom:F1,asChindings:z6,asJson:A6,genLog:K6,createArgsNormalizer:R6,stringify:w6,buildFormatters:P6,normalizeDestFileDescriptor:D6}});var O1=B((n4,s2)=>{var F6={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},W6={ASC:"ASC",DESC:"DESC"};s2.exports={DEFAULT_LEVELS:F6,SORTING_ORDER:W6}});var V0=B((i4,Z5)=>{var{lsCacheSym:O6,levelValSym:A0,useOnlyCustomLevelsSym:B6,streamSym:_6,formattersSym:T6,hooksSym:C6,levelCompSym:r2}=a(),{noop:E6,genLog:l}=W1(),{DEFAULT_LEVELS:u,SORTING_ORDER:e2}=O1(),Y5={fatal:(Y)=>{let Z=l(u.fatal,Y);return function(...$){let Q=this[_6];if(Z.call(this,...$),typeof Q.flushSync==="function")try{Q.flushSync()}catch(G){}}},error:(Y)=>l(u.error,Y),warn:(Y)=>l(u.warn,Y),info:(Y)=>l(u.info,Y),debug:(Y)=>l(u.debug,Y),trace:(Y)=>l(u.trace,Y)},z0=Object.keys(u).reduce((Y,Z)=>{return Y[u[Z]]=Z,Y},{}),j6=Object.keys(z0).reduce((Y,Z)=>{return Y[Z]='{"level":'+Number(Z),Y},{});function I6(Y){let Z=Y[T6].level,{labels:$}=Y.levels,Q={};for(let G in $){let U=Z($[G],Number(G));Q[G]=JSON.stringify(U).slice(0,-1)}return Y[O6]=Q,Y}function L6(Y,Z){if(Z)return!1;switch(Y){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function x6(Y){let{labels:Z,values:$}=this.levels;if(typeof Y==="number"){if(Z[Y]===void 0)throw Error("unknown level value"+Y);Y=Z[Y]}if($[Y]===void 0)throw Error("unknown level "+Y);let Q=this[A0],G=this[A0]=$[Y],U=this[B6],N=this[r2],H=this[C6].logMethod;for(let X in $){if(N($[X],G)===!1){this[X]=E6;continue}this[X]=L6(X,U)?Y5[X](H):l($[X],H)}this.emit("level-change",Y,G,Z[Q],Q,this)}function S6(Y){let{levels:Z,levelVal:$}=this;return Z&&Z.labels?Z.labels[$]:""}function b6(Y){let{values:Z}=this.levels,$=Z[Y];return $!==void 0&&this[r2]($,this[A0])}function h6(Y,Z,$){if(Y===e2.DESC)return Z<=$;return Z>=$}function k6(Y){if(typeof Y==="string")return h6.bind(null,Y);return Y}function f6(Y=null,Z=!1){let $=Y?Object.keys(Y).reduce((U,N)=>{return U[Y[N]]=N,U},{}):null,Q=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),Z?null:z0,$),G=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),Z?null:u,Y);return{labels:Q,values:G}}function y6(Y,Z,$){if(typeof Y==="number"){if(![].concat(Object.keys(Z||{}).map((U)=>Z[U]),$?[]:Object.keys(z0).map((U)=>+U),1/0).includes(Y))throw Error(`default level:${Y} must be included in custom levels`);return}let Q=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),$?null:u,Z);if(!(Y in Q))throw Error(`default level:${Y} must be included in custom levels`)}function v6(Y,Z){let{labels:$,values:Q}=Y;for(let G in Z){if(G in Q)throw Error("levels cannot be overridden");if(Z[G]in $)throw Error("pre-existing level values cannot be used for new levels")}}function g6(Y){if(typeof Y==="function")return;if(typeof Y==="string"&&Object.values(e2).includes(Y))return;throw Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}Z5.exports={initialLsCache:j6,genLsCache:I6,levelMethods:Y5,getLevel:S6,setLevel:x6,isLevelEnabled:b6,mappings:f6,assertNoLevelCollisions:v6,assertDefaultLevelFound:y6,genLevelComparison:k6,assertLevelComparison:g6}});var q0=B((o4,$5)=>{$5.exports={version:"10.1.0"}});var N5=B((a4,M5)=>{var{EventEmitter:d6}=require("node:events"),{lsCacheSym:u6,levelValSym:p6,setLevelSym:w0,getLevelSym:Q5,chindingsSym:_1,mixinSym:c6,asJsonSym:J5,writeSym:m6,mixinMergeStrategySym:l6,timeSym:n6,timeSliceIndexSym:i6,streamSym:U5,serializersSym:n,formattersSym:Y1,errorKeySym:o6,messageKeySym:a6,useOnlyCustomLevelsSym:t6,needsMetadataGsym:s6,redactFmtSym:r6,stringifySym:e6,formatOptsSym:Y8,stringifiersSym:Z8,msgPrefixSym:P0,hooksSym:$8}=a(),{getLevel:Q8,setLevel:G8,isLevelEnabled:J8,mappings:U8,initialLsCache:X8,genLsCache:H8,assertNoLevelCollisions:M8}=V0(),{asChindings:D0,asJson:N8,buildFormatters:R0,stringify:G5,noop:X5}=W1(),{version:K8}=q0(),A8=a1(),z8=class{},H5={constructor:z8,child:V8,bindings:q8,setBindings:R8,flush:D8,isLevelEnabled:J8,version:K8,get level(){return this[Q5]()},set level(Y){this[w0](Y)},get levelVal(){return this[p6]},set levelVal(Y){throw Error("levelVal is read-only")},get msgPrefix(){return this[P0]},get[Symbol.toStringTag](){return"Pino"},[u6]:X8,[m6]:P8,[J5]:N8,[Q5]:Q8,[w0]:G8};Object.setPrototypeOf(H5,d6.prototype);M5.exports=function(){return Object.create(H5)};var B1=(Y)=>Y;function V8(Y,Z){if(!Y)throw Error("missing bindings for child Pino");let $=this[n],Q=this[Y1],G=Object.create(this);if(Z==null){if(G[Y1].bindings!==B1)G[Y1]=R0(Q.level,B1,Q.log);if(G[_1]=D0(G,Y),this.onChild!==X5)this.onChild(G);return G}if(Z.hasOwnProperty("serializers")===!0){G[n]=Object.create(null);for(let A in $)G[n][A]=$[A];let H=Object.getOwnPropertySymbols($);for(var U=0;U<H.length;U++){let A=H[U];G[n][A]=$[A]}for(let A in Z.serializers)G[n][A]=Z.serializers[A];let X=Object.getOwnPropertySymbols(Z.serializers);for(var N=0;N<X.length;N++){let A=X[N];G[n][A]=Z.serializers[A]}}else G[n]=$;if(Z.hasOwnProperty("formatters")){let{level:H,bindings:X,log:A}=Z.formatters;G[Y1]=R0(H||Q.level,X||B1,A||Q.log)}else G[Y1]=R0(Q.level,B1,Q.log);if(Z.hasOwnProperty("customLevels")===!0)M8(this.levels,Z.customLevels),G.levels=U8(Z.customLevels,G[t6]),H8(G);if(typeof Z.redact==="object"&&Z.redact!==null||Array.isArray(Z.redact)){G.redact=Z.redact;let H=A8(G.redact,G5),X={stringify:H[r6]};G[e6]=G5,G[Z8]=H,G[Y8]=X}if(typeof Z.msgPrefix==="string")G[P0]=(this[P0]||"")+Z.msgPrefix;if(G[_1]=D0(G,Y),Z.level!==void 0&&Z.level!==this.level||Z.hasOwnProperty("customLevels")){let H=Z.level||this.level;G[w0](H)}return this.onChild(G),G}function q8(){let Z=`{${this[_1].substr(1)}}`,$=JSON.parse(Z);return delete $.pid,delete $.hostname,$}function R8(Y){let Z=D0(this,Y);this[_1]=Z}function w8(Y,Z){return Object.assign(Z,Y)}function P8(Y,Z,$){let Q=this[n6](),G=this[c6],U=this[o6],N=this[a6],H=this[l6]||w8,X,A=this[$8].streamWrite;if(Y===void 0||Y===null)X={};else if(Y instanceof Error){if(X={[U]:Y},Z===void 0)Z=Y.message}else if(X=Y,Z===void 0&&Y[N]===void 0&&Y[U])Z=Y[U].message;if(G)X=H(X,G(X,$,this));let z=this[J5](X,Z,$,Q),M=this[U5];if(M[s6]===!0)M.lastLevel=$,M.lastObj=X,M.lastMsg=Z,M.lastTime=Q.slice(this[i6]),M.lastLogger=this;M.write(A?A(z):z)}function D8(Y){if(Y!=null&&typeof Y!=="function")throw Error("callback must be a function");let Z=this[U5];if(typeof Z.flush==="function")Z.flush(Y||X5);else if(Y)Y()}});var V5=B((B0,z5)=>{var{hasOwnProperty:Z1}=Object.prototype,o=O0();o.configure=O0;o.stringify=o;o.default=o;B0.stringify=o;B0.configure=O0;z5.exports=o;var F8=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function c(Y){if(Y.length<5000&&!F8.test(Y))return`"${Y}"`;return JSON.stringify(Y)}function F0(Y,Z){if(Y.length>200||Z)return Y.sort(Z);for(let $=1;$<Y.length;$++){let Q=Y[$],G=$;while(G!==0&&Y[G-1]>Q)Y[G]=Y[G-1],G--;Y[G]=Q}return Y}var W8=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function W0(Y){return W8.call(Y)!==void 0&&Y.length!==0}function K5(Y,Z,$){if(Y.length<$)$=Y.length;let Q=Z===","?"":" ",G=`"0":${Q}${Y[0]}`;for(let U=1;U<$;U++)G+=`${Z}"${U}":${Q}${Y[U]}`;return G}function O8(Y){if(Z1.call(Y,"circularValue")){let Z=Y.circularValue;if(typeof Z==="string")return`"${Z}"`;if(Z==null)return Z;if(Z===Error||Z===TypeError)return{toString(){throw TypeError("Converting circular structure to JSON")}};throw TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function B8(Y){let Z;if(Z1.call(Y,"deterministic")){if(Z=Y.deterministic,typeof Z!=="boolean"&&typeof Z!=="function")throw TypeError('The "deterministic" argument must be of type boolean or comparator function')}return Z===void 0?!0:Z}function _8(Y,Z){let $;if(Z1.call(Y,Z)){if($=Y[Z],typeof $!=="boolean")throw TypeError(`The "${Z}" argument must be of type boolean`)}return $===void 0?!0:$}function A5(Y,Z){let $;if(Z1.call(Y,Z)){if($=Y[Z],typeof $!=="number")throw TypeError(`The "${Z}" argument must be of type number`);if(!Number.isInteger($))throw TypeError(`The "${Z}" argument must be an integer`);if($<1)throw RangeError(`The "${Z}" argument must be >= 1`)}return $===void 0?1/0:$}function i(Y){if(Y===1)return"1 item";return`${Y} items`}function T8(Y){let Z=new Set;for(let $ of Y)if(typeof $==="string"||typeof $==="number")Z.add(String($));return Z}function C8(Y){if(Z1.call(Y,"strict")){let Z=Y.strict;if(typeof Z!=="boolean")throw TypeError('The "strict" argument must be of type boolean');if(Z)return($)=>{let Q=`Object can not safely be stringified. Received type ${typeof $}`;if(typeof $!=="function")Q+=` (${$.toString()})`;throw Error(Q)}}}function O0(Y){Y={...Y};let Z=C8(Y);if(Z){if(Y.bigint===void 0)Y.bigint=!1;if(!("circularValue"in Y))Y.circularValue=Error}let $=O8(Y),Q=_8(Y,"bigint"),G=B8(Y),U=typeof G==="function"?G:void 0,N=A5(Y,"maximumDepth"),H=A5(Y,"maximumBreadth");function X(V,J,q,w,F,D){let P=J[V];if(typeof P==="object"&&P!==null&&typeof P.toJSON==="function")P=P.toJSON(V);switch(P=w.call(J,V,P),typeof P){case"string":return c(P);case"object":{if(P===null)return"null";if(q.indexOf(P)!==-1)return $;let W="",T=",",E=D;if(Array.isArray(P)){if(P.length===0)return"[]";if(N<q.length+1)return'"[Array]"';if(q.push(P),F!=="")D+=F,W+=`
|
|
4
|
+
${D}`,T=`,
|
|
5
|
+
${D}`;let L=Math.min(P.length,H),h=0;for(;h<L-1;h++){let m=X(String(h),P,q,w,F,D);W+=m!==void 0?m:"null",W+=T}let k=X(String(h),P,q,w,F,D);if(W+=k!==void 0?k:"null",P.length-1>H){let m=P.length-H-1;W+=`${T}"... ${i(m)} not stringified"`}if(F!=="")W+=`
|
|
6
|
+
${E}`;return q.pop(),`[${W}]`}let _=Object.keys(P),C=_.length;if(C===0)return"{}";if(N<q.length+1)return'"[Object]"';let O="",I="";if(F!=="")D+=F,T=`,
|
|
7
|
+
${D}`,O=" ";let S=Math.min(C,H);if(G&&!W0(P))_=F0(_,U);q.push(P);for(let L=0;L<S;L++){let h=_[L],k=X(h,P,q,w,F,D);if(k!==void 0)W+=`${I}${c(h)}:${O}${k}`,I=T}if(C>H){let L=C-H;W+=`${I}"...":${O}"${i(L)} not stringified"`,I=T}if(F!==""&&I.length>1)W=`
|
|
8
|
+
${D}${W}
|
|
9
|
+
${E}`;return q.pop(),`{${W}}`}case"number":return isFinite(P)?String(P):Z?Z(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(Q)return String(P);default:return Z?Z(P):void 0}}function A(V,J,q,w,F,D){if(typeof J==="object"&&J!==null&&typeof J.toJSON==="function")J=J.toJSON(V);switch(typeof J){case"string":return c(J);case"object":{if(J===null)return"null";if(q.indexOf(J)!==-1)return $;let P=D,W="",T=",";if(Array.isArray(J)){if(J.length===0)return"[]";if(N<q.length+1)return'"[Array]"';if(q.push(J),F!=="")D+=F,W+=`
|
|
10
|
+
${D}`,T=`,
|
|
11
|
+
${D}`;let C=Math.min(J.length,H),O=0;for(;O<C-1;O++){let S=A(String(O),J[O],q,w,F,D);W+=S!==void 0?S:"null",W+=T}let I=A(String(O),J[O],q,w,F,D);if(W+=I!==void 0?I:"null",J.length-1>H){let S=J.length-H-1;W+=`${T}"... ${i(S)} not stringified"`}if(F!=="")W+=`
|
|
12
|
+
${P}`;return q.pop(),`[${W}]`}q.push(J);let E="";if(F!=="")D+=F,T=`,
|
|
13
|
+
${D}`,E=" ";let _="";for(let C of w){let O=A(C,J[C],q,w,F,D);if(O!==void 0)W+=`${_}${c(C)}:${E}${O}`,_=T}if(F!==""&&_.length>1)W=`
|
|
14
|
+
${D}${W}
|
|
15
|
+
${P}`;return q.pop(),`{${W}}`}case"number":return isFinite(J)?String(J):Z?Z(J):"null";case"boolean":return J===!0?"true":"false";case"undefined":return;case"bigint":if(Q)return String(J);default:return Z?Z(J):void 0}}function z(V,J,q,w,F){switch(typeof J){case"string":return c(J);case"object":{if(J===null)return"null";if(typeof J.toJSON==="function"){if(J=J.toJSON(V),typeof J!=="object")return z(V,J,q,w,F);if(J===null)return"null"}if(q.indexOf(J)!==-1)return $;let D=F;if(Array.isArray(J)){if(J.length===0)return"[]";if(N<q.length+1)return'"[Array]"';q.push(J),F+=w;let O=`
|
|
16
|
+
${F}`,I=`,
|
|
17
|
+
${F}`,S=Math.min(J.length,H),L=0;for(;L<S-1;L++){let k=z(String(L),J[L],q,w,F);O+=k!==void 0?k:"null",O+=I}let h=z(String(L),J[L],q,w,F);if(O+=h!==void 0?h:"null",J.length-1>H){let k=J.length-H-1;O+=`${I}"... ${i(k)} not stringified"`}return O+=`
|
|
18
|
+
${D}`,q.pop(),`[${O}]`}let P=Object.keys(J),W=P.length;if(W===0)return"{}";if(N<q.length+1)return'"[Object]"';F+=w;let T=`,
|
|
19
|
+
${F}`,E="",_="",C=Math.min(W,H);if(W0(J))E+=K5(J,T,H),P=P.slice(J.length),C-=J.length,_=T;if(G)P=F0(P,U);q.push(J);for(let O=0;O<C;O++){let I=P[O],S=z(I,J[I],q,w,F);if(S!==void 0)E+=`${_}${c(I)}: ${S}`,_=T}if(W>H){let O=W-H;E+=`${_}"...": "${i(O)} not stringified"`,_=T}if(_!=="")E=`
|
|
20
|
+
${F}${E}
|
|
21
|
+
${D}`;return q.pop(),`{${E}}`}case"number":return isFinite(J)?String(J):Z?Z(J):"null";case"boolean":return J===!0?"true":"false";case"undefined":return;case"bigint":if(Q)return String(J);default:return Z?Z(J):void 0}}function M(V,J,q){switch(typeof J){case"string":return c(J);case"object":{if(J===null)return"null";if(typeof J.toJSON==="function"){if(J=J.toJSON(V),typeof J!=="object")return M(V,J,q);if(J===null)return"null"}if(q.indexOf(J)!==-1)return $;let w="",F=J.length!==void 0;if(F&&Array.isArray(J)){if(J.length===0)return"[]";if(N<q.length+1)return'"[Array]"';q.push(J);let E=Math.min(J.length,H),_=0;for(;_<E-1;_++){let O=M(String(_),J[_],q);w+=O!==void 0?O:"null",w+=","}let C=M(String(_),J[_],q);if(w+=C!==void 0?C:"null",J.length-1>H){let O=J.length-H-1;w+=`,"... ${i(O)} not stringified"`}return q.pop(),`[${w}]`}let D=Object.keys(J),P=D.length;if(P===0)return"{}";if(N<q.length+1)return'"[Object]"';let W="",T=Math.min(P,H);if(F&&W0(J))w+=K5(J,",",H),D=D.slice(J.length),T-=J.length,W=",";if(G)D=F0(D,U);q.push(J);for(let E=0;E<T;E++){let _=D[E],C=M(_,J[_],q);if(C!==void 0)w+=`${W}${c(_)}:${C}`,W=","}if(P>H){let E=P-H;w+=`${W}"...":"${i(E)} not stringified"`}return q.pop(),`{${w}}`}case"number":return isFinite(J)?String(J):Z?Z(J):"null";case"boolean":return J===!0?"true":"false";case"undefined":return;case"bigint":if(Q)return String(J);default:return Z?Z(J):void 0}}function R(V,J,q){if(arguments.length>1){let w="";if(typeof q==="number")w=" ".repeat(Math.min(q,10));else if(typeof q==="string")w=q.slice(0,10);if(J!=null){if(typeof J==="function")return X("",{"":V},[],J,w,"");if(Array.isArray(J))return A("",V,[],T8(J),w,"")}if(w.length!==0)return z("",V,[],w,"")}return M("",V,[])}return R}});var P5=B((t4,w5)=>{var _0=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:R5}=O1(),E8=R5.info;function j8(Y,Z){Y=Y||[],Z=Z||{dedupe:!1};let $=Object.create(R5);if($.silent=1/0,Z.levels&&typeof Z.levels==="object")Object.keys(Z.levels).forEach((M)=>{$[M]=Z.levels[M]});let Q={write:G,add:H,remove:X,emit:U,flushSync:N,end:A,minLevel:0,lastId:0,streams:[],clone:z,[_0]:!0,streamLevels:$};if(Array.isArray(Y))Y.forEach(H,Q);else H.call(Q,Y);return Y=null,Q;function G(M){let R,V=this.lastLevel,{streams:J}=this,q=0,w;for(let F=I8(J.length,Z.dedupe);x8(F,J.length,Z.dedupe);F=L8(F,Z.dedupe))if(R=J[F],R.level<=V){if(q!==0&&q!==R.level)break;if(w=R.stream,w[_0]){let{lastTime:D,lastMsg:P,lastObj:W,lastLogger:T}=this;w.lastLevel=V,w.lastTime=D,w.lastMsg=P,w.lastObj=W,w.lastLogger=T}if(w.write(M),Z.dedupe)q=R.level}else if(!Z.dedupe)break}function U(...M){for(let{stream:R}of this.streams)if(typeof R.emit==="function")R.emit(...M)}function N(){for(let{stream:M}of this.streams)if(typeof M.flushSync==="function")M.flushSync()}function H(M){if(!M)return Q;let R=typeof M.write==="function"||M.stream,V=M.write?M:M.stream;if(!R)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:J,streamLevels:q}=this,w;if(typeof M.levelVal==="number")w=M.levelVal;else if(typeof M.level==="string")w=q[M.level];else if(typeof M.level==="number")w=M.level;else w=E8;let F={stream:V,level:w,levelVal:void 0,id:++Q.lastId};return J.unshift(F),J.sort(q5),this.minLevel=J[0].level,Q}function X(M){let{streams:R}=this,V=R.findIndex((J)=>J.id===M);if(V>=0)R.splice(V,1),R.sort(q5),this.minLevel=R.length>0?R[0].level:-1;return Q}function A(){for(let{stream:M}of this.streams){if(typeof M.flushSync==="function")M.flushSync();M.end()}}function z(M){let R=Array(this.streams.length);for(let V=0;V<R.length;V++)R[V]={level:M,stream:this.streams[V].stream};return{write:G,add:H,remove:X,minLevel:M,streams:R,clone:z,emit:U,flushSync:N,[_0]:!0}}}function q5(Y,Z){return Y.level-Z.level}function I8(Y,Z){return Z?Y-1:0}function L8(Y,Z){return Z?Y-1:Y+1}function x8(Y,Z,$){return $?Y>=0:Y<Z}w5.exports=j8});var S5=B((s4,f)=>{var S8=require("node:os"),C5=l1(),b8=n1(),h8=a1(),E5=A2(),k8=N5(),j5=a(),{configure:f8}=V5(),{assertDefaultLevelFound:y8,mappings:I5,genLsCache:v8,genLevelComparison:g8,assertLevelComparison:d8}=V0(),{DEFAULT_LEVELS:L5,SORTING_ORDER:u8}=O1(),{createArgsNormalizer:p8,asChindings:c8,buildSafeSonicBoom:D5,buildFormatters:m8,stringify:T0,normalizeDestFileDescriptor:F5,noop:l8}=W1(),{version:n8}=q0(),{chindingsSym:W5,redactFmtSym:i8,serializersSym:O5,timeSym:o8,timeSliceIndexSym:a8,streamSym:t8,stringifySym:B5,stringifySafeSym:C0,stringifiersSym:_5,setLevelSym:s8,endSym:r8,formatOptsSym:e8,messageKeySym:Y4,errorKeySym:Z4,nestedKeySym:$4,mixinSym:Q4,levelCompSym:G4,useOnlyCustomLevelsSym:J4,formattersSym:T5,hooksSym:U4,nestedKeyStrSym:X4,mixinMergeStrategySym:H4,msgPrefixSym:M4}=j5,{epochTime:x5,nullTime:N4}=E5,{pid:K4}=process,A4=S8.hostname(),z4=C5.err,V4={level:"info",levelComparison:u8.ASC,levels:L5,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:K4,hostname:A4},serializers:Object.assign(Object.create(null),{err:z4}),formatters:Object.assign(Object.create(null),{bindings(Y){return Y},level(Y,Z){return{level:Z}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:x5,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},q4=p8(V4),R4=Object.assign(Object.create(null),C5);function E0(...Y){let Z={},{opts:$,stream:Q}=q4(Z,b8(),...Y);if($.level&&typeof $.level==="string"&&L5[$.level.toLowerCase()]!==void 0)$.level=$.level.toLowerCase();let{redact:G,crlf:U,serializers:N,timestamp:H,messageKey:X,errorKey:A,nestedKey:z,base:M,name:R,level:V,customLevels:J,levelComparison:q,mixin:w,mixinMergeStrategy:F,useOnlyCustomLevels:D,formatters:P,hooks:W,depthLimit:T,edgeLimit:E,onChild:_,msgPrefix:C}=$,O=f8({maximumDepth:T,maximumBreadth:E}),I=m8(P.level,P.bindings,P.log),S=T0.bind({[C0]:O}),L=G?h8(G,S):{},h=G?{stringify:L[i8]}:{stringify:S},k="}"+(U?`\r
|
|
22
22
|
`:`
|
|
23
|
-
`),g=p5.bind(null,{[k2]:"",[y2]:M,[v2]:j,[g2]:Q9,[M9]:O,[d2]:L}),r="";if(q!==null)if(D===void 0)r=g(q);else r=g(Object.assign({},q,{name:D}));let l9=J instanceof Function?J:J?l2:wY,k8=l9().indexOf(":")+1;if(K&&!w)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(R&&typeof R!=="function")throw Error(`Unknown mixin type "${typeof R}" - expected "function"`);if(x&&typeof x!=="string")throw Error(`Unknown msgPrefix type "${typeof x}" - expected "string"`);g5(W,w,K);let i9=p2(w,K);if(typeof H.emit==="function")H.emit("message",{code:"PINO_CONFIG",config:{levels:i9,messageKey:X,errorKey:U}});u5(A);let y8=d5(A);return Object.assign(Y,{levels:i9,[QY]:y8,[MY]:K,[r5]:H,[o5]:l9,[s5]:k8,[g2]:Q9,[M9]:O,[v2]:j,[e5]:k,[ZY]:F,[YY]:X,[$Y]:U,[HY]:B,[XY]:B?`,${JSON.stringify(B)}:{`:"",[y2]:M,[GY]:R,[UY]:V,[k2]:r,[d2]:L,[JY]:T,silent:l5,onChild:C,[qY]:x}),Object.setPrototypeOf(Y,k5()),v5(Y),Y[t5](W),Y}v.exports=J9;v.exports.destination=(Z=process.stdout.fd)=>{if(typeof Z==="object")return Z.dest=f2(Z.dest||process.stdout.fd),b2(Z);else return b2({dest:f2(Z),minLength:0})};v.exports.transport=c0();v.exports.multistream=h2();v.exports.levels=p2();v.exports.stdSerializers=AY;v.exports.stdTimeFunctions=Object.assign({},c2);v.exports.symbols=m2;v.exports.version=i5;v.exports.default=J9;v.exports.pino=J9});var U9=_((P)=>{Object.defineProperty(P,"__esModule",{value:!0});var VY=require("tty");function KY(Z){if(Z&&Z.__esModule)return Z;var Y=Object.create(null);if(Z)Object.keys(Z).forEach(function($){if($!=="default"){var H=Object.getOwnPropertyDescriptor(Z,$);Object.defineProperty(Y,$,H.get?H:{enumerable:!0,get:function(){return Z[$]}})}});return Y.default=Z,Object.freeze(Y)}var X9=KY(VY),{env:a={},argv:o2=[],platform:zY=""}=typeof process>"u"?{}:process,FY="NO_COLOR"in a||o2.includes("--no-color"),_Y="FORCE_COLOR"in a||o2.includes("--color"),TY=zY==="win32",s2=a.TERM==="dumb",OY=X9&&X9.isatty&&X9.isatty(1)&&a.TERM&&!s2,PY="CI"in a&&(("GITHUB_ACTIONS"in a)||("GITLAB_CI"in a)||("CIRCLECI"in a)),r2=!FY&&(_Y||TY&&!s2||OY||PY),t2=(Z,Y,$,H,G=Y.substring(0,Z)+H,Q=Y.substring(Z+$.length),M=Q.indexOf($))=>G+(M<0?Q:t2(M,Q,$,H)),IY=(Z,Y,$,H,G)=>Z<0?$+Y+H:$+t2(Z,Y,H,G)+H,EY=(Z,Y,$=Z,H=Z.length+1)=>(G)=>G||!(G===""||G===void 0)?IY((""+G).indexOf(Y,H),G,Z,Y,$):"",E=(Z,Y,$)=>EY(`\x1B[${Z}m`,`\x1B[${Y}m`,$),a2={reset:E(0,0),bold:E(1,22,"\x1B[22m\x1B[1m"),dim:E(2,22,"\x1B[22m\x1B[2m"),italic:E(3,23),underline:E(4,24),inverse:E(7,27),hidden:E(8,28),strikethrough:E(9,29),black:E(30,39),red:E(31,39),green:E(32,39),yellow:E(33,39),blue:E(34,39),magenta:E(35,39),cyan:E(36,39),white:E(37,39),gray:E(90,39),bgBlack:E(40,49),bgRed:E(41,49),bgGreen:E(42,49),bgYellow:E(43,49),bgBlue:E(44,49),bgMagenta:E(45,49),bgCyan:E(46,49),bgWhite:E(47,49),blackBright:E(90,39),redBright:E(91,39),greenBright:E(92,39),yellowBright:E(93,39),blueBright:E(94,39),magentaBright:E(95,39),cyanBright:E(96,39),whiteBright:E(97,39),bgBlackBright:E(100,49),bgRedBright:E(101,49),bgGreenBright:E(102,49),bgYellowBright:E(103,49),bgBlueBright:E(104,49),bgMagentaBright:E(105,49),bgCyanBright:E(106,49),bgWhiteBright:E(107,49)},e2=({useColor:Z=r2}={})=>Z?a2:Object.keys(a2).reduce((Y,$)=>({...Y,[$]:String}),{}),{reset:CY,bold:jY,dim:xY,italic:SY,underline:LY,inverse:hY,hidden:bY,strikethrough:fY,black:kY,red:yY,green:gY,yellow:vY,blue:dY,magenta:uY,cyan:cY,white:mY,gray:pY,bgBlack:nY,bgRed:lY,bgGreen:iY,bgYellow:aY,bgBlue:oY,bgMagenta:sY,bgCyan:rY,bgWhite:tY,blackBright:eY,redBright:Z$,greenBright:Y$,yellowBright:$$,blueBright:H$,magentaBright:G$,cyanBright:Q$,whiteBright:M$,bgBlackBright:J$,bgRedBright:X$,bgGreenBright:U$,bgYellowBright:q$,bgBlueBright:w$,bgMagentaBright:B$,bgCyanBright:W$,bgWhiteBright:D$}=e2();P.bgBlack=nY;P.bgBlackBright=J$;P.bgBlue=oY;P.bgBlueBright=w$;P.bgCyan=rY;P.bgCyanBright=W$;P.bgGreen=iY;P.bgGreenBright=U$;P.bgMagenta=sY;P.bgMagentaBright=B$;P.bgRed=lY;P.bgRedBright=X$;P.bgWhite=tY;P.bgWhiteBright=D$;P.bgYellow=aY;P.bgYellowBright=q$;P.black=kY;P.blackBright=eY;P.blue=dY;P.blueBright=H$;P.bold=jY;P.createColors=e2;P.cyan=cY;P.cyanBright=Q$;P.dim=xY;P.gray=pY;P.green=gY;P.greenBright=Y$;P.hidden=bY;P.inverse=hY;P.isColorSupported=r2;P.italic=SY;P.magenta=uY;P.magentaBright=G$;P.red=yY;P.redBright=Z$;P.reset=CY;P.strikethrough=fY;P.underline=LY;P.white=mY;P.whiteBright=M$;P.yellow=vY;P.yellowBright=$$});var $3=_((fQ,Y3)=>{Y3.exports=Z3;function Z3(Z,Y){if(Z&&Y)return Z3(Z)(Y);if(typeof Z!=="function")throw TypeError("need wrapper function");return Object.keys(Z).forEach(function(H){$[H]=Z[H]}),$;function $(){var H=Array(arguments.length);for(var G=0;G<H.length;G++)H[G]=arguments[G];var Q=Z.apply(this,H),M=H[H.length-1];if(typeof Q==="function"&&Q!==M)Object.keys(M).forEach(function(J){Q[J]=M[J]});return Q}}});var w9=_((kQ,q9)=>{var H3=$3();q9.exports=H3(n1);q9.exports.strict=H3(G3);n1.proto=n1(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n1(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return G3(this)},configurable:!0})});function n1(Z){var Y=function(){if(Y.called)return Y.value;return Y.called=!0,Y.value=Z.apply(this,arguments)};return Y.called=!1,Y}function G3(Z){var Y=function(){if(Y.called)throw Error(Y.onceError);return Y.called=!0,Y.value=Z.apply(this,arguments)},$=Z.name||"Function wrapped with `once`";return Y.onceError=$+" shouldn't be called more than once",Y.called=!1,Y}});var J3=_((yQ,M3)=>{var N$=w9(),R$=function(){},A$=global.Bare?queueMicrotask:process.nextTick.bind(process),V$=function(Z){return Z.setHeader&&typeof Z.abort==="function"},K$=function(Z){return Z.stdio&&Array.isArray(Z.stdio)&&Z.stdio.length===3},Q3=function(Z,Y,$){if(typeof Y==="function")return Q3(Z,null,Y);if(!Y)Y={};$=N$($||R$);var{_writableState:H,_readableState:G}=Z,Q=Y.readable||Y.readable!==!1&&Z.readable,M=Y.writable||Y.writable!==!1&&Z.writable,J=!1,X=function(){if(!Z.writable)U()},U=function(){if(M=!1,!Q)$.call(Z)},B=function(){if(Q=!1,!M)$.call(Z)},q=function(R){$.call(Z,R?Error("exited with error code: "+R):null)},D=function(R){$.call(Z,R)},W=function(){A$(w)},w=function(){if(J)return;if(Q&&!(G&&(G.ended&&!G.destroyed)))return $.call(Z,Error("premature close"));if(M&&!(H&&(H.ended&&!H.destroyed)))return $.call(Z,Error("premature close"))},A=function(){Z.req.on("finish",U)};if(V$(Z))if(Z.on("complete",U),Z.on("abort",W),Z.req)A();else Z.on("request",A);else if(M&&!H)Z.on("end",X),Z.on("close",X);if(K$(Z))Z.on("exit",q);if(Z.on("end",B),Z.on("finish",U),Y.error!==!1)Z.on("error",D);return Z.on("close",W),function(){if(J=!0,Z.removeListener("complete",U),Z.removeListener("abort",W),Z.removeListener("request",A),Z.req)Z.req.removeListener("finish",U);Z.removeListener("end",X),Z.removeListener("close",X),Z.removeListener("finish",U),Z.removeListener("exit",q),Z.removeListener("end",B),Z.removeListener("error",D),Z.removeListener("close",W)}};M3.exports=Q3});var q3=_((gQ,U3)=>{var z$=w9(),F$=J3(),l1;try{l1=require("fs")}catch(Z){}var R1=function(){},_$=typeof process>"u"?!1:/^v?\.0/.test(process.version),i1=function(Z){return typeof Z==="function"},T$=function(Z){if(!_$)return!1;if(!l1)return!1;return(Z instanceof(l1.ReadStream||R1)||Z instanceof(l1.WriteStream||R1))&&i1(Z.close)},O$=function(Z){return Z.setHeader&&i1(Z.abort)},P$=function(Z,Y,$,H){H=z$(H);var G=!1;Z.on("close",function(){G=!0}),F$(Z,{readable:Y,writable:$},function(M){if(M)return H(M);G=!0,H()});var Q=!1;return function(M){if(G)return;if(Q)return;if(Q=!0,T$(Z))return Z.close(R1);if(O$(Z))return Z.abort();if(i1(Z.destroy))return Z.destroy();H(M||Error("stream was destroyed"))}},X3=function(Z){Z()},I$=function(Z,Y){return Z.pipe(Y)},E$=function(){var Z=Array.prototype.slice.call(arguments),Y=i1(Z[Z.length-1]||R1)&&Z.pop()||R1;if(Array.isArray(Z[0]))Z=Z[0];if(Z.length<2)throw Error("pump requires two streams per minimum");var $,H=Z.map(function(G,Q){var M=Q<Z.length-1,J=Q>0;return P$(G,M,J,function(X){if(!$)$=X;if(X)H.forEach(X3);if(M)return;H.forEach(X3),Y($)})});return Z.reduce(I$)};U3.exports=E$});var D3=_((vQ,W3)=>{var{Transform:C$}=require("stream"),{StringDecoder:j$}=require("string_decoder"),o=Symbol("last"),a1=Symbol("decoder");function x$(Z,Y,$){let H;if(this.overflow){if(H=this[a1].write(Z).split(this.matcher),H.length===1)return $();H.shift(),this.overflow=!1}else this[o]+=this[a1].write(Z),H=this[o].split(this.matcher);this[o]=H.pop();for(let G=0;G<H.length;G++)try{B3(this,this.mapper(H[G]))}catch(Q){return $(Q)}if(this.overflow=this[o].length>this.maxLength,this.overflow&&!this.skipOverflow){$(Error("maximum buffer reached"));return}$()}function S$(Z){if(this[o]+=this[a1].end(),this[o])try{B3(this,this.mapper(this[o]))}catch(Y){return Z(Y)}Z()}function B3(Z,Y){if(Y!==void 0)Z.push(Y)}function w3(Z){return Z}function L$(Z,Y,$){switch(Z=Z||/\r?\n/,Y=Y||w3,$=$||{},arguments.length){case 1:if(typeof Z==="function")Y=Z,Z=/\r?\n/;else if(typeof Z==="object"&&!(Z instanceof RegExp)&&!Z[Symbol.split])$=Z,Z=/\r?\n/;break;case 2:if(typeof Z==="function")$=Y,Y=Z,Z=/\r?\n/;else if(typeof Y==="object")$=Y,Y=w3}$=Object.assign({},$),$.autoDestroy=!0,$.transform=x$,$.flush=S$,$.readableObjectMode=!0;let H=new C$($);return H[o]="",H[a1]=new j$("utf8"),H.matcher=Z,H.mapper=Y,H.maxLength=$.maxLength,H.skipOverflow=$.skipOverflow||!1,H.overflow=!1,H._destroy=function(G,Q){this._writableState.errorEmitted=!1,Q(G)},H}W3.exports=L$});var K3=_((dQ,V3)=>{var N3=Symbol.for("pino.metadata"),h$=D3(),{Duplex:b$}=require("stream"),{parentPort:R3,workerData:A3}=require("worker_threads");function f$(){let Z,Y,$=new Promise((H,G)=>{Z=H,Y=G});return $.resolve=Z,$.reject=Y,$}V3.exports=function(Y,$={}){let H=$.expectPinoConfig===!0&&A3?.workerData?.pinoWillSendConfig===!0,G=$.parse==="lines",Q=typeof $.parseLine==="function"?$.parseLine:JSON.parse,M=$.close||k$,J=h$(function(U){let B;try{B=Q(U)}catch(q){this.emit("unknown",U,q);return}if(B===null){this.emit("unknown",U,"Null value ignored");return}if(typeof B!=="object")B={data:B,time:Date.now()};if(J[N3])J.lastTime=B.time,J.lastLevel=B.level,J.lastObj=B;if(G)return U;return B},{autoDestroy:!0});if(J._destroy=function(U,B){let q=M(U,B);if(q&&typeof q.then==="function")q.then(B,B)},$.expectPinoConfig===!0&&A3?.workerData?.pinoWillSendConfig!==!0)setImmediate(()=>{J.emit("error",Error("This transport is not compatible with the current version of pino. Please upgrade pino to the latest version."))});if($.metadata!==!1)J[N3]=!0,J.lastTime=0,J.lastLevel=0,J.lastObj=null;if(H){let U={},B=f$();return R3.on("message",function q(D){if(D.code==="PINO_CONFIG")U=D.config,B.resolve(),R3.off("message",q)}),Object.defineProperties(J,{levels:{get(){return U.levels}},messageKey:{get(){return U.messageKey}},errorKey:{get(){return U.errorKey}}}),B.then(X)}return X();function X(){let U=Y(J);if(U&&typeof U.catch==="function")U.catch((B)=>{J.destroy(B)}),U=null;else if($.enablePipelining&&U)return b$.from({writable:J,readable:U});return J}};function k$(Z,Y){process.nextTick(Y,Z)}});var l=_((uQ,z3)=>{z3.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",DATE_FORMAT_SIMPLE:"HH:MM:ss.l",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}});var o1=_((cQ,T3)=>{T3.exports=y$;var{LEVELS:F3,LEVEL_NAMES:_3}=l();function y$(Z,Y,$){let H=Z?Y||F3:Object.assign({},F3,Y),G=Z?$||_3:Object.assign({},_3,$);return function(Q){let M="default";if(Number.isInteger(+Q))M=Object.prototype.hasOwnProperty.call(H,Q)?Q:M;else M=Object.prototype.hasOwnProperty.call(G,Q.toLowerCase())?G[Q.toLowerCase()]:M;return[H[M],M]}}});var N9=_((mQ,E3)=>{var n=(Z)=>Z,s1={default:n,60:n,50:n,40:n,30:n,20:n,10:n,message:n,greyMessage:n,property:n},{createColors:O3}=U9(),g$=o1(),V1=O3({useColor:!0}),{white:B9,bgRed:v$,red:d$,yellow:u$,green:c$,blue:m$,gray:W9,cyan:P3,magenta:I3}=V1,A1={default:B9,60:v$,50:d$,40:u$,30:c$,20:m$,10:W9,message:P3,greyMessage:W9,property:I3};function p$(Z){return Z.reduce(function(Y,[$,H]){return Y[$]=typeof V1[H]==="function"?V1[H]:B9,Y},{default:B9,message:P3,greyMessage:W9,property:I3})}function D9(Z){return function(Y,$,{customLevels:H,customLevelNames:G}={}){let[Q,M]=g$(Z,H,G)(Y);return Object.prototype.hasOwnProperty.call($,M)?$[M](Q):$.default(Q)}}function n$(Z){let Y=D9(Z),$=function(H,G){return Y(H,s1,G)};return $.message=s1.message,$.greyMessage=s1.greyMessage,$.property=s1.property,$.colors=O3({useColor:!1}),$}function l$(Z){let Y=D9(Z),$=function(H,G){return Y(H,A1,G)};return $.message=A1.message,$.property=A1.property,$.greyMessage=A1.greyMessage,$.colors=V1,$}function i$(Z,Y){let $=p$(Z),H=Y?$:Object.assign({},A1,$),G=D9(Y),Q=function(M,J){return G(M,H,J)};return Q.colors=V1,Q.message=Q.message||H.message,Q.property=Q.property||H.property,Q.greyMessage=Q.greyMessage||H.greyMessage,Q}E3.exports=function(Y=!1,$,H){if(Y&&$!==void 0)return i$($,H);else if(Y)return l$(H);return n$(H)}});var R9=_((pQ,C3)=>{C3.exports=function(){}});var x3=_((nQ,j3)=>{j3.exports=s$;var{isMainThread:a$}=require("node:worker_threads"),o$=b0(),r1=R9();function s$(Z){let Y=new o$(Z);if(Y.on("error",$),!Z.sync&&a$)r$(Y);return Y;function $(H){if(H.code==="EPIPE"){Y.write=r1,Y.end=r1,Y.flushSync=r1,Y.destroy=r1;return}Y.removeListener("error",$)}}function r$(Z){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let Y=f1();Y.register(Z,t$),Z.on("close",function(){Y.unregister(Z)})}}function t$(Z,Y){if(Z.destroyed)return;if(Y==="beforeExit")Z.flush(),Z.on("drain",function(){Z.end()});else Z.flushSync()}});var t1=_((lQ,S3)=>{S3.exports=e$;function e$(Z){return Z instanceof Date&&!Number.isNaN(Z.getTime())}});var A9=_((iQ,L3)=>{L3.exports=YH;var ZH=t1();function YH(Z){let Y=new Date(Z);if(ZH(Y))return Y;return Y=new Date(+Z),Y}});var e1=_((aQ,h3)=>{h3.exports=$H;function $H(Z){let Y=[],$=!1,H="";for(let G=0;G<Z.length;G++){let Q=Z.charAt(G);if(Q==="\\"){$=!0;continue}if($){$=!1,H+=Q;continue}if(Q==="."){Y.push(H),H="";continue}H+=Q}if(H.length)Y.push(H);return Y}});var J1=_((oQ,b3)=>{b3.exports=GH;var HH=e1();function GH(Z,Y){let $=Array.isArray(Y)?Y:HH(Y);for(let H of $){if(!Object.prototype.hasOwnProperty.call(Z,H))return;Z=Z[H]}return Z}});var V9=_((sQ,f3)=>{f3.exports=JH;var QH=J1(),MH=e1();function JH(Z,Y){let $=MH(Y),H=$.pop();if(Z=QH(Z,$),Z!==null&&typeof Z==="object"&&Object.prototype.hasOwnProperty.call(Z,H))delete Z[H]}});var l3=_((X1)=>{Object.defineProperty(X1,"__esModule",{value:!0});var XH=Function.prototype.toString,K9=Object.create,UH=Object.prototype.toString,qH=function(){function Z(){this._keys=[],this._values=[]}return Z.prototype.has=function(Y){return!!~this._keys.indexOf(Y)},Z.prototype.get=function(Y){return this._values[this._keys.indexOf(Y)]},Z.prototype.set=function(Y,$){this._keys.push(Y),this._values.push($)},Z}();function wH(){return new qH}function BH(){return new WeakMap}var WH=typeof WeakMap<"u"?BH:wH;function F9(Z){if(!Z)return K9(null);var Y=Z.constructor;if(Y===Object)return Z===Object.prototype?{}:K9(Z);if(Y&&~XH.call(Y).indexOf("[native code]"))try{return new Y}catch($){}return K9(Z)}function DH(Z){var Y="";if(Z.global)Y+="g";if(Z.ignoreCase)Y+="i";if(Z.multiline)Y+="m";if(Z.unicode)Y+="u";if(Z.sticky)Y+="y";return Y}function NH(Z){return Z.flags}var RH=/test/g.flags==="g"?NH:DH;function k3(Z){var Y=UH.call(Z);return Y.substring(8,Y.length-1)}function AH(Z){return Z[Symbol.toStringTag]||k3(Z)}var VH=typeof Symbol<"u"?AH:k3,KH=Object.defineProperty,zH=Object.getOwnPropertyDescriptor,y3=Object.getOwnPropertyNames,_9=Object.getOwnPropertySymbols,g3=Object.prototype,v3=g3.hasOwnProperty,FH=g3.propertyIsEnumerable,d3=typeof _9==="function";function _H(Z){return y3(Z).concat(_9(Z))}var TH=d3?_H:y3;function Y0(Z,Y,$){var H=TH(Z);for(var G=0,Q=H.length,M=void 0,J=void 0;G<Q;++G){if(M=H[G],M==="callee"||M==="caller")continue;if(J=zH(Z,M),!J){Y[M]=$.copier(Z[M],$);continue}if(!J.get&&!J.set)J.value=$.copier(J.value,$);try{KH(Y,M,J)}catch(X){Y[M]=J.value}}return Y}function OH(Z,Y){var $=new Y.Constructor;Y.cache.set(Z,$);for(var H=0,G=Z.length;H<G;++H)$[H]=Y.copier(Z[H],Y);return $}function PH(Z,Y){var $=new Y.Constructor;return Y.cache.set(Z,$),Y0(Z,$,Y)}function u3(Z,Y){return Z.slice(0)}function IH(Z,Y){return Z.slice(0,Z.size,Z.type)}function EH(Z,Y){return new Y.Constructor(u3(Z.buffer))}function CH(Z,Y){return new Y.Constructor(Z.getTime())}function c3(Z,Y){var $=new Y.Constructor;return Y.cache.set(Z,$),Z.forEach(function(H,G){$.set(G,Y.copier(H,Y))}),$}function jH(Z,Y){return Y0(Z,c3(Z,Y),Y)}function xH(Z,Y){var $=F9(Y.prototype);Y.cache.set(Z,$);for(var H in Z)if(v3.call(Z,H))$[H]=Y.copier(Z[H],Y);return $}function SH(Z,Y){var $=F9(Y.prototype);Y.cache.set(Z,$);for(var H in Z)if(v3.call(Z,H))$[H]=Y.copier(Z[H],Y);var G=_9(Z);for(var Q=0,M=G.length,J=void 0;Q<M;++Q)if(J=G[Q],FH.call(Z,J))$[J]=Y.copier(Z[J],Y);return $}var LH=d3?SH:xH;function hH(Z,Y){var $=F9(Y.prototype);return Y.cache.set(Z,$),Y0(Z,$,Y)}function z9(Z,Y){return new Y.Constructor(Z.valueOf())}function bH(Z,Y){var $=new Y.Constructor(Z.source,RH(Z));return $.lastIndex=Z.lastIndex,$}function Z0(Z,Y){return Z}function m3(Z,Y){var $=new Y.Constructor;return Y.cache.set(Z,$),Z.forEach(function(H){$.add(Y.copier(H,Y))}),$}function fH(Z,Y){return Y0(Z,m3(Z,Y),Y)}var kH=Array.isArray,T9=Object.assign,yH=Object.getPrototypeOf||function(Z){return Z.__proto__},p3={array:OH,arrayBuffer:u3,blob:IH,dataView:EH,date:CH,error:Z0,map:c3,object:LH,regExp:bH,set:m3},gH=T9({},p3,{array:PH,map:jH,object:hH,set:fH});function vH(Z){return{Arguments:Z.object,Array:Z.array,ArrayBuffer:Z.arrayBuffer,Blob:Z.blob,Boolean:z9,DataView:Z.dataView,Date:Z.date,Error:Z.error,Float32Array:Z.arrayBuffer,Float64Array:Z.arrayBuffer,Int8Array:Z.arrayBuffer,Int16Array:Z.arrayBuffer,Int32Array:Z.arrayBuffer,Map:Z.map,Number:z9,Object:Z.object,Promise:Z0,RegExp:Z.regExp,Set:Z.set,String:z9,WeakMap:Z0,WeakSet:Z0,Uint8Array:Z.arrayBuffer,Uint8ClampedArray:Z.arrayBuffer,Uint16Array:Z.arrayBuffer,Uint32Array:Z.arrayBuffer,Uint64Array:Z.arrayBuffer}}function O9(Z){var Y=T9({},p3,Z),$=vH(Y),H=$.Array,G=$.Object;function Q(M,J){if(J.prototype=J.Constructor=void 0,!M||typeof M!=="object")return M;if(J.cache.has(M))return J.cache.get(M);if(J.prototype=yH(M),J.Constructor=J.prototype&&J.prototype.constructor,!J.Constructor||J.Constructor===Object)return G(M,J);if(kH(M))return H(M,J);var X=$[VH(M)];if(X)return X(M,J);return typeof M.then==="function"?M:G(M,J)}return function(J){return Q(J,{Constructor:void 0,cache:WH(),copier:Q,prototype:void 0})}}function n3(Z){return O9(T9({},gH,Z))}var dH=n3({}),uH=O9({});X1.copyStrict=dH;X1.createCopier=O9;X1.createStrictCopier=n3;X1.default=uH});var P9=_((tQ,i3)=>{i3.exports=nH;var{createCopier:cH}=l3(),mH=cH({}),pH=V9();function nH({log:Z,context:Y}){let{ignoreKeys:$,includeKeys:H}=Y,G=mH(Z);if(H){let Q={};return H.forEach((M)=>{Q[M]=G[M]}),Q}return $.forEach((Q)=>{pH(G,Q)}),G}});var o3=_((I9,a3)=>{function U1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")U1=function($){return typeof $};else U1=function($){return $&&typeof Symbol==="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $};return U1(Z)}(function(Z){var Y=arguments,$=function(){var X=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,U=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,B=/[^-+\dA-Z]/g;return function(q,D,W,w){if(Y.length===1&&J(q)==="string"&&!/\d/.test(q))D=q,q=void 0;if(q=q||q===0?q:new Date,!(q instanceof Date))q=new Date(q);if(isNaN(q))throw TypeError("Invalid date");D=String($.masks[D]||D||$.masks.default);var A=D.slice(0,4);if(A==="UTC:"||A==="GMT:"){if(D=D.slice(4),W=!0,A==="GMT:")w=!0}var R=function(){return W?"getUTC":"get"},V=function(){return q[R()+"Date"]()},K=function(){return q[R()+"Day"]()},z=function(){return q[R()+"Month"]()},T=function(){return q[R()+"FullYear"]()},I=function(){return q[R()+"Hours"]()},S=function(){return q[R()+"Minutes"]()},C=function(){return q[R()+"Seconds"]()},x=function(){return q[R()+"Milliseconds"]()},O=function(){return W?0:q.getTimezoneOffset()},L=function(){return Q(q)},h=function(){return M(q)},j={d:function(){return V()},dd:function(){return H(V())},ddd:function(){return $.i18n.dayNames[K()]},DDD:function(){return G({y:T(),m:z(),d:V(),_:R(),dayName:$.i18n.dayNames[K()],short:!0})},dddd:function(){return $.i18n.dayNames[K()+7]},DDDD:function(){return G({y:T(),m:z(),d:V(),_:R(),dayName:$.i18n.dayNames[K()+7]})},m:function(){return z()+1},mm:function(){return H(z()+1)},mmm:function(){return $.i18n.monthNames[z()]},mmmm:function(){return $.i18n.monthNames[z()+12]},yy:function(){return String(T()).slice(2)},yyyy:function(){return H(T(),4)},h:function(){return I()%12||12},hh:function(){return H(I()%12||12)},H:function(){return I()},HH:function(){return H(I())},M:function(){return S()},MM:function(){return H(S())},s:function(){return C()},ss:function(){return H(C())},l:function(){return H(x(),3)},L:function(){return H(Math.floor(x()/10))},t:function(){return I()<12?$.i18n.timeNames[0]:$.i18n.timeNames[1]},tt:function(){return I()<12?$.i18n.timeNames[2]:$.i18n.timeNames[3]},T:function(){return I()<12?$.i18n.timeNames[4]:$.i18n.timeNames[5]},TT:function(){return I()<12?$.i18n.timeNames[6]:$.i18n.timeNames[7]},Z:function(){return w?"GMT":W?"UTC":(String(q).match(U)||[""]).pop().replace(B,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+H(Math.floor(Math.abs(O())/60)*100+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+H(Math.floor(Math.abs(O())/60),2)+":"+H(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][V()%10>3?0:(V()%100-V()%10!=10)*V()%10]},W:function(){return L()},WW:function(){return H(L())},N:function(){return h()}};return D.replace(X,function(F){if(F in j)return j[F]();return F.slice(1,F.length-1)})}}();$.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},$.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var H=function(U,B){U=String(U),B=B||2;while(U.length<B)U="0"+U;return U},G=function(U){var{y:B,m:q,d:D,_:W,dayName:w,short:A}=U,R=A===void 0?!1:A,V=new Date,K=new Date;K.setDate(K[W+"Date"]()-1);var z=new Date;z.setDate(z[W+"Date"]()+1);var T=function(){return V[W+"Date"]()},I=function(){return V[W+"Month"]()},S=function(){return V[W+"FullYear"]()},C=function(){return K[W+"Date"]()},x=function(){return K[W+"Month"]()},O=function(){return K[W+"FullYear"]()},L=function(){return z[W+"Date"]()},h=function(){return z[W+"Month"]()},j=function(){return z[W+"FullYear"]()};if(S()===B&&I()===q&&T()===D)return R?"Tdy":"Today";else if(O()===B&&x()===q&&C()===D)return R?"Ysd":"Yesterday";else if(j()===B&&h()===q&&L()===D)return R?"Tmw":"Tomorrow";return w},Q=function(U){var B=new Date(U.getFullYear(),U.getMonth(),U.getDate());B.setDate(B.getDate()-(B.getDay()+6)%7+3);var q=new Date(B.getFullYear(),0,4);q.setDate(q.getDate()-(q.getDay()+6)%7+3);var D=B.getTimezoneOffset()-q.getTimezoneOffset();B.setHours(B.getHours()-D);var W=(B-q)/604800000;return 1+Math.floor(W)},M=function(U){var B=U.getDay();if(B===0)B=7;return B},J=function(U){if(U===null)return"null";if(U===void 0)return"undefined";if(U1(U)!=="object")return U1(U);if(Array.isArray(U))return"array";return{}.toString.call(U).slice(8,-1).toLowerCase()};if(typeof define==="function"&&define.amd)define(function(){return $});else if((typeof I9>"u"?"undefined":U1(I9))==="object")a3.exports=$;else Z.dateFormat=$})(void 0)});var E9=_((eQ,s3)=>{s3.exports=sH;var{DATE_FORMAT:lH,DATE_FORMAT_SIMPLE:iH}=l(),K1=o3(),aH=A9(),oH=t1();function sH(Z,Y=!1){if(Y===!1)return Z;let $=aH(Z);if(!oH($))return Z;if(Y===!0)return K1($,iH);let H=Y.toUpperCase();if(H==="SYS:STANDARD")return K1($,lH);let G=H.substr(0,4);if(G==="SYS:"||G==="UTC:"){if(G==="UTC:")return K1($,Y);return K1($,Y.slice(4))}return K1($,`UTC:${Y}`)}});var C9=_((ZM,r3)=>{r3.exports=rH;function rH(Z){if(!Z)return{};if(typeof Z==="string")return Z.split(",").reduce((Y,$,H)=>{let[G,Q=H]=$.split(":");return Y[G.toLowerCase()]=Q,Y},{});else if(Object.prototype.toString.call(Z)==="[object Object]")return Object.keys(Z).reduce((Y,$)=>{return Y[$.toLowerCase()]=Z[$],Y},{});else return{}}});var j9=_((YM,t3)=>{t3.exports=tH;function tH(Z){if(!Z)return{};if(typeof Z==="string")return Z.split(",").reduce((Y,$,H)=>{let[G,Q=H]=$.split(":");return Y[Q]=G.toUpperCase(),Y},{default:"USERLVL"});else if(Object.prototype.toString.call(Z)==="[object Object]")return Object.keys(Z).reduce((Y,$)=>{return Y[Z[$]]=$.toUpperCase(),Y},{default:"USERLVL"});else return{}}});var x9=_(($M,e3)=>{e3.exports=ZG;var eH=J1();function ZG(Z,Y){return Z=Z.replace(/{if (.*?)}(.*?){end}/g,$),Z=Z.replace(/{if (.*?)}/g,""),Z=Z.replace(/{end}/g,""),Z.replace(/\s+/g," ").trim();function $(H,G,Q){let M=eH(Y,G);if(M&&Q.includes(G))return Q.replace(new RegExp("{"+G+"}","g"),M);else return""}}});var $0=_((HM,Z8)=>{Z8.exports=YG;function YG(Z){return Object.prototype.toString.apply(Z)==="[object Object]"}});var z1=_((GM,Y8)=>{Y8.exports=$G;function $G({input:Z,ident:Y=" ",eol:$=`
|
|
24
|
-
`
|
|
25
|
-
`:`
|
|
26
|
-
`,$=" ",{customPrettifiers:H,errorLikeObjectKeys:G,hideObject:Q,levelFirst:M,levelKey:J,levelLabel:X,messageFormat:U,messageKey:B,minimumLevel:q,singleLine:D,timestampKey:W,translateTime:w}=Z,A=Z.errorProps.split(","),R=typeof Z.useOnlyCustomProps==="boolean"?Z.useOnlyCustomProps:Z.useOnlyCustomProps==="true",V=HG(Z.customLevels),K=GG(Z.customLevels),z=QG(R,V,K),T;if(Z.customColors)if(typeof Z.customColors==="string")T=Z.customColors.split(",").reduce((L,h)=>{let[j,F]=h.split(":"),g=(R?Z.customLevels:K[j]!==void 0)?K[j]:$8[j],r=g!==void 0?g:j;return L.push([r,F]),L},[]);else if(typeof Z.customColors==="object")T=Object.keys(Z.customColors).reduce((L,h)=>{let[j,F]=[h,Z.customColors[h]],g=(R?Z.customLevels:K[j]!==void 0)?K[j]:$8[j],r=g!==void 0?g:j;return L.push([r,F]),L},[]);else throw Error("options.customColors must be of type string or object.");let I={customLevels:V,customLevelNames:K};if(R===!0&&!Z.customLevels)I.customLevels=void 0,I.customLevelNames=void 0;let S=Z.include!==void 0?new Set(Z.include.split(",")):void 0,C=!S&&Z.ignore?new Set(Z.ignore.split(",")):void 0,x=H8(Z.colorize,T,R),O=Z.colorizeObjects?x:H8(!1,[],!1);return{EOL:Y,IDENT:" ",colorizer:x,customColors:T,customLevelNames:K,customLevels:V,customPrettifiers:H,customProperties:I,errorLikeObjectKeys:G,errorProps:A,getLevelLabelData:z,hideObject:Q,ignoreKeys:C,includeKeys:S,levelFirst:M,levelKey:J,levelLabel:X,messageFormat:U,messageKey:B,minimumLevel:q,objectColorizer:O,singleLine:D,timestampKey:W,translateTime:w,useOnlyCustomProps:R}}});var w8=_((MM,q8)=>{q8.exports=F1;F1.default=F1;F1.stable=X8;F1.stableStringify=X8;var H0="[...]",M8="[Circular]",H1=[],$1=[];function J8(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function F1(Z,Y,$,H){if(typeof H>"u")H=J8();S9(Z,"",0,[],void 0,0,H);var G;try{if($1.length===0)G=JSON.stringify(Z,Y,$);else G=JSON.stringify(Z,U8(Y),$)}catch(M){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(H1.length!==0){var Q=H1.pop();if(Q.length===4)Object.defineProperty(Q[0],Q[1],Q[3]);else Q[0][Q[1]]=Q[2]}}return G}function q1(Z,Y,$,H){var G=Object.getOwnPropertyDescriptor(H,$);if(G.get!==void 0)if(G.configurable)Object.defineProperty(H,$,{value:Z}),H1.push([H,$,Y,G]);else $1.push([Y,$,Z]);else H[$]=Z,H1.push([H,$,Y])}function S9(Z,Y,$,H,G,Q,M){Q+=1;var J;if(typeof Z==="object"&&Z!==null){for(J=0;J<H.length;J++)if(H[J]===Z){q1(M8,Z,Y,G);return}if(typeof M.depthLimit<"u"&&Q>M.depthLimit){q1(H0,Z,Y,G);return}if(typeof M.edgesLimit<"u"&&$+1>M.edgesLimit){q1(H0,Z,Y,G);return}if(H.push(Z),Array.isArray(Z))for(J=0;J<Z.length;J++)S9(Z[J],J,J,H,Z,Q,M);else{var X=Object.keys(Z);for(J=0;J<X.length;J++){var U=X[J];S9(Z[U],U,J,H,Z,Q,M)}}H.pop()}}function JG(Z,Y){if(Z<Y)return-1;if(Z>Y)return 1;return 0}function X8(Z,Y,$,H){if(typeof H>"u")H=J8();var G=L9(Z,"",0,[],void 0,0,H)||Z,Q;try{if($1.length===0)Q=JSON.stringify(G,Y,$);else Q=JSON.stringify(G,U8(Y),$)}catch(J){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(H1.length!==0){var M=H1.pop();if(M.length===4)Object.defineProperty(M[0],M[1],M[3]);else M[0][M[1]]=M[2]}}return Q}function L9(Z,Y,$,H,G,Q,M){Q+=1;var J;if(typeof Z==="object"&&Z!==null){for(J=0;J<H.length;J++)if(H[J]===Z){q1(M8,Z,Y,G);return}try{if(typeof Z.toJSON==="function")return}catch(q){return}if(typeof M.depthLimit<"u"&&Q>M.depthLimit){q1(H0,Z,Y,G);return}if(typeof M.edgesLimit<"u"&&$+1>M.edgesLimit){q1(H0,Z,Y,G);return}if(H.push(Z),Array.isArray(Z))for(J=0;J<Z.length;J++)L9(Z[J],J,J,H,Z,Q,M);else{var X={},U=Object.keys(Z).sort(JG);for(J=0;J<U.length;J++){var B=U[J];L9(Z[B],B,J,H,Z,Q,M),X[B]=Z[B]}if(typeof G<"u")H1.push([G,Y,Z]),G[Y]=X;else return X}H.pop()}}function U8(Z){return Z=typeof Z<"u"?Z:function(Y,$){return $},function(Y,$){if($1.length>0)for(var H=0;H<$1.length;H++){var G=$1[H];if(G[1]===Y&&G[0]===$){$=G[2],$1.splice(H,1);break}}return Z.call(this,Y,$)}}});var h9=_((JM,B8)=>{B8.exports=UG;var XG=z1();function UG({keyName:Z,lines:Y,eol:$,ident:H}){let G="",Q=XG({input:Y,ident:H,eol:$}),M=`${H}${Z}: ${Q}${$}`.split($);for(let J=0;J<M.length;J+=1){if(J!==0)G+=$;let X=M[J];if(/^\s*"stack"/.test(X)){let U=/^(\s*"stack":)\s*(".*"),?$/.exec(X);if(U&&U.length===3){let B=/^\s*/.exec(X)[0].length+4,q=" ".repeat(B),D=U[2];G+=U[1]+$+q+JSON.parse(D).replace(/\n/g,$+q)}else G+=X}else G+=X}return G}});var G0=_((XM,W8)=>{W8.exports=WG;var{LOGGER_KEYS:qG}=l(),b9=w8(),wG=z1(),BG=h9();function WG({log:Z,excludeLoggerKeys:Y=!0,skipKeys:$=[],context:H}){let{EOL:G,IDENT:Q,customPrettifiers:M,errorLikeObjectKeys:J,objectColorizer:X,singleLine:U,colorizer:B}=H,q=[].concat($);if(Y===!0)Array.prototype.push.apply(q,qG);let D="",{plain:W,errors:w}=Object.entries(Z).reduce(({plain:A,errors:R},[V,K])=>{if(q.includes(V)===!1){let z=typeof M[V]==="function"?M[V](K,V,Z,{colors:B.colors}):K;if(J.includes(V))R[V]=z;else A[V]=z}return{plain:A,errors:R}},{plain:{},errors:{}});if(U){if(Object.keys(W).length>0)D+=X.greyMessage(b9(W));D+=G,D=D.replace(/\\\\/gi,"\\")}else Object.entries(W).forEach(([A,R])=>{let V=typeof M[A]==="function"?R:b9(R,null,2);if(V===void 0)return;V=V.replace(/\\\\/gi,"\\");let K=wG({input:V,ident:Q,eol:G});D+=`${Q}${X.property(A)}:${K.startsWith(G)?"":" "}${K}${G}`});return Object.entries(w).forEach(([A,R])=>{let V=typeof M[A]==="function"?R:b9(R,null,2);if(V===void 0)return;D+=BG({keyName:A,lines:V,eol:G,ident:Q})}),D}});var f9=_((UM,D8)=>{D8.exports=VG;var{LOGGER_KEYS:DG}=l(),NG=$0(),RG=z1(),AG=G0();function VG({log:Z,context:Y}){let{EOL:$,IDENT:H,errorProps:G,messageKey:Q}=Y,M=Z.stack,J=RG({input:M,ident:H,eol:$}),X=`${H}${J}${$}`;if(G.length>0){let U=DG.concat(Q,"type","stack"),B;if(G[0]==="*")B=Object.keys(Z).filter((q)=>U.includes(q)===!1);else B=G.filter((q)=>U.includes(q)===!1);for(let q=0;q<B.length;q+=1){let D=B[q];if(D in Z===!1)continue;if(NG(Z[D])){let W=AG({log:Z[D],excludeLoggerKeys:!1,context:{...Y,IDENT:H+H}});X=`${X}${H}${D}: {${$}${W}${H}}${$}`;continue}X=`${X}${H}${D}: ${Z[D]}${$}`}}return X}});var k9=_((qM,N8)=>{N8.exports=zG;var KG=J1();function zG({log:Z,context:Y}){let{colorizer:$,customLevels:H,customLevelNames:G,levelKey:Q,getLevelLabelData:M}=Y,J=Y.customPrettifiers?.level,X=KG(Z,Q);if(X===void 0)return;let U=$(X,{customLevels:H,customLevelNames:G});if(J){let[B]=M(X);return J(X,Q,Z,{label:B,labelColorized:U,colors:$.colors})}return U}});var y9=_((wM,A8)=>{A8.exports=TG;var{LEVELS:FG}=l(),R8=J1(),_G=x9();function TG({log:Z,context:Y}){let{colorizer:$,customLevels:H,levelKey:G,levelLabel:Q,messageFormat:M,messageKey:J,useOnlyCustomProps:X}=Y;if(M&&typeof M==="string"){let U=_G(M,Z),B=String(U).replace(/{([^{}]+)}/g,function(q,D){let W;if(D===Q&&(W=R8(Z,G))!==void 0)return(X?H===void 0:H[W]===void 0)?FG[W]:H[W];return R8(Z,D)||""});return $.message(B)}if(M&&typeof M==="function"){let U=M(Z,J,Q,{colors:$.colors});return $.message(U)}if(J in Z===!1)return;if(typeof Z[J]!=="string"&&typeof Z[J]!=="number"&&typeof Z[J]!=="boolean")return;return $.message(Z[J])}});var g9=_((BM,V8)=>{V8.exports=OG;function OG({log:Z,context:Y}){let{customPrettifiers:$,colorizer:H}=Y,G="";if(Z.name||Z.pid||Z.hostname){if(G+="(",Z.name)G+=$.name?$.name(Z.name,"name",Z,{colors:H.colors}):Z.name;if(Z.pid){let Q=$.pid?$.pid(Z.pid,"pid",Z,{colors:H.colors}):Z.pid;if(Z.name&&Z.pid)G+="/"+Q;else G+=Q}if(Z.hostname){let Q=$.hostname?$.hostname(Z.hostname,"hostname",Z,{colors:H.colors}):Z.hostname;G+=`${G==="("?"on":" on"} ${Q}`}G+=")"}if(Z.caller){let Q=$.caller?$.caller(Z.caller,"caller",Z,{colors:H.colors}):Z.caller;G+=`${G===""?"":" "}<${Q}>`}if(G==="")return;else return G}});var v9=_((WM,K8)=>{K8.exports=IG;var PG=E9();function IG({log:Z,context:Y}){let{timestampKey:$,translateTime:H}=Y,G=Y.customPrettifiers?.time,Q=null;if($ in Z)Q=Z[$];else if("timestamp"in Z)Q=Z.timestamp;if(Q===null)return;let M=H?PG(Q,H):Q;return G?G(M):`[${M}]`}});var F8=_((DM,z8)=>{z8.exports={buildSafeSonicBoom:x3(),createDate:A9(),deleteLogProperty:V9(),filterLog:P9(),formatTime:E9(),getPropertyValue:J1(),handleCustomLevelsNamesOpts:C9(),handleCustomLevelsOpts:j9(),interpretConditionals:x9(),isObject:$0(),isValidDate:t1(),joinLinesWithIndentation:z1(),noop:R9(),parseFactoryOptions:Q8(),prettifyErrorLog:f9(),prettifyError:h9(),prettifyLevel:k9(),prettifyMessage:y9(),prettifyMetadata:g9(),prettifyObject:G0(),prettifyTime:v9(),splitPropertyKey:e1(),getLevelLabelData:o1()}});var I8=_((NM,w1)=>{var EG=typeof Buffer<"u",_8=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,T8=/"(?: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*:/;function O8(Z,Y,$){if($==null){if(Y!==null&&typeof Y==="object")$=Y,Y=void 0}if(EG&&Buffer.isBuffer(Z))Z=Z.toString();if(Z&&Z.charCodeAt(0)===65279)Z=Z.slice(1);let H=JSON.parse(Z,Y);if(H===null||typeof H!=="object")return H;let G=$&&$.protoAction||"error",Q=$&&$.constructorAction||"error";if(G==="ignore"&&Q==="ignore")return H;if(G!=="ignore"&&Q!=="ignore"){if(_8.test(Z)===!1&&T8.test(Z)===!1)return H}else if(G!=="ignore"&&Q==="ignore"){if(_8.test(Z)===!1)return H}else if(T8.test(Z)===!1)return H;return P8(H,{protoAction:G,constructorAction:Q,safe:$&&$.safe})}function P8(Z,{protoAction:Y="error",constructorAction:$="error",safe:H}={}){let G=[Z];while(G.length){let Q=G;G=[];for(let M of Q){if(Y!=="ignore"&&Object.prototype.hasOwnProperty.call(M,"__proto__")){if(H===!0)return null;else if(Y==="error")throw SyntaxError("Object contains forbidden prototype property");delete M.__proto__}if($!=="ignore"&&Object.prototype.hasOwnProperty.call(M,"constructor")&&M.constructor!==null&&typeof M.constructor==="object"&&Object.prototype.hasOwnProperty.call(M.constructor,"prototype")){if(H===!0)return null;else if($==="error")throw SyntaxError("Object contains forbidden prototype property");delete M.constructor}for(let J in M){let X=M[J];if(X&&typeof X==="object")G.push(X)}}}return Z}function d9(Z,Y,$){let{stackTraceLimit:H}=Error;Error.stackTraceLimit=0;try{return O8(Z,Y,$)}finally{Error.stackTraceLimit=H}}function CG(Z,Y){let{stackTraceLimit:$}=Error;Error.stackTraceLimit=0;try{return O8(Z,Y,{safe:!0})}catch{return}finally{Error.stackTraceLimit=$}}w1.exports=d9;w1.exports.default=d9;w1.exports.parse=d9;w1.exports.safeParse=CG;w1.exports.scan=P8});var j8=_((RM,C8)=>{C8.exports=dG;var jG=I8(),E8=$0(),xG=f9(),SG=k9(),LG=y9(),hG=g9(),bG=G0(),fG=v9(),kG=P9(),{LEVELS:yG,LEVEL_KEY:gG,LEVEL_NAMES:u9}=l(),vG=(Z)=>{try{return{value:jG.parse(Z,{protoAction:"remove"})}}catch(Y){return{err:Y}}};function dG(Z){let Y;if(!E8(Z)){let J=vG(Z);if(J.err||!E8(J.value))return Z+this.EOL;Y=J.value}else Y=Z;if(this.minimumLevel){let J;if(this.useOnlyCustomProps)J=this.customLevels;else J=this.customLevelNames[this.minimumLevel]!==void 0;let X;if(J)X=this.customLevelNames[this.minimumLevel];else X=u9[this.minimumLevel];if(!X)X=typeof this.minimumLevel==="string"?u9[this.minimumLevel]:u9[yG[this.minimumLevel].toLowerCase()];if(Y[this.levelKey===void 0?gG:this.levelKey]<X)return}let $=LG({log:Y,context:this.context});if(this.ignoreKeys||this.includeKeys)Y=kG({log:Y,context:this.context});let H=SG({log:Y,context:{...this.context,...this.context.customProperties}}),G=hG({log:Y,context:this.context}),Q=fG({log:Y,context:this.context}),M="";if(this.levelFirst&&H)M=`${H}`;if(Q&&M==="")M=`${Q}`;else if(Q)M=`${M} ${Q}`;if(!this.levelFirst&&H)if(M.length>0)M=`${M} ${H}`;else M=H;if(G)if(M.length>0)M=`${M} ${G}:`;else M=G;if(M.endsWith(":")===!1&&M!=="")M+=":";if($!==void 0)if(M.length>0)M=`${M} ${$}`;else M=$;if(M.length>0&&!this.singleLine)M+=this.EOL;if(Y.type==="Error"&&typeof Y.stack==="string"){let J=xG({log:Y,context:this.context});if(this.singleLine)M+=this.EOL;M+=J}else if(this.hideObject===!1){let J=[this.messageKey,this.levelKey,this.timestampKey].map((U)=>U.replaceAll(/\\/g,"")).filter((U)=>{return typeof Y[U]==="string"||typeof Y[U]==="number"||typeof Y[U]==="boolean"}),X=bG({log:Y,skipKeys:J,context:this.context});if(this.singleLine&&!/^\s$/.test(X))M+=" ";M+=X}return M}});var L8=_((AM,s)=>{var{isColorSupported:x8}=U9(),uG=q3(),{Transform:cG}=require("node:stream"),mG=K3(),pG=N9(),{ERROR_LIKE_KEYS:S8,LEVEL_KEY:nG,LEVEL_LABEL:lG,MESSAGE_KEY:iG,TIMESTAMP_KEY:aG}=l(),{buildSafeSonicBoom:oG,parseFactoryOptions:sG}=F8(),rG=j8(),tG={colorize:x8,colorizeObjects:!0,crlf:!1,customColors:null,customLevels:null,customPrettifiers:{},errorLikeObjectKeys:S8,errorProps:"",hideObject:!1,ignore:"hostname",include:void 0,levelFirst:!1,levelKey:nG,levelLabel:lG,messageFormat:null,messageKey:iG,minimumLevel:void 0,outputStream:process.stdout,singleLine:!1,timestampKey:aG,translateTime:!0,useOnlyCustomProps:!0};function c9(Z){let Y=sG(Object.assign({},tG,Z));return rG.bind({...Y,context:Y})}function Q0(Z={}){let Y=c9(Z),$;return mG(function(H){H.on("message",function Q(M){if(!M||M.code!=="PINO_CONFIG")return;Object.assign(Z,{messageKey:M.config.messageKey,errorLikeObjectKeys:Array.from(new Set([...Z.errorLikeObjectKeys||S8,M.config.errorKey])),customLevels:M.config.levels.values}),Y=c9(Z),H.off("message",Q)});let G=new cG({objectMode:!0,autoDestroy:!0,transform(Q,M,J){let X=Y(Q);J(null,X)}});if(typeof Z.destination==="object"&&typeof Z.destination.write==="function")$=Z.destination;else $=oG({dest:Z.destination||1,append:Z.append,mkdir:Z.mkdir,sync:Z.sync});return H.on("unknown",function(Q){$.write(Q+`
|
|
27
|
-
`)}),uG(H,G,$),G},{parse:"lines",close(H,G){$.on("close",()=>{G(H)})}})}s.exports=Q0;s.exports.build=Q0;s.exports.PinoPretty=Q0;s.exports.prettyFactory=c9;s.exports.colorizerFactory=pG;s.exports.isColorSupported=x8;s.exports.default=Q0});O1();var ZQ={};c8(ZQ,{UnprocessableEntityException:()=>W0,UnauthorizedException:()=>J0,TooManyRequestsException:()=>D0,ServiceUnavailableException:()=>N0,PayloadTooLargeException:()=>B0,NotFoundException:()=>M0,HTTPException:()=>f,GoneException:()=>w0,ForbiddenException:()=>X0,ErrorHandler:()=>n9,ConflictException:()=>q0,BadRequestException:()=>U0});module.exports=u8(ZQ);O1();O1();function p8(Z){if(Z.length===0)return"(root)";return Z.reduce((Y,$,H)=>{if(typeof $==="number")return`${Y}[${$}]`;return H===0?$:`${Y}.${$}`},"")}class P1 extends f{zodError;constructor(Z){super(422,"Validation failed");this.zodError=Z;this.name="ValidationException"}toJSON(){return{error:"Validation Error",statusCode:this.statusCode,details:this.zodError.errors.map((Z)=>{let Y={field:p8(Z.path),message:Z.message,code:Z.code};if("received"in Z&&Z.received!==void 0)Y.received=Z.received;if("expected"in Z&&Z.expected!==void 0)Y.expected=Z.expected;if("minimum"in Z)Y.minimum=Z.minimum;if("maximum"in Z)Y.maximum=Z.maximum;return Y})}}}var m9,h8;function eG(){if(!m9)m9=i2(),h8=L8();return{pino:m9,pinoPretty:h8}}class b8{logger;constructor(Z){let{pino:Y}=eG(),$=!0,H=Z?.pretty!==void 0?Z.pretty:!0;this.logger=Y({level:Z?.level||"debug",transport:H?{target:"pino-pretty",options:{colorize:!0,translateTime:"SYS:HH:MM:ss",ignore:"pid,hostname",singleLine:!1}}:void 0})}trace(Z,Y){this.logger.trace(Y||{},Z)}debug(Z,Y){this.logger.debug(Y||{},Z)}info(Z,Y){this.logger.info(Y||{},Z)}warn(Z,Y){this.logger.warn(Y||{},Z)}error(Z,Y,$){this.logger.error({err:Y,...$},Z)}fatal(Z,Y,$){this.logger.fatal({err:Y,...$},Z)}child(Z){return new p9(this.logger.child(Z))}}class p9{logger;constructor(Z){this.logger=Z}trace(Z,Y){this.logger.trace(Y||{},Z)}debug(Z,Y){this.logger.debug(Y||{},Z)}info(Z,Y){this.logger.info(Y||{},Z)}warn(Z,Y){this.logger.warn(Y||{},Z)}error(Z,Y,$){this.logger.error({err:Y,...$},Z)}fatal(Z,Y,$){this.logger.fatal({err:Y,...$},Z)}child(Z){return new p9(this.logger.child(Z))}}function f8(Z){return new b8(Z)}var _1=null;function VM(Z){return _1=f8(Z),_1}function T1(){if(!_1)_1=f8({pretty:!0,level:"debug"});return _1}function KM(Z){return T1().child(Z)}class n9{customHandler;isDevelopment;constructor(Z){this.customHandler=Z,this.isDevelopment=!0}setCustomHandler(Z){this.customHandler=Z}async handle(Z,Y){if(this.customHandler)try{return await this.customHandler(Z,Y)}catch($){if(this.isDevelopment)console.error("Custom error handler failed:",$)}if(Z instanceof P1)return this.handleValidationException(Z,Y);if(Z.name==="ZodError"&&Array.isArray(Z.issues)){let $=new P1(Z);return this.handleValidationException($,Y)}if(Z instanceof f)return this.handleHTTPException(Z,Y);return this.handleGenericError(Z,Y)}handleValidationException(Z,Y){let $=Z.toJSON();if(this.isDevelopment)console.error("Validation Error:",{path:Y.req.path,method:Y.req.method,details:$.details});return Y.json($,Z.statusCode)}handleHTTPException(Z,Y){let $=Z.toJSON();if(Z.statusCode>=500){let H={name:Z.name,statusCode:Z.statusCode,message:Z.message,path:Y.req.path,method:Y.req.method,...this.isDevelopment&&Z.stack?{stack:Z.stack}:{}};try{T1().error("HTTP Server Error",Z,H)}catch{console.error("HTTP Exception:",H)}}else if(this.isDevelopment){let H={name:Z.name,statusCode:Z.statusCode,message:Z.message,path:Y.req.path,method:Y.req.method};try{T1().warn("HTTP Client Error",H)}catch{console.warn("HTTP Exception:",H)}}return Y.json($,Z.statusCode)}handleGenericError(Z,Y){let $={name:Z.name,message:Z.message,path:Y.req.path,method:Y.req.method,stack:Z.stack};try{T1().error("Internal Server Error",Z,$)}catch{console.error("Internal Server Error:",$)}let H={error:"Internal Server Error",statusCode:500};if(this.isDevelopment){if(H.message=Z.message,H.name=Z.name,Z.stack)H.stack=Z.stack.split(`
|
|
28
|
-
`).map((G)=>G.trim())}else H.message="An unexpected error occurred";return Y.json(H,500)}isDevelopmentMode(){return this.isDevelopment}setDevelopmentMode(Z){this.isDevelopment=Z}}
|
|
23
|
+
`),m=c8.bind(null,{[W5]:"",[O5]:N,[_5]:L,[B5]:T0,[C0]:O,[T5]:I}),T1="";if(M!==null)if(R===void 0)T1=m(M);else T1=m(Object.assign({},M,{name:R}));let L0=H instanceof Function?H:H?x5:N4,k5=L0().indexOf(":")+1;if(D&&!J)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(w&&typeof w!=="function")throw Error(`Unknown mixin type "${typeof w}" - expected "function"`);if(C&&typeof C!=="string")throw Error(`Unknown msgPrefix type "${typeof C}" - expected "string"`);y8(V,J,D);let x0=I5(J,D);if(typeof Q.emit==="function")Q.emit("message",{code:"PINO_CONFIG",config:{levels:x0,messageKey:X,errorKey:A}});d8(q);let f5=g8(q);return Object.assign(Z,{levels:x0,[G4]:f5,[J4]:D,[t8]:Q,[o8]:L0,[a8]:k5,[B5]:T0,[C0]:O,[_5]:L,[r8]:k,[e8]:h,[Y4]:X,[Z4]:A,[$4]:z,[X4]:z?`,${JSON.stringify(z)}:{`:"",[O5]:N,[Q4]:w,[H4]:F,[W5]:T1,[T5]:I,[U4]:W,silent:l8,onChild:_,[M4]:C}),Object.setPrototypeOf(Z,k8()),v8(Z),Z[s8](V),Z}f.exports=E0;f.exports.destination=(Y=process.stdout.fd)=>{if(typeof Y==="object")return Y.dest=F5(Y.dest||process.stdout.fd),D5(Y);else return D5({dest:F5(Y),minLength:0})};f.exports.transport=H0();f.exports.multistream=P5();f.exports.levels=I5();f.exports.stdSerializers=R4;f.exports.stdTimeFunctions=Object.assign({},E5);f.exports.symbols=j5;f.exports.version=n8;f.exports.default=E0;f.exports.pino=E0});J1();var P4={};u5(P4,{UnprocessableEntityException:()=>b1,UnauthorizedException:()=>E1,TooManyRequestsException:()=>h1,ServiceUnavailableException:()=>k1,PayloadTooLargeException:()=>S1,NotFoundException:()=>C1,HTTPException:()=>x,GoneException:()=>x1,ForbiddenException:()=>j1,ErrorHandler:()=>I0,ConflictException:()=>L1,BadRequestException:()=>I1});module.exports=d5(P4);J1();J1();function c5(Y){if(Y.length===0)return"(root)";return Y.reduce((Z,$,Q)=>{if(typeof $==="number")return`${Z}[${$}]`;return Q===0?$:`${Z}.${$}`},"")}class U1 extends x{zodError;constructor(Y){super(422,"Validation failed");this.zodError=Y;this.name="ValidationException"}toJSON(){return{error:"Validation Error",statusCode:this.statusCode,details:this.zodError.errors.map((Y)=>{let Z={field:c5(Y.path),message:Y.message,code:Y.code};if("received"in Y&&Y.received!==void 0)Z.received=Y.received;if("expected"in Y&&Y.expected!==void 0)Z.expected=Y.expected;if("minimum"in Y)Z.minimum=Y.minimum;if("maximum"in Y)Z.maximum=Y.maximum;return Z})}}}var $1;function w4(){if($1!==void 0)return $1;try{$1=S5()}catch{$1=null}return $1}class b5{logger;constructor(Y){let Z=w4(),$=!0,Q=Y?.pretty!==void 0?Y.pretty:!0;if(!Z){this.logger=new p(Y);return}this.logger=Z({level:Y?.level||"debug",transport:Q?{target:"pino-pretty",options:{colorize:!0,translateTime:"SYS:HH:MM:ss",ignore:"pid,hostname",singleLine:!1}}:void 0})}trace(Y,Z){if(this.logger instanceof p){this.logger.trace(Y,Z);return}this.logger.trace(Z||{},Y)}debug(Y,Z){if(this.logger instanceof p){this.logger.debug(Y,Z);return}this.logger.debug(Z||{},Y)}info(Y,Z){if(this.logger instanceof p){this.logger.info(Y,Z);return}this.logger.info(Z||{},Y)}warn(Y,Z){if(this.logger instanceof p){this.logger.warn(Y,Z);return}this.logger.warn(Z||{},Y)}error(Y,Z,$){if(this.logger instanceof p){this.logger.error(Y,Z,$);return}this.logger.error({err:Z,...$},Y)}fatal(Y,Z,$){if(this.logger instanceof p){this.logger.fatal(Y,Z,$);return}this.logger.fatal({err:Z,...$},Y)}child(Y){if(this.logger instanceof p)return this.logger.child(Y);return new j0(this.logger.child(Y))}}class j0{logger;constructor(Y){this.logger=Y}trace(Y,Z){this.logger.trace(Z||{},Y)}debug(Y,Z){this.logger.debug(Z||{},Y)}info(Y,Z){this.logger.info(Z||{},Y)}warn(Y,Z){this.logger.warn(Z||{},Y)}error(Y,Z,$){this.logger.error({err:Z,...$},Y)}fatal(Y,Z,$){this.logger.fatal({err:Z,...$},Y)}child(Y){return new j0(this.logger.child(Y))}}class p{level;ctx;constructor(Y,Z={}){this.level=Y?.level||"debug",this.ctx=Z}fmt(Y,Z){let $={...this.ctx,...Z},Q=Object.keys($).length?" "+JSON.stringify($):"";return`${Y}${Q}`}trace(Y,Z){if(["trace"].includes(this.level))console.debug("[TRACE]",this.fmt(Y,Z))}debug(Y,Z){if(["trace","debug"].includes(this.level))console.debug("[DEBUG]",this.fmt(Y,Z))}info(Y,Z){if(["trace","debug","info"].includes(this.level))console.info("[INFO]",this.fmt(Y,Z))}warn(Y,Z){if(["trace","debug","info","warn"].includes(this.level))console.warn("[WARN]",this.fmt(Y,Z))}error(Y,Z,$){console.error("[ERROR]",this.fmt(Y,$),Z??"")}fatal(Y,Z,$){console.error("[FATAL]",this.fmt(Y,$),Z??"")}child(Y){return new p({level:this.level},{...this.ctx,...Y})}}function h5(Y){return new b5(Y)}var Q1=null;function r4(Y){return Q1=h5(Y),Q1}function G1(){if(!Q1)Q1=h5({pretty:!0,level:"debug"});return Q1}function e4(Y){return G1().child(Y)}class I0{customHandler;isDevelopment;constructor(Y){this.customHandler=Y,this.isDevelopment=!0}setCustomHandler(Y){this.customHandler=Y}async handle(Y,Z){if(this.customHandler)try{return await this.customHandler(Y,Z)}catch($){if(this.isDevelopment)console.error("Custom error handler failed:",$)}if(Y instanceof U1)return this.handleValidationException(Y,Z);if(Y.name==="ZodError"&&Array.isArray(Y.issues)){let $=new U1(Y);return this.handleValidationException($,Z)}if(Y instanceof x)return this.handleHTTPException(Y,Z);return this.handleGenericError(Y,Z)}handleValidationException(Y,Z){let $=Y.toJSON();if(this.isDevelopment)console.error("Validation Error:",{path:Z.req.path,method:Z.req.method,details:$.details});return Z.json($,Y.statusCode)}handleHTTPException(Y,Z){let $=Y.toJSON();if(Y.statusCode>=500){let Q={name:Y.name,statusCode:Y.statusCode,message:Y.message,path:Z.req.path,method:Z.req.method,...this.isDevelopment&&Y.stack?{stack:Y.stack}:{}};try{G1().error("HTTP Server Error",Y,Q)}catch{console.error("HTTP Exception:",Q)}}else if(this.isDevelopment){let Q={name:Y.name,statusCode:Y.statusCode,message:Y.message,path:Z.req.path,method:Z.req.method};try{G1().warn("HTTP Client Error",Q)}catch{console.warn("HTTP Exception:",Q)}}return Z.json($,Y.statusCode)}handleGenericError(Y,Z){let $={name:Y.name,message:Y.message,path:Z.req.path,method:Z.req.method,stack:Y.stack};try{G1().error("Internal Server Error",Y,$)}catch{console.error("Internal Server Error:",$)}let Q={error:"Internal Server Error",statusCode:500};if(this.isDevelopment){if(Q.message=Y.message,Q.name=Y.name,Y.stack)Q.stack=Y.stack.split(`
|
|
24
|
+
`).map((G)=>G.trim())}else Q.message="An unexpected error occurred";return Z.json(Q,500)}isDevelopmentMode(){return this.isDevelopment}setDevelopmentMode(Y){this.isDevelopment=Y}}
|
|
29
25
|
|
|
30
|
-
//# debugId=
|
|
26
|
+
//# debugId=B0866D610783960564756E2164756E21
|