/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/loglevel@1.9.2/lib/loglevel.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(e,o){"use strict";"function"==typeof define&&define.amd?define(o):"object"==typeof module&&module.exports?module.exports=o():e.log=o()}(this,(function(){"use strict";var e=function(){},o="undefined",n=typeof window!==o&&typeof window.navigator!==o&&/Trident\/|MSIE /.test(window.navigator.userAgent),t=["trace","debug","info","warn","error"],l={},i=null;function r(e,o){var n=e[o];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(o){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var n=this.getLevel(),l=0;l<t.length;l++){var i=t[l];this[i]=l<n?e:this.methodFactory(i,n,this.name)}if(this.log=this.debug,typeof console===o&&n<this.levels.SILENT)return"No console available for logging"}function a(e){return function(){typeof console!==o&&(u.call(this),this[e].apply(this,arguments))}}function f(t,l,i){return function(t){return"debug"===t&&(t="log"),typeof console!==o&&("trace"===t&&n?c:void 0!==console[t]?r(console,t):void 0!==console.log?r(console,"log"):e)}(t)||a.apply(this,arguments)}function s(e,n){var r,c,a,s=this,p="loglevel";function d(){var e;if(typeof window!==o&&p){try{e=window.localStorage[p]}catch(e){}if(typeof e===o)try{var n=window.document.cookie,t=encodeURIComponent(p),l=n.indexOf(t+"=");-1!==l&&(e=/^([^;]+)/.exec(n.slice(l+t.length+1))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}function v(e){var o=e;if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),"number"==typeof o&&o>=0&&o<=s.levels.SILENT)return o;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=n||f,s.getLevel=function(){return null!=a?a:null!=c?c:r},s.setLevel=function(e,n){return a=v(e),!1!==n&&function(e){var n=(t[e]||"silent").toUpperCase();if(typeof window!==o&&p){try{return void(window.localStorage[p]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+n+";"}catch(e){}}}(a),u.call(s)},s.setDefaultLevel=function(e){c=v(e),d()||s.setLevel(e,!1)},s.resetLevel=function(){a=null,function(){if(typeof window!==o&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(s)},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)},s.rebuild=function(){if(i!==s&&(r=v(i.getLevel())),u.call(s),i===s)for(var e in l)l[e].rebuild()},r=v(i?i.getLevel():"WARN");var y=d();null!=y&&(a=v(y)),u.call(s)}(i=new s).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var o=l[e];return o||(o=l[e]=new s(e,i.methodFactory)),o};var p=typeof window!==o?window.log:void 0;return i.noConflict=function(){return typeof window!==o&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return l},i.default=i,i}));
//# sourceMappingURL=/sm/f1661e632c2ee23d08be9580ae18ae3f77d0d2e6362873494e046c4d46fe109e.map