text: var UduJS=function(e){function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}var t={};return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=1)}([function(e,t,r){function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&defineProperties(e.prototype,t),r&&defineProperties(e,r),e}}(),o=r(2),i=r(3),a=r(4),s=function(){function Common(){_classCallCheck(this,Common),this.config=o,this.errors=a,this.testLevelsPack=[],this.consoleEOL=this.config.serviceApp.consoleEOL,this.console=console}return n(Common,[{key:"getValueType",value:function(e){var t=Object.prototype.toString.call(e),r=t.substring(8,t.length-1),n=r;return"Number"===r&&(Number.isNaN(e)&&(n="NaN"),e!==1/0&&e!==1/0||(n="Infinity"),e===-1/0&&(n="-Infinity")),n}},{key:"setCustomSettings",value:function(e){var t=this;if("Object"===this.getValueType(e)){var r={fontSize:["popupMsg","String"],showClearTitle:["popupMsg","Boolean"],horizontalPosition:["popupMsg","String"],verticalPosition:["popupMsg","String"],maxWidth:["popupMsg","Number|String"],maxHeight:["popupMsg","Number"],showOutputDirection:["serviceApp","String"],consoleEOL:["serviceApp","String"],tabChar:["serviceApp","String"],consoleColorScheme:["serviceApp","String"],popupColorScheme:["serviceApp","String"],serverColorScheme:["serviceApp","String"],allowColorization:["serviceApp","Boolean"],decimalPlaces:["performance","Number"],run:["runtime","Boolean"]},n=[];Object.keys(e).forEach(function(o){if(Object.prototype.hasOwnProperty.call(r,o)){var i=r[o][0],a=r[o][1],s=t.config[i];if(s===Object(s)){var l=t.getValueType(e[o]);-1===a.indexOf(l)?n.push('Custom configuration: the value of the "'+o+'" property must be a '+a+". The custom value is ignored."):s[o]=e[o]}else n.push('Custom configuration: the "'+i+'" section does not exist.')}else n.push('Custom configuration: the "'+o+'" property is not allowed to modify, or it does not exist.')}),n.length&&this.console.warn(n.join(this.config.serviceApp.consoleEOL))}}},{key:"loadColorScheme",value:function(){var e=this,t=this.config.serviceApp,r=["console","popup","server"],n=!0;try{r.forEach(function(r){var n=t[r+"ColorScheme"],o=i[r][n];if("Object"!==e.getValueType(o))throw Error('unknown name for the color scheme "'+n+'". Check the App configuration.');e.config.runtime.colorScheme[r]=o})}catch(e){this.console.warn(e.name+": "+e.message),n=!1}return n}},{key:"getErrorMessage",value:function(e){var t=this.validatingString(e);return""===t||-1===Object.keys(this.errors).join(",").indexOf(t)?t.length?t+".":"unknown error name.":this.errors[t]}},{key:"errorHandler",value:function(e){var t=void 0,r=this.getValueType(e);if("Error"===r||"Object"===r){var n=this.validatingString(e.name);n||(n="Error"),t=n+": "+this.lowerCaseFirst(this.getErrorMessage(e.message))}else t="TypeError: "+this.getErrorMessage("errorHandler1");this.console.error(t)}},{key:"singleLine",value:function(e){var t=this.validatingString(e),r="";return t&&(r=t+this.consoleEOL),r}},{key:"checkValueType",value:function(e,t,r){if("String"!==this.getValueType(t))throw new TypeError("checkType1");if("String"!==this.getValueType(r))throw new TypeError("checkType2");if(this.getValueType(e)!==t)throw new TypeError(r)}},{key:"validatingBoolean",value:function(e){return"Boolean"===this.getValueType(e)&&e}},{key:"validatingInteger",value:function(e){return"Number"===this.getValueType(e)?parseInt(e,10):0}},{key:"validatingString",value:function(e){return"String"===this.getValueType(e)?e:""}},{key:"setLeftIndent",value:function(e){var t=this.validatingInteger(e);return t>0?this.config.serviceApp.tabChar.repeat(t):""}},{key:"checkIndentSize",value:function(e){var t=this.validatingInteger(this.config.runtime.globalIndentSize),r=this.validatingInteger(e);return r=t>0?t+1:r>0?r:0}},{key:"getResult",value:function(e){var t=this.getValueType(e),r=void 0;switch(t){case"String":r='"'+e+'"';break;case"Number":case"Boolean":r=""+e;break;case"Array":r=this.showArray(e);break;case"Object":r=this.showObject(e);break;case"Function":r=""+e;break;case"Undefined":case"Null":case"NaN":case"Infinity":case"-Infinity":r=t;break;default:r=this.getErrorMessage("getResult1")}return r}},{key:"showArray",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=void 0;if("Array"===this.getValueType(e)){var i=this.checkIndentSize(r),a=i+1,s=[];o=this.validatingBoolean(n)?this.singleLine(this.setLeftIndent(i)+"["):this.singleLine("["),e.forEach(function(e,r){var n=t.getValueType(e),o=void 0;o="Array"===n?t.showArray(e,a):"Object"===n?t.showObject(e,a):t.getResult(e),s.push(t.setLeftIndent(a)+"["+r+"] = "+o)}),s.length&&(o+=this.singleLine(s.join(","+this.consoleEOL))),o+=this.setLeftIndent(i)+"]"}else o=this.singleLine(this.getErrorMessage("showArray1"));return o}},{key:"showObject",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=void 0;if("Object"===this.getValueType(e)){var i=Object.assign({},e),a=this.checkIndentSize(r),s=a+1,l=[];o=this.validatingBoolean(n)?this.singleLine(this.setLeftIndent(a)+"{"):this.singleLine("{"),Object.keys(i).forEach(function(e){var r=i[e],n=t.getValueType(r),o=void 0;o="Array"===n?t.showArray(r,s,!1):"Object"===n?t.showObject(r,s,!1):t.getResult(r),l.push(t.setLeftIndent(s)+e+": "+o)}),l.length&&(o+=this.singleLine(l.join(","+this.consoleEOL))),o+=this.setLeftIndent(a)+"}"}else o=this.singleLine(this.getErrorMessage("showObject1"));return o}},{key:"correctDecimals",value:function(e){var t=this.getErrorMessage("correctDecimalPlaces1");return"number"==typeof e&&(t=e.toFixed(parseInt(this.config.performance.decimalPlaces,10))),t}},{key:"setRTTLevel",value:function(e){var t=this.validatingInteger(e),r=this.testLevelsPack,n=null;if("Array"===this.getValueType(r)){var o=r.length;t<o?r[t]===Object(r[t])&&(n=r[t]):t===o&&(r.push({time:0,name:""}),n=r[t])}return n}},{key:"getRTTLevel",value:function(e){var t=this.validatingInteger(e),r=this.testLevelsPack,n=null;return"Array"===this.getValueType(r)&&r[t]===Object(r[t])&&(n=r[t]),n}},{key:"lowerCaseFirst",value:function(e){var t=this.validatingString(e);return t?t.replace(/^./,t[0].toLowerCase()):""}}]),Common}();e.exports=new s},function(e,t,r){function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&defineProperties(e.prototype,t),r&&defineProperties(e,r),e}}(),o=r(0),i=r(5),a=null,s=function(){function Client(e){if(_classCallCheck(this,Client),"Window"===o.getValueType(i.windowObj)){if(!a){var t;if(a=this,this.instanceReset=function(){a=null},o.setCustomSettings(e),o.loadColorScheme(),this.appConfig=o.config.serviceApp,this.executionAllowed=o.config.runtime.run,(t=o.console).info.apply(t,_toConsumableArray(i.prepareColoring([this.appConfig.appDescription,"heading",this.appConfig.consoleEOL+"Version: "+this.appConfig.appVersion,"slave"]))),!this.executionAllowed){var r;(r=o.console).info.apply(r,_toConsumableArray(i.prepareColoring([o.getErrorMessage("runningStopped"),"master"])))}"Number"===o.getValueType(i.performanceNow)?this.performanceAllowed=!0:(this.performanceAllowed=!1,o.console.error(o.config.serviceApp.appName+": "+o.getErrorMessage("constructorClient2")))}}else this.executionAllowed=!1,this.performanceAllowed=!1,o.console.error(o.config.serviceApp.appName+": "+o.getErrorMessage("constructorClient1"));return a}return n(Client,[{key:"stopExec",value:function(){this.executionAllowed=!1,i.testPointTime=0,o.testLevelsPack=[]}},{key:"resumeExec",value:function(){o.config.runtime.run&&(this.executionAllowed=!0)}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.executionAllowed){var r;(r=o.console).info.apply(r,_toConsumableArray(i.prepareColoring([].concat(_toConsumableArray(i.appName),_toConsumableArray(i.getDebugMessage(e,t))))))}}},{key:"popup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.executionAllowed&&(i.createMsgBox(),i.addMessage(i.getDebugMessage(e,t)))}},{key:"popupReset",value:function(){this.executionAllowed&&i.popupContainerClear()}},{key:"show",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.executionAllowed)switch(o.config.serviceApp.showOutputDirection){case"console":this.log(e,t);break;case"window":this.popup(e,t);break;case"file":break;default:o.console.warn(o.getErrorMessage("show1"))}}},{key:"observer",value:function(e){if(this.executionAllowed){var t=o.getValueType(e);-1!==["String","Number","Boolean"].join(",").indexOf(t)&&(i.createMsgBox(),i.getObserver().innerText=""+e)}}},{key:"rttPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=0;if(this.executionAllowed&&this.performanceAllowed){var r=i.performanceNow;try{var n;o.checkValueType(e,"String","rttPoint1");var a=i.testPointTime;o.checkValueType(a,"Number","rttPoint3"),i.testPointTime=r;var s=[];0===a?(s.push.apply(s,["Point RTT | 0 ms | ","slave"]),e?s.push.apply(s,[e,"master"]):s.push.apply(s,["Starting point.","master"])):(t=r-a,s.push.apply(s,["Point RTT | +"+o.correctDecimals(t)+" ms","slave"]),e&&s.push.apply(s,[" | ","slave",e,"master"])),(n=o.console).info.apply(n,_toConsumableArray(i.prepareColoring([].concat(_toConsumableArray(i.appName),s))))}catch(e){o.errorHandler(e)}}return t}},{key:"rttStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.executionAllowed&&this.performanceAllowed)try{o.checkValueType(e,"String","rttStart1"),o.checkValueType(t,"Number","rttStart2");var r=o.setRTTLevel(t);o.checkValueType(r,"Object","rttStart3"),r.name=e,r.time=i.performanceNow}catch(e){o.errorHandler(e)}}},{key:"rttFinish",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0;if(this.executionAllowed&&this.performanceAllowed){var r=i.performanceNow;try{o.checkValueType(e,"Number","rttFinish1");var n=o.getRTTLevel(e);if(o.checkValueType(n,"Object","rttFinish2"),t=r-n.time,n.name){var a;(a=o.console).info.apply(a,_toConsumableArray(i.prepareColoring([].concat(_toConsumableArray(i.appName),["Single RTT | "+o.correctDecimals(t)+" ms | ","slave",n.name,"master"]))))}}catch(e){o.errorHandler(e)}}return t}},{key:"rttAverage",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=0;if(this.executionAllowed&&this.performanceAllowed)try{var l;o.checkValueType(e,"Function","rttAverage1"),o.checkValueType(t,"Number","rttAverage2"),o.checkValueType(n,"String","rttAverage3"),o.checkValueType(a,"Boolean","rttAverage4");var c=t>1e3?1e3:t,u=Math.round(.1*c),p=0,h=void 0,g=0,f=[];for(c+=u;p<c;)p+=1,this.rttStart(),e(),h=this.rttFinish(),p>u&&(g+=h,f.push(h));s=g/(c-u);var m=[];m.push.apply(m,["Average RTT | "+o.correctDecimals(s)+" ms","slave"]),n&&m.push.apply(m,[" | ","slave",n,"master"]),!0===a&&f.forEach(function(e,t){m.push.apply(m,[r.appConfig.consoleEOL+"  iteration "+(t+1)+": "+o.correctDecimals(e)+" ms","slave"])}),(l=o.console).info.apply(l,_toConsumableArray(i.prepareColoring([].concat(_toConsumableArray(i.appName),m))))}catch(e){o.errorHandler(e)}return s}}]),Client}();e.exports=s},function(e,t){e.exports={popupMsg:{fontSize:"1em",showClearTitle:!0,horizontalPosition:"left",verticalPosition:"bottom",maxWidth:500,maxHeight:600,messageDirection:"above",bottomIndent:22},serviceApp:{showOutputDirection:"window",consoleEOL:"\n",tabChar:"  ",appName:"UduJS",appDescription:"A simple universal debugging utility for JavaScript code.",appVersion:"1.0.0",consoleColorScheme:"dark",popupColorScheme:"bright",serverColorScheme:"dark",allowColorization:!0},performance:{decimalPlaces:2},runtime:{run:!0,globalIndentSize:0,msgContainer:null,observer:null,colorScheme:{},cache:{}}}},function(e,t){e.exports={console:{dark:{heading:"#CDDC39",master:"#E0E0E0",slave:"#9E9E9E",attention:"#5394EC"},bright:{heading:"#8BC34A",master:"#546E7A",slave:"#BCAAA4",attention:"#0288D1"},custom:{heading:"#fff",master:"#fff",slave:"#fff",attention:"#fff"}},popup:{dark:{background:"#37474F",border:"#78909C",appendBG:"#4DD0E1",hoverBG:"#455A64",master:"#ECEFF1",slave:"#9E9E9E",attention:"#40C4FF"},bright:{background:"#FFFDE7",border:"#EFEBE9",appendBG:"#AED581",hoverBG:"#FFECB3",master:"#263238",slave:"#9E9E9E",attention:"#2196F3"},custom:{background:"#fff",border:"#fff",font:"#fff",appendBG:"#fff",hoverBG:"#fff",master:"#fff",slave:"#fff",attention:"#fff"}},server:{dark:{heading:"33",master:"97",slave:"37",attention:"94"},bright:{heading:"33",master:"90",slave:"37",attention:"34"},custom:{heading:"7",master:"7",slave:"7",attention:"7"}}}},function(e,t){e.exports={errorNameForTesting:"result for testing.",runningStopped:"Running stopped by the user.",setCustomSettings1:"",constructorServer:'your server does not support the "Process.hrtime" object. The utility can not be used.',constructorClient1:'your browser does not support the "Window" object, or it is not a browser. The utility can not be used.',constructorClient2:'your browser does not support the "Window.performance" object. Methods for testing runtime will be unavailable.',show1:'Unrecognized default value. Check config: "showOutputDefault" must be a "window" or "console".',showArray1:"value must be an Array.",showObject1:"value must be an Object.",getResult1:"unsupported type.",rttPoint1:'the "rttPoint()" method: the argument must be a string.',rttPoint2:'the "rttPoint()" method: the value "pointTime" must be an array.',rttPoint3:'the "rttPoint()" method: the value "pointTime" must be a number.',rttStart1:'the "rttStart()" method: the first argument must be a string.',rttStart2:'the "rttStart()" method: the second argument must be a number.',rttStart3:'the "rttStart()" method: wrong layer index.',rttFinish1:'the "rttFinish()" method: the argument must be a number.',rttFinish2:'the "rttFinish()" method: wrong layer index.',rttAverage1:'the "rttAverage()" method: the first argument must be a function.',rttAverage2:'the "rttAverage()" method: the second argument must be a number.',rttAverage3:'the "rttAverage()" method: the third argument must be a string.',rttAverage4:'the "rttAverage()" method: the fourth argument must be a boolean.',errorHandler1:'the "errorHandler()" method: the value must be an object.',checkType1:'the "checkType()" method: second argument must be a string.',checkType2:'the "checkType()" method: third argument must be a string.',correctDecimalPlaces1:'the "correctDecimalPlaces()" method: value must be a number.',wrapString1:"value must be a string"}},function(e,t,r){function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&defineProperties(e.prototype,t),r&&defineProperties(e,r),e}}(),i=r(0),a=function(){function ClientLib(){_classCallCheck(this,ClientLib),this.color={consoleScheme:function(e){var t=i.validatingString(e),r=0;if(t){var n=i.config.runtime.colorScheme.console[t];void 0===n?i.console.warn(i.config.serviceApp.consoleEOL+'Warning: unknown color name "'+t+'" in the color scheme "console".'):r=n}return r},get popupScheme(){return i.config.runtime.colorScheme.popup},getColor:function(e){return"color: "+e},get heading(){return this.getColor(this.consoleScheme("heading"))},get master(){return this.getColor(this.consoleScheme("master"))},get slave(){return this.getColor(this.consoleScheme("slave"))},get attention(){return this.getColor(this.consoleScheme("attention"))}},this.appName=["[","slave",i.config.serviceApp.appName,"heading","] ","slave"],this.serviceApp=i.config.serviceApp,this.runtime=i.config.runtime,this.testPointTime=0,this.windowObj=window,this.userAgent=window.navigator.userAgent,this.performanceObj=window.performance}return o(ClientLib,[{key:"isColoringAvailable",value:function(){var e=!1;if(!0===this.serviceApp.allowColorization)if("boolean"==typeof this.runtime.cache.colorizationStatus)e=this.runtime.cache.colorizationStatus;else{switch(this.getBrowserSignature){case"Webkit":case"Firefox":e=!0}this.runtime.cache.colorizationStatus=e}return e}},{key:"prepareColoring",value:function(e){var t=this,r=[];if("Array"===i.getValueType(e)&&e.length/2===Math.round(e.length/2))if(this.isColoringAvailable()){var n=[],o=[];e.forEach(function(e,r){if(r/2===Math.round(r/2))n.push("%c"+e);else{var i=t.color[e];o.push(void 0===i?"color: none":i)}}),n.length&&(r.push(n.join("")),r.push.apply(r,o))}else{var a=[];e.forEach(function(e,t){t/2===Math.round(t/2)&&a.push(e)}),r.push(a.join(""))}return r}},{key:"getDebugMessage",value:function(e,t){var r=i.validatingString(t),n=[];return this.runtime.globalIndentSize=0,n.push.apply(n,["Type: "+i.getValueType(e),"slave"]),r&&n.push.apply(n,[" | ","slave",r,"master"]),n.push.apply(n,[this.serviceApp.consoleEOL+"Value: ","slave",i.getResult(e),"master"]),n}},{key:"createMsgBox",value:function(){var e=this;if(null===this.runtime.msgContainer){var t=i.config.popupMsg,r=this.color.popupScheme,n="bottom"===t.verticalPosition?t.bottomIndent:0,o=document.createElement("style");o.innerHTML=".popupMsgBox{position:fixed;"+t.horizontalPosition+":0;"+t.verticalPosition+":"+n+"px;background-color:"+r.background+";font-size:"+t.fontSize+";font-family:monospace;color:"+r.master+";}.popupMsgContainer{max-height:"+t.maxHeight+"px;padding:7px;overflow:auto;border:1px solid "+r.border+";cursor:default;}.popupMsgUnit{max-width:"+t.maxWidth+"px;margin-bottom:3px;padding:3px 21px 3px 0;border-bottom:1px dashed #d0d0d0;white-space:pre;}.popupMsgUnit:hover{background-color:"+r.hoverBG+";}.popupMsgObserver{padding:7px;border:1px solid "+r.border+";cursor:default;}.appendAnimation{-webkit-animation:append 600ms ease-out 1;animation:append 600ms ease-out 1;}@-webkit-keyframes append {from { background-color: "+r.appendBG+";} to { background-color: inherit; }}@keyframes append {from { background-color: "+r.appendBG+";} to { background-color: inherit; }}",document.body.appendChild(o);var a=document.createElement("div");a.className="popupMsgBox",document.body.appendChild(a);var s=document.createElement("div");s.className="popupMsgContainer",s.style.display="none",!0===t.showClearTitle&&s.setAttribute("title","Click to clear."),s.onclick=function(){return e.popupContainerClear()},this.runtime.msgContainer=a.appendChild(s);var l=document.createElement("div");l.style.display="none",!0===t.showClearTitle&&l.setAttribute("title","Click to clear."),l.onclick=function(){l.style.display="none"},this.runtime.observer=a.appendChild(l)}}},{key:"wrapString",value:function(e,t){var r=i.validatingString(e),n=i.validatingString(t),o="";return r&&(o=n?'<span style="color: '+n+'">'+r+"</span>":r),o}},{key:"highlightAttentions",value:function(e){var t=this,r=i.validatingString(e);return["Undefined","Null","NaN","Infinity","-Infinity"].forEach(function(e){-1!==r.indexOf(": "+e)&&(r=r.split(": "+e).join(": "+t.wrapString(e,t.color.popupScheme.attention)))}),r}},{key:"highlightCommas",value:function(e){var t=i.validatingString(e),r=","+this.serviceApp.consoleEOL;if(-1!==t.indexOf(r)){var n=this.wrapString(r,this.color.popupScheme.slave);t=t.split(r).join(n)}return t}},{key:"popupContainerClear",value:function(){var e=this.runtime.msgContainer;e&&(e.style.display="none",e.innerHTML="")}},{key:"addMessage",value:function(e){var t=this,r=this.runtime.msgContainer,n=document.createElement("div"),o="";if(n.className="popupMsgUnit appendAnimation","Array"===i.getValueType(e)&&e.length/2===Math.round(e.length/2)){var a=[],s=[];e.forEach(function(e,r){r/2===Math.round(r/2)?a.push(e):s.push(t.color.popupScheme[e])}),a.forEach(function(e,r){o+=t.wrapString(e,s[r])}),o=this.highlightAttentions(o),o=this.highlightCommas(o)}o&&(n.innerHTML=o,r.insertBefore(n,r.firstChild),r.style.display="block")}},{key:"getObserver",value:function(){var e=document.createElement("div"),t=this.runtime.observer,r=t.firstChild;return e.className="popupMsgObserver appendAnimation",null===r?t.appendChild(e):t.replaceChild(e,r),t.style.display="block",e}},{key:"performanceNow",get:function(){var e=null;return"object"===n(this.performanceObj)&&"function"==typeof this.performanceObj.now&&(e=this.performanceObj.now()),e}},{key:"getBrowserSignature",get:function(){var e="";return"string"==typeof this.runtime.cache.browserSignature?e=this.runtime.cache.browserSignature:(void 0!==this.userAgent&&(this.userAgent.toLowerCase().match(/applewebkit\//)&&(e="Webkit"),this.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31&&(e="Firefox")),this.runtime.cache.browserSignature=e),e}}]),ClientLib}();e.exports=new a}]);