/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@onflow/util-logger@1.3.4/dist/util-logger.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";let config=null;const setConfig=e=>{config=e};let LEVELS=function(e){return e[e.debug=5]="debug",e[e.info=4]="info",e[e.log=3]="log",e[e.warn=2]="warn",e[e.error=1]="error",e}({});const buildLoggerMessageArgs=e=>{const{title:n,message:o}=e;return[`\n    %c${n}\n    ============================\n\n    ${o}\n\n    ============================\n    `.replace(/\n[^\S\r\n]+/g,"\n").trim(),"font-weight:bold;font-family:monospace;"]},log=async e=>{const{title:n,message:o,level:r,always:t}=e,s=await(config?.()?.get("logger.level"))??LEVELS.warn;if(!t&&s<r)return;const a=buildLoggerMessageArgs({title:n,message:o});switch(r){case LEVELS.debug:console.debug(...a);break;case LEVELS.info:console.info(...a);break;case LEVELS.warn:console.warn(...a);break;case LEVELS.error:console.error(...a);break;default:console.log(...a)}};log.deprecate=e=>{const{pkg:n,subject:o,transition:r,level:t=LEVELS.warn,message:s="",callback:a=null}=e,l=()=>{return log({title:(n?n+" ":"")+"Deprecation Notice",message:`\n      ${o?`${e=o,e.charAt(0).toUpperCase()+e.slice(1)} is deprecated and will cease to work in future releases${n?" of "+n:""}.`:""}${s?"\n"+s:""}${r?`\nYou can learn more (including a guide on common transition paths) here: ${r}`:""}\n    `.trim(),level:t});var e};return"function"==typeof a?async function(){return await l(),await a(...arguments)}:l()},exports.LEVELS=LEVELS,exports.log=log,exports.setConfig=setConfig;
//# sourceMappingURL=/sm/de25b0d3c0763a184e39318002e38345ece785fd42f8fd4677c51af556bddc91.map