var l=globalThis&&globalThis.__assign||function(){return l=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},l.apply(this,arguments)},f={debug:-1,log:0,info:0,warn:1,error:2},u=function(r,t,n,a){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t&&f[t]<=f[r]&&console[r].apply&&(a==="*"||n.startsWith(a)))return console[r].apply(console,c(i,n))}};function c(e,r){return r!=="*"&&(typeof e[0]=="string"?e[0]="["+r+"] "+e[0]:e=["["+r+"]"].concat(e)),e}function v(e,r){if(!e)return{targetLevel:r.level,targetBizName:r.bizName};if(~e.indexOf(":")){var t=e.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:e,targetBizName:"*"}}var s={level:"warn",bizName:"*"},h=function(){function e(r){r=l(l({},s),r);var t=location||{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1],a=v(n,r),i=a.targetLevel,o=a.targetBizName;for(var g in f)this[g]=u(g,i,r.bizName,o)}return e}();export{h as L};
