import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./dayjs.min-yZk4pRyU.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var r=e(t(),1),i={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},a={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},o=n(function(e=`fatal`){let t=i.fatal;typeof e==`string`?e.toLowerCase()in i&&(t=i[e]):typeof e==`number`&&(t=e),a.trace=()=>{},a.debug=()=>{},a.info=()=>{},a.warn=()=>{},a.error=()=>{},a.fatal=()=>{},t<=i.fatal&&(a.fatal=console.error?console.error.bind(console,s(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,s(`FATAL`))),t<=i.error&&(a.error=console.error?console.error.bind(console,s(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,s(`ERROR`))),t<=i.warn&&(a.warn=console.warn?console.warn.bind(console,s(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,s(`WARN`))),t<=i.info&&(a.info=console.info?console.info.bind(console,s(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,s(`INFO`))),t<=i.debug&&(a.debug=console.debug?console.debug.bind(console,s(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,s(`DEBUG`))),t<=i.trace&&(a.trace=console.debug?console.debug.bind(console,s(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,s(`TRACE`)))},`setLogLevel`),s=n(e=>`%c${(0,r.default)().format(`ss.SSS`)} : ${e} : `,`format`);export{o as n,a as t};