visual-buried-point-platform-uni 1.0.0-alpha.23 → 1.0.0-alpha.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see buried-point-uni.js.LICENSE.txt */
2
- var e={151:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},206:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},503:(e,t,n)=>{!function(){var t=n(939),r=n(151).utf8,o=n(206),i=n(151).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?i.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var u=t.bytesToWords(e),s=8*e.length,c=1732584193,l=-271733879,g=-1732584194,p=271733878,d=0;d<u.length;d++)u[d]=16711935&(u[d]<<8|u[d]>>>24)|4278255360&(u[d]<<24|u[d]>>>8);u[s>>>5]|=128<<s%32,u[14+(s+64>>>9<<4)]=s;var m=a._ff,f=a._gg,h=a._hh,v=a._ii;for(d=0;d<u.length;d+=16){var y=c,S=l,b=g,I=p;c=m(c,l,g,p,u[d+0],7,-680876936),p=m(p,c,l,g,u[d+1],12,-389564586),g=m(g,p,c,l,u[d+2],17,606105819),l=m(l,g,p,c,u[d+3],22,-1044525330),c=m(c,l,g,p,u[d+4],7,-176418897),p=m(p,c,l,g,u[d+5],12,1200080426),g=m(g,p,c,l,u[d+6],17,-1473231341),l=m(l,g,p,c,u[d+7],22,-45705983),c=m(c,l,g,p,u[d+8],7,1770035416),p=m(p,c,l,g,u[d+9],12,-1958414417),g=m(g,p,c,l,u[d+10],17,-42063),l=m(l,g,p,c,u[d+11],22,-1990404162),c=m(c,l,g,p,u[d+12],7,1804603682),p=m(p,c,l,g,u[d+13],12,-40341101),g=m(g,p,c,l,u[d+14],17,-1502002290),c=f(c,l=m(l,g,p,c,u[d+15],22,1236535329),g,p,u[d+1],5,-165796510),p=f(p,c,l,g,u[d+6],9,-1069501632),g=f(g,p,c,l,u[d+11],14,643717713),l=f(l,g,p,c,u[d+0],20,-373897302),c=f(c,l,g,p,u[d+5],5,-701558691),p=f(p,c,l,g,u[d+10],9,38016083),g=f(g,p,c,l,u[d+15],14,-660478335),l=f(l,g,p,c,u[d+4],20,-405537848),c=f(c,l,g,p,u[d+9],5,568446438),p=f(p,c,l,g,u[d+14],9,-1019803690),g=f(g,p,c,l,u[d+3],14,-187363961),l=f(l,g,p,c,u[d+8],20,1163531501),c=f(c,l,g,p,u[d+13],5,-1444681467),p=f(p,c,l,g,u[d+2],9,-51403784),g=f(g,p,c,l,u[d+7],14,1735328473),c=h(c,l=f(l,g,p,c,u[d+12],20,-1926607734),g,p,u[d+5],4,-378558),p=h(p,c,l,g,u[d+8],11,-2022574463),g=h(g,p,c,l,u[d+11],16,1839030562),l=h(l,g,p,c,u[d+14],23,-35309556),c=h(c,l,g,p,u[d+1],4,-1530992060),p=h(p,c,l,g,u[d+4],11,1272893353),g=h(g,p,c,l,u[d+7],16,-155497632),l=h(l,g,p,c,u[d+10],23,-1094730640),c=h(c,l,g,p,u[d+13],4,681279174),p=h(p,c,l,g,u[d+0],11,-358537222),g=h(g,p,c,l,u[d+3],16,-722521979),l=h(l,g,p,c,u[d+6],23,76029189),c=h(c,l,g,p,u[d+9],4,-640364487),p=h(p,c,l,g,u[d+12],11,-421815835),g=h(g,p,c,l,u[d+15],16,530742520),c=v(c,l=h(l,g,p,c,u[d+2],23,-995338651),g,p,u[d+0],6,-198630844),p=v(p,c,l,g,u[d+7],10,1126891415),g=v(g,p,c,l,u[d+14],15,-1416354905),l=v(l,g,p,c,u[d+5],21,-57434055),c=v(c,l,g,p,u[d+12],6,1700485571),p=v(p,c,l,g,u[d+3],10,-1894986606),g=v(g,p,c,l,u[d+10],15,-1051523),l=v(l,g,p,c,u[d+1],21,-2054922799),c=v(c,l,g,p,u[d+8],6,1873313359),p=v(p,c,l,g,u[d+15],10,-30611744),g=v(g,p,c,l,u[d+6],15,-1560198380),l=v(l,g,p,c,u[d+13],21,1309151649),c=v(c,l,g,p,u[d+4],6,-145523070),p=v(p,c,l,g,u[d+11],10,-1120210379),g=v(g,p,c,l,u[d+2],15,718787259),l=v(l,g,p,c,u[d+9],21,-343485551),c=c+y>>>0,l=l+S>>>0,g=g+b>>>0,p=p+I>>>0}return t.endian([c,l,g,p])};a._ff=function(e,t,n,r,o,i,a){var u=e+(t&n|~t&r)+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var u=e+(t&r|n&~r)+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var u=e+(t^n^r)+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var u=e+(n^(t|~r))+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},939:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{DU:()=>te,Ts:()=>X,p6:()=>oe,Pq:()=>re,Bm:()=>ae,Ex:()=>ne,dL:()=>ie,do:()=>ee});var o=n(503);let i={domain:"",busSegment:"",module:"",flushInterval:"",pageInterval:"",token:"",version:"",trackId:"",platform:"",uAgent:"",upEventUrl:"",upTrackUrl:"",isCompatible:!0,signTrackArray:[]},a=[];const u=()=>{if(i.trackId)return i.trackId;const e=Date.now().toString();return i.trackId=e,e};function s(){return"xxxx-4xxx-yxxx-xxxx".replace(/[xy]/g,(function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){const t=new Date(e);return`${t.getFullYear()}-${t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1}-${t.getDate()<10?"0"+t.getDate():t.getDate()} ${t.getHours()<10?"0"+t.getHours():t.getHours()}:${t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}:${t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds()}`}function l(e){if("web"===i.platform||"h5"===i.platform){const t=e.ua.toLowerCase();return/(windows|win32|win64|wow64)/.test(t)?1:(/(linux|android)/.test(t)||/(macintosh|mac os x|iphone|ipad|ipod)/.test(t),2)}return"pc"===e.deviceType?1:2}function g(){if("web"===i.platform||"h5"===i.platform){let e={utmSource:"",utmCampaign:"",utmTerm:"",utmContent:"",ctk:""};if(window.location.href){const t=window.location.href.split("?")[1]||"";if(t){const n=new URLSearchParams(t);e.utmSource=n.get("utmSource")||"",e.utmCampaign=n.get("utmCampaign")||"",e.utmTerm=n.get("utmTerm")||"",e.utmContent=n.get("utmContent")||"",e.ctk=n.get("ctk")||""}}return e}return null}const p="enter",d="loop",m="leave",f="UNIBPNPVUVSrcData",h="UNIBPNPVUVFailData";let v,y,S,b,I,w=null,k=null;const T=e=>{w?U():(clearInterval(w),v=0,y=0,S=0,b=1,I=null,w=null,k=0,I=e,x(p),w=setInterval((()=>{x(d)}),15e3))},U=()=>{x(m),clearInterval(w)};function x(e){if(e===p?(b=1,v=0,y=Date.now(),S=y,k=s()):e===d?(b=2,v=15,S=Date.now()):e===m&&(b=3,v=Math.ceil((Date.now()-S)/1e3)),I){const e={busSegment:I.busSegment||"",circulation:b,domain:I.domain,duration:v,module:I.module||"",path:I.path,url:I.url,sourceDomain:I.sourceDomain,sourceUrl:I.sourceUrl,properties:I.properties,title:I.title,traceId:"",trackId:u(),visitPage:I.visitPage,visitTime:c(y),pageUUId:k};e&&N(e,k)}}function N(e,t){let n=uni.getStorageSync(f),r=n?JSON.parse(n):[];if(r.length>0){const n=r.findIndex((e=>e.pageUUId===t));-1!==n?r[n]={...r[n],...e}:r.push(e)}else r.push(e);uni.setStorageSync(f,JSON.stringify(r))}const P=e=>{if("object"==typeof e){const t=Array.isArray(e)?[]:{};for(const n in e)"object"==typeof e[n]?t[n]=P(e[n]):t[n]=e[n];return t}return e},B=[],O=e=>{B.push(e)},D=()=>P(B),A=()=>{B.length=0},_="UNIBPNEventSrcData",C="UNIBPNEventFailData";let $;let E=0,M=0,J=0,L=-1,j=null,V=null,H=0;const q=e=>{V?z():e&&(clearInterval(V),E=0,M=0,J=0,L=1,j=null,V=null,H=0,R(p,e),V=setInterval((()=>{R(d,null)}),15e3))},z=()=>{R(m,null),clearInterval(V)};function R(e,t){e===p?(H=s(),M=Date.now(),J=M,j=function(e){const t=getCurrentPages(),n=t[t.length-1];let r=i.platform,o="",a="",u="",s="";if(r)if("web"===r||"h5"===r){if(o=window.location.href,a=window.location.hostname,document.referrer){let e=new URL(document.referrer);u=e||"",s=e.hostname||""}}else o=n.route,t.length>1&&(u=t[t.length-2].route),a=i.domain?i.domain:n.route;if(n)return{path:n.route,busSegment:e.busSegment?e.busSegment:"",module:e.module?e.module:"",properties:e.extend_param?JSON.stringify(e.extend_param):"",title:e.title?e.title:"",domain:a,url:o,visitPage:t.length,sourceDomain:s,sourceUrl:u}}(t)):e===d?(L=2,E=15,J=Date.now()):e===m&&(L=3,E=Math.ceil((Date.now()-J)/1e3));const n={busSegment:j.busSegment,circulation:L,domain:j.domain,duration:E,module:j.module,path:j.path,properties:j.properties,sourceDomain:j.sourceDomain,sourceUrl:j.sourceUrl,title:j.title,traceId:"",trackId:u(),url:j.url,visitPage:j.visitPage,visitTime:c(M),utm:g(),pageUUId:H};n&&(console.log("写入ml数据:",n),N(n,H))}let F=!1;function W(e){if(i.isCompatible);else if("pv"===e){const e=getCurrentPages(),t=e[e.length-1];if(i.signTrackArray&&i.signTrackArray.length&&(F=i.signTrackArray.find((e=>e===t.route)),F))return void(F=!0);F=!1;const n=function(e,t,n){let r=a.find((t=>t.path===e)),o=i.platform,u="",s="",c="",l="";if(o)if("web"===o||"h5"===o){if(u=window.location.href,s=window.location.hostname,document.referrer){let e=new URL(document.referrer);c=e||"",l=e.hostname||""}}else u=e,t>1&&(c=n[t-2].route),s=i.domain?i.domain:e;return{path:r&&r.path?r.path:e,busSegment:r&&r.busSegment?r.busSegment:i.busSegment||"",module:r&&r.module?r.module:i.module||"",properties:r&&r.properties?r.properties:"",domain:s,url:u,visitPage:t,sourceDomain:l,sourceUrl:c,title:r&&r.title?r.title:""}}(t.route,e.length,e);T(n)}else"leave"===e&&(F||U())}const K=JSON.parse('{"dr":"c3a3572a7a0facff92ab2afbbcd94dd6#1.0.0-alpha.22"}').dr;let Y={distinctId:"",anonymousId:""},Z={},G={},Q=null;function X(e){if(e){let t="test"===(e.env?e.env:"")?{reportUrl:"https://buryingpoint.gcongo.com.cn/client/api/event",reportTrackUrl:"https://buryingpoint.gcongo.com.cn/client/api/track",eventListUrl:"https://buryingpoint.gcongo.com.cn/api/event/query/eventList"}:{reportUrl:"https://buryingpoint.onebuygz.com/client/api/event",reportTrackUrl:"https://buryingpoint.onebuygz.com/client/api/track",eventListUrl:"https://buryingpoint.onebuygz.com/api/event/query/eventList"};i.upEventUrl=t.reportUrl,i.upTrackUrl=t.reportTrackUrl,Object.assign(i,e),uni.getSystemInfo({success:function(e){i.uAgent=e.ua;let t=e.uniPlatform;if(t.includes("app"))i.platform=e.osName,Z=function(e){let t=plus.runtime.version,n={name:e.appName,version:t||"",carrier:"app",packageName:"",ecology:""};if("android"===e.platform){let t="Android",r=plus.android.runtimeMainActivity().getPackageName();e.romName.includes("HarmonyOS")&&(t="Harmony OS"),n.packageName=r||"",n.ecology=t}else if("ios"===e.platform){let e=plus.ios.importClass("NSBundle").mainBundle().bundleIdentifier();n.packageName=e||"",n.ecology="iOS"}else n.ecology="unknown";return n}(e);else if(t.includes("web")||t.includes("h5")){i.platform=t;let n=function(e){let t="unknown",n=e.ua.toLowerCase(),r=window.location.hostname,o=document.title;return t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?"app":"brower",n.includes("alipay")?t="alipay":n.includes("unionPay")?t="unionPay":n.includes("onbuygz")?t="onbuygz":n.includes("onetravel")&&(t="onetravel"),n.includes("micromessenger")&&(t=n.includes("miniprogram")?"wechat":"brower"),{name:o||"",packageName:r||"",version:"",carrier:"h5",ecology:"h5"}}(e);Z={...n,version:i.version?i.version:"unknown"}}else t.includes("weixin")&&(i.platform="weixin",Z=function(){const e=uni.getAccountInfoSync(),t=uni.getAppBaseInfo();return{name:t.appName?t.appName:"",packageName:e?e.miniProgram.appId:"",version:e?e.miniProgram.envVersion+e.miniProgram.version:"",carrier:"mini",ecology:"mini"}}());G=function(e){return{lang:e.osLanguage?e.osLanguage:e.hostLanguage,brand:e.deviceBrand+" "+e.deviceModel,os:e.osName,osVersion:e.osVersion,resolution:e.screenWidth+"x"+e.screenHeight,browser:e.browserName,browserVersion:e.browserVersion,color:"",deviceId:e.deviceId,deviceType:l(e),network:""}}(e)},fail:function(e){G={lang:"",brand:"",os:"",osVersion:"",resolution:"",browser:"",browserVersion:"",color:"",deviceId:"",deviceType:"",network:""}},complete:function(){uni.getNetworkType({success(e){G.network=e.networkType}})}}),Y.distinctId=uni.getStorageSync("v_userId")?uni.getStorageSync("v_userId"):"",Y.anonymousId=uni.getStorageSync("v_anonId"),Y.anonymousId||(Y.anonymousId=s(),uni.setStorageSync("v_anonId",Y.anonymousId)),u()}else console.log("init config error, please check config!");clearInterval(Q),Q=setInterval((()=>{!function(){let e=uni.getStorageSync(_);uni.setStorageSync(_,"");const t=e?JSON.parse(e):[];let n=[],r=uni.getStorageSync(C);const o=r?JSON.parse(r):[];t.length&&n.push(...t),o.length&&n.push(...o),n&&n.length&&(console.log("queryEventUpload:"),ae("event",n,C))}(),function(){let e=uni.getStorageSync(f);uni.setStorageSync(f,"");const t=e?JSON.parse(e):[];let n=[],r=uni.getStorageSync(h);const o=r?JSON.parse(r):[];t.length&&n.push(...t),o.length&&n.push(...o),n&&n.length&&(n.forEach((e=>{delete e.pageUUId})),console.log("queryTrackDataUpload"),ae("track",n,h))}()}),15e3),uni.addInterceptor("navigateTo",{invoke(e){W("leave")},success(e){W("pv")}}),uni.addInterceptor("switchTab",{invoke(e){W("leave")},success(e){W("pv")}}),uni.addInterceptor("navigateBack",{invoke(e){W("leave")},success(e){W("pv")}})}function ee(e){e?(Y.distinctId=e,uni.setStorageSync("v_userId",e)):(Y.distinctId="",uni.setStorageSync("v_userId",""))}function te(){return u()}function ne(e){!function(e){const t=e.$page?e.$page:"",n=t.path?t.path:function(){const e=getCurrentPages(),t=e[e.length-1];return t?t.route:"/"}(),r={utm:e.$utm?e.$utm:g(),duration:"",element:e.$element?e.$element:null,eventId:e.$event_id?e.$event_id:"",event:e.$event_code?e.$event_code:"",groupId:"",busSegment:e.$busSegment?e.$busSegment:"",module:e.$module?e.$module:"",page:{domain:t.domain?t.domain:"",pageId:o(n),path:n||"",title:t.title||"",url:n||""},properties:e.$extend_param?JSON.stringify(e.$extend_param):"",traceId:"",trackId:u(),triggerTime:c(Date.now())};r&&(O(r),clearTimeout($),$=setTimeout((()=>{const e=D();e.length&&(function(e){const t=uni.getStorageSync(_);let n=t?JSON.parse(t):[];e&&e.length&&(e.forEach((e=>{n.push(e)})),uni.setStorageSync(_,JSON.stringify(n)))}(e),A())}),2e3))}(e)}function re(e){q(e)}function oe(){z()}function ie(e){!function(e){const t=getCurrentPages();let n=t[t.length-1];const r=a.findIndex((e=>e.path===n.route));let o={path:n.route,properties:e.properties?JSON.stringify(e.properties):"",busSegment:e.busSegment?e.busSegment:"",module:e.module?e.module:"",title:e.title?e.title:""};-1!==r?a[r]=o:a.push(o)}(e)}function ae(e,t,n){if(!e)return void console.error("please set upload data upType");const r={app:Z,data:t,device:G,lsi:K,projectId:i.token,userAgent:i.uAgent||"",anonymousId:Y.anonymousId,userId:Y.distinctId},a={...r,dataAbstract:o(JSON.stringify(r))};uni.request({url:"event"===e?i.upEventUrl:i.upTrackUrl,method:"POST",header:{"Content-Type":"application/json",appKey:i.token,projectId:i.token},data:a,success:function(e){e&&e.data?uni.setStorageSync(n,JSON.stringify(t)):uni.setStorageSync(n,"")},fail:function(e){console.log("error: ",e),uni.setStorageSync(n,JSON.stringify(t))}})}var ue=r.DU,se=r.Ts,ce=r.p6,le=r.Pq,ge=r.Bm,pe=r.Ex,de=r.dL,me=r.do;export{ue as getTrackId,se as init,ce as onDestroyTrack,le as onStartTrack,ge as reportTrackEventServer,pe as setCustomEvent,de as setPageExtraObj,me as setUserId};
2
+ var e={151:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},206:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},503:(e,t,n)=>{!function(){var t=n(939),r=n(151).utf8,o=n(206),i=n(151).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?i.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var u=t.bytesToWords(e),c=8*e.length,s=1732584193,l=-271733879,p=-1732584194,f=271733878,g=0;g<u.length;g++)u[g]=16711935&(u[g]<<8|u[g]>>>24)|4278255360&(u[g]<<24|u[g]>>>8);u[c>>>5]|=128<<c%32,u[14+(c+64>>>9<<4)]=c;var m=a._ff,d=a._gg,y=a._hh,v=a._ii;for(g=0;g<u.length;g+=16){var b=s,h=l,S=p,w=f;s=m(s,l,p,f,u[g+0],7,-680876936),f=m(f,s,l,p,u[g+1],12,-389564586),p=m(p,f,s,l,u[g+2],17,606105819),l=m(l,p,f,s,u[g+3],22,-1044525330),s=m(s,l,p,f,u[g+4],7,-176418897),f=m(f,s,l,p,u[g+5],12,1200080426),p=m(p,f,s,l,u[g+6],17,-1473231341),l=m(l,p,f,s,u[g+7],22,-45705983),s=m(s,l,p,f,u[g+8],7,1770035416),f=m(f,s,l,p,u[g+9],12,-1958414417),p=m(p,f,s,l,u[g+10],17,-42063),l=m(l,p,f,s,u[g+11],22,-1990404162),s=m(s,l,p,f,u[g+12],7,1804603682),f=m(f,s,l,p,u[g+13],12,-40341101),p=m(p,f,s,l,u[g+14],17,-1502002290),s=d(s,l=m(l,p,f,s,u[g+15],22,1236535329),p,f,u[g+1],5,-165796510),f=d(f,s,l,p,u[g+6],9,-1069501632),p=d(p,f,s,l,u[g+11],14,643717713),l=d(l,p,f,s,u[g+0],20,-373897302),s=d(s,l,p,f,u[g+5],5,-701558691),f=d(f,s,l,p,u[g+10],9,38016083),p=d(p,f,s,l,u[g+15],14,-660478335),l=d(l,p,f,s,u[g+4],20,-405537848),s=d(s,l,p,f,u[g+9],5,568446438),f=d(f,s,l,p,u[g+14],9,-1019803690),p=d(p,f,s,l,u[g+3],14,-187363961),l=d(l,p,f,s,u[g+8],20,1163531501),s=d(s,l,p,f,u[g+13],5,-1444681467),f=d(f,s,l,p,u[g+2],9,-51403784),p=d(p,f,s,l,u[g+7],14,1735328473),s=y(s,l=d(l,p,f,s,u[g+12],20,-1926607734),p,f,u[g+5],4,-378558),f=y(f,s,l,p,u[g+8],11,-2022574463),p=y(p,f,s,l,u[g+11],16,1839030562),l=y(l,p,f,s,u[g+14],23,-35309556),s=y(s,l,p,f,u[g+1],4,-1530992060),f=y(f,s,l,p,u[g+4],11,1272893353),p=y(p,f,s,l,u[g+7],16,-155497632),l=y(l,p,f,s,u[g+10],23,-1094730640),s=y(s,l,p,f,u[g+13],4,681279174),f=y(f,s,l,p,u[g+0],11,-358537222),p=y(p,f,s,l,u[g+3],16,-722521979),l=y(l,p,f,s,u[g+6],23,76029189),s=y(s,l,p,f,u[g+9],4,-640364487),f=y(f,s,l,p,u[g+12],11,-421815835),p=y(p,f,s,l,u[g+15],16,530742520),s=v(s,l=y(l,p,f,s,u[g+2],23,-995338651),p,f,u[g+0],6,-198630844),f=v(f,s,l,p,u[g+7],10,1126891415),p=v(p,f,s,l,u[g+14],15,-1416354905),l=v(l,p,f,s,u[g+5],21,-57434055),s=v(s,l,p,f,u[g+12],6,1700485571),f=v(f,s,l,p,u[g+3],10,-1894986606),p=v(p,f,s,l,u[g+10],15,-1051523),l=v(l,p,f,s,u[g+1],21,-2054922799),s=v(s,l,p,f,u[g+8],6,1873313359),f=v(f,s,l,p,u[g+15],10,-30611744),p=v(p,f,s,l,u[g+6],15,-1560198380),l=v(l,p,f,s,u[g+13],21,1309151649),s=v(s,l,p,f,u[g+4],6,-145523070),f=v(f,s,l,p,u[g+11],10,-1120210379),p=v(p,f,s,l,u[g+2],15,718787259),l=v(l,p,f,s,u[g+9],21,-343485551),s=s+b>>>0,l=l+h>>>0,p=p+S>>>0,f=f+w>>>0}return t.endian([s,l,p,f])};a._ff=function(e,t,n,r,o,i,a){var u=e+(t&n|~t&r)+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var u=e+(t&r|n&~r)+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var u=e+(t^n^r)+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var u=e+(n^(t|~r))+(o>>>0)+a;return(u<<i|u>>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},939:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{DU:()=>me,Ts:()=>fe,p6:()=>ve,Pq:()=>ye,Bm:()=>he,Ex:()=>de,dL:()=>be,do:()=>ge});var o=n(503),i={domain:"",busSegment:"",module:"",flushInterval:"",pageInterval:"",token:"",version:"",trackId:"",platform:"",uAgent:"",upEventUrl:"",upTrackUrl:"",isCompatible:!0,signTrackArray:[]},a=[],u=function(){if(i.trackId)return i.trackId;var e=Date.now().toString();return i.trackId=e,e};function c(){return"xxxx-4xxx-yxxx-xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),a=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),u=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(n,"-").concat(r,"-").concat(o," ").concat(i,":").concat(a,":").concat(u)}function l(e){if("web"===i.platform||"h5"===i.platform){var t=e.ua.toLowerCase();return/(windows|win32|win64|wow64)/.test(t)?1:(/(linux|android)/.test(t)||/(macintosh|mac os x|iphone|ipad|ipod)/.test(t),2)}return"pc"===e.deviceType?1:2}function p(){if("web"===i.platform||"h5"===i.platform){var e={utmSource:"",utmCampaign:"",utmTerm:"",utmContent:"",ctk:""};if(window.location.href){var t=window.location.href.split("?")[1]||"";if(t){var n=new URLSearchParams(t);e.utmSource=n.get("utmSource")||"",e.utmCampaign=n.get("utmCampaign")||"",e.utmTerm=n.get("utmTerm")||"",e.utmContent=n.get("utmContent")||"",e.ctk=n.get("ctk")||""}}return e}return null}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b,h,S,w,I,O="enter",T="loop",k="leave",P="UNIBPNPVUVSrcData",U="UNIBPNPVUVFailData",j=null,x=null,A=function(e){j?N():(clearInterval(j),b=0,h=0,S=0,w=1,I=null,j=null,x=0,I=e,D(O),j=setInterval((function(){D(T)}),15e3))},N=function(){D(k),clearInterval(j)};function D(e){if(e===O?(w=1,b=0,h=Date.now(),S=h,x=c()):e===T?(w=2,b=15,S=Date.now()):e===k&&(w=3,b=Math.ceil((Date.now()-S)/1e3)),I){var t={busSegment:I.busSegment||"",circulation:w,domain:I.domain,duration:b,module:I.module||"",path:I.path,url:I.url,sourceDomain:I.sourceDomain,sourceUrl:I.sourceUrl,properties:I.properties,title:I.title,traceId:"",trackId:u(),visitPage:I.visitPage,visitTime:s(h),pageUUId:x};t&&B(t,x)}}function B(e,t){var n=uni.getStorageSync(P),r=n?JSON.parse(n):[];if(r.length>0){var o=r.findIndex((function(e){return e.pageUUId===t}));-1!==o?r[o]=y(y({},r[o]),e):r.push(e)}else r.push(e);uni.setStorageSync(P,JSON.stringify(r))}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var E=function(e){if("object"===C(e)){var t=Array.isArray(e)?[]:{};for(var n in e)"object"==C(e[n])?t[n]=E(e[n]):t[n]=e[n];return t}return e},_=[],M=function(e){_.push(e)},$=function(){return E(_)},J=function(){_.length=0};function L(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var H,q="UNIBPNEventSrcData",z="UNIBPNEventFailData";var R=0,F=0,W=0,K=-1,Y=null,Z=null,G=0,Q=function(e){Z?X():e&&(clearInterval(Z),R=0,F=0,W=0,K=1,Y=null,Z=null,G=0,ee(O,e),Z=setInterval((function(){ee(T,null)}),15e3))},X=function(){ee(k,null),clearInterval(Z)};function ee(e,t){e===O?(G=c(),F=Date.now(),W=F,Y=function(e){var t=getCurrentPages(),n=t[t.length-1],r=i.platform,o="",a="",u="",c="";if(r)if("web"===r||"h5"===r){if(o=window.location.href,a=window.location.hostname,document.referrer){var s=new URL(document.referrer);u=s||"",c=s.hostname||""}}else o=n.route,t.length>1&&(u=t[t.length-2].route),a=i.domain?i.domain:n.route;if(n)return{path:n.route,busSegment:e.busSegment?e.busSegment:"",module:e.module?e.module:"",properties:e.extend_param?JSON.stringify(e.extend_param):"",title:e.title?e.title:"",domain:a,url:o,visitPage:t.length,sourceDomain:c,sourceUrl:u}}(t)):e===T?(K=2,R=15,W=Date.now()):e===k&&(K=3,R=Math.ceil((Date.now()-W)/1e3));var n={busSegment:Y.busSegment,circulation:K,domain:Y.domain,duration:R,module:Y.module,path:Y.path,properties:Y.properties,sourceDomain:Y.sourceDomain,sourceUrl:Y.sourceUrl,title:Y.title,traceId:"",trackId:u(),url:Y.url,visitPage:Y.visitPage,visitTime:s(F),utm:p(),pageUUId:G};n&&(console.log("写入ml数据:",n),B(n,G))}var te=!1;function ne(e){if(i.isCompatible);else if("pv"===e){var t=getCurrentPages(),n=t[t.length-1];if(i.signTrackArray&&i.signTrackArray.length&&(te=i.signTrackArray.find((function(e){return e===n.route}))))return void(te=!0);te=!1;var r=function(e,t,n){var r=a.find((function(t){return t.path===e})),o=i.platform,u="",c="",s="",l="";if(o)if("web"===o||"h5"===o){if(u=window.location.href,c=window.location.hostname,document.referrer){var p=new URL(document.referrer);s=p||"",l=p.hostname||""}}else u=e,t>1&&(s=n[t-2].route),c=i.domain?i.domain:e;return{path:r&&r.path?r.path:e,busSegment:r&&r.busSegment?r.busSegment:i.busSegment||"",module:r&&r.module?r.module:i.module||"",properties:r&&r.properties?r.properties:"",domain:c,url:u,visitPage:t,sourceDomain:l,sourceUrl:s,title:r&&r.title?r.title:""}}(n.route,t.length,t);A(r)}else"leave"===e&&(te||N())}function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e){if("object"!=re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==re(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=JSON.parse('{"dr":"e36456e47889d6ad105b32f40620ebb7#1.0.0-alpha.23"}').dr,ce={distinctId:"",anonymousId:""},se={},le={},pe=null;function fe(e){if(e){var t="test"===(e.env?e.env:"")?{reportUrl:"https://buryingpoint.gcongo.com.cn/client/api/event",reportTrackUrl:"https://buryingpoint.gcongo.com.cn/client/api/track",eventListUrl:"https://buryingpoint.gcongo.com.cn/api/event/query/eventList"}:{reportUrl:"https://buryingpoint.onebuygz.com/client/api/event",reportTrackUrl:"https://buryingpoint.onebuygz.com/client/api/track",eventListUrl:"https://buryingpoint.onebuygz.com/api/event/query/eventList"};i.upEventUrl=t.reportUrl,i.upTrackUrl=t.reportTrackUrl,Object.assign(i,e),uni.getSystemInfo({success:function(e){i.uAgent=e.ua;var t,n,r,o,a,u=e.uniPlatform;if(u.includes("app"))i.platform=e.osName,se=function(e){var t=plus.runtime.version,n={name:e.appName,version:t||"",carrier:"app",packageName:"",ecology:""};if("android"===e.platform){var r="Android",o=plus.android.runtimeMainActivity().getPackageName();e.romName.includes("HarmonyOS")&&(r="Harmony OS"),n.packageName=o||"",n.ecology=r}else if("ios"===e.platform){var i=plus.ios.importClass("NSBundle").mainBundle().bundleIdentifier();n.packageName=i||"",n.ecology="iOS"}else n.ecology="unknown";return n}(e);else if(u.includes("web")||u.includes("h5")){i.platform=u;var c=(r=e.ua.toLowerCase(),o=window.location.hostname,a=document.title,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),r.includes("alipay")||r.includes("unionPay")||r.includes("onbuygz")||r.includes("onetravel"),r.includes("micromessenger")&&r.includes("miniprogram"),{name:a||"",packageName:o||"",version:"",carrier:"h5",ecology:"h5"});se=ie(ie({},c),{},{version:i.version?i.version:"unknown"})}else u.includes("weixin")&&(i.platform="weixin",t=uni.getAccountInfoSync(),n=uni.getAppBaseInfo(),se={name:n.appName?n.appName:"",packageName:t?t.miniProgram.appId:"",version:t?t.miniProgram.envVersion+t.miniProgram.version:"",carrier:"mini",ecology:"mini"});le=function(e){return{lang:e.osLanguage?e.osLanguage:e.hostLanguage,brand:e.deviceBrand+" "+e.deviceModel,os:e.osName,osVersion:e.osVersion,resolution:e.screenWidth+"x"+e.screenHeight,browser:e.browserName,browserVersion:e.browserVersion,color:"",deviceId:e.deviceId,deviceType:l(e),network:""}}(e)},fail:function(e){le={lang:"",brand:"",os:"",osVersion:"",resolution:"",browser:"",browserVersion:"",color:"",deviceId:"",deviceType:"",network:""}},complete:function(){uni.getNetworkType({success:function(e){le.network=e.networkType}})}}),ce.distinctId=uni.getStorageSync("v_userId")?uni.getStorageSync("v_userId"):"",ce.anonymousId=uni.getStorageSync("v_anonId"),ce.anonymousId||(ce.anonymousId=c(),uni.setStorageSync("v_anonId",ce.anonymousId)),u()}else console.log("init config error, please check config!");clearInterval(pe),pe=setInterval((function(){!function(){var e=uni.getStorageSync(q);uni.setStorageSync(q,"");var t=e?JSON.parse(e):[],n=[],r=uni.getStorageSync(z),o=r?JSON.parse(r):[];t.length&&n.push.apply(n,L(t)),o.length&&n.push.apply(n,L(o)),n&&n.length&&(console.log("queryEventUpload:"),he("event",n,z))}(),function(){var e=uni.getStorageSync(P);uni.setStorageSync(P,"");var t=e?JSON.parse(e):[],n=[],r=uni.getStorageSync(U),o=r?JSON.parse(r):[];t.length&&n.push.apply(n,g(t)),o.length&&n.push.apply(n,g(o)),n&&n.length&&(n.forEach((function(e){delete e.pageUUId})),console.log("queryTrackDataUpload"),he("track",n,U))}()}),15e3),uni.addInterceptor("navigateTo",{invoke:function(e){ne("leave")},success:function(e){ne("pv")}}),uni.addInterceptor("switchTab",{invoke:function(e){ne("leave")},success:function(e){ne("pv")}}),uni.addInterceptor("navigateBack",{invoke:function(e){ne("leave")},success:function(e){ne("pv")}})}function ge(e){e?(ce.distinctId=e,uni.setStorageSync("v_userId",e)):(ce.distinctId="",uni.setStorageSync("v_userId",""))}function me(){return u()}function de(e){var t,n,r,i,a,c;i=(t=e).$page?t.$page:"",a=i.path?i.path:(r=(n=getCurrentPages())[n.length-1])?r.route:"/",(c={utm:t.$utm?t.$utm:p(),duration:"",element:t.$element?t.$element:null,eventId:t.$event_id?t.$event_id:"",event:t.$event_code?t.$event_code:"",groupId:"",busSegment:t.$busSegment?t.$busSegment:"",module:t.$module?t.$module:"",page:{domain:i.domain?i.domain:"",pageId:o(a),path:a||"",title:i.title||"",url:a||""},properties:t.$extend_param?JSON.stringify(t.$extend_param):"",traceId:"",trackId:u(),triggerTime:s(Date.now())})&&(M(c),clearTimeout(H),H=setTimeout((function(){var e,t,n,r=$();r.length&&(e=r,t=uni.getStorageSync(q),n=t?JSON.parse(t):[],e&&e.length&&(e.forEach((function(e){n.push(e)})),uni.setStorageSync(q,JSON.stringify(n))),J())}),2e3))}function ye(e){Q(e)}function ve(){X()}function be(e){var t,n,r,o,i;t=e,n=getCurrentPages(),r=n[n.length-1],o=a.findIndex((function(e){return e.path===r.route})),i={path:r.route,properties:t.properties?JSON.stringify(t.properties):"",busSegment:t.busSegment?t.busSegment:"",module:t.module?t.module:"",title:t.title?t.title:""},-1!==o?a[o]=i:a.push(i)}function he(e,t,n){if(e){var r={app:se,data:t,device:le,lsi:ue,projectId:i.token,userAgent:i.uAgent||"",anonymousId:ce.anonymousId,userId:ce.distinctId},a=ie(ie({},r),{},{dataAbstract:o(JSON.stringify(r))});uni.request({url:"event"===e?i.upEventUrl:i.upTrackUrl,method:"POST",header:{"Content-Type":"application/json",appKey:i.token,projectId:i.token},data:a,success:function(e){e&&e.data?uni.setStorageSync(n,JSON.stringify(t)):uni.setStorageSync(n,"")},fail:function(e){console.log("error: ",e),uni.setStorageSync(n,JSON.stringify(t))}})}else console.error("please set upload data upType")}var Se=r.DU,we=r.Ts,Ie=r.p6,Oe=r.Pq,Te=r.Bm,ke=r.Ex,Pe=r.dL,Ue=r.do;export{Se as getTrackId,we as init,Ie as onDestroyTrack,Oe as onStartTrack,Te as reportTrackEventServer,ke as setCustomEvent,Pe as setPageExtraObj,Ue as setUserId};
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "visual-buried-point-platform-uni",
3
- "version": "1.0.0-alpha.23",
4
- "lsi": "e36456e47889d6ad105b32f40620ebb7#1.0.0-alpha.23",
3
+ "version": "1.0.0-alpha.24",
4
+ "lsi": "5cd44ae734c98be777d389d6fac4a94b#1.0.0-alpha.24",
5
5
  "description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",
6
6
  "main": "index.js",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "rimraf dist && webpack --mode production && npm run lsi-md5",
9
+ "build": "webpack --mode production && npm run lsi-md5",
10
10
  "lsi-md5": "node lsi-md5.js"
11
11
  },
12
12
  "repository": {
@@ -24,8 +24,10 @@
24
24
  "md5": "^2.3.0"
25
25
  },
26
26
  "devDependencies": {
27
- "rimraf": "^6.0.1",
28
27
  "webpack": "^5.72.1",
29
- "webpack-cli": "4.9.2"
28
+ "webpack-cli": "^6.0.1",
29
+ "@babel/core": "^7.26.10",
30
+ "@babel/preset-env": "^7.26.9",
31
+ "babel-loader": "^10.0.0"
30
32
  }
31
33
  }