umtrack-qg
Version:
快游戏友盟统计SDK
2 lines (1 loc) • 39 kB
JavaScript
function e(){return qg}var t=e();var n=new(function(){function n(){}n.prototype.setStorage=function(e,n,i){if(t.setStorage)t.setStorage({key:e,value:n,success:function(){"function"==typeof i&&i(!0)},fail:function(){"function"==typeof i&&i(!1)}});else{localStorage.setItem(e,n);"function"==typeof i&&i(!0)}};n.prototype.getStorage=function(e,n){if(t.getStorage)t.getStorage({key:e,success:function(e){"function"==typeof n&&n(e)},fail:function(t,i){D().w(e+"code = : "+i);"function"==typeof n&&n()}});else if(localStorage){var i=localStorage.getItem(e);"function"==typeof n&&n(i)}};n.prototype.removeStorage=function(e,n){if(t.deleteStorage)t.deleteStorage({key:e,success:function(){"function"==typeof n&&n(!0)},fail:function(){"function"==typeof n&&n(!1)}});else if(localStorage){localStorage.removeItem(e);"function"==typeof n&&n(!0)}};n.prototype.getSystemInfo=function(e){t.getSystemInfo({success:function(t){var n={model:t.model,brand:t.brand,screenWidth:t.screenWidth,screenHeight:t.screenHeight,platform:t.osType,pixelRatio:t.pixelRatio,platformVersion:t.platformVersionCode,language:t.language,deviceName:t.model,OSVersion:t.osVersionName,resolution:"",statusBarHeight:t.statusBarHeight};if(t.system){var i=t.system.split(" ");if(Array.isArray(i)){!n.platform&&(n.platform=i[0]);!n.OSVersion&&(n.OSVersion=i[1])}}var r=Math.round(t.screenWidth*t.pixelRatio),o=Math.round(t.screenHeight*t.pixelRatio);n.resolution=r>o?r+"*"+o:o+"*"+r;"function"==typeof e&&e(n)},fail:function(){"function"==typeof e&&e()}})};n.prototype.getDeviceInfo=function(e){"function"==typeof e&&e("")};n.prototype.getNetworkInfo=function(e){t.getNetworkType({success:function(t){"function"==typeof e&&e({networkAvailable:"none"!==t.networkType,networkType:t.networkType})},fail:function(){"function"==typeof e&&e()}})};n.prototype.request=function(e){var n=e.success,i=e.fail,r=!1,o=null;e.success=function(e){if(!r){o&&clearTimeout(o);"function"==typeof n&&n(e)}};e.fail=function(){if(!r){o&&clearTimeout(o);"function"==typeof i&&i(!1)}};t.request?t.request(e):XMLHttpRequest&&function(e,t){void 0===t&&(t=!0);(e=e||{}).method=e.method||"GET";e.url=e.url||"";e.data=e.data||null;e.success=e.success||function(){};e.fail=e.fail||function(){};var n=new XMLHttpRequest,i=[];for(var r in e.data)i.push(r+"="+encodeURIComponent(e.data[r]));var o=i.join("&"),s=JSON.stringify(e.data||{});"POST"===e.method?n.open(e.method,e.url,t):n.open(e.method,e.url+"?"+o,t);n.setRequestHeader("Content-Type","text/plain");n.setRequestHeader("Msg-Type","qg/json");t&&(n.timeout=e.timeout||5e3);n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var t={};try{t=JSON.parse(n.responseText)}catch(e){}e.success({data:t,status:n.status})}else 4==n.readyState&&e.fail({data:null,status:n.status})};"POST"===e.method?n.send(s):n.send()}(e,!0);o=setTimeout((function(){o&&clearTimeout(o);r=!0;"function"==typeof i&&i(r)}),e.timeout||5e3)};n.prototype.getSdkType=function(){return this.getPlatform()+"mp"};n.prototype.getPlatform=function(){return"qg"};n.prototype.getUserInfo=function(e){e&&e()};n.prototype.getAppInfoSync=function(){return{}};n.prototype.onShareAppMessage=function(e){};n.prototype.shareAppMessage=function(e){};n.prototype.getContext=function(){return e()};n.prototype.getLaunchOptionsSync=function(){var e=null;if(e)return e;if(!t.getLaunchOptionsSync)return{};try{e=t.getLaunchOptionsSync()}catch(t){e=null}return e||{}};return n}()),i=function(){var e=null;function t(){var e={};this.useOpenid=function(){return!!e.useOpenid};this.useSwanid=function(){return!!e.useSwanid};this.autoGetOpenid=function(){return!!e.autoGetOpenid};this.appKey=function(){return e.appKey};this.uploadUserInfo=function(){return e.uploadUserInfo};this.enableVerify=function(){return e.enableVerify};this.set=function(t){e=t};this.get=function(){return e};this.setItem=function(t,n){e[t]=n};this.getItem=function(t){return e[t]}}return function(){e||(e=new t);return e}}(),r=function(e){if(e)try{return JSON.stringify(e)}catch(e){}return""},o=function(e){if(e)try{return JSON.parse(e)}catch(e){}return null},s=function(){var e=null,t="",s=null,a=!1;function u(){this.load=function(e){if(s){n.removeStorage(t);e()}else{t="um_cache_"+i().appKey();n.getStorage(t,(function(i){s=o(i)||{};a=!0;n.removeStorage(t);e()}))}};this.save=function(){s&&n.setStorage(t,r(s))};this.set=function(e,t){s&&(s[e]=t)};this.get=function(e){return(s||{})[e]};this.remove=function(e){s&&s[e]&&delete s[e]};this.getAll=function(){return s};this.clear=function(){s=null};this.has=function(e){return!!this.get(e)};this.isLoaded=function(){return a}}return function(){e||(e=new u);return e}}();var a={isNumber:function(e){return!Number.isNaN(parseInt(e,10))},compareVersion:function(e,t){for(var n=String(e).split("."),i=String(t).split("."),r=0;r<Math.max(n.length,i.length);r++){var o=parseInt(n[r]||0,10),s=parseInt(i[r]||0,10);if(o>s)return 1;if(o<s)return-1}return 0},getRandomStr:function(e){for(var t="",n=["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"],i=0;i<Number(e);i++){t+=n[Math.round(Math.random()*(n.length-1))]}return t},clone:function(e){return JSON.parse(JSON.stringify(e))},startsWith:function(e,t){return!(!e||!t||0===t.length||t.length>e.length)&&e.substr(0,t.length)===t},endsWith:function(e,t){return!(!t||0===e.length||t.length>e.length)&&e.substring(e.length-t.length)===t},assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},deepEqual:function e(t,n){if(t===n)return!0;if(t&&"object"==typeof t&&n&&"object"==typeof n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i in t){if(Object.prototype.hasOwnProperty.call(n,i))return!1;if(!e(t[i],n[i]))return!1}return!0}return!1},trimStart:function(e,t){if(!e)return"";if("string"==typeof t&&t.length){var n=new RegExp("^"+t+"*");e=e.replace(n,"")}else e=e.replace(/^s*/,"");return e},trimEnd:function(e,t){if(!e)return"";var n,i;if("string"==typeof t&&t.length){n=new RegExp(t);i=e.length;for(;n.test(e.charAt(i));)i-=1;return e.slice(0,i+1)}n=/s/;i=e.length-1;for(;n.test(e.charAt(i));)i-=1;return e.slice(0,i+1)},isFunction:function(e){return"function"==typeof e}},u={SESSION_INTERVAL:3e4,LOG_URL:"/wxm_logs",GET_OPENID_URL:"/uminiprogram_logs/wx/getuut",USERINFO_URL:"/uminiprogram_logs/comm/uif",ENDPOINT:"https://umini.shujupie.com",ENDPOINTB:"https://ulogs.umeng.com",DEVICE_INFO_KEY:"device_info",ADVERTISING_ID:"mobile_ad_id",ANDROID_ID:"android_id",CURRENT_SESSION:"current_session",SESSION_PAUSE_TIME:"session_pause_time",EVENT_SEND_DEFAULT_INTERVAL:15e3,EVENT_LAST_SEND_TIME:"last_send_time",MAX_EVENTID_LENGTH:128,MAX_PROPERTY_KEY_LENGTH:256,MAX_PROPERTY_KEYS_COUNT:100,REPORT_POLICY:"report_policy",REPORT_INTERVAL_TIME:"report_interval_time",REPORT_POLICY_START_SEND:"1",REPORT_POLICY_INTERVAL:"6",IMPRINT:"imprint",SEED_VERSION:"1.0.0",IMPL_VERSION:"2.7.0-beta.17469204",ALIPAY_AVAILABLE_VERSION:"10.1.52",SHARE_PATH:"um_share_path",SHARES:"shares",REQUESTS:"requests",UUID:"um_uuid",UUID_SUFFIX:"ud",OPENID:"um_od",UNIONID:"um_unid",ALIPAYID:"um_alipayid",USERID:"um_userid",PROVIDER:"um_provider",SWANID:"um_swanid",ANONYMOUSID:"um_anonymousid",LAUNCH_OPTIONS:"LAUNCH_OPTIONS",UM_SSRC:"_um_ssrc",USER_INFO:"user_info",IS_ALIYUN:!1},c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function f(e,t){c(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,l=function(e){f(t,e);function t(){var t=null!==e&&e.apply(this,arguments)||this;t._openid="";t._unionid="";t._useOpenid=!1;return t}t.prototype.initID=function(e){var t=this;t._idType=t._useOpenid?"openid":"uuid";D().v("id type: ",t._idType);n.getStorage(u.UNIONID,(function(e){t._unionid=e}));this._useOpenid?n.getStorage(u.OPENID,(function(n){t._openid=n;e&&e()})):e&&e()};t.prototype.setUseOpenid=function(e){this._useOpenid=e};t.prototype.setOpenid=function(e){if(!this._openid&&e){this._openid=e;n.setStorage(u.OPENID,e)}};t.prototype.setUnionid=function(e){if(!this._unionid&&e){this._unionid=e;n.setStorage(u.UNIONID,e)}};t.prototype.getIdTracking=function(){var t=e.prototype.getIdTracking.call(this);this._openid&&(t.openid=this._openid);this._unionid&&(t.unionid=this._unionid);this._userid&&(t.userid=this._userid);return t};t.prototype.getId=function(){return this._useOpenid?this._openid:this._uuid};return t}(function(){function e(){this._uuid="";this._userid="";this._provider="";this._idType=""}e.prototype.createUUID=function(){return a.getRandomStr(10)+Date.now()+a.getRandomStr(7)+u.UUID_SUFFIX};e.prototype.initUUID=function(e){var t=this;n.getStorage(u.UUID,(function(i){if(i)t._uuid=i;else{t._uuid=t.createUUID();n.setStorage(u.UUID,t._uuid)}e&&e(i)}))};e.prototype.initUserid=function(){var e=this;n.getStorage(u.USERID,(function(t){if(!e._userid&&t){e._userid=t;D().v("userId is ",t)}}));n.getStorage(u.PROVIDER,(function(t){if(!e._provider&&t){e._provider=t;D().v("provider is ",t)}}))};e.prototype.init=function(e){var t=this;t.initUUID((function(){t.initUserid();t.initID(e)}))};e.prototype.setUserid=function(e,t){if(!this._userid&&e){this._userid=e;this._provider=t;n.setStorage(u.USERID,e);n.setStorage(u.PROVIDER,t)}};e.prototype.getUserId=function(){return this._userid};e.prototype.getProvider=function(){return this._provider};e.prototype.getIdType=function(){return this._idType};e.prototype.getIdTracking=function(){var e={};this._uuid&&(e.uuid=this._uuid);this._userid&&(e.userid=this._userid);return e};return e}()),d=e(),h=function(e){f(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.getOpenIdAsync=function(e,t){var i=this;d.login({success:function(r){r.code?n.request({url:u.ENDPOINT+u.GET_OPENID_URL,method:"GET",data:{key:e,code:r.code},success:function(e){if(e&&200===e.statusCode&&e.data&&e.data.data){var n=e.data.data;i.setOpenid(n.oid);i.setUnionid(n.uid);return t&&t(!0)}t&&t()},fail:function(e){D().v("wx request failed...",e);t&&t()}}):t&&t()},fail:function(){t&&t()}})};return t}(l),g=(p=null,function(){p||(p=new h);return p}),v={};var _=function(){var e=null,t=[],n="";function i(){return{add:function(e,i){D().v("share origin: %o",e);var r={title:e&&e.title,path:e&&e.path&&e.path.split("?")[0],_um_sts:Date.now()};r.path&&r.path.length>1&&a.startsWith(r.path,"/")&&(r.path=a.trimStart(r.path,"/"));var o=e.path||"",s=g().getId();if(s){var u=n.split(","),c=(u=u.filter((function(e){return e.length>0}))).indexOf(s);c>=0&&(u=u.slice(0,c));u.length<3&&u.push(s);var f=u.join(",");-1!==o.indexOf("?")?o+="&_um_ssrc="+f:o+="?_um_ssrc="+f;var p=Date.now();o+="&_um_sts="+p;if(i){var l=function(e){var t=[];for(var n in e)"_um_ssrc"!==n&&"_um_sts"!==n&&t.push(n+"="+e[n]);return t.join("&")}(v),d=l?l+"&_um_ssrc="+f+"&_um_sts="+p:"_um_ssrc="+f+"&_um_sts="+p;e.query=e.query?e.query+"&_um_ssrc="+f+"&_um_sts="+p:d}else e.path=o;r._um_ssrc=f;r._um_sts=p}t.push(r);D().v("share: %o",e);return e},setShareSource:function(e){n=e},clear:function(){t.length=0},get:function(){return t}}}return function(){e||(e=new i);return e}}(),y=function(){var e=null,t=null,i=null;function r(){return{resume:function(e){var r=!1;i||(i=s().get(u.CURRENT_SESSION));var o=new Date;t=o.getTime();if(!i||!i.end_time||t-i.end_time>u.SESSION_INTERVAL){r=!0;!function(e){try{var t=(i||{}).options||{},r=a.assign({},function(e){var t={};for(var n in e)0===n.indexOf("_um_")&&(t[n]=e[n]);D().v("query: ",e);D().v("_um_params: ",t);return t}(e.query));r.path=e.path||t.path;r.scene=e.scene?n.getPlatform()+"_"+e.scene:t.scene;var o=e.referrerInfo;o&&(r.referrerAppId=o.appId);D().v("session options: ",r);var s=r[u.UM_SSRC];s&&_().setShareSource(s);var c=Date.now();i={id:a.getRandomStr(10)+c,start_time:c,options:r}}catch(e){D().e("生成新session失败: ",e)}}(e);D().v("开始新的session(%s): ",i.id,i)}else D().v("延续上一次session(%s): %s ",i.id,o.toLocaleTimeString(),i);return r},pause:function(){!function(){if(i){var e=new Date;i.end_time=e.getTime();"number"!=typeof i.duration&&(i.duration=0);i.duration=i.end_time-t;s().set(u.CURRENT_SESSION,i);D().v("退出会话(%s): %s ",i.id,e.toLocaleTimeString(),i)}}()},getCurrentSessionId:function(){return(i||{}).id},getCurrentSession:function(){return i},cloneCurrentSession:function(){return a.clone(i)}}}return function(){e||(e=r());return e}}(),m=function(){var e,t,n=[],i=[];function r(){if(n.length){var e=s().get("ekvs");if(function(e){var t=0;for(var n in e)Array.isArray(e[n])&&(t+=e[n].length);return t}(e)+n.length<=1e4){e=o(e,n);s().set("ekvs",e)}}}function o(e,n){var i=(e=e||{})[t];Array.isArray(i)&&i.length?e[t]=i.concat(n):e[t]=[].concat(n);return e}return function(){e||(e={addEvent:function(e){if(t){n.unshift(e);if(n.length>1){r();n.length=0}}else{D().w("session id is null: ",t);i.unshift(e)}},setSessionId:function(e){t=e;D().v("setSessionId: ",t);if(Array.isArray(i)&&i.length&&t){for(var n=0;n<i.length;n++)this.addEvent(i[n]);i.length=0}},getEkvs:function(){var e=s().get("ekvs");n&&n.length&&(e=o(e,n));return e},clear:function(){s().remove("ekvs");n.length=0}});return e}}(),S=function(){var e=null;function t(){var e=!1,t=null,n=[];this.addPageStart=function(n){if(n&&!e){t={ts:Date.now(),path:n,page_name:n};e=!0}};this.addPageEnd=function(i){if(e&&i&&t&&i===t.page_name){var r=Date.now()-t.ts;t.duration=Math.abs(r);n.push(t);t=null;e=!1}};this.get=function(){return n};this.getCurrentPage=function(){return t};this.clear=function(){n.length=0}}return function(){e||(e=new t);return e}}(),I="2g",O="3g",E="4g",T="half_session",N="close_session",A="ekv";function k(e){var t=null;switch(e){case T:t=function(){var e=null,t=y().cloneCurrentSession();t&&(e={header:{st:"1"},analytics:{sessions:[t]}});return e}();break;case N:t=function(){var e=null,t={},n=y().cloneCurrentSession();if(n){var i=S().get(),r=_().get();Array.isArray(i)&&i.length&&(n.pages=a.clone(i));Array.isArray(r)&&r.length&&(n.shares=a.clone(r));S().clear();_().clear();t.sessions=[n]}var o=m().getEkvs();if(o){t.ekvs=a.clone(o);m().clear()}(t.sessions||t.ekvs)&&(e={analytics:t});return e}();break;case A:t=function(){var e=null,t=m().getEkvs();if(t){e={analytics:{ekvs:a.clone(t)}};m().clear()}return e}()}return t}var b="[UMENG] -- ",D=function(){var e=null,t=!1;function n(){this.setDebug=function(e){t=e};this.d=function(){if(t)try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}};this.i=function(){try{if(t)try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}}catch(e){}};this.e=function(){if(t)try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}};this.w=function(){if(t)try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}};this.v=function(){if(t)try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}};this.t=function(){if(t)try{console.log.apply(console,arguments)}catch(e){}};this.tip=function(){try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}};this.tip_w=function(e){try{console.log("%c [UMENG] -- "+e,"background:red; padding: 4px; padding-right: 8px; border-radius: 4px; color: #fff;")}catch(e){}};this.err=function(){try{"string"==typeof arguments[0]&&(arguments[0]=b+arguments[0]);console.log.apply(console,arguments)}catch(e){}};this.repeat=function(e){for(var t=e;t.length<86;)t+=e;return t}}return function(){null===e&&(e=new n);return e}}();function w(){}w.prototype={on:function(e,t,n){var i=this.e||(this.e={});(i[e]||(i[e]=[])).push({fn:t,ctx:n});return this},once:function(e,t,n){var i=this;function r(){i.off(e,r);t.apply(n,arguments)}r._=t;return this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,s=i.length;o<s;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);r.length?n[e]=r:delete n[e];return this}};var R=new w;R.messageType={CONFIG_LOADED:0,UMA_LIB_INITED:1};var U=["access","access_subtype"],P=function(){var e=null;function t(){var e=!1,t={};function r(e){var r=s().get(u.IMPRINT);r&&(t.imprint=r);t.device_type="Phone";t.sdk_version=u.IMPL_VERSION;t.appkey=i().appKey();n.getDeviceInfo((function(e){t.device_info=e||""}));var o=n.getAppInfoSync();t.appid=o.appId;t.app_env=o.appEnv;t.app_version=o.appVersion;n.getSystemInfo((function(i){n.getNetworkInfo((function(r){var o=function(e,t){var i={};(e=e||{}).safeArea=e.safeArea||{};var r=(t=t||{}).networkType;"none"===r&&(r="unknown");var o=e.model||"",s=e.platform||"",a=e.brand||"",u=a.toLowerCase();i.sdk_type=n.getSdkType();i.platform=n.getPlatform();i.platform_sdk_version=e.platformSDKVersion;i.platform_version=e.platformVersion;i.resolution=e.resolution;i.pixel_ratio=e.pixelRatio;i.os=s;i.font_size_setting=e.fontSizeSetting;i.device_model=o;i.device_brand=a;i.device_manufacturer=u;i.device_manuid=o;i.device_name=o;i.os_version=e.OSVersion;i.language=e.language;i.theme=e.theme;i.benchmark_level=e.benchmarkLevel;i.status_bar_height=e.statusBarHeight;i.safe_area_top=e.safeArea.top;i.safe_area_left=e.safeArea.left;i.safe_area_right=e.safeArea.right;i.safe_area_bottom=e.safeArea.bottom;i.safe_area_height=e.safeArea.height;i.safe_area_width=e.safeArea.width;i.storage=e.storage;i.screen_width=e.screenWidth;i.screen_height=e.screenHeight;i.host=e.host;switch(r=r?r.toLowerCase():""){case E:i.access_subtype="LTE";i.access="4G";break;case O:i.access_subtype="CDMA";i.access="3G";break;case I:i.access_subtype="GRPS";i.access="2G";break;default:i.access=r;delete i.access_subtype}return i}(i,r);a.assign(t,o);e&&e()}))}))}return{init:function(){r((function(){e=!0}))},isLoaded:function(){return e},get:function(){return t},getRealtimeFields:function(){var e={};U.forEach((function(n){e[n]=t[n]}));return e},setIdTracking:function(e){this.setItem("id_tracking",e)},setIdType:function(e){this.setItem("id_type",e)},setAppVersion:function(e){this.setItem("app_version",e)},setSuperProperty:function(e){t.sp||(t.sp={});t.sp.isv=e},getSuperProperty:function(){return t&&t.sp?t.sp.isv:""},setItem:function(e,n){t[e]=n},getItem:function(e){return t[e]}}}return{instance:function(){e||(e=t());return e}}}(),C={sessions:"sn",ekvs:"e",active_user:"active_user"},L={sdk_type:"sdt",access:"ac",access_subtype:"acs",device_model:"dm",language:"lang",device_type:"dt",device_manufacturer:"dmf",device_name:"dn",platform_version:"pv",id_type:"it",font_size_setting:"fss",os_version:"ov",device_manuid:"did",platform_sdk_version:"psv",device_brand:"db",appkey:"ak",_id:"id",id_tracking:"itr",imprint:"imp",sdk_version:"sv",resolution:"rl",testToken:"ttn",theme:"t5",benchmark_level:"bml",screen_width:"sw",screen_height:"sh",status_bar_height:"sbh",safe_area_top:"sat",safe_area_left:"sal",safe_area_right:"sar",safe_area_bottom:"sab",safe_area_height:"sah",safe_area_width:"saw",pixel_ratio:"pr",storage:"s7",host:"hs"},M={uuid:"ud",unionid:"und",openid:"od",anonymousid:"nd",alipay_id:"ad",device_id:"dd",userid:"puid"};function j(e,t){var n=V(e,t);e&&e.id_tracking&&(n[t.id_tracking||"id_tracking"]=V(e.id_tracking,M));return n}function V(e,t){var n={};for(var i in e)t[i]?n[t[i]]=e[i]:n[i]=e[i];return n}function x(e,t){var n={};if(e)for(var i in e)e[i]&&(n[t[i]]=e[i]);return n}var q="";function G(){return q}var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=function(e){for(var t={},n=0,i=e.length;n<i;n++)t[e.charAt(n)]=n;return t}(F),K=String.fromCharCode,Y=function(e){if(e.length<2){return(t=e.charCodeAt(0))<128?e:t<2048?K(192|t>>>6)+K(128|63&t):K(224|t>>>12&15)+K(128|t>>>6&63)+K(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return K(240|t>>>18&7)+K(128|t>>>12&63)+K(128|t>>>6&63)+K(128|63&t)},J=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,X=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[F.charAt(n>>>18),F.charAt(n>>>12&63),t>=2?"=":F.charAt(n>>>6&63),t>=1?"=":F.charAt(63&n)].join("")},B=function(e){return function(e){return e.replace(J,Y)}(e).replace(/[\s\S]{1,3}/g,X)},W=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),z=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return K(55296+(t>>>10))+K(56320+(1023&t));case 3:return K((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return K((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Q=function(e){var t=e.length,n=t%4,i=(t>0?H[e.charAt(0)]<<18:0)|(t>1?H[e.charAt(1)]<<12:0)|(t>2?H[e.charAt(2)]<<6:0)|(t>3?H[e.charAt(3)]:0),r=[K(i>>>16),K(i>>>8&255),K(255&i)];r.length-=[0,0,2,1][n];return r.join("")},Z=function(e){return function(e){return e.replace(/[\s\S]{1,4}/g,Q)}(e).replace(W,z)},$=function(e,t){return t?B(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):B(String(e))},ee=function(e){return Z(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))};var te=new function(){var e="",t=this;this.set=function(t){e=t};this.get=function(){return e};this.getImpObj=function(){return o(ee(e))};this.getItem=function(e){var n=t.getImpObj();return n&&n[e]||""};this.load=function(){e=s().get(u.IMPRINT)};this.save=function(){e&&s().set(u.IMPRINT,e)}};function ne(e,t,i,o){P.instance().setIdType(g().getIdType());P.instance().setIdTracking(g().getIdTracking());var s=g().getUserId();s&&e.analytics&&(e.analytics.active_user={puid:s,provider:g().getProvider()});var c=a.clone(P.instance().get());e.header=a.assign(c,e.header,{ts:Date.now(),testToken:G(),traceId:a.getRandomStr(10)+Date.now()+a.getRandomStr(9)});var f,p=function(e){return{h:j(e.header,L),a:x(e.analytics,C)}}(e),l=r(p),d={url:u.ENDPOINT+u.LOG_URL,method:"POST",data:$(l),success:function(n){var r=n.code||n.status||n.statusCode;if(200===r||413===r){D().i("数据发送成功: ",e,l);!function(e){if(e){P.instance().setItem(u.IMPRINT,e);te.set(e);te.save();D().v("imprint: ",te.getImpObj());te.getItem("ttn_invalid")&&(q="")}}((n.data||{}).imprint);"function"==typeof t&&t(n)}else{D().w("数据发送失败: ",l);"function"==typeof i&&i()}},fail:function(e){D().w("超时: ",l);"function"==typeof i&&i()},complete:function(){"function"==typeof o&&o()}};n.request(a.assign(d,{header:{"Content-Type":f=n.getSdkType()+"/json","Msg-Type":f}}))}function ie(e){var t=e,n=[];this.enqueue=function(e){"number"==typeof t&&this.size()>=t&&this.dequeue();n.push(e)};this.dequeue=function(){return n.shift()};this.front=function(){return n[0]};this.isEmpty=function(){return 0===n.length};this.clear=function(){n.length=0};this.size=function(){return n.length};this.items=function(){return n};this.print=function(){console.log(n.toString())}}var re=function(){var e=null,t=!1,n=[],i=new ie(50);function r(e,t,n){if(P.instance().isLoaded()){t=t||{};var o=k(e);if(o){var s=P.instance().getRealtimeFields();o.header=a.assign({},o.header,s);o.noCache=t.noCache;i.enqueue(o)}"function"==typeof n&&n()}else setTimeout((function(){r(e,t,n)}),100)}function o(e){var t=i.front();if(t)ne(t,(function(){i.dequeue();o(e)}),(function(){var t=i.dequeue();t&&!t.noCache&&n.push(t);o(e)}));else{!function(){n.forEach((function(e){i.enqueue(e)}));n.length=0}();e()}}function c(e){if(g().getId())if(t)D().i("队列正在发送中");else{t=!0;o((function(){t=!1;"function"==typeof e&&e()}))}else{D().i("获取id标识失败,暂缓发送");"function"==typeof e&&e()}}function f(){this.send=function(e,t,n){e?this.add(e,t,(function(){c(n)})):c(n)};this.add=function(e,t,n){r(e,t,n)};this.load=function(){var e=s().get(u.REQUESTS);e&&e.length&&e.forEach((function(e){i.enqueue(e)}));s().remove(u.REQUESTS)};this.save=function(){s().set(u.REQUESTS,a.clone(i.items()));i.clear()}}return function(){e||(e=new f);return e}}(),oe=function(){var e=null,t=null;function r(){this.setUserInfo=function(e){t=e};this.update=function(){e(t)||n.getUserInfo((function(t){e(t)}))};function e(e){if(e&&"object"==typeof e){var t=s().get(u.USER_INFO);t&&a.deepEqual(e,t)||function(e,t){var r=i().appKey(),o=n.getSdkType(),s=g().getId(),a=g().getIdType();if(!(r&&o&&s&&a))return;var c={ak:i().appKey(),sdt:n.getSdkType(),uin:e.nickName,uia:e.avatar||e.avatarUrl,uig:e.gender,uit:e.country,uip:e.province,uic:e.city,uil:e.language,id:g().getId(),it:g().getIdType()},f=JSON.stringify(c);f=$(f);n.request({url:u.ENDPOINT+u.USERINFO_URL,method:"POST",header:{"content-type":"application/x-www-form-urlencoded"},data:"ui="+f,success:function(n){D().v("用户信息上传成功: ",e);t&&t(n&&n.data&&200===n.data.code)},fail:function(){D().e("用户信息上传失败: ",e);t&&t(!1)}})}(e,(function(t){t&&s().set(u.USER_INFO,e)}));return!0}return!1}}return function(){e||(e=new r);return e}}();function se(e,t){this.id=e;this.ts=Date.now();var n=typeof t;if("string"===n&&t)this[e]=t;else if("object"===n)for(var i in t)({}).hasOwnProperty.call(t,i)&&(this[i]=t[i])}function ae(){var e=!1,t=!1,r=0;this.init=function(t){D().v("sdk version: "+u.IMPL_VERSION);e?D().v("Lib重复实例化"):s().load((function(){D().v("cache初始化成功: ",s().getAll());!function(){g().setUseOpenid&&g().setUseOpenid(i().useOpenid());g().init((function(){P.instance().init();D().v("Header初始化成功")}))}();e=!0;"function"==typeof t&&t();D().tip("SDK集成成功")}))};this.resume=function(n){if(e&&!t){D().v("showOptions: ",n);var r;t=!0;i().enableVerify()&&n&&n.query&&(r=n.query._ttn,q=r||q);this._resume(n)}};this._resume=function(e){re().load();var t=y().resume(e),n=y().getCurrentSessionId();m().setSessionId(n);t&&re().add(T,{},(function(){g().setUseOpenid&&g().setUseOpenid(i().useOpenid());if(i().useOpenid()&&i().autoGetOpenid()&&!g().getId()){D().v("get id async");r(10,3e3)}else{D().v("session auto send");re().send()}}));function r(e,t){g().getId()||e<=0||g().getOpenIdAsync(i().appKey(),(function(n){if(n){D().v("获取id成功");re().send()}else{D().v("获取openid失败,启动重试,剩余可用次数",e-1);setTimeout((function(){r(e-1,t)}),t)}}))}};this.pause=function(n){if(e){t=!1;r=0;y().pause();i().uploadUserInfo()&&oe().update();re().send(N,{},(function(){re().save();s().save();D().v("cache save success");"function"==typeof n&&n()}))}};this.setOpenid=function(e){D().v("setOpenId: %s",e);g().setOpenid(e);re().send()};this.setUnionid=function(e){D().v("setUnionid: %s",e);g().setUnionid(e)};this.setUserid=function(e,t){D().v("setUserid: %s",e,t);g().setUserid(e,t)};this.setUserInfo=function(e){D().v("setUserInfo: %s",e);oe().setUserInfo(e)};this.setAnonymousid=function(e){D().v("setAnonymousId: %s",e);g().setAnonymousid(e);re().send()};this.setAppVersion=function(e){e&&"string"!=typeof e?D().w("setAppVersion方法只接受字符串类型参数"):P.instance().setAppVersion(e)};this.setAlipayUserid=function(e){if(e&&"string"!=typeof e)D().w("setAlipayUserid方法只接受字符串类型参数");else{D().v("setAlipayUserid: %s",e);g().setAlipayUserid(e)}};this.setDeviceId=function(e){if("string"==typeof e){g().setDeviceId(e);return e}};this.setSuperProperty=function(e){if(e&&"string"!=typeof e)D().w("超级属性只支持字符串类型");else{var t=this;if(P.instance().getSuperProperty()!==e){P.instance().setSuperProperty(e);t.pause((function(){t.resume()}))}}};this.trackEvent=function(t,n){if(e){D().v("event: ",t,n);if(function(e,t){if(!e||"string"!=typeof e){D().e('please check trackEvent id. id should be "string" and not null');return!1}var n=["id","ts","du"],i={};n.forEach((function(e){i[e]=1}));if(i[e]){D().e("eventId不能与以下保留字冲突: "+n.join(","));return!1}if(e.length>u.MAX_EVENTID_LENGTH){D().e("The maximum length of event id shall not exceed "+u.MAX_EVENTID_LENGTH);return!1}if(t&&("object"!=typeof t||Array.isArray(t))&&"string"!=typeof t){D().e("please check trackEvent properties. properties should be string or object(not include Array)");return!1}if("object"==typeof t){var r=0;for(var o in t)if({}.hasOwnProperty.call(t,o)){if(o.length>u.MAX_PROPERTY_KEY_LENGTH){D().e("The maximum length of property key shall not exceed "+u.MAX_PROPERTY_KEY_LENGTH);return!1}if(r>=u.MAX_PROPERTY_KEYS_COUNT){D().e("The maximum count of properties shall not exceed "+u.MAX_PROPERTY_KEYS_COUNT);return!1}if(i[o]){D().e("属性中的key不能与以下保留字冲突: "+n.join(","));return!1}r+=1}}return!0}(t,n)){var i=new se(t,n);m().addEvent(i);var o=!!G(),s=o?0:u.EVENT_SEND_DEFAULT_INTERVAL,a=Date.now();if(function(e,t){return"number"!=typeof r||"number"!=typeof t||r<=0||e-r>t}(a,s)){r=a;re().send(A,{noCache:o},(function(){}))}}}};this.trackShare=function(t){if(e)try{if(n.getSdkType().indexOf("game")>-1){t=_().add(t,!0);D().v("shareQuery: ",t)}else{t=_().add(t,!1);D().v("sharePath: ",t.path)}}catch(e){D().v("shareAppMessage: ",e)}return t};this.trackPageStart=function(t){e&&S().addPageStart(t)};this.trackPageEnd=function(t){e&&S().addPageEnd(t)};this.onShareAppMessage=function(e){var t=this;n.onShareAppMessage((function(){return t.trackShare(e())}))};this.shareAppMessage=function(e){this.trackShare(e);n.shareAppMessage(e)}}var ue=[];function ce(){}ce.prototype={createMethod:function(e,t,n){try{e[t]=n&&n[t]?function(){return n[t].apply(n,arguments)}:function(){ue.push([t,[].slice.call(arguments)])}}catch(e){D().v("create method errror: ",e)}},installApi:function(e,t){try{var n,i,r="resume,pause,trackEvent,trackPageStart,trackPageEnd,trackShare,setUserid,setOpenid,setUnionid,onShareAppMessage,shareAppMessage,setUserInfo".split(",");for(n=0,i=r.length;n<i;n++)this.createMethod(e,r[n],t);if(t)for(n=0,i=ue.length;n<i;n++){var o=ue[n];try{t[o[0]].apply(t,o[1])}catch(e){D().v("impl[v[0]].apply error: ",o[0],e)}}}catch(e){D().v("install api errror: ",e)}}};var fe=[u.ENDPOINT,u.ENDPOINTB];function pe(e,t){var i,r;0===e||1===e&&t?i=u.ENDPOINT:2===e&&t?i=u.ENDPOINTB:t&&(i=fe[e]);if(e>=fe.length||t){t&&(r=i,u.ENDPOINT=r);t&&D().v("命中可用服务",i);!t&&D().tip_w("未命中可用服务");return!1}n.request({url:u.ENDPOINT+"/uminiprogram_logs/ckdh",success:function(t){200===(t.code||t.status||t.statusCode)&&t.data&&200===t.data.code?pe(e+1,!0):pe(e+1,!1)},fail:function(){pe(e+1,!1)}})}({init:function(e){u.ENDPOINTB&&setTimeout((function(){pe(0,!1)}),e)}}).init(3e3);var le=new ce,de={_inited:!1,_log:D(),preinit:function(e){if(e&&"object"==typeof e)for(var t in e)u[t]=e[t];return u},use:function(e,t){e&&a.isFunction(e.install)?e.install(de,t):a.isFunction(e)&&e(de,t);return de},messager:R,init:function(e){if(this._inited)D().v("已经实例过,请避免重复初始化");else if(e)if(e.appKey){"boolean"!=typeof e.useOpenid&&(e.useOpenid=!0);i().set(e);D().setDebug(e.debug);this._inited=!0;var t=this;R.emit(R.messageType.CONFIG_LOADED,e);try{var n=new ae;D().v("成功创建Lib对象");n.init((function(){D().v("Lib对象初始化成功");le.installApi(t,n);D().v("安装Lib接口成功");R.emit(R.messageType.UMA_LIB_INITED,e)}))}catch(e){D().w("创建Lib对象异常: "+e)}}else D().err("请确保传入正确的appkey");else D().err("请正确设置相关信息!")}};try{le.installApi(de,null)}catch(e){D().w("uma赋值异常: ",e)}var he="https://ucc.umeng.com/v1/mini/fetch",ge="https://pslog.umeng.com/mini_ablog",ve="2.7.0-beta.17469204",_e="none",ye={},me=Array.isArray;ye.isArray=me||function(e){return"[object Array]"===toString.call(e)};ye.isObject=function(e){return e===Object(e)&&!ye.isArray(e)};ye.isEmptyObject=function(e){if(ye.isObject(e)){for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}return!1};ye.isUndefined=function(e){return void 0===e};ye.isString=function(e){return"[object String]"===toString.call(e)};ye.isDate=function(e){return"[object Date]"===toString.call(e)};ye.isNumber=function(e){return"[object Number]"===toString.call(e)};ye.each=function(e,t,n){if(null!=e){var i={},r=Array.prototype.forEach;if(r&&e.forEach===r)e.forEach(t,n);else if(e.length===+e.length){for(var o=0,s=e.length;o<s;o++)if(o in e&&t.call(n,e[o],o,e)===i)return}else for(var a in e)if(hasOwnProperty.call(e,a)&&t.call(n,e[a],a,e)===i)return}};ye.buildQuery=function(e,t){var n,i,r=[];void 0===t&&(t="&");ye.each(e,(function(e,t){n=encodeURIComponent(e.toString());i=encodeURIComponent(t);r[r.length]=i+"="+n}));return r.join(t)};ye.JSONDecode=function(e){if(e){try{return JSON.parse(e)}catch(e){console.error("JSONDecode error",e)}return null}};ye.JSONEncode=function(e){try{return JSON.stringify(e)}catch(e){console.error("JSONEncode error",e)}};var Se=Object.create(null);function Ie(e){D().v("开始构建 fetch body");n.getSystemInfo((function(t){n.getNetworkInfo((function(r){var o=(r=r||{}).networkType;o=o===_e?"unknown":o.toUpperCase();Se.access=o;!function(e,t){var r=e.brand||"";Se.deviceType="Phone";Se.sdkVersion=ve;Se.appkey=i().appKey();Se.sdkType=n.getSdkType();Se.umid=g().getId();if(e){Se.language=e.language||"";Se.os=e.OS;Se.osVersion=e.OSVersion;Se.deviceName=e.deviceName;Se.platformVersion=e.platformVersion;Se.platformSdkVersion=e.platformSDKVersion;Se.deviceBrand=r;var o=e.resolution.split("*");if(ye.isArray(o)){Se.resolutionHeight=Number(o[0]);Se.resolutionWidth=Number(o[1])}}!function(e){if(e){Se.installTime=e.install_datetime&&Date.parse(e.install_datetime);Se.scene=e.install_scene;Se.channel=e.install_channel;Se.campaign=e.install_campaign}}(te.getImpObj());t&&t(Se)}(t,e)}))}))}var Oe=Object.create(null),Ee=null,Te=!1,Ne={minFetchIntervalSeconds:43200};function Ae(e){e&&ye.each(e,(function(e){Oe[e.k]=e}))}function ke(){var e=this;this.STORAGE_NAME=null;R.once(R.messageType.CONFIG_LOADED,(function(t){D().v("云配初始化开始...");e.init(t)}))}ke.prototype={setDefaultValues:function(e){Te&&ye.isObject(e)&&ye.each(e,(function(e,t){Oe[t]&&Oe[t].v||(Oe[t]={v:e})}))},getValue:function(e){D().v("从配置项中读取 value, 当前配置为: ",Oe);D().v("待读取的 key : ",e);try{if(!Te)return;var t=Oe[e]||{};D().v("读取相应配置ing..., 结果为: ",t);if(ye.isNumber(t.e)&&ye.isNumber(t.g)){D().v("读取到相应配置, 开始数据上报...");!function(e){var t={appkey:i().appKey(),sdkType:n.getSdkType(),expId:e&&e.e,groupId:e&&e.g,clientTs:Date.now(),key:e&&e.k,value:e&&e.v,umid:g().getId()};try{n.request({url:ge,method:"POST",data:[t],success:function(e){e&&200===e.statusCode?D().v("上传数据成功",t):D().w("ablog 请求成功, 返回结果异常 ",e)},fail:function(e){D().w("ablog 请求数据错误 ",t,e)}})}catch(e){D().w("urequest 调用错误",e)}}(t)}return t.v}catch(t){D().w("getValue error, key: ",e)}},active:function(e){try{if(!Te)return;var t,i;e&&e.params&&(t=e.params);e&&e.callback&&(i=e.callback);D().v("激活配置项: ",t);if(t){D().v("本地已缓存的配置项: ",Oe);Ae(t);D().v("合并后的配置项: ",Oe);i&&i(Oe);D().v("active 结束")}else{D().v("配置项为空!! 读取本地配置...");n.getStorage(this.STORAGE_NAME,(function(e){if(e){Ae((e=ye.JSONDecode(e)||{}).params);D().v("当前本地配置项为: ",Oe);i&&i(Oe);D().v("active 结束")}else D().v("当前本地配置项为空, 退出激活")}))}}catch(e){D().w("SDK active 错误",e)}},init:function(e){if(e.appKey){Ee=e.appKey;this.STORAGE_NAME="um_remote_config_{{"+Ee+"}}"}if(Ee)if(Te)D().w("SDK 已经初始化, 请避免重复初始化");else{Te=!0;this.setOptions(e);this.active()}else D().err("请检查您的小程序 appKey, appKey 不能为空")},setOptions:function(e){if(ye.isObject(e)){var t=e.minFetchIntervalSeconds;ye.isNumber(t)&&(Ne.minFetchIntervalSeconds=Math.max(t,5))}},fetch:function(e){if(Te&&this.STORAGE_NAME){var t,i;e&&e.active&&(t=e.active);e&&e.callback&&(i=e.callback);var r=this;n.getStorage(this.STORAGE_NAME,(function(e){D().v("开始读缓存 data is ",e);if((e=ye.JSONDecode(e)||{}).params&&e.ts&&Date.now()-e.ts<1e3*Ne.minFetchIntervalSeconds){D().v("缓存数据存在, 并且本次触发时间距离上次fetch触发时间未超过 fetch 时间间隔, 无需 fetch");i&&i(e.params)}else Ie((function(e){D().v("缓存数据不存在, 构建 fetch body :",e);try{n.request({url:he,method:"POST",data:e,success:function(e){if(e&&200===e.statusCode&&e.data&&e.data.cc){D().v("fetch 请求成功, 响应数据: ",e.data);var o=Object.create(null);ye.each(e.data.cc,(function(e){o[e.k]=e}));var s={ts:Date.now(),params:o};D().v("开始缓存 fetch 请求的云配置结果...");n.setStorage(r.STORAGE_NAME,ye.JSONEncode(s),(function(e){D().v("缓存云配置成功, 缓存数据为: ",s);D().v("缓存云配置成功, 成功消息为: ",e);D().v("云配拉取数据是否自动激活: ",t);if(e&&t){D().v("激活云配置...");r.active({params:o,callback:i})}}))}else{D().w("fetch 请求成功,返回结果异常 ",e.data);i&&i()}},fail:function(t){D().w("fetch请求数据错误 ",e,t);i&&i()}})}catch(e){D().w("urequest调用错误",e)}}))}))}}};var be={install:function(e,t){e.rc||(e.rc=new ke);e.messager.once(e.messager.messageType.CONFIG_LOADED,(function(){e._log.v("plugin rc installed")}));return e.rc}},De="_um",we="revenue",Re="stage",Ue="level",Pe="running",Ce="end",Le="init",Me="set",je=[De,Re,"start"].join(".");function Ve(e){var t={};for(var n in e){var i=e[n];if("object"==typeof i)for(var r in i)t[n+"."+r]=i[r];else t[n]=i}return t}var xe={install:function(e,t){e.revenue=function(t){e.trackEvent([De,we,t.group].join("."),Ve(t))};var n=0;e.stage={onStart:function(t){n=Date.now();e.trackEvent(je,Ve(t))},onEnd:function(t){"number"!=typeof t._um_sdu&&(t._um_sdu=0!==n?Date.now()-n:0);e.trackEvent([De,Re,Ce,t.event].join("."),Ve(t))},onRunning:function(t){e.trackEvent([De,Re,Pe,t.event].join("."),Ve(t))}};e.level={onInitLevel:function(t){e.trackEvent([De,Ue,Le].join("."),Ve(t))},onSetLevel:function(t){e.trackEvent([De,Ue,Me].join("."),Ve(t))}};e.messager.once(e.messager.messageType.CONFIG_LOADED,(function(){e._log.v("plugin game-ext installed")}));return e}},qe=n.getContext();qe.onShow((function(e){D().v("game onShow: ",e);t=e.query,v=t;var t;de.resume(e,!0)}));qe.onHide((function(){D().v("game onHide");de.pause()}));var Ge=de.init;de.init=function(e){if(e&&e.useOpenid){D().tip_w(D().repeat("!"));D().tip_w("您选择了使用openid进行统计,请确保使用setOpenid回传openid或通过设置autoGetOpenid为true,并在友盟后台设置secret由友盟帮您获取");D().tip_w(D().repeat("!"))}de.resume({});Ge.call(de,e)};de.use(be);de.use(xe);qe.uma=de;export default de;