-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es5.730a8e1f84a2c9b0a19a.js
1 lines (1 loc) · 29 KB
/
main-es5.730a8e1f84a2c9b0a19a.js
1
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("2v48")},"2v48":function(t,r,s){"use strict";var c;s.r(r);var u=s("ENSU"),l=s("kZht");function a(e){return!0===e}function b(e){return null==e}function f(e){return!b(e)}var g,p=s("6uGs"),h=((g=function(){function e(t){o(this,e),e.injector=t}return i(e,null,[{key:"getInjector",value:function(){if(b(e.injector))throw new Error("You've forgotten to import `LoggerModule`");return e.injector}}]),e}()).injector=null,g.\u0275fac=function(e){return new(e||g)(l.vb(l.m))},g.\u0275prov=l.nb({token:g,factory:g.\u0275fac}),g),d=s("D57K");function y(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach(function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof(null==n?void 0:n.value)&&Object.defineProperty(e.prototype,t,function(e,t,n){var o=n.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: "+typeof o);var r=!1;return{configurable:!0,get:function(){if(r||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var n=o.bind(this);return r=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return n},set:function(e){o=e,delete this[t]}}),r=!1,n},set:function(e){o=e}}}(e,t,n))}}),e}var v,k,m,A,O,w,I,j,S=new l.l("LOGGER_OPTIONS"),L=function(e){return e[e.ALL=1]="ALL",e[e.TRACE=2]="TRACE",e[e.DEBUG=3]="DEBUG",e[e.INFO=4]="INFO",e[e.LOG=5]="LOG",e[e.WARN=6]="WARN",e[e.ERROR=7]="ERROR",e[e.OFF=8]="OFF",e}({}),W=((m=function(){function e(){var t,r;o(this,e),this.instance=console,this.minLevel=L.ALL,this.globalLineStyle="",this.cssClassMap={},this.useLevelGroup=!0,this.labelColors=(n(t={},L.TRACE,"#000080"),n(t,L.DEBUG,"#00BFFE"),n(t,L.INFO,"#000000"),n(t,L.WARN,"#FF6419"),n(t,L.ERROR,"#F1062D"),t),this.labelNames=(n(r={},L.TRACE,"TRACE"),n(r,L.DEBUG,"DEBUG"),n(r,L.INFO,"INFO"),n(r,L.WARN,"WARN"),n(r,L.ERROR,"ERROR"),r)}return i(e,[{key:"format",value:function(e,t){return{label:"[".concat(e,"]:"),style:t}}}]),e}()).\u0275fac=function(e){return new(e||m)},m.\u0275prov=l.nb({token:m,factory:m.\u0275fac}),m),x=((k=function(){function e(t){o(this,e),this.options=t,this.minLevel=t.minLevel,this.instance=t.instance}return i(e,[{key:"console",get:function(){return this.instance},set:function(e){this.instance=e}},{key:"noop",get:function(){return function(){}}},{key:"getTemplateLabel",value:function(e){return"%c".concat(e)}},{key:"getFormatTemplateLabel",value:function(e){return"%c".concat(e," %c%s")}},{key:"getTemplateWithoutLabel",value:function(){return"%c%s"}}]),e}()).\u0275fac=function(e){return new(e||k)(l.vb(S))},k.\u0275prov=l.nb({token:k,factory:k.\u0275fac}),k),F=((v=function(){function e(t){o(this,e),this.options=t,this.lineStyle=null}return i(e,[{key:"style",get:function(){var e=this.localStyle;return this.clearLocalStyle(),"".concat(this.globalStyles).concat(e)},set:function(e){this.lineStyle=e}},{key:"globalStyles",get:function(){return this.options.globalLineStyle?"".concat(this.options.globalLineStyle,";"):""}},{key:"localStyle",get:function(){var e,t;return(null!==(t=null===(e=this.lineStyle)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0?"".concat(this.lineStyle,";"):""}},{key:"getStyleLabel",value:function(e){return"color: ".concat(this.options.labelColors[e],"; font-weight: bold")}},{key:"setClass",value:function(e){var t=this,n=e.split(/\s+/g),o=[];n.forEach(function(e){var n=t.options.cssClassMap[e];f(n)&&o.push(n)});var r=o.length?o.join("; "):"";this.lineStyle="".concat(this.globalStyles).concat(r)}},{key:"clearLocalStyle",value:function(){this.lineStyle=""}}]),e}()).\u0275fac=function(e){return new(e||v)(l.vb(S))},v.\u0275prov=l.nb({token:v,factory:v.\u0275fac}),v),T=(n(c={},L.TRACE,"debug"),n(c,L.LOG,"log"),n(c,L.DEBUG,"info"),n(c,L.INFO,"info"),n(c,L.WARN,"warn"),n(c,L.ERROR,"error"),c),C=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,G=((j=function(){function e(t,n,r){o(this,e),this.console=t,this.cssFactory=n,this.options=r,this.executePipesGroup=!1,this.counterOpenedGroup=0}return i(e,[{key:"close",value:function(){this.executePipesGroup&&(this.counterOpenedGroup--,this.console.instance.groupEnd())}},{key:"closeAll",value:function(){for(;this.counterOpenedGroup>0;)this.close()}},{key:"group",value:function(e,t,n,o){var r=this.console.instance.group.bind(this.console.instance);return this.createGroupLogger(r,e,t,n,o)}},{key:"groupCollapsed",value:function(e,t,n,o){var r=this.console.instance.groupCollapsed.bind(this.console.instance);return this.createGroupLogger(r,e,t,n,o)}},{key:"createGroupLogger",value:function(e,t,n,o,r){var i;if(this.console.minLevel<=r){this.executePipesGroup=!0,this.counterOpenedGroup++;var s=this.cssFactory.getStyleLabel(r),c=this.getLabel(L[r],s),u=c.label,l=c.style;if(e("%c".concat(u),l,t),f(n)){var a=n(o);this.close(),i=a}}else this.executePipesGroup=!1;return i}},{key:"getLabel",value:function(e,t){return this.options.format(e,t)}}]),e}()).\u0275fac=function(e){return new(e||j)(l.vb(x),l.vb(F),l.vb(S))},j.\u0275prov=l.nb({token:j,factory:j.\u0275fac}),j),E=((I=function(){function t(e,n,r,i){o(this,t),this.options=e,this.console=n,this.cssFactory=r,this.groupFactory=i}return i(t,[{key:"createLogger",value:function(t,n){var o,r=this.getArgumentsByType(t),i=this.console.minLevel<=t?(o=this.console.instance[T[t]]).bind.apply(o,e(r)):this.console.noop;return this.options.useLevelGroup?this.defineLevelGroups(t,i,n):i}},{key:"defineLevelGroups",value:function(e,t,n){return Object.defineProperties(t,{group:this.setGroupMethod("group",e,n),groupCollapsed:this.setGroupMethod("groupCollapsed",e,n)}),t}},{key:"setGroupMethod",value:function(e,t,n){var o=this;return{enumerable:!0,configurable:!0,value:function(r,i){return o.groupFactory[e].bind(o.groupFactory)(r,i,n,t),n}}}},{key:"getArgumentsByType",value:function(e){var t=this.cssFactory.getStyleLabel(e),n=this.cssFactory.style,o=[this.console.instance];if(e!==L.LOG){var r=this.options.format(this.options.labelNames[e],t),i=r.label,s=r.style;if(n){var c=this.console.getFormatTemplateLabel(i);o.push(c,s,n)}else{var u=this.console.getTemplateLabel(i);o.push(u,s)}}else n&&o.push(this.console.getTemplateWithoutLabel(),n);return o}}]),t}()).\u0275fac=function(e){return new(e||I)(l.vb(S),l.vb(x),l.vb(F),l.vb(G))},I.\u0275prov=l.nb({token:I,factory:I.\u0275fac}),I),R=((w=function(){function e(){o(this,e),this._string="color:green",this._number="color:darkorange",this._boolean="color:blue",this._null="color:magenta",this._key="color:red",this.lexerTypeFinder=C}return i(e,[{key:"colorsJSON",value:function(e){var t=this,n=e,o=[];return n=n.replace(this.lexerTypeFinder,function(e){var n=t._number;return/^"/.test(e)?n=/:$/.test(e)?t._key:t._string:/true|false/.test(e)?n=t._boolean:/null/.test(e)&&(n=t._null),o.push(n),o.push(""),"%c".concat(e,"%c")}),o.unshift(n),o}}]),e}()).\u0275fac=function(e){return new(e||w)},w.\u0275prov=l.nb({token:w,factory:w.\u0275fac}),w),N=((O=function(){function e(t){o(this,e),this.console=t,this.DIGITS_TO_FIX=4,this.SECONDS=1e3}return i(e,[{key:"startTime",value:function(e,t){var n=null;return!(this.console.minLevel>t)&&(n={startTime:performance.now(),title:e}),n}},{key:"endTime",value:function(e,t,n,o){if(!(this.console.minLevel>t)){var r=T[t],i=this.ensureTime(e,n);(0,o[r])("TimerLog: ".concat(e.title),"took ".concat(i," to execute"))}}},{key:"ensureTime",value:function(e,t){var n=parseFloat((performance.now()-e.startTime).toFixed(this.DIGITS_TO_FIX));return t?"".concat(n,"ms"):"".concat(Math.floor(n/this.SECONDS),"s")}}]),e}()).\u0275fac=function(e){return new(e||O)(l.vb(x))},O.\u0275prov=l.nb({token:O,factory:O.\u0275fac}),O),D=((A=function(){function e(t,n,r,i,s,c,u){o(this,e),this.cssFactory=t,this.console=n,this.factory=r,this.groupFactory=i,this.jsonFactory=s,this.timerFactory=c,this.options=u,this.DEFAULT_DEPTH=2}return i(e,[{key:"clear",get:function(){return this.console.instance.clear.bind(this.console.instance)}},{key:"table",get:function(){return this.console.instance.table.bind(this.console.instance)}},{key:"log",get:function(){return this.factory.createLogger(L.LOG,this)}},{key:"trace",get:function(){return this.factory.createLogger(L.TRACE,this)}},{key:"assert",get:function(){return this.console.instance.assert.bind(this.console.instance)}},{key:"debug",get:function(){return this.factory.createLogger(L.DEBUG,this)}},{key:"info",get:function(){return this.factory.createLogger(L.INFO,this)}},{key:"warn",get:function(){return this.factory.createLogger(L.WARN,this)}},{key:"error",get:function(){return this.factory.createLogger(L.ERROR,this)}},{key:"level",get:function(){return this.console.minLevel},set:function(e){this.console.minLevel=e}},{key:"getCurrentLineStyle",value:function(){return this.cssFactory.style}},{key:"clearCssCurrentLine",value:function(){this.cssFactory.style=""}},{key:"setLabels",value:function(e){this.options.labelNames=Object.assign(Object.assign({},this.options.labelNames),e)}},{key:"setColors",value:function(e){this.options.labelColors=Object.assign(Object.assign({},this.options.labelColors),e)}},{key:"pipe",value:function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.groupFactory.executePipesGroup&&n.forEach(function(t){return t(e)}),this}},{key:"groupCollapsed",value:function(e,t){return this.groupFactory.groupCollapsed(e,t,this,L.INFO),this}},{key:"close",value:function(){return this.groupFactory.close(),this}},{key:"closeAll",value:function(){return this.groupFactory.closeAll(),this}},{key:"group",value:function(e,t){return this.groupFactory.group(e,t,this,L.INFO),this}},{key:"css",value:function(e){return this.cssFactory.style=e,this}},{key:"prettyJSON",value:function(e){return this.jsonFactory.colorsJSON(JSON.stringify(e,null,this.DEFAULT_DEPTH))}},{key:"cssClass",value:function(e){return this.cssFactory.setClass(e),this}},{key:"startTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.DEBUG;return this.timerFactory.startTime(e,t)}},{key:"endTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.DEBUG,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];f(e)&&this.timerFactory.endTime(e,t,n,this)}}]),e}()).\u0275fac=function(e){return new(e||A)(l.vb(F),l.vb(x),l.vb(E),l.vb(G),l.vb(R),l.vb(N),l.vb(S))},A.\u0275prov=l.nb({token:A,factory:A.\u0275fac}),A=Object(d.a)([y,Object(d.b)("design:paramtypes",[F,x,E,G,R,N,W])],A));function P(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.INFO;return function(o,r,i){var s=i.value;return i.value=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return function(t,n,o,r,i,s){var c=h.getInjector().get(D),u=h.getInjector().get(G);u.group.bind(u)("string"==typeof r?r:r.apply(void 0,e(i)),null,c,t);var l=o.apply(s,i);return c.level<=t&&c.close(),l}(n,0,s,t,r,this)},i}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.DEBUG,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(o,r,i){var s,c=i.value;return i.value=function(){for(var o=h.getInjector().get(D).startTime(e,t),r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return s=c.apply(this,i),h.getInjector().get(D).endTime(o,t,n),s},i}}var M,B,U,J=((M=function(){function e(t){o(this,e),this.loggerInjector=t}return i(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:e.ROOT_OPTIONS,useValue:t},{provide:S,useFactory:e.loggerConfigFactory,deps:[e.ROOT_OPTIONS]}]}}},{key:"loggerConfigFactory",value:function(e){return Object.assign(new W,e)}}]),e}()).ROOT_OPTIONS=new l.l("ROOT_OPTIONS"),M.\u0275fac=function(e){return new(e||M)(l.vb(h,2))},M.\u0275mod=l.pb({type:M}),M.\u0275inj=l.ob({providers:[D,E,x,G,F,R,N,h]}),M),z=s("pMED"),H=((U=function(){function t(e){o(this,t),this.logger=e,this.isLoaded=!1,this.devToolsIsOpen=z.isOpen,this.traceIsWork="trace is worked",this.debugIsWork="debug is worked",this.infoIsWork="info is worked",this.warnIsWork="warn is worked",this.errorIsWork="error is worked"}return i(t,[{key:"ngOnInit",value:function(){var e=this;this.isLoaded=!0,window.addEventListener("devtoolschange",function(t){e.devToolsIsOpen=t.detail.isOpen})}},{key:"exampleBasicMethods",value:function(){this.logger.clear(),this.log("log is worked"),this.trace(this.traceIsWork,1,{a:1}),this.debug(this.debugIsWork,2,console),this.info(this.infoIsWork,3,Object),this.warn(this.warnIsWork,4,String),this.error(this.errorIsWork,5,2.55.toFixed())}},{key:"exampleGroups",value:function(){var e=this;this.logger.clear(),this.logger.groupCollapsed("EXAMPLE 2: show stack",function(){e.trace(e.traceIsWork,1,{a:1}),e.debug(e.debugIsWork,2,console),e.info(e.infoIsWork,3,Object),e.warn(e.warnIsWork,4,String),e.error(e.errorIsWork,5,2.55.toFixed())}),this.logger.group("Show trace in opened group",function(t){for(var n=t.trace,o=0;o<20;o++)n(e.traceIsWork,o)}),this.logger.groupCollapsed("Show trace in collapsed group",function(t){for(var n=t.debug,o=0;o<15;o++)n(e.traceIsWork,o)}).closeAll()}},{key:"exampleNestedGroups",value:function(){var e=this;this.logger.clear(),this.logger.groupCollapsed("GROUP TEST").pipe(function(t){var n=t.trace,o=t.debug,r=t.info,i=t.warn,s=t.error;n(e.traceIsWork),o(e.debugIsWork),r(e.infoIsWork),i(e.warnIsWork),s(e.errorIsWork)}).close(),this.logger.group("A").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).groupCollapsed("B").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).group("C").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).closeAll()}},{key:"exampleSetMinimalLoggingLevel",value:function(){this.logger.clear(),this.logger.level=L.INFO,this.logger.log("log is working",1,String),this.trace(this.traceIsWork,4,String),this.debug(this.debugIsWork,4,String),this.warn(this.warnIsWork,4,String),this.error(this.errorIsWork,5,2.55.toFixed()),this.logger.level=L.ALL}},{key:"exampleSetStyleLine",value:function(){this.logger.clear(),this.logger.css("text-transform: uppercase; font-weight: bold").debug("window current ",window),this.logger.css("color: red; text-decoration: underline; font-weight: bold").info("It is awesome logger"),this.debug({a:1}),this.warn("logger.css(...) does not define a global format!"),this.info("For global configuration, use the constructor parameters")}},{key:"examplePrettyJson",value:function(){var t;this.logger.clear();var n={id:1,hello:"world"};this.debug("Classic output json",n),(t=this.logger).log.apply(t,e(this.logger.prettyJSON(n)))}},{key:"exampleLevelGroups",value:function(){var e=this;this.logger.clear(),this.logger.level=L.INFO,this.trace.group("A").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).close().debug.group("B").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).close().info.group("C").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).close().warn.group("D").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).close().error.group("E").pipe(function(t){return(0,t.trace)(e.traceIsWork)},function(t){return(0,t.debug)(e.debugIsWork)},function(t){return(0,t.info)(e.infoIsWork)},function(t){return(0,t.warn)(e.warnIsWork)},function(t){return(0,t.error)(e.errorIsWork)}).close(),this.logger.level=L.ALL}},{key:"exampleSetGlobalStyleLine",value:function(){this.logger.clear(),this.logger.css("font-weight: normal; text-decoration: none; font-style: italic;").info(3.14),this.logger.css("font-weight: normal;").info(3.14),this.warn("global format with style!")}},{key:"exampleCssClasses",value:function(){this.logger.clear(),this.logger.cssClass("bold line-through").log("JavaScript sucks","JavaScript is the best"),this.logger.cssClass("code-sandbox").log("\n @Component({ .. })\n export class AppComponent { .. } \n\n"),this.logger.cssClass("bold line-through").debug("JavaScript sucks","JavaScript is the best"),this.logger.level=L.INFO}},{key:"exampleDecorators",value:function(){this.loggerInjection.clear(),this.logger.log(this.helloWorld("Max"))}},{key:"method",value:function(e){return this.loggerInjection.log("group is worked"),e}},{key:"exampleDecoratorGroups",value:function(){this.loggerInjection.clear(),this.method("hello world")}},{key:"exampleTimeDecorator",value:function(){this.logger.clear(),this.log("test log")}},{key:"exampleTimerDecorator",value:function(){this.logger.clear(),this.log("Advanced test log")}},{key:"helloWorld",value:function(e){return this.logger.log("log only in group",e),"hello world"}}]),t}()).\u0275fac=function(e){return new(e||U)(l.rb(D))},U.\u0275cmp=l.lb({type:U,selectors:[["app-root"]],decls:183,vars:6,consts:[["id","app",1,"ext-box"],[1,"int-box"],[1,"container"],[1,"row"],[1,"col-12"],[1,"center","m-bottom"],[1,"center"],["id","console-activate",1,"row","example"],[1,"col-3"],[1,"center-block",3,"click"],[1,"col-6"],["id","console-dis-activate",1,"row","example"]],template:function(e,t){1&e&&(l.ub(0,"div",0),l.Ab(1,"\n "),l.ub(2,"div",1),l.Ab(3,"\n "),l.ub(4,"div",2),l.Ab(5,"\n "),l.ub(6,"div",3),l.Ab(7,"\n "),l.ub(8,"div",4),l.Ab(9,"\n "),l.ub(10,"h3",5),l.Ab(11,"Simple logger for javascript"),l.tb(),l.Ab(12,"\n "),l.ub(13,"p",6),l.Ab(14,"\n In order to see examples, you need to open the browser console or press F12. "),l.sb(15,"br"),l.Ab(16,"\n "),l.tb(),l.Ab(17,"\n "),l.tb(),l.Ab(18,"\n "),l.tb(),l.Ab(19,"\n\n "),l.ub(20,"div",7),l.Ab(21,"\n "),l.ub(22,"div",8),l.Ab(23,"\n "),l.ub(24,"button",9),l.yb("click",function(){return t.exampleBasicMethods()}),l.Ab(25,"Show me"),l.tb(),l.Ab(26,"\n "),l.ub(27,"h5",5),l.Ab(28,"\n Basic method "),l.sb(29,"br"),l.Ab(30,"\n (trace, debug, info, ..)\n "),l.tb(),l.Ab(31,"\n "),l.tb(),l.Ab(32,"\n\n "),l.ub(33,"div",8),l.Ab(34,"\n "),l.ub(35,"button",9),l.yb("click",function(){return t.exampleGroups()}),l.Ab(36,"Show me"),l.tb(),l.Ab(37,"\n "),l.ub(38,"h5",5),l.Ab(39,"\n Example groups "),l.sb(40,"br"),l.Ab(41,"\n (closed, opened)\n "),l.tb(),l.Ab(42,"\n "),l.tb(),l.Ab(43,"\n\n "),l.ub(44,"div",8),l.Ab(45,"\n "),l.ub(46,"button",9),l.yb("click",function(){return t.exampleNestedGroups()}),l.Ab(47,"Show me"),l.tb(),l.Ab(48,"\n "),l.ub(49,"h5",5),l.Ab(50,"\n Nested groups "),l.sb(51,"br"),l.Ab(52,"\n (deep)\n "),l.tb(),l.Ab(53,"\n "),l.tb(),l.Ab(54,"\n\n "),l.ub(55,"div",8),l.Ab(56,"\n "),l.ub(57,"button",9),l.yb("click",function(){return t.exampleSetMinimalLoggingLevel()}),l.Ab(58,"Show me"),l.tb(),l.Ab(59,"\n "),l.ub(60,"h5",5),l.Ab(61,"Show only warnings and error "),l.sb(62,"br"),l.tb(),l.Ab(63,"\n "),l.tb(),l.Ab(64,"\n\n "),l.ub(65,"div",8),l.Ab(66,"\n "),l.ub(67,"button",9),l.yb("click",function(){return t.exampleSetStyleLine()}),l.Ab(68,"Show me"),l.tb(),l.Ab(69,"\n "),l.ub(70,"h5",5),l.Ab(71,"\n Custom CSS styles "),l.sb(72,"br"),l.Ab(73,"\n for line\n "),l.tb(),l.Ab(74,"\n "),l.tb(),l.Ab(75,"\n\n "),l.ub(76,"div",8),l.Ab(77,"\n "),l.ub(78,"button",9),l.yb("click",function(){return t.examplePrettyJson()}),l.Ab(79,"Show me"),l.tb(),l.Ab(80,"\n "),l.ub(81,"h5",5),l.Ab(82,"\n Pretty JSON "),l.sb(83,"br"),l.Ab(84,"\n (output)\n "),l.tb(),l.Ab(85,"\n "),l.tb(),l.Ab(86,"\n\n "),l.ub(87,"div",8),l.Ab(88,"\n "),l.ub(89,"button",9),l.yb("click",function(){return t.exampleLevelGroups()}),l.Ab(90,"Show me"),l.tb(),l.Ab(91,"\n "),l.ub(92,"h5",5),l.Ab(93,"\n Level groups "),l.sb(94,"br"),l.Ab(95,"\n (trace, debug, info, ..)\n "),l.tb(),l.Ab(96,"\n "),l.tb(),l.Ab(97,"\n\n "),l.ub(98,"div",8),l.Ab(99,"\n "),l.ub(100,"button",9),l.yb("click",function(){return t.exampleSetGlobalStyleLine()}),l.Ab(101,"Show me"),l.tb(),l.Ab(102,"\n "),l.ub(103,"h5",5),l.Ab(104,"\n Global style line"),l.sb(105,"br"),l.Ab(106,"\n (css global style)\n "),l.tb(),l.Ab(107,"\n "),l.tb(),l.Ab(108,"\n\n "),l.ub(109,"div",8),l.Ab(110,"\n "),l.ub(111,"button",9),l.yb("click",function(){return t.exampleCssClasses()}),l.Ab(112,"Show me"),l.tb(),l.Ab(113,"\n "),l.ub(114,"h5",5),l.Ab(115,"\n CSS classes"),l.sb(116,"br"),l.Ab(117,"\n (set in console)\n "),l.tb(),l.Ab(118,"\n "),l.tb(),l.Ab(119,"\n\n "),l.ub(120,"div",8),l.Ab(121,"\n "),l.ub(122,"button",9),l.yb("click",function(){return t.exampleDecorators()}),l.Ab(123,"Show me"),l.tb(),l.Ab(124,"\n "),l.ub(125,"h5",5),l.Ab(126,"Decorator"),l.sb(127,"br"),l.tb(),l.Ab(128,"\n "),l.tb(),l.Ab(129,"\n\n "),l.ub(130,"div",8),l.Ab(131,"\n "),l.ub(132,"button",9),l.yb("click",function(){return t.exampleDecoratorGroups()}),l.Ab(133,"Show me"),l.tb(),l.Ab(134,"\n "),l.ub(135,"h5",5),l.Ab(136,"\n Decorator group"),l.sb(137,"br"),l.Ab(138,"\n with function title\n "),l.tb(),l.Ab(139,"\n "),l.tb(),l.Ab(140,"\n\n "),l.ub(141,"div",8),l.Ab(142,"\n "),l.ub(143,"button",9),l.yb("click",function(){return t.exampleTimeDecorator()}),l.Ab(144,"Show me"),l.tb(),l.Ab(145,"\n "),l.ub(146,"h5",5),l.Ab(147,"Decorator timer"),l.sb(148,"br"),l.tb(),l.Ab(149,"\n "),l.tb(),l.Ab(150,"\n\n "),l.ub(151,"div",10),l.Ab(152,"\n "),l.ub(153,"button",9),l.yb("click",function(){return t.exampleTimerDecorator()}),l.Ab(154,"Show me"),l.tb(),l.Ab(155,"\n "),l.ub(156,"h5",5),l.Ab(157,"Advanced timer decorator"),l.sb(158,"br"),l.tb(),l.Ab(159,"\n "),l.tb(),l.Ab(160,"\n\n "),l.ub(161,"div",10),l.Ab(162,"\n "),l.ub(163,"button",9),l.yb("click",function(){return t.exampleBasicMethods()}),l.Ab(164,"Show me"),l.tb(),l.Ab(165,"\n "),l.ub(166,"h5",5),l.Ab(167,"Full configuration"),l.tb(),l.Ab(168,"\n "),l.tb(),l.Ab(169,"\n "),l.tb(),l.Ab(170,"\n "),l.tb(),l.Ab(171,"\n\n "),l.ub(172,"div",11),l.Ab(173,"\n "),l.ub(174,"div",4),l.Ab(175,"\n "),l.ub(176,"h4",5),l.Ab(177,"You need open console"),l.tb(),l.Ab(178,"\n "),l.tb(),l.Ab(179,"\n "),l.tb(),l.Ab(180,"\n "),l.tb(),l.Ab(181,"\n"),l.tb(),l.Ab(182,"\n")),2&e&&(l.kb("load",t.isLoaded),l.jb(20),l.kb("no-display",!t.devToolsIsOpen),l.jb(152),l.kb("no-display",t.devToolsIsOpen))},styles:[".ext-box{display:none}.ext-box.load{display:table;width:100%;height:100%}.int-box{display:table-cell;vertical-align:middle;opacity:0}.int-box,.load .int-box{transition:opacity .3s ease-out}.load .int-box{opacity:1}.center-block{margin:0 auto;display:block;padding:10px}.example.no-display{opacity:0;height:0;overflow:hidden}.example,.example.no-display{transition:opacity .3s ease-out}.example{opacity:1;height:auto}"],encapsulation:2,changeDetection:0}),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D)}})},Object(d.b)("design:type",D)],U.prototype,"loggerInjection",void 0),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D).trace}})},Object(d.b)("design:type",Object)],U.prototype,"trace",void 0),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D).debug}})},Object(d.b)("design:type",Object)],U.prototype,"debug",void 0),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D).info}})},Object(d.b)("design:type",Object)],U.prototype,"info",void 0),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D).error}})},Object(d.b)("design:type",Object)],U.prototype,"error",void 0),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D).warn}})},Object(d.b)("design:type",Object)],U.prototype,"warn",void 0),Object(d.a)([function(e,t){Object.defineProperty(e,t,{configurable:!1,get:function(){return h.getInjector().get(D).log}})},Object(d.b)("design:type",Object)],U.prototype,"log",void 0),Object(d.a)([P(function(e){return"Test group with ".concat(e)}),Object(d.b)("design:type",Function),Object(d.b)("design:paramtypes",[String]),Object(d.b)("design:returntype",String)],U.prototype,"method",null),Object(d.a)([_("Test timer"),Object(d.b)("design:type",Function),Object(d.b)("design:paramtypes",[]),Object(d.b)("design:returntype",void 0)],U.prototype,"exampleTimeDecorator",null),Object(d.a)([_("Advanced timer",L.WARN,!1),Object(d.b)("design:type",Function),Object(d.b)("design:paramtypes",[]),Object(d.b)("design:returntype",void 0)],U.prototype,"exampleTimerDecorator",null),Object(d.a)([P("test title",L.WARN),Object(d.b)("design:type",Function),Object(d.b)("design:paramtypes",[String]),Object(d.b)("design:returntype",String)],U.prototype,"helloWorld",null),U),K=((B=function e(){o(this,e)}).\u0275fac=function(e){return new(e||B)},B.\u0275mod=l.pb({type:B,bootstrap:[H]}),B.\u0275inj=l.ob({providers:[],imports:[[J.forRoot(a(!0)?{useLevelGroup:!0,cssClassMap:{bold:"font-weight: bold","line-through":"text-decoration: line-through","code-sandbox":"\n color: #666;\n background: #f4f4f4;\n border-left: 3px solid #f36d33;\n font-family: monospace;\n font-size: 15px;"}}:{}),u.a,p.a]]}),B);a(!0)&&Object(l.H)(),u.b().bootstrapModule(K).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0,5]]])}();