-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjoperate-web.min.js
30 lines (30 loc) · 154 KB
/
joperate-web.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
!function(n){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=17)}([function(t,e,n){"use strict";e.__esModule=!0,e.FROM_JOPERATE="JOperate",e.MESSAGE_STATUS_SUCC=1,e.MESSAGE_STATUS_FAIL=2,e.MESSAGE_STATUS_OTHER=3,e.JGCons={Host:"https://smartop-sdkapi.jiguang.cn",ReportHost:"https://web-stat.jpush.cn",RegisterHost:"https://web-stat.jpush.cn",IFrameHost:"https://web-stat.jpush.cn",IFrameHtml:"https://web-stat.jpush.cn/web/report/html/joperate.html",SDK_VERSION:"2.0.1",KEY_JIGUANG_INSTALLDATE:"jg_installdate",DEFAULT_CHANNEL:"default-channel",LOG_TAG_PREFIX:"[JIGUANG-JOperate]",REQUEST:{TIME_OUT:5e3,HEADER_X_DEVICE:"X_DEVICE"},LOCAL:{DEVICEID:"DEVICEID",APPKEY:"APPKEY",CACHE_FAIL:"FAILCACHE",CACHE_QUEUE:"QUEUECACHE",SA_CACHE:"SA_CACHE",SA_LAST_PAUSE:"SA_LP",SA_SESSION_START:"SA_SST",SA_SESSION_ID:"SA_SID",LOC_LAST_REPORT:"LOC_LR",PREFIX:{PUBLIC:"JG_"},SUFFIX:{USER_INFO:"_U",ACTIVE_INFO:"_A",ACCOUNT_ID:"_AI",ACCOUNT_ID_FIRST:"_AI_FIR",ACCOUNT_ID_FOLLOW:"_AI_FOL",ACCOUNT_STATU:"_AS",LOCAL_VARIABLE:"_LV",PAGE_VARIABLE:"_PV",BLOCK_ACCOUNT:"_BA",BLOCK_EVENT:"_BE",ACTIVE_INFO_CACHE:"_A_C",ACCOUNT_CACHE:"_AC_C"}},CUSTOM_EVENT:{EXT_KEY_COUNT_LIMIT:50,COM_KEY_COUNT_LIMIT:10,DYNAMIC_KEY_COUNT_LIMIT:10,KEY_VALUE_SIZE_LIMIT:256,REG_EXP:/^[a-z][0-9a-z_]*$/,LOCAL_COMMON_ATTRIBUTES:"LOCAL_COMMON_ATTRIBUTES_KEY"},ACCOUNT:{EXT_KEY_COUNT_LIMIT:50,BLOCK_LIMIT_TIMES:30,KEY_VALUE_SIZE_LIMIT:256,BLOCK_LIMIT_INTERVAL:1e4,STATU_DETACH:"detach_account",STATU_IDENTIFY:"identify_account",REG_EXP:/^[a-z0-9A-Z_]+$/},LOC:{LIMIT_INTERVAL:9e5},IFRAME:{ID:"jiguang_iframe_operate"},MESSAGE:{EVENT:{FROM:e.FROM_JOPERATE,TYPE:"onRespond"},CALLID:{COMMON_CALLID_TO:"COMMON_CALLID_TO",COMMON_CALLID_BACK:"COMMON_CALLID_BACK"},ACTION:{INIT:"init",ON_EVENT:"onEvent",IDENTIFY_ACCOUNT:"identifyAccount",SET_USER_CHANNEL:"setUserChannel",COMMON_PROPERTIES:"commonProperties",USER_PROPERTIES:"userProperties",TIMEKEEPING_EVENT:"timekeepingEvent",DEBUG_MODE:"debugMode",UTM_PROPERTIES:"utmProperties",CUID:"cuid",LOCATION:"location",USER_DATA:"userData",APP_INFO:"appInfo",USER_INFO:"userInfo",EVENT_CONFIG:"eventConfig"},STATUS:{SUCC:e.MESSAGE_STATUS_SUCC,FAIL:e.MESSAGE_STATUS_FAIL,OTHER:e.MESSAGE_STATUS_OTHER}}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i,o,s=n(0);r=e.Log||(e.Log={}),i=!1,o=s.JGCons.LOG_TAG_PREFIX,r.setDebugMode=function(t){r.dd(o,"setDebugMode:"+i),i=t},r.d=function(t,e){i&&console.log(o+"["+t+"]"+e)},r.w=function(t,e){i&&console.warn(o+"["+t+"]"+e)},r.dd=function(t,e){},r.ww=function(t,e){},r.ee=function(t,e){}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(o,s,a,c){return new(a||(a=Promise))(function(t,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((c=c.apply(o,s||[])).next())})},u=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}};e.__esModule=!0;var h=n(4),s=n(14),o=n(16),i=n(0);function a(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function c(t){return!t||0==t.length}function l(t){return t.replace(/[^\x00-\xff]/g,"**").length}e.dateFormat=function(t,e){var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return e},e.uuid=function(){return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()},e.getRandomId=function(t){return Math.random().toString(36).substr(2,t||8)},e.isEmpty=c,e.isObject=function(t){return null!=t&&"[object Object]"==Object.prototype.toString.call(t)},e.supportPostMessage=function(){return!!window.postMessage},e.jgEncrypto=function(t){if(c(t))return"";for(var e=String.fromCharCode(t.charCodeAt(0)+t.length),n=1;n<t.length;n++)e+=String.fromCharCode(111^t.charCodeAt(n));return escape(e)},e.jgDecrypto=function(t){if(c(t))return"";t=unescape(t);for(var e=String.fromCharCode(t.charCodeAt(0)-t.length),n=1;n<t.length;n++)e+=String.fromCharCode(111^t.charCodeAt(n));return e},e.byteCount=l,e.trimStr=function(t,e){var n="",r=t.length;if(l(t)<=e)return t;for(var i=0,o=0;i<r;i++){var s=t.charAt(i);if(/[\x00-\xff]/.test(s)?o++:o+=2,!(o<=e))return n;n+=s}};var f={};e.block=function(o,s,a,c){return r(this,void 0,void 0,function(){var e,n,r,i;return u(this,function(t){return e=c?h.getLocal(o):f[o],n=[],r=Date.now(),e&&(n=JSON.parse(e)),n&&n.length==s&&r<n[0]+a&&(i=!0),i||(n.push(r),n.length>s&&n.shift(),c?h.setLocal(o,JSON.stringify(n)):f[o]=JSON.stringify(n)),[2,Promise.resolve(i)]})})};var p=function(){function t(){this.callbackList=[],this.errorCallList=[],this.PromiseStatus="pending"}return t.prototype.resolve=function(e){"pending"===this.PromiseStatus&&(this.PromiseStatus="resolved",this.PromiseValue=e,this.callbackList.forEach(function(t){setTimeout(function(){t(e)},0)}))},t.prototype.reject=function(e){if("pending"===this.PromiseStatus)return this.PromiseStatus="rejected",this.PromiseValue=e,this.errorCallList.forEach(function(t){t(e)}),this},t.prototype.then=function(t){if("resolved"!==this.PromiseStatus)return this.callbackList.push(t),this;t(this.PromiseValue)},t.prototype.catch=function(t){if("rejected"!==this.PromiseStatus)return this.errorCallList.push(t),this;t(this.PromiseValue)},t.prototype.toPromise=function(){var n=this;return new Promise(function(t,e){n.then(t),n.catch(e)})},t}();function d(t,e){var n=e,r=new o.JSEncrypt;r.setPublicKey(n);var i=r.encrypt(t);return 0==i?"":i}e.MPromise=p,e.randomWord=function(t,e,n){var r="",i=e,o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];t&&(i=Math.round(Math.random()*(n-e))+e);for(var s=0;s<i;s++)r+=o[Math.round(Math.random()*(o.length-1))];return r},e.rsaCoreEncrypt=function(t){return d(t,"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCi0v4VEUhOdfIEfFCrPC72pcDsQF/luTmr4q34NY0EZYGKzfQuTrUAm916P52HCgF+342gjZ/Nvijts5543qYNyoLvgtu4NRcHJmuGI/w7qifhfsivYeoEj9wYphXOyB9HUjzwn1BtAih+1RyUrcErCi249yabUOIKQygPZ9OXXQIDAQAB")},e.rsaOpreateEncrypt=function(t){return d(t,"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDgbrARVtZ1SutoBfJNGsVvONQ6/wcvlJuey09CDbV1HViTUvlxECMPFcXldtGBPOraixVivZSRYlwvjYUKsnULFLAJO9kJCxVa2FhLPDdzN7cpnf5wh0KT78vW/rG0LLg6FVqhXOclTXEd4xp8bDqdmVzJlJOY5xpz9bEVNM5/QIDAQAB")},e.rsaEncrypt=d,e.aesEncrypt=function(t,e,n){var r=s.enc.Utf8.parse(e),i=s.enc.Utf8.parse(t),o=s.enc.Utf8.parse(n);return s.AES.encrypt(i,r,{iv:o,mode:s.mode.CBC,padding:s.pad.Pkcs7}).toString()},e.aesDecrypt=function(t,e,n){var r=s.enc.Utf8.parse(e),i=s.enc.Utf8.parse(n);return s.AES.decrypt(t,r,{iv:i,mode:s.mode.CBC,padding:s.pad.Pkcs7}).toString(s.enc.Utf8)},e.getNetworkType=function(){var t,e=navigator.userAgent,n=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"NetType/other";switch(n=n.toLowerCase().replace("nettype/","")){case"wifi":t="wifi";break;case"4g":t="4g";break;case"3g":case"3gnet":t="3g";break;case"2g":t="2g";break;default:t="other"}return t},e.getSystemInfo=function(){return{osVersion:function(){var t=navigator.userAgent,e="";if(-1<t.indexOf("Mac OS X")){var n=t.match(/OS [d._]*/gi);e="IOS "+(n+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,".")}else if(-1<t.indexOf("Android")||-1<t.indexOf("Linux"))e="Android "+t.substr(t.indexOf("Android")+8,t.indexOf(";",t.indexOf("Android"))-t.indexOf("Android")-8);else if(-1<t.indexOf("BB10"))e="blackberry "+t.substr(t.indexOf("BB10")+5,t.indexOf(";",t.indexOf("BB10"))-t.indexOf("BB10")-5);else if(-1<t.indexOf("IEMobile"))e="winphone "+t.substr(t.indexOf("IEMobile")+9,t.indexOf(";",t.indexOf("IEMobile"))-t.indexOf("IEMobile")-9);else{var r=navigator.userAgent.toLowerCase();e=-1<r.indexOf("windows nt 5.0")?"Windows 2000":-1<r.indexOf("windows nt 5.1")||-1<r.indexOf("windows nt 5.2")?"Windows XP":-1<r.indexOf("windows nt 6.0")?"Windows Vista":-1<r.indexOf("windows nt 6.1")||-1<r.indexOf("windows 7")?"Windows 7":-1<r.indexOf("windows nt 6.2")||-1<r.indexOf("windows 8")?"Windows 8":-1<r.indexOf("windows nt 6.3")?"Windows 8.1":-1<r.indexOf("windows nt 6.2")||-1<r.indexOf("windows nt 10.0")?"Windows 10":"Unknown"}return e}(),screenWidth:window.screen.width,screenHeight:window.screen.height}},e.isFirstDay=function(){var t=h.get(i.JGCons.KEY_JIGUANG_INSTALLDATE);return t&&0<t?(t+=864e5,t-=t%864e5,Date.now()<t):(t=Date.now(),h.set(i.JGCons.KEY_JIGUANG_INSTALLDATE,t),!0)}},function(t,e,n){"use strict";var r;e.__esModule=!0,e.setInitConfig=function(t){r=t},e.getInitConfig=function(){return r}},function(t,e,n){"use strict";e.__esModule=!0;var c=n(1),u=n(2),r=n(0),i=n(3),h="WebStore",l=r.JGCons.LOCAL.PREFIX.PUBLIC;function f(){return window.localStorage.length}function o(t,e){try{var n=window.localStorage;if(n&&e){var r=u.jgEncrypto(t),i=u.jgEncrypto(JSON.stringify(e));if(n.setItem(l+r,i),p(t))return c.Log.d(h,"LocalStorage.SET:"+t+"="+JSON.stringify(e)),!0}}catch(t){}return c.Log.d(h,"The browser does not support localStorage.SET"),!1}function p(t){try{var e=window.localStorage;if(e){var n=u.jgEncrypto(t),r=e.getItem(l+n);return r?JSON.parse(u.jgDecrypto(r)):null}}catch(t){}return c.Log.d(h,"The browser does not support localStorage.GET"),null}function s(t){try{var e=window.localStorage;if(e){var n=u.jgEncrypto(l+t);return e.removeItem(n),!0}}catch(t){return!1}}function a(t,e,n){if(void 0===n&&(n=0),!navigator.cookieEnabled)return c.Log.d(h,"The browser does not support cookies.SET"),!1;var r=l+t+"="+e;if(0==n)document.cookie=r;else{var i=new Date;i.setDate(i.getDate()+n);var o="expires="+i.toUTCString();document.cookie=r+"; "+o+";SameSite=None; Secure"}return c.Log.d(h,"Cookie.SET:"+r),!0}e.set=function(e,t){try{o(i.getInitConfig().appKey+e,t),c.Log.d(h,"set WxStorage:"+e+"="+JSON.stringify(t))}catch(t){c.Log.d(h,"set WxStorage:"+e+"error: "+t)}},e.get=function(e){var t=null;try{t=p(i.getInitConfig().appKey+e)}catch(t){c.Log.d(h,"get WxStorage :"+e+"error: "+t)}return t},e.remove=function(e){try{s(i.getInitConfig().appKey+e)}catch(t){c.Log.d(h,"remove WxStorage :"+e+"error: "+t)}},e.getCurrentLength=f,e.getReportCache=function(){for(var t=null,e={},n=f(),r=window.localStorage,i=0;i<n;i++){var o=r.key(i);if(0===o.indexOf(l)){var s=o.substr(l.length),a=u.jgDecrypto(s);/^[0-9a-z]{8}\-[a-zA-Z]+$/.test(a)&&((t=p(a))&&u.isObject(t)?(c.Log.dd(h,"get report data from localStorage "+t),e[a]=t):c.Log.d(h,"get report data from localStorage error"+t))}}return e},e.setLocal=o,e.getLocal=p,e.removeLocal=s,e.setCookie=a,e.getCookie=function(t){if(!navigator.cookieEnabled)return c.Log.d(h,"The browser does not support cookies.GET"),"";for(var e=document.cookie.replace(/\s/g,"").split(";"),n=0;n<e.length;n++){var r=e[n].split("=");if(r[0]==l+t)return decodeURIComponent(r[1])}return null},e.removeCookie=function(t){return a(l+t,"0",-1)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(2),i=n(1),o=n(4),s=n(0),a="UserInfoHelper",c=s.JGCons.LOCAL.DEVICEID,u=s.JGCons.LOCAL.SUFFIX.USER_INFO,h="";function l(){return r.isEmpty(h)?(h=f(),r.isEmpty(h)?null:h):h}function f(){return t=c,e=o.getLocal(t),r.isEmpty(e)?(e=o.getCookie(c),r.isEmpty(e)?null:(i.Log.d(a,"get "+t+" from cookie:"+e),e)):(i.Log.d(a,"get "+t+" from local:"+e),e);var t,e}function p(t){var e={uid:0,rId:"",pw:"",cuid:"",orgID:"",dataSourceId:"",dId:l()};if(!r.isEmpty(t)){var n=t.split("|");e={uid:parseInt(n[0]),rId:n[1],pw:n[2],cuid:n[3],orgID:n[4],dataSourceId:n[5],dId:l()}}return e}e.getDeviceId=l,e.getDeviceIdWithEmpty=f,e.setDeviceId=function(t){var e,n;i.Log.d(a,"New devicdId:"+t),e=c,n=t,o.setLocal(e,n)||o.setCookie(e,n,3650)},e.getUserInfo=function(t){var e=t+u,n={uid:0,rId:"",pw:"",cuid:"",orgID:"",dataSourceId:"",dId:""};return 0<(n=p(o.getLocal(e))).uid?i.Log.d(a,"Get public UserInfo from local:"+n.uid):0<(n=p(o.getCookie(e))).uid&&i.Log.d(a,"Get public UserInfo from Cookie:"+n.uid),n},e.setUserInfo=function(t,e){if(e){var n=e.uid+"|"+e.rId+"|"+e.pw+"|"+e.cuid+"|"+e.orgID+"|"+e.dataSourceId;o.setLocal(t+u,n)||o.setCookie(t+u,n,3650)}}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(1),o=n(0),s="RequestHelper",a=function(){function t(){}return t.prototype.request=function(t,e){var n=this.generateHttpRequest();if(n||i.Log.dd(s,"This browser is not support ajax"),n.onload=function(t){4===n.readyState&&(200==n.status?(i.Log.d(s,"Request success."),e(o.MESSAGE_STATUS_SUCC,n.responseText)):e(o.MESSAGE_STATUS_FAIL,"Request failed:"+n.status))},n.onloadstart=function(t){},n.onabort=function(t){e(o.MESSAGE_STATUS_FAIL,"Request failed: onabort")},n.onerror=function(t){e(o.MESSAGE_STATUS_FAIL,"Request failed: error")},n.ontimeout=function(t){e(o.MESSAGE_STATUS_FAIL,"Request failed: timeout")},"GET"==t.method)n.open("GET",t.url+(null==t.param?"":"?"+t.param),t.async),n.send(null);else{for(var r in n.open("POST",t.url,t.async),n.timeout=o.JGCons.REQUEST.TIME_OUT,n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.header)n.setRequestHeader(r,t.header[r]);n.send(t.param)}},t.prototype.generateHttpRequest=function(){var e;if(XMLHttpRequest)try{e=new XMLHttpRequest}catch(t){}else if(ActiveXObject)try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){e=new ActiveXObject("Msxml2.XMLHTTP")}return e},t}();e.httpReport=function(r){return new Promise(function(n,t){(new a).request(r,function(t,e){i.Log.d(s,r.url+" httpRequest"+t+"_"+e),n({statusCode:t,result:e})})})}},function(t,e,n){"use strict";var y=this&&this.__awaiter||function(o,s,a,c){return new(a||(a=Promise))(function(t,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((c=c.apply(o,s||[])).next())})},b=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}};e.__esModule=!0;var T,r,w=n(1),A=n(2),C=n(3),I=n(8),O=n(0),D=n(8),B=n(10),R=n(5),x=n(6),L=n(0),M=n(11),N="EventManager",k=O.JGCons.CUSTOM_EVENT.KEY_VALUE_SIZE_LIMIT;(r=T=e.ConfigState||(e.ConfigState={}))[r.Unknown=0]="Unknown",r[r.Open=1]="Open",r[r.Closed=2]="Closed";var P=function(){this.name="",this.attributes={}};e.Event=P;var U,H,V,j,G,F=function(){this.startTime=0,this.duration=0,this.eventName=""},J=!1,K=0,q=!1,z={},W=-1,X=-1;!function(t){function i(){return y(this,void 0,void 0,function(){var n,r,i,o,s,a,c,u,h,l,f,p,d,g,v,y;return b(this,function(t){switch(t.label){case 0:return[4,A.getSystemInfo()];case 1:return n=t.sent(),r=C.getInitConfig(),i=R.getUserInfo(r.appKey),o=-1!=(o=n.osVersion).indexOf("IOS")?"i":-1!=o.indexOf("Android")?"a":-1!=o.indexOf("Wndows")?"w":"unknown",s=o.split(" "),a="0",0<s.length&&(a=a[1]),c={userVersion:U.userVersion?U.userVersion:0,eventVersion:U.eventVersion?U.eventVersion:0,cuid:i.cuid?i.cuid:"",appkey:r.appKey,rid:i.rId,resolution:n.screenWidth+"x"+n.screenHeight,os:o,platform:"b",manufacturer:"",sysver:a,model_num:"",time:Date.now(),joperate_sdk_version:O.JGCons.SDK_VERSION},u=JSON.stringify(c),h=O.JGCons.Host+"/v1/visual-bury-sdk-api/smartop/3/getEvent",w.Log.d(N,h+" load config json:"+u),l=A.randomWord(!1,32),"q5bfn8msyozljacg",f=A.aesEncrypt(u,l,"q5bfn8msyozljacg"),p=A.rsaOpreateEncrypt(l),w.Log.d(N,"Register content:"+u),[4,x.httpReport({url:h,method:"POST",param:f,async:!0,header:{Authorization:p,"X-Jpush-AuthType":"operate-js"}})];case 2:return d=t.sent(),M.EventHelper.saveEventRequestDate(Date.now()),d&&1===d.statusCode&&(g=JSON.parse(d.result),M.EventHelper.saveEventRequestInterval(g.intervals),0==g.code?(w.Log.dd(N,"load config success"),S(T.Open),v=g.data,i.cuid=v.cuid,i.orgID=v.orgId,i.dataSourceId=v.dataSourceId,R.setUserInfo(r.appKey,i),_(i),v.isNew&&E(),y=!1,U.userVersion?(U.userVersion<v.userVersion&&(U.userProperties=v.userProperties,U.userVersion=v.userVersion,y=!0),U.eventVersion<v.eventVersion&&(U.reservedEvents=v.reservedEvents,U.eventVersion=v.eventVersion,y=!0)):(U=v,y=!0),y?(w.Log.dd(N,"update local events"),M.EventHelper.saveEventConfig(U)):w.Log.dd(N,"events don't need to update"),e=U,G.sendMsgToInterface(O.JGCons.MESSAGE.ACTION.EVENT_CONFIG,"",L.MESSAGE_STATUS_SUCC,e),m()):(4001==g.code&&(U={},M.EventHelper.removeEventConfig(),m(),M.EventHelper.removeTmpEvents(),S(T.Closed)),w.Log.dd(N,"opreate config request fail, "+g.code+": "+g.msg))),[2]}var e})})}function m(){var t=M.EventHelper.loadTmpEvents();t||(t=[]),w.Log.dd(N,"opreate history data:"+t);for(var e=[],n=0;n<t.length;n++){var r=t[n],i=r[0];U.reservedEvents||i.name!=I.Preset.AppActive&&i.name!=I.Preset.AppRegid||(e.push(r),w.Log.dd(N,"event will not be remove"+i.name)),h(r)}M.EventHelper.saveTmpEvents(e),K=0}function E(){D.PresetEventManager.reportDidRegister()}function o(t,e,n){var r=new P;r.name=t,r.attributes=e,s(r,n,1)}function s(e,n,r){return y(this,void 0,void 0,function(){return b(this,function(t){return w.Log.dd(N,"onEvent name:"+e.name),G.sendMsgToInterface(O.JGCons.MESSAGE.ACTION.USER_PROPERTIES,O.JGCons.MESSAGE.CALLID.COMMON_CALLID_BACK,L.MESSAGE_STATUS_SUCC,""),setTimeout(function(){c(e,n)&&a(e,r)},0==r?200:10),[2]})})}function a(c,u){return y(this,void 0,void 0,function(){var e,n,r,i,o,s,a;return b(this,function(t){switch(t.label){case 0:return(M.EventHelper.loadEventConfigState()||T.Unknown)==T.Closed?(w.Log.w(N,"operate sdk is not open, cancel event "+c.name+" record"),[2]):[4,A.getSystemInfo()];case 1:if(e=t.sent(),n=C.getInitConfig(),r=R.getUserInfo(n.appKey),(i={}).jg_wifi="wifi"==A.getNetworkType()?1:0,i.jg_app_key=n.appKey,i.jg_network_type=A.getNetworkType(),i.jg_event_duration=(Date.now()-n.initTime)/1e3,i.jg_launch_first=n.first_time,o=(new Date).getTimezoneOffset()/-60,i.jg_time_zone=(0<o?"+":"")+o,i.jg_os_language=navigator.language,i.jg_platform_type="web",i.jg_channel_source=n.channel,i.jg_operate_sdk_ver=n.sdkVersion,i.jg_screen_size=e.screenWidth+"x"+e.screenHeight,i.jg_screen_width=e.screenWidth,i.jg_screen_height=e.screenHeight,i.jg_device_id=r.dId,i.jg_latitude=W,i.jg_longitude=X,j&&(i.jg_title=j.jg_title,i.jg_url=j.jg_url,i.jg_url_path=j.jg_url_path,i.jg_url_host=j.jg_url_host),s={time:Date.now(),peripheralProperty:i},U&&U.userVersion)h([c,s,u]);else{if(w.Log.dd(N,"config is not vaild, save tmp event "+c.name),100<K)return w.Log.dd(N,"tmp event count is over size , max size 100"),[2,null];(a=M.EventHelper.loadTmpEvents())||(a=[]),a.push([c,s]),M.EventHelper.saveTmpEvents(a),K++}return[2]}})})}function h(l){return y(this,void 0,void 0,function(){var e,n,r,i,o,s,a,c,u,h;return b(this,function(t){if(!("jg_debug"==(e=l[0]).name||U.userVersion&&-1!=U.reservedEvents.data.indexOf(e.name)))return w.Log.w(N,"event: "+e.name+" is not in white list, drop it"),[2];for(n=l[1],r=C.getInitConfig(),i=R.getUserInfo(r.appKey),n.uid=i.uid,o=l[2],n.type=o,n.cuid=i.cuid,n.random_id=A.getRandomId(),s={},a=0;a<U.userProperties.data.length;a++)c=U.userProperties.data[a],s[c.key]=c.value;for(u in n.userProperties={value:s},e.attributes.jg_data_source="web",e.attributes.jg_data_source_id=i.dataSourceId,e.attributes.jg_is_first_day=A.isFirstDay()?1:0,j&&(e.attributes.jg_referer_fulldomain=j.jg_referer_fulldomain,e.attributes.jg_referer_url=j.jg_referer_url,e.attributes.jg_query=j.jg_query),f)Object.prototype.hasOwnProperty.call(f,u)&&(e.attributes["jg_"+u]=f[u]);return n.event={id:e.name,value:e.attributes},n.peripheralProperty.jg_org_id=i.orgID,h={type:"operate_event",orgId:i.orgID,platform:"b",appkey:r.appKey,data:[n]},q?(h.token=H,function(a){y(this,void 0,void 0,function(){var e,n,r,i,o,s;return b(this,function(t){switch(t.label){case 0:return C.getInitConfig(),e=JSON.stringify(a),n=O.JGCons.Host+"/v1/visual-bury-sdk-api/smartop/3/debug/report",w.Log.d(N,n+" debug report json:"+e),r=A.randomWord(!1,32),"q5bfn8msyozljacg",i=A.aesEncrypt(e,r,"q5bfn8msyozljacg"),o=A.rsaOpreateEncrypt(r),[4,x.httpReport({url:n,method:"POST",param:i,async:!0,header:{Authorization:o,"X-Jpush-AuthType":"operate-js"}})];case 1:return(s=t.sent())&&1===s.statusCode?w.Log.d(N,"debug opreate event report success"):w.Log.w(N,"debug opreate event report fail in debug mode"),[2]}})})}(h)):B.ReportHelper.report(h,o),[2]})})}function c(t,e){if(w.Log.d(N,"setCommonAndCheckEvent"),!t)return u("event"),!1;var n={};for(var r in V&&(n=JSON.parse(JSON.stringify(V))),t.attributes)n[r]=t.attributes[r];t.attributes=n;var i=t.name;if(!i)return u("event name"),!1;if("string"!=typeof i)return l("name must be string."),!1;if(A.byteCount(i)>k)return l("name must be less than "+k+" bytes"),!1;if(-1!=i.indexOf("jg")&&-1==e.indexOf(i))return l("This event will not record, because event name: "+i+" is invalid, you can't use jg as a prefix"),!1;if(t.attributes.length<1)return!0;if(500<t.attributes.length)return l("This event will not record, since you have more than 50 pairs of custom key/value."),!1;var o=M.EventHelper._checkAttrs(t.attributes,e);return 2!=o.code&&(t.attributes=o.attrs,!0)}t.start=function(){J||(J=!0,function(){w.Log.dd(N,"load local operate config"),(U=M.EventHelper.loadEventConfig())||(U={});var t,e,n=C.getInitConfig();if(!R.getUserInfo(n.appKey).rId)return w.Log.dd(N,"PO_JCORE hasn't registered, cancel load operate config");t=M.EventHelper.loadEventRequestDate(),e=M.EventHelper.loadEventRequestInterval(),w.Log.d(N,"last load config timeinterval: "+t+", intervals: "+e+", still need: "+(t+e-Date.now())),Date.now()-e>t&&i()}())},t.setCommonProperties=function(t){V=t.common,j=t.preset},t.setLocation=function(t,e){W=t<=0?-1:t,X=e<=0?-1:e},t.getLocation=function(){return[W,X]},t.saveInterfaceConfig=function(t){U=t,M.EventHelper.saveEventConfig(U)},t.loadInterfaceConfig=function(){return U||(U=M.EventHelper.loadEventConfig())},t.loadUserProperties=function(){w.Log.d(N,"user properties update success, update user config"),i()},t.onUserEvent=o,t.onPresetEvent=function(t,e){var n=new P;n.name=t,n.attributes=e,s(n,D.PresetArr,0)},t.sendBeaconEvent=function(t){null!=U&&(V=M.EventHelper.getCommonProperities(),j=v(),c(t,[])&&a(t,1))};var f={};function u(t){w.Log.ee(N,t+" cannot be empty")}function l(t){w.Log.ee(N,"Parameter invalid,"+t)}function e(t,e){if(!t)return w.Log.w(N,"event name is null!!"),null;w.Log.d(N,"timeKeeping event start, eventName:"+t+", eventID: "+e);var n=new F;return n.startTime=Date.now(),n.eventName=t,z[e]=n,e}function n(t,e){if(z[t]){var n=z[t];w.Log.d(N,"timeKeeping event end, eventName:"+n.eventName+", eventID: "+t);var r=e,i=n.duration;0<n.startTime&&(i+=Date.now()-n.startTime),r.jg_duration=i,o(n.eventName,r,["jg_duration"]),delete z[t]}else w.Log.w(N,"timeKeeping event is not exist, eventID: "+t)}function r(t){if(z[t]){var e=z[t];w.Log.d(N,"timeKeeping event pause, eventName:"+e.eventName+", eventID: "+t),0<e.startTime&&(e.duration+=Date.now()-e.startTime,e.startTime=-1)}else w.Log.w(N,"timeKeeping event is not exist, eventID: "+t)}function p(t){if(z[t]){var e=z[t];w.Log.d(N,"timeKeeping event resume, eventName:"+e.eventName+", eventID: "+t),e.startTime<0?e.startTime=Date.now():w.Log.d(N,"timeKeeping event has resumed, eventName:"+e.eventName+", eventID: "+t)}else w.Log.w(N,"timeKeeping event is not exist, eventID: "+t)}function d(t){w.Log.d(N,"remove timeKeeping event, eventID: "+t),t&&delete z[t]}function g(){z={},w.Log.d(N,"remove timeKeeping all event")}function S(t){M.EventHelper.saveEventConfigState(t)}function _(t){G.sendMsgToInterface(O.JGCons.MESSAGE.ACTION.USER_INFO,"",L.MESSAGE_STATUS_SUCC,t)}function v(){var t=document.referrer,e="";if(1<t.length){var n=t.split("/");2<n.length&&(e=n[2])}return{jg_title:document.title,jg_url:document.URL,jg_url_path:window.location.pathname,jg_url_host:window.location.host,jg_referer_fulldomain:e,jg_referer_url:t,jg_query:window.location.search}}t.setUtmProperties=function(e){f={},["utm_source","utm_medium","utm_term","utm_content","utm_campaign"].forEach(function(t){e[t]&&(f[t]=e[t])})},t.updateCUID=function(t,e){var n=C.getInitConfig(),r=R.getUserInfo(n.appKey);A.isEmpty(t)||t==r.cuid?w.Log.dd(N,"cuid is not updated , cuid: "+t):(r.cuid=t,R.setUserInfo(n.appKey,r),_(r),e&&E(),M.EventHelper.removeEventConfig(),i(),w.Log.d(N,"cuid is update , cuid: "+t+" is new cuid?: "+e))},t.timeKeepingEvent=function(t){switch(t.type){case"start":e(t.name,t.id);break;case"end":n(t.id,t.properties);break;case"pause":r(t.id);break;case"resume":p(t.id);break;case"remove":d(t.id);break;case"clear":g()}},t.timeKeepingEventStart=e,t.timeKeepingEventEnd=n,t.timeKeepingEventPause=r,t.timeKeepingEventResume=p,t.removeTimeKeepingEvent=d,t.clearTimeKeepingEvent=g,t.openDebugMode=function(t){var e=C.getInitConfig(),n=R.getUserInfo(e.appKey);if(A.isEmpty(n.cuid))return w.Log.w(N,"您当前的运营增长SDK尚未注册成功,无法进入debug模式"),!1;if(-1==t.indexOf("token"))return!1;var r=t.split("token=");return H=r[1],q=!0,o("jg_debug",{},["jg_debug"]),!0},t.setJOperate=function(t){G=t},t.getUserPagePresetProperties=v}(e.EventManager||(e.EventManager={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(4),i=n(7),o=n(3);e.Preset={AppLaunch:"jg_app_launch",AppActive:"jg_app_active",AppRegid:"jg_app_cuid",AppEnd:"jg_app_end",AppShow:"jg_app_show",AppHide:"jg_app_hide",AppViewScreen:"jg_page_viewscreen"},e.PresetArr=[e.Preset.AppLaunch,e.Preset.AppActive,e.Preset.AppRegid,e.Preset.AppEnd,e.Preset.AppShow,e.Preset.AppHide,e.Preset.AppViewScreen];var s,a="JOPERATELeft_time",c=!1;(s=e.PresetEventManager||(e.PresetEventManager={})).start=function(){c||(c=!0,o.getInitConfig().first_time&&i.EventManager.onPresetEvent(e.Preset.AppActive,{}),function(){i.EventManager.onPresetEvent(e.Preset.AppLaunch,{});var t=r.get(a);t&&0<t&&(i.EventManager.onPresetEvent(e.Preset.AppEnd,{}),r.set(a,Date.now()))}(),i.EventManager.onPresetEvent(e.Preset.AppViewScreen,{}))},s.onShow=function(){i.EventManager.onPresetEvent(e.Preset.AppShow,{})},s.onHide=function(){r.set(a,Date.now()),i.EventManager.onPresetEvent(e.Preset.AppHide,{})},s.reportDidRegister=function(){i.EventManager.onPresetEvent(e.Preset.AppRegid,{})}},function(t,e,n){"use strict";e.__esModule=!0,e.packageInterfaceMessageBody=function(t,e,n){return{action:t,data:e,callbackId:n}},e.packageIframeRespond=function(t,e,n,r,i){return{from:t,type:"onRespond",body:{action:e,callbackId:n,code:r,result:i}}};var r=function(){this.lReg=0,this.lRep=0};e.LocalVariable=r},function(t,e,n){"use strict";var h=this&&this.__awaiter||function(o,s,a,c){return new(a||(a=Promise))(function(t,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((c=c.apply(o,s||[])).next())})},l=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}};e.__esModule=!0;var r,f,p=n(1),d=n(6),g=n(3),v=n(0),y=n(2),m=n(15),E=n(5);r=e.ReportHelper||(e.ReportHelper={}),f="ReportHelper",r.report=function(c,u){return h(this,void 0,void 0,function(){var e,n,r,i,o,s,a;return l(this,function(t){switch(t.label){case 0:return e=y.uuid()+Date.now(),m.reportFailCache.add(e,c),n=g.getInitConfig(),r=E.getUserInfo(n.appKey),[4,function(o){return h(this,void 0,void 0,function(){var e,n,r,i;return l(this,function(t){return e=g.getInitConfig(),n=y.getSystemInfo(),r=E.getUserInfo(e.appKey),i=y.getNetworkType(),[2,{platform:"b",device_id:r.dId,uid:r.uid,app_key:e.appKey,sdk_ver:v.JGCons.SDK_VERSION,channel:e.channel,resolution:n.screenWidth+"*"+n.screenHeight,os_version:n.osVersion,generation:i,content:Array.isArray(o)?o:[o]}]})})}(c)];case 1:return i=t.sent(),p.Log.d(f,"report json:"+JSON.stringify(i)),navigator.sendBeacon&&1==u?(s=v.JGCons.ReportHost+"/web/beacon/report",p.Log.d(f,"report url:"+s),o=navigator.sendBeacon(s,JSON.stringify(i)),p.Log.dd(f,"report with navigator.sendBeacon, in queue:"+o),o&&m.reportFailCache.delete(e),[3,4]):[3,2];case 2:return s=v.JGCons.ReportHost+"/web/report",p.Log.d(f,"report url:"+s),[4,d.httpReport({url:s,method:"POST",param:JSON.stringify(i),async:!0,header:{Accept:"application/jason","X-App-Key":n.appKey,"X-Jpush-UID":r.uid,"Access-Control-Allow-Origin":"*"}})];case 3:return(a=t.sent()).statusCode==v.MESSAGE_STATUS_SUCC&&m.reportFailCache.delete(e),[2,a];case 4:return[2]}})})}},function(t,e,n){"use strict";e.__esModule=!0;var u=n(1),h=n(2),l=n(0),s=n(4),a=n(3),f="EventManager",p=l.JGCons.CUSTOM_EVENT.KEY_VALUE_SIZE_LIMIT,d=l.JGCons.CUSTOM_EVENT.REG_EXP,g="jg_OPERATE_CONFIG",v="jg_OPERATE_CONFIG_RequestInterval",y="jg_OPERATE_CONFIG_RequestDate",m="jg_OPERATE_TMP_EVENT",E="jg_OPERATE_CONFIG_STATE";!function(t){t.getCommonProperities=function(){var t=JSON.parse(JSON.stringify(i));if(r){var e=r();for(var n in e)t[n]=e[n]}return t};var r,i={};function e(){var t=s.get(l.JGCons.CUSTOM_EVENT.LOCAL_COMMON_ATTRIBUTES);t&&"{}"!==JSON.stringify(t)&&(i=t)}function o(t,e){if(!t||"object"!=typeof t)return{code:1,attrs:{}};var n=t,r=0;for(var i in t){if(-1!=i.indexOf("jg")&&-1==e.indexOf(i))return c("This event will not record, because event name: "+i+" is invalid, you can't use jg as a prefix"),{code:2};if(!i.match(d))return c("The "+i+" must be alphanumeric and underscore, and start with letters"),{code:2};if(h.byteCount(i)>p)return c("The "+i+" size must be less than "+p+" bytes"),{code:2};var o=typeof t[i];if(-1==["string","number","boolean","object"].indexOf(o)&&(c("The event property "+o+" will not record, the value in extra must be String or Number"),delete n[i]),"object"===o&&t[i].length)for(var s=0;s<t[i].length;s++)"string"!=typeof t[i][s]&&c("The event property "+i+" will not record, the value in extra and in NSSet/NSArray must be String");var a=t[i];null!=a&&void 0!==a?(h.byteCount(a+"")>p&&(u.Log.ww(f,a+" is too long, it will be trimed to "+p+" bytes"),a=h.trimStr(a,p)),r++,n[i]=a):u.Log.ww(f,"Parameter invalid,value of "+i+" is empty")}return r>l.JGCons.CUSTOM_EVENT.EXT_KEY_COUNT_LIMIT?(u.Log.ee(f,"This event will not record, since you have more than "+l.JGCons.CUSTOM_EVENT.EXT_KEY_COUNT_LIMIT+" pairs of custom extra key/value"),{code:2}):{code:1,attrs:n}}function c(t){u.Log.ee(f,"Parameter invalid,"+t)}function n(t){return a.getInitConfig().appKey+t}t.readLocalCommonAttr=e,t.setEventCommonAttr=function(t){var e=o(t,[]);if(1==e.code){var n=function(t,e,n,r){if(!e||"{}"===JSON.stringify(e))return t||{};for(var i in t||(t={}),t)e[i]&&(t[i]=e[i],delete e[i]);var o={};for(var i in e)o[i]=e[i];var s=Object.keys(t).length;for(var i in e){if(n<=s)return u.Log.ww(f,"the number of event "+r+" has reached "+n+" pairs, the keys:"+Object.keys(o)+" will be discard"),t;e[i]&&(s++,t[i]=e[i]),delete o[i]}return t}(i,e.attrs,l.JGCons.CUSTOM_EVENT.COM_KEY_COUNT_LIMIT,"common attributes");i=n,u.Log.dd(f,"setEventCommonAttr:"+JSON.stringify(i)),s.set(l.JGCons.CUSTOM_EVENT.LOCAL_COMMON_ATTRIBUTES,i)}},t.currentEventCommonAttr=function(){return e(),i},t.clearEventCommonAttr=function(){u.Log.d(f,"clearEventCommonAttr"),i={},s.remove(l.JGCons.CUSTOM_EVENT.LOCAL_COMMON_ATTRIBUTES)},t.setEventDynamicAttr=function(t){t instanceof Function&&(r=t)},t._checkAttrs=o,t.saveEventConfig=function(t){s.set(n(g),t)},t.loadEventConfig=function(){return s.get(n(g))},t.removeEventConfig=function(){s.remove(n(g))},t.saveEventRequestInterval=function(t){s.set(n(v),t)},t.loadEventRequestInterval=function(){return s.get(n(v))},t.saveEventRequestDate=function(t){s.set(n(y),t)},t.loadEventRequestDate=function(){return s.get(n(y))},t.saveTmpEvents=function(t){s.set(n(m),t)},t.loadTmpEvents=function(){return s.get(n(m))},t.removeTmpEvents=function(){return s.remove(n(m))},t.saveEventConfigState=function(t){s.set(n(E),t)},t.loadEventConfigState=function(){return s.get(n(E))}}(e.EventHelper||(e.EventHelper={}))},function(t){t.exports={version:"3.2.1"}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(9),o=n(4),i=n(2),s=n(0).JGCons.LOCAL.SUFFIX.LOCAL_VARIABLE;function a(t){if(i.isEmpty(t))return null;var e=t.split("|");return{lReg:parseInt(e[0]),lRep:parseInt(e[1])}}e.getLocalVariable=function(t){var e=t+s,n=a(o.getLocal(e));return n||(n=a(o.getCookie(e)))||new r.LocalVariable},e.clearLocalVariable=function(t){var e=t+s;o.removeLocal(e)||o.removeCookie(e)},e.setLocalVariable=function(t,e,n){var r=t+s,i=e+"|"+n;o.setLocal(r,i)||o.setCookie(r,i)}},function(t,e,n){var _,l,r,i,o,s,f,a,c,u,h,p,d,g,v,y,m,E,S,b,T,w,A,C,I,O,D,B,R,x,L,M,N,k,P,U,H,V,j,G,F,J,K,q,z,W,X,Y,Z,Q,$,tt,et,nt,rt,it,ot,st,at,ct,ut,ht,lt,ft,pt,dt,gt,vt,yt,mt,Et,St,_t,bt,Tt,wt,At,Ct,It,Ot,Dt,Bt,Rt;t.exports=(_=_||(l=Math,r=Object.create||function(){function n(){}return function(t){var e;return n.prototype=t,e=new n,n.prototype=null,e}}(),o=(i={}).lib={},s=o.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},f=o.WordArray=s.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var o=0;o<i;o+=4)e[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=l.ceil(e/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e,n=[],r=function(e){var e=e,n=987654321,r=4294967295;return function(){var t=((n=36969*(65535&n)+(n>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return t/=4294967296,(t+=.5)*(.5<l.random()?1:-1)}},i=0;i<t;i+=4){var o=r(4294967296*(e||l.random()));e=987654071*o(),n.push(4294967296*o()|0)}return new f.init(n,t)}}),a=i.enc={},c=a.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new f.init(n,e/2)}},u=a.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new f.init(n,e)}},h=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},p=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,n=e.words,r=e.sigBytes,i=this.blockSize,o=4*i,s=r/o,a=(s=t?l.ceil(s):l.max((0|s)-this._minBufferSize,0))*i,c=l.min(4*a,r);if(a){for(var u=0;u<a;u+=i)this._doProcessBlock(n,u);var h=n.splice(0,a);e.sigBytes-=c}return new f.init(h,c)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),o.Hasher=p.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(n){return function(t,e){return new n.init(e).finalize(t)}},_createHmacHelper:function(n){return function(t,e){return new d.HMAC.init(n,e).finalize(t)}}}),d=i.algo={},i),Rt=(Bt=_).lib.WordArray,Bt.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)i.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return function(t,e,n){for(var r=[],i=0,o=0;o<e;o++)if(o%4){var s=n[t.charCodeAt(o-1)]<<o%4*2,a=n[t.charCodeAt(o)]>>>6-o%4*2;r[i>>>2]|=(s|a)<<24-i%4*8,i++}return Rt.create(r,i)}(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(h){var t=_,e=t.lib,n=e.WordArray,r=e.Hasher,i=t.algo,C=[];!function(){for(var t=0;t<64;t++)C[t]=4294967296*h.abs(h.sin(t+1))|0}();var o=i.MD5=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=t[e+0],a=t[e+1],c=t[e+2],u=t[e+3],h=t[e+4],l=t[e+5],f=t[e+6],p=t[e+7],d=t[e+8],g=t[e+9],v=t[e+10],y=t[e+11],m=t[e+12],E=t[e+13],S=t[e+14],_=t[e+15],b=o[0],T=o[1],w=o[2],A=o[3];T=B(T=B(T=B(T=B(T=D(T=D(T=D(T=D(T=O(T=O(T=O(T=O(T=I(T=I(T=I(T=I(T,w=I(w,A=I(A,b=I(b,T,w,A,s,7,C[0]),T,w,a,12,C[1]),b,T,c,17,C[2]),A,b,u,22,C[3]),w=I(w,A=I(A,b=I(b,T,w,A,h,7,C[4]),T,w,l,12,C[5]),b,T,f,17,C[6]),A,b,p,22,C[7]),w=I(w,A=I(A,b=I(b,T,w,A,d,7,C[8]),T,w,g,12,C[9]),b,T,v,17,C[10]),A,b,y,22,C[11]),w=I(w,A=I(A,b=I(b,T,w,A,m,7,C[12]),T,w,E,12,C[13]),b,T,S,17,C[14]),A,b,_,22,C[15]),w=O(w,A=O(A,b=O(b,T,w,A,a,5,C[16]),T,w,f,9,C[17]),b,T,y,14,C[18]),A,b,s,20,C[19]),w=O(w,A=O(A,b=O(b,T,w,A,l,5,C[20]),T,w,v,9,C[21]),b,T,_,14,C[22]),A,b,h,20,C[23]),w=O(w,A=O(A,b=O(b,T,w,A,g,5,C[24]),T,w,S,9,C[25]),b,T,u,14,C[26]),A,b,d,20,C[27]),w=O(w,A=O(A,b=O(b,T,w,A,E,5,C[28]),T,w,c,9,C[29]),b,T,p,14,C[30]),A,b,m,20,C[31]),w=D(w,A=D(A,b=D(b,T,w,A,l,4,C[32]),T,w,d,11,C[33]),b,T,y,16,C[34]),A,b,S,23,C[35]),w=D(w,A=D(A,b=D(b,T,w,A,a,4,C[36]),T,w,h,11,C[37]),b,T,p,16,C[38]),A,b,v,23,C[39]),w=D(w,A=D(A,b=D(b,T,w,A,E,4,C[40]),T,w,s,11,C[41]),b,T,u,16,C[42]),A,b,f,23,C[43]),w=D(w,A=D(A,b=D(b,T,w,A,g,4,C[44]),T,w,m,11,C[45]),b,T,_,16,C[46]),A,b,c,23,C[47]),w=B(w,A=B(A,b=B(b,T,w,A,s,6,C[48]),T,w,p,10,C[49]),b,T,S,15,C[50]),A,b,l,21,C[51]),w=B(w,A=B(A,b=B(b,T,w,A,m,6,C[52]),T,w,u,10,C[53]),b,T,v,15,C[54]),A,b,a,21,C[55]),w=B(w,A=B(A,b=B(b,T,w,A,d,6,C[56]),T,w,_,10,C[57]),b,T,f,15,C[58]),A,b,E,21,C[59]),w=B(w,A=B(A,b=B(b,T,w,A,h,6,C[60]),T,w,y,10,C[61]),b,T,c,15,C[62]),A,b,g,21,C[63]),o[0]=o[0]+b|0,o[1]=o[1]+T|0,o[2]=o[2]+w|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32;var i=h.floor(n/4294967296),o=n;e[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(e.length+1),this._process();for(var s=this._hash,a=s.words,c=0;c<4;c++){var u=a[c];a[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function I(t,e,n,r,i,o,s){var a=t+(e&n|~e&r)+i+s;return(a<<o|a>>>32-o)+e}function O(t,e,n,r,i,o,s){var a=t+(e&r|n&~r)+i+s;return(a<<o|a>>>32-o)+e}function D(t,e,n,r,i,o,s){var a=t+(e^n^r)+i+s;return(a<<o|a>>>32-o)+e}function B(t,e,n,r,i,o,s){var a=t+(n^(e|~r))+i+s;return(a<<o|a>>>32-o)+e}t.MD5=r._createHelper(o),t.HmacMD5=r._createHmacHelper(o)}(Math),wt=(Tt=_).lib,At=wt.WordArray,Ct=wt.Hasher,It=Tt.algo,Ot=[],Dt=It.SHA1=Ct.extend({_doReset:function(){this._hash=new At.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=0;c<80;c++){if(c<16)Ot[c]=0|t[e+c];else{var u=Ot[c-3]^Ot[c-8]^Ot[c-14]^Ot[c-16];Ot[c]=u<<1|u>>>31}var h=(r<<5|r>>>27)+a+Ot[c];h+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=Ct.clone.call(this);return t._hash=this._hash.clone(),t}}),Tt.SHA1=Ct._createHelper(Dt),Tt.HmacSHA1=Ct._createHmacHelper(Dt),function(i){var t=_,e=t.lib,n=e.WordArray,r=e.Hasher,o=t.algo,s=[],E=[];!function(){function t(t){for(var e=i.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,r=0;r<64;)t(n)&&(r<8&&(s[r]=e(i.pow(n,.5))),E[r]=e(i.pow(n,1/3)),r++),n++}();var S=[],a=o.SHA256=r.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],l=0;l<64;l++){if(l<16)S[l]=0|t[e+l];else{var f=S[l-15],p=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,d=S[l-2],g=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;S[l]=p+S[l-7]+g+S[l-16]}var v=r&i^r&o^i&o,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&u)+E[l]+S[l];h=u,u=c,c=a,a=s+m|0,s=o,o=i,i=r,r=m+(y+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=i.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA256=r._createHelper(a),t.HmacSHA256=r._createHmacHelper(a)}(Math),function(){var t=_,i=t.lib.WordArray,e=t.enc;function s(t){return t<<8&4278255360|t>>>8&16711935}e.Utf16=e.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}},e.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=s(e[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=s(t.charCodeAt(r)<<16-r%2*16);return i.create(n,2*e)}}}(),function(){if("function"==typeof ArrayBuffer){var t=_.lib.WordArray,i=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r<e;r++)n[r>>>2]|=t[r]<<24-r%4*8;i.call(this,n,e)}else i.apply(this,arguments)}).prototype=t}}(),
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function(t){var e=_,n=e.lib,r=n.WordArray,i=n.Hasher,o=e.algo,T=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),w=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),A=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),C=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),I=r.create([0,1518500249,1859775393,2400959708,2840853838]),O=r.create([1352829926,1548603684,1836072691,2053994217,0]),s=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,a,c,u,h,l,f,p,d,g,v=this._hash.words,y=I.words,m=O.words,E=T.words,S=w.words,_=A.words,b=C.words;for(h=o=v[0],l=s=v[1],f=a=v[2],p=c=v[3],d=u=v[4],n=0;n<80;n+=1)g=o+t[e+E[n]]|0,g+=n<16?D(s,a,c)+y[0]:n<32?B(s,a,c)+y[1]:n<48?R(s,a,c)+y[2]:n<64?x(s,a,c)+y[3]:L(s,a,c)+y[4],g=(g=M(g|=0,_[n]))+u|0,o=u,u=c,c=M(a,10),a=s,s=g,g=h+t[e+S[n]]|0,g+=n<16?L(l,f,p)+m[0]:n<32?x(l,f,p)+m[1]:n<48?R(l,f,p)+m[2]:n<64?B(l,f,p)+m[3]:D(l,f,p)+m[4],g=(g=M(g|=0,b[n]))+d|0,h=d,d=p,p=M(f,10),f=l,l=g;g=v[1]+a+p|0,v[1]=v[2]+c+d|0,v[2]=v[3]+u+h|0,v[3]=v[4]+o+l|0,v[4]=v[0]+s+f|0,v[0]=g},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function D(t,e,n){return t^e^n}function B(t,e,n){return t&e|~t&n}function R(t,e,n){return(t|~e)^n}function x(t,e,n){return t&n|e&~n}function L(t,e,n){return t^(e|~n)}function M(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(s),e.HmacRIPEMD160=i._createHmacHelper(s)}(Math),_t=(St=_).lib.Base,bt=St.enc.Utf8,St.algo.HMAC=_t.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=bt.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,a=o.words,c=0;c<n;c++)s[c]^=1549556828,a[c]^=909522486;i.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}}),pt=(ft=_).lib,dt=pt.Base,gt=pt.WordArray,vt=ft.algo,yt=vt.SHA1,mt=vt.HMAC,Et=vt.PBKDF2=dt.extend({cfg:dt.extend({keySize:4,hasher:yt,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=mt.create(n.hasher,t),i=gt.create(),o=gt.create([1]),s=i.words,a=o.words,c=n.keySize,u=n.iterations;s.length<c;){var h=r.update(e).finalize(o);r.reset();for(var l=h.words,f=l.length,p=h,d=1;d<u;d++){p=r.finalize(p),r.reset();for(var g=p.words,v=0;v<f;v++)l[v]^=g[v]}i.concat(h),a[0]++}return i.sigBytes=4*c,i}}),ft.PBKDF2=function(t,e,n){return Et.create(n).compute(t,e)},st=(ot=_).lib,at=st.Base,ct=st.WordArray,ut=ot.algo,ht=ut.MD5,lt=ut.EvpKDF=at.extend({cfg:at.extend({keySize:4,hasher:ht,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=n.hasher.create(),i=ct.create(),o=i.words,s=n.keySize,a=n.iterations;o.length<s;){c&&r.update(c);var c=r.update(t).finalize(e);r.reset();for(var u=1;u<a;u++)c=r.finalize(c),r.reset();i.concat(c)}return i.sigBytes=4*s,i}}),ot.EvpKDF=function(t,e,n){return lt.create(n).compute(t,e)},et=(tt=_).lib.WordArray,nt=tt.algo,rt=nt.SHA256,it=nt.SHA224=rt.extend({_doReset:function(){this._hash=new et.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=rt._doFinalize.call(this);return t.sigBytes-=4,t}}),tt.SHA224=rt._createHelper(it),tt.HmacSHA224=rt._createHmacHelper(it),Y=(X=_).lib,Z=Y.Base,Q=Y.WordArray,($=X.x64={}).Word=Z.extend({init:function(t,e){this.high=t,this.low=e}}),$.WordArray=Z.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return Q.create(n,this.sigBytes)},clone:function(){for(var t=Z.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}}),function(f){var t=_,e=t.lib,p=e.WordArray,r=e.Hasher,h=t.x64.Word,n=t.algo,D=[],B=[],R=[];!function(){for(var t=1,e=0,n=0;n<24;n++){D[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)B[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,a=0,c=0;c<7;c++){if(1&i){var u=(1<<c)-1;u<32?a^=1<<u:s^=1<<u-32}128&i?i=i<<1^113:i<<=1}R[o]=h.create(s,a)}}();var x=[];!function(){for(var t=0;t<25;t++)x[t]=h.create()}();var i=n.SHA3=r.extend({cfg:r.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new h.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],s=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(w=n[i]).high^=s,w.low^=o}for(var a=0;a<24;a++){for(var c=0;c<5;c++){for(var u=0,h=0,l=0;l<5;l++)u^=(w=n[c+5*l]).high,h^=w.low;var f=x[c];f.high=u,f.low=h}for(c=0;c<5;c++){var p=x[(c+4)%5],d=x[(c+1)%5],g=d.high,v=d.low;for(u=p.high^(g<<1|v>>>31),h=p.low^(v<<1|g>>>31),l=0;l<5;l++)(w=n[c+5*l]).high^=u,w.low^=h}for(var y=1;y<25;y++){var m=(w=n[y]).high,E=w.low,S=D[y];h=S<32?(u=m<<S|E>>>32-S,E<<S|m>>>32-S):(u=E<<S-32|m>>>64-S,m<<S-32|E>>>64-S);var _=x[B[y]];_.high=u,_.low=h}var b=x[0],T=n[0];for(b.high=T.high,b.low=T.low,c=0;c<5;c++)for(l=0;l<5;l++){var w=n[y=c+5*l],A=x[y],C=x[(c+1)%5+5*l],I=x[(c+2)%5+5*l];w.high=A.high^~C.high&I.high,w.low=A.low^~C.low&I.low}w=n[0];var O=R[a];w.high^=O.high,w.low^=O.low}},_doFinalize:function(){var t=this._data,e=t.words,n=(this._nDataBytes,8*t.sigBytes),r=32*this.blockSize;e[n>>>5]|=1<<24-n%32,e[(f.ceil((n+1)/r)*r>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();for(var i=this._state,o=this.cfg.outputLength/8,s=o/8,a=[],c=0;c<s;c++){var u=i[c],h=u.high,l=u.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),a.push(l),a.push(h)}return new p.init(a,o)},clone:function(){for(var t=r.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});t.SHA3=r._createHelper(i),t.HmacSHA3=r._createHmacHelper(i)}(Math),function(){var t=_,e=t.lib.Hasher,n=t.x64,r=n.Word,i=n.WordArray,o=t.algo;function s(){return r.create.apply(r,arguments)}var Tt=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],wt=[];!function(){for(var t=0;t<80;t++)wt[t]=s()}();var a=o.SHA512=e.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],l=r.high,f=r.low,p=i.high,d=i.low,g=o.high,v=o.low,y=s.high,m=s.low,E=a.high,S=a.low,_=c.high,b=c.low,T=u.high,w=u.low,A=h.high,C=h.low,I=l,O=f,D=p,B=d,R=g,x=v,L=y,M=m,N=E,k=S,P=_,U=b,H=T,V=w,j=A,G=C,F=0;F<80;F++){var J=wt[F];if(F<16)var K=J.high=0|t[e+2*F],q=J.low=0|t[e+2*F+1];else{var z=wt[F-15],W=z.high,X=z.low,Y=(W>>>1|X<<31)^(W>>>8|X<<24)^W>>>7,Z=(X>>>1|W<<31)^(X>>>8|W<<24)^(X>>>7|W<<25),Q=wt[F-2],$=Q.high,tt=Q.low,et=($>>>19|tt<<13)^($<<3|tt>>>29)^$>>>6,nt=(tt>>>19|$<<13)^(tt<<3|$>>>29)^(tt>>>6|$<<26),rt=wt[F-7],it=rt.high,ot=rt.low,st=wt[F-16],at=st.high,ct=st.low;K=(K=(K=Y+it+((q=Z+ot)>>>0<Z>>>0?1:0))+et+((q+=nt)>>>0<nt>>>0?1:0))+at+((q+=ct)>>>0<ct>>>0?1:0),J.high=K,J.low=q}var ut,ht=N&P^~N&H,lt=k&U^~k&V,ft=I&D^I&R^D&R,pt=O&B^O&x^B&x,dt=(I>>>28|O<<4)^(I<<30|O>>>2)^(I<<25|O>>>7),gt=(O>>>28|I<<4)^(O<<30|I>>>2)^(O<<25|I>>>7),vt=(N>>>14|k<<18)^(N>>>18|k<<14)^(N<<23|k>>>9),yt=(k>>>14|N<<18)^(k>>>18|N<<14)^(k<<23|N>>>9),mt=Tt[F],Et=mt.high,St=mt.low,_t=j+vt+((ut=G+yt)>>>0<G>>>0?1:0),bt=gt+pt;j=H,G=V,H=P,V=U,P=N,U=k,N=L+(_t=(_t=(_t=_t+ht+((ut+=lt)>>>0<lt>>>0?1:0))+Et+((ut+=St)>>>0<St>>>0?1:0))+K+((ut+=q)>>>0<q>>>0?1:0))+((k=M+ut|0)>>>0<M>>>0?1:0)|0,L=R,M=x,R=D,x=B,D=I,B=O,I=_t+(dt+ft+(bt>>>0<gt>>>0?1:0))+((O=ut+bt|0)>>>0<ut>>>0?1:0)|0}f=r.low=f+O,r.high=l+I+(f>>>0<O>>>0?1:0),d=i.low=d+B,i.high=p+D+(d>>>0<B>>>0?1:0),v=o.low=v+x,o.high=g+R+(v>>>0<x>>>0?1:0),m=s.low=m+M,s.high=y+L+(m>>>0<M>>>0?1:0),S=a.low=S+k,a.high=E+N+(S>>>0<k>>>0?1:0),b=c.low=b+U,c.high=_+P+(b>>>0<U>>>0?1:0),w=u.low=w+V,u.high=T+H+(w>>>0<V>>>0?1:0),C=h.low=C+G,h.high=A+j+(C>>>0<G>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(a),t.HmacSHA512=e._createHmacHelper(a)}(),F=(G=_).x64,J=F.Word,K=F.WordArray,q=G.algo,z=q.SHA512,W=q.SHA384=z.extend({_doReset:function(){this._hash=new K.init([new J.init(3418070365,3238371032),new J.init(1654270250,914150663),new J.init(2438529370,812702999),new J.init(355462360,4144912697),new J.init(1731405415,4290775857),new J.init(2394180231,1750603025),new J.init(3675008525,1694076839),new J.init(1203062813,3204075428)])},_doFinalize:function(){var t=z._doFinalize.call(this);return t.sigBytes-=16,t}}),G.SHA384=z._createHelper(W),G.HmacSHA384=z._createHmacHelper(W),_.lib.Cipher||(A=(w=_).lib,C=A.Base,I=A.WordArray,O=A.BufferedBlockAlgorithm,(D=w.enc).Utf8,B=D.Base64,R=w.algo.EvpKDF,x=A.Cipher=O.extend({cfg:C.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){O.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function i(t){return"string"==typeof t?j:H}return function(r){return{encrypt:function(t,e,n){return i(e).encrypt(r,t,e,n)},decrypt:function(t,e,n){return i(e).decrypt(r,t,e,n)}}}}()}),A.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),L=w.mode={},M=A.BlockCipherMode=C.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),N=L.CBC=function(){var t=M.extend();function o(t,e,n){var r=this._iv;if(r){var i=r;this._iv=void 0}else i=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize;o.call(this,t,e,r),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=t.slice(e,e+r);n.decryptBlock(t,e),o.call(this,t,e,r),this._prevBlock=i}}),t}(),k=(w.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var a=I.create(o,r);t.concat(a)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},A.BlockCipher=x.extend({cfg:x.cfg.extend({mode:N,padding:k}),reset:function(){x.reset.call(this);var t=this.cfg,e=t.iv,n=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==r?this._mode.init(this,e&&e.words):(this._mode=r.call(n,this,e&&e.words),this._mode.__creator=r)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4}),P=A.CipherParams=C.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),U=(w.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;if(n)var r=I.create([1398893684,1701076831]).concat(n).concat(e);else r=e;return r.toString(B)},parse:function(t){var e=B.parse(t),n=e.words;if(1398893684==n[0]&&1701076831==n[1]){var r=I.create(n.slice(2,4));n.splice(0,4),e.sigBytes-=16}return P.create({ciphertext:e,salt:r})}},H=A.SerializableCipher=C.extend({cfg:C.extend({format:U}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return P.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),V=(w.kdf={}).OpenSSL={execute:function(t,e,n,r){r||(r=I.random(8));var i=R.create({keySize:e+n}).compute(t,r),o=I.create(i.words.slice(e),4*n);return i.sigBytes=4*e,P.create({key:i,iv:o,salt:r})}},j=A.PasswordBasedCipher=H.extend({cfg:H.cfg.extend({kdf:V}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var o=H.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);return r.iv=i.iv,H.decrypt.call(this,t,e,i.key,r)}})),_.mode.CFB=function(){var t=_.lib.BlockCipherMode.extend();function o(t,e,n,r){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;r.encryptBlock(o,0);for(var s=0;s<n;s++)t[e+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize;o.call(this,t,e,r,n),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=t.slice(e,e+r);o.call(this,t,e,r,n),this._prevBlock=i}}),t}(),_.mode.ECB=((T=_.lib.BlockCipherMode.extend()).Encryptor=T.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),T.Decryptor=T.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),T),_.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},_.pad.Iso10126={pad:function(t,e){var n=4*e,r=n-t.sigBytes%n;t.concat(_.lib.WordArray.random(r-1)).concat(_.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},_.pad.Iso97971={pad:function(t,e){t.concat(_.lib.WordArray.create([2147483648],1)),_.pad.ZeroPadding.pad(t,e)},unpad:function(t){_.pad.ZeroPadding.unpad(t),t.sigBytes--}},_.mode.OFB=(S=_.lib.BlockCipherMode.extend(),b=S.Encryptor=S.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}}),S.Decryptor=b,S),_.pad.NoPadding={pad:function(){},unpad:function(){}},m=(y=_).lib.CipherParams,E=y.enc.Hex,y.format.Hex={stringify:function(t){return t.ciphertext.toString(E)},parse:function(t){var e=E.parse(t);return m.create({ciphertext:e})}},function(){var t=_,e=t.lib.BlockCipher,n=t.algo,u=[],h=[],l=[],f=[],p=[],d=[],g=[],v=[],y=[],m=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^255&i^99,u[n]=i;var o=t[h[i]=n],s=t[o],a=t[s],c=257*t[i]^16843008*i;l[n]=c<<24|c>>>8,f[n]=c<<16|c>>>16,p[n]=c<<8|c>>>24,d[n]=c,c=16843009*a^65537*s^257*o^16843008*n,g[i]=c<<24|c>>>8,v[i]=c<<16|c>>>16,y[i]=c<<8|c>>>24,m[i]=c,n?(n=o^t[t[t[a^o]]],r^=t[t[r]]):n=r=1}}();var E=[0,1,2,4,8,16,32,64,128,27,54],r=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],o=0;o<r;o++)if(o<n)i[o]=e[o];else{var s=i[o-1];o%n?6<n&&o%n==4&&(s=u[s>>>24]<<24|u[s>>>16&255]<<16|u[s>>>8&255]<<8|u[255&s]):(s=u[(s=s<<8|s>>>24)>>>24]<<24|u[s>>>16&255]<<16|u[s>>>8&255]<<8|u[255&s],s^=E[o/n|0]<<24),i[o]=i[o-n]^s}for(var a=this._invKeySchedule=[],c=0;c<r;c++)o=r-c,s=c%4?i[o]:i[o-4],a[c]=c<4||o<=4?s:g[u[s>>>24]]^v[u[s>>>16&255]]^y[u[s>>>8&255]]^m[u[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,l,f,p,d,u)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,g,v,y,m,h),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,s,a){for(var c=this._nRounds,u=t[e]^n[0],h=t[e+1]^n[1],l=t[e+2]^n[2],f=t[e+3]^n[3],p=4,d=1;d<c;d++){var g=r[u>>>24]^i[h>>>16&255]^o[l>>>8&255]^s[255&f]^n[p++],v=r[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^s[255&u]^n[p++],y=r[l>>>24]^i[f>>>16&255]^o[u>>>8&255]^s[255&h]^n[p++],m=r[f>>>24]^i[u>>>16&255]^o[h>>>8&255]^s[255&l]^n[p++];u=g,h=v,l=y,f=m}g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^n[p++],v=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^n[p++],y=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[p++],m=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^n[p++],t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=m},keySize:8});t.AES=e._createHelper(r)}(),function(){var t=_,e=t.lib,n=e.WordArray,r=e.BlockCipher,i=t.algo,u=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=i.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=u[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var s=i[o]=[],a=l[o];for(n=0;n<24;n++)s[n/6|0]|=e[(h[n]-1+a)%28]<<31-n%6,s[4+(n/6|0)]|=e[28+(h[n+24]-1+a)%28]<<31-n%6;for(s[0]=s[0]<<1|s[0]>>>31,n=1;n<7;n++)s[n]=s[n]>>>4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}var c=this._invSubKeys=[];for(n=0;n<16;n++)c[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=f[c][((s^i[c])&p[c])>>>0];this._lBlock=s,this._rBlock=o^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function g(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=r._createHelper(o);var s=i.TripleDES=r.extend({_doReset:function(){var t=this._key.words;this._des1=o.createEncryptor(n.create(t.slice(0,2))),this._des2=o.createEncryptor(n.create(t.slice(2,4))),this._des3=o.createEncryptor(n.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(s)}(),function(){var t=_,e=t.lib.StreamCipher,n=t.algo,r=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;for(var o=i=0;i<256;i++){var s=i%n,a=e[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var c=r[i];r[i]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(r);var o=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;0<t;t--)i.call(this)}});t.RC4Drop=e._createHelper(o)}(),
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby [email protected]
*/
_.mode.CTRGladman=function(){var t=_.lib.BlockCipherMode.extend();function u(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}var e=t.Encryptor=t.extend({processBlock:function(t,e){var n,r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),0===((n=s)[0]=u(n[0]))&&(n[1]=u(n[1]));var a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)t[e+c]^=a[c]}});return t.Decryptor=e,t}(),function(){var t=_,e=t.lib.StreamCipher,n=t.algo,i=[],c=[],u=[],r=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(n=this._b=0;n<4;n++)f.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=c>>>16|4294901760&u,l=u<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=u,i[3]^=l,i[4]^=c,i[5]^=h,i[6]^=u,i[7]^=l,n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(t,e){var n=this._X;f.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function f(){for(var t=this._X,e=this._C,n=0;n<8;n++)c[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<c[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<c[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<c[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<c[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<c[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<c[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<c[6]>>>0?1:0)|0,this._b=e[7]>>>0<c[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,s=((i*i>>>17)+i*o>>>15)+o*o,a=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=s^a}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}t.Rabbit=e._createHelper(r)}(),_.mode.CTR=(g=_.lib.BlockCipherMode.extend(),v=g.Encryptor=g.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)t[e+a]^=s[a]}}),g.Decryptor=v,g),function(){var t=_,e=t.lib.StreamCipher,n=t.algo,i=[],c=[],u=[],r=n.RabbitLegacy=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]],i=this._b=0;i<4;i++)f.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=c>>>16|4294901760&u,l=u<<16|65535&c;for(r[0]^=c,r[1]^=h,r[2]^=u,r[3]^=l,r[4]^=c,r[5]^=h,r[6]^=u,r[7]^=l,i=0;i<4;i++)f.call(this)}},_doProcessBlock:function(t,e){var n=this._X;f.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function f(){for(var t=this._X,e=this._C,n=0;n<8;n++)c[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<c[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<c[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<c[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<c[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<c[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<c[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<c[6]>>>0?1:0)|0,this._b=e[7]>>>0<c[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,s=((i*i>>>17)+i*o>>>15)+o*o,a=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=s^a}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}t.RabbitLegacy=e._createHelper(r)}(),_.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){for(var e=t.words,n=t.sigBytes-1;!(e[n>>>2]>>>24-n%4*8&255);)n--;t.sigBytes=n+1}},_)},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(o,s,a,c){return new(a||(a=Promise))(function(t,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((c=c.apply(o,s||[])).next())})},h=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};e.__esModule=!0;var f=n(10),u=n(1),c=n(2),p=n(4),i=n(0),d="ReportCache",o=function(){function t(){this.cacheload=new c.MPromise}return t.prototype.init=function(){return r(this,void 0,void 0,function(){var e,n,r,i,o,s,a,c,u;return h(this,function(t){switch(t.label){case 0:return[4,this.loadData()];case 1:if(t.sent(),r=[],!(0<Object.keys(this.obj).length))return[3,4];for(i in this.obj)if(o=this.obj[i],Array.isArray(o))try{for(s=l(o),a=s.next();!a.done;a=s.next())c=a.value,r.push(c)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}else r.push(o);return 0<r.length?[4,f.ReportHelper.report(r)]:[3,4];case 2:return(u=t.sent())&&1==u.statusCode?(this.obj={},[4,this.sync()]):[3,4];case 3:t.sent(),t.label=4;case 4:return this.cacheload.resolve(this),[2]}})})},t.prototype.loadData=function(){return r(this,void 0,void 0,function(){var e;return h(this,function(t){return e=p.get(i.JGCons.LOCAL.CACHE_FAIL),this.obj=e?(u.Log.d(d,"load History cache:"+(e||"empty")),JSON.parse(e)):{},[2]})})},t.prototype.reportCache=function(){var e,t;if(this.obj){var n=this.obj;this.obj={},this.sync(),u.Log.d(d,"report cache");var r=[];if(0<Object.keys(n).length){for(var i in n){var o=n[i];if(Array.isArray(o))try{for(var s=l(o),a=s.next();!a.done;a=s.next()){var c=a.value;r.push(c)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else r.push(o)}0<r.length?f.ReportHelper.report(r):u.Log.d(d,"report cache is empty,stop report")}else u.Log.d(d,"report cache is empty,stop report")}else u.Log.d(d,"cache is empty")},t.prototype.add=function(e,n){this.cacheload.then(function(t){t.addInternal(e,n)})},t.prototype.addInternal=function(t,e){200<Object.keys(this.obj).length?u.Log.ww(d,"report fail catch is over size 500, "):(this.obj[t]=e,this.sync())},t.prototype.delete=function(e){this.cacheload.then(function(t){t.deleteInternal(e)})},t.prototype.deleteInternal=function(t){delete this.obj[t],this.sync()},t.prototype.sync=function(){return r(this,void 0,void 0,function(){return h(this,function(t){return p.set(i.JGCons.LOCAL.CACHE_FAIL,JSON.stringify(this.obj)),[2]})})},t}();e.reportFailCache=new o;var s=function(){function t(){this.isReporting=!1,this.requestingList={}}return t.prototype.add=function(t){var e=this;if(300<p.getCurrentLength())return u.Log.d(d,"cache count more than 300, events are reported immediately and will not be cached!"),void f.ReportHelper.report(t);var n="report-"+c.getRandomId();p.set(n,JSON.stringify(t)),this.requestingList[n]=1,f.ReportHelper.report(JSON.stringify(t)).then(function(t){t&&1==t.statusCode&&(p.remove(n),delete e.requestingList[n],e.reportCache())})},t.prototype.reportCache=function(){return r(this,void 0,void 0,function(){var e,n,r,i,o,s,a;return h(this,function(t){switch(t.label){case 0:if(u.Log.dd(d,"report cache"),this.isReporting)return u.Log.dd(d,"is reporting"),[2];if(this.isReporting=!0,e=p.getReportCache(),!c.isObject(e))return this.isReporting=!1,u.Log.dd(d,"report cache is empty,stop report"),[2];if(0==(n=Object.keys(e)).length)return this.isReporting=!1,u.Log.dd(d,"report cache is empty,stop report"),[2];i=r=0,t.label=1;case 1:return i<n.length?(o=n[i],this.requestingList[o]?[3,3]:(s=e[o],c.isObject(s)?[4,f.ReportHelper.report(s)]:(++r==n.length&&(this.isReporting=!1),[3,3]))):[3,4];case 2:(a=t.sent())&&1==a.statusCode&&p.remove(o),++r==n.length&&(this.isReporting=!1),t.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t}();e.reportQueueCache=new s},function(t,e,n){"use strict";n.r(e);var r="0123456789abcdefghijklmnopqrstuvwxyz";function c(t){return r.charAt(t)}function i(t,e){return t&e}function u(t,e){return t|e}function o(t,e){return t^e}function s(t,e){return t&~e}function a(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function h(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var l,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="=";function d(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=f.charAt(n>>6)+f.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=f.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=f.charAt(n>>2)+f.charAt((3&n)<<4));0<(3&r.length);)r+=p;return r}function g(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&t.charAt(e)!=p;++e){var o=f.indexOf(t.charAt(e));o<0||(r=0==r?(n+=c(o>>2),i=3&o,1):1==r?(n+=c(i<<2|o>>4),i=15&o,2):2==r?(n+=c(i),n+=c(o>>2),i=3&o,3):(n+=c(i<<2|o>>4),n+=c(15&o),0))}return 1==r&&(n+=c(i<<2)),n}var v,y=function(t){var e;if(void 0===l){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(l={},e=0;e<16;++e)l[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)l[n.charAt(e)]=e;for(e=0;e<r.length;++e)l[r.charAt(e)]=-1}var i=[],o=0,s=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=l[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,2<=++s?(i[i.length]=o,s=o=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},m={decode:function(t){var e;if(void 0===v){var n="= \f\n\r\t \u2028\u2029";for(v=Object.create(null),e=0;e<64;++e)v["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(v["-"]=62,v._=63,e=0;e<n.length;++e)v[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=v[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,4<=++o?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,o=i=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=m.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return m.decode(t)}},E=1e13,S=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<E?e=0:r-=(e=0|r/E)*E,i[n]=r;0<e&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)t=(n=r[e]-t)<0?(n+=E,1):0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;0<=r;--r)n+=(E+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;0<=n;--n)e=e*E+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),_="…",b=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,T=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function w(t,e){return t.length>e&&(t=t.substring(0,e)+_),t}var A,C=function(){function n(t,e){this.hexDigits="0123456789ABCDEF",this.pos=t instanceof n?(this.enc=t.enc,t.pos):(this.enc=t,e)}return n.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},n.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},n.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||176<r)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},n.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):191<i&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},n.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},n.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?b:T).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},n.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=127<r,o=i?255:0,s="";r==o&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(4<n){for(s=r,n<<=3;0==(128&(+s^o));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var a=new S(r),c=t+1;c<e;++c)a.mulAdd(256,this.get(c));return s+a.toString()},n.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",s=t+1;s<e;++s){for(var a=this.get(s),c=s==e-1?r:0,u=7;c<=u;--u)o+=a>>u&1?"1":"0";if(o.length>n)return i+w(o,n)}return i+o},n.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return w(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";(n/=2)<r&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return n<r&&(i+=_),i},n.prototype.parseOID=function(t,e,n){for(var r="",i=new S,o=0,s=t;s<e;++s){var a=this.get(s);if(i.mulAdd(128,127&a),o+=7,!(128&a)){if(""===r)if((i=i.simplify())instanceof S)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return w(r,n);i=new S,o=0}}return 0<o&&(r+=".incomplete"),r},n}(),I=function(){function h(t,e,n,r,i){if(!(r instanceof O))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return h.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},h.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return w(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return w(this.stream.parseStringISO(e,e+n),t);case 30:return w(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},h.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},h.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(0<=this.length&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},h.prototype.posStart=function(){return this.stream.pos},h.prototype.posContent=function(){return this.stream.pos+this.header},h.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},h.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},h.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(6<n)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;for(var r=e=0;r<n;++r)e=256*e+t.get();return e},h.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},h.decode=function(t){var r;r=t instanceof C?t:new C(t,0);var e=new C(r),n=new O(r),i=h.decodeLength(r),o=r.pos,s=o-e.pos,a=null,c=function(){var t=[];if(null!==i){for(var e=o+i;r.pos<e;)t[t.length]=h.decode(r);if(r.pos!=e)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var n=h.decode(r);if(n.tag.isEOC())break;t[t.length]=n}i=o-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return t};if(n.tagConstructed)a=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=c();for(var u=0;u<a.length;++u)if(a[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){a=null}if(null===a){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(i)}return new h(e,s,i,n,a)},h}(),O=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){for(var n=new S;e=t.get(),n.mulAdd(128,127&e),128&e;);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),D=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],B=(1<<26)/D[D.length-1],R=function(){function E(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return E.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(0<s--)for(a<this.DB&&0<(n=this[s]>>a)&&(i=!0,o=c(n));0<=s;)a<e?(n=(this[s]&(1<<a)-1)<<e-a,n|=this[--s]>>(a+=this.DB-e)):(n=this[s]>>(a-=e)&r,a<=0&&(a+=this.DB,--s)),0<n&&(i=!0),i&&(o+=c(n));return i?o:"0"},E.prototype.negate=function(){var t=k();return E.ZERO.subTo(this,t),t},E.prototype.abs=function(){return this.s<0?this.negate():this},E.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;0<=--n;)if(0!=(e=this[n]-t[n]))return e;return 0},E.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+J(this[this.t-1]^this.s&this.DM)},E.prototype.mod=function(t){var e=k();return this.abs().divRemTo(t,null,e),this.s<0&&0<e.compareTo(E.ZERO)&&t.subTo(e,e),e},E.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new L(e):new M(e),this.exp(t,n)},E.prototype.clone=function(){var t=k();return this.copyTo(t),t},E.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},E.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},E.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},E.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},E.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(0<t--)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);0<=t;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(0<i||n!=this.s)&&(e[i++]=n);return e},E.prototype.equals=function(t){return 0==this.compareTo(t)},E.prototype.min=function(t){return this.compareTo(t)<0?this:t},E.prototype.max=function(t){return 0<this.compareTo(t)?this:t},E.prototype.and=function(t){var e=k();return this.bitwiseTo(t,i,e),e},E.prototype.or=function(t){var e=k();return this.bitwiseTo(t,u,e),e},E.prototype.xor=function(t){var e=k();return this.bitwiseTo(t,o,e),e},E.prototype.andNot=function(t){var e=k();return this.bitwiseTo(t,s,e),e},E.prototype.not=function(){for(var t=k(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},E.prototype.shiftLeft=function(t){var e=k();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},E.prototype.shiftRight=function(t){var e=k();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},E.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+a(this[t]);return this.s<0?this.t*this.DB:-1},E.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=h(this[n]^e);return t},E.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},E.prototype.setBit=function(t){return this.changeBit(t,u)},E.prototype.clearBit=function(t){return this.changeBit(t,s)},E.prototype.flipBit=function(t){return this.changeBit(t,o)},E.prototype.add=function(t){var e=k();return this.addTo(t,e),e},E.prototype.subtract=function(t){var e=k();return this.subTo(t,e),e},E.prototype.multiply=function(t){var e=k();return this.multiplyTo(t,e),e},E.prototype.divide=function(t){var e=k();return this.divRemTo(t,e,null),e},E.prototype.remainder=function(t){var e=k();return this.divRemTo(t,null,e),e},E.prototype.divideAndRemainder=function(t){var e=k(),n=k();return this.divRemTo(t,e,n),[e,n]},E.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=F(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new L(e):e.isEven()?new N(e):new M(e);var s=[],a=3,c=n-1,u=(1<<n)-1;if(s[1]=r.convert(this),1<n){var h=k();for(r.sqrTo(s[1],h);a<=u;)s[a]=k(),r.mulTo(h,s[a-2],s[a]),a+=2}var l,f,p=t.t-1,d=!0,g=k();for(i=J(t[p])-1;0<=p;){for(c<=i?l=t[p]>>i-c&u:(l=(t[p]&(1<<i+1)-1)<<c-i,0<p&&(l|=t[p-1]>>this.DB+i-c)),a=n;0==(1&l);)l>>=1,--a;if((i-=a)<0&&(i+=this.DB,--p),d)s[l].copyTo(o),d=!1;else{for(;1<a;)r.sqrTo(o,g),r.sqrTo(g,o),a-=2;0<a?r.sqrTo(o,g):(f=o,o=g,g=f),r.mulTo(g,s[l],o)}for(;0<=p&&0==(t[p]&1<<i);)r.sqrTo(o,g),f=o,o=g,g=f,--i<0&&(i=this.DB-1,--p)}return r.revert(o)},E.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return E.ZERO;for(var n=t.clone(),r=this.clone(),i=F(1),o=F(0),s=F(0),a=F(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),e?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);0<=n.compareTo(r)?(n.subTo(r,n),e&&i.subTo(s,i),o.subTo(a,o)):(r.subTo(n,r),e&&s.subTo(i,s),a.subTo(o,a))}return 0!=r.compareTo(E.ONE)?E.ZERO:0<=a.compareTo(t)?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},E.prototype.pow=function(t){return this.exp(t,new x)},E.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),0<o&&(e.rShiftTo(o,e),n.rShiftTo(o,n));0<e.signum();)0<(i=e.getLowestSetBit())&&e.rShiftTo(i,e),0<(i=n.getLowestSetBit())&&n.rShiftTo(i,n),0<=e.compareTo(n)?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return 0<o&&n.lShiftTo(o,n),n},E.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=D[D.length-1]){for(e=0;e<D.length;++e)if(n[0]==D[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<D.length;){for(var r=D[e],i=e+1;i<D.length&&r<B;)r*=D[i++];for(r=n.modInt(r);e<i;)if(r%D[e++]==0)return!1}return n.millerRabin(t)},E.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},E.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},E.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var r=t.length,i=!1,o=0;0<=--r;){var s=8==n?255&+t[r]:G(t,r);s<0?"-"==t.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&+t[0])&&(this.s=-1,0<o&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&E.ZERO.subTo(this,this)},E.prototype.clamp=function(){for(var t=this.s&this.DM;0<this.t&&this[this.t-1]==t;)--this.t},E.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;0<=n;--n)e[n+t]=this[n];for(n=t-1;0<=n;--n)e[n]=0;e.t=this.t+t,e.s=this.s},E.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},E.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),s=this.s<<n&this.DM,a=this.t-1;0<=a;--a)e[a+o+1]=this[a]>>r|s,s=(this[a]&i)<<n;for(a=o-1;0<=a;--a)e[a]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},E.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&o)<<i,e[s-n]=this[s]>>r;0<r&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},E.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:0<r&&(e[n++]=r),e.t=n,e.clamp()},E.prototype.multiplyTo=function(t,e){var n=this.abs(),r=t.abs(),i=n.t;for(e.t=i+r.t;0<=--i;)e[i]=0;for(i=0;i<r.t;++i)e[i+n.t]=n.am(0,r[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&E.ZERO.subTo(e,e)},E.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;0<=--n;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}0<t.t&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},E.prototype.divRemTo=function(t,e,n){var r=t.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=e&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=k());var o=k(),s=this.s,a=t.s,c=this.DB-J(r[r.t-1]);0<c?(r.lShiftTo(c,o),i.lShiftTo(c,n)):(r.copyTo(o),i.copyTo(n));var u=o.t,h=o[u-1];if(0!=h){var l=h*(1<<this.F1)+(1<u?o[u-2]>>this.F2:0),f=this.FV/l,p=(1<<this.F1)/l,d=1<<this.F2,g=n.t,v=g-u,y=null==e?k():e;for(o.dlShiftTo(v,y),0<=n.compareTo(y)&&(n[n.t++]=1,n.subTo(y,n)),E.ONE.dlShiftTo(u,y),y.subTo(o,o);o.t<u;)o[o.t++]=0;for(;0<=--v;){var m=n[--g]==h?this.DM:Math.floor(n[g]*f+(n[g-1]+d)*p);if((n[g]+=o.am(0,m,n,v,0,u))<m)for(o.dlShiftTo(v,y),n.subTo(y,n);n[g]<--m;)n.subTo(y,n)}null!=e&&(n.drShiftTo(u,e),s!=a&&E.ZERO.subTo(e,e)),n.t=u,n.clamp(),0<c&&n.rShiftTo(c,n),s<0&&E.ZERO.subTo(n,n)}}},E.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},E.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},E.prototype.exp=function(t,e){if(4294967295<t||t<1)return E.ONE;var n=k(),r=k(),i=e.convert(this),o=J(t)-1;for(i.copyTo(n);0<=--o;)if(e.sqrTo(n,r),0<(t&1<<o))e.mulTo(r,i,n);else{var s=n;n=r,r=s}return e.revert(n)},E.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},E.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36<t)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=F(n),i=k(),o=k(),s="";for(this.divRemTo(r,i,o);0<i.signum();)s=(n+o.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,o);return o.intValue().toString(t)+s},E.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),r=Math.pow(e,n),i=!1,o=0,s=0,a=0;a<t.length;++a){var c=G(t,a);c<0?"-"==t.charAt(a)&&0==this.signum()&&(i=!0):(s=e*s+c,++o>=n&&(this.dMultiply(r),this.dAddOffset(s,0),s=o=0))}0<o&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(s,0)),i&&E.ZERO.subTo(this,this)},E.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(E.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(E.ONE.shiftLeft(t-1),this);else{var r=[],i=7&t;r.length=1+(t>>3),e.nextBytes(r),0<i?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},E.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},E.prototype.changeBit=function(t,e){var n=E.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},E.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,0<r?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},E.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},E.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},E.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;0<r;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},E.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;0<=--r;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},E.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(0<this.t)if(0==e)n=this[0]%t;else for(var r=this.t-1;0<=r;--r)n=(e*n+this[r])%t;return n},E.prototype.millerRabin=function(t){var e=this.subtract(E.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var r=e.shiftRight(n);D.length<(t=t+1>>1)&&(t=D.length);for(var i=k(),o=0;o<t;++o){i.fromInt(D[Math.floor(Math.random()*D.length)]);var s=i.modPow(r,this);if(0!=s.compareTo(E.ONE)&&0!=s.compareTo(e)){for(var a=1;a++<n&&0!=s.compareTo(e);)if(0==(s=s.modPowInt(2,this)).compareTo(E.ONE))return!1;if(0!=s.compareTo(e))return!1}}return!0},E.prototype.square=function(){var t=k();return this.squareTo(t),t},E.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)e(n);else{o<s&&(s=o),0<s&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var a=function(){0<(o=n.getLowestSetBit())&&n.rShiftTo(o,n),0<(o=r.getLowestSetBit())&&r.rShiftTo(o,r),0<=n.compareTo(r)?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),0<n.signum()?setTimeout(a,0):(0<s&&r.lShiftTo(s,r),setTimeout(function(){e(r)},0))};setTimeout(a,10)}},E.prototype.fromNumberAsync=function(t,e,n,r){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(E.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);var i=this,o=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(E.ONE.shiftLeft(t-1),i),i.isProbablePrime(e)?setTimeout(function(){r()},0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],a=7&t;s.length=1+(t>>3),e.nextBytes(s),0<a?s[0]&=(1<<a)-1:s[0]=0,this.fromString(s,256)}},E}(),x=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),L=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),M=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=k();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0<e.compareTo(R.ZERO)&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=k();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),N=function(){function t(t){this.m=t,this.r2=k(),this.q3=k(),R.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=k();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);0<=t.compareTo(this.m);)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function k(){return new R(null)}function P(t,e){return new R(t,e)}var U="undefined"!=typeof navigator;A=U&&"Microsoft Internet Explorer"==navigator.appName?(R.prototype.am=function(t,e,n,r,i,o){for(var s=32767&e,a=e>>15;0<=--o;){var c=32767&this[t],u=this[t++]>>15,h=a*c+u*s;i=((c=s*c+((32767&h)<<15)+n[r]+(1073741823&i))>>>30)+(h>>>15)+a*u+(i>>>30),n[r++]=1073741823&c}return i},30):U&&"Netscape"!=navigator.appName?(R.prototype.am=function(t,e,n,r,i,o){for(;0<=--o;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},26):(R.prototype.am=function(t,e,n,r,i,o){for(var s=16383&e,a=e>>14;0<=--o;){var c=16383&this[t],u=this[t++]>>14,h=a*c+u*s;i=((c=s*c+((16383&h)<<14)+n[r]+i)>>28)+(h>>14)+a*u,n[r++]=268435455&c}return i},28),R.prototype.DB=A,R.prototype.DM=(1<<A)-1,R.prototype.DV=1<<A;R.prototype.FV=Math.pow(2,52),R.prototype.F1=52-A,R.prototype.F2=2*A-52;var H,V,j=[];for(H="0".charCodeAt(0),V=0;V<=9;++V)j[H++]=V;for(H="a".charCodeAt(0),V=10;V<36;++V)j[H++]=V;for(H="A".charCodeAt(0),V=10;V<36;++V)j[H++]=V;function G(t,e){var n=j[t.charCodeAt(e)];return null==n?-1:n}function F(t){var e=k();return e.fromInt(t),e}function J(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}R.ZERO=F(0),R.ONE=F(1);var K=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(e=n=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var q,z,W=256,X=null;if(null==X){X=[];var Y=void(z=0);if(window.crypto&&window.crypto.getRandomValues){var Z=new Uint32Array(256);for(window.crypto.getRandomValues(Z),Y=0;Y<Z.length;++Y)X[z++]=255&Z[Y]}var Q=0,$=function(t){if(256<=(Q=Q||0)||W<=z)window.removeEventListener?window.removeEventListener("mousemove",$,!1):window.detachEvent&&window.detachEvent("onmousemove",$);else try{var e=t.x+t.y;X[z++]=255&e,Q+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",$,!1):window.attachEvent&&window.attachEvent("onmousemove",$)}function tt(){if(null==q){for(q=new K;z<W;){var t=Math.floor(65536*Math.random());X[z++]=255&t}for(q.init(X),z=0;z<X.length;++z)X[z]=0;z=0}return q.next()}var et=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=tt()},t}();var nt=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=P(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;0<=r&&0<e;){var i=t.charCodeAt(r--);n[--e]=i<128?i:127<i&&i<2048?(n[--e]=63&i|128,i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,i>>12|224)}n[--e]=0;for(var o=new et,s=[];2<e;){for(s[0]=0;0==s[0];)o.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new R(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,s=0;s<2*e-o;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=P(t,16),this.e=parseInt(e,16),this.d=P(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,s,a){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=P(t,16),this.e=parseInt(e,16),this.d=P(n,16),this.p=P(r,16),this.q=P(i,16),this.dmp1=P(o,16),this.dmq1=P(s,16),this.coeff=P(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new et,r=t>>1;this.e=parseInt(e,16);for(var i=new R(e,16);;){for(;this.p=new R(t-r,1,n),0!=this.p.subtract(R.ONE).gcd(i).compareTo(R.ONE)||!this.p.isProbablePrime(10););for(;this.q=new R(r,1,n),0!=this.q.subtract(R.ONE).gcd(i).compareTo(R.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(R.ONE),a=this.q.subtract(R.ONE),c=s.multiply(a);if(0==c.gcd(i).compareTo(R.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=P(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):191<o&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,i){var o=new et,s=t>>1;this.e=parseInt(e,16);var a=new R(e,16),c=this,u=function(){var e=function(){if(c.p.compareTo(c.q)<=0){var t=c.p;c.p=c.q,c.q=t}var e=c.p.subtract(R.ONE),n=c.q.subtract(R.ONE),r=e.multiply(n);0==r.gcd(a).compareTo(R.ONE)?(c.n=c.p.multiply(c.q),c.d=a.modInverse(r),c.dmp1=c.d.mod(e),c.dmq1=c.d.mod(n),c.coeff=c.q.modInverse(c.p),setTimeout(function(){i()},0)):setTimeout(u,0)},n=function(){c.q=k(),c.q.fromNumberAsync(s,1,o,function(){c.q.subtract(R.ONE).gcda(a,function(t){0==t.compareTo(R.ONE)&&c.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(n,0)})})},r=function(){c.p=k(),c.p.fromNumberAsync(t-s,1,o,function(){c.p.subtract(R.ONE).gcda(a,function(t){0==t.compareTo(R.ONE)&&c.p.isProbablePrime(10)?setTimeout(n,0):setTimeout(r,0)})})};setTimeout(r,0)};setTimeout(u,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return P("0001"+r+"00"+t,16)}((rt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=P(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in rt)if(rt.hasOwnProperty(e)){var n=rt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
/*!
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var rt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var it={};it.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,(t.prototype.constructor=t).superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<s.length;i+=1){var n=s[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};
/**
* @fileOverview
* @name asn1-1.0.js
* @author Kenji Urushima [email protected]
* @version asn1 1.0.13 (2017-Jun-02)
* @since jsrsasign 2.1
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
*/
var ot={};void 0!==ot.asn1&&ot.asn1||(ot.asn1={}),ot.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new R(r,16).xor(t).add(R.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=ot.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,a=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,h=e.DERNumericString,l=e.DERPrintableString,f=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,E=e.ASN1Util.newObject,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var _=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(t[_]);if("int"==_)return new r(t[_]);if("bitstr"==_)return new i(t[_]);if("octstr"==_)return new o(t[_]);if("null"==_)return new s(t[_]);if("oid"==_)return new a(t[_]);if("enum"==_)return new c(t[_]);if("utf8str"==_)return new u(t[_]);if("numstr"==_)return new h(t[_]);if("prnstr"==_)return new l(t[_]);if("telstr"==_)return new f(t[_]);if("ia5str"==_)return new p(t[_]);if("utctime"==_)return new d(t[_]);if("gentime"==_)return new g(t[_]);if("seq"==_){for(var b=t[_],T=[],w=0;w<b.length;w++){var A=E(b[w]);T.push(A)}return new v({array:T})}if("set"==_){for(b=t[_],T=[],w=0;w<b.length;w++){A=E(b[w]);T.push(A)}return new y({array:T})}if("tag"==_){var C=t[_];if("[object Array]"===Object.prototype.toString.call(C)&&3==C.length){var I=E(C[2]);return new m({tag:C[0],explicit:C[1],obj:I})}var O={};if(void 0!==C.explicit&&(O.explicit=C.explicit),void 0!==C.tag&&(O.tag=C.tag),void 0===C.obj)throw"obj shall be specified for 'tag'.";return O.obj=E(C.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},ot.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new R(r,2).toString(10),r=""}return e},ot.asn1.ASN1Util.oidIntToHex=function(t){var a=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},e=function(t){var e="",n=new R(t,10).toString(2),r=7-n.length%7;7==r&&(r=0);for(var i="",o=0;o<r;o++)i+="0";n=i+n;for(o=0;o<n.length-1;o+=7){var s=n.substr(o,7);o!=n.length-7&&(s="1"+s),e+=a(parseInt(s,2))}return e};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",r=t.split("."),i=40*parseInt(r[0])+parseInt(r[1]);n+=a(i),r.splice(0,2);for(var o=0;o<r.length;o++)n+=e(r[o]);return n},ot.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(15<n)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ot.asn1.DERAbstractString=function(t){ot.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},it.lang.extend(ot.asn1.DERAbstractString,ot.asn1.ASN1Object),ot.asn1.DERAbstractTime=function(t){ot.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var a=i.getMilliseconds();if(0!=a){var c=r(String(a),3);s=s+"."+(c=c.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var s=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},it.lang.extend(ot.asn1.DERAbstractTime,ot.asn1.ASN1Object),ot.asn1.DERAbstractStructured=function(t){ot.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},it.lang.extend(ot.asn1.DERAbstractStructured,ot.asn1.ASN1Object),ot.asn1.DERBoolean=function(){ot.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},it.lang.extend(ot.asn1.DERBoolean,ot.asn1.ASN1Object),ot.asn1.DERInteger=function(t){ot.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ot.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new R(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},it.lang.extend(ot.asn1.DERInteger,ot.asn1.ASN1Object),ot.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ot.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ot.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},it.lang.extend(ot.asn1.DERBitString,ot.asn1.ASN1Object),ot.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ot.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}ot.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},it.lang.extend(ot.asn1.DEROctetString,ot.asn1.DERAbstractString),ot.asn1.DERNull=function(){ot.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},it.lang.extend(ot.asn1.DERNull,ot.asn1.ASN1Object),ot.asn1.DERObjectIdentifier=function(t){var a=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},o=function(t){var e="",n=new R(t,10).toString(2),r=7-n.length%7;7==r&&(r=0);for(var i="",o=0;o<r;o++)i+="0";n=i+n;for(o=0;o<n.length-1;o+=7){var s=n.substr(o,7);o!=n.length-7&&(s="1"+s),e+=a(parseInt(s,2))}return e};ot.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var e="",n=t.split("."),r=40*parseInt(n[0])+parseInt(n[1]);e+=a(r),n.splice(0,2);for(var i=0;i<n.length;i++)e+=o(n[i]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=function(t){var e=ot.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},it.lang.extend(ot.asn1.DERObjectIdentifier,ot.asn1.ASN1Object),ot.asn1.DEREnumerated=function(t){ot.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ot.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new R(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},it.lang.extend(ot.asn1.DEREnumerated,ot.asn1.ASN1Object),ot.asn1.DERUTF8String=function(t){ot.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},it.lang.extend(ot.asn1.DERUTF8String,ot.asn1.DERAbstractString),ot.asn1.DERNumericString=function(t){ot.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},it.lang.extend(ot.asn1.DERNumericString,ot.asn1.DERAbstractString),ot.asn1.DERPrintableString=function(t){ot.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},it.lang.extend(ot.asn1.DERPrintableString,ot.asn1.DERAbstractString),ot.asn1.DERTeletexString=function(t){ot.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},it.lang.extend(ot.asn1.DERTeletexString,ot.asn1.DERAbstractString),ot.asn1.DERIA5String=function(t){ot.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},it.lang.extend(ot.asn1.DERIA5String,ot.asn1.DERAbstractString),ot.asn1.DERUTCTime=function(t){ot.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},it.lang.extend(ot.asn1.DERUTCTime,ot.asn1.DERAbstractTime),ot.asn1.DERGeneralizedTime=function(t){ot.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},it.lang.extend(ot.asn1.DERGeneralizedTime,ot.asn1.DERAbstractTime),ot.asn1.DERSequence=function(t){ot.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},it.lang.extend(ot.asn1.DERSequence,ot.asn1.DERAbstractStructured),ot.asn1.DERSet=function(t){ot.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},it.lang.extend(ot.asn1.DERSet,ot.asn1.DERAbstractStructured),ot.asn1.DERTaggedObject=function(t){ot.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},it.lang.extend(ot.asn1.DERTaggedObject,ot.asn1.ASN1Object);var st,at=(st=function(t,e){return(st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ct=function(n){function r(t){var e=n.call(this)||this;return t&&("string"==typeof t?e.parseKey(t):(r.hasPrivateKeyProperty(t)||r.hasPublicKeyProperty(t))&&e.parsePropertiesFrom(t)),e}return at(r,n),r.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?y(t):m.unarmor(t),i=I.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=P(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=P(o,16);var s=i.sub[4].getHexStringValue();this.p=P(s,16);var a=i.sub[5].getHexStringValue();this.q=P(a,16);var c=i.sub[6].getHexStringValue();this.dmp1=P(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=P(u,16);var h=i.sub[8].getHexStringValue();this.coeff=P(h,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=P(e,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},r.prototype.getPrivateBaseKey=function(){var t={array:[new ot.asn1.DERInteger({int:0}),new ot.asn1.DERInteger({bigint:this.n}),new ot.asn1.DERInteger({int:this.e}),new ot.asn1.DERInteger({bigint:this.d}),new ot.asn1.DERInteger({bigint:this.p}),new ot.asn1.DERInteger({bigint:this.q}),new ot.asn1.DERInteger({bigint:this.dmp1}),new ot.asn1.DERInteger({bigint:this.dmq1}),new ot.asn1.DERInteger({bigint:this.coeff})]};return new ot.asn1.DERSequence(t).getEncodedHex()},r.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())},r.prototype.getPublicBaseKey=function(){var t=new ot.asn1.DERSequence({array:[new ot.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new ot.asn1.DERNull]}),e=new ot.asn1.DERSequence({array:[new ot.asn1.DERInteger({bigint:this.n}),new ot.asn1.DERInteger({int:this.e})]}),n=new ot.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new ot.asn1.DERSequence({array:[t,n]}).getEncodedHex()},r.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())},r.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},r.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=r.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},r.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=r.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},r.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},r.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},r.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},r}(nt),ut=n(12),ht=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ct(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(g(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return d(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return d(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,g(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new ct,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=ut.version,t}();n.d(e,"JSEncrypt",function(){return ht});e.default=ht},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(o,s,a,c){return new(a||(a=Promise))(function(t,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(n,r)}i((c=c.apply(o,s||[])).next())})},i=this&&this.__generator||function(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}};e.__esModule=!0;var o=n(9),s=n(13),a=n(1),c=n(2),u=n(0),h=n(7),l=n(3),f=n(5),p=n(11),d="JOperateInterface",g=new(function(){function t(){this.mIsInited=!1,this.mIsRegister=void 0,this.mIsInitInfoSync=!1,this.timeKeepingCount=0,this.debugMode=!1,this.callbackCache={}}return t.prototype.handleEvent=function(t){if("message"===t.type){try{var e=JSON.parse(t.data)}catch(t){return}if(e.from!=u.JGCons.MESSAGE.EVENT.FROM)return;a.Log.d(d,"receive event with event.data:"+t.data),e.type==u.JGCons.MESSAGE.EVENT.TYPE&&this._handleRespond(e.body)}},t.prototype._handleRespond=function(t){var e=t.callbackId;if(e==u.JGCons.MESSAGE.CALLID.COMMON_CALLID_BACK){var n={common:p.EventHelper.getCommonProperities(),preset:h.EventManager.getUserPagePresetProperties()};a.Log.dd(d,"ready to send common "+JSON.stringify(n));var r={action:u.JGCons.MESSAGE.ACTION.COMMON_PROPERTIES,callbackId:u.JGCons.MESSAGE.CALLID.COMMON_CALLID_TO,data:n},i={from:u.FROM_JOPERATE,type:"onMessage",body:r};this.mJOperateFrame.contentWindow.postMessage(JSON.stringify(i),u.JGCons.IFrameHost)}else if(t.action==u.JGCons.MESSAGE.ACTION.USER_INFO)f.setUserInfo(l.getInitConfig().appKey,t.result),f.setDeviceId(t.result.dId);else if(t.action==u.JGCons.MESSAGE.ACTION.EVENT_CONFIG)h.EventManager.saveInterfaceConfig(t.result);else if(e&&this.callbackCache[e]){(0,this.callbackCache[e])(t),t.code===u.JGCons.MESSAGE.STATUS.SUCC&&t.action!=u.JGCons.MESSAGE.ACTION.INIT&&delete this.callbackCache[e]}},t.prototype._callJOperate=function(t,e){if(this.mJOperateFrame){if(e){var n=this._generateCallbackId();this.callbackCache[n]=e,t.callbackId=n}var r={from:u.FROM_JOPERATE,type:"onMessage",body:t};this.mJOperateFrame.contentWindow.postMessage(JSON.stringify(r),u.JGCons.IFrameHost)}},t.prototype._generateCallbackId=function(){var t="_"+c.getRandomId(9);return this.callbackCache[t]&&(t=this._generateCallbackId()),t},t.prototype.init=function(t){if("object"==typeof window.localStorage)try{window.localStorage.setItem("jg_test_localStorage","1"),window.localStorage.removeItem("jg_test_localStorage")}catch(t){return Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},void console.error("localStorage is invalid, jiguang sdk can't init")}a.Log.setDebugMode(t.debugMode),this.mIsInited?a.Log.dd(d,"need not init multi times"):c.supportPostMessage()?c.isEmpty(t.appKey)?a.Log.ee(d,"init failed,appKey is empty"):(a.Log.dd(d,"action:init - sdkVersion:"+u.JGCons.SDK_VERSION),this.mIsInited=!0,this._initConfig(t),this._initIframe(),p.EventHelper.readLocalCommonAttr(),h.EventManager.loadInterfaceConfig(),window.addEventListener("message",this,!1)):a.Log.ee(d,"This browser does not support postMessage,JOperate is not available.")},t.prototype._initConfig=function(t){var e=t.channel;t.channel=c.isEmpty(e)?u.JGCons.DEFAULT_CHANNEL:e,t.sdkVersion=u.JGCons.SDK_VERSION,t.hostname=location.hostname,t.protocol=location.protocol,t.initTime=Date.now(),l.setInitConfig(t)},t.prototype._initIframe=function(){var t=this;this.mJOperateFrame=document.createElement("iframe"),this.mJOperateFrame.onload=function(){a.Log.d(d,"iframe onload"),t.loginOrRegister()},this.mJOperateFrame.src=u.JGCons.IFrameHtml,this.mJOperateFrame.style.display="none",this.mJOperateFrame.id=u.JGCons.IFRAME.ID,document.body.appendChild(this.mJOperateFrame)},t.prototype.loginOrRegister=function(){var e=this,n=l.getInitConfig();if(Date.now()-s.getLocalVariable(n.appKey+1).lReg<3e4)return a.Log.dd(d,"Other tabs are registering,try in 30 seconds..."),void setTimeout(function(){e.loginOrRegister()},3e4);this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.INIT,{initConfig:n}),function(t){t.action==u.JGCons.MESSAGE.ACTION.INIT&&(a.Log.d(d,"init callback:"+JSON.stringify(t)),e.mIsRegister||t.code!=u.JGCons.MESSAGE.STATUS.SUCC?t.code==u.JGCons.MESSAGE.STATUS.FAIL?(e.mIsRegister=!1,e.mRegisterCode=t.result,s.clearLocalVariable(n.appKey+1)):t.code==u.JGCons.MESSAGE.STATUS.OTHER&&s.setLocalVariable(n.appKey+1,t.result.itime,0):e.mIsRegister=!0)})},t.prototype.onEvent=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){return this.mIsInited?navigator.sendBeacon&&!this.debugMode&&null!=h.EventManager.loadInterfaceConfig()?h.EventManager.sendBeaconEvent(e):(a.Log.ww(d,"navigator.sendBeacon is not defined"),this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.ON_EVENT,e),function(t){})):a.Log.ee(d,"call onEvent failed:please call init correctly first"),[2]})})},t.prototype.setEventCommonAttr=function(t){this.mIsInited?p.EventHelper.setEventCommonAttr(t):this._logInitFail()},t.prototype.clearEventCommonAttr=function(){this.mIsInited?p.EventHelper.clearEventCommonAttr():this._logInitFail()},t.prototype.setEventDynamicAttr=function(t){this.mIsInited?p.EventHelper.setEventDynamicAttr(t):this._logInitFail()},t.prototype.setUtmProperties=function(t){this.mIsInited?(h.EventManager.setUtmProperties(t),this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.UTM_PROPERTIES,t),function(t){}),this.set(t,function(t,e){})):a.Log.ee(d,"call onEvent failed:please call init correctly first")},t.prototype.currentEventCommonAttr=function(){return p.EventHelper.currentEventCommonAttr()},t.prototype.identifyAccount=function(e){this.mIsInited?this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.IDENTIFY_ACCOUNT,e.userIDs),function(t){t.action==u.JGCons.MESSAGE.ACTION.IDENTIFY_ACCOUNT&&(t.code==u.JGCons.MESSAGE.STATUS.SUCC?e.completion(0,t.result):t.code==u.JGCons.MESSAGE.STATUS.FAIL&&e.completion(-1,t.result))}):a.Log.ee(d,"call identifyAccount failed:please call init correctly first")},t.prototype.setUserChannel=function(e){this.mIsInited?this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.SET_USER_CHANNEL,e.channels),function(t){t.action==u.JGCons.MESSAGE.ACTION.SET_USER_CHANNEL&&(t.code==u.JGCons.MESSAGE.STATUS.SUCC?e.completion(0,t.result):t.code==u.JGCons.MESSAGE.STATUS.FAIL&&e.completion(-1,t.result))}):a.Log.ee(d,"call setUserChannel failed:please call init correctly first")},t.prototype.set=function(t,e){a.Log.d(d,"set properties "+JSON.stringify(t)),this.updateUserProperties({properties:t,type:"cover"},e)},t.prototype.setOnce=function(t,e){a.Log.d(d,"setOnce properties "+t),this.updateUserProperties({properties:t,type:"setOnce"},e)},t.prototype.increment=function(t,e){a.Log.d(d,"increment properties "+t),this.updateUserProperties({properties:t,type:"add"},e)},t.prototype.append=function(t,e,n){var r={};r[t]=e,a.Log.d(d,"increment properties "+r),this.updateUserProperties({properties:r,type:"append"},n)},t.prototype.unset=function(t,e){a.Log.d(d,"unset properties "+t);var n={};n[t]="",this.updateUserProperties({properties:n,type:"del"},e)},t.prototype.updateUserProperties=function(t,e){this.mIsInited?this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.USER_PROPERTIES,t),function(t){t.action==u.JGCons.MESSAGE.ACTION.USER_PROPERTIES&&(t.code==u.JGCons.MESSAGE.STATUS.SUCC?e(0,t.result):t.code==u.JGCons.MESSAGE.STATUS.FAIL&&e(-1,t.result))}):a.Log.ee(d,"user properties failed:please call init correctly first")},t.prototype._logInitFail=function(){a.Log.ee(d,"Please call init correctly first")},t.prototype.timeKeepingEventStart=function(t){var e="JOPERATETimeKeepingEvent"+this.timeKeepingCount++;return this.timekeepingEvent({type:"start",name:t,id:e}),e},t.prototype.timeKeepingEventEnd=function(t,e){this.timekeepingEvent({type:"end",id:t,properties:e})},t.prototype.timeKeepingEventPause=function(t){this.timekeepingEvent({type:"pause",id:t})},t.prototype.timeKeepingEventResume=function(t){this.timekeepingEvent({type:"resume",id:t})},t.prototype.removeTimeKeepingEvent=function(t){this.timekeepingEvent({type:"remove",id:t})},t.prototype.clearTimeKeepingEvent=function(){this.timekeepingEvent({type:"clear"})},t.prototype.CUID=function(e){this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.CUID,""),function(t){t.action==u.JGCons.MESSAGE.ACTION.CUID&&(t.code==u.JGCons.MESSAGE.STATUS.SUCC?e(0,t.result):t.code==u.JGCons.MESSAGE.STATUS.FAIL&&e(-1,t.result))})},t.prototype.timekeepingEvent=function(t){this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.TIMEKEEPING_EVENT,t),function(t){})},t.prototype.openDebugMode=function(){var t=this;this.debugMode=!0,setTimeout(function(){t._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.DEBUG_MODE,window.location.search),function(t){})},500)},t.prototype.setLocation=function(t,e){h.EventManager.setLocation(t,e),this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.LOCATION,{lat:t,lng:e}),function(t){})},t.prototype.isValid=function(t){this.mIsRegister?t(0,""):t(-1,"sdk isn't init")},t.prototype.userData=function(e){this.mIsInited?this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.USER_DATA,""),function(t){t.action==u.JGCons.MESSAGE.ACTION.USER_DATA&&(t.code==u.JGCons.MESSAGE.STATUS.SUCC?e(0,t.result):t.code==u.JGCons.MESSAGE.STATUS.FAIL&&e(-1,t.result))}):a.Log.ee(d,"call userData failed:please call init correctly first")},t.prototype.appInfo=function(e){this.mIsInited?this._callJOperate(o.packageInterfaceMessageBody(u.JGCons.MESSAGE.ACTION.APP_INFO,""),function(t){t.action==u.JGCons.MESSAGE.ACTION.APP_INFO&&(t.code==u.JGCons.MESSAGE.STATUS.SUCC?e(0,t.result):t.code==u.JGCons.MESSAGE.STATUS.FAIL&&e(-1,t.result))}):a.Log.ee(d,"call appInfo failed:please call init correctly first")},t}());window.JOperateInterface={init:function(t){g.init(t)},identifyAccount:function(t){g.identifyAccount(t)},setUserChannel:function(t){g.setUserChannel(t)},onEvent:function(t){g.onEvent(t)},setEventCommonAttr:function(t){g.setEventCommonAttr(t)},clearEventCommonAttr:function(){g.clearEventCommonAttr()},setEventDynamicAttr:function(t){g.setEventDynamicAttr(t)},currentEventCommonAttr:function(){return g.currentEventCommonAttr()},setUtmProperties:function(t){g.setUtmProperties(t)},set:function(t,e){g.set(t,e)},setOnce:function(t,e){g.setOnce(t,e)},increment:function(t,e){g.setOnce(t,e)},append:function(t,e,n){g.append(t,e,n)},unset:function(t,e){g.unset(t,e)},timeKeepingEventStart:function(t){return g.timeKeepingEventStart(t)},timeKeepingEventEnd:function(t,e){g.timeKeepingEventEnd(t,e)},timeKeepingEventPause:function(t){g.timeKeepingEventPause(t)},timeKeepingEventResume:function(t){g.timeKeepingEventResume(t)},removeTimeKeepingEvent:function(t){g.removeTimeKeepingEvent(t)},clearTimeKeepingEvent:function(){g.clearTimeKeepingEvent()},openDebugMode:function(){return g.openDebugMode()},isValid:function(t){g.isValid(t)},userData:function(t){g.userData(t)},appInfo:function(t){g.appInfo(t)},CUID:function(t){return g.CUID(t)},setLocation:function(t,e){g.setLocation(t,e)}}}]);