alran 0.9.0 → 1.0.1
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/ALRAN_TOOLS_NOTICES.md +11 -0
- package/README.md +11 -16
- package/assets/agents/alran/skills/alran-code-product/SKILL.md +3 -3
- package/assets/agents/alran/skills/alran-code-product/references/account-models.md +19 -16
- package/chunks/{account-commands-JZ6NXTTK.js → account-commands-GW7N3MYC.js} +1 -1
- package/chunks/{anthropic-MN33DP4E.js → anthropic-63VE6MAE.js} +1 -1
- package/chunks/{application-ITGAJ4HC.js → application-WPPTE6LU.js} +1 -1
- package/chunks/{auth-command-V3RVPLZO.js → auth-command-36RMNQZW.js} +1 -1
- package/chunks/azure-openai-responses-OIP3KVKJ.js +2 -0
- package/chunks/chunk-2K5H5GA7.js +2 -0
- package/chunks/chunk-3GGKARES.js +2 -0
- package/chunks/chunk-5RIMHTEU.js +207 -0
- package/chunks/{chunk-EYK25HWR.js → chunk-5Y76VFHY.js} +1 -1
- package/chunks/{chunk-QIN5ZBE2.js → chunk-6DOVXX7W.js} +1 -1
- package/chunks/{chunk-E3GLGDGC.js → chunk-6PFI65C6.js} +1 -1
- package/chunks/{chunk-4PDIO3M6.js → chunk-6UXSIWCB.js} +1 -1
- package/chunks/{chunk-OQNU3VPS.js → chunk-C6LAAFG2.js} +2 -2
- package/chunks/{chunk-33CNY6GP.js → chunk-CUG7F2FN.js} +1 -1
- package/chunks/chunk-DFMYLGVU.js +249 -0
- package/chunks/{chunk-IIE366LR.js → chunk-G5MOGPZ3.js} +490 -485
- package/chunks/{chunk-FC4M2B7E.js → chunk-IC6A323Q.js} +1 -1
- package/chunks/{chunk-4X22UJQH.js → chunk-IN2Z5SSJ.js} +1 -1
- package/chunks/chunk-JSTSFMGK.js +70 -0
- package/chunks/{chunk-WWNUAU4P.js → chunk-LCC45PCZ.js} +1 -1
- package/chunks/{chunk-7QLAXRD2.js → chunk-MPQ6G7LH.js} +254 -254
- package/chunks/{chunk-FUERW2DW.js → chunk-MUXNNOSQ.js} +1 -1
- package/chunks/{chunk-44VPC5LA.js → chunk-NBONSNQZ.js} +1 -1
- package/chunks/chunk-NMKRNU5O.js +2 -0
- package/chunks/chunk-NVPGGFT3.js +2 -0
- package/chunks/chunk-NZXJAHTO.js +9 -0
- package/chunks/{chunk-6255CZPL.js → chunk-PCL2CVVE.js} +1 -1
- package/chunks/chunk-PXH4SBCS.js +3 -0
- package/chunks/chunk-RLJVY75P.js +28 -0
- package/chunks/{chunk-WYANV3IX.js → chunk-RLND4AYL.js} +1 -1
- package/chunks/chunk-TJC4LPRQ.js +2 -0
- package/chunks/chunk-U4PFHJ7Z.js +27 -0
- package/chunks/chunk-V2SB4U4D.js +2 -0
- package/chunks/chunk-VGKKKM2W.js +6 -0
- package/chunks/{chunk-XFCC2CI2.js → chunk-VUISZDXX.js} +1 -1
- package/chunks/chunk-XVGPB7TW.js +21 -0
- package/chunks/{chunk-CJM7ZJ6W.js → chunk-ZDI22NOK.js} +1 -1
- package/chunks/{data-dir-LDVKDCJ2.js → data-dir-OEPRRIOO.js} +1 -1
- package/chunks/{dist-2BRD4JFU.js → dist-VKYZJYR6.js} +1 -1
- package/chunks/{dist-EXKHRFQO.js → dist-WGTMUM3E.js} +1 -1
- package/chunks/{ffi-OUPK6AY6.js → ffi-EFLUAAVX.js} +1 -1
- package/chunks/{ffi-M5UP5J6C.js → ffi-QKKA5HYI.js} +1 -1
- package/chunks/{google-UJAPMFAB.js → google-RCR46TTQ.js} +1 -1
- package/chunks/{google-vertex-VLSF55PW.js → google-vertex-Y26T7YYR.js} +1 -1
- package/chunks/{install-source-JTIUC4G4.js → install-source-63OVVBMK.js} +1 -1
- package/chunks/launcher-2UG3JPYF.js +63 -0
- package/chunks/lifecycle-5IPJRP2V.js +2 -0
- package/chunks/{main-TQGGRHTS.js → main-7SGOQBHZ.js} +2 -2
- package/chunks/{mistral-ZJZUEF2X.js → mistral-NEBDKUEI.js} +1 -1
- package/chunks/{module-6F3E5H7Y-BN7QWGYB.js → module-6F3E5H7Y-FIMLNSCK.js} +1 -1
- package/chunks/{module-asyncify-R6PWJ6ZV-P4FWSBAY.js → module-asyncify-R6PWJ6ZV-Q2HJ3NOC.js} +1 -1
- package/chunks/{multipart-parser-L6M455MS.js → multipart-parser-JVSLI2CL.js} +1 -1
- package/chunks/{network-proxy-U72JCK2I.js → network-proxy-AJO7ZW3O.js} +1 -1
- package/chunks/openai-codex-responses-L2CIGCKO.js +2 -0
- package/chunks/openai-completions-C4PHW6MD.js +2 -0
- package/chunks/openai-responses-5NVFOW4Y.js +2 -0
- package/chunks/{openrouter-G2EHY5BD.js → openrouter-BKUGQT7Z.js} +1 -1
- package/chunks/{otel-OHXIZ666.js → otel-DRJM2PIX.js} +1 -1
- package/chunks/plugin-command-CIDTOPNB.js +2 -0
- package/chunks/provider-command-UZ7KQFAC.js +2 -0
- package/chunks/run-acp-command-AKDLHKMR.js +59 -0
- package/chunks/{run-exec-command-5ADSQR2Z.js → run-exec-command-UXTPS7LC.js} +1 -1
- package/chunks/{skills-command-XXXEZAG6.js → skills-command-57TF53NO.js} +1 -1
- package/chunks/src-5PSNGHHD.js +2 -0
- package/chunks/{src-IBHIRTD7.js → src-YZ26EVSY.js} +1 -1
- package/chunks/telemetry-3NXMCOVD.js +2 -0
- package/chunks/{telemetry-command-COQG2AKK.js → telemetry-command-CMDERYNN.js} +1 -1
- package/chunks/{tools-WDBB2JKV.js → tools-CRJR35HS.js} +1 -1
- package/chunks/{undici-TUGHZJSA.js → undici-O4OQVZ6I.js} +1 -1
- package/chunks/{update-NB6OD572.js → update-ACFAGV6F.js} +1 -1
- package/cli.js +2 -3
- package/embedded/alran-tools/cli.mjs +1 -5
- package/embedded/alran-tools/manifest.json +1 -1
- package/image-preview-worker.js +1 -1
- package/matrix-mcp-stdio.js +1 -1
- package/package.json +1 -1
- package/quickjs-worker.js +1 -1
- package/chunks/azure-openai-responses-OWHMUNKC.js +0 -2
- package/chunks/chunk-C3CMJAAV.js +0 -3
- package/chunks/chunk-ENHOPPS7.js +0 -16
- package/chunks/chunk-FSNYOJPJ.js +0 -2
- package/chunks/chunk-FXOH6TEQ.js +0 -21
- package/chunks/chunk-GRXX6I72.js +0 -2
- package/chunks/chunk-GSYHBK5Q.js +0 -6
- package/chunks/chunk-IWK7PZP7.js +0 -207
- package/chunks/chunk-KCLRJQ53.js +0 -59
- package/chunks/chunk-M7GW4VMR.js +0 -27
- package/chunks/chunk-QFUV5PX6.js +0 -2
- package/chunks/chunk-TW23QKAD.js +0 -3
- package/chunks/chunk-U7U3DJHF.js +0 -2
- package/chunks/chunk-WTAJMYF2.js +0 -249
- package/chunks/chunk-YLQXZBEL.js +0 -2
- package/chunks/chunk-Z6BHCXKT.js +0 -25
- package/chunks/chunk-Z6HBNJCA.js +0 -8
- package/chunks/launcher-FCZ3EDBF.js +0 -61
- package/chunks/lifecycle-GY435YMF.js +0 -2
- package/chunks/openai-codex-responses-FPCDNRL5.js +0 -2
- package/chunks/openai-completions-D32YW6KL.js +0 -2
- package/chunks/openai-responses-ZCGSENM4.js +0 -2
- package/chunks/plugin-command-OSAFHS7C.js +0 -2
- package/chunks/provider-command-SKTCHD4E.js +0 -2
- package/chunks/run-acp-command-SG2BDMFJ.js +0 -2
- package/chunks/src-DNIDEMVV.js +0 -2
- package/chunks/telemetry-J7ZLGF5X.js +0 -2
- /package/chunks/{chunk-EOR6EDNR.js → chunk-2AYWJZ72.js} +0 -0
- /package/chunks/{chunk-YPV2X2RG.js → chunk-4XP5XUIZ.js} +0 -0
- /package/chunks/{chunk-NWB7LFOK.js → chunk-5DQTVSQV.js} +0 -0
- /package/chunks/{chunk-OIQ336YE.js → chunk-EJN3SE5B.js} +0 -0
- /package/chunks/{chunk-A7GMJNA2.js → chunk-K5DTFR6D.js} +0 -0
- /package/chunks/{chunk-ZQOALVGL.js → chunk-R44C5DM6.js} +0 -0
- /package/chunks/{chunk-PNXZWSWT.js → chunk-UJCAE7SG.js} +0 -0
- /package/chunks/{chunk-J3KCPYZT.js → chunk-W5ZOLW7T.js} +0 -0
- /package/chunks/{chunk-XAGZ6ZEU.js → chunk-XLVABFJC.js} +0 -0
- /package/chunks/{chunk-N5SVBCUB.js → chunk-XSEU4WQD.js} +0 -0
- /package/chunks/{chunk-CSOUJVKM.js → chunk-Z5HOCNTZ.js} +0 -0
- /package/chunks/{emscripten-module-ZS3PMSDF.js → emscripten-module-3WGSFZYF.js} +0 -0
- /package/chunks/{emscripten-module-XPTEOIWW.js → emscripten-module-74WUXTHL.js} +0 -0
- /package/chunks/{emscripten-module-WYNDFH3N.js → emscripten-module-MCN4Y3N4.js} +0 -0
- /package/chunks/{emscripten-module-RD6P2XH5.js → emscripten-module-NEAT5LGD.js} +0 -0
- /package/chunks/{ffi-ORLOPBB3.js → ffi-JIGPPPF7.js} +0 -0
- /package/chunks/{ffi-IO7WZQNG.js → ffi-RLX77WFG.js} +0 -0
- /package/chunks/{pdfjs-SHZAF7PF.js → pdfjs-2UOWBGC2.js} +0 -0
- /package/chunks/{photon_rs-C52RL4CI.js → photon_rs-MVWYTYTO.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __alran_cR } from "module"; import { basename as __alran_basename, dirname as __alran_dirname, join as __alran_join } from "path"; import { fileURLToPath as __alran_fileURLToPath, pathToFileURL as __alran_pathToFileURL } from "url"; const __alran_tuiCurrentModuleDir = __alran_dirname(__alran_fileURLToPath(import.meta.url)); const __alran_tuiPackageRoot = __alran_basename(__alran_tuiCurrentModuleDir) === "chunks" ? __alran_dirname(__alran_tuiCurrentModuleDir) : __alran_tuiCurrentModuleDir; const __alran_tuiPackageEntryUrl = __alran_pathToFileURL(__alran_join(__alran_tuiPackageRoot, "cli.js")).href; const require = __alran_cR(__alran_tuiPackageEntryUrl); const __dirname = __alran_tuiPackageRoot;
|
|
2
|
-
import{a as qh}from"./chunk-N5SVBCUB.js";import{a as I,c as E,e as Ns}from"./chunk-XQK7JM66.js";var Pn=E((zO,sa)=>{"use strict";var Rt=e=>{return e&&typeof e.message==="string"};var Ln=e=>{if(!e)return;const t=e.cause;if(typeof t==="function"){const r=e.cause();return Rt(r)?r:void 0}else{return Rt(t)?t:void 0}};var ia=(e,t)=>{if(!Rt(e))return"";const r=e.stack||"";if(t.has(e)){return r+"\ncauses have become circular..."}const n=Ln(e);if(n){t.add(e);return r+"\ncaused by: "+ia(n,t)}else{return r}};var iy=e=>ia(e,new Set);var oa=(e,t,r)=>{if(!Rt(e))return"";const n=r?"":e.message||"";if(t.has(e)){return n+": ..."}const i=Ln(e);if(i){t.add(e);const o=typeof e.cause==="function";return n+(o?"":": ")+oa(i,t,o)}else{return n}};var oy=e=>oa(e,new Set);sa.exports={isErrorLike:Rt,getErrorCause:Ln,stackWithCauses:iy,messageWithCauses:oy}});var Nn=E((GO,la)=>{"use strict";var sy=Symbol("circular-ref-tag");var or=Symbol("pino-raw-err-ref");var aa=Object.create({},{type:{enumerable:true,writable:true,value:void 0},message:{enumerable:true,writable:true,value:void 0},stack:{enumerable:true,writable:true,value:void 0},aggregateErrors:{enumerable:true,writable:true,value:void 0},raw:{enumerable:false,get:function(){return this[or]},set:function(e){this[or]=e}}});Object.defineProperty(aa,or,{writable:true,value:{}});la.exports={pinoErrProto:aa,pinoErrorSymbols:{seen:sy,rawSymbol:or}}});var fa=E((YO,ca)=>{"use strict";ca.exports=Dn;var{messageWithCauses:ay,stackWithCauses:ly,isErrorLike:ua}=Pn();var{pinoErrProto:uy,pinoErrorSymbols:cy}=Nn();var{seen:kn}=cy;var{toString:fy}=Object.prototype;function Dn(e){if(!ua(e)){return e}e[kn]=void 0;const t=Object.create(uy);t.type=fy.call(e.constructor)==="[object Function]"?e.constructor.name:e.name;t.message=ay(e);t.stack=ly(e);if(Array.isArray(e.errors)){t.aggregateErrors=e.errors.map(r=>Dn(r))}for(const r in e){if(t[r]===void 0){const n=e[r];if(ua(n)){if(r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,kn)){t[r]=Dn(n)}}else{t[r]=n}}}delete e[kn];t.raw=e;return t}});var pa=E((QO,da)=>{"use strict";da.exports=ar;var{isErrorLike:jn}=Pn();var{pinoErrProto:dy,pinoErrorSymbols:py}=Nn();var{seen:sr}=py;var{toString:hy}=Object.prototype;function ar(e){if(!jn(e)){return e}e[sr]=void 0;const t=Object.create(dy);t.type=hy.call(e.constructor)==="[object Function]"?e.constructor.name:e.name;t.message=e.message;t.stack=e.stack;if(Array.isArray(e.errors)){t.aggregateErrors=e.errors.map(r=>ar(r))}if(jn(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,sr)){t.cause=ar(e.cause)}for(const r in e){if(t[r]===void 0){const n=e[r];if(jn(n)){if(!Object.prototype.hasOwnProperty.call(n,sr)){t[r]=ar(n)}}else{t[r]=n}}}delete e[sr];t.raw=e;return t}});var ma=E((JO,ya)=>{"use strict";ya.exports={mapHttpRequest:gy,reqSerializer:ga};var Bn=Symbol("pino-raw-req-ref");var ha=Object.create({},{id:{enumerable:true,writable:true,value:""},method:{enumerable:true,writable:true,value:""},url:{enumerable:true,writable:true,value:""},query:{enumerable:true,writable:true,value:""},params:{enumerable:true,writable:true,value:""},headers:{enumerable:true,writable:true,value:{}},remoteAddress:{enumerable:true,writable:true,value:""},remotePort:{enumerable:true,writable:true,value:""},raw:{enumerable:false,get:function(){return this[Bn]},set:function(e){this[Bn]=e}}});Object.defineProperty(ha,Bn,{writable:true,value:{}});function ga(e){const t=e.info||e.socket;const r=Object.create(ha);r.id=typeof e.id==="function"?e.id():e.id||(e.info?e.info.id:void 0);r.method=e.method;if(e.originalUrl){r.url=e.originalUrl}else{const n=e.path;r.url=typeof n==="string"?n:e.url?e.url.path||e.url:void 0}if(e.query){r.query=e.query}if(e.params){r.params=e.params}r.headers=e.headers;r.remoteAddress=t&&t.remoteAddress;r.remotePort=t&&t.remotePort;r.raw=e.raw||e;return r}function gy(e){return{req:ga(e)}}});var _a=E((XO,Sa)=>{"use strict";Sa.exports={mapHttpResponse:yy,resSerializer:wa};var qn=Symbol("pino-raw-res-ref");var ba=Object.create({},{statusCode:{enumerable:true,writable:true,value:0},headers:{enumerable:true,writable:true,value:""},raw:{enumerable:false,get:function(){return this[qn]},set:function(e){this[qn]=e}}});Object.defineProperty(ba,qn,{writable:true,value:{}});function wa(e){const t=Object.create(ba);t.statusCode=e.headersSent?e.statusCode:null;t.headers=e.getHeaders?e.getHeaders():e._headers;t.raw=e;return t}function yy(e){return{res:wa(e)}}});var Wn=E((ZO,Ea)=>{"use strict";var $n=fa();var my=pa();var lr=ma();var ur=_a();Ea.exports={err:$n,errWithCause:my,mapHttpRequest:lr.mapHttpRequest,mapHttpResponse:ur.mapHttpResponse,req:lr.reqSerializer,res:ur.resSerializer,wrapErrorSerializer:function e(t){if(t===$n)return t;return function r(n){return t($n(n))}},wrapRequestSerializer:function e(t){if(t===lr.reqSerializer)return t;return function r(n){return t(lr.reqSerializer(n))}},wrapResponseSerializer:function e(t){if(t===ur.resSerializer)return t;return function r(n){return t(ur.resSerializer(n))}}}});var Fn=E((eI,xa)=>{"use strict";function by(e,t){return t}xa.exports=function e(){const t=Error.prepareStackTrace;Error.prepareStackTrace=by;const r=new Error().stack;Error.prepareStackTrace=t;if(!Array.isArray(r)){return void 0}const n=r.slice(2);const i=[];for(const o of n){if(!o){continue}i.push(o.getFileName())}return i}});var Ma=E((tI,Ca)=>{"use strict";function Un(e){if(e===null||typeof e!=="object"){return e}if(e instanceof Date){return new Date(e.getTime())}if(e instanceof Array){const t=[];for(let r=0;r<e.length;r++){t[r]=Un(e[r])}return t}if(typeof e==="object"){const t=Object.create(Object.getPrototypeOf(e));for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=Un(e[r])}}return t}return e}function Aa(e){const t=[];let r="";let n=false;let i=false;let o="";for(let s=0;s<e.length;s++){const a=e[s];if(!n&&a==="."){if(r){t.push(r);r=""}}else if(a==="["){if(r){t.push(r);r=""}n=true}else if(a==="]"&&n){t.push(r);r="";n=false;i=false}else if((a==='"'||a==="'")&&n){if(!i){i=true;o=a}else if(a===o){i=false;o=""}else{r+=a}}else{r+=a}}if(r){t.push(r)}return t}function Ra(e,t,r){let n=e;for(let o=0;o<t.length-1;o++){const s=t[o];if(typeof n!=="object"||n===null||!(s in n)){return false}if(typeof n[s]!=="object"||n[s]===null){return false}n=n[s]}const i=t[t.length-1];if(i==="*"){if(Array.isArray(n)){for(let o=0;o<n.length;o++){n[o]=r}}else if(typeof n==="object"&&n!==null){for(const o in n){if(Object.prototype.hasOwnProperty.call(n,o)){n[o]=r}}}}else{if(typeof n==="object"&&n!==null&&i in n&&Object.prototype.hasOwnProperty.call(n,i)){n[i]=r}}return true}function Ta(e,t){let r=e;for(let i=0;i<t.length-1;i++){const o=t[i];if(typeof r!=="object"||r===null||!(o in r)){return false}if(typeof r[o]!=="object"||r[o]===null){return false}r=r[o]}const n=t[t.length-1];if(n==="*"){if(Array.isArray(r)){for(let i=0;i<r.length;i++){r[i]=void 0}}else if(typeof r==="object"&&r!==null){for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){delete r[i]}}}}else{if(typeof r==="object"&&r!==null&&n in r&&Object.prototype.hasOwnProperty.call(r,n)){delete r[n]}}return true}var cr=Symbol("PATH_NOT_FOUND");function wy(e,t){let r=e;for(const n of t){if(r===null||r===void 0){return cr}if(typeof r!=="object"||r===null){return cr}if(!(n in r)){return cr}r=r[n]}return r}function Sy(e,t){let r=e;for(const n of t){if(r===null||r===void 0){return void 0}if(typeof r!=="object"||r===null){return void 0}r=r[n]}return r}function _y(e,t,r,n=false){for(const i of t){const o=Aa(i);if(o.includes("*")){va(e,o,r,i,n)}else{if(n){Ta(e,o)}else{const s=wy(e,o);if(s===cr){continue}const a=typeof r==="function"?r(s,o):r;Ra(e,o,a)}}}}function va(e,t,r,n,i=false){const o=t.indexOf("*");if(o===t.length-1){const s=t.slice(0,-1);let a=e;for(const l of s){if(a===null||a===void 0)return;if(typeof a!=="object"||a===null)return;a=a[l]}if(Array.isArray(a)){if(i){for(let l=0;l<a.length;l++){a[l]=void 0}}else{for(let l=0;l<a.length;l++){const u=[...s,l.toString()];const f=typeof r==="function"?r(a[l],u):r;a[l]=f}}}else if(typeof a==="object"&&a!==null){if(i){const l=[];for(const u in a){if(Object.prototype.hasOwnProperty.call(a,u)){l.push(u)}}for(const u of l){delete a[u]}}else{for(const l in a){const u=[...s,l];const f=typeof r==="function"?r(a[l],u):r;a[l]=f}}}}else{Ey(e,t,r,o,n,i)}}function Ey(e,t,r,n,i,o=false){const s=t.slice(0,n);const a=t.slice(n+1);const l=[];function u(f,c){if(c===s.length){if(Array.isArray(f)){for(let h=0;h<f.length;h++){l[c]=h.toString();u(f[h],c+1)}}else if(typeof f==="object"&&f!==null){for(const h in f){l[c]=h;u(f[h],c+1)}}}else if(c<s.length){const h=s[c];if(f&&typeof f==="object"&&f!==null&&h in f){l[c]=h;u(f[h],c+1)}}else{if(a.includes("*")){const h=typeof r==="function"?(p,d)=>{const g=[...l.slice(0,c),...d];return r(p,g)}:r;va(f,a,h,i,o)}else{if(o){Ta(f,a)}else{const h=typeof r==="function"?r(Sy(f,a),[...l.slice(0,c),...a]):r;Ra(f,a,h)}}}}if(s.length===0){u(e,0)}else{let f=e;for(let c=0;c<s.length;c++){const h=s[c];if(f===null||f===void 0)return;if(typeof f!=="object"||f===null)return;f=f[h];l[c]=h}if(f!==null&&f!==void 0){u(f,s.length)}}}function xy(e){if(e.length===0){return null}const t=new Map;for(const r of e){const n=Aa(r);let i=t;for(let o=0;o<n.length;o++){const s=n[o];if(!i.has(s)){i.set(s,new Map)}i=i.get(s)}}return t}function Ay(e,t){if(!t){return e}function r(n,i,o=0){if(!i||i.size===0){return n}if(n===null||typeof n!=="object"){return n}if(n instanceof Date){return new Date(n.getTime())}if(Array.isArray(n)){const a=[];for(let l=0;l<n.length;l++){const u=l.toString();if(i.has(u)||i.has("*")){a[l]=r(n[l],i.get(u)||i.get("*"))}else{a[l]=n[l]}}return a}const s=Object.create(Object.getPrototypeOf(n));for(const a in n){if(Object.prototype.hasOwnProperty.call(n,a)){if(i.has(a)||i.has("*")){s[a]=r(n[a],i.get(a)||i.get("*"))}else{s[a]=n[a]}}}return s}return r(e,t)}function Ry(e){if(typeof e!=="string"){throw new Error("Paths must be (non-empty) strings")}if(e===""){throw new Error("Invalid redaction path ()")}if(e.includes("..")){throw new Error(`Invalid redaction path (${e})`)}if(e.includes(",")){throw new Error(`Invalid redaction path (${e})`)}let t=0;let r=false;let n="";for(let i=0;i<e.length;i++){const o=e[i];if((o==='"'||o==="'")&&t>0){if(!r){r=true;n=o}else if(o===n){r=false;n=""}}else if(o==="["&&!r){t++}else if(o==="]"&&!r){t--;if(t<0){throw new Error(`Invalid redaction path (${e})`)}}}if(t!==0){throw new Error(`Invalid redaction path (${e})`)}}function Ty(e){if(!Array.isArray(e)){throw new TypeError("paths must be an array")}for(const t of e){Ry(t)}}function vy(e={}){const{paths:t=[],censor:r="[REDACTED]",serialize:n=JSON.stringify,strict:i=true,remove:o=false}=e;Ty(t);const s=xy(t);return function a(l){if(i&&(l===null||typeof l!=="object")){if(l===null||l===void 0){return n?n(l):l}if(typeof l!=="object"){return n?n(l):l}}const u=Ay(l,s);const f=l;let c=r;if(typeof r==="function"){c=r}_y(u,t,c,o);if(n===false){u.restore=function(){return Un(f)};return u}if(typeof n==="function"){return n(u)}return JSON.stringify(u)}}Ca.exports=vy});var Ze=E((rI,Oa)=>{"use strict";var Cy=Symbol("pino.setLevel");var My=Symbol("pino.getLevel");var Oy=Symbol("pino.levelVal");var Iy=Symbol("pino.levelComp");var Ly=Symbol("pino.useLevelLabels");var Py=Symbol("pino.useOnlyCustomLevels");var Ny=Symbol("pino.mixin");var ky=Symbol("pino.lsCache");var Dy=Symbol("pino.chindings");var jy=Symbol("pino.asJson");var By=Symbol("pino.write");var qy=Symbol("pino.redactFmt");var $y=Symbol("pino.time");var Wy=Symbol("pino.timeSliceIndex");var Fy=Symbol("pino.stream");var Uy=Symbol("pino.stringify");var Hy=Symbol("pino.stringifySafe");var Ky=Symbol("pino.stringifiers");var Vy=Symbol("pino.end");var zy=Symbol("pino.formatOpts");var Gy=Symbol("pino.messageKey");var Yy=Symbol("pino.errorKey");var Qy=Symbol("pino.nestedKey");var Jy=Symbol("pino.nestedKeyStr");var Xy=Symbol("pino.mixinMergeStrategy");var Zy=Symbol("pino.msgPrefix");var em=Symbol("pino.wildcardFirst");var tm=Symbol.for("pino.serializers");var rm=Symbol.for("pino.formatters");var nm=Symbol.for("pino.hooks");var im=Symbol.for("pino.metadata");Oa.exports={setLevelSym:Cy,getLevelSym:My,levelValSym:Oy,levelCompSym:Iy,useLevelLabelsSym:Ly,mixinSym:Ny,lsCacheSym:ky,chindingsSym:Dy,asJsonSym:jy,writeSym:By,serializersSym:tm,redactFmtSym:qy,timeSym:$y,timeSliceIndexSym:Wy,streamSym:Fy,stringifySym:Uy,stringifySafeSym:Hy,stringifiersSym:Ky,endSym:Vy,formatOptsSym:zy,messageKeySym:Gy,errorKeySym:Yy,nestedKeySym:Qy,wildcardFirstSym:em,needsMetadataGsym:im,useOnlyCustomLevelsSym:Py,formattersSym:rm,hooksSym:nm,nestedKeyStrSym:Jy,mixinMergeStrategySym:Xy,msgPrefixSym:Zy}});var Kn=E((nI,Na)=>{"use strict";var Ia=Ma();var{redactFmtSym:om,wildcardFirstSym:fr}=Ze();var Hn=/[^.[\]]+|\[([^[\]]*?)\]/g;var La="[Redacted]";var Pa=false;function sm(e,t){const{paths:r,censor:n,remove:i}=am(e);const o=r.reduce((l,u)=>{Hn.lastIndex=0;const f=Hn.exec(u);const c=Hn.exec(u);let h=f[1]!==void 0?f[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):f[0];if(h==="*"){h=fr}if(c===null){l[h]=null;return l}if(l[h]===null){return l}const{index:p}=c;const d=`${u.substr(p,u.length-1)}`;l[h]=l[h]||[];if(h!==fr&&l[h].length===0){l[h].push(...l[fr]||[])}if(h===fr){Object.keys(l).forEach(function(g){if(l[g]){l[g].push(d)}})}l[h].push(d);return l},{});const s={[om]:Ia({paths:r,censor:n,serialize:t,strict:Pa,remove:i})};const a=(...l)=>{return typeof n==="function"?t(n(...l)):t(n)};return[...Object.keys(o),...Object.getOwnPropertySymbols(o)].reduce((l,u)=>{if(o[u]===null){l[u]=f=>a(f,[u])}else{const f=typeof n==="function"?(c,h)=>{return n(c,[u,...h])}:n;l[u]=Ia({paths:o[u],censor:f,serialize:t,strict:Pa,remove:i})}return l},s)}function am(e){if(Array.isArray(e)){e={paths:e,censor:La};return e}let{paths:t,censor:r=La,remove:n}=e;if(Array.isArray(t)===false){throw Error("pino \u2013 redact must contain an array of strings")}if(n===true)r=void 0;return{paths:t,censor:r,remove:n}}Na.exports=sm});var ja=E((iI,Da)=>{"use strict";var lm=()=>"";var um=()=>`,"time":${Date.now()}`;var cm=()=>`,"time":${Math.round(Date.now()/1e3)}`;var fm=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;var dm=1000000n;var ka=1000000000n;var pm=BigInt(Date.now())*dm;var hm=process.hrtime.bigint();var gm=()=>{const e=process.hrtime.bigint()-hm;const t=pm+e;const r=t/ka;const n=t%ka;const i=Number(r*1000n+n/1000000n);const o=new Date(i);const s=o.getUTCFullYear();const a=(o.getUTCMonth()+1).toString().padStart(2,"0");const l=o.getUTCDate().toString().padStart(2,"0");const u=o.getUTCHours().toString().padStart(2,"0");const f=o.getUTCMinutes().toString().padStart(2,"0");const c=o.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${s}-${a}-${l}T${u}:${f}:${c}.${n.toString().padStart(9,"0")}Z"`};Da.exports={nullTime:lm,epochTime:um,unixTime:cm,isoTime:fm,isoTimeNano:gm}});var qa=E((oI,Ba)=>{"use strict";function ym(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}Ba.exports=mm;function mm(e,t,r){var n=r&&r.stringify||ym;var i=1;if(typeof e==="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++){s[a]=n(t[a])}return s.join(" ")}if(typeof e!=="string"){return e}var l=t.length;if(l===0)return e;var u="";var f=1-i;var c=-1;var h=e&&e.length||0;for(var p=0;p<h;){if(e.charCodeAt(p)===37&&p+1<h){c=c>-1?c:0;switch(e.charCodeAt(p+1)){case 100:case 102:if(f>=l)break;if(t[f]==null)break;if(c<p)u+=e.slice(c,p);u+=Number(t[f]);c=p+2;p++;break;case 105:if(f>=l)break;if(t[f]==null)break;if(c<p)u+=e.slice(c,p);u+=Math.floor(Number(t[f]));c=p+2;p++;break;case 79:case 111:case 106:if(f>=l)break;if(t[f]===void 0)break;if(c<p)u+=e.slice(c,p);var d=typeof t[f];if(d==="string"){u+="'"+t[f]+"'";c=p+2;p++;break}if(d==="function"){u+=t[f].name||"<anonymous>";c=p+2;p++;break}u+=n(t[f]);c=p+2;p++;break;case 115:if(f>=l)break;if(c<p)u+=e.slice(c,p);u+=String(t[f]);c=p+2;p++;break;case 37:if(c<p)u+=e.slice(c,p);u+="%";c=p+2;p++;f--;break}++f}++p}if(c===-1)return e;else if(c<h){u+=e.slice(c)}return u}});var zn=E((sI,Vn)=>{"use strict";if(typeof SharedArrayBuffer!=="undefined"&&typeof Atomics!=="undefined"){let t=function(r){const n=r>0&&r<Infinity;if(n===false){if(typeof r!=="number"&&typeof r!=="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(e,0,0,Number(r))};const e=new Int32Array(new SharedArrayBuffer(4));Vn.exports=t}else{let e=function(t){const r=t>0&&t<Infinity;if(r===false){if(typeof t!=="number"&&typeof t!=="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")}const n=Date.now()+Number(t);while(n>Date.now()){}};Vn.exports=e}});var Qn=E((aI,Va)=>{"use strict";var q=I("fs");var bm=I("events");var wm=I("util").inherits;var $a=I("path");var Yn=zn();var Sm=I("assert");var dr=100;var pr=Buffer.allocUnsafe(0);var _m=16*1024;var Wa="buffer";var Fa="utf8";var[Em,xm]=(process.versions.node||"0.0").split(".").map(Number);var Am=Em>=22&&xm>=7;function Ua(e,t){t._opening=true;t._writing=true;t._asyncDrainScheduled=false;function r(o,s){if(o){t._reopening=false;t._writing=false;t._opening=false;if(t.sync){process.nextTick(()=>{if(t.listenerCount("error")>0){t.emit("error",o)}})}else{t.emit("error",o)}return}const a=t._reopening;t.fd=s;t.file=e;t._reopening=false;t._opening=false;t._writing=false;if(t.sync){process.nextTick(()=>t.emit("ready"))}else{t.emit("ready")}if(t.destroyed){return}if(!t._writing&&t._len>t.minLength||t._flushPending){t._actualWrite()}else if(a){process.nextTick(()=>t.emit("drain"))}}const n=t.append?"a":"w";const i=t.mode;if(t.sync){try{if(t.mkdir)q.mkdirSync($a.dirname(e),{recursive:true});const o=q.openSync(e,n,i);r(null,o)}catch(o){r(o);throw o}}else if(t.mkdir){q.mkdir($a.dirname(e),{recursive:true},o=>{if(o)return r(o);q.open(e,n,i,r)})}else{q.open(e,n,i,r)}}function re(e){if(!(this instanceof re)){return new re(e)}let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:o,periodicFlush:s,sync:a,append:l=true,mkdir:u,retryEAGAIN:f,fsync:c,contentMode:h,mode:p}=e||{};t=t||r;this._len=0;this.fd=-1;this._bufs=[];this._lens=[];this._writing=false;this._ending=false;this._reopening=false;this._asyncDrainScheduled=false;this._flushPending=false;this._hwm=Math.max(n||0,16387);this.file=null;this.destroyed=false;this.minLength=n||0;this.maxLength=i||0;this.maxWrite=o||_m;this._periodicFlush=s||0;this._periodicFlushTimer=void 0;this.sync=a||false;this.writable=true;this._fsync=c||false;this.append=l||false;this.mode=p;this.retryEAGAIN=f||(()=>true);this.mkdir=u||false;let d;let g;if(h===Wa){this._writingBuf=pr;this.write=vm;this.flush=Mm;this.flushSync=Im;this._actualWrite=Pm;d=()=>q.writeSync(this.fd,this._writingBuf);g=()=>q.write(this.fd,this._writingBuf,this.release)}else if(h===void 0||h===Fa){this._writingBuf="";this.write=Tm;this.flush=Cm;this.flushSync=Om;this._actualWrite=Lm;d=()=>{if(Buffer.isBuffer(this._writingBuf)){return q.writeSync(this.fd,this._writingBuf)}return q.writeSync(this.fd,this._writingBuf,"utf8")};g=()=>{if(Buffer.isBuffer(this._writingBuf)){return q.write(this.fd,this._writingBuf,this.release)}return q.write(this.fd,this._writingBuf,"utf8",this.release)}}else{throw new Error(`SonicBoom supports "${Fa}" and "${Wa}", but passed ${h}`)}if(typeof t==="number"){this.fd=t;process.nextTick(()=>this.emit("ready"))}else if(typeof t==="string"){Ua(t,this)}else{throw new Error("SonicBoom supports only file descriptors and files")}if(this.minLength>=this.maxWrite){throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`)}this.release=(y,m)=>{if(y){if((y.code==="EAGAIN"||y.code==="EBUSY")&&this.retryEAGAIN(y,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync){try{Yn(dr);this.release(void 0,0)}catch(S){this.release(S)}}else{setTimeout(g,dr)}}else{this._writing=false;this.emit("error",y)}return}this.emit("write",m);const w=Gn(this._writingBuf,this._len,m);this._len=w.len;this._writingBuf=w.writingBuf;if(this._writingBuf.length){if(!this.sync){g();return}try{do{const S=d();const A=Gn(this._writingBuf,this._len,S);this._len=A.len;this._writingBuf=A.writingBuf}while(this._writingBuf.length)}catch(S){this.release(S);return}}if(this._fsync){q.fsyncSync(this.fd)}const _=this._len;if(this._reopening){this._writing=false;this._reopening=false;this.reopen()}else if(_>this.minLength){this._actualWrite()}else if(this._ending){if(_>0){this._actualWrite()}else{this._writing=false;hr(this)}}else{this._writing=false;if(this.sync){if(!this._asyncDrainScheduled){this._asyncDrainScheduled=true;process.nextTick(Rm,this)}}else{this.emit("drain")}}};this.on("newListener",function(y){if(y==="drain"){this._asyncDrainScheduled=false}});if(this._periodicFlush!==0){this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush);this._periodicFlushTimer.unref()}}function Gn(e,t,r){if(typeof e==="string"){e=Buffer.from(e)}t=Math.max(t-r,0);e=e.subarray(r);return{writingBuf:e,len:t}}function Rm(e){const t=e.listenerCount("drain")>0;if(!t)return;e._asyncDrainScheduled=false;e.emit("drain")}wm(re,bm);function Ha(e,t){if(e.length===0){return pr}if(e.length===1){return e[0]}return Buffer.concat(e,t)}function Tm(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}e=""+e;const t=Buffer.byteLength(e);const r=this._len+t;const n=this._bufs;if(this.maxLength&&r>this.maxLength){this.emit("drop",e);return this._len<this._hwm}if(n.length===0||Buffer.byteLength(n[n.length-1])+t>this.maxWrite){n.push(e)}else{n[n.length-1]+=e}this._len=r;if(!this._writing&&this._len>=this.minLength){this._actualWrite()}return this._len<this._hwm}function vm(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}const t=this._len+e.length;const r=this._bufs;const n=this._lens;if(this.maxLength&&t>this.maxLength){this.emit("drop",e);return this._len<this._hwm}if(r.length===0||n[n.length-1]+e.length>this.maxWrite){r.push([e]);n.push(e.length)}else{r[r.length-1].push(e);n[n.length-1]+=e.length}this._len=t;if(!this._writing&&this._len>=this.minLength){this._actualWrite()}return this._len<this._hwm}function Ka(e){this._flushPending=true;const t=()=>{if(!this._fsync){try{q.fsync(this.fd,n=>{this._flushPending=false;e(n)})}catch(n){e(n)}}else{this._flushPending=false;e()}this.off("error",r)};const r=n=>{this._flushPending=false;e(n);this.off("drain",t)};this.once("drain",t);this.once("error",r)}function Cm(e){if(e!=null&&typeof e!=="function"){throw new Error("flush cb must be a function")}if(this.destroyed){const t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}if(e){Ka.call(this,e)}if(this._writing){return}if(this._bufs.length===0){this._bufs.push("")}this._actualWrite()}function Mm(e){if(e!=null&&typeof e!=="function"){throw new Error("flush cb must be a function")}if(this.destroyed){const t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}if(e){Ka.call(this,e)}if(this._writing){return}if(this._bufs.length===0){this._bufs.push([]);this._lens.push(0)}this._actualWrite()}re.prototype.reopen=function(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending){return}if(!this.file){throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom")}if(e){this.file=e}this._reopening=true;if(this._writing){return}const t=this.fd;this.once("ready",()=>{if(t!==this.fd){q.close(t,r=>{if(r){return this.emit("error",r)}})}});Ua(this.file,this)};re.prototype.end=function(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this._opening){this.once("ready",()=>{this.end()});return}if(this._ending){return}this._ending=true;if(this._writing){return}if(this._len>0&&this.fd>=0){this._actualWrite()}else{hr(this)}};function Om(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this.fd<0){throw new Error("sonic boom is not ready yet")}if(!this._writing&&this._writingBuf.length>0){this._bufs.unshift(this._writingBuf);this._writingBuf=""}let e="";while(this._bufs.length||e.length){if(e.length<=0){e=this._bufs[0]}try{const t=Buffer.isBuffer(e)?q.writeSync(this.fd,e):q.writeSync(this.fd,e,"utf8");const r=Gn(e,this._len,t);e=r.writingBuf;this._len=r.len;if(e.length<=0){this._bufs.shift()}}catch(t){const r=t.code==="EAGAIN"||t.code==="EBUSY";if(r&&!this.retryEAGAIN(t,e.length,this._len-e.length)){throw t}Yn(dr)}}try{q.fsyncSync(this.fd)}catch{}}function Im(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this.fd<0){throw new Error("sonic boom is not ready yet")}if(!this._writing&&this._writingBuf.length>0){this._bufs.unshift([this._writingBuf]);this._writingBuf=pr}let e=pr;while(this._bufs.length||e.length){if(e.length<=0){e=Ha(this._bufs[0],this._lens[0])}try{const t=q.writeSync(this.fd,e);e=e.subarray(t);this._len=Math.max(this._len-t,0);if(e.length<=0){this._bufs.shift();this._lens.shift()}}catch(t){const r=t.code==="EAGAIN"||t.code==="EBUSY";if(r&&!this.retryEAGAIN(t,e.length,this._len-e.length)){throw t}Yn(dr)}}}re.prototype.destroy=function(){if(this.destroyed){return}hr(this)};function Lm(){const e=this.release;this._writing=true;this._writingBuf=this._writingBuf.length?this._writingBuf:this._bufs.shift()||"";if(this.sync){try{const t=Buffer.isBuffer(this._writingBuf)?q.writeSync(this.fd,this._writingBuf):q.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}}else{q.write(this.fd,this._writingBuf,e)}}function Pm(){const e=this.release;this._writing=true;this._writingBuf=this._writingBuf.length?this._writingBuf:Ha(this._bufs.shift(),this._lens.shift());if(this.sync){try{const t=q.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}}else{if(Am){this._writingBuf=Buffer.from(this._writingBuf)}q.write(this.fd,this._writingBuf,e)}}function hr(e){if(e.fd===-1){e.once("ready",hr.bind(null,e));return}if(e._periodicFlushTimer!==void 0){clearInterval(e._periodicFlushTimer)}e.destroyed=true;e._bufs=[];e._lens=[];Sm(typeof e.fd==="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{q.fsync(e.fd,t)}catch{}function t(){if(e.fd!==1&&e.fd!==2){q.close(e.fd,r)}else{r()}}function r(n){if(n){e.emit("error",n);return}if(e._ending&&!e._writing){e.emit("finish")}e.emit("close")}}re.SonicBoom=re;re.default=re;Va.exports=re});var gr=E((lI,Ja)=>{"use strict";var ne={exit:[],beforeExit:[]};var za={exit:Dm,beforeExit:jm};var et;function Nm(){if(et===void 0){et=new FinalizationRegistry(Bm)}}function km(e){if(ne[e].length>0){return}process.on(e,za[e])}function Ga(e){if(ne[e].length>0){return}process.removeListener(e,za[e]);if(ne.exit.length===0&&ne.beforeExit.length===0){et=void 0}}function Dm(){Ya("exit")}function jm(){Ya("beforeExit")}function Ya(e){for(const t of ne[e]){const r=t.deref();const n=t.fn;if(r!==void 0){n(r,e)}}ne[e]=[]}function Bm(e){for(const t of["exit","beforeExit"]){const r=ne[t].indexOf(e);ne[t].splice(r,r+1);Ga(t)}}function Qa(e,t,r){if(t===void 0){throw new Error("the object can't be undefined")}km(e);const n=new WeakRef(t);n.fn=r;Nm();et.register(t,n);ne[e].push(n)}function qm(e,t){Qa("exit",e,t)}function $m(e,t){Qa("beforeExit",e,t)}function Wm(e){if(et===void 0){return}et.unregister(e);for(const t of["exit","beforeExit"]){ne[t]=ne[t].filter(r=>{const n=r.deref();return n&&n!==e});Ga(t)}}Ja.exports={register:qm,registerBeforeExit:$m,unregister:Wm}});var Xa=E((uI,Fm)=>{Fm.exports={name:"thread-stream",version:"4.2.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",engines:{node:">=20"},dependencies:{"real-require":"^1.0.0"},devDependencies:{"@types/node":"^25.0.2","@yao-pkg/pkg":"^6.0.0",borp:"^1.0.0",desm:"^1.3.0",eslint:"^9.39.1",fastbench:"^1.0.1",neostandard:"^0.13.0","pino-elasticsearch":"^9.0.0","sonic-boom":"^5.0.0","ts-node":"^10.8.0",typescript:"~5.7.3"},scripts:{build:"tsc --noEmit",lint:"eslint",test:'npm run lint && npm run build && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:ci":'npm run lint && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:yarn":'npm run transpile && borp --pattern "test/*.test.js"',transpile:"sh ./test/ts/transpile.sh"},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 el=E((cI,Za)=>{"use strict";var yr=1e4;function Um(e,t,r,n,i){const o=n===Infinity?Infinity:Date.now()+n;const s=()=>{const a=Atomics.load(e,t);if(a===r){i(null,"ok");return}if(o!==Infinity&&Date.now()>o){i(null,"timed-out");return}const l=o===Infinity?yr:Math.min(yr,Math.max(1,o-Date.now()));const u=Atomics.waitAsync(e,t,a,l);if(u.async){u.value.then(s)}else{setImmediate(s)}};s()}function Hm(e,t,r,n,i){const o=n===Infinity?Infinity:Date.now()+n;const s=()=>{const a=Atomics.load(e,t);if(a!==r){i(null,"ok");return}if(o!==Infinity&&Date.now()>o){i(null,"timed-out");return}const l=o===Infinity?yr:Math.min(yr,Math.max(1,o-Date.now()));const u=Atomics.waitAsync(e,t,r,l);if(u.async){u.value.then(f=>{if(f==="ok"){i(null,"ok");return}s()})}else{setImmediate(s)}};s()}Za.exports={wait:Um,waitDiff:Hm}});var rl=E((fI,tl)=>{"use strict";var Km=2;var Vm=4;var zm=8;tl.exports={WRITE_INDEX:Vm,READ_INDEX:zm,SEQ_INDEX:Km}});var hl=E((dI,pl)=>{"use strict";var{version:Gm}=Xa();var{EventEmitter:Ym}=I("events");var{Worker:Qm}=I("worker_threads");var{join:Jm}=I("path");var{pathToFileURL:Xm}=I("url");var{wait:Zm}=el();var{WRITE_INDEX:he,READ_INDEX:Le,SEQ_INDEX:Jn}=rl();var eb=I("buffer");var tb=I("assert");var b=Symbol("kImpl");var rb=eb.constants.MAX_STRING_LENGTH;function nl(){}function ti(e,t){Atomics.add(e[b].state,Jn,1);t();Atomics.add(e[b].state,Jn,1);Atomics.notify(e[b].state,Jn)}function il(e){ti(e,()=>{Atomics.store(e[b].state,Le,0);Atomics.store(e[b].state,he,0)})}var Tt=class{constructor(t){this._value=t}deref(){return this._value}};var mr=class{register(){}unregister(){}};var nb=process.env.NODE_V8_COVERAGE?mr:global.FinalizationRegistry||mr;var ib=process.env.NODE_V8_COVERAGE?Tt:global.WeakRef||Tt;var ol=new nb(e=>{if(e.exited){return}e.terminate()});function ob(e,t){const{filename:r,workerData:n}=t;const i="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{};const o=i["thread-stream-worker"]||Jm(__dirname,"lib","worker.js");const s=new Qm(o,{...t.workerOpts,name:t.workerOpts?.name||"thread-stream",trackUnmanagedFds:false,workerData:{filename:r.indexOf("file://")===0?r:Xm(r).href,dataBuf:e[b].dataBuf,stateBuf:e[b].stateBuf,workerData:{$context:{threadStreamVersion:Gm},...n}}});s.stream=new Tt(e);s.on("message",sb);s.on("exit",ll);ol.register(e,s);return s}function sl(e){tb(!e[b].sync);if(e[b].needDrain){e[b].needDrain=false;e.emit("drain")}}function al(e){while(true){const t=Atomics.load(e[b].state,he);const r=e[b].data.length-t;if(r>0){if(e[b].bufLen===0){e[b].flushing=false;if(e[b].ending){ri(e)}else if(e[b].needDrain){process.nextTick(sl,e)}return}fl(e,r,nl);continue}if(r===0){if(t===0&&e[b].bufLen===0){return}br(e,()=>{if(e.destroyed){return}il(e);al(e)});return}X(e,new Error("overwritten"));return}}function sb(e){const t=this.stream.deref();if(t===void 0){this.exited=true;this.terminate();return}if(e?.code==null){return}switch(e.code){case"READY":this.stream=new ib(t);br(t,()=>{t[b].ready=true;t.emit("ready")});break;case"ERROR":X(t,e.err);break;case"EVENT":if(Array.isArray(e.args)){t.emit(e.name,...e.args)}else{t.emit(e.name,e.args)}break;case"FLUSHED":{if(e.context!=="thread-stream"){X(t,new Error("this should not happen: "+e.code));break}const r=t[b].flushCallbacks.get(e.id);if(r){t[b].flushCallbacks.delete(e.id);process.nextTick(r)}break}case"WARNING":process.emitWarning(e.err);break;default:X(t,new Error("this should not happen: "+e.code))}}function ll(e){const t=this.stream.deref();if(t===void 0){return}ol.unregister(t);t.worker.exited=true;t.worker.off("exit",ll);X(t,e!==0?new Error("the worker thread exited"):null)}var Zn=class extends Ym{constructor(t={}){super();if(t.bufferSize<4){throw new Error("bufferSize must at least fit a 4-byte utf-8 char")}this[b]={};this[b].stateBuf=new SharedArrayBuffer(128);this[b].state=new Int32Array(this[b].stateBuf);this[b].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024);this[b].data=Buffer.from(this[b].dataBuf);this[b].sync=t.sync||false;this[b].ending=false;this[b].ended=false;this[b].needDrain=false;this[b].destroyed=false;this[b].flushing=false;this[b].ready=false;this[b].finished=false;this[b].errored=null;this[b].closed=false;this[b].buf=[];this[b].bufHead=0;this[b].bufLen=0;this[b].flushCallbacks=new Map;this[b].nextFlushId=0;this.worker=ob(this,t);this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){const r=Buffer.isBuffer(t)?t:Buffer.from(t);if(this[b].destroyed){ei(this,new Error("the worker has exited"));return false}if(this[b].ending){ei(this,new Error("the worker is ending"));return false}if(this[b].flushing&&this[b].bufLen+r.length>=rb){try{Xn(this);this[b].flushing=true}catch(n){X(this,n);return false}}this[b].buf.push(r);this[b].bufLen+=r.length;if(this[b].sync){try{Xn(this);return true}catch(n){X(this,n);return false}}if(!this[b].flushing){this[b].flushing=true;setImmediate(al,this)}this[b].needDrain=this[b].data.length-this[b].bufLen-Atomics.load(this[b].state,he)<=0;return!this[b].needDrain}end(){if(this[b].destroyed){return}this[b].ending=true;ri(this)}flush(t){t=typeof t==="function"?t:nl;ul(this,r=>{if(r){process.nextTick(t,r);return}cl(this,t)})}flushSync(){if(this[b].destroyed){return}Xn(this);dl(this)}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[b].ready}get destroyed(){return this[b].destroyed}get closed(){return this[b].closed}get writable(){return!this[b].destroyed&&!this[b].ending}get writableEnded(){return this[b].ending}get writableFinished(){return this[b].finished}get writableNeedDrain(){return this[b].needDrain}get writableObjectMode(){return false}get writableErrored(){return this[b].errored}};function ul(e,t){if(e[b].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[b].sync&&(e[b].flushing||e[b].bufLen>0)){setImmediate(ul,e,t);return}br(e,t)}function br(e,t){const r=Atomics.load(e[b].state,he);Zm(e[b].state,Le,r,Infinity,(n,i)=>{if(n){X(e,n);t(n);return}if(i!=="ok"){br(e,t);return}t()})}function cl(e,t){if(e[b].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[b].ready){const n=()=>{o();cl(e,t)};const i=()=>{o();process.nextTick(t,new Error("the worker has exited"))};const o=()=>{e.off("ready",n);e.off("close",i)};e.once("ready",n);e.once("close",i);return}const r=++e[b].nextFlushId;e[b].flushCallbacks.set(r,t);try{e.worker.postMessage({code:"FLUSH",context:"thread-stream",id:r})}catch(n){e[b].flushCallbacks.delete(r);X(e,n);process.nextTick(t,n)}}function ab(e,t){const r=e[b].flushCallbacks;if(r.size===0){return}const n=t||new Error("the worker has exited");for(const i of r.values()){process.nextTick(i,n)}r.clear()}function ei(e,t){setImmediate(()=>{e.emit("error",t)})}function X(e,t){if(e[b].destroyed){return}e[b].destroyed=true;ab(e,t);if(t){e[b].errored=t;ei(e,t)}if(!e.worker.exited){e.worker.terminate().catch(()=>{}).then(()=>{e[b].closed=true;e.emit("close")})}else{setImmediate(()=>{e[b].closed=true;e.emit("close")})}}function fl(e,t,r){const n=Atomics.load(e[b].state,he);let i=n;let o=t;while(o>0&&e[b].bufLen!==0){const s=e[b].bufHead;const a=e[b].buf[s];if(a.length<=o){a.copy(e[b].data,i);i+=a.length;o-=a.length;e[b].bufLen-=a.length;e[b].bufHead=s+1;if(e[b].bufHead===e[b].buf.length){e[b].buf.length=0;e[b].bufHead=0}else if(e[b].bufHead>=1024&&e[b].bufHead*2>=e[b].buf.length){e[b].buf.splice(0,e[b].bufHead);e[b].bufHead=0}continue}a.copy(e[b].data,i,0,o);e[b].buf[s]=a.subarray(o);e[b].bufLen-=o;i+=o;o=0}ti(e,()=>{Atomics.store(e[b].state,he,i)});r();return true}function ri(e){if(e[b].ended||!e[b].ending||e[b].flushing){return}e[b].ended=true;try{e.flushSync();let t=Atomics.load(e[b].state,Le);ti(e,()=>{Atomics.store(e[b].state,he,-1)});let r=0;while(t!==-1){Atomics.wait(e[b].state,Le,t,1e3);t=Atomics.load(e[b].state,Le);if(t===-2){X(e,new Error("end() failed"));return}if(++r===10){X(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[b].finished=true;e.emit("finish")})}catch(t){X(e,t)}}function Xn(e){const t=()=>{if(e[b].ending){ri(e)}else if(e[b].needDrain){process.nextTick(sl,e)}};e[b].flushing=false;while(e[b].bufLen!==0){const r=Atomics.load(e[b].state,he);const n=e[b].data.length-r;if(n===0){dl(e);il(e);continue}else if(n<0){throw new Error("overwritten")}fl(e,n,t)}}function dl(e){if(e[b].flushing){throw new Error("unable to flush while flushing")}const t=Atomics.load(e[b].state,he);let r=0;while(true){const n=Atomics.load(e[b].state,Le);if(n===-2){throw Error("_flushSync failed")}if(n!==t){Atomics.wait(e[b].state,Le,n,1e3)}else{break}if(++r===10){throw new Error("_flushSync took too long (10s)")}}}pl.exports=Zn});var oi=E((pI,ml)=>{"use strict";var{createRequire:lb}=I("module");var{existsSync:ub}=I("node:fs");var cb=Fn();var{join:ni,isAbsolute:yl,sep:fb}=I("node:path");var{fileURLToPath:db}=I("node:url");var pb=zn();var ii=gr();var hb=hl();function gb(e){ii.register(e,Sb);ii.registerBeforeExit(e,_b);e.on("close",function(){ii.unregister(e)})}function yb(){const e=process.execArgv;for(let t=0;t<e.length;t++){const r=e[t];if(r==="--import"||r==="--require"||r==="-r"){return true}if(r.startsWith("--import=")||r.startsWith("--require=")||r.startsWith("-r=")){return true}}return false}function mb(e){const t=e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);if(!t){return e}const r=[];let n=false;for(let i=0;i<t.length;i++){const o=t[i];if(o==="--require"||o==="-r"||o==="--import"){const s=t[i+1];if(s&&gl(s)){n=true;i++;continue}r.push(o);if(s){r.push(s);i++}continue}if(o.startsWith("--require=")||o.startsWith("-r=")||o.startsWith("--import=")){const s=o.slice(o.indexOf("=")+1);if(gl(s)){n=true;continue}}r.push(o)}return n?r.join(" "):e}function gl(e){const t=bb(e);if(!t){return false}let r=t;if(r.startsWith("file://")){try{r=db(r)}catch{return false}}return yl(r)&&!ub(r)}function bb(e){const t=e[0];const r=e[e.length-1];if(t==='"'&&r==='"'||t==="'"&&r==="'"){return e.slice(1,-1)}return e}function wb(e,t,r,n,i){if(!r.execArgv&&yb()&&I.main===void 0){r={...r,execArgv:[]}}if(!r.env&&process.env.NODE_OPTIONS){const l=mb(process.env.NODE_OPTIONS);if(l!==process.env.NODE_OPTIONS){r={...r,env:{...process.env,NODE_OPTIONS:l}}}}r={...r,name:i};const o=new hb({filename:e,workerData:t,workerOpts:r,sync:n});o.on("ready",s);o.on("close",function(){process.removeListener("exit",a)});process.on("exit",a);function s(){process.removeListener("exit",a);o.unref();if(r.autoEnd!==false){gb(o)}}function a(){if(o.closed){return}o.flushSync();pb(100);o.end()}return o}function Sb(e){e.ref();e.flushSync();e.end();e.once("close",function(){e.unref()})}function _b(e){e.flushSync()}function Eb(e){const{pipeline:t,targets:r,levels:n,dedupe:i,worker:o={},caller:s=cb(),sync:a=false}=e;const l={...e.options};const u=typeof s==="string"?[s]:s;const f=typeof globalThis==="object"&&Object.prototype.hasOwnProperty.call(globalThis,"__bundlerPathsOverrides")&&globalThis.__bundlerPathsOverrides&&typeof globalThis.__bundlerPathsOverrides==="object"?globalThis.__bundlerPathsOverrides:Object.create(null);let c=e.target;if(c&&r){throw new Error("only one of target or targets can be specified")}if(r){c=f["pino-worker"]||ni(__dirname,"worker.js");l.targets=r.filter(d=>d.target).map(d=>{return{...d,target:p(d.target)}});l.pipelines=r.filter(d=>d.pipeline).map(d=>{return d.pipeline.map(g=>{return{...g,level:d.level,target:p(g.target)}})})}else if(t){c=f["pino-worker"]||ni(__dirname,"worker.js");l.pipelines=[t.map(d=>{return{...d,target:p(d.target)}})]}if(n){l.levels=n}if(i){l.dedupe=i}l.pinoWillSendConfig=true;const h=r||t?"pino.transport":c;return wb(p(c),l,o,a,h);function p(d){d=f[d]||d;if(yl(d)||d.indexOf("file://")===0){return d}if(d==="pino/file"){return ni(__dirname,"..","file.js")}let g;for(const y of u){try{const m=y==="node:repl"?process.cwd()+fb:y;g=lb(m).resolve(d);break}catch(m){continue}}if(!g){throw new Error(`unable to determine transport target for "${d}"`)}return g}}ml.exports=Eb});var _r=E((gI,Ol)=>{"use strict";var xb=I("node:diagnostics_channel");var bl=qa();var{mapHttpRequest:Ab,mapHttpResponse:Rb}=Wn();var ai=Qn();var wl=gr();var{lsCacheSym:Tb,chindingsSym:Al,writeSym:Sl,serializersSym:Rl,formatOptsSym:_l,endSym:vb,stringifiersSym:Tl,stringifySym:vl,stringifySafeSym:li,wildcardFirstSym:Cl,nestedKeySym:Cb,formattersSym:Ml,messageKeySym:Mb,errorKeySym:Ob,nestedKeyStrSym:Ib,msgPrefixSym:wr}=Ze();var{isMainThread:Lb}=I("worker_threads");var Pb=oi();var[Nb]=process.versions.node.split(".").map(e=>Number(e));var El=xb.tracingChannel("pino_asJson");var si=Nb>=25?e=>JSON.stringify(e):Db;function tt(){}function kb(e,t){if(!t)return r;return function n(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n==="object"){let o=n;if(n!==null){if(n.method&&n.headers&&n.socket){n=Ab(n)}else if(typeof n.setHeader==="function"){n=Rb(n)}}let s;if(o===null&&i.length===0){s=[null]}else{o=i.shift();s=i}if(typeof this[wr]==="string"&&o!==void 0&&o!==null){o=this[wr]+o}this[Sl](n,bl(o,s,this[_l]),e)}else{let o=n===void 0?i.shift():n;if(typeof this[wr]==="string"&&o!==void 0&&o!==null){o=this[wr]+o}this[Sl](null,bl(o,i,this[_l]),e)}}}function Db(e){let t="";let r=0;let n=false;let i=255;const o=e.length;if(o>100){return JSON.stringify(e)}for(var s=0;s<o&&i>=32;s++){i=e.charCodeAt(s);if(i===34||i===92){t+=e.slice(r,s)+"\\";r=s;n=true}}if(!n){t=e}else{t+=e.slice(r)}return i<32?JSON.stringify(e):'"'+t+'"'}function jb(e,t,r,n){if(El.hasSubscribers===false){return xl.call(this,e,t,r,n)}const i={instance:this,arguments};return El.traceSync(xl,i,this,e,t,r,n)}function xl(e,t,r,n){const i=this[vl];const o=this[li];const s=this[Tl];const a=this[vb];const l=this[Al];const u=this[Rl];const f=this[Ml];const c=this[Mb];const h=this[Ob];let p=this[Tb][r]+n;p=p+l;let d;if(f.log){e=f.log(e)}const g=s[Cl];let y="";for(const w in e){d=e[w];if(Object.prototype.hasOwnProperty.call(e,w)&&d!==void 0){if(u[w]){d=u[w](d)}else if(w===h&&u.err){d=u.err(d)}const _=s[w]||g;switch(typeof d){case"undefined":case"function":continue;case"number":if(Number.isFinite(d)===false){d=null}case"boolean":if(_)d=_(d);break;case"string":d=(_||si)(d);break;default:d=(_||i)(d,o)}if(d===void 0)continue;const S=si(w);y+=","+S+":"+d}}let m="";if(t!==void 0){d=u[c]?u[c](t):t;const w=s[c]||g;switch(typeof d){case"function":break;case"number":if(Number.isFinite(d)===false){d=null}case"boolean":if(w)d=w(d);m=',"'+c+'":'+d;break;case"string":d=(w||si)(d);m=',"'+c+'":'+d;break;default:d=(w||i)(d,o);m=',"'+c+'":'+d}}if(this[Cb]&&y){return p+this[Ib]+y.slice(1)+"}"+m+a}else{return p+y+m+a}}function Bb(e,t){let r;let n=e[Al];const i=e[vl];const o=e[li];const s=e[Tl];const a=s[Cl];const l=e[Rl];const u=e[Ml].bindings;t=u(t);for(const f in t){r=t[f];const c=(f.length<5||f!=="level"&&f!=="serializers"&&f!=="formatters"&&f!=="customLevels")&&t.hasOwnProperty(f)&&r!==void 0;if(c===true){r=l[f]?l[f](r):r;r=(s[f]||a||i)(r,o);if(r===void 0)continue;n+=',"'+f+'":'+r}}return n}function qb(e){return e.write!==e.constructor.prototype.write}function Sr(e){const t=new ai(e);t.on("error",r);if(!e.sync&&Lb){wl.register(t,$b);t.on("close",function(){wl.unregister(t)})}return t;function r(n){if(n.code==="EPIPE"){t.write=tt;t.end=tt;t.flushSync=tt;t.destroy=tt;return}t.removeListener("error",r);t.emit("error",n)}}function $b(e,t){if(e.destroyed){return}if(t==="beforeExit"){e.flush();e.on("drain",function(){e.end()})}else{e.flushSync()}}function Wb(e){return function t(r,n,i={},o){if(typeof i==="string"){o=Sr({dest:i});i={}}else if(typeof o==="string"){if(i&&i.transport){throw Error("only one of option.transport or stream can be specified")}o=Sr({dest:o})}else if(i instanceof ai||i.writable||i._writableState){o=i;i={}}else if(i.transport){if(i.transport instanceof ai||i.transport.writable||i.transport._writableState){throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)")}if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level==="function"){throw Error("option.transport.targets do not allow custom level formatters")}let l;if(i.customLevels){l=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)}o=Pb({caller:n,...i.transport,levels:l})}i=Object.assign({},e,i);i.serializers=Object.assign({},e.serializers,i.serializers);i.formatters=Object.assign({},e.formatters,i.formatters);if(i.prettyPrint){throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)")}const{enabled:s,onChild:a}=i;if(s===false)i.level="silent";if(!a)i.onChild=tt;if(!o){if(!qb(process.stdout)){o=Sr({fd:process.stdout.fd||1})}else{o=process.stdout}}return{opts:i,stream:o}}}function Fb(e,t){try{return JSON.stringify(e)}catch(r){try{const n=t||this[li];return n(e)}catch(n){return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function Ub(e,t,r){return{level:e,bindings:t,log:r}}function Hb(e){const t=Number(e);if(typeof e==="string"&&Number.isFinite(t)){return t}if(e===void 0){return 1}return e}Ol.exports={noop:tt,buildSafeSonicBoom:Sr,asChindings:Bb,asJson:jb,genLog:kb,createArgsNormalizer:Wb,stringify:Fb,buildFormatters:Ub,normalizeDestFileDescriptor:Hb}});var Er=E((yI,Il)=>{var Kb={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};var Vb={ASC:"ASC",DESC:"DESC"};Il.exports={DEFAULT_LEVELS:Kb,SORTING_ORDER:Vb}});var fi=E((mI,kl)=>{"use strict";var{lsCacheSym:zb,levelValSym:ui,useOnlyCustomLevelsSym:Gb,streamSym:Yb,formattersSym:Qb,hooksSym:Jb,levelCompSym:Ll}=Ze();var{noop:Xb,genLog:Pe}=_r();var{DEFAULT_LEVELS:ae,SORTING_ORDER:Pl}=Er();var Nl={fatal:e=>{const t=Pe(ae.fatal,e);return function(...r){const n=this[Yb];t.call(this,...r);if(typeof n.flushSync==="function"){try{n.flushSync()}catch(i){}}}},error:e=>Pe(ae.error,e),warn:e=>Pe(ae.warn,e),info:e=>Pe(ae.info,e),debug:e=>Pe(ae.debug,e),trace:e=>Pe(ae.trace,e)};var ci=Object.keys(ae).reduce((e,t)=>{e[ae[t]]=t;return e},{});var Zb=Object.keys(ci).reduce((e,t)=>{e[t]='{"level":'+Number(t);return e},{});function ew(e){const t=e[Qb].level;const{labels:r}=e.levels;const n={};for(const i in r){const o=t(r[i],Number(i));n[i]=JSON.stringify(o).slice(0,-1)}e[zb]=n;return e}function tw(e,t){if(t){return false}switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return true;default:return false}}function rw(e){const{labels:t,values:r}=this.levels;if(typeof e==="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);const n=this[ui];const i=this[ui]=r[e];const o=this[Gb];const s=this[Ll];const a=this[Jb].logMethod;for(const l in r){if(s(r[l],i)===false){this[l]=Xb;continue}this[l]=tw(l,o)?Nl[l](a):Pe(r[l],a)}this.emit("level-change",e,i,t[n],n,this)}function nw(e){const{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function iw(e){const{values:t}=this.levels;const r=t[e];return r!==void 0&&this[Ll](r,this[ui])}function ow(e,t,r){if(e===Pl.DESC){return t<=r}return t>=r}function sw(e){if(typeof e==="string"){return ow.bind(null,e)}return e}function aw(e=null,t=false){const r=e?Object.keys(e).reduce((o,s)=>{o[e[s]]=s;return o},{}):null;const n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:ci,r);const i=Object.assign(Object.create(Object.prototype,{silent:{value:Infinity}}),t?null:ae,e);return{labels:n,values:i}}function lw(e,t,r){if(typeof e==="number"){const i=[].concat(Object.keys(t||{}).map(o=>t[o]),r?[]:Object.keys(ci).map(o=>+o),Infinity);if(!i.includes(e)){throw Error(`default level:${e} must be included in custom levels`)}return}const n=Object.assign(Object.create(Object.prototype,{silent:{value:Infinity}}),r?null:ae,t);if(!(e in n)){throw Error(`default level:${e} must be included in custom levels`)}}function uw(e,t){const{labels:r,values:n}=e;for(const i in t){if(i in n){throw Error("levels cannot be overridden")}if(t[i]in r){throw Error("pre-existing level values cannot be used for new levels")}}}function cw(e){if(typeof e==="function"){return}if(typeof e==="string"&&Object.values(Pl).includes(e)){return}throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}kl.exports={initialLsCache:Zb,genLsCache:ew,levelMethods:Nl,getLevel:nw,setLevel:rw,isLevelEnabled:iw,mappings:aw,assertNoLevelCollisions:uw,assertDefaultLevelFound:lw,genLevelComparison:sw,assertLevelComparison:cw}});var di=E((bI,Dl)=>{"use strict";Dl.exports={version:"10.3.1"}});var Hl=E((SI,Ul)=>{"use strict";var{EventEmitter:fw}=I("node:events");var{lsCacheSym:dw,levelValSym:pw,setLevelSym:hi,getLevelSym:jl,chindingsSym:Ar,mixinSym:hw,asJsonSym:ql,writeSym:gw,mixinMergeStrategySym:yw,timeSym:mw,timeSliceIndexSym:bw,streamSym:$l,serializersSym:Ne,formattersSym:vt,errorKeySym:ww,messageKeySym:Sw,useOnlyCustomLevelsSym:_w,needsMetadataGsym:Ew,redactFmtSym:xw,stringifySym:Aw,formatOptsSym:Rw,stringifiersSym:Tw,msgPrefixSym:gi,hooksSym:vw}=Ze();var{getLevel:Cw,setLevel:Mw,isLevelEnabled:Ow,mappings:Iw,initialLsCache:Lw,genLsCache:Pw,assertNoLevelCollisions:Nw}=fi();var{asChindings:yi,asJson:kw,buildFormatters:pi,stringify:Bl,noop:Wl}=_r();var{version:Dw}=di();var jw=Kn();var Bw=class wI{};var Fl={constructor:Bw,child:qw,bindings:$w,setBindings:Ww,flush:Hw,isLevelEnabled:Ow,version:Dw,get level(){return this[jl]()},set level(e){this[hi](e)},get levelVal(){return this[pw]},set levelVal(e){throw Error("levelVal is read-only")},get msgPrefix(){return this[gi]},get[Symbol.toStringTag](){return"Pino"},[dw]:Lw,[gw]:Uw,[ql]:kw,[jl]:Cw,[hi]:Mw};Object.setPrototypeOf(Fl,fw.prototype);Ul.exports=function(){return Object.create(Fl)};var xr=e=>e;function qw(e,t){if(!e){throw Error("missing bindings for child Pino")}const r=this[Ne];const n=this[vt];const i=Object.create(this);if(t==null){if(i[vt].bindings!==xr){i[vt]=pi(n.level,xr,n.log)}i[Ar]=yi(i,e);if(this.onChild!==Wl){this.onChild(i)}return i}if(t.hasOwnProperty("serializers")===true){i[Ne]=Object.create(null);for(const u in r){i[Ne][u]=r[u]}const a=Object.getOwnPropertySymbols(r);for(var o=0;o<a.length;o++){const u=a[o];i[Ne][u]=r[u]}for(const u in t.serializers){i[Ne][u]=t.serializers[u]}const l=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<l.length;s++){const u=l[s];i[Ne][u]=t.serializers[u]}}else i[Ne]=r;if(t.hasOwnProperty("formatters")){const{level:a,bindings:l,log:u}=t.formatters;i[vt]=pi(a||n.level,l||xr,u||n.log)}else{i[vt]=pi(n.level,xr,n.log)}if(t.hasOwnProperty("customLevels")===true){Nw(this.levels,t.customLevels);i.levels=Iw(t.customLevels,i[_w]);Pw(i)}if(typeof t.redact==="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;const a=jw(i.redact,Bl);const l={stringify:a[xw]};i[Aw]=Bl;i[Tw]=a;i[Rw]=l}if(typeof t.msgPrefix==="string"){i[gi]=(this[gi]||"")+t.msgPrefix}i[Ar]=yi(i,e);if(t.level!==void 0&&t.level!==this.level||t.hasOwnProperty("customLevels")){const a=t.level||this.level;i[hi](a)}this.onChild(i);return i}function $w(){const e=this[Ar];const t=`{${e.substr(1)}}`;const r=JSON.parse(t);delete r.pid;delete r.hostname;return r}function Ww(e){const t=yi(this,e);this[Ar]=t}function Fw(e,t){return Object.assign(t,e)}function Uw(e,t,r){const n=this[mw]();const i=this[hw];const o=this[ww];const s=this[Sw];const a=this[yw]||Fw;let l;const u=this[vw].streamWrite;if(e===void 0||e===null){l={}}else if(e instanceof Error){l={[o]:e};if(t===void 0){t=e.message}}else{l=e;if(t===void 0&&e[s]===void 0&&e[o]){t=e[o].message}}if(i){l=a(l,i(l,r,this))}const f=this[ql](l,t,r,n);const c=this[$l];if(c[Ew]===true){c.lastLevel=r;c.lastObj=l;c.lastMsg=t;c.lastTime=n.slice(this[bw]);c.lastLogger=this}c.write(u?u(f):f)}function Hw(e){if(e!=null&&typeof e!=="function"){throw Error("callback must be a function")}const t=this[$l];if(typeof t.flush==="function"){t.flush(e||Wl)}else if(e)e()}});var Gl=E((Si,zl)=>{"use strict";var{hasOwnProperty:Ct}=Object.prototype;var De=wi();De.configure=wi;De.stringify=De;De.default=De;Si.stringify=De;Si.configure=wi;zl.exports=De;var Kw=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function _e(e){if(e.length<5e3&&!Kw.test(e)){return`"${e}"`}return JSON.stringify(e)}function mi(e,t){if(e.length>200||t){return e.sort(t)}for(let r=1;r<e.length;r++){const n=e[r];let i=r;while(i!==0&&e[i-1]>n){e[i]=e[i-1];i--}e[i]=n}return e}var Vw=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function bi(e){return Vw.call(e)!==void 0&&e.length!==0}function Kl(e,t,r){if(e.length<r){r=e.length}const n=t===","?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++){i+=`${t}"${o}":${n}${e[o]}`}return i}function zw(e){if(Ct.call(e,"circularValue")){const t=e.circularValue;if(typeof t==="string"){return`"${t}"`}if(t==null){return t}if(t===Error||t===TypeError){return{toString(){throw new TypeError("Converting circular structure to JSON")}}}throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Gw(e){let t;if(Ct.call(e,"deterministic")){t=e.deterministic;if(typeof t!=="boolean"&&typeof t!=="function"){throw new TypeError('The "deterministic" argument must be of type boolean or comparator function')}}return t===void 0?true:t}function Yw(e,t){let r;if(Ct.call(e,t)){r=e[t];if(typeof r!=="boolean"){throw new TypeError(`The "${t}" argument must be of type boolean`)}}return r===void 0?true:r}function Vl(e,t){let r;if(Ct.call(e,t)){r=e[t];if(typeof r!=="number"){throw new TypeError(`The "${t}" argument must be of type number`)}if(!Number.isInteger(r)){throw new TypeError(`The "${t}" argument must be an integer`)}if(r<1){throw new RangeError(`The "${t}" argument must be >= 1`)}}return r===void 0?Infinity:r}function ke(e){if(e===1){return"1 item"}return`${e} items`}function Qw(e){const t=new Set;for(const r of e){if(typeof r==="string"||typeof r==="number"){t.add(String(r))}}return t}function Jw(e){if(Ct.call(e,"strict")){const t=e.strict;if(typeof t!=="boolean"){throw new TypeError('The "strict" argument must be of type boolean')}if(t){return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;if(typeof r!=="function")n+=` (${r.toString()})`;throw new Error(n)}}}}function wi(e){e={...e};const t=Jw(e);if(t){if(e.bigint===void 0){e.bigint=false}if(!("circularValue"in e)){e.circularValue=Error}}const r=zw(e);const n=Yw(e,"bigint");const i=Gw(e);const o=typeof i==="function"?i:void 0;const s=Vl(e,"maximumDepth");const a=Vl(e,"maximumBreadth");function l(p,d,g,y,m,w){let _=d[p];if(typeof _==="object"&&_!==null&&typeof _.toJSON==="function"){_=_.toJSON(p)}_=y.call(d,p,_);switch(typeof _){case"string":return _e(_);case"object":{if(_===null){return"null"}if(g.indexOf(_)!==-1){return r}let S="";let A=",";const v=w;if(Array.isArray(_)){if(_.length===0){return"[]"}if(s<g.length+1){return'"[Array]"'}g.push(_);if(m!==""){w+=m;S+=`
|
|
2
|
+
import{a as qh}from"./chunk-XSEU4WQD.js";import{a as I,c as E,e as Ns}from"./chunk-XQK7JM66.js";var Pn=E((zO,sa)=>{"use strict";var Rt=e=>{return e&&typeof e.message==="string"};var Ln=e=>{if(!e)return;const t=e.cause;if(typeof t==="function"){const r=e.cause();return Rt(r)?r:void 0}else{return Rt(t)?t:void 0}};var ia=(e,t)=>{if(!Rt(e))return"";const r=e.stack||"";if(t.has(e)){return r+"\ncauses have become circular..."}const n=Ln(e);if(n){t.add(e);return r+"\ncaused by: "+ia(n,t)}else{return r}};var iy=e=>ia(e,new Set);var oa=(e,t,r)=>{if(!Rt(e))return"";const n=r?"":e.message||"";if(t.has(e)){return n+": ..."}const i=Ln(e);if(i){t.add(e);const o=typeof e.cause==="function";return n+(o?"":": ")+oa(i,t,o)}else{return n}};var oy=e=>oa(e,new Set);sa.exports={isErrorLike:Rt,getErrorCause:Ln,stackWithCauses:iy,messageWithCauses:oy}});var Nn=E((GO,la)=>{"use strict";var sy=Symbol("circular-ref-tag");var or=Symbol("pino-raw-err-ref");var aa=Object.create({},{type:{enumerable:true,writable:true,value:void 0},message:{enumerable:true,writable:true,value:void 0},stack:{enumerable:true,writable:true,value:void 0},aggregateErrors:{enumerable:true,writable:true,value:void 0},raw:{enumerable:false,get:function(){return this[or]},set:function(e){this[or]=e}}});Object.defineProperty(aa,or,{writable:true,value:{}});la.exports={pinoErrProto:aa,pinoErrorSymbols:{seen:sy,rawSymbol:or}}});var fa=E((YO,ca)=>{"use strict";ca.exports=Dn;var{messageWithCauses:ay,stackWithCauses:ly,isErrorLike:ua}=Pn();var{pinoErrProto:uy,pinoErrorSymbols:cy}=Nn();var{seen:kn}=cy;var{toString:fy}=Object.prototype;function Dn(e){if(!ua(e)){return e}e[kn]=void 0;const t=Object.create(uy);t.type=fy.call(e.constructor)==="[object Function]"?e.constructor.name:e.name;t.message=ay(e);t.stack=ly(e);if(Array.isArray(e.errors)){t.aggregateErrors=e.errors.map(r=>Dn(r))}for(const r in e){if(t[r]===void 0){const n=e[r];if(ua(n)){if(r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,kn)){t[r]=Dn(n)}}else{t[r]=n}}}delete e[kn];t.raw=e;return t}});var pa=E((QO,da)=>{"use strict";da.exports=ar;var{isErrorLike:jn}=Pn();var{pinoErrProto:dy,pinoErrorSymbols:py}=Nn();var{seen:sr}=py;var{toString:hy}=Object.prototype;function ar(e){if(!jn(e)){return e}e[sr]=void 0;const t=Object.create(dy);t.type=hy.call(e.constructor)==="[object Function]"?e.constructor.name:e.name;t.message=e.message;t.stack=e.stack;if(Array.isArray(e.errors)){t.aggregateErrors=e.errors.map(r=>ar(r))}if(jn(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,sr)){t.cause=ar(e.cause)}for(const r in e){if(t[r]===void 0){const n=e[r];if(jn(n)){if(!Object.prototype.hasOwnProperty.call(n,sr)){t[r]=ar(n)}}else{t[r]=n}}}delete e[sr];t.raw=e;return t}});var ma=E((JO,ya)=>{"use strict";ya.exports={mapHttpRequest:gy,reqSerializer:ga};var Bn=Symbol("pino-raw-req-ref");var ha=Object.create({},{id:{enumerable:true,writable:true,value:""},method:{enumerable:true,writable:true,value:""},url:{enumerable:true,writable:true,value:""},query:{enumerable:true,writable:true,value:""},params:{enumerable:true,writable:true,value:""},headers:{enumerable:true,writable:true,value:{}},remoteAddress:{enumerable:true,writable:true,value:""},remotePort:{enumerable:true,writable:true,value:""},raw:{enumerable:false,get:function(){return this[Bn]},set:function(e){this[Bn]=e}}});Object.defineProperty(ha,Bn,{writable:true,value:{}});function ga(e){const t=e.info||e.socket;const r=Object.create(ha);r.id=typeof e.id==="function"?e.id():e.id||(e.info?e.info.id:void 0);r.method=e.method;if(e.originalUrl){r.url=e.originalUrl}else{const n=e.path;r.url=typeof n==="string"?n:e.url?e.url.path||e.url:void 0}if(e.query){r.query=e.query}if(e.params){r.params=e.params}r.headers=e.headers;r.remoteAddress=t&&t.remoteAddress;r.remotePort=t&&t.remotePort;r.raw=e.raw||e;return r}function gy(e){return{req:ga(e)}}});var _a=E((XO,Sa)=>{"use strict";Sa.exports={mapHttpResponse:yy,resSerializer:wa};var qn=Symbol("pino-raw-res-ref");var ba=Object.create({},{statusCode:{enumerable:true,writable:true,value:0},headers:{enumerable:true,writable:true,value:""},raw:{enumerable:false,get:function(){return this[qn]},set:function(e){this[qn]=e}}});Object.defineProperty(ba,qn,{writable:true,value:{}});function wa(e){const t=Object.create(ba);t.statusCode=e.headersSent?e.statusCode:null;t.headers=e.getHeaders?e.getHeaders():e._headers;t.raw=e;return t}function yy(e){return{res:wa(e)}}});var Wn=E((ZO,Ea)=>{"use strict";var $n=fa();var my=pa();var lr=ma();var ur=_a();Ea.exports={err:$n,errWithCause:my,mapHttpRequest:lr.mapHttpRequest,mapHttpResponse:ur.mapHttpResponse,req:lr.reqSerializer,res:ur.resSerializer,wrapErrorSerializer:function e(t){if(t===$n)return t;return function r(n){return t($n(n))}},wrapRequestSerializer:function e(t){if(t===lr.reqSerializer)return t;return function r(n){return t(lr.reqSerializer(n))}},wrapResponseSerializer:function e(t){if(t===ur.resSerializer)return t;return function r(n){return t(ur.resSerializer(n))}}}});var Fn=E((eI,xa)=>{"use strict";function by(e,t){return t}xa.exports=function e(){const t=Error.prepareStackTrace;Error.prepareStackTrace=by;const r=new Error().stack;Error.prepareStackTrace=t;if(!Array.isArray(r)){return void 0}const n=r.slice(2);const i=[];for(const o of n){if(!o){continue}i.push(o.getFileName())}return i}});var Ma=E((tI,Ca)=>{"use strict";function Un(e){if(e===null||typeof e!=="object"){return e}if(e instanceof Date){return new Date(e.getTime())}if(e instanceof Array){const t=[];for(let r=0;r<e.length;r++){t[r]=Un(e[r])}return t}if(typeof e==="object"){const t=Object.create(Object.getPrototypeOf(e));for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=Un(e[r])}}return t}return e}function Aa(e){const t=[];let r="";let n=false;let i=false;let o="";for(let s=0;s<e.length;s++){const a=e[s];if(!n&&a==="."){if(r){t.push(r);r=""}}else if(a==="["){if(r){t.push(r);r=""}n=true}else if(a==="]"&&n){t.push(r);r="";n=false;i=false}else if((a==='"'||a==="'")&&n){if(!i){i=true;o=a}else if(a===o){i=false;o=""}else{r+=a}}else{r+=a}}if(r){t.push(r)}return t}function Ra(e,t,r){let n=e;for(let o=0;o<t.length-1;o++){const s=t[o];if(typeof n!=="object"||n===null||!(s in n)){return false}if(typeof n[s]!=="object"||n[s]===null){return false}n=n[s]}const i=t[t.length-1];if(i==="*"){if(Array.isArray(n)){for(let o=0;o<n.length;o++){n[o]=r}}else if(typeof n==="object"&&n!==null){for(const o in n){if(Object.prototype.hasOwnProperty.call(n,o)){n[o]=r}}}}else{if(typeof n==="object"&&n!==null&&i in n&&Object.prototype.hasOwnProperty.call(n,i)){n[i]=r}}return true}function Ta(e,t){let r=e;for(let i=0;i<t.length-1;i++){const o=t[i];if(typeof r!=="object"||r===null||!(o in r)){return false}if(typeof r[o]!=="object"||r[o]===null){return false}r=r[o]}const n=t[t.length-1];if(n==="*"){if(Array.isArray(r)){for(let i=0;i<r.length;i++){r[i]=void 0}}else if(typeof r==="object"&&r!==null){for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){delete r[i]}}}}else{if(typeof r==="object"&&r!==null&&n in r&&Object.prototype.hasOwnProperty.call(r,n)){delete r[n]}}return true}var cr=Symbol("PATH_NOT_FOUND");function wy(e,t){let r=e;for(const n of t){if(r===null||r===void 0){return cr}if(typeof r!=="object"||r===null){return cr}if(!(n in r)){return cr}r=r[n]}return r}function Sy(e,t){let r=e;for(const n of t){if(r===null||r===void 0){return void 0}if(typeof r!=="object"||r===null){return void 0}r=r[n]}return r}function _y(e,t,r,n=false){for(const i of t){const o=Aa(i);if(o.includes("*")){va(e,o,r,i,n)}else{if(n){Ta(e,o)}else{const s=wy(e,o);if(s===cr){continue}const a=typeof r==="function"?r(s,o):r;Ra(e,o,a)}}}}function va(e,t,r,n,i=false){const o=t.indexOf("*");if(o===t.length-1){const s=t.slice(0,-1);let a=e;for(const l of s){if(a===null||a===void 0)return;if(typeof a!=="object"||a===null)return;a=a[l]}if(Array.isArray(a)){if(i){for(let l=0;l<a.length;l++){a[l]=void 0}}else{for(let l=0;l<a.length;l++){const u=[...s,l.toString()];const f=typeof r==="function"?r(a[l],u):r;a[l]=f}}}else if(typeof a==="object"&&a!==null){if(i){const l=[];for(const u in a){if(Object.prototype.hasOwnProperty.call(a,u)){l.push(u)}}for(const u of l){delete a[u]}}else{for(const l in a){const u=[...s,l];const f=typeof r==="function"?r(a[l],u):r;a[l]=f}}}}else{Ey(e,t,r,o,n,i)}}function Ey(e,t,r,n,i,o=false){const s=t.slice(0,n);const a=t.slice(n+1);const l=[];function u(f,c){if(c===s.length){if(Array.isArray(f)){for(let h=0;h<f.length;h++){l[c]=h.toString();u(f[h],c+1)}}else if(typeof f==="object"&&f!==null){for(const h in f){l[c]=h;u(f[h],c+1)}}}else if(c<s.length){const h=s[c];if(f&&typeof f==="object"&&f!==null&&h in f){l[c]=h;u(f[h],c+1)}}else{if(a.includes("*")){const h=typeof r==="function"?(p,d)=>{const g=[...l.slice(0,c),...d];return r(p,g)}:r;va(f,a,h,i,o)}else{if(o){Ta(f,a)}else{const h=typeof r==="function"?r(Sy(f,a),[...l.slice(0,c),...a]):r;Ra(f,a,h)}}}}if(s.length===0){u(e,0)}else{let f=e;for(let c=0;c<s.length;c++){const h=s[c];if(f===null||f===void 0)return;if(typeof f!=="object"||f===null)return;f=f[h];l[c]=h}if(f!==null&&f!==void 0){u(f,s.length)}}}function xy(e){if(e.length===0){return null}const t=new Map;for(const r of e){const n=Aa(r);let i=t;for(let o=0;o<n.length;o++){const s=n[o];if(!i.has(s)){i.set(s,new Map)}i=i.get(s)}}return t}function Ay(e,t){if(!t){return e}function r(n,i,o=0){if(!i||i.size===0){return n}if(n===null||typeof n!=="object"){return n}if(n instanceof Date){return new Date(n.getTime())}if(Array.isArray(n)){const a=[];for(let l=0;l<n.length;l++){const u=l.toString();if(i.has(u)||i.has("*")){a[l]=r(n[l],i.get(u)||i.get("*"))}else{a[l]=n[l]}}return a}const s=Object.create(Object.getPrototypeOf(n));for(const a in n){if(Object.prototype.hasOwnProperty.call(n,a)){if(i.has(a)||i.has("*")){s[a]=r(n[a],i.get(a)||i.get("*"))}else{s[a]=n[a]}}}return s}return r(e,t)}function Ry(e){if(typeof e!=="string"){throw new Error("Paths must be (non-empty) strings")}if(e===""){throw new Error("Invalid redaction path ()")}if(e.includes("..")){throw new Error(`Invalid redaction path (${e})`)}if(e.includes(",")){throw new Error(`Invalid redaction path (${e})`)}let t=0;let r=false;let n="";for(let i=0;i<e.length;i++){const o=e[i];if((o==='"'||o==="'")&&t>0){if(!r){r=true;n=o}else if(o===n){r=false;n=""}}else if(o==="["&&!r){t++}else if(o==="]"&&!r){t--;if(t<0){throw new Error(`Invalid redaction path (${e})`)}}}if(t!==0){throw new Error(`Invalid redaction path (${e})`)}}function Ty(e){if(!Array.isArray(e)){throw new TypeError("paths must be an array")}for(const t of e){Ry(t)}}function vy(e={}){const{paths:t=[],censor:r="[REDACTED]",serialize:n=JSON.stringify,strict:i=true,remove:o=false}=e;Ty(t);const s=xy(t);return function a(l){if(i&&(l===null||typeof l!=="object")){if(l===null||l===void 0){return n?n(l):l}if(typeof l!=="object"){return n?n(l):l}}const u=Ay(l,s);const f=l;let c=r;if(typeof r==="function"){c=r}_y(u,t,c,o);if(n===false){u.restore=function(){return Un(f)};return u}if(typeof n==="function"){return n(u)}return JSON.stringify(u)}}Ca.exports=vy});var Ze=E((rI,Oa)=>{"use strict";var Cy=Symbol("pino.setLevel");var My=Symbol("pino.getLevel");var Oy=Symbol("pino.levelVal");var Iy=Symbol("pino.levelComp");var Ly=Symbol("pino.useLevelLabels");var Py=Symbol("pino.useOnlyCustomLevels");var Ny=Symbol("pino.mixin");var ky=Symbol("pino.lsCache");var Dy=Symbol("pino.chindings");var jy=Symbol("pino.asJson");var By=Symbol("pino.write");var qy=Symbol("pino.redactFmt");var $y=Symbol("pino.time");var Wy=Symbol("pino.timeSliceIndex");var Fy=Symbol("pino.stream");var Uy=Symbol("pino.stringify");var Hy=Symbol("pino.stringifySafe");var Ky=Symbol("pino.stringifiers");var Vy=Symbol("pino.end");var zy=Symbol("pino.formatOpts");var Gy=Symbol("pino.messageKey");var Yy=Symbol("pino.errorKey");var Qy=Symbol("pino.nestedKey");var Jy=Symbol("pino.nestedKeyStr");var Xy=Symbol("pino.mixinMergeStrategy");var Zy=Symbol("pino.msgPrefix");var em=Symbol("pino.wildcardFirst");var tm=Symbol.for("pino.serializers");var rm=Symbol.for("pino.formatters");var nm=Symbol.for("pino.hooks");var im=Symbol.for("pino.metadata");Oa.exports={setLevelSym:Cy,getLevelSym:My,levelValSym:Oy,levelCompSym:Iy,useLevelLabelsSym:Ly,mixinSym:Ny,lsCacheSym:ky,chindingsSym:Dy,asJsonSym:jy,writeSym:By,serializersSym:tm,redactFmtSym:qy,timeSym:$y,timeSliceIndexSym:Wy,streamSym:Fy,stringifySym:Uy,stringifySafeSym:Hy,stringifiersSym:Ky,endSym:Vy,formatOptsSym:zy,messageKeySym:Gy,errorKeySym:Yy,nestedKeySym:Qy,wildcardFirstSym:em,needsMetadataGsym:im,useOnlyCustomLevelsSym:Py,formattersSym:rm,hooksSym:nm,nestedKeyStrSym:Jy,mixinMergeStrategySym:Xy,msgPrefixSym:Zy}});var Kn=E((nI,Na)=>{"use strict";var Ia=Ma();var{redactFmtSym:om,wildcardFirstSym:fr}=Ze();var Hn=/[^.[\]]+|\[([^[\]]*?)\]/g;var La="[Redacted]";var Pa=false;function sm(e,t){const{paths:r,censor:n,remove:i}=am(e);const o=r.reduce((l,u)=>{Hn.lastIndex=0;const f=Hn.exec(u);const c=Hn.exec(u);let h=f[1]!==void 0?f[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):f[0];if(h==="*"){h=fr}if(c===null){l[h]=null;return l}if(l[h]===null){return l}const{index:p}=c;const d=`${u.substr(p,u.length-1)}`;l[h]=l[h]||[];if(h!==fr&&l[h].length===0){l[h].push(...l[fr]||[])}if(h===fr){Object.keys(l).forEach(function(g){if(l[g]){l[g].push(d)}})}l[h].push(d);return l},{});const s={[om]:Ia({paths:r,censor:n,serialize:t,strict:Pa,remove:i})};const a=(...l)=>{return typeof n==="function"?t(n(...l)):t(n)};return[...Object.keys(o),...Object.getOwnPropertySymbols(o)].reduce((l,u)=>{if(o[u]===null){l[u]=f=>a(f,[u])}else{const f=typeof n==="function"?(c,h)=>{return n(c,[u,...h])}:n;l[u]=Ia({paths:o[u],censor:f,serialize:t,strict:Pa,remove:i})}return l},s)}function am(e){if(Array.isArray(e)){e={paths:e,censor:La};return e}let{paths:t,censor:r=La,remove:n}=e;if(Array.isArray(t)===false){throw Error("pino \u2013 redact must contain an array of strings")}if(n===true)r=void 0;return{paths:t,censor:r,remove:n}}Na.exports=sm});var ja=E((iI,Da)=>{"use strict";var lm=()=>"";var um=()=>`,"time":${Date.now()}`;var cm=()=>`,"time":${Math.round(Date.now()/1e3)}`;var fm=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;var dm=1000000n;var ka=1000000000n;var pm=BigInt(Date.now())*dm;var hm=process.hrtime.bigint();var gm=()=>{const e=process.hrtime.bigint()-hm;const t=pm+e;const r=t/ka;const n=t%ka;const i=Number(r*1000n+n/1000000n);const o=new Date(i);const s=o.getUTCFullYear();const a=(o.getUTCMonth()+1).toString().padStart(2,"0");const l=o.getUTCDate().toString().padStart(2,"0");const u=o.getUTCHours().toString().padStart(2,"0");const f=o.getUTCMinutes().toString().padStart(2,"0");const c=o.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${s}-${a}-${l}T${u}:${f}:${c}.${n.toString().padStart(9,"0")}Z"`};Da.exports={nullTime:lm,epochTime:um,unixTime:cm,isoTime:fm,isoTimeNano:gm}});var qa=E((oI,Ba)=>{"use strict";function ym(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}Ba.exports=mm;function mm(e,t,r){var n=r&&r.stringify||ym;var i=1;if(typeof e==="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++){s[a]=n(t[a])}return s.join(" ")}if(typeof e!=="string"){return e}var l=t.length;if(l===0)return e;var u="";var f=1-i;var c=-1;var h=e&&e.length||0;for(var p=0;p<h;){if(e.charCodeAt(p)===37&&p+1<h){c=c>-1?c:0;switch(e.charCodeAt(p+1)){case 100:case 102:if(f>=l)break;if(t[f]==null)break;if(c<p)u+=e.slice(c,p);u+=Number(t[f]);c=p+2;p++;break;case 105:if(f>=l)break;if(t[f]==null)break;if(c<p)u+=e.slice(c,p);u+=Math.floor(Number(t[f]));c=p+2;p++;break;case 79:case 111:case 106:if(f>=l)break;if(t[f]===void 0)break;if(c<p)u+=e.slice(c,p);var d=typeof t[f];if(d==="string"){u+="'"+t[f]+"'";c=p+2;p++;break}if(d==="function"){u+=t[f].name||"<anonymous>";c=p+2;p++;break}u+=n(t[f]);c=p+2;p++;break;case 115:if(f>=l)break;if(c<p)u+=e.slice(c,p);u+=String(t[f]);c=p+2;p++;break;case 37:if(c<p)u+=e.slice(c,p);u+="%";c=p+2;p++;f--;break}++f}++p}if(c===-1)return e;else if(c<h){u+=e.slice(c)}return u}});var zn=E((sI,Vn)=>{"use strict";if(typeof SharedArrayBuffer!=="undefined"&&typeof Atomics!=="undefined"){let t=function(r){const n=r>0&&r<Infinity;if(n===false){if(typeof r!=="number"&&typeof r!=="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(e,0,0,Number(r))};const e=new Int32Array(new SharedArrayBuffer(4));Vn.exports=t}else{let e=function(t){const r=t>0&&t<Infinity;if(r===false){if(typeof t!=="number"&&typeof t!=="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")}const n=Date.now()+Number(t);while(n>Date.now()){}};Vn.exports=e}});var Qn=E((aI,Va)=>{"use strict";var q=I("fs");var bm=I("events");var wm=I("util").inherits;var $a=I("path");var Yn=zn();var Sm=I("assert");var dr=100;var pr=Buffer.allocUnsafe(0);var _m=16*1024;var Wa="buffer";var Fa="utf8";var[Em,xm]=(process.versions.node||"0.0").split(".").map(Number);var Am=Em>=22&&xm>=7;function Ua(e,t){t._opening=true;t._writing=true;t._asyncDrainScheduled=false;function r(o,s){if(o){t._reopening=false;t._writing=false;t._opening=false;if(t.sync){process.nextTick(()=>{if(t.listenerCount("error")>0){t.emit("error",o)}})}else{t.emit("error",o)}return}const a=t._reopening;t.fd=s;t.file=e;t._reopening=false;t._opening=false;t._writing=false;if(t.sync){process.nextTick(()=>t.emit("ready"))}else{t.emit("ready")}if(t.destroyed){return}if(!t._writing&&t._len>t.minLength||t._flushPending){t._actualWrite()}else if(a){process.nextTick(()=>t.emit("drain"))}}const n=t.append?"a":"w";const i=t.mode;if(t.sync){try{if(t.mkdir)q.mkdirSync($a.dirname(e),{recursive:true});const o=q.openSync(e,n,i);r(null,o)}catch(o){r(o);throw o}}else if(t.mkdir){q.mkdir($a.dirname(e),{recursive:true},o=>{if(o)return r(o);q.open(e,n,i,r)})}else{q.open(e,n,i,r)}}function re(e){if(!(this instanceof re)){return new re(e)}let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:o,periodicFlush:s,sync:a,append:l=true,mkdir:u,retryEAGAIN:f,fsync:c,contentMode:h,mode:p}=e||{};t=t||r;this._len=0;this.fd=-1;this._bufs=[];this._lens=[];this._writing=false;this._ending=false;this._reopening=false;this._asyncDrainScheduled=false;this._flushPending=false;this._hwm=Math.max(n||0,16387);this.file=null;this.destroyed=false;this.minLength=n||0;this.maxLength=i||0;this.maxWrite=o||_m;this._periodicFlush=s||0;this._periodicFlushTimer=void 0;this.sync=a||false;this.writable=true;this._fsync=c||false;this.append=l||false;this.mode=p;this.retryEAGAIN=f||(()=>true);this.mkdir=u||false;let d;let g;if(h===Wa){this._writingBuf=pr;this.write=vm;this.flush=Mm;this.flushSync=Im;this._actualWrite=Pm;d=()=>q.writeSync(this.fd,this._writingBuf);g=()=>q.write(this.fd,this._writingBuf,this.release)}else if(h===void 0||h===Fa){this._writingBuf="";this.write=Tm;this.flush=Cm;this.flushSync=Om;this._actualWrite=Lm;d=()=>{if(Buffer.isBuffer(this._writingBuf)){return q.writeSync(this.fd,this._writingBuf)}return q.writeSync(this.fd,this._writingBuf,"utf8")};g=()=>{if(Buffer.isBuffer(this._writingBuf)){return q.write(this.fd,this._writingBuf,this.release)}return q.write(this.fd,this._writingBuf,"utf8",this.release)}}else{throw new Error(`SonicBoom supports "${Fa}" and "${Wa}", but passed ${h}`)}if(typeof t==="number"){this.fd=t;process.nextTick(()=>this.emit("ready"))}else if(typeof t==="string"){Ua(t,this)}else{throw new Error("SonicBoom supports only file descriptors and files")}if(this.minLength>=this.maxWrite){throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`)}this.release=(y,m)=>{if(y){if((y.code==="EAGAIN"||y.code==="EBUSY")&&this.retryEAGAIN(y,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync){try{Yn(dr);this.release(void 0,0)}catch(S){this.release(S)}}else{setTimeout(g,dr)}}else{this._writing=false;this.emit("error",y)}return}this.emit("write",m);const w=Gn(this._writingBuf,this._len,m);this._len=w.len;this._writingBuf=w.writingBuf;if(this._writingBuf.length){if(!this.sync){g();return}try{do{const S=d();const A=Gn(this._writingBuf,this._len,S);this._len=A.len;this._writingBuf=A.writingBuf}while(this._writingBuf.length)}catch(S){this.release(S);return}}if(this._fsync){q.fsyncSync(this.fd)}const _=this._len;if(this._reopening){this._writing=false;this._reopening=false;this.reopen()}else if(_>this.minLength){this._actualWrite()}else if(this._ending){if(_>0){this._actualWrite()}else{this._writing=false;hr(this)}}else{this._writing=false;if(this.sync){if(!this._asyncDrainScheduled){this._asyncDrainScheduled=true;process.nextTick(Rm,this)}}else{this.emit("drain")}}};this.on("newListener",function(y){if(y==="drain"){this._asyncDrainScheduled=false}});if(this._periodicFlush!==0){this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush);this._periodicFlushTimer.unref()}}function Gn(e,t,r){if(typeof e==="string"){e=Buffer.from(e)}t=Math.max(t-r,0);e=e.subarray(r);return{writingBuf:e,len:t}}function Rm(e){const t=e.listenerCount("drain")>0;if(!t)return;e._asyncDrainScheduled=false;e.emit("drain")}wm(re,bm);function Ha(e,t){if(e.length===0){return pr}if(e.length===1){return e[0]}return Buffer.concat(e,t)}function Tm(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}e=""+e;const t=Buffer.byteLength(e);const r=this._len+t;const n=this._bufs;if(this.maxLength&&r>this.maxLength){this.emit("drop",e);return this._len<this._hwm}if(n.length===0||Buffer.byteLength(n[n.length-1])+t>this.maxWrite){n.push(e)}else{n[n.length-1]+=e}this._len=r;if(!this._writing&&this._len>=this.minLength){this._actualWrite()}return this._len<this._hwm}function vm(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}const t=this._len+e.length;const r=this._bufs;const n=this._lens;if(this.maxLength&&t>this.maxLength){this.emit("drop",e);return this._len<this._hwm}if(r.length===0||n[n.length-1]+e.length>this.maxWrite){r.push([e]);n.push(e.length)}else{r[r.length-1].push(e);n[n.length-1]+=e.length}this._len=t;if(!this._writing&&this._len>=this.minLength){this._actualWrite()}return this._len<this._hwm}function Ka(e){this._flushPending=true;const t=()=>{if(!this._fsync){try{q.fsync(this.fd,n=>{this._flushPending=false;e(n)})}catch(n){e(n)}}else{this._flushPending=false;e()}this.off("error",r)};const r=n=>{this._flushPending=false;e(n);this.off("drain",t)};this.once("drain",t);this.once("error",r)}function Cm(e){if(e!=null&&typeof e!=="function"){throw new Error("flush cb must be a function")}if(this.destroyed){const t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}if(e){Ka.call(this,e)}if(this._writing){return}if(this._bufs.length===0){this._bufs.push("")}this._actualWrite()}function Mm(e){if(e!=null&&typeof e!=="function"){throw new Error("flush cb must be a function")}if(this.destroyed){const t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}if(e){Ka.call(this,e)}if(this._writing){return}if(this._bufs.length===0){this._bufs.push([]);this._lens.push(0)}this._actualWrite()}re.prototype.reopen=function(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending){return}if(!this.file){throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom")}if(e){this.file=e}this._reopening=true;if(this._writing){return}const t=this.fd;this.once("ready",()=>{if(t!==this.fd){q.close(t,r=>{if(r){return this.emit("error",r)}})}});Ua(this.file,this)};re.prototype.end=function(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this._opening){this.once("ready",()=>{this.end()});return}if(this._ending){return}this._ending=true;if(this._writing){return}if(this._len>0&&this.fd>=0){this._actualWrite()}else{hr(this)}};function Om(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this.fd<0){throw new Error("sonic boom is not ready yet")}if(!this._writing&&this._writingBuf.length>0){this._bufs.unshift(this._writingBuf);this._writingBuf=""}let e="";while(this._bufs.length||e.length){if(e.length<=0){e=this._bufs[0]}try{const t=Buffer.isBuffer(e)?q.writeSync(this.fd,e):q.writeSync(this.fd,e,"utf8");const r=Gn(e,this._len,t);e=r.writingBuf;this._len=r.len;if(e.length<=0){this._bufs.shift()}}catch(t){const r=t.code==="EAGAIN"||t.code==="EBUSY";if(r&&!this.retryEAGAIN(t,e.length,this._len-e.length)){throw t}Yn(dr)}}try{q.fsyncSync(this.fd)}catch{}}function Im(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this.fd<0){throw new Error("sonic boom is not ready yet")}if(!this._writing&&this._writingBuf.length>0){this._bufs.unshift([this._writingBuf]);this._writingBuf=pr}let e=pr;while(this._bufs.length||e.length){if(e.length<=0){e=Ha(this._bufs[0],this._lens[0])}try{const t=q.writeSync(this.fd,e);e=e.subarray(t);this._len=Math.max(this._len-t,0);if(e.length<=0){this._bufs.shift();this._lens.shift()}}catch(t){const r=t.code==="EAGAIN"||t.code==="EBUSY";if(r&&!this.retryEAGAIN(t,e.length,this._len-e.length)){throw t}Yn(dr)}}}re.prototype.destroy=function(){if(this.destroyed){return}hr(this)};function Lm(){const e=this.release;this._writing=true;this._writingBuf=this._writingBuf.length?this._writingBuf:this._bufs.shift()||"";if(this.sync){try{const t=Buffer.isBuffer(this._writingBuf)?q.writeSync(this.fd,this._writingBuf):q.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}}else{q.write(this.fd,this._writingBuf,e)}}function Pm(){const e=this.release;this._writing=true;this._writingBuf=this._writingBuf.length?this._writingBuf:Ha(this._bufs.shift(),this._lens.shift());if(this.sync){try{const t=q.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}}else{if(Am){this._writingBuf=Buffer.from(this._writingBuf)}q.write(this.fd,this._writingBuf,e)}}function hr(e){if(e.fd===-1){e.once("ready",hr.bind(null,e));return}if(e._periodicFlushTimer!==void 0){clearInterval(e._periodicFlushTimer)}e.destroyed=true;e._bufs=[];e._lens=[];Sm(typeof e.fd==="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{q.fsync(e.fd,t)}catch{}function t(){if(e.fd!==1&&e.fd!==2){q.close(e.fd,r)}else{r()}}function r(n){if(n){e.emit("error",n);return}if(e._ending&&!e._writing){e.emit("finish")}e.emit("close")}}re.SonicBoom=re;re.default=re;Va.exports=re});var gr=E((lI,Ja)=>{"use strict";var ne={exit:[],beforeExit:[]};var za={exit:Dm,beforeExit:jm};var et;function Nm(){if(et===void 0){et=new FinalizationRegistry(Bm)}}function km(e){if(ne[e].length>0){return}process.on(e,za[e])}function Ga(e){if(ne[e].length>0){return}process.removeListener(e,za[e]);if(ne.exit.length===0&&ne.beforeExit.length===0){et=void 0}}function Dm(){Ya("exit")}function jm(){Ya("beforeExit")}function Ya(e){for(const t of ne[e]){const r=t.deref();const n=t.fn;if(r!==void 0){n(r,e)}}ne[e]=[]}function Bm(e){for(const t of["exit","beforeExit"]){const r=ne[t].indexOf(e);ne[t].splice(r,r+1);Ga(t)}}function Qa(e,t,r){if(t===void 0){throw new Error("the object can't be undefined")}km(e);const n=new WeakRef(t);n.fn=r;Nm();et.register(t,n);ne[e].push(n)}function qm(e,t){Qa("exit",e,t)}function $m(e,t){Qa("beforeExit",e,t)}function Wm(e){if(et===void 0){return}et.unregister(e);for(const t of["exit","beforeExit"]){ne[t]=ne[t].filter(r=>{const n=r.deref();return n&&n!==e});Ga(t)}}Ja.exports={register:qm,registerBeforeExit:$m,unregister:Wm}});var Xa=E((uI,Fm)=>{Fm.exports={name:"thread-stream",version:"4.2.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",engines:{node:">=20"},dependencies:{"real-require":"^1.0.0"},devDependencies:{"@types/node":"^25.0.2","@yao-pkg/pkg":"^6.0.0",borp:"^1.0.0",desm:"^1.3.0",eslint:"^9.39.1",fastbench:"^1.0.1",neostandard:"^0.13.0","pino-elasticsearch":"^9.0.0","sonic-boom":"^5.0.0","ts-node":"^10.8.0",typescript:"~5.7.3"},scripts:{build:"tsc --noEmit",lint:"eslint",test:'npm run lint && npm run build && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:ci":'npm run lint && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:yarn":'npm run transpile && borp --pattern "test/*.test.js"',transpile:"sh ./test/ts/transpile.sh"},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 el=E((cI,Za)=>{"use strict";var yr=1e4;function Um(e,t,r,n,i){const o=n===Infinity?Infinity:Date.now()+n;const s=()=>{const a=Atomics.load(e,t);if(a===r){i(null,"ok");return}if(o!==Infinity&&Date.now()>o){i(null,"timed-out");return}const l=o===Infinity?yr:Math.min(yr,Math.max(1,o-Date.now()));const u=Atomics.waitAsync(e,t,a,l);if(u.async){u.value.then(s)}else{setImmediate(s)}};s()}function Hm(e,t,r,n,i){const o=n===Infinity?Infinity:Date.now()+n;const s=()=>{const a=Atomics.load(e,t);if(a!==r){i(null,"ok");return}if(o!==Infinity&&Date.now()>o){i(null,"timed-out");return}const l=o===Infinity?yr:Math.min(yr,Math.max(1,o-Date.now()));const u=Atomics.waitAsync(e,t,r,l);if(u.async){u.value.then(f=>{if(f==="ok"){i(null,"ok");return}s()})}else{setImmediate(s)}};s()}Za.exports={wait:Um,waitDiff:Hm}});var rl=E((fI,tl)=>{"use strict";var Km=2;var Vm=4;var zm=8;tl.exports={WRITE_INDEX:Vm,READ_INDEX:zm,SEQ_INDEX:Km}});var hl=E((dI,pl)=>{"use strict";var{version:Gm}=Xa();var{EventEmitter:Ym}=I("events");var{Worker:Qm}=I("worker_threads");var{join:Jm}=I("path");var{pathToFileURL:Xm}=I("url");var{wait:Zm}=el();var{WRITE_INDEX:he,READ_INDEX:Le,SEQ_INDEX:Jn}=rl();var eb=I("buffer");var tb=I("assert");var b=Symbol("kImpl");var rb=eb.constants.MAX_STRING_LENGTH;function nl(){}function ti(e,t){Atomics.add(e[b].state,Jn,1);t();Atomics.add(e[b].state,Jn,1);Atomics.notify(e[b].state,Jn)}function il(e){ti(e,()=>{Atomics.store(e[b].state,Le,0);Atomics.store(e[b].state,he,0)})}var Tt=class{constructor(t){this._value=t}deref(){return this._value}};var mr=class{register(){}unregister(){}};var nb=process.env.NODE_V8_COVERAGE?mr:global.FinalizationRegistry||mr;var ib=process.env.NODE_V8_COVERAGE?Tt:global.WeakRef||Tt;var ol=new nb(e=>{if(e.exited){return}e.terminate()});function ob(e,t){const{filename:r,workerData:n}=t;const i="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{};const o=i["thread-stream-worker"]||Jm(__dirname,"lib","worker.js");const s=new Qm(o,{...t.workerOpts,name:t.workerOpts?.name||"thread-stream",trackUnmanagedFds:false,workerData:{filename:r.indexOf("file://")===0?r:Xm(r).href,dataBuf:e[b].dataBuf,stateBuf:e[b].stateBuf,workerData:{$context:{threadStreamVersion:Gm},...n}}});s.stream=new Tt(e);s.on("message",sb);s.on("exit",ll);ol.register(e,s);return s}function sl(e){tb(!e[b].sync);if(e[b].needDrain){e[b].needDrain=false;e.emit("drain")}}function al(e){while(true){const t=Atomics.load(e[b].state,he);const r=e[b].data.length-t;if(r>0){if(e[b].bufLen===0){e[b].flushing=false;if(e[b].ending){ri(e)}else if(e[b].needDrain){process.nextTick(sl,e)}return}fl(e,r,nl);continue}if(r===0){if(t===0&&e[b].bufLen===0){return}br(e,()=>{if(e.destroyed){return}il(e);al(e)});return}X(e,new Error("overwritten"));return}}function sb(e){const t=this.stream.deref();if(t===void 0){this.exited=true;this.terminate();return}if(e?.code==null){return}switch(e.code){case"READY":this.stream=new ib(t);br(t,()=>{t[b].ready=true;t.emit("ready")});break;case"ERROR":X(t,e.err);break;case"EVENT":if(Array.isArray(e.args)){t.emit(e.name,...e.args)}else{t.emit(e.name,e.args)}break;case"FLUSHED":{if(e.context!=="thread-stream"){X(t,new Error("this should not happen: "+e.code));break}const r=t[b].flushCallbacks.get(e.id);if(r){t[b].flushCallbacks.delete(e.id);process.nextTick(r)}break}case"WARNING":process.emitWarning(e.err);break;default:X(t,new Error("this should not happen: "+e.code))}}function ll(e){const t=this.stream.deref();if(t===void 0){return}ol.unregister(t);t.worker.exited=true;t.worker.off("exit",ll);X(t,e!==0?new Error("the worker thread exited"):null)}var Zn=class extends Ym{constructor(t={}){super();if(t.bufferSize<4){throw new Error("bufferSize must at least fit a 4-byte utf-8 char")}this[b]={};this[b].stateBuf=new SharedArrayBuffer(128);this[b].state=new Int32Array(this[b].stateBuf);this[b].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024);this[b].data=Buffer.from(this[b].dataBuf);this[b].sync=t.sync||false;this[b].ending=false;this[b].ended=false;this[b].needDrain=false;this[b].destroyed=false;this[b].flushing=false;this[b].ready=false;this[b].finished=false;this[b].errored=null;this[b].closed=false;this[b].buf=[];this[b].bufHead=0;this[b].bufLen=0;this[b].flushCallbacks=new Map;this[b].nextFlushId=0;this.worker=ob(this,t);this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){const r=Buffer.isBuffer(t)?t:Buffer.from(t);if(this[b].destroyed){ei(this,new Error("the worker has exited"));return false}if(this[b].ending){ei(this,new Error("the worker is ending"));return false}if(this[b].flushing&&this[b].bufLen+r.length>=rb){try{Xn(this);this[b].flushing=true}catch(n){X(this,n);return false}}this[b].buf.push(r);this[b].bufLen+=r.length;if(this[b].sync){try{Xn(this);return true}catch(n){X(this,n);return false}}if(!this[b].flushing){this[b].flushing=true;setImmediate(al,this)}this[b].needDrain=this[b].data.length-this[b].bufLen-Atomics.load(this[b].state,he)<=0;return!this[b].needDrain}end(){if(this[b].destroyed){return}this[b].ending=true;ri(this)}flush(t){t=typeof t==="function"?t:nl;ul(this,r=>{if(r){process.nextTick(t,r);return}cl(this,t)})}flushSync(){if(this[b].destroyed){return}Xn(this);dl(this)}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[b].ready}get destroyed(){return this[b].destroyed}get closed(){return this[b].closed}get writable(){return!this[b].destroyed&&!this[b].ending}get writableEnded(){return this[b].ending}get writableFinished(){return this[b].finished}get writableNeedDrain(){return this[b].needDrain}get writableObjectMode(){return false}get writableErrored(){return this[b].errored}};function ul(e,t){if(e[b].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[b].sync&&(e[b].flushing||e[b].bufLen>0)){setImmediate(ul,e,t);return}br(e,t)}function br(e,t){const r=Atomics.load(e[b].state,he);Zm(e[b].state,Le,r,Infinity,(n,i)=>{if(n){X(e,n);t(n);return}if(i!=="ok"){br(e,t);return}t()})}function cl(e,t){if(e[b].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[b].ready){const n=()=>{o();cl(e,t)};const i=()=>{o();process.nextTick(t,new Error("the worker has exited"))};const o=()=>{e.off("ready",n);e.off("close",i)};e.once("ready",n);e.once("close",i);return}const r=++e[b].nextFlushId;e[b].flushCallbacks.set(r,t);try{e.worker.postMessage({code:"FLUSH",context:"thread-stream",id:r})}catch(n){e[b].flushCallbacks.delete(r);X(e,n);process.nextTick(t,n)}}function ab(e,t){const r=e[b].flushCallbacks;if(r.size===0){return}const n=t||new Error("the worker has exited");for(const i of r.values()){process.nextTick(i,n)}r.clear()}function ei(e,t){setImmediate(()=>{e.emit("error",t)})}function X(e,t){if(e[b].destroyed){return}e[b].destroyed=true;ab(e,t);if(t){e[b].errored=t;ei(e,t)}if(!e.worker.exited){e.worker.terminate().catch(()=>{}).then(()=>{e[b].closed=true;e.emit("close")})}else{setImmediate(()=>{e[b].closed=true;e.emit("close")})}}function fl(e,t,r){const n=Atomics.load(e[b].state,he);let i=n;let o=t;while(o>0&&e[b].bufLen!==0){const s=e[b].bufHead;const a=e[b].buf[s];if(a.length<=o){a.copy(e[b].data,i);i+=a.length;o-=a.length;e[b].bufLen-=a.length;e[b].bufHead=s+1;if(e[b].bufHead===e[b].buf.length){e[b].buf.length=0;e[b].bufHead=0}else if(e[b].bufHead>=1024&&e[b].bufHead*2>=e[b].buf.length){e[b].buf.splice(0,e[b].bufHead);e[b].bufHead=0}continue}a.copy(e[b].data,i,0,o);e[b].buf[s]=a.subarray(o);e[b].bufLen-=o;i+=o;o=0}ti(e,()=>{Atomics.store(e[b].state,he,i)});r();return true}function ri(e){if(e[b].ended||!e[b].ending||e[b].flushing){return}e[b].ended=true;try{e.flushSync();let t=Atomics.load(e[b].state,Le);ti(e,()=>{Atomics.store(e[b].state,he,-1)});let r=0;while(t!==-1){Atomics.wait(e[b].state,Le,t,1e3);t=Atomics.load(e[b].state,Le);if(t===-2){X(e,new Error("end() failed"));return}if(++r===10){X(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[b].finished=true;e.emit("finish")})}catch(t){X(e,t)}}function Xn(e){const t=()=>{if(e[b].ending){ri(e)}else if(e[b].needDrain){process.nextTick(sl,e)}};e[b].flushing=false;while(e[b].bufLen!==0){const r=Atomics.load(e[b].state,he);const n=e[b].data.length-r;if(n===0){dl(e);il(e);continue}else if(n<0){throw new Error("overwritten")}fl(e,n,t)}}function dl(e){if(e[b].flushing){throw new Error("unable to flush while flushing")}const t=Atomics.load(e[b].state,he);let r=0;while(true){const n=Atomics.load(e[b].state,Le);if(n===-2){throw Error("_flushSync failed")}if(n!==t){Atomics.wait(e[b].state,Le,n,1e3)}else{break}if(++r===10){throw new Error("_flushSync took too long (10s)")}}}pl.exports=Zn});var oi=E((pI,ml)=>{"use strict";var{createRequire:lb}=I("module");var{existsSync:ub}=I("node:fs");var cb=Fn();var{join:ni,isAbsolute:yl,sep:fb}=I("node:path");var{fileURLToPath:db}=I("node:url");var pb=zn();var ii=gr();var hb=hl();function gb(e){ii.register(e,Sb);ii.registerBeforeExit(e,_b);e.on("close",function(){ii.unregister(e)})}function yb(){const e=process.execArgv;for(let t=0;t<e.length;t++){const r=e[t];if(r==="--import"||r==="--require"||r==="-r"){return true}if(r.startsWith("--import=")||r.startsWith("--require=")||r.startsWith("-r=")){return true}}return false}function mb(e){const t=e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);if(!t){return e}const r=[];let n=false;for(let i=0;i<t.length;i++){const o=t[i];if(o==="--require"||o==="-r"||o==="--import"){const s=t[i+1];if(s&&gl(s)){n=true;i++;continue}r.push(o);if(s){r.push(s);i++}continue}if(o.startsWith("--require=")||o.startsWith("-r=")||o.startsWith("--import=")){const s=o.slice(o.indexOf("=")+1);if(gl(s)){n=true;continue}}r.push(o)}return n?r.join(" "):e}function gl(e){const t=bb(e);if(!t){return false}let r=t;if(r.startsWith("file://")){try{r=db(r)}catch{return false}}return yl(r)&&!ub(r)}function bb(e){const t=e[0];const r=e[e.length-1];if(t==='"'&&r==='"'||t==="'"&&r==="'"){return e.slice(1,-1)}return e}function wb(e,t,r,n,i){if(!r.execArgv&&yb()&&I.main===void 0){r={...r,execArgv:[]}}if(!r.env&&process.env.NODE_OPTIONS){const l=mb(process.env.NODE_OPTIONS);if(l!==process.env.NODE_OPTIONS){r={...r,env:{...process.env,NODE_OPTIONS:l}}}}r={...r,name:i};const o=new hb({filename:e,workerData:t,workerOpts:r,sync:n});o.on("ready",s);o.on("close",function(){process.removeListener("exit",a)});process.on("exit",a);function s(){process.removeListener("exit",a);o.unref();if(r.autoEnd!==false){gb(o)}}function a(){if(o.closed){return}o.flushSync();pb(100);o.end()}return o}function Sb(e){e.ref();e.flushSync();e.end();e.once("close",function(){e.unref()})}function _b(e){e.flushSync()}function Eb(e){const{pipeline:t,targets:r,levels:n,dedupe:i,worker:o={},caller:s=cb(),sync:a=false}=e;const l={...e.options};const u=typeof s==="string"?[s]:s;const f=typeof globalThis==="object"&&Object.prototype.hasOwnProperty.call(globalThis,"__bundlerPathsOverrides")&&globalThis.__bundlerPathsOverrides&&typeof globalThis.__bundlerPathsOverrides==="object"?globalThis.__bundlerPathsOverrides:Object.create(null);let c=e.target;if(c&&r){throw new Error("only one of target or targets can be specified")}if(r){c=f["pino-worker"]||ni(__dirname,"worker.js");l.targets=r.filter(d=>d.target).map(d=>{return{...d,target:p(d.target)}});l.pipelines=r.filter(d=>d.pipeline).map(d=>{return d.pipeline.map(g=>{return{...g,level:d.level,target:p(g.target)}})})}else if(t){c=f["pino-worker"]||ni(__dirname,"worker.js");l.pipelines=[t.map(d=>{return{...d,target:p(d.target)}})]}if(n){l.levels=n}if(i){l.dedupe=i}l.pinoWillSendConfig=true;const h=r||t?"pino.transport":c;return wb(p(c),l,o,a,h);function p(d){d=f[d]||d;if(yl(d)||d.indexOf("file://")===0){return d}if(d==="pino/file"){return ni(__dirname,"..","file.js")}let g;for(const y of u){try{const m=y==="node:repl"?process.cwd()+fb:y;g=lb(m).resolve(d);break}catch(m){continue}}if(!g){throw new Error(`unable to determine transport target for "${d}"`)}return g}}ml.exports=Eb});var _r=E((gI,Ol)=>{"use strict";var xb=I("node:diagnostics_channel");var bl=qa();var{mapHttpRequest:Ab,mapHttpResponse:Rb}=Wn();var ai=Qn();var wl=gr();var{lsCacheSym:Tb,chindingsSym:Al,writeSym:Sl,serializersSym:Rl,formatOptsSym:_l,endSym:vb,stringifiersSym:Tl,stringifySym:vl,stringifySafeSym:li,wildcardFirstSym:Cl,nestedKeySym:Cb,formattersSym:Ml,messageKeySym:Mb,errorKeySym:Ob,nestedKeyStrSym:Ib,msgPrefixSym:wr}=Ze();var{isMainThread:Lb}=I("worker_threads");var Pb=oi();var[Nb]=process.versions.node.split(".").map(e=>Number(e));var El=xb.tracingChannel("pino_asJson");var si=Nb>=25?e=>JSON.stringify(e):Db;function tt(){}function kb(e,t){if(!t)return r;return function n(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n==="object"){let o=n;if(n!==null){if(n.method&&n.headers&&n.socket){n=Ab(n)}else if(typeof n.setHeader==="function"){n=Rb(n)}}let s;if(o===null&&i.length===0){s=[null]}else{o=i.shift();s=i}if(typeof this[wr]==="string"&&o!==void 0&&o!==null){o=this[wr]+o}this[Sl](n,bl(o,s,this[_l]),e)}else{let o=n===void 0?i.shift():n;if(typeof this[wr]==="string"&&o!==void 0&&o!==null){o=this[wr]+o}this[Sl](null,bl(o,i,this[_l]),e)}}}function Db(e){let t="";let r=0;let n=false;let i=255;const o=e.length;if(o>100){return JSON.stringify(e)}for(var s=0;s<o&&i>=32;s++){i=e.charCodeAt(s);if(i===34||i===92){t+=e.slice(r,s)+"\\";r=s;n=true}}if(!n){t=e}else{t+=e.slice(r)}return i<32?JSON.stringify(e):'"'+t+'"'}function jb(e,t,r,n){if(El.hasSubscribers===false){return xl.call(this,e,t,r,n)}const i={instance:this,arguments};return El.traceSync(xl,i,this,e,t,r,n)}function xl(e,t,r,n){const i=this[vl];const o=this[li];const s=this[Tl];const a=this[vb];const l=this[Al];const u=this[Rl];const f=this[Ml];const c=this[Mb];const h=this[Ob];let p=this[Tb][r]+n;p=p+l;let d;if(f.log){e=f.log(e)}const g=s[Cl];let y="";for(const w in e){d=e[w];if(Object.prototype.hasOwnProperty.call(e,w)&&d!==void 0){if(u[w]){d=u[w](d)}else if(w===h&&u.err){d=u.err(d)}const _=s[w]||g;switch(typeof d){case"undefined":case"function":continue;case"number":if(Number.isFinite(d)===false){d=null}case"boolean":if(_)d=_(d);break;case"string":d=(_||si)(d);break;default:d=(_||i)(d,o)}if(d===void 0)continue;const S=si(w);y+=","+S+":"+d}}let m="";if(t!==void 0){d=u[c]?u[c](t):t;const w=s[c]||g;switch(typeof d){case"function":break;case"number":if(Number.isFinite(d)===false){d=null}case"boolean":if(w)d=w(d);m=',"'+c+'":'+d;break;case"string":d=(w||si)(d);m=',"'+c+'":'+d;break;default:d=(w||i)(d,o);m=',"'+c+'":'+d}}if(this[Cb]&&y){return p+this[Ib]+y.slice(1)+"}"+m+a}else{return p+y+m+a}}function Bb(e,t){let r;let n=e[Al];const i=e[vl];const o=e[li];const s=e[Tl];const a=s[Cl];const l=e[Rl];const u=e[Ml].bindings;t=u(t);for(const f in t){r=t[f];const c=(f.length<5||f!=="level"&&f!=="serializers"&&f!=="formatters"&&f!=="customLevels")&&t.hasOwnProperty(f)&&r!==void 0;if(c===true){r=l[f]?l[f](r):r;r=(s[f]||a||i)(r,o);if(r===void 0)continue;n+=',"'+f+'":'+r}}return n}function qb(e){return e.write!==e.constructor.prototype.write}function Sr(e){const t=new ai(e);t.on("error",r);if(!e.sync&&Lb){wl.register(t,$b);t.on("close",function(){wl.unregister(t)})}return t;function r(n){if(n.code==="EPIPE"){t.write=tt;t.end=tt;t.flushSync=tt;t.destroy=tt;return}t.removeListener("error",r);t.emit("error",n)}}function $b(e,t){if(e.destroyed){return}if(t==="beforeExit"){e.flush();e.on("drain",function(){e.end()})}else{e.flushSync()}}function Wb(e){return function t(r,n,i={},o){if(typeof i==="string"){o=Sr({dest:i});i={}}else if(typeof o==="string"){if(i&&i.transport){throw Error("only one of option.transport or stream can be specified")}o=Sr({dest:o})}else if(i instanceof ai||i.writable||i._writableState){o=i;i={}}else if(i.transport){if(i.transport instanceof ai||i.transport.writable||i.transport._writableState){throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)")}if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level==="function"){throw Error("option.transport.targets do not allow custom level formatters")}let l;if(i.customLevels){l=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)}o=Pb({caller:n,...i.transport,levels:l})}i=Object.assign({},e,i);i.serializers=Object.assign({},e.serializers,i.serializers);i.formatters=Object.assign({},e.formatters,i.formatters);if(i.prettyPrint){throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)")}const{enabled:s,onChild:a}=i;if(s===false)i.level="silent";if(!a)i.onChild=tt;if(!o){if(!qb(process.stdout)){o=Sr({fd:process.stdout.fd||1})}else{o=process.stdout}}return{opts:i,stream:o}}}function Fb(e,t){try{return JSON.stringify(e)}catch(r){try{const n=t||this[li];return n(e)}catch(n){return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function Ub(e,t,r){return{level:e,bindings:t,log:r}}function Hb(e){const t=Number(e);if(typeof e==="string"&&Number.isFinite(t)){return t}if(e===void 0){return 1}return e}Ol.exports={noop:tt,buildSafeSonicBoom:Sr,asChindings:Bb,asJson:jb,genLog:kb,createArgsNormalizer:Wb,stringify:Fb,buildFormatters:Ub,normalizeDestFileDescriptor:Hb}});var Er=E((yI,Il)=>{var Kb={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};var Vb={ASC:"ASC",DESC:"DESC"};Il.exports={DEFAULT_LEVELS:Kb,SORTING_ORDER:Vb}});var fi=E((mI,kl)=>{"use strict";var{lsCacheSym:zb,levelValSym:ui,useOnlyCustomLevelsSym:Gb,streamSym:Yb,formattersSym:Qb,hooksSym:Jb,levelCompSym:Ll}=Ze();var{noop:Xb,genLog:Pe}=_r();var{DEFAULT_LEVELS:ae,SORTING_ORDER:Pl}=Er();var Nl={fatal:e=>{const t=Pe(ae.fatal,e);return function(...r){const n=this[Yb];t.call(this,...r);if(typeof n.flushSync==="function"){try{n.flushSync()}catch(i){}}}},error:e=>Pe(ae.error,e),warn:e=>Pe(ae.warn,e),info:e=>Pe(ae.info,e),debug:e=>Pe(ae.debug,e),trace:e=>Pe(ae.trace,e)};var ci=Object.keys(ae).reduce((e,t)=>{e[ae[t]]=t;return e},{});var Zb=Object.keys(ci).reduce((e,t)=>{e[t]='{"level":'+Number(t);return e},{});function ew(e){const t=e[Qb].level;const{labels:r}=e.levels;const n={};for(const i in r){const o=t(r[i],Number(i));n[i]=JSON.stringify(o).slice(0,-1)}e[zb]=n;return e}function tw(e,t){if(t){return false}switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return true;default:return false}}function rw(e){const{labels:t,values:r}=this.levels;if(typeof e==="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);const n=this[ui];const i=this[ui]=r[e];const o=this[Gb];const s=this[Ll];const a=this[Jb].logMethod;for(const l in r){if(s(r[l],i)===false){this[l]=Xb;continue}this[l]=tw(l,o)?Nl[l](a):Pe(r[l],a)}this.emit("level-change",e,i,t[n],n,this)}function nw(e){const{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function iw(e){const{values:t}=this.levels;const r=t[e];return r!==void 0&&this[Ll](r,this[ui])}function ow(e,t,r){if(e===Pl.DESC){return t<=r}return t>=r}function sw(e){if(typeof e==="string"){return ow.bind(null,e)}return e}function aw(e=null,t=false){const r=e?Object.keys(e).reduce((o,s)=>{o[e[s]]=s;return o},{}):null;const n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:ci,r);const i=Object.assign(Object.create(Object.prototype,{silent:{value:Infinity}}),t?null:ae,e);return{labels:n,values:i}}function lw(e,t,r){if(typeof e==="number"){const i=[].concat(Object.keys(t||{}).map(o=>t[o]),r?[]:Object.keys(ci).map(o=>+o),Infinity);if(!i.includes(e)){throw Error(`default level:${e} must be included in custom levels`)}return}const n=Object.assign(Object.create(Object.prototype,{silent:{value:Infinity}}),r?null:ae,t);if(!(e in n)){throw Error(`default level:${e} must be included in custom levels`)}}function uw(e,t){const{labels:r,values:n}=e;for(const i in t){if(i in n){throw Error("levels cannot be overridden")}if(t[i]in r){throw Error("pre-existing level values cannot be used for new levels")}}}function cw(e){if(typeof e==="function"){return}if(typeof e==="string"&&Object.values(Pl).includes(e)){return}throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}kl.exports={initialLsCache:Zb,genLsCache:ew,levelMethods:Nl,getLevel:nw,setLevel:rw,isLevelEnabled:iw,mappings:aw,assertNoLevelCollisions:uw,assertDefaultLevelFound:lw,genLevelComparison:sw,assertLevelComparison:cw}});var di=E((bI,Dl)=>{"use strict";Dl.exports={version:"10.3.1"}});var Hl=E((SI,Ul)=>{"use strict";var{EventEmitter:fw}=I("node:events");var{lsCacheSym:dw,levelValSym:pw,setLevelSym:hi,getLevelSym:jl,chindingsSym:Ar,mixinSym:hw,asJsonSym:ql,writeSym:gw,mixinMergeStrategySym:yw,timeSym:mw,timeSliceIndexSym:bw,streamSym:$l,serializersSym:Ne,formattersSym:vt,errorKeySym:ww,messageKeySym:Sw,useOnlyCustomLevelsSym:_w,needsMetadataGsym:Ew,redactFmtSym:xw,stringifySym:Aw,formatOptsSym:Rw,stringifiersSym:Tw,msgPrefixSym:gi,hooksSym:vw}=Ze();var{getLevel:Cw,setLevel:Mw,isLevelEnabled:Ow,mappings:Iw,initialLsCache:Lw,genLsCache:Pw,assertNoLevelCollisions:Nw}=fi();var{asChindings:yi,asJson:kw,buildFormatters:pi,stringify:Bl,noop:Wl}=_r();var{version:Dw}=di();var jw=Kn();var Bw=class wI{};var Fl={constructor:Bw,child:qw,bindings:$w,setBindings:Ww,flush:Hw,isLevelEnabled:Ow,version:Dw,get level(){return this[jl]()},set level(e){this[hi](e)},get levelVal(){return this[pw]},set levelVal(e){throw Error("levelVal is read-only")},get msgPrefix(){return this[gi]},get[Symbol.toStringTag](){return"Pino"},[dw]:Lw,[gw]:Uw,[ql]:kw,[jl]:Cw,[hi]:Mw};Object.setPrototypeOf(Fl,fw.prototype);Ul.exports=function(){return Object.create(Fl)};var xr=e=>e;function qw(e,t){if(!e){throw Error("missing bindings for child Pino")}const r=this[Ne];const n=this[vt];const i=Object.create(this);if(t==null){if(i[vt].bindings!==xr){i[vt]=pi(n.level,xr,n.log)}i[Ar]=yi(i,e);if(this.onChild!==Wl){this.onChild(i)}return i}if(t.hasOwnProperty("serializers")===true){i[Ne]=Object.create(null);for(const u in r){i[Ne][u]=r[u]}const a=Object.getOwnPropertySymbols(r);for(var o=0;o<a.length;o++){const u=a[o];i[Ne][u]=r[u]}for(const u in t.serializers){i[Ne][u]=t.serializers[u]}const l=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<l.length;s++){const u=l[s];i[Ne][u]=t.serializers[u]}}else i[Ne]=r;if(t.hasOwnProperty("formatters")){const{level:a,bindings:l,log:u}=t.formatters;i[vt]=pi(a||n.level,l||xr,u||n.log)}else{i[vt]=pi(n.level,xr,n.log)}if(t.hasOwnProperty("customLevels")===true){Nw(this.levels,t.customLevels);i.levels=Iw(t.customLevels,i[_w]);Pw(i)}if(typeof t.redact==="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;const a=jw(i.redact,Bl);const l={stringify:a[xw]};i[Aw]=Bl;i[Tw]=a;i[Rw]=l}if(typeof t.msgPrefix==="string"){i[gi]=(this[gi]||"")+t.msgPrefix}i[Ar]=yi(i,e);if(t.level!==void 0&&t.level!==this.level||t.hasOwnProperty("customLevels")){const a=t.level||this.level;i[hi](a)}this.onChild(i);return i}function $w(){const e=this[Ar];const t=`{${e.substr(1)}}`;const r=JSON.parse(t);delete r.pid;delete r.hostname;return r}function Ww(e){const t=yi(this,e);this[Ar]=t}function Fw(e,t){return Object.assign(t,e)}function Uw(e,t,r){const n=this[mw]();const i=this[hw];const o=this[ww];const s=this[Sw];const a=this[yw]||Fw;let l;const u=this[vw].streamWrite;if(e===void 0||e===null){l={}}else if(e instanceof Error){l={[o]:e};if(t===void 0){t=e.message}}else{l=e;if(t===void 0&&e[s]===void 0&&e[o]){t=e[o].message}}if(i){l=a(l,i(l,r,this))}const f=this[ql](l,t,r,n);const c=this[$l];if(c[Ew]===true){c.lastLevel=r;c.lastObj=l;c.lastMsg=t;c.lastTime=n.slice(this[bw]);c.lastLogger=this}c.write(u?u(f):f)}function Hw(e){if(e!=null&&typeof e!=="function"){throw Error("callback must be a function")}const t=this[$l];if(typeof t.flush==="function"){t.flush(e||Wl)}else if(e)e()}});var Gl=E((Si,zl)=>{"use strict";var{hasOwnProperty:Ct}=Object.prototype;var De=wi();De.configure=wi;De.stringify=De;De.default=De;Si.stringify=De;Si.configure=wi;zl.exports=De;var Kw=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function _e(e){if(e.length<5e3&&!Kw.test(e)){return`"${e}"`}return JSON.stringify(e)}function mi(e,t){if(e.length>200||t){return e.sort(t)}for(let r=1;r<e.length;r++){const n=e[r];let i=r;while(i!==0&&e[i-1]>n){e[i]=e[i-1];i--}e[i]=n}return e}var Vw=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function bi(e){return Vw.call(e)!==void 0&&e.length!==0}function Kl(e,t,r){if(e.length<r){r=e.length}const n=t===","?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++){i+=`${t}"${o}":${n}${e[o]}`}return i}function zw(e){if(Ct.call(e,"circularValue")){const t=e.circularValue;if(typeof t==="string"){return`"${t}"`}if(t==null){return t}if(t===Error||t===TypeError){return{toString(){throw new TypeError("Converting circular structure to JSON")}}}throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Gw(e){let t;if(Ct.call(e,"deterministic")){t=e.deterministic;if(typeof t!=="boolean"&&typeof t!=="function"){throw new TypeError('The "deterministic" argument must be of type boolean or comparator function')}}return t===void 0?true:t}function Yw(e,t){let r;if(Ct.call(e,t)){r=e[t];if(typeof r!=="boolean"){throw new TypeError(`The "${t}" argument must be of type boolean`)}}return r===void 0?true:r}function Vl(e,t){let r;if(Ct.call(e,t)){r=e[t];if(typeof r!=="number"){throw new TypeError(`The "${t}" argument must be of type number`)}if(!Number.isInteger(r)){throw new TypeError(`The "${t}" argument must be an integer`)}if(r<1){throw new RangeError(`The "${t}" argument must be >= 1`)}}return r===void 0?Infinity:r}function ke(e){if(e===1){return"1 item"}return`${e} items`}function Qw(e){const t=new Set;for(const r of e){if(typeof r==="string"||typeof r==="number"){t.add(String(r))}}return t}function Jw(e){if(Ct.call(e,"strict")){const t=e.strict;if(typeof t!=="boolean"){throw new TypeError('The "strict" argument must be of type boolean')}if(t){return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;if(typeof r!=="function")n+=` (${r.toString()})`;throw new Error(n)}}}}function wi(e){e={...e};const t=Jw(e);if(t){if(e.bigint===void 0){e.bigint=false}if(!("circularValue"in e)){e.circularValue=Error}}const r=zw(e);const n=Yw(e,"bigint");const i=Gw(e);const o=typeof i==="function"?i:void 0;const s=Vl(e,"maximumDepth");const a=Vl(e,"maximumBreadth");function l(p,d,g,y,m,w){let _=d[p];if(typeof _==="object"&&_!==null&&typeof _.toJSON==="function"){_=_.toJSON(p)}_=y.call(d,p,_);switch(typeof _){case"string":return _e(_);case"object":{if(_===null){return"null"}if(g.indexOf(_)!==-1){return r}let S="";let A=",";const v=w;if(Array.isArray(_)){if(_.length===0){return"[]"}if(s<g.length+1){return'"[Array]"'}g.push(_);if(m!==""){w+=m;S+=`
|
|
3
3
|
${w}`;A=`,
|
|
4
4
|
${w}`}const D=Math.min(_.length,a);let x=0;for(;x<D-1;x++){const J=l(String(x),_,g,y,m,w);S+=J!==void 0?J:"null";S+=A}const z=l(String(x),_,g,y,m,w);S+=z!==void 0?z:"null";if(_.length-1>a){const J=_.length-a-1;S+=`${A}"... ${ke(J)} not stringified"`}if(m!==""){S+=`
|
|
5
5
|
${v}`}g.pop();return`[${S}]`}let R=Object.keys(_);const C=R.length;if(C===0){return"{}"}if(s<g.length+1){return'"[Object]"'}let T="";let P="";if(m!==""){w+=m;A=`,
|