1***@163.com
1***@163.com
  • 发布:2022-12-30 14:51
  • 更新:2023-06-30 09:16
  • 阅读:1317

支付宝小程序报错问题 请问怎么解决下面的问题呢

分类:uni-app

Module build failed (from /snapshot/cube/node_modules/@ali/antcube-thread-loader/lib/cjs.js):
Thread Loader (Worker 1)
SyntaxError: Unexpected token, expected ( (19:9490)

17 | __CUBE_KERNEL = undefined;
18 | const ks=(e,t)=>{const n=e.
vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function Ue(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function Cr(e){if(y(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=E(o)?js(o):Cr(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(E(e))return e;if(x(e))return e}}const Ns=/;(?![^(]))/g,Rs=/:([^]+)/,Ms=/\/*.?*\//gs;function js(e){const t={};return e.replace(Ms,"").split(Ns).forEach(n=>{if(n){const o=n.split(Rs);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Sr(e){let t="";if(E(e))t=e;else if(y(e))for(let n=0;n<e.length;n++){const o=Sr(e[n]);o&&(t+=o+" ")}else if(x(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ls=e=>E(e)?e:e==null?"":y(e)||x(e)&&(e.toString===wr||!d(e.toString))?JSON.stringify(e,Pr,2):String(e),Pr=(e,t)=>t&&t.__v_isRef?Pr(e,t.value):$e(t)?{[Map(${t.size})]:[...t.entries()].reduce((n,[o,r])=>(n[${o} =>]=r,n),{})}:xr(t)?{[Set(${t.size})]:[...t.values()]}:x(t)&&!y(t)&&!M(t)?String(t):t,k=Object.freeze({}),Po=Object.freeze([]),D=()=>{},Or=()=>!1,Hs=/^on[^a-z]/,Er=e=>Hs.test(e),Oo=e=>e.startsWith("onUpdate:"),A=Object.assign,Nt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ds=Object.prototype.hasOwnProperty,m=(e,t)=>Ds.call(e,t),y=Array.isArray,$e=e=>ee(e)==="[object Map]",xr=e=>ee(e)==="[object Set]",d=e=>typeof e=="function",E=e=>typeof e=="string",Un=e=>typeof e=="symbol",x=e=>e!==null&&typeof e=="object",ot=e=>x(e)&&d(e.then)&&d(e.catch),wr=Object.prototype.toString,ee=e=>wr.call(e),Rt=e=>ee(e).slice(8,-1),M=e=>ee(e)==="[object Object]",Bn=e=>E(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vs=Ue(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fs=Ue("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Mt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Us=/-(\w)/g,te=Mt(e=>e.replace(Us,(t,n)=>n?n.toUpperCase():"")),Bs=/\B([A-Z])/g,Oe=Mt(e=>e.replace(Bs,"-$1").toLowerCase()),de=Mt(e=>e.charAt(0).toUpperCase()+e.slice(1)),_e=Mt(e=>e?on${de(e)}:""),Ye=(e,t)=>!Object.is(e,t),ht=(e,t)=>{for(let n=0;n<e.length;n++)en},Ks=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ir=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zs=`

19 | ,Gs="d",rt="onShow",jt="onHide",Ar="onLaunch",Kn="onError",Tr="onThemeChange",kr="onPageNotFound",Nr="onUnhandledRejection",Lt="onLoad",Ht="onReady",Dt="onUnload",Rr="onInit",Mr="onSaveExitState",jr="onResize",zn="onBackPress",Lr="onPageScroll",Gn="onTabItemTap",Wn="onReachBottom",qn="onPullDownRefresh",Hr="onShareTimeline",Jn="onAddToFavorites",Dr="onShareAppMessage",Vr="onNavigationBarButtonTap",Fr="onNavigationBarSearchInputClicked",Ur="onNavigationBarSearchInputChanged",Br="onNavigationBarSearchInputConfirmed",Kr="onNavigationBarSearchInputFocusChanged",Ws=/:/g;function Eo(e){return te(e.replace(Ws,"-"))}function qs(e){return e.indexOf("/")===0}function Js(e){return qs(e)?e:"/"+e}const Ys=(e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n};function Xs(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function zr(e,t){if(!E(t))return;t=t.replace(/\[(\d+)\]/g,".$1");const n=t.split(".");let o=n[0];return e||(e={}),n.length===1?e[o]:zr(e[o],n.slice(1).join("."))}const Zs=encodeURIComponent;function Qs(e,t=Zs){const n=e?Object.keys(e).map(o=>{let r=e[o];return typeof r===void 0||r===null?r="":M(r)&&(r=JSON.stringify(r)),t(o)+"="+t(r)}).filter(o=>o.length>0).join("&"):null;return n??${n}:""}class Gr{constructor(t,n){this.id=t,this.listener={},this.emitCache={},n&&Object.keys(n).forEach(o=>{this.on(o,n[o])})}emit(t,...n){const o=this.listener[t];if(!o)return(this.emitCache[t]||(this.emitCache[t]=[])).push(n);o.forEach(r=>{r.fn.apply(r.fn,n)}),this.listener[t]=o.filter(r=>r.type!=="once")}on(t,n){this._addListener(t,"on",n),this._clearCache(t)}once(t,n){this._addListener(t,"once",n),this._clearCache(t)}off(t,n){const o=this.listener[t];if(!!o)if(n)for(let r=0;r<o.length;)o[r].fn===n&&(o.splice(r,1),r--),r++;else delete this.listener[t]}_clearCache(t){const n=this.emitCache[t];if(n)for(;n.length>0;)this.emit.apply(this,[t,...n.shift()])}_addListener(t,n,o){(this.listener[t]||(this.listener[t]=[])).push({fn:o,type:n})}}const ec=[Rr,Lt,rt,jt,Dt,zn,Lr,Gn,Wn,qn,Hr,Dr,Jn,Mr,Vr,Fr,Ur,Br,Kr];function tc(e){return ec.indexOf(e)>-1}const Wr=[rt,jt,Ar,Kn,Tr,kr,Nr,Rr,Lt,Ht,Dt,jr,zn,Lr,Gn,Wn,qn,Hr,Jn,Dr,Mr,Vr,Fr,Ur,Br,Kr],xo=(()=>({onPageScroll:1,onShareAppMessage:1<<1,onShareTimeline:1<<2}))();function qr(e,t,n=!0){return n&&!d(t)?!1:Wr.indexOf(e)>-1?!0:e.indexOf("on")===0}let an;const Jr=[];function nc(e){if(an)return e(an);Jr.push(e)}function oc(e){an=e,Jr.forEach(t=>t(e))}const rc=Xs((e,t)=>{if(d(e._component.onError))return t(e)}),Yr=function(){};Yr.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;for(o;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var i=0,s=o.length;i<s;i++)o[i].fn!==t&&o[i].fn._!==t&&r.push(o[i]);return r.length?n[e]=r:delete n[e],this}};var ic=Yr;const Yt="zh-Hans",wo="zh-Hant",Yn="en",sc="fr",cc="es";function ac(e,t){return!!t.find(n=>e.indexOf(n)!==-1)}function lc(e,t){return t.find(n=>e.indexOf(n)===0)}function Xr(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return Yt;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?Yt:e.indexOf("-hant")>-1||ac(e,["-tw","-hk","-mo","-cht"])?wo:Yt;const n=lc(e,[Yn,sc,cc]);if(n)return n}function uc(){return my.getSystemInfoSync()}function fc(e,t){console.warn(${e}: ${t})}function Io(e,t,n,o){o||(o=fc);for(const r in n){const i=dc(r,t[r],n[r],!m(t,r));E(i)&&o(e,i)}}function pc(e,t,n,o){if(!n)return;if(!y(n))return Io(e,t[0]||Object.create(null),n,o);const r=n.length,i=t.length;for(let s=0;s<r;s++){const c=n[s],a=Object.create(null);i>s&&(a[c.name]=t[s]),Io(e,a,{[c.name]:c},o)}}function dc(e,t,n,o){M(n)||(n={type:n});const{type:r,required:i,validator:s}=n;if(i&&o)return'Missing required args: "'+e+'"';if(!(t==null&&!i)){if(r!=null){let c=!1;const a=y(r)?r:[r],l=[];for(let u=0;u<a.length&&!c;u++){const{valid:f,expectedType:p}=gc(t,a[u]);l.push(p||""),c=f}if(!c)return mc(e,t,l)}if(s)return s(t)}}const hc=Ue("String,Number,Boolean,Function,Symbol");function gc(e,t){let n;const o=_c(t);if(hc(o)){const r=typeof e;n=r===o.toLowerCase(),!n&&r==="object"&&(n=e instanceof t)}else o==="Object"?n=x(e):o==="Array"?n=y(e):n=e instanceof t;return{valid:n,expectedType:o}}function mc(e,t,n){let o=Invalid args: type check failed for args "${e}". Expected ${n.map(de).join(", ")};const r=n[0],i=Rt(t),s=Ao(t,r),c=Ao(t,i);return n.length===1&&To(r)&&!yc(r,i)&&(o+= with value ${s}),o+=, got ${i} ,To(i)&&(o+=with value ${c}.),o}function _c(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ao(e,t){return t==="String"?"${e}":t==="Number"?${Number(e)}:${e}}function To(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function yc(...e){return e.some(t=>t.toLowerCase()==="boolean")}function bc(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let vc=1;const ln={};function $c(e,t,n,o=!1){return ln[e]={name:t,keepAlive:o,callback:n},e}function Zr(e,t,n){if(typeof e=="number"){const o=ln[e];if(o)return o.keepAlive||delete ln[e],o.callback(t,n)}return t}const Cc="success",Sc="fail",Pc="complete";function Oc(e){const t={};for(const n in e){const o=e[n];d(o)&&(t[n]=bc(o),delete e[n])}return t}function Ec(e,t){return!e||e.indexOf(":fail")===-1?t+":ok":t+e.substring(e.indexOf(":fail"))}function xc(e,t={},{beforeAll:n,beforeSuccess:o}={}){M(t)||(t={});const{success:r,fail:i,complete:s}=Oc(t),c=d(r),a=d(i),l=d(s),u=vc++;return $c(u,e,f=>{f=f||{},f.errMsg=Ec(f.errMsg,e),d(n)&&n(f),f.errMsg===e+":ok"?(d(o)&&o(f,t),c&&r(f)):a&&i(f),l&&s(f)}),u}const wc="success",Ic="fail",Ac="complete",He={},De={};function Tc(e){return function(t){return e(t)||t}}function Qr(e,t){let n=!1;for(let o=0;o<e.length;o++){const r=e[o];if(n)n=Promise.resolve(Tc(r));else{const i=r(t);if(ot(i)&&(n=Promise.resolve(i)),i===!1)return{then(){},catch(){}}}}return n||{then(o){return o(t)},catch(){}}}function ko(e,t={}){return[wc,Ic,Ac].forEach(n=>{const o=e[n];if(!y(o))return;const r=t[n];t[n]=function(s){Qr(o,s).then(c=>d(r)&&r(c)||c)}}),t}function bt(e,t){const n=[];y(He.returnValue)&&n.push(...He.returnValue);const o=De[e];return o&&y(o.returnValue)&&n.push(...o.returnValue),n.forEach(r=>{t=r(t)||t}),t}function kc(e){const t=Object.create(null);Object.keys(He).forEach(o=>{o!=="returnValue"&&(t[o]=He[o].slice())});const n=De[e];return n&&Object.keys(n).forEach(o=>{o!=="returnValue"&&(t[o]=(t[o]||[]).concat(n[o]))}),t}function vt(e,t,n,o){const r=kc(e);return r&&Object.keys(r).length?y(r.invoke)?Qr(r.invoke,n).then(s=>t(ko(r,s),...o)):t(ko(r,n),...o):t(n,...o)}function Nc(e){return!!(M(e)&&[Cc,Sc,Pc].find(t=>d(e[t])))}function Rc(e,t){return(n={},...o)=>Nc(n)?bt(e,vt(e,t,n,o)):bt(e,new Promise((r,i)=>{vt(e,t,A(n,{success:r,fail:i}),o)}))}function Mc(e,t){const n=e[0];if(!t||!M(t.formatArgs)&&M(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i<r.length;i++){const s=r[i],c=o[s];if(d(c)){const a=c(e[0][s],n);if(E(a))return a}else m(n,s)||(n[s]=c)}}function jc(e,t,n){return Zr(e,A(n||{},{errMsg:t+":ok"}))}function No(e,t,n,o){return Zr(e,A({errMsg:t+":fail"+(n?" "+n:"")},o))}function ei(e,t,n,o){if(pc(e,t,n),o&&o.beforeInvoke){const i=o.beforeInvoke(t);if(E(i))return i}const r=Mc(t,o);if(r)return r}function Lc(e){return!e||E(e)?e:e.stack?(console.error(e.message+zs+e.stack),e.message):e}function Hc(e,t,n,o){return r=>{const i=xc(e,r,o),s=ei(e,[r],n,o);return s?No(i,e,s):t(r,{resolve:c=>jc(i,e,c),reject:(c,a)=>No(i,e,Lc(c),a)})}}function Dc(e,t,n,o){return(...r)=>{const i=ei(e,r,n,o);if(i)throw new Error(i);return t.apply(null,r)}}function Vc(e,t,n,o){return Hc(e,t,n,o)}function Ie(e,t,n,o){return Dc(e,t,n,o)}function Fc(e,t,n,o){return Rc(e,Vc(e,t,n,o))}const Uc="upx2px",Bc=[{name:"upx",type:[Number,String],required:!0}],Kc=1e-4,zc=750;let ti=!1,un=0,ni=0;function Gc(){const{platform:e,pixelRatio:t,windowWidth:n}=uc();un=n,ni=t,ti=e==="ios"}const Wc=Ie(Uc,(e,t)=>{if(un===0&&Gc(),e=Number(e),e===0)return 0;let n=t||un,o=e/zc*n;return o<0&&(o=-o),o=Math.floor(o+Kc),o===0&&(ni===1||!ti?o=1:o=.5),e<0?-o:o},Bc),qc="addInterceptor",Jc="removeInterceptor",oi=[{name:"method",type:[String,Object],required:!0}],Yc=oi;function Ro(e,t){Object.keys(t).forEach(n=>{d(t[n])&&(e[n]=Xc(e[n],t[n]))})}function Mo(e,t){!e||!t||Object.keys(t).forEach(n=>{const o=e[n],r=t[n];y(o)&&d(r)&&Nt(o,r)})}function Xc(e,t){const n=t?e?e.concat(t):y(t)?t:[t]:e;return n&&Zc(n)}function Zc(e){const t=[];for(let n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}const Qc=Ie(qc,(e,t)=>{E(e)&&M(t)?Ro(De[e]||(De[e]={}),t):M(e)&&Ro(He,e)},oi),ea=Ie(Jc,(e,t)=>{E(e)?M(t)?Mo(De[e],t):delete De[e]:M(e)&&Mo(He,e)},Yc),ta={},na="$on",ri=[{name:"event",type:String,required:!0},{name:"callback",type:Function,required:!0}],oa="$once",ra=ri,ia="$off",sa=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],ca="$emit",aa=[{name:"event",type:String,required:!0}],Ee=new ic,ii=Ie(na,(e,t)=>(Ee.on(e,t),()=>Ee.off(e,t)),ri),la=Ie(oa,(e,t)=>(Ee.once(e,t),()=>Ee.off(e,t)),ra),Xn=Ie(ia,(e,t)=>{if(!e){Ee.e={};return}y(e)||(e=[e]),e.forEach(n=>Ee.off(n,t))},sa),si=Ie(ca,(e,...t)=>{Ee.emit(e,...t)},aa);let qe,fn,pn;function jo(e){try{return JSON.parse(e)}catch{}return e}function ua(e){if(e.type==="enabled")pn=!0;else if(e.type==="clientId")qe=e.cid,fn=e.errMsg,ci(qe,e.errMsg);else if(e.type==="pushMsg"){const t={type:"receive",data:jo(e.message)};for(let n=0;n<fe.length;n++){const o=fe[n];if(o(t),t.stopped)break}}else e.type==="click"&&fe.forEach(t=>{t({type:"click",data:jo(e.message)})})}const dn=[];function ci(e,t){dn.forEach(n=>{n(e,t)}),dn.length=0}const fa="getPushClientId",pa=Fc(fa,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{typeof pn>"u"&&(pn=!1,qe="",fn="uniPush is not enabled"),dn.push((o,r)=>{o?t({cid:o}):n(r)}),typeof qe<"u"&&ci(qe,fn)})}),fe=[],da=e=>{fe.indexOf(e)===-1&&fe.push(e)},ha=e=>{if(!e)fe.length=0;else{const t=fe.indexOf(e);t>-1&&fe.splice(t,1)}},ga=/^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,ma=/^create|Manager$/,_a=["createBLEConnection"],ya=["createBLEConnection"],ba=/^on|^off/;function ai(e){return ma.test(e)&&_a.indexOf(e)===-1}function li(e){return ga.test(e)&&ya.indexOf(e)===-1}function va(e){return ba.test(e)&&e!=="onPush"}function $a(e){return!(ai(e)||li(e)||va(e))}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});function Xt(e,t){return!$a(e)||!d(t)?t:function(o={},...r){return d(o.success)||d(o.fail)||d(o.complete)?bt(e,vt(e,t,o,r)):bt(e,new Promise((i,s)=>{vt(e,t,A({},o,{success:i,fail:s}),r)}))}}const Ca=["success","fail","cancel","complete"];function Sa(e){function t(r,i,s){return function(c){return i(o(r,c,s))}}function n(r,i,s={},c={},a=!1){if(M(i)){const l=a===!0?i:{};d(s)&&(s=s(i,l)||{});for(const u in i)if(m(s,u)){let f=s[u];d(f)&&(f=f(i[u],i,l)),f?E(f)?l[f]=i[u]:M(f)&&(l[f.name?f.name:u]=f.value):console.warn(\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F ${r} \u6682\u4E0D\u652F\u6301 ${u})}else if(Ca.indexOf(u)!==-1){const f=i[u];d(f)&&(l[u]=t(r,f,c))}else!a&&!m(l,u)&&(l[u]=i[u]);return l}else d(i)&&(i=t(r,i,c));return i}function o(r,i,s,c=!1){return d(e.returnValue)&&(i=e.returnValue(r,i)),n(r,i,s,{},c)}return function(i,s){if(!m(e,i))return s;const c=e[i];return c?function(a,l){let u=c;d(c)&&(u=c(a)),a=n(i,a,u.args,u.returnValue);const f=[a];typeof l<"u"&&f.push(l);const p=my[u.name||i].apply(my,f);return li(i)?o(i,p,u.returnValue,ai(i)):p}:function(){console.error(\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F \u6682\u4E0D\u652F\u6301${i})}}}const $t=()=>{const e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:Xr(my.getSystemInfoSync().language)||Yn},Pa=e=>{const t=getApp();return t&&t.$vm.$locale!==e?(t.$vm.$locale=e,hn.forEach(o=>o({locale:e})),!0):!1},hn=[],Oa=e=>{hn.indexOf(e)===-1&&hn.push(e)};typeof global<"u"&&(global.getLocale=$t);const Lo="__DC_STAT_UUID";let ke;function Ea(e=my){return function(n,o){ke=ke||e.getStorageSync(Lo),ke||(ke=Date.now()+""+Math.floor(Math.random()*1e7),my.setStorage({key:Lo,data:ke})),o.deviceId=ke}}function xa(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function wa(e,t){const{brand:n="",model:o="",system:r="",language:i="",theme:s,version:c,platform:a,fontSizeSetting:l,SDKVersion:u,pixelRatio:f,deviceOrientation:p}=e;let b="",P="";b=a,P=r;let N=c,B=Ia(e,o),T=Aa(n),W=ka(e),O=p,H=f,G=u;G=my.SDKVersion;const Ae=i.replace(/_/g,"-"),v={appId:"__UNI__EDB4F08",appName:"qtou-app",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ta(Ae),uniCompileVersion:"3.6.14",uniRuntimeVersion:"3.6.14",uniPlatform:"mp-alipay",deviceBrand:T,deviceModel:o,deviceType:B,devicePixelRatio:H,deviceOrientation:O,osName:b.toLocaleLowerCase(),osVersion:P,hostTheme:s,hostVersion:N,hostLanguage:Ae,hostName:W,hostSDKVersion:G,hostFontSizeSetting:l,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};A(t,v)}function Ia(e,t){let n=e.deviceType||"phone";{const o={ipad:"pad",windows:"pc",mac:"pc"},r=Object.keys(o),i=t.toLocaleLowerCase();for(let s=0;s<r.length;s++){const c=r[s];if(i.indexOf(c)!==-1){n=o[c];break}}}return n}function Aa(e){let t=e;return t&&(t=t.toLocaleLowerCase()),t}function Ta(e){return $t?$t():e}function ka(e){const t="mp-alipay".split("-")[1];let n=e.hostName||t;return n=e.app,n}const Na={},gn={},ui=[];let Zt=0;function Ra(e,t=!0){Zt++;const n=new my.EventChannel(Zt,e);return t&&(gn[Zt]=n,ui.push(n)),n}function fi(e){if(e){const t=gn[e];return delete gn[e],t}return ui.shift()}const Ma={args(e){const t=Ra(e.events).id;e.url&&(e.url=e.url+(e.url.indexOf("?")===-1?"?":"&")+"__id__="+t)},returnValue(e){e.eventChannel=fi()}},Ho={$on:ii,$off:Xn,$once:la,$emit:si,upx2px:Wc,interceptors:ta,addInterceptor:Qc,removeInterceptor:ea,onCreateVueApp:nc,invokeCreateVueAppHook:oc,getLocale:$t,setLocale:Pa,onLocaleChange:Oa,getPushClientId:pa,onPushMessage:da,offPushMessage:ha,invokePushCallback:ua};function ja(e,t){const n=Sa(t),o={get(r,i){return m(r,i)?r[i]:m(e,i)?Xt(i,e[i]):m(Ho,i)?Xt(i,Ho[i]):Xt(i,n(i,my[i]))}};return my.$emit=si,my.getEventChannel=fi,new Proxy({},o)}function La(e){return function({service:n,success:o,fail:r,complete:i}){let s;e[n]?(s={errMsg:"getProvider:ok",service:n,provider:e[n]},d(o)&&o(s)):(s={errMsg:"getProvider:fail:\u670D\u52A1["+n+"]\u4E0D\u5B58\u5728"},d(r)&&r(s)),d(i)&&i(s)}}let Re;const Ha=La({oauth:["alipay"],share:["alipay"],payment:["alipay"],push:["alipay"]});function Da(e,t){return my.setStorageSync({key:e,data:t})}function pi(e){const t=my.getStorageSync({key:e});return t.data!==null?t.data:""}function Va(e){return my.removeStorageSync({key:e})}function Fa(e){m(e,"interval")&&console.warn("\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F startGyroscope\u6682\u4E0D\u652F\u6301interval"),e.success&&e.success({errMsg:"startGyroscope:ok"}),e.complete&&e.complete({errMsg:"startGyroscope:ok"})}function Ua(e){return function(n){this.actions.forEach((o,r)=>{(o._$callbacks||[]).forEach(i=>{i(n[r])})}),d(e)&&e(n)}}function Qt(e){if(d(e)){const t=this.actions[this.actions.length-1];t&&(t._$callbacks||(t._$callbacks=[])).push(e)}}function Ba(){const e=my.createSelectorQuery(),t=e.exec,n=e.scrollOffset,o=e.boundingClientRect;return e.exec=function(i){return t.call(this,Ua(i).bind(this))},e.scrollOffset=function(i){const s=n.call(this);return Qt.call(this,i),s},e.boundingClientRect=function(i){const s=o.call(this);return Qt.call(this,i),s},e.fields||(e.fields=function({rect:r,size:i,scrollOffset:s},c){return(r||i)&&this.boundingClientRect(),s&&this.scrollOffset(),Qt.call(this,c),this}),e.in||(e.in=function(){return this}),e}function Ka(e,t){return t&&t.observeAll&&(t.selectAll=t.observeAll,delete t.observeAll),my.createIntersectionObserver(t)}function za(e){Re&&Xn("uni:keyboardHeightChange",Re),Re=e,ii("uni:keyboardHeightChange",Re)}function Ga(){Xn("uni:keyboardHeightChange",Re),Re=void 0}var Wa=Object.freeze({__proto__:null,getProvider:Ha,setStorageSync:Da,getStorageSync:pi,removeStorageSync:Va,startGyroscope:Fa,createSelectorQuery:Ba,createIntersectionObserver:Ka,onKeyboardHeightChange:za,offKeyboardHeightChange:Ga});function di(e,t){switch(e.networkType){case"NOTREACHABLE":t.networkType="none";break;case"WWAN":t.networkType="3g";break;default:t.networkType=e.networkType.toLowerCase();break}}function hi(e,t){xa(e,t),Ea({getStorageSync:pi})(e,t),wa(e,t);let n=e.platform?e.platform.toLowerCase():"devtools";~["android","ios"].indexOf(n)||(n="devtools"),t.platform=n}function qa(e,t={}){return t.error||t.errorMessage?(t.errMsg=${e}:fail ${t.errorMessage||t.error},delete t.error,delete t.errorMessage):t.errMsg=${e}:ok,t}const Ja={name:my.canIUse("request")?"request":"httpRequest",args(e){const t=e.method||"GET";e.header||(e.header={});const n={"content-type":"application/json"};return Object.keys(e.header).forEach(o=>{n[o.toLocaleLowerCase()]=e.header[o]}),{header(){return{name:"headers",value:n}},data(o){return my.canIUse("saveFileToDingTalk")&&t.toUpperCase()==="POST"&&n["content-type"].indexOf("application/json")===0&&M(o)?{name:"data",value:JSON.stringify(o)}:{name:"data",value:o}},method:"method",responseType:!1}},returnValue:{status:"statusCode",headers:"header"}},Ya={name:"setNavigationBar",args:{frontColor:!1,animation:!1}},Xa={name:"setNavigationBar"};function Za({showCancel:e=!0}={}){return e?{name:"confirm",args:{cancelColor:!1,confirmColor:!1,cancelText:"cancelButtonText",confirmText:"confirmButtonText"},returnValue(t,n){n.confirm=t.confirm,n.cancel=!t.confirm}}:{name:"alert",args:{confirmColor:!1,confirmText:"buttonText"},returnValue(t,n){n.confirm=!0,n.cancel=!1}}}function Qa({icon:e="success"}={}){const t={title:"content",icon:"type",image:!1,mask:!1};return e==="loading"?{name:"showLoading",args:t}:{name:"showToast",args:t}}const el={name:"showActionSheet",args:{itemList:"items",itemColor:!1},returnValue:{index:"tapIndex"}},tl={args:{title:"content"}},nl={args:{name:"fileName"}},ol={returnValue:{apFilePath:"tempFilePath"}},rl={args:{filePath:"apFilePath"}},il={args(e,t){t.compressLevel=4,e&&e.quality&&(t.compressLevel=Math.floor(e.quality/26)),e.src&&(t.apFilePaths=[e.src])},returnValue(e,t){const n=e.apFilePaths;n&&n.length&&(t.tempFilePath=n[0])}},sl={returnValue:{apFilePath:"tempFilePath"}},cl={args:{method:!1,protocols:!1}},al={returnValue(e){var t,n;const o=m(e,"tempFilePaths")&&e.tempFilePaths;return m(e,"apFilePaths")&&!o&&(e.tempFilePaths=[],(t=e.apFilePaths)===null||t===void 0||t.forEach(r=>{var i;return(i=e.tempFilePaths)===null||i===void 0?void 0:i.push(r)})),!m(e,"tempFiles")&&o&&(e.tempFiles=[],(n=e.tempFilePaths)===null||n===void 0||n.forEach(r=>{var i;return(i=e.tempFiles)===null||i===void 0?void 0:i.push({path:r})})),{}}},ll={args(e,t){const n=Number(e.current);if(isNaN(n)){if(e.current&&y(e.urls)){const o=e.urls.indexOf(e.current);t.current=~o?o:0}}else t.current=n;return{indicator:!1,loop:!1}}},ul={args:{tempFilePath:"apFilePath"},returnValue:{apFilePath:"savedFilePath"}},fl={args:{filePath:"apFilePath"}},pl={returnValue(e,t){t.fileList=e.fileList.map(n=>({filePath:n.apFilePath,createTime:n.createTime,size:n.size}))}},dl={args:{filePath:"apFilePath"}},hl={args:{type:!1,altitude:!1}},gl={args:{}},ml={returnValue:di},_l={returnValue:di},yl={name:"offAccelerometerChange"},bl={name:"offCompassChange"},vl={name:"scan",args:{onlyFromCamera:"hideAlbum"},returnValue:{code:"result"}},$l={name:"setClipboard",args:{data:"text"}},Cl={name:"getClipboard",returnValue:{text:"data"}},Sl={args:{duration:!1}},Pl={name:"getAuthCode",returnValue:{authCode:"code"}},Ol={name:my.canIUse("getOpenUserInfo")?"getOpenUserInfo":"getAuthUserInfo",returnValue(e,t){if(my.canIUse("getOpenUserInfo")){let n;try{n=JSON.parse(e.response).response}catch{}n&&(t.userInfo=n,t.userInfo.avatarUrl=n.avatar,delete n.avatar)}else t.userInfo={openId:"",nickName:e.nickName,avatarUrl:e.avatar}}},El={name:"tradePay",args:{orderInfo:"tradeNO"}},xl={returnValue(e,t){t.services=e.services.map(n=>({uuid:n.serviceId,isPrimary:n.isPrimary}))}},wl={name:"connectBLEDevice",args:{timeout:!1}},Il={name:"disconnectBLEDevice"},Al={name:"onBLEConnectionStateChanged"},Tl={args:{phoneNumber:"number"}},kl={name:"offGyroscopeChange"},Nl={returnValue:hi},Rl={returnValue:hi},Ml={returnValue(e,t){t.tempFilePath=e.apFilePath}},jl={args:{value:"brightness"}},Ll={returnValue:{brightness:"value"}},Hl={name:"showSharePanel"},Dl={name:"hideBackHome"},Vl={args:{filePath:"src"}},Fl={name:"getAddress",returnValue(e,t){const n=e.result||{};t.userName=n.fullname,t.countyName=n.country,t.provinceName=n.prov,t.cityName=n.city,t.detailInfo=n.address,t.telNumber=n.mobilePhone,t.errMsg=t.errMsg+" "+e.resultStatus}};var Ul=Object.freeze({__proto__:null,returnValue:qa,request:Ja,setNavigationBarColor:Ya,setNavigationBarTitle:Xa,showModal:Za,showToast:Qa,showActionSheet:el,showLoading:tl,uploadFile:nl,downloadFile:ol,getFileInfo:rl,compressImage:il,chooseVideo:sl,connectSocket:cl,chooseImage:al,previewImage:ll,saveFile:ul,getSavedFileInfo:fl,getSavedFileList:pl,removeSavedFile:dl,getLocation:hl,openLocation:gl,getNetworkType:ml,onNetworkStatusChange:_l,stopAccelerometer:yl,stopCompass:bl,scanCode:vl,setClipboardData:$l,getClipboardData:Cl,pageScrollTo:Sl,login:Pl,getUserInfo:Ol,requestPayment:El,getBLEDeviceServices:xl,createBLEConnection:wl,closeBLEConnection:Il,onBLEConnectionStateChange:Al,makePhoneCall:Tl,stopGyroscope:kl,getSystemInfo:Nl,getSystemInfoSync:Rl,canvasToTempFilePath:Ml,setScreenBrightness:jl,getScreenBrightness:Ll,showShareMenu:Hl,hideHomeButton:Dl,saveVideoToPhotosAlbum:Vl,chooseAddress:Fl,redirectTo:Na,navigateTo:Ma}),Zn=ja(Wa,Ul);function Ct(e,...t){console.warn([Vue warn] ${e},...t)}let K;class gi{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=K,!t&&K&&(this.index=(K.scopes||(K.scopes=[])).push(this)-1)}run(t){if(this.active){const n=K;try{return K=this,t()}finally{K=n}}else Ct("cannot run an inactive effect scope.")}on(){K=this}off(){K=this.parent}stop(t){if(this.active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}}}function mi(e){return new gi(e)}function Bl(e,t=K){t&&t.active&&t.effects.push(e)}function Kl(){return K}function zl(e){K?K.cleanups.push(e):Ct("onScopeDispose() is called when there is no active effect scope to be associated with.")}const Qn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},_i=e=>(e.w&he)>0,yi=e=>(e.n&he)>0,Gl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=he},Wl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];_i(r)&&!yi(r)?r.delete(e):t[n++]=r,r.w&=~he,r.n&=~he}t.length=n}},mn=new WeakMap;let Ge=0,he=1;const _n=30;let F;const Ce=Symbol("iterate"),yn=Symbol("Map key iterate");class eo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Bl(this,o)}run(){if(!this.active)return this.fn();let t=F,n=pe;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=F,F=this,pe=!0,he=1<<++Ge,Ge<=_n?Gl(this):Do(this),this.fn()}finally{Ge<=_n&&Wl(this),he=1<<--Ge,F=this.parent,pe=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){F===this?this.deferStop=!0:this.active&&(Do(this),this.onStop&&this.onStop(),this.active=!1)}}function Do(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let pe=!0;const bi=[];function Be(){bi.push(pe),pe=!1}function Ke(){const e=bi.pop();pe=e===void 0?!0:e}function z(e,t,n){if(pe&&F){let o=mn.get(e);o||mn.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Qn()),vi(r,{effect:F,target:e,type:t,key:n})}}function vi(e,t){let n=!1;Ge<=_n?yi(e)||(e.n|=he,n=!_i(e)):n=!e.has(F),n&&(e.add(F),F.deps.push(e),F.onTrack&&F.onTrack(Object.assign({effect:F},t)))}function re(e,t,n,o,r,i){const s=mn.get(e);if(!s)return;let c=[];if(t==="clear")c=[...s.values()];else if(n==="length"&&y(e)){const l=Ir(o);s.forEach((u,f)=>{(f==="length"||f>=l)&&c.push(u)})}else switch(n!==void 0&&c.push(s.get(n)),t){case"add":y(e)?Bn(n)&&c.push(s.get("length")):(c.push(s.get(Ce)),$e(e)&&c.push(s.get(yn)));break;case"delete":y(e)||(c.push(s.get(Ce)),$e(e)&&c.push(s.get(yn)));break;case"set":$e(e)&&c.push(s.get(Ce));break}const a={target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:i};if(c.length===1)c[0]&&bn(c[0],a);else{const l=[];for(const u of c)u&&l.push(...u);bn(Qn(l),a)}}function bn(e,t){const n=y(e)?e:[...e];for(const o of n)o.computed&&Vo(o,t);for(const o of n)o.computed||Vo(o,t)}function Vo(e,t){(e!==F||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(A({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ql=Ue("__proto__,__v_isRef,__isVue"),$i=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Un)),Jl=Vt(),Yl=Vt(!1,!0),Xl=Vt(!0),Zl=Vt(!0,!0),Fo=Ql();function Ql(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=C(this);for(let i=0,s=this.length;i<s;i++)z(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(C)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Be();const o=C(this)[t].apply(this,n);return Ke(),o}}),e}function Vt(e=!1,t=!1){return function(o,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Ii:wi:t?xi:Ei).get(o))return o;const s=y(o);if(!e&&s&&m(Fo,r))return Reflect.get(Fo,r,i);const c=Reflect.get(o,r,i);return(Un(r)?$i.has(r):ql(r))||(e||z(o,"get",r),t)?c:I(c)?s&&Bn(r)?c:c.value:x(c)?e?Ai(c):Bt(c):c}}const eu=Ci(),tu=Ci(!0);function Ci(e=!1){return function(n,o,r,i){let s=n[o];if(Ve(s)&&I(s)&&!I(r))return!1;if(!e&&(!St(r)&&!Ve(r)&&(s=C(s),r=C(r)),!y(n)&&I(s)&&!I(r)))return s.value=r,!0;const c=y(n)&&Bn(o)?Number(o)<n.length:m(n,o),a=Reflect.set(n,o,r,i);return n===C(i)&&(c?Ye(r,s)&&re(n,"set",o,r,s):re(n,"add",o,r)),a}}function nu(e,t){const n=m(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&re(e,"delete",t,void 0,o),r}function ou(e,t){const n=Reflect.has(e,t);return(!Un(t)||!$i.has(t))&&z(e,"has",t),n}function ru(e){return z(e,"iterate",y(e)?"length":Ce),Reflect.ownKeys(e)}const Si={get:Jl,set:eu,deleteProperty:nu,has:ou,ownKeys:ru},Pi={get:Xl,set(e,t){return Ct(Set operation on key "${String(t)}" failed: target is readonly.,e),!0},deleteProperty(e,t){return Ct(Delete operation on key "${String(t)}" failed: target is readonly.,e),!0}},iu=A({},Si,{get:Yl,set:tu}),su=A({},Pi,{get:Zl}),to=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function st(e,t,n=!1,o=!1){e=e.__v_raw;const r=C(e),i=C(t);n||(t!==i&&z(r,"get",t),z(r,"get",i));const{has:s}=Ft(r),c=o?to:n?no:Xe;if(s.call(r,t))return c(e.get(t));if(s.call(r,i))return c(e.get(i));e!==r&&e.get(t)}function ct(e,t=!1){const n=this.__v_raw,o=C(n),r=C(e);return t||(e!==r&&z(o,"has",e),z(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function at(e,t=!1){return e=e.__v_raw,!t&&z(C(e),"iterate",Ce),Reflect.get(e,"size",e)}function Uo(e){e=C(e);const t=C(this);return Ft(t).has.call(t,e)||(t.add(e),re(t,"add",e,e)),this}function Bo(e,t){t=C(t);const n=C(this),{has:o,get:r}=Ft(n);let i=o.call(n,e);i?Oi(n,o,e):(e=C(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?Ye(t,s)&&re(n,"set",e,t,s):re(n,"add",e,t),this}function Ko(e){const t=C(this),{has:n,get:o}=Ft(t);let r=n.call(t,e);r?Oi(t,n,e):(e=C(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&re(t,"delete",e,void 0,i),s}function zo(){const e=C(this),t=e.size!==0,n=$e(e)?new Map(e):new Set(e),o=e.clear();return t&&re(e,"clear",void 0,void 0,n),o}function lt(e,t){return function(o,r){const i=this,s=i.__v_raw,c=C(s),a=t?to:e?no:Xe;return!e&&z(c,"iterate",Ce),s.forEach((l,u)=>o.call(r,a(l),a(u),i))}}function ut(e,t,n){return function(...o){const r=this.__v_raw,i=C(r),s=$e(i),c=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,l=r[e](...o),u=n?to:t?no:Xe;return!t&&z(i,"iterate",a?yn:Ce),{next(){const{value:f,done:p}=l.next();return p?{value:f,done:p}:{value:c?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function ce(e){return function(...t){{const n=t[0]?on key "${t[0]}" :"";console.warn(${de(e)} operation ${n}failed: target is readonly.,C(this))}return e==="delete"?!1:this}}function cu(){const e={get(i){return st(this,i)},get size(){return at(this)},has:ct,add:Uo,set:Bo,delete:Ko,clear:zo,forEach:lt(!1,!1)},t={get(i){return st(this,i,!1,!0)},get size(){return at(this)},has:ct,add:Uo,set:Bo,delete:Ko,clear:zo,forEach:lt(!1,!0)},n={get(i){return st(this,i,!0)},get size(){return at(this,!0)},has(i){return ct.call(this,i,!0)},add:ce("add"),set:ce("set"),delete:ce("delete"),clear:ce("clear"),forEach:lt(!0,!1)},o={get(i){return st(this,i,!0,!0)},get size(){return at(this,!0)},has(i){return ct.call(this,i,!0)},add:ce("add"),set:ce("set"),delete:ce("delete"),clear:ce("clear"),forEach:lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ut(i,!1,!1),n[i]=ut(i,!0,!1),t[i]=ut(i,!1,!0),o[i]=ut(i,!0,!0)}),[e,n,t,o]}const[au,lu,uu,fu]=cu();function Ut(e,t){const n=t?e?fu:uu:e?lu:au;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(m(n,r)&&r in o?n:o,r,i)}const pu={get:Ut(!1,!1)},du={get:Ut(!1,!0)},hu={get:Ut(!0,!1)},gu={get:Ut(!0,!0)};function Oi(e,t,n){const o=C(n);if(o!==n&&t.call(e,o)){const r=Rt(e);console.warn(Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.)}}const Ei=new WeakMap,xi=new WeakMap,wi=new WeakMap,Ii=new WeakMap;function mu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _u(e){return e.__v_skip||!Object.isExtensible(e)?0:mu(Rt(e))}function Bt(e){return Ve(e)?e:Kt(e,!1,Si,pu,Ei)}function yu(e){return Kt(e,!1,iu,du,xi)}function Ai(e){return Kt(e,!0,Pi,hu,wi)}function Me(e){return Kt(e,!0,su,gu,Ii)}function Kt(e,t,n,o,r){if(!x(e))return console.warn(value cannot be made reactive: ${String(e)}),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=_u(e);if(s===0)return e;const c=new Proxy(e,s===2?o:n);return r.set(e,c),c}function ne(e){return Ve(e)?ne(e.__v_raw):!!(e&&e.__v_isReactive)}function Ve(e){return!!(e&&e.__v_isReadonly)}function St(e){return!!(e&&e.__v_isShallow)}function Ti(e){return ne(e)||Ve(e)}function C(e){const t=e&&e.__v_raw;return t?C(t):e}function J(e){return Ks(e,"__v_skip",!0),e}const Xe=e=>x(e)?Bt(e):e,no=e=>x(e)?Ai(e):e;function ki(e){pe&&F&&(e=C(e),vi(e.dep||(e.dep=Qn()),{target:e,type:"get",key:"value"}))}function Ni(e,t){e=C(e),e.dep&&bn(e.dep,{target:e,type:"set",key:"value",newValue:t})}function I(e){return!!(e&&e.__v_isRef===!0)}function zt(e){return bu(e,!1)}function bu(e,t){return I(e)?e:new vu(e,t)}class vu{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:C(t),this._value=n?t:Xe(t)}get value(){return ki(this),this._value}set value(t){const n=this.__v_isShallow||St(t)||Ve(t);t=n?t:C(t),Ye(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Xe(t),Ni(this,t))}}function Ri(e){return I(e)?e.value:e}const $u={get:(e,t,n)=>Ri(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return I(r)&&!I(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Mi(e){return ne(e)?e:new Proxy(e,$u)}function Go(e){Ti(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=y(e)?new Array(e.length):{};for(const n in e)t[n]=gt(e,n);return t}class Cu{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function gt(e,t,n){const o=e[t];return I(o)?o:new Cu(e,t,n)}var ji;class Su{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ji]=!1,this._dirty=!0,this.effect=new eo(t,()=>{this._dirty||(this._dirty=!0,Ni(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=C(this);return ki(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ji="__v_isReadonly";function Pu(e,t,n=!1){let o,r;const i=d(e);i?(o=e,r=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,r=e.set);const s=new Su(o,r,i||!r,n);return t&&!n&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}const Se=[];function oo(e){Se.push(e)}function ro(){Se.pop()}function h(e,...t){Be();const n=Se.length?Se[Se.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Ou();if(o)oe(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>at <${qt(n,i.type)}>).join(
| ^
20 | ),r]);else{const i=[[Vue warn]: ${e},...t];r.length&&i.push(
21 | ,...Eu(r)),console.warn(...i)}Ke()}function Ou(){let e=Se[Se.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Eu(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[
22 | ],...xu(n))}),t}function xu({vnode:e,recurseCount:t}){const n=t>0?... (${t} recursive calls):"",o=e.component?e.component.parent==null:!1,r= at <${qt(e.component,e.type,o)},i=">"+n;return e.props?[r,...wu(e.props),i]:[r+i]}function wu(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Li(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Li(e,t,n){return E(t)?(t=JSON.stringify(t),n?t:[${e}=${t}]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[${e}=${t}]:I(t)?(t=Li(e,C(t.value),!0),n?t:[${e}=Ref<,t,">"]):d(t)?[${e}=fn${t.name?<${t.name}>:""}]:(t=C(t),n?t:[${e}=,t])}const io={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function oe(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){so(i,t,n)}return r}function ge(e,t,n,o){if(d(e)){const i=oe(e,t,n,o);return i&&ot(i)&&i.catch(s=>{so(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(ge(e[i],t,n,o));return r}function so(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,c=io[n]||n;for(;i;){const l=i.ec;if(l){for(let u=0;u<l.length;u++)if(l[u](e,s,c)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){oe(a,null,10,[e,s,c]);return}}Iu(e,n,r,o)}function Iu(e,t,n,o=!0){{const r=io[t]||t;n&&oo(n),h(Unhandled error${r?during execution of ${r}:""}),n&&ro(),console.error(e)}}let Ze=!1,vn=!1;const L=[];let Z=0;const Le=[];let X=null,le=0;const Hi=Promise.resolve();let co=null;const Au=100;function Pt(e){const t=co||Hi;return e?t.then(this?e.bind(this):e):t}function Tu(e){let t=Z+1,n=L.length;for(;t<n;){const o=t+n>>>1;Qe(L[o])<e?t=o+1:n=o}return t}function Ot(e){(!L.length||!L.includes(e,Ze&&e.allowRecurse?Z+1:Z))&&(e.id==null?L.push(e):L.splice(Tu(e.id),0,e),Di())}function Di(){!Ze&&!vn&&(vn=!0,co=Hi.then(Ui))}function ku(e){return L.indexOf(e)>-1}function Nu(e){const t=L.indexOf(e);t>Z&&L.splice(t,1)}function Vi(e){y(e)?Le.push(...e):(!X||!X.includes(e,e.allowRecurse?le+1:le))&&Le.push(e),Di()}function Fi(e,t=Ze?Z+1:0){for(e=e||new Map;t<L.length;t++){const n=L[t];if(n&&n.pre){if(ao(e,n))continue;L.splice(t,1),t--,n()}}}function Ru(e){if(Le.length){const t=[...new Set(Le)];if(Le.length=0,X){X.push(...t);return}for(X=t,e=e||new Map,X.sort((n,o)=>Qe(n)-Qe(o)),le=0;le<X.length;le++)ao(e,X[le])||X[le]();X=null,le=0}}const Qe=e=>e.id==null?1/0:e.id,Mu=(e,t)=>{const n=Qe(e)-Qe(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ui(e){vn=!1,Ze=!0,e=e||new Map,L.sort(Mu);const t=n=>ao(e,n);try{for(Z=0;Z<L.length;Z++){const n=L[Z];if(n&&n.active!==!1){if(t(n))continue;oe(n,null,14)}}}finally{Z=0,L.length=0,Ru(e),Ze=!1,co=null,(L.length||Le.length)&&Ui(e)}}function ao(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Au){const o=t.ownerInstance,r=o&&ho(o.type);return h(Maximum recursive updates exceeded${r?in component <${r}>:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.),!0}else e.set(t,n+1)}}let Q,We=[],$n=!1;function Gt(e,...t){Q?Q.emit(e,...t):$n||We.push({event:e,args:t})}function Bi(e,t){var n,o;Q=e,Q?(Q.enabled=!0,We.forEach(({event:r,args:i})=>Q.emit(r,...i)),We=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Bi(i,t)}),setTimeout(()=>{Q||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$n=!0,We=[])},3e3)):($n=!0,We=[])}function ju(e,t){Gt("app:init",e,t,{Fragment:Of,Text:Ef,Comment:xf,Static:wf})}const Ki=lo("component:added"),Lu=lo("component:updated"),Hu=lo("component:removed"),zi=e=>{Q&&typeof Q.cleanupBuffer=="function"&&!Q.cleanupBuffer(e)&&Hu(e)};function lo(e){return t=>{Gt(e,t.appContext.app,t.uid,t.uid===0?void 0:t.parent?t.parent.uid:0,t)}}const Du=Gi("perf:start"),Vu=Gi("perf:end");function Gi(e){return(t,n,o)=>{Gt(e,t.appContext.app,t.uid,t,n,o)}}function Fu(e,t,n){Gt("component:emit",e.appContext.app,e,t,n)}function Uu(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||k;{const{emitsOptions:u,propsOptions:[f]}=e;if(u)if(!(t in u))(!f||!(_e(t)in f))&&h(Component emitted event "${t}" but it is neither declared in the emits option nor as an "${_e(t)}" prop.);else{const p=u[t];d(p)&&(p(...n)||h(Invalid event arguments: event validation failed for event "${t}".))}}let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=${s==="modelValue"?"model":s}Modifiers,{number:f,trim:p}=o[u]||k;p&&(r=n.map(b=>E(b)?b.trim():b)),f&&(r=n.map(Ir))}Fu(e,t,r);{const u=t.toLowerCase();u!==t&&o[_e(u)]&&h(Event "${u}" is emitted in component ${qt(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Oe(t)}" instead of "${t}".)}let c,a=o[c=_e(t)]||o[c=_e(te(t))];!a&&i&&(a=o[c=_e(Oe(t))]),a&&ge(a,e,6,r);const l=o[c+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,ge(l,e,6,r)}}function Wi(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},c=!1;if(!d(e)){const a=l=>{const u=Wi(l,t,!0);u&&(c=!0,A(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!c?(x(e)&&o.set(e,null),null):(y(i)?i.forEach(a=>s[a]=null):A(s,i),x(e)&&o.set(e,s),s)}function qi(e,t){return!e||!Er(t)?!1:(t=t.slice(2).replace(/Once$/,""),m(e,t[0].toLowerCase()+t.slice(1))||m(e,Oe(t))||m(e,t))}let xe=null;function Wo(e){const t=xe;return xe=e,e&&e.type.__scopeId,t}function Bu(e,t){if(!R)h("provide() can only be used inside setup().");else{let n=R.provides;const o=R.parent&&R.parent.provides;o===n&&(n=R.provides=Object.create(o)),n[e]=t,R.type.mpType==="app"&&R.appContext.app.provide(e,t)}}function mt(e,t,n=!1){const o=R||xe;if(o){const r=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&d(t)?t.call(o.proxy):t;h(injection "${String(e)}" not found.)}else h("inject() can only be used inside setup() or functional components.")}const ft={};function _t(e,t,n){return d(t)||h("watch(fn, options?)signature has been moved to a separate API. UsewatchEffect(fn, options?)instead.watchnow only supportswatch(source, cb, options?) signature."),Ji(e,t,n)}function Ji(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=k){t||(n!==void 0&&h('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&h('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=O=>{h("Invalid watch source: ",O,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},a=R;let l,u=!1,f=!1;if(I(e)?(l=()=>e.value,u=St(e)):ne(e)?(l=()=>e,o=!0):y(e)?(f=!0,u=e.some(O=>ne(O)||St(O)),l=()=>e.map(O=>{if(I(O))return O.value;if(ne(O))return je(O);if(d(O))return oe(O,a,2);c(O)})):d(e)?t?l=()=>oe(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return p&&p(),ge(e,a,3,[b])}:(l=D,c(e)),t&&o){const O=l;l=()=>je(O())}let p,b=O=>{p=T.onStop=()=>{oe(O,a,4)}},P=f?new Array(e.length).fill(ft):ft;const N=()=>{if(!!T.active)if(t){const O=T.run();(o||u||(f?O.some((H,G)=>Ye(H,P[G])):Ye(O,P)))&&(p&&p(),ge(t,a,3,[O,P===ft?void 0:f&&P[0]===ft?[]:P,b]),P=O)}else T.run()};N.allowRecurse=!!t;let B;r==="sync"?B=N:r==="post"?B=()=>nr(N,a&&a.suspense):(N.pre=!0,a&&(N.id=a.uid),B=()=>Ot(N));const T=new eo(l,B);return T.onTrack=i,T.onTrigger=s,t?n?N():P=T.run():r==="post"?nr(T.run.bind(T),a&&a.suspense):T.run(),()=>{T.stop(),a&&a.scope&&Nt(a.scope.effects,T)}}function Ku(e,t,n){const o=this.proxy,r=E(e)?e.includes(".")?Yi(o,e):()=>o[e]:e.bind(o,o);let i;d(t)?i=t:(i=t.handler,n=t);const s=R;Fe(this);const c=Ji(r,i.bind(o),n);return s?Fe(s):Pe(),c}function Yi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function je(e,t){if(!x(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),I(e))je(e.value,t);else if(y(e))for(let n=0;n<e.length;n++)je(e[n],t);else if(xr(e)||$e(e))e.forEach(n=>{je(n,t)});else if(M(e))for(const n in e)je(e[n],t);return e}const zu=e=>e.type.isKeepAlive;function Gu(e,t){Xi(e,"a",t)}function Wu(e,t){Xi(e,"da",t)}function Xi(e,t,n=R){const o=e.wdc||(e.wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(it(t,o,n),n){let r=n.parent;for(;r&&r.parent;)zu(r.parent.vnode)&&qu(o,t,n,r),r=r.parent}}function qu(e,t,n,o){const r=it(t,e,o,!0);Zi(()=>{Nt(o[t],r)},n)}function it(e,t,n=R,o=!1){if(n){tc(e)&&(n=n.root);const r=n[e]||(n[e]=[]),i=t.weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Be(),Fe(n);const c=ge(t,n,e,s);return Pe(),Ke(),c});return o?r.unshift(i):r.push(i),i}else{const r=_e((io[e]||e.replace(/^on/,"")).replace(/ hook$/,""));h(${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().)}}const ie=e=>(t,n=R)=>(!At||e==="sp")&&it(e,(...o)=>t(...o),n),Ju=ie("bm"),Yu=ie("m"),Xu=ie("bu"),Zu=ie("u"),uo=ie("bum"),Zi=ie("um"),Qu=ie("sp"),ef=ie("rtg"),tf=ie("rtc");function nf(e,t=R){it("ec",e,t)}function Qi(e){Fs(e)&&h("Do not use built-in directive ids as custom directive id: "+e)}const Cn="components";function of(e,t){return rf(Cn,e,!0,t)||e}function rf(e,t,n=!0,o=!1){const r=xe||R;if(r){const i=r.type;if(e===Cn){const c=ho(i,!1);if(c&&(c===t||c===te(t)||c===de(te(t))))return i}const s=qo(r[e]||i[e],t)||qo(r.appContext[e],t);if(!s&&o)return i;if(n&&!s){const c=e===Cn?`

at transpile (/snapshot/cube/node_modules/babel-loader/lib/index.js:65:13)  
at Object.<anonymous> (/snapshot/cube/node_modules/babel-loader/lib/index.js:173:20)  

Module build failed (from /snapshot/cube/node_modules/@ali/antcube-thread-loader/lib/cjs.js):
Thread Loader (Worker 2)
SyntaxError: Unexpected token, expected ( (18:472)

16 | wxEnvironment = undefined,
17 | __CUBE_KERNEL__ = undefined;

18 | const i=require("../../../../../common/vendor.js"),=require("../helpers/buildURL.js"),h=require("../core/buildFullPath.js"),n=require("../core/settle.js"),m=require("../utils.js"),o=(e,u)=>{const a={};return e.forEach(l=>{m.isUndefined(u[l])||(a[l]=u[l])}),a},c=e=>new Promise((u,a)=>{const l=.buildURL(h.buildFullPath(e.baseURL,e.url),e.params),s={url:l,header:e.header,complete:t=>{e.fullPath=l,t.config=e;try{typeof t.data=="string"&&(t.data=JSON.parse(t.data))}catch{}n.settle(u,a,t)}};let d;if(e.method==="UPLOAD"){delete s.header["content-type"],delete s.header["Content-Type"];const t={fileType:e.fileType,filePath:e.filePath,name:e.name},r=["formData"];d=i.index.uploadFile({...s,...t,...o(r

2022-12-30 14:51 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

新建默认项目测试是否存在该问题,如无问题,对比代码修改确认问题点
如确认框架问题,参考提交Bug模板提供详细信息及测试工程

1***@qq.com

1***@qq.com

vite.config配置压缩参数改下,minify不能esbuild

minify: 'esbuild', // 项目压缩 :boolean | 'terser' | 'esbuild'

L***@outlook.com

L***@outlook.com

您好,我遇到和您一样的问题,请问怎么解决呢?

要回复问题请先登录注册