You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
15 KiB

10 months ago
function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function e(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function o(t,e,a){return(e=n(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function r(t,e){if(null==t)return{};var n,a,o=function(t,e){if(null==t)return{};var n,a,o={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var i={env:"uni",getCurrentPages:getCurrentPages,sdk_version:"1.2.0"};i.methods=uni,i.sdk_type="uniminiprogram",i.lifecycle={app:["onLaunch","onShow","onHide"],page:["onShow","onHide","onShareAppMessage"]};var s={config:{trackType:"track",path:{get:"/events/sdk/trace",post:"/events/sdk/trace"},apiMethod:"post",encryptMode:"default",apiHost:"https://v.qidian.qq.com",appkey:"",kfuin:"",appid:"",useId:!1,application:"",enable_compression:!1,track_interval:5e3,batch_max_time:8,url:"",session_interval:18e5,autoTrack:{appLaunch:!0,appShow:!0,appHide:!0,pageShow:!0,pageHide:!0}},accounts:{},idData:{},systemData:{},userDefineDataProperties:{},commonDataProperties:{},commonDataGlobel:{},pageData:{},setUserDefineData:function(t){this.userDefineDataProperties=e(e({},this.userDefineDataProperties),t)},setCommonData:function(t,n){this.commonDataProperties=e(e({},this.commonDataProperties),t),this.commonDataGlobel=e(e({},this.commonDataGlobel),n)},setQdtData:function(t,e){Object.keys(t||{}).forEach((function(n){"title"!==n&&t[n]&&(e[n]=t[n])}))},setPageData:function(t){this.pageData=t},setSystemData:function(t){this.systemData=e(e({},this.systemData),t)},getSystemData:function(t){return this.systemData[t]},setConfig:function(t){this.config=e(e({},this.config),t)},getConfig:function(t){return this.config[t]},setIdData:function(t){this.idData=e(e({},this.idData),t)},getIdData:function(t){return this.idData[t]},getIDs:function(){return this.idData},setAccountInfo:function(t){this.accounts=e(e({},this.accounts),t)},getParams:function(t){var n=this.getIdData("anonymous_id"),a=e({business_id:this.getIdData("bussid"),anonymous_id:n},this.accounts);return a.wx_applet_openid=this.getIdData("openid"),a.wx_unionid=this.getIdData("unionid"),e({type:this.getConfig("trackType"),time:Math.floor(+new Date),properties:e(e(e(e(e({application:this.getConfig("application"),appid:this.getConfig("appid")},this.systemData),this.pageData),this.commonDataProperties),this.userDefineDataProperties),t),account:a},this.commonDataGlobel)}},c=8;function u(t){return function(t){return function(t){for(var e="0123456789ABCDEF",n="",a=0;a<4*t.length;a++)n+=e.charAt(t[a>>2]>>a%4*8+4&15)+e.charAt(t[a>>2]>>a%4*8&15);return n}(function(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,a=-271733879,o=-1732584194,r=271733878,i=0;i<t.length;i+=16){var s=n,c=a,u=o,h=r;n=p(n,a,o,r,t[i+0],7,-680876936),r=p(r,n,a,o,t[i+1],12,-389564586),o=p(o,r,n,a,t[i+2],17,60610