1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[870],{50870:(e,t,r)=>{"use strict";let n;r.d(t,{Vy:()=>to});let i={run:(e,t)=>t(),getStore:()=>void 0,enabled:!1};function s(e){try{if("function"!=typeof e?.run||"function"!=typeof e?.getStore)return i}catch{return i}return o(e)}function o(e){return{enabled:!0,run(t,r){let n=e.getStore(),i=null!=n?{...n,...t}:{...t};return e.run(i,r)},getStore:()=>e.getStore()}}class l extends Error{code;setting;suggestion;constructor(e){super(`tslog: ${e.message}`),this.name="TslogConfigError",this.code=e.code,this.setting=e.setting,this.suggestion=e.suggestion,Object.setPrototypeOf(this,l.prototype)}}let a="tslog:level";function u(){try{let e=globalThis.localStorage;return null!=e&&"function"==typeof e.getItem?e:void 0}catch{return}}let f=Object.freeze(Object.fromEntries(Object.entries(Object.freeze({0:"SILLY",1:"TRACE",2:"DEBUG",3:"INFO",4:"WARN",5:"ERROR",6:"FATAL"})).map(([e,t])=>[t,Number(e)])));function c(e,t){if(null!=e){if("number"==typeof e)return e;if(null!=t){let r=t[e]??t[e.toUpperCase()];if("number"==typeof r)return r;let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase()===n&&"number"==typeof t[e])return t[e]}return f[e]??f[e.toUpperCase()]}}let h=new Set(["log","child","settings","runtime","flush","use"]);function g(e,t,r){if("string"!=typeof e||0===e.length)throw TypeError(`tslog: custom level name must be a non-empty string (got ${JSON.stringify(e)}).`);if("number"!=typeof t||!Number.isFinite(t))throw TypeError(`tslog: custom level id for "${e}" must be a finite number (got ${JSON.stringify(t)}).`);if(null!=f[e.toUpperCase()])throw RangeError(`tslog: custom level "${e}" collides with a canonical level name; the seven default names are reserved.`);let n=e.toLowerCase();if(h.has(n))throw RangeError(`tslog: custom level "${e}" collides with the logger member "${n}"; pick a different name.`);if(null!=r){for(let t of Object.keys(r))if(t!==e&&t.toLowerCase()===n)throw RangeError(`tslog: custom level "${e}" differs only by case from the already-registered "${t}"; level names are case-insensitive.`)}}function p(e){try{return e?.cause}catch{return}}function y(e,t,r){try{let n=e[t];return"string"==typeof n?n:r}catch{return r}}function m(e){if(e instanceof Error)return e;let t=Error("string"==typeof e?e:function(e){try{let t=[];return JSON.stringify(e,function(e,r){if("bigint"==typeof r)return String(r);if(null!==r&&"object"==typeof r){for(;t.length>0&&t[t.length-1]!==this;)t.pop();if(t.includes(r))return"[Circular]";t.push(r)}return r})??String(e)}catch{try{return String(e)}catch{return"[unserializable cause]"}}}(e));return"object"==typeof e&&null!=e&&function(e,t){let r;try{r=Object.keys(e)}catch{return}for(let n of r)if("__proto__"!==n)try{t[n]=e[n]}catch{}}(e,t),t}function d(e){return"object"==typeof e&&null!==e}let b=Symbol("tslog.logObj.spreadShape"),v=Symbol("tslog.logObj.boundFields");function w(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}let S=Symbol("tslog.pipeline.maskedArgs");function k(){return"u">typeof window&&"u">typeof document}function O(){return"function"==typeof globalThis.importScripts}function L(e){try{return function(){try{let e=globalThis?.process;if(e?.env!=null)return e.env}catch{}}()?.[e]}catch{return}}let E=Symbol.for("tslog.console.originals");function N(e){try{let t=console[E],r=t?.[e];if("function"==typeof r)return r}catch{}return console[e]}function $(e){return"function"==typeof e?{write:t=>e(t)}:e}let A=new WeakMap;function j(e,t){try{let r=null!=e.name?` "${e.name}"`:"";N("error")(`tslog: attached transport${r} threw an error`,t)}catch{}}async function x(e,t=!1){if(0===e.length)return;let r=[];for(let t of e){let e=A.get(t);void 0!==e&&e.size>0&&r.push(...e)}r.length>0&&await Promise.allSettled(r);let n=[];for(let r of e)if("function"==typeof r.flush&&n.push(C(()=>r.flush?.(),r)),t){let e=r[Symbol.asyncDispose];"function"==typeof e&&n.push(C(()=>e.call(r),r))}n.length>0&&await Promise.allSettled(n)}async function T(e){if(0===e.length)return;let t=[];for(let r of e){let e=r[Symbol.asyncDispose];"function"==typeof e&&t.push(C(()=>e.call(r),r))}t.length>0&&await Promise.allSettled(t)}function C(e,t){try{return Promise.resolve(e()).catch(e=>j(t,e))}catch(e){return j(t,e),Promise.resolve()}}let B=new Set(["yyyy","mm","dd","hh","MM","ss","ms","dateIsoStr","rawIsoStr","logLevelName","name","nameWithDelimiterPrefix","nameWithDelimiterSuffix","fullFilePath","filePathWithLine","fileNameWithLine","fileName","filePath","fileLine","fileColumn"]),P=new Set(["type","name","parentNames","minLevel","argumentsArrayName","persistLevel","persistLevelKey","pretty","json","mask","stack","meta","prefix","attachedTransports","middleware","customLevels","bindings","strictConfig","contextStorage","clock"]),I={pretty:new Set(["enabled","template","errorTemplate","errorStackTemplate","errorParentNamesSeparator","errorLoggerNameDelimiter","style","timeZone","styles","levelMethod","passObjectsNatively","inspectOptions"]),json:new Set(["messageKey","levelKey","levelIdKey","timeKey","time","errorKey","numericLevel","stableKeyOrder"]),mask:new Set(["keys","caseInsensitive","regex","placeholder","paths","censor","hashLabel"]),stack:new Set(["capture","internalFramePatterns"]),meta:new Set(["property","attachContext"])},_={prettyLogTemplate:"pretty.template",prettyErrorTemplate:"pretty.errorTemplate",prettyErrorStackTemplate:"pretty.errorStackTemplate",prettyErrorParentNamesSeparator:"pretty.errorParentNamesSeparator",prettyErrorLoggerNameDelimiter:"pretty.errorLoggerNameDelimiter",stylePrettyLogs:"pretty.style",prettyLogTimeZone:"pretty.timeZone",prettyLogStyles:"pretty.styles",prettyInspectOptions:"pretty.inspectOptions",maskValuesOfKeys:"mask.keys",maskValuesOfKeysCaseInsensitive:"mask.caseInsensitive",maskValuesRegEx:"mask.regex",maskPlaceholder:"mask.placeholder",metaProperty:"meta.property",internalFramePatterns:"stack.internalFramePatterns",prettyLogLevelMethod:"pretty.levelMethod",hideLogPositionForProduction:'stack.capture ("off" hides positions)',overwrite:"middleware / logger.use()",stackDepthLevel:"the callerFrame constructor argument"};function R(e,t){let r,n=e.toLowerCase(),i=e.length<=4?1:2,s=i+1;for(let o of t){if(o.toLowerCase()===n)return o;let t=function(e,t,r){if(Math.abs(e.length-t.length)>r)return r+1;let n=Array.from({length:t.length+1},(e,t)=>t);for(let i=1;i<=e.length;i++){let s=[i],o=i;for(let r=1;r<=t.length;r++){let l=+(e[i-1]!==t[r-1]);s[r]=Math.min(n[r]+1,s[r-1]+1,n[r-1]+l),s[r]<o&&(o=s[r])}if(o>r)return r+1;n=s}return n[t.length]}(e,o,i);t<s&&(s=t,r=o)}return r}function M(){return null==L("TSLOG_DISABLE_WARNINGS")&&"production"!==L("NODE_ENV")}let U=new WeakSet;function K(e){try{N("warn")(`tslog: ${e}`)}catch{}}let D="nativeError";function F(e){return e<10?`0${e}`:`${e}`}function W(e){let t=e.getUTCFullYear();if(!(t>=1e3&&t<=9999))return Number.isNaN(t)?"Invalid Date":e.toISOString();let r=e.getUTCMilliseconds(),n=r<10?`00${r}`:r<100?`0${r}`:`${r}`;return`${t}-${F(e.getUTCMonth()+1)}-${F(e.getUTCDate())}T${F(e.getUTCHours())}:${F(e.getUTCMinutes())}:${F(e.getUTCSeconds())}.${n}Z`}function z(e,t){return e===t.levelKey||!1!==t.time&&e===t.timeKey||t.numericLevel&&e===t.levelIdKey}function J(e,t,r,n){if(null==t)return;e[r.levelKey]=t.logLevelName,r.numericLevel&&(e[r.levelIdKey]=t.logLevelId);let i=r.time;if(!1!==i){if("iso"===i||void 0===n){e[r.timeKey]=void 0!==n?n:t.date;return}if("epoch"===i){e[r.timeKey]=t.date.getTime();return}try{let s=i(t.date);e[r.timeKey]="string"==typeof s||"number"==typeof s?s:n}catch{e[r.timeKey]=n}}}function G(e,t,r,n,i,s){if(null==t)return;let o={v:5},l=n?Object.keys(t).sort():Object.keys(t);for(let e=0;e<l.length;e++){let r=l[e];if("date"===r&&void 0!==i){o.date=i;continue}o[r]=n?et(t[r],s):t[r]}e[r]=o}function V(e,t){let{flat:r,awkward:n,scanned:i}=function(e,t){let r,n=t.meta.property,i=t.json,s=e[n],o=i.stableKeyOrder,l=Object.keys(e),a={hit:!1},u=s?.date instanceof Date?W(s.date):void 0,f=e[D]instanceof Error&&"string"==typeof e.name&&Array.isArray(e.stack),c=!f&&Object.hasOwn(e,i.messageKey),h=!f&&Object.hasOwn(e,"0"),g=!1,p=!1,y=!1;if(!f){let t=c?void 0:e[b];if(p="object-first"===t&&"object"==typeof e["0"]&&null!==e["0"]&&!er(e["0"]),y="message-first"===t&&"object"==typeof e["1"]&&null!==e["1"]&&!er(e["1"]),!p&&
1!y)for(let t=0;t<l.length;t++){let r=l[t];if(r!==n&&r!==i.messageKey&&"0"!==r&&er(e[r])){g=!0;break}}}if(!f&&!g&&!p&&!y){let t,r=c?i.messageKey:h?"0":void 0,f={};if(void 0!==r){let t=e[r];f[i.messageKey]=o?et(t,a):t}J(f,s,i,u);for(let e=0;e<l.length;e++){let s=l[e];s===n||s===r||"__proto__"===s||z(s,i)||(void 0===t&&(t=[]),t.push(s))}if(void 0!==t)if(o){t.sort();for(let r=0;r<t.length;r++)f[t[r]]=et(e[t[r]],a)}else for(let r=0;r<t.length;r++)f[t[r]]=e[t[r]];return G(f,s,n,o,u,a),{flat:f,awkward:a.hit,scanned:o}}let m={},d=[];if(f){d.push(function(e,t){let r={};for(let n of Object.keys(e))n!==t&&(r[n]=e[n]);return r}(e,n));let t=e[v];if(null!=t)for(let e of Object.keys(t))"__proto__"===e||e===n||Object.hasOwn(m,e)||(m[e]=t[e])}else for(let t=0;t<l.length;t++){let r=l[t];if(r===n)continue;let i=e[r];er(i)?d.push(i):m[r]=i}if(p){let e=m["0"];delete m["0"];let t=m["1"];for(let[t,r]of(delete m["1"],Object.entries(e)))"__proto__"===t||t===n||Object.hasOwn(m,t)||(m[t]=r);m[i.messageKey]=t}if(y){let e=m["0"];delete m["0"];let t=m["1"];for(let[e,r]of(delete m["1"],Object.entries(t)))"__proto__"===e||e===n||Object.hasOwn(m,e)||(m[e]=r);m[i.messageKey]=e}let w=!1;Object.hasOwn(m,i.messageKey)?(w=!0,r=m[i.messageKey],delete m[i.messageKey]):Object.hasOwn(m,"0")&&(w=!0,r=m["0"],delete m["0"]);let S={};for(let e of(w&&(S[i.messageKey]=r),J(S,s,i,u),o?Object.keys(m).sort():Object.keys(m)))"__proto__"===e||z(e,i)||(S[e]=o?et(m[e]):m[e]);if(d.length>0){let e=o?d.map(e=>et(e)):d;S[i.errorKey]=1===e.length?e[0]:e}return G(S,s,n,o,u),{flat:S,awkward:!0,scanned:!1}}(e,t);return i?n?ee(r):JSON.stringify(r):Q(r)}let Y=new WeakMap,H=new Set(["runtime","runtimeVersion","hostname","browser","name","parentNames"]),Z=/^(?:0|[1-9]\d*)$/;function q(e){let t=e.charCodeAt(0);return!(t<48)&&!(t>57)&&Z.test(e)}function X(e){return void 0===e?'"[undefined]"':Q(e)}function Q(e){return!function e(t,r=new WeakSet){if("bigint"==typeof t||void 0===t)return!0;if(null===t||"object"!=typeof t)return!1;if(t instanceof Error||r.has(t))return!0;if(t instanceof Date)return!1;if(r.add(t),Array.isArray(t)){for(let n=0;n<t.length;n++)if(e(t[n],r))return!0;return r.delete(t),!1}for(let n of Object.keys(t))if(e(t[n],r))return!0;return r.delete(t),!1}(e)?JSON.stringify(e):ee(e)}function ee(e){let t=[];return JSON.stringify(e,function(e,r){if("bigint"==typeof r)return`${r}`;if(void 0===r)return"[undefined]";if("object"==typeof r&&null!==r){if(r instanceof Error)return;for(;t.length>0&&t[t.length-1]!==this;)t.pop();if(t.includes(r))return"[Circular]";t.push(r)}return r})}function et(e,t,r=new WeakSet){if("object"!=typeof e||null===e)return void 0!==t&&("bigint"==typeof e||void 0===e)&&(t.hit=!0),e;if(r.has(e))return"[Circular]";if(!function(e){if("object"!=typeof e||null===e||Array.isArray(e)||e instanceof Date||e instanceof Error)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)&&!Array.isArray(e))return void 0!==t&&e instanceof Error&&(t.hit=!0),e;if(r.add(e),Array.isArray(e)){let n=e.map(e=>et(e,t,r));return r.delete(e),n}let n={};for(let i of Object.keys(e).sort())n[i]=et(e[i],t,r);return r.delete(e),n}function er(e){return!("object"!=typeof e||null===e||Array.isArray(e))&&e[D]instanceof Error&&"string"==typeof e.name&&Array.isArray(e.stack)}function en(e){return{href:e.href,protocol:e.protocol,username:e.username,password:e.password,host:e.host,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search,searchParams:[...e.searchParams].map(([e,t])=>({key:e,value:t})),hash:e.hash,origin:e.origin}}let ei={renderJson:V,validateSettings(e){if(null==e)return;let t=e.mask;if(null!=t&&((t.keys?.length??0)>0||(t.regex?.length??0)>0||(t.paths?.length??0)>0||null!=t.censor))throw new l({code:"FEATURES_NO_MASKING",setting:"mask",message:"this BaseLogger was constructed without a feature set, so these mask settings would be silently ignored and secrets logged in plaintext.",suggestion:'Pass the full feature set as the fifth constructor argument: `new BaseLogger(settings, logObj, env, NaN, fullCoreFeatures)` (exported from "tslog").'});if("pretty"===e.type||e.pretty?.enabled===!0)throw new l({code:"FEATURES_NO_PRETTY",setting:"type",message:"this BaseLogger was constructed without a feature set, so pretty output would lose its meta line.",suggestion:"Pass the full feature set as the fifth constructor argument (`fullCoreFeatures`), or use the entry Logger classes."});if(!0===e.strictConfig)throw new l({code:"FEATURES_NO_VALIDATION",setting:"strictConfig",message:"this BaseLogger was constructed without a feature set, so the strict settings validation you opted into cannot run.",suggestion:"Pass the full feature set as the fifth constructor argument (`fullCoreFeatures`), which includes the validator."})}},es={mask(e){for(let t=0;t<e.length;t++)if(e[t]instanceof URL)return e.map(e=>e instanceof URL?en(e):e);return e}};class eo{logObj;callerFrame;runtime;settings;maxErrorCauseDepth=5;captureStackForMeta;maskingEngine;features;logObjDeps;asyncContextBox={};warnedContextNoop=!1;inheritedTransports;
1hasCustomLevels=!1;rawBindings;_conditionalNoop;constructor(e,t,r,n=NaN,i){if(this.logObj=t,this.callerFrame=n,this.features=i??ei,this.features.validateSettings?.(e),this.runtime=r,this.settings=function(e){let t=e?.type!=null?e.type:e?.pretty?.enabled!=null?e.pretty.enabled?"pretty":"json":"pretty",r=e?.stack?.capture!=null?e.stack.capture:"json"===t?"off":"auto",n={};if(e?.customLevels!=null)for(let[t,r]of Object.entries(e.customLevels))g(t,r,n),n[t]=r;return{type:t,name:e?.name,parentNames:e?.parentNames,minLevel:c(e?.minLevel,n)??0,argumentsArrayName:e?.argumentsArrayName,persistLevel:e?.persistLevel,persistLevelKey:e?.persistLevelKey,pretty:{template:e?.pretty?.template??"{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}} {{logLevelName}} {{filePathWithLine}}{{nameWithDelimiterPrefix}} ",errorTemplate:e?.pretty?.errorTemplate??"\n{{errorName}} {{errorMessage}}\nerror stack:\n{{errorStack}}",errorStackTemplate:e?.pretty?.errorStackTemplate??" ⢠{{fileName}} {{method}}\n {{filePathWithLine}}",errorParentNamesSeparator:e?.pretty?.errorParentNamesSeparator??":",errorLoggerNameDelimiter:e?.pretty?.errorLoggerNameDelimiter??" ",style:function(e){let t,r;if(e?.pretty?.style!=null)return e.pretty.style;if(null!=(t=L("FORCE_COLOR"))&&""!==t&&"0"!==t)return!0;if(null!=(r=L("NO_COLOR"))&&""!==r)return!1;if(k()||O()||function(){try{return globalThis.navigator?.product==="ReactNative"}catch{return!1}}())return!0;try{let e=globalThis?.process;return e?.stdout?.isTTY===!0}catch{return!1}}(e),timeZone:e?.pretty?.timeZone??"UTC",styles:e?.pretty?.styles??{logLevelName:{"*":["bold","black","bgWhiteBright","dim"],SILLY:["bold","white"],TRACE:["bold","whiteBright"],DEBUG:["bold","green"],INFO:["bold","blue"],WARN:["bold","yellow"],ERROR:["bold","red"],FATAL:["bold","redBright"]},dateIsoStr:"white",filePathWithLine:"white",name:["white","bold"],nameWithDelimiterPrefix:["white","bold"],nameWithDelimiterSuffix:["white","bold"],errorName:["bold","bgRedBright","whiteBright"],fileName:["yellow"],fileNameWithLine:"white"},levelMethod:e?.pretty?.levelMethod??{},passObjectsNatively:e?.pretty?.passObjectsNatively??k(),inspectOptions:e?.pretty?.inspectOptions??{colors:!0,compact:!1,depth:1/0}},json:{messageKey:e?.json?.messageKey??"message",levelKey:e?.json?.levelKey??"level",levelIdKey:e?.json?.levelIdKey??"levelId",timeKey:e?.json?.timeKey??"time",errorKey:e?.json?.errorKey??"error",numericLevel:e?.json?.numericLevel??!0,time:e?.json?.time??"iso",stableKeyOrder:e?.json?.stableKeyOrder??!1},mask:{keys:[...e?.mask?.keys??[]],caseInsensitive:e?.mask?.caseInsensitive??!1,regex:[...e?.mask?.regex??[]],placeholder:e?.mask?.placeholder??"[***]",paths:[...e?.mask?.paths??[]],censor:e?.mask?.censor,hashLabel:e?.mask?.hashLabel},stack:{capture:r,internalFramePatterns:[...e?.stack?.internalFramePatterns??[]]},meta:{property:e?.meta?.property??"_logMeta",attachContext:e?.meta?.attachContext??!0},prefix:[...e?.prefix??[]],attachedTransports:(e?.attachedTransports??[]).map(e=>$(e)),middleware:[...e?.middleware??[]],customLevels:n,bindings:e?.bindings!=null?{...e.bindings}:void 0,strictConfig:e?.strictConfig??!1,contextStorage:e?.contextStorage,clock:e?.clock}}(e),this.maskingEngine=this.features.createMaskingEngine?.(this.settings,{isError:e=>this.runtime.isError(e),isBuffer:e=>this.runtime.isBuffer(e)})??es,this.logObjDeps={isError:e=>this.runtime.isError(e),isBuffer:e=>this.runtime.isBuffer(e),getErrorTrace:e=>this.runtime.getErrorTrace(e),maxErrorCauseDepth:this.maxErrorCauseDepth},!0===this.settings.persistLevel){const e=function(e=a){let t=u();if(null!=t)try{let r=t.getItem(e);return null==r||""===r?void 0:r}catch{return}}(this.settings.persistLevelKey??a);if(null!=e){const t=Number(e),r=c(""!==e.trim()&&Number.isFinite(t)?t:e,this.settings.customLevels);null!=r&&(this.settings.minLevel=r)}}for(const[e,t]of(this.captureStackForMeta=this._shouldCaptureStack(),null!=this.settings.bindings&&(this.rawBindings={...this.settings.bindings},this._sanitizeBindings(this.settings.bindings),this.settings.bindings=this.maskingEngine.mask([this.settings.bindings])[0]),Object.entries(this.settings.customLevels)))this.hasCustomLevels=!0,this._installCustomLevelMethod(e,t);null!=this.settings.contextStorage&&(this.asyncContextBox.store=s(this.settings.contextStorage))}_installCustomLevelMethod(e,t){let r=e.toLowerCase(),n=this[r];if(void 0!==n&&n?.__tslogCustomLevel===void 0){M()&&K(`custom level "${e}" collides with the existing logger member "${r}"; no method was installed â use log(${t}, ${JSON.stringify(e)}, ...) instead.`);return}let i=(...r)=>this.log(t,e,...r);i.__tslogCustomLevel=e,Object.defineProperty(this,r,{value:i,enumerable:!1,
1configurable:!0,writable:!0})}_sanitizeBindings(e){for(let t of Object.keys(e)){let r=/^(?:0|[1-9]\d*)$/.test(t);(t===this.settings.json.messageKey||t===this.settings.meta.property||"__proto__"===t||r)&&(delete e[t],M()&&K(`binding "${t}" was dropped: ${r?"integer-like keys are hoisted by JS object semantics":"it collides with a reserved record key"} â rename the binding.`))}}setMinLevel(e){let t=c(e,this.settings.customLevels);return null==t||(this.settings.minLevel=t,!0===this.settings.persistLevel&&function(e,t=a){let r=u();if(null!=r)try{r.setItem(t,String(e))}catch{}}(t,this.settings.persistLevelKey??a)),this}log(e,t,...r){let n;if(e<this.settings.minLevel)return;if(this.hasCustomLevels){let r=this.settings.customLevels[t];void 0!==r&&r!==e&&M()&&K(`log(${e}, ${JSON.stringify(t)}) does not match the registered id ${r} for that custom level.`)}let i=this._resolveLogArguments(r),s=this.settings.prefix.length>0?[...this.settings.prefix,...i]:i,o=e,l=t;if(this.settings.middleware.length>0){let r=function(e,t){let r=e;for(let e of t){let t=e(r);if(null===t||!1===t)return null;void 0!==t&&(r=t)}return r}({logLevelId:e,logLevelName:t,args:s,settings:this.settings,meta:{}},this.settings.middleware);if(null==r)return;o=r.logLevelId,l=r.logLevelName,s=r.args,n=r.meta}let a=this.maskingEngine.mask(s),u=null!=this.logObj?function e(t,r=[]){return d(t)&&r.includes(t)?Array.isArray(t)?[...t]:{...t}:(d(t)&&r.push(t),Array.isArray(t))?t.map(t=>e(t,r)):t instanceof Date?new Date(t.getTime()):"object"!=typeof t||Array.isArray(t)||null===t?t:Object.getOwnPropertyNames(t).reduce((n,i)=>{let s=Object.getOwnPropertyDescriptor(t,i);if(s){Object.defineProperty(n,i,s);let o=t[i];n[i]="function"==typeof o?o():e(o,r)}return n},Object.create(Object.getPrototypeOf(t)))}(this.logObj):void 0,f=function(e,t,r,n={},i){let s,o=1===e.length&&r.isError(e[0]);null!=t||2!==e.length||r.isError(e[0])||r.isError(e[1])||("string"==typeof e[0]&&w(e[1])&&!0!==r.isBuffer(e[1])?s="message-first":w(e[0])&&!0!==r.isBuffer(e[0])&&"string"==typeof e[1]&&(s="object-first")),e=e?.map(e=>r.isError(e)?function e(t,r,n=0,i=new Set){i.has(t)||i.add(t);let s={nativeError:t,name:y(t,"name","Error"),message:y(t,"message",""),stack:r.getErrorTrace(t)};if(n>=r.maxErrorCauseDepth)return s;let o=p(t);if(null!=o){let t=m(o);i.has(t)||(s.cause=e(t,r,n+1,i))}return s}(e,r):e);let l=i;if(void 0!==s&&null!=i){let t="message-first"===s?e[1]:e[0];for(let e of Object.keys(i))Object.hasOwn(t,e)&&(l===i&&(l={...i}),delete l[e])}return null==t?1!==e.length||Array.isArray(e[0])||!0===r.isBuffer(e[0])||e[0]instanceof Date?n={...l,...n,...e}:o&&null!=l?(n={...e[0],...n})[v]=l:n="object"==typeof e[0]&&null!=e[0]?{...l,...e[0],...n}:{...l,0:e[0],...n}:n={...l,...n,[t]:e},void 0!==s&&(n[b]=s),n}(a,this.settings.argumentsArrayName,this.logObjDeps,u,this.settings.bindings),h=this._addMetaToLogObj(f,o,l),g=h[this.settings.meta.property];if(null!=g){if(this.settings.meta.attachContext){let e=this.asyncContextBox.store?.getStore();if(null!=e)for(let t of Object.keys(e))g[t]=e[t]}if(null!=n)for(let e of Object.keys(n))g[e]=n[e]}if(Object.defineProperty(h,S,{value:a,enumerable:!1,configurable:!0,writable:!0}),"pretty"===this.settings.type){let{args:e,errors:t}=this.runtime.prettyFormatLogObj(a,this.settings),r=this.features.buildPrettyMetaText?.(this.settings,g)??"";this.runtime.transportFormatted(r,e,t,g,this.settings)}else if("json"===this.settings.type)try{let e=this.features.renderJson(h,this.settings);null!=this.runtime.writeJsonLine?this.runtime.writeJsonLine(e):N("log")(e)}catch{}if(this.settings.attachedTransports.length>0){let e="pretty"===this.settings.type?"pretty":"json";!function(e,t,r,n,i,s){let o,l,a;if(0===e.length)return;let u=e=>{if("function"==typeof e){let r=(a??=new Map).get(e);if(void 0!==r)return r;let n=i(t,e);return a.set(e,n),n}return"json"===e?l??=i(t,"json"):o??=i(t,"pretty")};for(let i of e){let e;if(r<(null==i.minLevel?-1/0:c(i.minLevel,s)??-1/0))continue;let o=i.format??n;try{e=u(o)}catch(t){j(i,t),e=""}!function(e,t,r){try{let n=e.write(t,r);if(null!=n&&"function"==typeof n.then){let t=A.get(e);void 0===t&&(t=new Set,A.set(e,t));let r=n.then(()=>{t.delete(r)},n=>{t.delete(r),j(e,n)});t.add(r)}}catch(t){j(e,t)}}(i,t,e)}}(this.settings.attachedTransports,h,o,e,(e,t)=>(function(e,t,r){if("json"===e)return r;if("pretty"===e)return(e,r)=>{var n;let i,s=e[r.meta.property],o=(n=r.meta.property,Array.isArray(i=e[S])?i:Object.keys(e).filter(e=>e!==n).map(t=>e[t]));return t.prettyFormatLine(o,s,r)};return e})(t,this.runtime,this.features.renderJson)(e,this.settings),this.settings.customLevels)}return h}isLevelEnabled(e){let t=c(e,this.settings.customLevels);return null!=t&&t>=this.settings.minLevel}if(e){return e?this:this._getConditionalNoop()}_getConditionalNoop(){if(null==this._conditionalNoop){let e=()=>void 0;this._conditionalNoop=new Proxy(this,{get(t,r,n){if("then"===r)return;let i=Reflect.get(t,r,n);return"function"==typeof i?e:i}})}return this._conditionalNoop}use(e){return this.settings.middleware.push(e),this}
1_getAsyncContextStore(){return null==this.asyncContextBox.store&&(null!=this.settings.contextStorage?this.asyncContextBox.store=s(this.settings.contextStorage):this.asyncContextBox.store=null!=this.runtime.createAsyncContextStore?this.runtime.createAsyncContextStore():function(e=function(){let e=globalThis.AsyncLocalStorage;if("function"==typeof e)return e;try{let e=globalThis.process?.getBuiltinModule;if("function"==typeof e){let t=e("node:async_hooks");if("function"==typeof t?.AsyncLocalStorage)return t.AsyncLocalStorage}}catch{}}()){let t;if(null==e)return i;try{t=new e}catch{return i}return o(t)}()),this.asyncContextBox.store}runInContext(e,t){let r=this._getAsyncContextStore();return!r.enabled&&!this.warnedContextNoop&&M()&&(this.warnedContextNoop=!0,N("warn")('tslog: runInContext() found no AsyncLocalStorage on this runtime â the function runs, but the context will NOT be attached to logs. On Cloudflare Workers enable the "nodejs_als" (or "nodejs_compat") compatibility flag and pass `contextStorage: new AsyncLocalStorage()` from "node:async_hooks".')),r.run(e,t)}getContext(){return this._getAsyncContextStore().getStore()}addLevel(e,t){return g(e,t,this.settings.customLevels),this.settings.customLevels[e]=t,this.hasCustomLevels=!0,this._installCustomLevelMethod(e,t),this}attachTransport(e){var t;let r,n;return t=this.settings.attachedTransports,r=$(e),t.push(r),n=!1,()=>{if(n)return;n=!0;let e=t.indexOf(r);-1!==e&&t.splice(e,1)}}async flush(){await Promise.all([x(this.settings.attachedTransports),this._flushDefaultSink()])}async _flushDefaultSink(){try{await this.runtime.flushJsonSink?.()}catch{}}_ownedTransports(){let e=this.inheritedTransports;return null==e?this.settings.attachedTransports:this.settings.attachedTransports.filter(t=>!e.has(t))}async [Symbol.asyncDispose](){await Promise.all([x(this.settings.attachedTransports),this._flushDefaultSink()]),await T(this._ownedTransports())}[Symbol.dispose](){this._flushDefaultSink(),x(this.settings.attachedTransports).then(()=>T(this._ownedTransports()))}child(e,t){return this.getSubLogger(e,t)}getSubLogger(e,t){let r={...this.settings.customLevels,...e?.customLevels},n={...this.settings,...e,minLevel:c(e?.minLevel,r)??this.settings.minLevel,customLevels:r,pretty:{...this.settings.pretty,...e?.pretty},json:{...this.settings.json,...e?.json},mask:{...this.settings.mask,...e?.mask},stack:{...this.settings.stack,...e?.stack},meta:{...this.settings.meta,...e?.meta},attachedTransports:[...this.settings.attachedTransports,...e?.attachedTransports??[]],middleware:[...this.settings.middleware,...e?.middleware??[]],parentNames:this.settings?.parentNames!=null&&this.settings?.name!=null?[...this.settings.parentNames,this.settings.name]:this.settings?.name!=null?[this.settings.name]:void 0,prefix:[...this.settings.prefix,...e?.prefix??[]],bindings:null!=this.rawBindings||e?.bindings!=null?{...this.rawBindings,...e?.bindings}:void 0,contextStorage:e?.contextStorage??this.settings.contextStorage},i=new this.constructor(n,t??this.logObj,this.runtime,this.callerFrame,this.features);return(e?.contextStorage==null||e.contextStorage===this.settings.contextStorage)&&(i.asyncContextBox=this.asyncContextBox),i.inheritedTransports=new WeakSet(this.settings.attachedTransports),i}_resolveLogArguments(e){if(1===e.length&&"function"==typeof e[0]){let t=e[0];if(0===t.length){let e=t();return Array.isArray(e)?[...e]:[e]}}return e}_addMetaToLogObj(e,t,r){let n=this.runtime.getMeta(t,r,this.callerFrame,!this.captureStackForMeta,this.settings.name,this.settings.parentNames,this.settings.stack.internalFramePatterns),i=this.settings.clock;if(null!=i)try{let e=i();e instanceof Date&&!Number.isNaN(e.getTime())&&(n.date=e)}catch{}return{...e,[this.settings.meta.property]:n}}_shouldCaptureStack(){let e=this.settings.stack.capture;if("off"===e)return!1;if("full"===e||"lazy"===e||"json"===this.settings.type)return!0;let t=this.settings.pretty.template??"";return/{{\s*(file(Name|Path|Line|PathWithLine|NameWithLine)|fullFilePath)\s*}}/.test(t)}}
1function el(e,t=2,r=0){return null!=e&&isNaN(e)?"":(e=null!=e?e+r:e,2===t?null==e?"--":e<10?`0${e}`:e.toString():null==e?"---":e<10?`00${e}`:e<100?`0${e}`:e.toString())}let ea="#000000",eu="#ef5350",ef="#66bb6a",ec="#fdd835",eh="#42a5f5",eg="#ab47bc",ep="#26c6da",ey="#424242",em="#ff7043",ed="#81c784",eb="#ffe082",ev="#64b5f6",ew="#ce93d8",eS="#4dd0e1",ek={reset:{ansi:[0,0]},bold:{ansi:[1,22],css:"font-weight: bold"},dim:{ansi:[2,22],css:"opacity: 0.75"},italic:{ansi:[3,23],css:"font-style: italic"},underline:{ansi:[4,24],css:"text-decoration: underline"},overline:{ansi:[53,55],css:"text-decoration: overline"},inverse:{ansi:[7,27],css:"filter: invert(1)"},hidden:{ansi:[8,28],css:"visibility: hidden"},strikethrough:{ansi:[9,29],css:"text-decoration: line-through"},black:{ansi:[30,39],css:`color: ${ea}`},red:{ansi:[31,39],css:`color: ${eu}`},green:{ansi:[32,39],css:`color: ${ef}`},yellow:{ansi:[33,39],css:`color: ${ec}`},blue:{ansi:[34,39],css:`color: ${eh}`},magenta:{ansi:[35,39],css:`color: ${eg}`},cyan:{ansi:[36,39],css:`color: ${ep}`},white:{ansi:[37,39]},blackBright:{ansi:[90,39],css:`color: ${ey}`},redBright:{ansi:[91,39],css:`color: ${em}`},greenBright:{ansi:[92,39],css:`color: ${ed}`},yellowBright:{ansi:[93,39],css:`color: ${eb}`},blueBright:{ansi:[94,39],css:`color: ${ev}`},magentaBright:{ansi:[95,39],css:`color: ${ew}`},cyanBright:{ansi:[96,39],css:`color: ${eS}`},whiteBright:{ansi:[97,39]},bgBlack:{ansi:[40,49],css:`background-color: ${ea}`},bgRed:{ansi:[41,49],css:`background-color: ${eu}`},bgGreen:{ansi:[42,49],css:`background-color: ${ef}`},bgYellow:{ansi:[43,49],css:`background-color: ${ec}`},bgBlue:{ansi:[44,49],css:`background-color: ${eh}`},bgMagenta:{ansi:[45,49],css:`background-color: ${eg}`},bgCyan:{ansi:[46,49],css:`background-color: ${ep}`},bgWhite:{ansi:[47,49],css:"background-color: #fafafa"},bgBlackBright:{ansi:[100,49],css:`background-color: ${ey}`},bgRedBright:{ansi:[101,49],css:`background-color: ${em}`},bgGreenBright:{ansi:[102,49],css:`background-color: ${ed}`},bgYellowBright:{ansi:[103,49],css:`background-color: ${eb}`},bgBlueBright:{ansi:[104,49],css:`background-color: ${ev}`},bgMagentaBright:{ansi:[105,49],css:`background-color: ${ew}`},bgCyanBright:{ansi:[106,49],css:`background-color: ${eS}`},bgWhiteBright:{ansi:[107,49],css:"background-color: #ffffff"}},eO=Object.fromEntries(Object.entries(ek).map(([e,t])=>[e,t.ansi])),eL=new Map(Object.values(ek).filter(e=>null!=e.css&&e.ansi[0]!==e.ansi[1]).map(e=>[e.ansi[0],{css:e.css,close:e.ansi[1]}]));function eE(e,t,r,n=!1){let i=String(t),s=(e,t)=>`\u001b[${t[0]}m${e}\u001b[${t[1]}m`,o=(e,t)=>null!=t&&"string"==typeof t?s(e,eO[t]):null!=t&&Array.isArray(t)?t.reduce((e,t)=>o(e,t),e):null!=t&&null!=t[e.trim()]?o(e,t[e.trim()]):null!=t&&null!=t["*"]?o(e,t["*"]):e;return i.replace(/{{(.+?)}}/g,(t,i)=>
1{let l=null!=r[i]?String(r[i]):n?"":t;return e.pretty.style?o(l,e.pretty.styles?.[i]??null)+s("",eO.reset):l})}function eN(e,t){var r,n;let i,s,o,l,a,u;if(null==t)return{text:"",template:e.pretty.template,placeholders:{}};let f=e.pretty.template,c={},h=t.date,g=h instanceof Date&&!Number.isNaN(h.getTime())?h:void 0;if(null!=h&&void 0===g)if(h instanceof Date)i="Invalid Date";else try{i=String(h)}catch{i="Invalid Date"}f.includes("{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}")?f=f.replace("{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}","{{dateIsoStr}}"):null==g?(c.yyyy="----",c.mm="--",c.dd="--",c.hh="--",c.MM="--",c.ss="--",c.ms="---"):"UTC"===e.pretty.timeZone?(c.yyyy=g.getUTCFullYear(),c.mm=el(g.getUTCMonth(),2,1),c.dd=el(g.getUTCDate(),2),c.hh=el(g.getUTCHours(),2),c.MM=el(g.getUTCMinutes(),2),c.ss=el(g.getUTCSeconds(),2),c.ms=el(g.getUTCMilliseconds(),3)):(c.yyyy=g.getFullYear(),c.mm=el(g.getMonth(),2,1),c.dd=el(g.getDate(),2),c.hh=el(g.getHours(),2),c.MM=el(g.getMinutes(),2),c.ss=el(g.getSeconds(),2),c.ms=el(g.getMilliseconds(),3));let p="UTC"===e.pretty.timeZone,y=p?g:null!=g?new Date(g.getTime()-6e4*g.getTimezoneOffset()):void 0;c.rawIsoStr=null==y?i??"":p?y.toISOString():(r=y,n=g,s=r.toISOString().replace("Z",""),a=String(Math.floor((l=Math.abs(o=-n.getTimezoneOffset()))/60)).padStart(2,"0"),u=String(l%60).padStart(2,"0"),`${s}${o>=0?"+":"-"}${a}:${u}`),c.dateIsoStr=y?.toISOString().replace("T"," ").replace("Z","")??i??"",c.logLevelName=t.logLevelName,c.fileNameWithLine=t.path?.fileNameWithLine??"",c.filePathWithLine=t.path?.filePathWithLine??"",c.fullFilePath=t.path?.fullFilePath??"";let m=e.parentNames?.join(e.pretty.errorParentNamesSeparator);m=null!=m&&null!=t.name?m+e.pretty.errorParentNamesSeparator:void 0;let d=null!=t.name||null!=m?`${m??""}${t.name??""}`:"";return c.name=d,c.nameWithDelimiterPrefix=d.length>0?e.pretty.errorLoggerNameDelimiter+d:"",c.nameWithDelimiterSuffix=d.length>0?d+e.pretty.errorLoggerNameDelimiter:"",{text:eE(e,f,c),template:f,placeholders:c}}class e${settings;predicates;maskKeysCache;maskPathsCache;globalRegexCache=new WeakMap;constructor(e,t){this.settings=e,this.predicates=t}mask(e){let t=null!=this.settings.mask.keys&&this.settings.mask.keys.length>0,r=null!=this.settings.mask.regex&&this.settings.mask.regex.length>0,n=this.getMaskPaths(),i=n.length>0;if(!t&&!r&&!i){for(let t=0;t<e.length;t++)if(e[t]instanceof URL)return e.map(e=>e instanceof URL?en(e):e);return e}let s=this.createContext(n);return e?.map(e=>this.recurse(e instanceof URL?en(e):e,s))}getMaskKeys(){let e=this.settings.mask.keys??[],t=e.map(String).join("|"),r=!0===this.settings.mask.caseInsensitive;if(this.maskKeysCache?.source===e&&this.maskKeysCache.caseInsensitive===r&&this.maskKeysCache.signature===t)return this.maskKeysCache.normalized;let n=r?e.map(e=>"string"==typeof e?e.toLowerCase():String(e).toLowerCase()):e.map(e=>"string"==typeof e?e:String(e));return this.maskKeysCache={source:e,caseInsensitive:r,normalized:n,signature:t},n}recursiveCloneAndMaskValuesOfKeys(e,t,r){let n=this.getMaskPaths(),i={keySet:this.buildKeySet(t),escapedPlaceholder:this.escapePlaceholder(),seen:new WeakMap,inProgress:n.length>0?new WeakSet:void 0,inertClones:n.length>0?new WeakSet:void 0,legacySeen:this.toLegacySeen(r),paths:n,maxPathDepth:eA(n),regexes:this.normalizedRegexes(),segmentStack:[],pathsSuspended:0};return this.recurse(e,i)}buildKeySet(e){let t=new Set;for(let r of e)t.add("string"==typeof r?r:String(r));return t}toLegacySeen(e){if(e instanceof WeakSet)return e;if(!Array.isArray(e)||0===e.length)return;let t=new WeakSet;for(let r of e)null!==r&&"object"==typeof r&&t.add(r);return t}escapePlaceholder(){return(this.settings.mask.placeholder||"").replace(/\$/g,"$$$$")}createContext(e){let t=this.getMaskKeys();return{keySet:this.buildKeySet(t),escapedPlaceholder:this.escapePlaceholder(),seen:new WeakMap,inProgress:e.length>0?new WeakSet:void 0,inertClones:e.length>0?new WeakSet:void 0,paths:e,maxPathDepth:eA(e),regexes:this.normalizedRegexes(),segmentStack:[],pathsSuspended:0}}normalizedRegexes(){let e=this.settings.mask.regex??[];return 0===e.length?e:e.map(e=>this.toGlobalRegex(e))}isPathInert(e){return e.pathsSuspended>0||e.segmentStack.length>=e.maxPathDepth}getMaskPaths(){let e=this.settings.mask?.paths??[];if(0===e.length)return[];let t=e.join("|");if(this.maskPathsCache?.source===e&&this.maskPathsCache.signature===t)return this.maskPathsCache.compiled;let r=[];for(let t of e)"string"==typeof t&&0!==t.length&&r.push({segments:t.split(".")});return this.maskPathsCache={source:e,signature:t,compiled:r},r}matchesPath(e){if(e.pathsSuspended>0)return!1;let t=e.segmentStack;for(let r of e.paths){let e=r.segments;if(e.length!==t.length)continue;let n=!0;for(let r=0;r<e.length;r++){let i=e[r];if("*"!==i&&i!==t[r]){n=!1;break}}if(n)return!0}return!1}censorValue(e,t){let r=this.settings.mask?.censor;return"function"==typeof r?r(e,t.segmentStack.join(".")):"hash"===r?this.hashToken(e):"string"==typeof r?r:this.settings.mask.placeholder}hashToken(e){let t=this.settings.mask.hashLabel||"hash";return`[${t}:${function(e){let t=0x811c9dc5;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,0x1000193);return(t>>>0).toString(16).padStart(8,"0")}(function(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=typeof e;if("string"===t)return e;if("number"===t||"boolean"===t||"bigint"===t)return String(e);try{let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if(null!==r&&"object"==typeof r){if(t.has(r))return"[Circular]";t.add(r)}return"bigint"==typeof r?String(r):r}
1)??String(e)}catch{return String(e)}}(e))}]`}recurse(e,t){if(null!==e&&"object"==typeof e){if(t.legacySeen?.has(e))return{...e};let r=t.seen.get(e);if(void 0!==r&&(null==t.inProgress||t.inProgress.has(e)||"object"==typeof r&&null!==r&&t.inertClones?.has(r)&&this.isPathInert(t)))return r}if(this.predicates.isError(e)||this.predicates.isBuffer(e))return e;if(e instanceof Map){let r=new Map;t.seen.set(e,r),t.inertClones?.add(r),t.inProgress?.add(e),t.pathsSuspended++;try{let n=!0===this.settings.mask.caseInsensitive;for(let[i,s]of e){let e="string"==typeof i?n?i.toLowerCase():i:"number"==typeof i||"bigint"==typeof i?String(i):void 0;null!=e&&t.keySet.has(e)?r.set(i,"hash"===this.settings.mask.censor?this.hashToken(s):this.settings.mask.placeholder):r.set(this.recurse(i,t),this.recurse(s,t))}}finally{t.pathsSuspended--,t.inProgress?.delete(e)}return r}if(e instanceof Set){let r=new Set;t.seen.set(e,r),t.inertClones?.add(r),t.inProgress?.add(e),t.pathsSuspended++;try{for(let n of e)r.add(this.recurse(n,t))}finally{t.pathsSuspended--,t.inProgress?.delete(e)}return r}if(Array.isArray(e)){let r=Array(e.length);t.seen.set(e,r),null!=t.inertClones&&this.isPathInert(t)&&t.inertClones.add(r),t.inProgress?.add(e);let n=t.paths.length>0;try{for(let i=0;i<e.length;i++){if(!(i in e))continue;let s=e[i];if(!n){r[i]=this.recurse(s,t);continue}t.segmentStack.push(String(i));try{r[i]=this.matchesPath(t)?this.censorValue(s,t):this.recurse(s,t)}finally{t.segmentStack.pop()}}}finally{t.inProgress?.delete(e)}return r}if(e instanceof Date)return new Date(e.getTime());else if(e instanceof URL)return e;else if(null!==e&&"object"==typeof e){let r=!0===this.settings.mask.caseInsensitive,n=t.paths.length>0,i="remove"===this.settings.mask.censor,s=Object.create(Object.getPrototypeOf(e));t.seen.set(e,s),null!=t.inertClones&&this.isPathInert(t)&&t.inertClones.add(s),t.inProgress?.add(e);try{return Object.getOwnPropertyNames(e).reduce((s,o)=>{let l=r?"string"==typeof o?o.toLowerCase():String(o).toLowerCase():o;if(t.keySet.has(l)){if("hash"===this.settings.mask.censor){let t;try{t=e[o]}catch{t=void 0}s[o]=this.hashToken(t)}else s[o]=this.settings.mask.placeholder;return s}if(n){t.segmentStack.push(o);try{if(this.matchesPath(t)){if(!i){let r;try{r=e[o]}catch{r=void 0}s[o]=this.censorValue(r,t)}return s}s[o]=this.recurseProperty(e,o,t)}finally{t.segmentStack.pop()}return s}return s[o]=this.recurseProperty(e,o,t),s},s)}finally{t.inProgress?.delete(e)}}else{if("string"==typeof e){let r=e;for(let e of t.regexes)r=r.replace(e,t.escapedPlaceholder);return r}return e}}toGlobalRegex(e){if(e.global&&!e.sticky)return e;let t=this.globalRegexCache.get(e);return null==t&&(t=RegExp(e.source,`${e.flags.replace(/[gy]/g,"")}g`),this.globalRegexCache.set(e,t)),t}recurseProperty(e,t,r){try{return this.recurse(e[t],r)}catch{return null}}}function eA(e){let t=0;for(let r of e)r.segments.length>t&&(t=r.segments.length);return t}let ej={createMaskingEngine:(e,t)=>new e$(e,t),renderJson:(e,t)=>(function(e,t){if(!t.json.stableKeyOrder&&"iso"===t.json.time){let r=function(e,t){var r;let n,i,s=t.meta.property,o=e[s];if(null==o||!(o.date instanceof Date))return;let l=Y.get(t);if(!1===l)return;if(void 0===l||(r=l,i=t.json,r.messageKey!==i.messageKey||r.levelKey!==i.levelKey||r.levelIdKey!==i.levelIdKey||r.timeKey!==i.timeKey||"iso"!==i.time||r.numericLevel!==i.numericLevel||r.metaProperty!==t.meta.property)){let e=function(e,t){let r=t.json;if("iso"!==r.time)return!1;let n=[r.messageKey,r.levelKey,r.timeKey,t.meta.property];if(r.numericLevel&&n.push(r.levelIdKey),new Set(n).size!==n.length)return!1;let i=[],s=[],o=`,${JSON.stringify(t.meta.property)}:{"v":5`,l=0,a=0,u=0,f=0;for(let t of Object.keys(e)){if(f++,"date"===t){o+=',"date":"',s.push(o,{dyn:"date"}),o='"',l++;continue}if("logLevelId"===t){o+=',"logLevelId":',s.push(o,{dyn:"levelId"}),o="",a++;continue}if("logLevelName"===t){o+=',"logLevelName":',s.push(o,{dyn:"levelName"}),o="",u++;continue}if(!H.has(t))return"path"!==t&&null;let r=e[t];if(!function(e){let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e||Array.isArray(e)&&e.every(e=>"string"==typeof e)}(r))return!1;i.push({key:t,value:r}),o+=`,${JSON.stringify(t)}:${JSON.stringify(r)}`}return 1===l&&1===a&&1===u&&(s.push(`${o}}`),{messageKey:r.messageKey,levelKey:r.levelKey,levelIdKey:r.levelIdKey,timeKey:r.timeKey,numericLevel:r.numericLevel,metaProperty:t.meta.property,messagePrefix:`${JSON.stringify(r.messageKey)}:`,staticEntries:i,metaKeyCount:f,metaSegments:s,levelChunks:new Map})}(o,t);
1if(null===e||(Y.set(t,e),!1===e))return;l=e}let a=0;for(let e in o)a++;if(a!==l.metaKeyCount)return;for(let e=0;e<l.staticEntries.length;e++){let t=l.staticEntries[e];if(o[t.key]!==t.value)return}if(e[D]instanceof Error)return;let u=t.json,f=Object.hasOwn(e,u.messageKey),c=f?u.messageKey:Object.hasOwn(e,"0")?"0":void 0,h=void 0!==c?e[c]:void 0,g=f?void 0:e[b];if(void 0!==g){let t=e["0"],r=e["1"];"object-first"===g&&"object"==typeof t&&null!==t?(h=r,n=t):"message-first"===g&&"object"==typeof r&&null!==r&&(h=t,n=r)}let p=void 0!==n;p&&(c=u.messageKey);let y=o.logLevelId,m=o.logLevelName,d=`${y}|${m}`,v=l.levelChunks.get(d);if(void 0===v){let e=`${JSON.stringify(l.levelKey)}:${JSON.stringify(m)}${l.numericLevel?`,${JSON.stringify(l.levelIdKey)}:${JSON.stringify(y)}`:""},${JSON.stringify(l.timeKey)}:"`,t="",r="",n=!1;for(let e of l.metaSegments){let i="string"==typeof e?e:"levelId"===e.dyn?JSON.stringify(y):"levelName"===e.dyn?JSON.stringify(m):void 0;if(void 0===i){n=!0;continue}n?r+=i:t+=i}v={head:e,metaBefore:t,metaAfter:r},l.levelChunks.set(d,v)}let w=W(o.date),S="{";if(void 0!==c){let e=X(h);void 0!==e&&(S+=`${l.messagePrefix}${e},`)}S+=`${v.head}${w}"`;let k=Object.keys(e);for(let t=0;t<k.length;t++){let r=k[t];if(r===s||r===c||"__proto__"===r||z(r,u)||p&&("0"===r||"1"===r))continue;if(q(r))return;let n=e[r];if(er(n))return;let i=X(n);void 0!==i&&(S+=`,${JSON.stringify(r)}:${i}`)}if(void 0!==n)for(let t of Object.keys(n)){if(t===u.messageKey||"__proto__"===t||t===s||z(t,u)||Object.hasOwn(e,t)&&"0"!==t&&"1"!==t)continue;if(q(t))return;let r=X(n[t]);void 0!==r&&(S+=`,${JSON.stringify(t)}:${r}`)}return`${S+v.metaBefore+w+v.metaAfter}}`}(e,t);if(void 0!==r)return r}return V(e,t)})(e,t),validateSettings(e){!function(e){if(null==e)return;let t=!0===e.strictConfig;if(!t&&!M())return;let r=e=>{if(t)throw new l(e);K(e.message)};if(null!=e.minLevel){let t=c(e.minLevel,e.customLevels);null==t?r({code:"UNKNOWN_MIN_LEVEL",setting:"minLevel",message:`unknown minLevel ${JSON.stringify(e.minLevel)}; expected a number 0-6 or a level name like "WARN".`,suggestion:'Use a number 0-6, a LogLevel enum value, or a level name like "WARN" â or register it via customLevels.'}):"number"==typeof e.minLevel&&(t<0||t>6)&&r({code:"MIN_LEVEL_OUT_OF_RANGE",setting:"minLevel",message:`minLevel ${t} is outside the default range 0-6; no default log method will be filtered as you might expect.`,suggestion:"Set minLevel to a number between 0 (SILLY) and 6 (FATAL), or register a customLevel for the out-of-range id."})}try{let n=e.contextStorage;if(null!=n){let e=!1;try{e="function"!=typeof n.run||"function"!=typeof n.getStore}catch{e=!0}if(e&&(t||!U.has(n))){try{U.add(n)}catch{}r({code:"INVALID_CONTEXT_STORAGE",setting:"contextStorage",message:"contextStorage does not look like an AsyncLocalStorage instance (needs run() and getStore()); runInContext will not propagate context.",suggestion:'Pass an INSTANCE, e.g. `contextStorage: new AsyncLocalStorage()` from "node:async_hooks" â not the class itself.'})}}}catch(e){if(e instanceof l)throw e}try{null!=e.clock&&"function"!=typeof e.clock&&r({code:"INVALID_CLOCK",setting:"clock",message:"clock must be a function returning a Date (e.g. `clock: () => new Date()`); it will be ignored.",suggestion:"Pass a zero-argument function returning a valid Date."});let t=e.json?.time;null!=t&&!1!==t&&"iso"!==t&&"epoch"!==t&&"function"!=typeof t&&r({code:"INVALID_JSON_TIME",setting:"json.time",message:`unknown json.time value ${JSON.stringify(t)}; expected "iso", "epoch", false, or a (date) => string | number function.`,suggestion:'Use json.time: "iso" | "epoch" | false | ((date) => string | number).'})}catch(e){if(e instanceof l)throw e}let n=[];try{n=Object.keys(e)}catch{}for(let e of n){if(P.has(e))continue;let t=Object.hasOwn(_,e)?_[e]:void 0;if(null!=t){r({code:"V4_FLAT_KEY",setting:e,message:`"${e}" was removed in v5 â use ${t} instead (see MIGRATION_v4_to_v5.md).`,suggestion:`Move "${e}" to ${t}.`});continue}let n=R(e,P);r({code:"UNKNOWN_SETTING",setting:e,message:`unknown setting "${e}"${null!=n?` â did you mean "${n}"?`:""}`,suggestion:null!=n?`Rename "${e}" to "${n}".`:`Remove "${e}" â it is not a tslog setting.`})}for(let[t,n]of Object.entries(I)){let i;try{i=e[t]}catch{continue}if(null==i||"object"!=typeof i||Array.isArray(i))continue;let s=[];try{s=Object.keys(i)}catch{continue}for(let e of s){if(n.has(e))continue;let i=R(e,n);r({code:"UNKNOWN_SETTING",setting:`${t}.${e}`,message:`unknown setting "${t}.${e}
1"${null!=i?` â did you mean "${t}.${i}"?`:""}`,suggestion:null!=i?`Rename "${t}.${e}" to "${t}.${i}".`:`Remove "${t}.${e}" â it is not a tslog setting.`})}}let i=e.pretty?.template;if("string"==typeof i){let e,t=/{{\s*(.+?)\s*}}/g;for(;null!=(e=t.exec(i));){let t=e[1];B.has(t)||r({code:"UNKNOWN_PRETTY_PLACEHOLDER",setting:"pretty.template",message:`pretty.template references unknown placeholder "{{${t}}}"; check the spelling (e.g. "{{logLevelName}}").`,suggestion:`Remove or fix "{{${t}}}" â see the recognized placeholders (e.g. "{{logLevelName}}", "{{filePathWithLine}}").`})}}}(e)},buildPrettyMetaText:(e,t)=>eN(e,t).text};function ex(e){let t=new Set;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return"bigint"==typeof r?`${r}`:void 0===r?"[undefined]":r})}function eT(e,t){let r={seen:[],stylize:eB};return null!=t&&eV(r,t),eC(r.showHidden)&&(r.showHidden=!1),eC(r.depth)&&(r.depth=2),eC(r.colors)&&(r.colors=!0),eC(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=eP),ez(r,e,r.depth)}function eC(e){return void 0===e}function eB(e){return e}function eP(e,t){let r=eT.styles[t];return null!=r&&eT?.colors?.[r]?.[0]!=null&&eT?.colors?.[r]?.[1]!=null?`\u001b[${eT.colors[r][0]}m${e}\u001b[${eT.colors[r][1]}m`:e}function eI(e){return"function"==typeof e}function e_(e){return"string"==typeof e}eT.colors=eO,eT.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function eR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eM(e){return eU(e)&&"[object RegExp]"===eF(e)}function eU(e){return"object"==typeof e&&null!==e}function eK(e){return eU(e)&&("[object Error]"===eF(e)||e instanceof Error)}function eD(e){return eU(e)&&"[object Date]"===eF(e)}function eF(e){return Object.prototype.toString.call(e)}function eW(e){return`[${Error.prototype.toString.call(e)}]`}function ez(e,t,r=0){var n,i,s;let o,l,a;if(e.customInspect&&null!=t&&eI(t)&&t.inspect!==eT&&!(t.constructor&&t.constructor?.prototype===t)){if("function"!=typeof t.inspect&&null!=t.toString)return t.toString();let n=t.inspect?.(r,e);return e_(n)||(n=ez(e,n,r)),n}let u=eG(e,t);if(u)return u;if("u">typeof URL&&t instanceof URL)return`URL { ${eG(e,t.href)??`'${String(t.href)}'`} }`;try{o=Object.keys(t)}catch{o=[]}let f=(a={},o.forEach(e=>{a[e]=!0}),a);try{e.showHidden&&Object.getOwnPropertyNames&&(o=Object.getOwnPropertyNames(t))}catch{}if(eK(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return eW(t);if(0===o.length)if(!eI(e.stylize))return String(t);else{if(eI(t)){let r=t.name?`: ${t.name}`:"";return e.stylize(`[Function${r}]`,"special")}if(eM(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(eD(t))return e.stylize(Number.isNaN(t.valueOf())?"Invalid Date":Date.prototype.toISOString.call(t),"date");if(eK(t))return eW(t)}let c="",h=!1,g=["{\n","\n}"];if(Array.isArray(t)&&(h=!0,g=["[\n","\n]"]),eI(t)){let e=t.name?`: ${t.name}`:"";c=` [Function${e}]`}eM(t)&&(c=` ${RegExp.prototype.toString.call(t)}`),eD(t)&&(c=` ${Number.isNaN(t.valueOf())?"Invalid Date":Date.prototype.toUTCString.call(t)}`),eK(t)&&(c=` ${eW(t)}`);let p=h?t:[];if(0===o.length&&(!h||0===p.length))return g[0]+c+g[1];if(r<0)if(eM(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");else return e.stylize("[Object]","special");return e.seen.push(t),l=h?function(e,t,r,n,i){let s=[];for(let i=0,o=t.length;i<o;++i)eR(t,String(i))?s.push(eJ(e,t,r,n,String(i),!0)):s.push("");return i.forEach(i=>{i.match(/^\d+$/)||s.push(eJ(e,t,r,n,i,!0))}),s}(e,t,r,f,o):o.map(n=>eJ(e,t,r,f,n,h)),e.seen.pop(),n=l,i=c,s=g,`${s[0]+(""===i?"":`${i} 2`)} ${n.join(",\n ")} ${s[1]}`}function eJ(e,t,r,n,i,s){let o,l,a={value:void 0};try{a.value=t[i]}catch{}try{a=Object.getOwnPropertyDescriptor(t,i)||a}catch{}if(a.get?l=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(l=e.stylize("[Setter]","special")),eR(n,i)||(o=`[${i}]`),!l&&(0>e.seen.indexOf(a.value)?(l=null===r?ez(e,a.value,void 0):ez(e,a.value,r-1)).indexOf("\n")>-1&&(l=s?l.split("\n").map(e=>` ${e}`).join("\n").substr(2):"\n"+l.split("\n").map(e=>` ${e}`).join("\n")):l=e.stylize("[Circular]","special")),eC(o)){if(s&&i.match(/^\d+$/))return l;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,"\\'").replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return`${o}: ${l}`}function eG(e,t){if(eC(t))return e.stylize("undefined","undefined");if(e_(t)){let r=`'${JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,"\\'")}'`;
2return e.stylize(r,"string")}return"number"==typeof t?e.stylize(`${t}`,"number"):"bigint"==typeof t?e.stylize(`${t}n`,"number"):"boolean"==typeof t?e.stylize(`${t}`,"boolean"):null===t?e.stylize("null","null"):void 0}function eV(e,t){if(!t||!eU(t))return e;let r={...t},n=Object.keys(t),i=n.length;for(;i--;)e[n[i]]=r[n[i]];return e}function eY(e,...t){let r={seen:[],stylize:eB};null!=e&&eV(r,e);let n=t[0],i=0,s="",o="";if("string"==typeof n){let l;if(1===t.length)return n;let a=0;for(let o=0;o<n.length-1;o++)if(37===n.charCodeAt(o)){let u=n.charCodeAt(++o);if(i+1!==t.length){switch(u){case 115:{let n=t[++i];l="number"==typeof n||"bigint"==typeof n?eG(r,n):"object"!=typeof n||null===n?String(n):eT(n,{...e,compact:3,colors:!1,depth:0});break}case 106:l=ex(t[++i]);break;case 100:{let e=t[++i];l="bigint"==typeof e?eG(r,e):"symbol"==typeof e?"NaN":eG(r,e);break}case 79:l=eT(t[++i],e);break;case 111:l=eT(t[++i],{...e,showHidden:!0,showProxy:!0,depth:4});break;case 105:{let e=t[++i];l="bigint"==typeof e?eG(r,e):"symbol"==typeof e?"NaN":eG(r,parseInt(String(e),10));break}case 102:{let e=t[++i];l="symbol"==typeof e?"NaN":eG(r,parseFloat(String(e)));break}case 99:i+=1,l="";break;case 37:s+=n.slice(a,o),a=o+1;continue;default:continue}a!==o-1&&(s+=n.slice(a,o-1)),s+=l,a=o+1}else 37===u&&(s+=n.slice(a,o),a=o+1)}0!==a&&(i++,o=" ",a<n.length&&(s+=n.slice(a)))}for(;i<t.length;){let r=t[i];s+=o,s+="string"!=typeof r?eT(r,e):r,o=" ",i++}return s}let eH=null,eZ=(()=>{try{let e="file:///build/node_modules/tslog/esm/env/stackTrace.js";if("string"!=typeof e||0===e.length)return;let t=e.replace(/^file:\/\//,"").replace(/[\\/]env[\\/]stackTrace\.[a-z]+(?:\?.*)?$/i,"");return t===e?void 0:t}catch{return}})(),eq=null!=eZ?RegExp(`^(?:file://)?${eZ.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[\\\\/]`,"i"):void 0,eX=[/(?:^|[\\/])node_modules[\\/].*tslog/i,/node_modules_tslog/i,/(?:^|[\\/])deps[\\/].*tslog/i,/(?:^|[\\/])tslog[\\/]dist[\\/](?:esm|cjs)[\\/]/i,...null!=eq?[eq]:[],/\[root[ -]of[ -]the[ -]/i,/\[turbopack\]/i];function eQ(e){return(function(e){let t;try{let r=e?.stack;t="string"==typeof r?r:void 0}catch{return[]}return null==t||0===t.length?[]:t.split("\n").map(e=>e.trimEnd())})(e).filter(e=>e.length>0&&!/^\s*Error\b/.test(e))}function e0(e,t){var r=eQ(e);let n=[];for(let e of r){let r=t(e);null!=r&&n.push(r)}return n}function e1(e,t){return e<0?0:e>=t?Math.max(0,t-1):e}function e2(e,t,r,n){try{let t=e?.env?.HOSTNAME??e?.env?.HOST??e?.env?.COMPUTERNAME;if(null!=t&&t.length>0)return t}catch{}try{let e=r?.env?.HOSTNAME??r?.env?.HOST??r?.env?.COMPUTERNAME;if(null!=e&&e.length>0)return e}catch{}try{let e=t?.env?.get;if("function"==typeof e){let t=e("HOSTNAME");if(null!=t&&t.length>0)return t}}catch{}try{if("function"==typeof t?.hostname){let e=t.hostname();if(null!=e&&e.length>0)return e}}catch{}try{if("function"==typeof e?.getBuiltinModule){let t=e.getBuiltinModule("node:os");if("function"==typeof t?.hostname){let e=t.hostname();if(null!=e&&e.length>0)return e}}}catch{}if(n?.hostname!=null&&n.hostname.length>0)return n.hostname}let e5=/(?:(?:file|https?|global code|[^@]+)@)?(?:file:)?((?:\/[^:/]+(?::(?=\/))?)+)(?::(\d+))?(?::(\d+))?/,e3=/[a-z][a-z0-9+.-]*:\/\/[^/\s)]*/i;function e8(e,t,r){let n,i,s,o;if("string"!=typeof e||0===e.length)return;let l=e.trim();if(!l.includes(" at ")&&!l.startsWith("at "))return;let a=l.replace(/^at\s+/,""),u=a,f=a.match(/^(.*?)\s+\((.*)\)$/);f&&(n=f[1],u=f[2]);let c=u.replace(/^\(/,"").replace(/\)$/,""),h=c.replace(/^address at /,""),g=h,p=h.split(":");p.length>=3&&/^\d+$/.test(p[p.length-1])?(s=p.pop(),i=p.pop(),g=p.join(":")):p.length>=2&&/^\d+$/.test(p[p.length-1])&&(i=p.pop(),g=p.join(":"));let y=(g=g.replace(/\?.*$/,"")).replace(/^file:\/\//,"");if(null!=r&&null!=i){let e=r(y,Number(i),null!=s?Number(s):1);null!=e&&(y=e.source,o=e.source,i=String(e.line),s=String(e.column))}let m=t();null!=m&&y.startsWith(m)&&(y=(y=y.slice(m.length)).replace(/^[\\/]/,"")),0===y.length&&(y=g);let d=function(e){if("string"!=typeof e||0===e.length)return e;let t=e.replace(/\\+/g,"\\").replace(/\\/g,"/"),r=t.startsWith("//"),n=t.startsWith("/")&&!r,i=t.match(/^[A-Za-z]:/),s=i?i[0]:"",o=(s?t.slice(s.length):t).split("/"),l=[];for(let e of o)if(""!==e&&"."!==e){if(".."===e){l.length>0&&l.pop();continue}l.push(e)}let a=l.join("/");return(r?a=`//${a}`:n?a=`/${a}`:""!==s&&(a=`${s}${a.length>0?`/${a}`:""}`),0===a.length)?e:a}(y),b=d.length>0?d:y,v=b.split(/\\|\//),w=v[v.length-1],S=w&&i?`${w}:${i}`:void 0,k=b&&i?`${b}:${i}`:void 0;return{fullFilePath:null!=o?`${o}:${i}:${s}
2`:c,fileName:w,fileNameWithLine:S,fileColumn:s,fileLine:i,filePath:b,filePathWithLine:k,method:n}}function e6(e){let t=globalThis.location?.origin;if(null==e)return;let r=e.replace(e3,"").match(e5);if(!r)return;let n=r[1]?.replace(/\?.*$/,"");if(null==n)return;let i=n.split("/"),s=r[2],o=r[3],l=i[i.length-1],a=e.match(/(?:https?|file):\/\/[^\s)]+/);return{fullFilePath:null!=a?a[0].replace(/(?::\d+){1,2}$/,"").replace(/\?.*$/,""):t?`${t}${n}`:n,fileName:l,fileNameWithLine:l&&s?`${l}:${s}`:void 0,fileColumn:o,fileLine:s,filePath:n,filePathWithLine:s?`${n}:${s}`:void 0,method:void 0}}let e4=/^\s*(?:([^@\s]*)@)?(.+?):(\d+):(\d+)\s*$/;function e9(e,t){return e.map(e=>eE(t,t.pretty.errorStackTemplate,{...e},!0))}let e7=new Set(["fileName","lineNumber","columnNumber","line","column","sourceURL"]);function te(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}let tt=/\u001b\[[0-9;]*m/g;function tr(e){return e.replace(tt,"")}var tn,ti,ts=r(82909).hp;(tn=ti||(ti={}))[tn.SILLY=0]="SILLY",tn[tn.TRACE=1]="TRACE",tn[tn.DEBUG=2]="DEBUG",tn[tn.INFO=3]="INFO",tn[tn.WARN=4]="WARN",tn[tn.ERROR=5]="ERROR",tn[tn.FATAL=6]="FATAL";class to extends eo{constructor(e,t){super(e,t,function(){let e,t;return null==n&&(n={...(t=function(e){let t,{runtimeInfo:r}=e,n=function(e){var t,r;if("browser"===e.name||"worker"===e.name)return{runtime:e.name,browser:e.userAgent};if("react-native"===e.name){let t={runtime:e.name};return void 0!==e.version&&(t.runtimeVersion=e.version),t}let n={runtime:e.name};return("node"===(t=e.name)||"deno"===t||"bun"===t)&&(n.runtimeVersion=e.version??"unknown"),("node"===(r=e.name)||"deno"===r||"bun"===r)&&(n.hostname=e.hostname??"unknown"),n}(r),i="adaptive"===e.flavor,s=i&&("browser"===r.name||"worker"===r.name),o=i&&"react-native"===r.name,l=s||o?[...eX,/node_modules[\\/].*tslog/i]:[...eX,/node:(?:internal|vm)/i,/\binternal[\\/]/i];if(s){let e=function(e=Error()){for(let t of eQ(e)){let e=e6(t)?.fullFilePath;if(e)return RegExp(`^${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"i")}}();null!=e&&l.push(e)}function a(){return void 0===t&&(t=function(){try{let e=globalThis?.process;if("function"==typeof e?.cwd)return e.cwd()}catch{}try{let e=globalThis?.Deno;if("function"==typeof e?.cwd)return e.cwd()}catch{}}()??null),t??void 0}function u(t){return o?function(e,t){if("string"!=typeof e||0===e.length)return;let r=e8(e,t);if(void 0!==r)return r;let n=e.match(e4);if(n){let e=null!=n[1]&&n[1].length>0?n[1]:void 0,t=n[2].replace(/\?.*$/,""),r=n[3],i=n[4];if(t.length>0&&!t.includes("[native")){let s=t.split("/"),o=s[s.length-1];return{fullFilePath:n[2],fileName:o,fileNameWithLine:o?`${o}:${r}`:void 0,fileColumn:i,fileLine:r,filePath:t,filePathWithLine:`${t}:${r}`,method:e}}}return e6(e)}(t,a):s?e6(t):e8(t,a,e.resolveSourceMap)}function f(t,r){try{return e.getFormatWithOptions()(t,...r)}catch{return r.map(te).join(" ")}}function c(e,t,r){let n=e0(e,u);if(0===n.length)return{};let i=function(e,t=eX){for(let r=0;r<e.length;r+=1){let n=e[r],i=n.filePath??"",s=n.fullFilePath??"";if(!t.some(e=>e.test(i)||e.test(s)))return r}return 0}(n,null!=r&&r.length>0?[...l,...r]:l),s=Number.isFinite(t)&&t>=0?e1(t,n.length):e1(i,n.length);return n[s]??{}}let h={getCallerStackFrame:(e,t=Error(),r)=>c(t,e,r),getErrorTrace:e=>e0(e,u),isError:e=>(function(e){if(e instanceof Error)return!0;if(null!=e&&"object"==typeof e){let t=Object.prototype.toString.call(e);if(/\[object .*Error\]/.test(t))return!0;let r=e.name;if("string"==typeof r&&r.endsWith("Error"))return!0}return!1})(e),isBuffer:e=>void 0!==ts&&"function"==typeof ts.isBuffer&&ts.isBuffer(e),prettyFormatLogObj:(e,t)=>e.reduce((e,r)=>(h.isError(r)?e.errors.push(h.prettyFormatErrorObj(r,t)):e.args.push(r),e),{args:[],errors:[]}),prettyFormatErrorObj(e,t){let r=e9(h.getErrorTrace(e),t),n=(function(e,t={}){let r=t.maxDepth??5,n=[],i=new Set,s=e,o=0;for(;null!=s&&o<r;){let e=p(s);if(null==e||i.has(e))break;i.add(e),n.push(m(e)),s=e,o+=1}return n})(e).map((e,r)=>{let n=y(e,"message","");return[`Caused by (${r+1}): ${y(e,"name","Error")}${n?`: ${n}`:""}`,...e9(e0(e,u),t)].join("\n")}),i={errorName:` ${y(e,"name","Error")} `,errorMessage:Object.getOwnPropertyNames(e).filter(e=>"stack"!==e&&"cause"!==e&&"name"!==e&&!e7.has(e)).reduce((t,r)=>{try{let n=e[r];if("function"==typeof n)return t;
2t.push(te(n))}catch{}return t},[]).join(", "),errorStack:[...r,...n].join("\n")};return eE(t,t.pretty.errorTemplate,i)},prettyFormatLine(e,t,r){let n=!1!==r.pretty.style,{args:i,errors:s}=h.prettyFormatLogObj(e,r),o=eN(r,t).text,l=(s.length>0&&i.length>0?"\n":"")+s.join("\n"),a=n?o:tr(o);return r.pretty.inspectOptions.colors=n,a+f(r.pretty.inspectOptions,i)+l},transportFormatted(e,t,r,n,i){var o,l;let a=!1!==i.pretty.style,u=i.pretty.passObjectsNatively,c=(r.length>0&&t.length>0?"\n":"")+r.join("\n"),h=(o=n?.logLevelName,l=i.pretty.levelMethod,o&&l?.[o]?l[o]:l?.["*"]?l["*"]:N("log"));if(a&&s&&function(){if(!k()&&!O())return!1;let e=globalThis?.navigator,t=e?.userAgent??"";if(/firefox/i.test(t))return!0;let r=globalThis;return!!r?.CSS?.supports?.("color","#000")||/safari/i.test(t)&&!/chrome/i.test(t)}()){let r=tr(e);i.pretty.inspectOptions.colors=!1;let s=u?"":f(i.pretty.inspectOptions,t),o=null!=n?function(e,t){let r;if(null==t)return{text:"",styles:[]};let{template:n,placeholders:i}=eN(e,t),s=[],o=[],l=0,a=/{{(.+?)}}/g;for(;null!=(r=a.exec(n));){r.index>l&&s.push(n.slice(l,r.index));let t=r[1],u=null!=i[t]?String(i[t]):"",f=function(e){let t=new Set,r=[];for(let n of e){let e=ek[n]?.css;null!=e&&e.length>0&&!t.has(e)&&(t.add(e),r.push(e))}return r.join("; ")}(function e(t,r){if(null==t)return[];if("string"==typeof t)return[t];if(Array.isArray(t))return t.flatMap(t=>e(t,r));if("object"==typeof t){let n=t[r.trim()]??t["*"];return null==n?[]:e(n,r)}return[]}(e.pretty.styles?.[t],u));f.length>0?(s.push(`%c${u}%c`),o.push(f,"")):s.push(u),l=a.lastIndex}return l<n.length&&s.push(n.slice(l)),{text:s.join(""),styles:o}}(i,n):{text:r,styles:[]},l=o.text.length>0&&o.styles.length>0,a=l?o.text:r,g=!u||0===t.length,p=g&&c.length>0?function(e){let t,r=[],n=[],i=new Map,s="",o="",l=()=>{if(0===o.length)return;let e=o.replace(/%/g,"%%");s.length>0?(r.push(`%c${e}%c`),n.push(s,"")):r.push(e),o=""},a=/\u001b\[(\d+)m/g,u=0;for(;null!=(t=a.exec(e));){o+=e.slice(u,t.index),u=a.lastIndex;let r=Number(t[1]),n=eL.get(r);if(null!=n)i.set(r,n);else if(0===r)i.clear();else for(let[e,t]of i)t.close===r&&i.delete(e);let f=[...new Set([...i.values()].map(e=>e.css))].join("; ");f!==s&&(l(),s=f)}return o+=e.slice(u),l(),{text:r.join(""),styles:n}}(c):{text:"",styles:[]},y=a+s+p.text,m=[...l?o.styles:[],...p.styles],d=u?[...t,...!g&&c.length>0?[tr(c)]:[]]:[];m.length>0?h(y,...m,...d):h(y,...d);return}i.pretty.inspectOptions.colors=a;let g=a?e:tr(e);u?h(g,...t,...c?[c]:[]):h(g+f(i.pretty.inspectOptions,t)+c)},transportJSON(e){N("log")(ex(e))}};return{methods:h,staticMeta:n,resolveCallerStackFrame:c,buildEagerMeta:function(e,t,r,i,s,o,l){let a=Object.assign({},n,{date:new Date,logLevelId:e,logLevelName:t});return null!=i&&(a.path=h.getCallerStackFrame(r,i,l)),void 0!==s&&(a.name=s),void 0!==o&&(a.parentNames=o),a}}}({runtimeInfo:function(){if("u">typeof window&&"u">typeof document){let e=globalThis.navigator;return{name:"browser",userAgent:e?.userAgent}}let e=globalThis;if(e.navigator?.product==="ReactNative")return{name:"react-native",version:function(){try{let e=globalThis.HermesInternal,t=e?.getRuntimeProperties?.()?.["OSS Release Version"];return"string"==typeof t&&t.length>0?`hermes/${t}`:void 0}catch{return}}()};if("function"==typeof e.importScripts)return{name:"worker",userAgent:e.navigator?.userAgent};let t=globalThis;if(null!=t.Bun){let e=t.Bun.version;return{name:"bun",version:null!=e?`bun/${e}`:void 0,hostname:e2(t.process,t.Deno,t.Bun,t.location)}}if(null!=t.Deno){let e=t.Deno?.version?.deno;return{name:"deno",version:null!=e?`deno/${e}`:void 0,hostname:e2(t.process,t.Deno,t.Bun,t.location)}}return t.process?.versions?.node!=null||t.process?.version!=null?{name:"node",version:t.process?.versions?.node??t.process?.version,hostname:e2(t.process,t.Deno,t.Bun,t.location)}:null!=t.process?{name:"node",version:"unknown",hostname:e2(t.process,t.Deno,t.Bun,t.location)}:{name:"unknown"}}(),flavor:"adaptive",getFormatWithOptions:()=>(null==e&&(e=(null!==eH?eH:eH=function(){if("u">typeof window||"function"==typeof globalThis.importScripts)return;try{let e=globalThis.process?.getBuiltinModule;if("function"==typeof e){let t=e("node:util");if(null!=t&&"function"==typeof t.formatWithOptions)return t.formatWithOptions}}catch{}let e=globalThis.require;if("function"==typeof e)try{let t=e("node:util");if(null!=t&&"function"==typeof t.formatWithOptions)return t.formatWithOptions}catch{}}())??eY),e)})).methods,getMeta:(e,r,n,i,s,o,l)=>t.buildEagerMeta(e,r,n,i?void 0:Error(),s,o,l)}),n}(),NaN,ej)}log(e,t,...r){return super.log(e,t,...r)}silly(...e){return super.log(ti.SILLY,"SILLY",...e)}trace(...e){return super.log(ti.TRACE,"TRACE",...e)}debug(...e){return super.log(ti.DEBUG,"DEBUG",...e)}info(...e){return super.log(ti.INFO,"INFO",...e)}warn(...e){return super.log(ti.WARN,"WARN",...e)}error(...e){return super.log(ti.ERROR,"ERROR",...e)}fatal(...e){return super.log(ti.FATAL,"FATAL",...e)}getSubLogger(e,t){return super.getSubLogger(e,t)}
2child(e,t){return super.getSubLogger(e,t)}static fromEnv(e){return new to(function(e){let t={},r=L("TSLOG_LEVEL");if(null!=r&&""!==r){let e=Number(r);t.minLevel=Number.isNaN(e)?r:e}let n=L("TSLOG_TYPE");("json"===n||"pretty"===n||"hidden"===n)&&(t.type=n);let i=L("TSLOG_NAME");return null!=i&&""!==i&&(t.name=i),{...t,...e}}(e))}}},81370:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=a(e),o=s[0],l=s[1],u=new i((o+l)*3/4-l),f=0,c=l>0?o-4:o;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[f++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,l=n-i;o<l;o+=16383)s.push(function(e,t,n){for(var i,s=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(e,o,o+16383>l?l:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o<l;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},82909:(e,t,r)=>{"use strict";var n=r(81370),i=r(87247),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!l.isEncoding(i))throw TypeError("Unknown encoding: "+i);var s=0|p(n,i),a=o(s),u=a.write(n,i);return u!==s&&(a=a.slice(0,u)),a}if(ArrayBuffer.isView(e)){var f=e;if(j(f,Uint8Array)){var y=new Uint8Array(f);return h(y.buffer,y.byteOffset,y.byteLength)}return c(f)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var m=e.valueOf&&e.valueOf();if(null!=m&&m!==e)return l.from(m,t,r);var d=function(e){if(l.isBuffer(e)){var t=0|g(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),o(e<0?0:0|g(e))}function c(e){for(var t=e.length<0?0:0|g(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),l.prototype),n}function g(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(i)return n?-1:N(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){var i,s,o,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=t;s<r;++s)i+=x[e[s]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,s=t,o=r,0===s&&o===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}(this,t,r);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function d(e,t,r,n,i){var s;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return b(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var s,o=1,l=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,l/=2,a/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var f=-1;for(s=r;s<l;s++)if(u(e,s)===u(t,-1===f?0:s-f)){if(-1===f&&(f=s),s-f+1===a)return f*o}else -1!==f&&(s-=s-f),f=-1}else for(r+a>l&&(r=l-a),s=r;s>=0;s--){for(var c=!0,h=0;h<a;h++)if(u(e,s+h)!==u(t,h)){c=!1;break}if(c)return s}return -1}function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var s,o,l,a,u=e[i],f=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(f=u);break;case 2:(192&(s=e[i+1]))==128&&(a=(31&u)<<6|63&s)>127&&(f=a);break;case 3:s=e[i+1],o=e[i+2],(192&s)==128&&(192&o)==128&&(a=(15&u)<<12|(63&s)<<6|63&o)>2047&&(a<55296||a>57343)&&(f=a);break;case 4:s=e[i+1],o=e[i+2],l=e[i+3],(192&s)==128&&(192&o)==128&&(192&l)==128&&(a=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&l)>65535&&a<1114112&&(f=a)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}var h=n,g=h.length;if(g<=4096)return String.fromCharCode.apply(String,h);for(var p="",y=0;y<g;)p+=String.fromCharCode.apply(String,h.slice(y,y+=4096));return p}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,i,s){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function k(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function O(e,t,r,n,s){return t*=1,r>>>=0,s||k(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,s){return t*=1,r>>>=0,s||k(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return a(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},l.allocUnsafe=function(e){return f(e)},l.allocUnsafeSlow=function(e){return f(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(j(s,Uint8Array))i+s.length>n.length?l.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else if(l.isBuffer(s))s.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):y.apply(this,arguments)}
vendor: 9,192 bytes, line 2
2,l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,i){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var s=i-n,o=r-t,a=Math.min(s,o),u=this.slice(n,i),f=e.slice(t,r),c=0;c<a;++c)if(u[c]!==f[c]){s=u[c],o=f[c];break}return s<o?-1:+(o<s)},l.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return d(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return d(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,s,o,l,a,u,f,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var g=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=t.length;n>s/2&&(n=s/2);for(var o=0;o<n;++o){var l,a=parseInt(t.substr(2*o,2),16);if((l=a)!=l)break;e[r+o]=a}return o}(this,e,t,r);case"utf8":case"utf-8":return i=t,s=r,A(N(e,this.length-i),this,i,s);case"ascii":case"latin1":case"binary":return o=t,l=r,A(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,l);case"base64":return a=t,u=r,A($(e),this,a,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,c=r,A(function(e,t){for(var r,n,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,c);default:if(g)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),g=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;S(this,e,t,r,i,0)}var s=1,o=0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=e/s&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;S(this,e,t,r,i,0)}var s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,e,t,r,i-1,-i)}var s=0,o=1,l=0;for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===l&&0!==this[t+s-1]&&(l=1),this[t+s]=(e/o|0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,e,t,r,i-1,-i)}var s=r-1,o=1,l=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===l&&0!==this[t+s+1]&&(l=1),this[t+s]=(e/o|0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,s=e.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=l.isBuffer(e)?e:l.from(e,n),a=o.length;
2if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};var E=/[^+/0-9A-Za-z-_]/g;function N(e,t){t=t||1/0;for(var r,n=e.length,i=null,s=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function $(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var x=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},87247:(e,t)=>{t.read=function(e,t,r,n,i){var s,o,l=8*i-n-1,a=(1<<l)-1,u=a>>1,f=-7,c=r?i-1:0,h=r?-1:1,g=e[t+c];for(c+=h,s=g&(1<<-f)-1,g>>=-f,f+=l;f>0;s=256*s+e[t+c],c+=h,f-=8);for(o=s&(1<<-f)-1,s>>=-f,f+=n;f>0;o=256*o+e[t+c],c+=h,f-=8);if(0===s)s=1-u;else{if(s===a)return o?NaN:1/0*(g?-1:1);o+=Math.pow(2,n),s-=u}return(g?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,l,a,u=8*s-i-1,f=(1<<u)-1,c=f>>1,h=5960464477539062e-23*(23===i),g=n?0:s-1,p=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-o))<1&&(o--,a*=2),o+c>=1?t+=h/a:t+=h*Math.pow(2,1-c),t*a>=2&&(o++,a/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(t*a-1)*Math.pow(2,i),o+=c):(l=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+g]=255&l,g+=p,l/=256,i-=8);for(o=o<<i|l,u+=i;u>0;e[r+g]=255&o,g+=p,o/=256,u-=8);e[r+g-p]|=128*y}}}]); 3//# sourceMappingURL=870-5e1107a7562b7db9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.