!function(t){function e(e){for(var n,o,i=e[0],u=e[1],c=0,a=[];c0&&n<=12&&r>0&&r<=31&&"Invalid Date"!==new Date(t).toString()}function u(t){var e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();return e+"-"+(n<10?"0"+n:n)+"-"+(r<10?"0"+r:r)}function c(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()}function s(t){return new Date(t+" 00:00:00")}var a=864e5},function(t,e,n){"use strict";var r=n(1),o=r.a.get("logTryTimes");e.a={errorTrigger:function(){o>0&&o--},canSave:function(){return o>0},resetQuota:function(){o=r.a.get("logTryTimes")}}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(6);function o(t){var e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();return e+"-"+(n<10?"0"+n:n)+"-"+(r<10?"0"+r:r)}r.initConfig({publicKey:"-----BEGIN PUBLIC KEY-----\nMIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgG2m5VVtZ4mHml3FB9foDRpDW7Pw\nFoa+1eYN777rNmIdnmezQqHWIRVcnTRVjrgGt2ndP2cYT7MgmWpvr8IjgN0PZ6ng\nMmKYGpapMqkxsnS/6Q8UZO4PQNlnsK2hSPoIDeJcHxDvo6Nelg+mRHEpD6K+1FIq\nzvdwVPCcgK7UbZElAgMBAAE=\n-----END PUBLIC KEY-----"}),document.getElementById("log").onclick=function(){r.log("Hello World!",1)},document.getElementById("logWithEncryption").onclick=function(){r.logWithEncryption("Hello World!",2)},document.getElementById("report").onclick=function(){var t=new Date,e=new Date(+t-5184e5);r.report({reportUrl:"https://yourServerAddressToAcceptLogs",deviceId:"test-logan-web",fromDayString:o(e),toDayString:o(t),webSource:"browser",environment:navigator.userAgent,customInfo:JSON.stringify({userId:123456,biz:"Live Better"})})}},function(t,e,n){"use strict";n.r(e),n.d(e,"initConfig",(function(){return p})),n.d(e,"log",(function(){return v})),n.d(e,"logWithEncryption",(function(){return y})),n.d(e,"report",(function(){return g}));var r=n(0),o=n(1),i=n(2),u=n(3),c=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}s((r=r.apply(t,e||[])).next())}))},s=function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]t.toDayString)throw new Error("fromDayString needs to be no bigger than toDayString")}(t),[4,Promise.all([n.e(0),n.e(1)]).then(n.bind(null,11))];case 1:return[4,e.sent().default(t)];case 2:return[2,e.sent()]}}))}))}window.addEventListener("load",(function t(){return c(this,void 0,void 0,(function(){return s(this,(function(e){return l.forEach((function(t){d(t)})),l=[],window.removeEventListener("load",t),[2]}))}))})),e.default={initConfig:p,log:v,logWithEncryption:y,report:g,ResultMsg:r.b}},function(t,e,n){(function(e,n){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,i=void 0,u=void 0,c=function(t,e){p[o]=t,p[o+1]=e,2===(o+=2)&&(u?u(v):w())},s="undefined"!=typeof window?window:void 0,a=s||{},l=a.MutationObserver||a.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(v,1)}}var p=new Array(1e3);function v(){for(var t=0;t1)for(var n=1;n