wevu 6.6.6 → 6.6.8

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function N(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function ee(e){new Set(e).forEach(j)}const P=new Set;function te(e){P.add(e)}function F(e){P.delete(e)}const I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakSet,V=new WeakMap,ne=new WeakMap;function re(e){let t=ne.get(e);return t||(t=new Set,ne.set(e,t)),t}function ie(e,t){re(e).add(t)}function H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=z.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),H(e),n.push(e))}}function se(e){let t=z.get(e);if(!t){B.delete(e),R.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){B.delete(e),R.set(e,{parent:n,key:r});return}B.add(e),R.delete(e)}function ce(e,t,n){if(typeof n!=`string`){B.add(e),R.delete(e);return}if(P.size){var r;let n=(r=I.get(t))==null?t:r;ie(n,t),ie(n,e)}let i=z.get(e);i||(i=new Map,z.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),se(e)}function le(e,t,n){let r=z.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||z.delete(e),se(e))}function ue(e,t){if(t===e)return[];if(B.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(B.has(r))return;let t=R.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const G=Symbol(`wevu.version`);function de(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function K(e){var t;return(t=e==null?void 0:e[U.RAW])==null?e:t}const fe=new WeakMap,q=new WeakMap,pe=new WeakMap;function me(e,t){let n=K(e);V.set(n,``),ie(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),V.set(e.current,e.path),ie(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!W(a)||a[U.SKIP])continue;let t=K(a);if(I.has(t)||I.set(t,n),ce(t,e.current,i),!B.has(t)){let n=e.path?`${e.path}.${i}`:i;V.set(t,n)}ie(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function he(e){let t=K(e),n=ne.get(t);if(!n){V.delete(t);return}for(let e of n)R.delete(e),z.delete(e),V.delete(e),B.delete(e),I.delete(e),L.delete(e);ne.delete(t)}function ge(e){A(K(e),G)}const _e={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,G),H(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,G),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,G),Reflect.ownKeys(e)}};function ve(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,_e);return pe.set(e,n),q.set(n,e),L.has(e)||L.set(e,0),n}function ye(e){let t=K(e);return pe.has(t)}function be(e){return ae(K(e))}function xe(e,t,n){var r;if(!P.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=I.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||de(t))?`array`:`property`,o=ue(i,e);if(!o){let r=new Set,o=z.get(e);if(o)for(let[e,t]of o){var s;let n=V.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=ue(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of P)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>de(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of P)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of P)e({root:i,kind:a,op:n,path:d})}const Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(o,e,t);let s=V.get(e);if(P.size&&typeof t==`string`&&s!=null&&!B.has(o)){let e=s?`${s}.${t}`:t;V.set(o,e)}return Ce(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(i,e,t);let a=V.get(e);if(P.size&&typeof t==`string`&&a!=null&&!B.has(i)){let e=a?`${a}.${t}`:t;V.set(i,e)}}M(e,t),i&&typeof t==`string`&&de(t)&&Number(t)>=a&&M(e,`length`),M(e,G),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,G),H(s)),xe(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,G),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,G),H(i)),xe(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,G),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=fe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return fe.set(e,n),q.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),N(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&ee(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),N(this.dep)},i=()=>{this.dep&&ee(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Pe(e,t){return Te(new Ne(e,t))}function Fe(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){ee(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>He(e,i,n)),e;let a=J(e)&&t!==1/0?K(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>Ue===`version`&&J(e)?(ge(e),e):He(e,m)):Ue===`version`&&J(t)?(ge(t),t):He(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function qe(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}function Xe(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return Oe(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function Ze(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=Xe({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}return Reflect.get(e,n,r)},set(e,t,n,r){return typeof t==`string`&&c[t]?(Je(l,t,n),!0):Reflect.set(e,t,n,r)},has(e,t){return typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t))?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Object.keys(s).forEach(e=>t.add(e)),Object.keys(c).forEach(e=>t.add(e)),Array.from(t)},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(c[t])return{configurable:!0,enumerable:!0,get(){return c[t].value},set(e){Je(l,t,e)}};if(Object.prototype.hasOwnProperty.call(s,t))return{configurable:!0,enumerable:!1,value:s[t]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(m,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(m));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(m);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(m);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:m,touchSetupMethodsVersion(){p.value+=1}}}const Qe=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,Qe,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function $e(e){return typeof e==`object`&&!!e&&e[Qe]===!0}function et(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function tt(e,t=new WeakMap,n){var r,i;let a=je(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if($e(a))return;let o=J(a)?K(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=be(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([tt(r,t),tt(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(tt(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>tt(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=tt(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:be(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=tt(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:be(o),value:u}),u}function nt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function rt(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function it(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?nt(e,t,it):et(e)&&et(t)?rt(e,t,it):!1}function at(e){return e===void 0?null:e}function ot(e,t,n,r){if(!it(e,t)){if(et(e)&&et(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=at(t[i]);continue}ot(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){nt(e,t,it)||(r[n]=at(t));return}r[n]=at(t)}}function st(e,t){let n={};for(let r of Object.keys(t))ot(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function ct(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function lt(e,t,n){if(t<=0)return t+1;if(e===null)return 4;let r=typeof e;if(r===`string`)return 2+e.length;if(r===`number`)return Number.isFinite(e)?String(e).length:4;if(r===`boolean`)return e?4:5;if(r===`undefined`||r===`function`||r===`symbol`||r!==`object`||n.has(e))return 4;if(n.add(e),Array.isArray(e)){let r=2;for(let i=0;i<e.length;i++)if(i&&(r+=1),r+=lt(e[i],t-r,n),r>t)return r;return r}let i=2;for(let[r,a]of Object.entries(e))if(i>2&&(i+=1),i+=2+r.length+1,i+=lt(a,t-i,n),i>t)return i;return i}function ut(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=lt(e,n+1,new WeakSet);if(i>n)return{fallback:!0,estimatedBytes:i,bytes:void 0};if(i>=n*.85&&r>2)try{let t=JSON.stringify(e).length;return{fallback:t>n,estimatedBytes:i,bytes:t}}catch(e){return{fallback:!1,estimatedBytes:i,bytes:void 0}}return{fallback:!1,estimatedBytes:i,bytes:void 0}}function dt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=lt(e,1/0,new WeakSet);return h.set(e,n),n}return lt(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ft(e){return e===void 0?null:e}function pt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function mt(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!pt(e)||!pt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function ht(e,t,n,r){if(Object.is(e,t))return!0;if(n<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!ht(e[i],t[i],n-1,r))return!1;return!0}if(!pt(e)||!pt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!ht(e[a],t[a],n-1,r))return!1;return!0}function gt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function _t(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=J(t)?K(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=tt(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=tt(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function vt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),N=new Map(M);b.clear();let ee=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},P=e=>{if(O.has(e))return O.get(e);let t=ft(tt(ee(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=P(e),N.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=P(e)}let te=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),te=t.length;for(let r of t){if(!l(r))continue;let t=tt(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?ht(i,t,o,{keys:s}):a===`shallow`?mt(i,t):Object.is(i,t))||(e[r]=ft(t),C[r]=t)}Object.assign(k,e)}let F=ct(k),I=0;if(f){let e=dt({input:F,entryMap:N,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=ct(e.out)}let L=ut(F,d),R=L.fallback;if(T({mode:R?`diff`:`patch`,reason:R?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length,mergedSiblingParents:I||void 0,computedDirtyKeys:te||void 0,estimatedBytes:L.estimatedBytes,bytes:L.bytes}),R){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(F).length){for(let[e,t]of Object.entries(F)){let n=N.get(e);n?gt(S,e,t,n.kind===`array`?`set`:n.op):gt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(F);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length})}}function yt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||K(a)===e&&n.push(r)}return n},M=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},N=()=>_t({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),ee=(e=`diff`)=>{let t=N(),o=st(E,t);if(E=t,O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?vt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:M,runDiffUpdate:ee}):ee(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?N():{...E},getLatestSnapshot:()=>E}}function bt(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function xt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function St(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Ct(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];(r[n]==null||typeof r[n]!=`object`)&&(r[n]={}),r=r[n]}r[t[t.length-1]]=n}function wt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Ct(e[a],o,i)}function Tt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function Et(e){return Ye(e)}function Dt(e,t,n,r){return(i,a)=>{let o=St(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Tt(e,o),c=e=>{wt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:Et,formatter:e=>e,...a};return{get value(){return s()},set value(e){c(e)},update(e){c(e)},model(e){let t={...l,...e},n=`on${xt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const Ot=`__wevuDefaultsScope`;let kt={};function At(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function jt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=At(e.setData),i=At(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=At(e.options),o=At(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Mt(e,t){return jt(e,t)}function Nt(e,t){return{app:jt(e.app,t.app),component:jt(e.component,t.component)}}function Pt(e){kt=Nt(kt,e)}function Ft(){kt={}}function It(e){return Mt(kt.app,e)}function Lt(e){return Mt(kt.component,e)}let Rt,zt;function Bt(){return Rt}function Vt(e){Rt=e}function Ht(){return zt}function Ut(e){zt=e}function Z(e){if(!Rt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Rt}function Wt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Wt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Gt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Kt(e){var t;let n=typeof wx<`u`?wx:void 0;if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function qt(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function Jt(e){Q(Z(`onLaunch`),`onLaunch`,e)}function Yt(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function Xt(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function Zt(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function Qt(e){Q(Z(`onShow`),`onShow`,e)}function $t(e){Q(Z(`onLoad`),`onLoad`,e)}function en(e){Q(Z(`onHide`),`onHide`,e)}function tn(e){Q(Z(`onUnload`),`onUnload`,e)}function nn(e){Q(Z(`onReady`),`onReady`,e)}function rn(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function an(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function on(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function sn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function cn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function ln(e){Q(Z(`onResize`),`onResize`,e)}function un(e){Q(Z(`onMoved`),`onMoved`,e)}function dn(e){Q(Z(`onError`),`onError`,e)}function fn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function pn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Gt(t,`onShareAppMessage`),Kt(t)}function mn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Gt(t,`onShareTimeline`),Kt(t)}function hn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Gt(t,`onAddToFavorites`)}function gn(e){Q(Z(`onMounted`),`onReady`,e)}function _n(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function vn(e){Z(`onBeforeUnmount`),e()}function yn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function bn(e){Z(`onBeforeMount`),e()}function xn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function Sn(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function Cn(e){Q(Z(`onActivated`),`onShow`,e)}function wn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Tn(e){Z(`onServerPrefetch`)}function En(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Dn(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function On(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function kn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function An(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function jn(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=c==null?void 0:c.wvInlineId;if(l&&r){let t=r[l];if(t&&typeof t.fn==`function`){let r={},i=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<i.length;e+=1){let t=i[e];r[t]=c==null?void 0:c[`wvS${e}`]}let a=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<a.length;e+=1){let t=a[e],n=On(c==null?void 0:c[`wvI${e}`]);n!==void 0&&(r[t]=n)}let o=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<i.length;t+=1){let a=i[t],s=o[t];try{let t;if(typeof s==`function`)t=s(e,r,n);else if(s&&typeof s==`object`&&s.type===`for-item`){let n=r[s.indexKey],i=kn(e,s.path);t=i==null?void 0:i[n]}else continue;t!==void 0&&(r[a]=An(t))}catch(e){}}let s=t.fn(e,r,n);return typeof s==`function`?s.call(e,n):s}}let u=typeof t==`string`?t:void 0;if(!u)return;let d=c==null?void 0:c.wvArgs,f=[];if(Array.isArray(d))f=d;else if(typeof d==`string`)try{f=JSON.parse(d)}catch(e){try{f=JSON.parse(Dn(d))}catch(e){f=[]}}Array.isArray(f)||(f=[]);let p=f.map(e=>e===`$event`?n:e),m=e==null?void 0:e[u];if(typeof m==`function`)return m.apply(e,p)}const Mn=new Map;let Nn=0;function Pn(){return Nn+=1,`wv${Nn}`}function Fn(e,t,n){var r;let i=(r=Mn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Mn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function In(e){Mn.delete(e)}function Ln(e,t){var n;let r=(n=Mn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Mn.set(e,r),()=>{let n=Mn.get(e);n&&n.subscribers.delete(t)}}function Rn(e){var t;return(t=Mn.get(e))==null?void 0:t.proxy}function zn(e){var t;return(t=Mn.get(e))==null?void 0:t.snapshot}function Bn(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Fn(n,i,t.proxy)}function Vn(e){return e.kind===`component`}function Hn(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Un(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=Hn(t);try{Object.defineProperty(e,`__wevuExposeProxy`,{value:r,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(e,`__wevuExposeRaw`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuExposeProxy=r,e.__wevuExposeRaw=t}return r}function Wn(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function Gn(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?Un(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function Kn(e){return e.__wevuTemplateRefMap}function qn(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Jn(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Yn(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function Xn(e){let t=e;return t&&typeof t.createSelectorQuery==`function`?t.createSelectorQuery():typeof wx<`u`&&typeof wx.createSelectorQuery==`function`?wx.createSelectorQuery().in(t):null}function Zn(e,t,n,r,i){let a=Xn(e);return a?(r(n.multiple?a.selectAll(t):a.select(t)),new Promise(e=>{a.exec(t=>{var r;let a=Array.isArray(t)?t[0]:null;if(n.index!=null&&Array.isArray(a)){var o;a=(o=a[n.index])==null?null:o}if(i){var s;i((s=a)==null?null:s)}e((r=a)==null?null:r)})})):(i&&i(null),Promise.resolve(null))}function Qn(e,t,n){return X({selector:t,boundingClientRect:r=>Zn(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Zn(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Zn(e,t,n,e=>e.fields(r),i),node:r=>Zn(e,t,n,e=>e.node(),r)})}function $n(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>Wn(Qn(e,t.selector,{multiple:!0,index:r}),Gn(n))))}return X([])}let r=Qn(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Wn(r,Gn(n.selectComponent(t.selector))):r}function er(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>Qn(e,t.selector,{multiple:!0,index:r}))):n?Qn(e,t.selector,{multiple:!1}):null}function tr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Kn(e),i=n.filter(e=>!Vn(e)),a=n.filter(e=>Vn(e)).map(t=>({binding:t,value:$n(e,t)})),o=n=>{var i,a;let o=Yn(e),s=new Map,c=new Set,l=(i=(a=e.__wevu)==null?void 0:a.proxy)==null?e:i;n.forEach(t=>{let n=t.binding,r=t.value,i=Jn(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,qn(r,e,n)}for(let e of Object.keys(o))c.has(e)||delete o[e];t==null||t()};if(!i.length){o(a);return}let s=Xn(e);if(!s){o(a);return}let c=[];for(let e of i)(e.inFor?s.selectAll(e.selector):s.select(e.selector)).boundingClientRect(),c.push({binding:e});s.exec(t=>{let n=c.map((n,r)=>{let i=Array.isArray(t)?t[r]:null;return{binding:n.binding,value:er(e,n.binding,i)}});o([...a,...n])})}function nr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,tr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function rr(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=Yn(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Kn(e);for(let t of r){let n=Jn(e,t),r=t.inFor?X([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,qn(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function ir(e,t,n){var r;if(typeof e!=`function`)return;let i=(r=n==null?void 0:n.runtime)==null?{methods:Object.create(null),state:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function ar(e,t,n){if(typeof e==`function`)return{handler:e.bind(t.proxy),options:{}};if(typeof e==`string`){var r,i;let a=(r=(i=t.methods)==null?void 0:i[e])==null?n[e]:r;return typeof a==`function`?{handler:a.bind(t.proxy),options:{}}:void 0}if(!e||typeof e!=`object`)return;let a=ar(e.handler,t,n);if(!a)return;let o={...a.options};return e.immediate!==void 0&&(o.immediate=e.immediate),e.deep!==void 0&&(o.deep=e.deep),{handler:a.handler,options:o}}function or(e,t){let n=t.split(`.`).map(e=>e.trim()).filter(Boolean);return n.length?()=>{let t=e;for(let e of n){if(t==null)return t;t=t[e]}return t}:()=>e}function sr(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=ar(o,e,n);if(!t)continue;let s=or(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function cr(){return Object.freeze(Object.create(null))}function lr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function ur(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;let p=Pn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}if(typeof e.setData==`function`)return e.setData(r)}};return r.__wevu_enableSetData=()=>{if(n=!0,t&&Object.keys(t).length&&typeof e.setData==`function`){let n=t;t=void 0,e.setData(n)}},r})(e):{setData(t){if(typeof e.setData==`function`)return e.setData(t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Fn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),nr(e),n}},v=t.mount({..._});h=v;let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o,x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>lr()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,Bn(e,T,p),n){let t=sr(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=ve({...e.properties||{}});try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}let n=ve(Object.create(null)),i=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),a=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(n))(!t||!Object.prototype.hasOwnProperty.call(t,e)||i.has(e)||a(e))&&delete n[e];if(t)for(let[e,r]of Object.entries(t))i.has(e)||a(e)||(n[e]=r)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=n}let o={props:t,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:e,emit:(t,n,r)=>{typeof e.triggerEvent==`function`&&e.triggerEvent(t,n,r)},expose:t=>{e.__wevuExposed=t},attrs:n,slots:cr()};Vt(e),Ut(o);try{let e=ir(r,t,o),n=!1;if(e&&typeof e==`object`&&Object.keys(e).forEach(t=>{let r=e[t];typeof r==`function`?(v.methods[t]=(...e)=>r.apply(v.proxy,e),n=!0):v.state[t]=r}),n){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Ut(void 0),Vt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function dr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function fr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&In(n),rr(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function pr(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return jn((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){ur(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function mr(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=typeof s==`function`||!!t.enableOnTabItemTap,_=typeof c==`function`||!!t.enableOnResize,v=typeof u==`function`||!!t.enableOnShareTimeline,y=typeof l==`function`||!!t.enableOnShareAppMessage,b=typeof d==`function`||!!t.enableOnAddToFavorites,x=typeof n==`function`||!!t.enableOnSaveExitState,S=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:y,enableOnShareTimeline:v,enableOnAddToFavorites:b,enableOnSaveExitState:x,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:S,effectiveOnReachBottom:typeof i==`function`?i:S,effectiveOnPageScroll:typeof a==`function`?a:S,effectiveOnRouteDone:typeof o==`function`?o:S,effectiveOnTabItemTap:typeof s==`function`?s:S,effectiveOnResize:typeof c==`function`?c:S,effectiveOnShareAppMessage:typeof l==`function`?l:S,effectiveOnShareTimeline:typeof u==`function`?u:S,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let hr=!1,gr;function _r(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function vr(){if(hr)return;hr=!0;let e=typeof wx<`u`?wx:void 0;if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return gr&&$(gr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return gr&&$(gr,`onPageScroll`,[e==null?{}:e]),r})}function yr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=typeof wx<`u`?wx:void 0;if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function br(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:h,enableOnResize:g,enableOnShareAppMessage:_,enableOnShareTimeline:v,enableOnAddToFavorites:y,effectiveOnSaveExitState:b,effectiveOnPullDownRefresh:x,effectiveOnReachBottom:S,effectiveOnPageScroll:C,effectiveOnRouteDone:w,effectiveOnTabItemTap:T,effectiveOnResize:E,effectiveOnShareAppMessage:D,effectiveOnShareTimeline:O,effectiveOnAddToFavorites:k,hasHook:A}=e,j={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,ur(this,t,n,r),dr(this),l&&yr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&gr===this&&(gr=void 0),fr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(vr(),gr=this,this.__wevuOnLoadCalled||j.onLoad.call(this,_r(this)),yr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e);if(l&&m&&this.__wevuReadyCalled&&!this.__wevuRouteDoneCalled){var t;return(t=j.onRouteDone)==null?void 0:t.call(this)}},onHide(...e){if(l&&gr===this&&(gr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||j.onLoad.call(this,_r(this)),yr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,nr(this,()=>{if($(this,`onReady`,e),typeof c==`function`&&c.apply(this,e),l&&m&&!this.__wevuRouteDoneCalled){var t;(t=j.onRouteDone)==null||t.call(this)}});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(j.onSaveExitState=function(...e){let t=qt(this,`onSaveExitState`,e);return t===void 0?b.apply(this,e):t}),d&&(j.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!A(this,`onPullDownRefresh`))return x.apply(this,e)}),f&&(j.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!A(this,`onReachBottom`))return S.apply(this,e)}),p&&(j.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!A(this,`onPageScroll`))return C.apply(this,e)}),m&&(j.onRouteDone=function(...e){if(this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!A(this,`onRouteDone`))return w.apply(this,e)}),h&&(j.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!A(this,`onTabItemTap`))return T.apply(this,e)}),g&&(j.onResize=function(...e){if($(this,`onResize`,e),!A(this,`onResize`))return E.apply(this,e)}),_&&(j.onShareAppMessage=function(...e){let t=qt(this,`onShareAppMessage`,e);return t===void 0?D.apply(this,e):t}),v&&(j.onShareTimeline=function(...e){let t=qt(this,`onShareTimeline`,e);return t===void 0?O.apply(this,e):t}),y&&(j.onAddToFavorites=function(...e){let t=qt(this,`onAddToFavorites`,e);return t===void 0?k.apply(this,e):t}),j}function xr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return jn((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Ye(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];if(o&&(a=o.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?a:e}return a}}return{finalMethods:r}}function Sr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Fn(r,i,n.proxy)}function Cr(e){let{restOptions:t,userObservers:n}=e,r=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],i=new Set(r),a=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:r,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=r}},o=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,a=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!a||!Object.prototype.hasOwnProperty.call(a,e)||i.has(e)||n(e))try{delete t[e]}catch(e){}if(!a){Sr(e);return}for(let[e,r]of Object.entries(a))if(!(i.has(e)||n(e)))try{t[e]=r}catch(e){}Sr(e)},s=e=>{let t=e.__wevuProps,n=e.properties;if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,i=Object.keys(t);for(let e of i)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r))try{t[e]=n}catch(e){}Sr(e)}o(e)},c=(e,t,n)=>{let r=e.__wevuProps;if(!(!r||typeof r!=`object`)){try{r[t]=n}catch(e){}Sr(e),o(e)}},l={};if(r.length)for(let e of r)l[e]=function(t){c(this,e,t)};let u={...n==null?{}:n};for(let[e,t]of Object.entries(l)){let n=u[e];typeof n==`function`?u[e]=function(...e){n.apply(this,e),t.apply(this,e)}:u[e]=t}let d=u[`**`];return u[`**`]=function(...e){typeof d==`function`&&d.apply(this,e),s(this)},{attachWevuPropKeys:a,syncWevuPropsFromInstance:s,finalObservers:u}}function wr(e,t,n,r,i){var a,o;let{methods:s={},lifetimes:c={},pageLifetimes:l={},options:u={},...d}=i,f=d.onLoad,p=d.onUnload,m=d.onShow,h=d.onHide,g=d.onReady,_=d.onSaveExitState,v=d.onPullDownRefresh,y=d.onReachBottom,b=d.onPageScroll,x=d.onRouteDone,S=d.onTabItemTap,C=d.onResize,w=d.onShareAppMessage,T=d.onShareTimeline,E=d.onAddToFavorites,D=(a=d.features)==null?{}:a,O=!!d.__wevu_isPage||Object.keys(D==null?{}:D).length>0,k={...d},A=k.__wevuTemplateRefs;delete k.__wevuTemplateRefs;let j=k.observers,M=k.setupLifecycle===`created`?`created`:`attached`;delete k.setupLifecycle;let N=k.created;delete k.features,delete k.created,delete k.onLoad,delete k.onUnload,delete k.onShow,delete k.onHide,delete k.onReady;let{enableOnPullDownRefresh:ee,enableOnReachBottom:P,enableOnPageScroll:te,enableOnRouteDone:F,enableOnTabItemTap:I,enableOnResize:L,enableOnShareAppMessage:R,enableOnShareTimeline:z,enableOnAddToFavorites:B,enableOnSaveExitState:V,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:H,effectiveOnRouteDone:ae,effectiveOnTabItemTap:oe,effectiveOnResize:se,effectiveOnShareAppMessage:ce,effectiveOnShareTimeline:le,effectiveOnAddToFavorites:ue}=mr({features:D,userOnSaveExitState:_,userOnPullDownRefresh:v,userOnReachBottom:y,userOnPageScroll:b,userOnRouteDone:x,userOnTabItemTap:S,userOnResize:C,userOnShareAppMessage:w,userOnShareTimeline:T,userOnAddToFavorites:E}),U=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=k.export;k.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let W={multipleSlots:(o=u.multipleSlots)==null?!0:o,...u},{attachWevuPropKeys:G,syncWevuPropsFromInstance:de,finalObservers:K}=Cr({restOptions:k,userObservers:j}),{finalMethods:fe}=xr({userMethods:s,runtimeMethods:t}),q=br({runtimeApp:e,watch:n,setup:r,userOnLoad:f,userOnUnload:p,userOnShow:m,userOnHide:h,userOnReady:g,isPage:O,enableOnSaveExitState:V,enableOnPullDownRefresh:ee,enableOnReachBottom:P,enableOnPageScroll:te,enableOnRouteDone:F,enableOnTabItemTap:I,enableOnResize:L,enableOnShareAppMessage:R,enableOnShareTimeline:z,enableOnAddToFavorites:B,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:H,effectiveOnRouteDone:ae,effectiveOnTabItemTap:oe,effectiveOnResize:se,effectiveOnShareAppMessage:ce,effectiveOnShareTimeline:le,effectiveOnAddToFavorites:ue,hasHook:U}),pe={};if(O)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof fe[e]!=`function`&&(pe[e]=function(...e){return t.apply(this,e)})}Component({...k,...q,observers:K,lifetimes:{...c,created:function(...t){Array.isArray(A)&&A.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:A,configurable:!0,enumerable:!1,writable:!1}),G(this),M===`created`&&(ur(this,e,n,r,{deferSetData:!0}),de(this)),typeof N==`function`&&N.apply(this,t),typeof c.created==`function`&&c.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof c.moved==`function`&&c.moved.apply(this,e)},attached:function(...t){Array.isArray(A)&&A.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:A,configurable:!0,enumerable:!1,writable:!1}),G(this),(M!==`created`||!this.__wevu)&&ur(this,e,n,r),de(this),M===`created`&&dr(this),typeof c.attached==`function`&&c.attached.apply(this,t)},ready:function(...e){if(O&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof c.ready==`function`&&c.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,de(this),nr(this,()=>{$(this,`onReady`,e),typeof c.ready==`function`&&c.ready.apply(this,e)});return}typeof c.ready==`function`&&c.ready.apply(this,e)},detached:function(...e){if(O&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof c.detached==`function`&&c.detached.apply(this,e);return}rr(this),fr(this),typeof c.detached==`function`&&c.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof c.error==`function`&&c.error.apply(this,e)}},pageLifetimes:{...l,show:function(...e){if(O&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof l.show==`function`&&l.show.apply(this,e);return}$(this,`onShow`,e),typeof l.show==`function`&&l.show.apply(this,e)},hide:function(...e){if(O&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof l.hide==`function`&&l.hide.apply(this,e);return}$(this,`onHide`,e),typeof l.hide==`function`&&l.hide.apply(this,e)},resize:function(...e){if(O&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof l.resize==`function`&&l.resize.apply(this,e);return}$(this,`onResize`,e),typeof l.resize==`function`&&l.resize.apply(this,e)}},methods:{...pe,...fe},options:W})}function Tr(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function Er(e){let{[Ot]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[Ot]===`component`?e:It(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=Ce((n==null?(()=>({})):n)()),r=d,i=u,s=!0,c=[],{includeComputed:l,setDataStrategy:f,maxPatchKeys:m,maxPayloadBytes:h,mergeSiblingThreshold:g,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,computedCompare:b,computedCompareMaxDepth:S,computedCompareMaxKeys:C,prelinkMaxDepth:w,prelinkMaxKeys:T,debug:E,debugWhen:D,debugSampleRate:O,elevateTopKeyThreshold:A,toPlainMaxDepth:j,toPlainMaxKeys:M,shouldIncludeKey:N}=bt(o),{boundMethods:ee,computedRefs:P,computedSetters:I,dirtyComputedKeys:L,computedProxy:R,publicInstance:z,touchSetupMethodsVersion:B}=Ze({state:t,computedDefs:r,methodDefs:i,appConfig:p,includeComputed:l,setDataStrategy:f}),V=e==null?{setData:()=>{}}:e,ne=K(t),re,ie=yt({state:t,computedRefs:P,dirtyComputedKeys:L,includeComputed:l,setDataStrategy:f,computedCompare:b,computedCompareMaxDepth:S,computedCompareMaxKeys:C,currentAdapter:V,shouldIncludeKey:N,maxPatchKeys:m,maxPayloadBytes:h,mergeSiblingThreshold:g,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,elevateTopKeyThreshold:A,toPlainMaxDepth:j,toPlainMaxKeys:M,debug:E,debugWhen:D,debugSampleRate:O,runTracker:()=>re==null?void 0:re(),isMounted:()=>s}),H=()=>ie.job(ne),ae=e=>ie.mutationRecorder(e,ne);re=k(()=>{ge(t),Object.keys(t).forEach(e=>{let n=t[e];if(Y(n)){let e=n.value;J(e)&&ge(e)}else J(n)&&ge(n)})},{lazy:!0,scheduler:()=>a(H)}),H(),c.push(Tr(()=>x(re))),f===`patch`&&(me(t,{shouldIncludeTopKey:N,maxDepth:w,maxKeys:T}),te(ae),c.push(Tr(()=>F(ae))),c.push(Tr(()=>he(t))));function oe(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return c.push(r),Tr(()=>{r();let e=c.indexOf(r);e>=0&&c.splice(e,1)},r)}return{get state(){return t},get proxy(){return z},get methods(){return ee},get computed(){return R},get adapter(){return V},bindModel:Dt(z,t,P,I),watch:oe,snapshot:()=>ie.snapshot(),unmount:()=>{s&&(s=!1,c.forEach(e=>{try{e()}catch(e){}}),c.length=0)},__wevu_touchSetupMethodsVersion:B}},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=typeof globalThis<`u`?globalThis:void 0,t=typeof wx<`u`?wx:e==null?void 0:e.my,n=(t==null?void 0:t.__wxConfig)!==void 0,r=`__wevuAppRegistered`;n&&t&&t[r]||(n&&t&&(t[r]=!0),pr(m,i==null?{}:i,s,c,l))}return m}function Dr(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function Or(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function kr(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvArgs)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvArgs:t,a=[];if(Array.isArray(i))a=i;else if(typeof i==`string`)try{a=JSON.parse(i)}catch(e){try{a=JSON.parse(Or(i))}catch(e){a=[]}}return Array.isArray(a)||(a=[]),a.map(t=>t===`$event`?e:t)}function Ar(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function jr(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=Ar(i),s=Ar(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function Mr(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){jr(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){jr(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(jr(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Ln(n,r);let i=zn(n);i&&r(i,Rn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a,o,s;let c=this.__wvOwnerProxy,l=(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map,u=jn(c,(n=e==null||(r=e.currentTarget)==null||(r=r.dataset)==null?void 0:r.wvHandler)==null?e==null||(i=e.target)==null||(i=i.dataset)==null?void 0:i.wvHandler:n,e,l);if(u!==void 0)return u;if(!c)return;let d=(a=e==null||(o=e.currentTarget)==null||(o=o.dataset)==null?void 0:o.wvHandler)==null?e==null||(s=e.target)==null||(s=s.dataset)==null?void 0:s.wvHandler:a;if(typeof d!=`string`||!d)return;let f=c==null?void 0:c[d];if(typeof f!=`function`)return;let p=kr(e);return f.apply(c,p)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function Nr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Pr(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:Nr(e)}function Fr(e,t,n){var r,i;let a=(r=e==null?void 0:e.methods)==null?Object.create(null):r,o=(i=e==null?void 0:e.state)==null?Object.create(null):i,s=J(o)?K(o):o,c=!1;if(e&&!e.methods)try{e.methods=a}catch(e){}if(e&&!e.state)try{e.state=o}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)a[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},c=!0;else if(i===t||!Pr(i))try{Object.defineProperty(s,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){o[r]=i}else o[r]=i}),e){var l,u;if(e.methods=(l=e.methods)==null?a:l,e.state=(u=e.state)==null?o:u,c){var d;(d=e.__wevu_touchSetupMethodsVersion)==null||d.call(e)}}}let Ir;function Lr(){var e;let t=typeof globalThis<`u`,n=t?globalThis:void 0,r=typeof wx<`u`?wx:(e=n==null?void 0:n.my)==null?t?globalThis:void 0:e;if(!r)return;let i=r;!i.__weapp_vite_createScopedSlotComponent&&Ir&&(i.__weapp_vite_createScopedSlotComponent=Ir)}function Rr(e){Lr();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Lt(e),u=Er({data:n,computed:r,methods:i,setData:a,[Ot]:`component`}),d=(e,t)=>{let n=ir(s,e,t);return n&&t&&Fr(t.runtime,t.instance,n),n},f=Dr(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return wr(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function zr(e){Lr();let{properties:t,props:n,...r}=e;Rr(Dr(r,n,t))}function Br(e){zr(Mr(e))}Ir=Br,Lr();const Vr=Symbol(`wevu.provideScope`),Hr=new Map;function Ur(e,t){let n=Bt();if(n){let r=n[Vr];r||(r=new Map,n[Vr]=r),r.set(e,t)}else Hr.set(e,t)}function Wr(e,t){let n=Bt();if(n){let t=n;for(;t;){let n=t[Vr];if(n&&n.has(e))return n.get(e);t=null}}if(Hr.has(e))return Hr.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function Gr(e,t){Hr.set(e,t)}function Kr(e,t){if(Hr.has(e))return Hr.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const qr=/\B([A-Z])/g;function Jr(e){return e?e.startsWith(`--`)?e:e.replace(qr,`-$1`).toLowerCase():``}function Yr(e,t){if(!t)return e;if(!e)return t;let n=e;n.endsWith(`;`)||(n+=`;`);let r=t.startsWith(`;`)?t.slice(1):t;return n+r}function Xr(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=Jr(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=Yr(t,`${i}:${n}`))}else t=Yr(t,`${i}:${r}`)}return t}function Zr(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Zr(n);t&&(e=Yr(e,t))}return e}return typeof t==`object`?Xr(t):``}function Qr(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Qr(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const $r=Object.freeze(Object.create(null));function ei(){var e;let t=Ht();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function ti(){var e;let t=Ht();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?$r:e}function ni(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function ri(e){let t=Bt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=ni(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}function ii(e,t){let n=Ht();if(!n)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let r=n.emit,i=`update:${t}`;return Pe({get:()=>e==null?void 0:e[t],set:e=>{r==null||r(i,e)}})}function ai(e){let t=Bt();if(!(t!=null&&t.__wevu)||typeof t.__wevu.bindModel!=`function`)throw Error(`useBindModel() 必须在 setup() 的同步阶段调用`);let n=t.__wevu.bindModel.bind(t.__wevu),r=((t,r)=>e?n(t,{...e,...r}):n(t,r));return r.model=(e,t)=>r(e).model(t),r.value=(t,n)=>{var i;let a={...e,...n},o=(i=a==null?void 0:a.valueProp)==null?`value`:i;return r.model(t,n)[o]},r.on=(t,n)=>{var i;let a={...e,...n},o=`on${xt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function oi(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function si(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function ci(e){return typeof e==`object`&&!!e}function li(e){if(!ci(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function ui(e,t){for(let n in t)e[n]=t[n]}function di(e){if(Array.isArray(e))return e.map(e=>di(e));if(li(e)){let t={};for(let n in e)t[n]=di(e[n]);return t}return e}function fi(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=di(t)});return}if(ci(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){fi(i,r);continue}if(li(r)&&li(i)){fi(i,r);continue}e[n]=di(r)}}}function pi(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&ci(e)&&(ui(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(ui(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(ui(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function mi(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return mi._instance=e,e}const hi=Object.prototype.hasOwnProperty;function gi(e){return Y(e)&&hi.call(e,`dep`)}function _i(e){return J(e)?di(K(e)):gi(e)?di(e.value):di(e)}function vi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function yi(e,t){let n,r=!1,i=mi._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||Y(t)&&!gi(t)||o.set(e,_i(t))});let s=pi(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(gi(r)){r.value=di(e);return}if(J(r)){fi(r,e);return}Y(r)||(n[t]=di(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=vi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=si(n,e,t,s.actionSubs);return}if(gi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{gi(e)?e.value:ge(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=Ce(u),f=di(K(u)),p=()=>{},m=pi(e,d,e=>p(e),()=>{fi(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=vi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Fe(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=si(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(ge(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function bi(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,qt as callHookReturn,En as callUpdateHooks,Fe as computed,Er as createApp,mi as createStore,zr as createWevuComponent,Br as createWevuScopedSlotComponent,Rr as defineComponent,yi as defineStore,k as effect,w as effectScope,v as endBatch,Bt as getCurrentInstance,T as getCurrentScope,Ht as getCurrentSetupContext,Ge as getDeepWatchStrategy,be as getReactiveVersion,Wr as inject,Kr as injectGlobal,$e as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,ye as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,oi as mergeModels,ur as mountRuntimeInstance,o as nextTick,Qr as normalizeClass,Zr as normalizeStyle,Cn as onActivated,hn as onAddToFavorites,bn as onBeforeMount,vn as onBeforeUnmount,xn as onBeforeUpdate,wn as onDeactivated,dn as onError,Sn as onErrorCaptured,en as onHide,Jt as onLaunch,$t as onLoad,gn as onMounted,un as onMoved,Yt as onPageNotFound,on as onPageScroll,rn as onPullDownRefresh,an as onReachBottom,nn as onReady,ln as onResize,sn as onRouteDone,fn as onSaveExitState,E as onScopeDispose,Tn as onServerPrefetch,pn as onShareAppMessage,mn as onShareTimeline,Qt as onShow,cn as onTabItemTap,Zt as onThemeChange,Xt as onUnhandledRejection,tn as onUnload,yn as onUnmounted,_n as onUpdated,me as prelinkReactiveTree,Ur as provide,Gr as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,pr as registerApp,wr as registerComponent,F as removeMutationRecorder,Ft as resetWevuDefaults,ir as runSetupFunction,Vt as setCurrentInstance,Ut as setCurrentSetupContext,We as setDeepWatchStrategy,Pt as setWevuDefaults,ve as shallowReactive,Le as shallowRef,g as startBatch,x as stop,bi as storeToRefs,fr as teardownRuntimeInstance,K as toRaw,Be as toRef,Ve as toRefs,Me as toValue,ge as touchReactive,He as traverse,ze as triggerRef,je as unref,ei as useAttrs,ai as useBindModel,ii as useModel,ti as useSlots,ri as useTemplateRef,Ke as watch,qe as watchEffect};
1
+ const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function te(e){new Set(e).forEach(j)}const N=new Set;function ne(e){N.add(e)}function P(e){N.delete(e)}const F=new WeakMap,I=new WeakMap,L=new WeakMap,re=new WeakMap,R=new WeakSet,z=new WeakMap,ie=new WeakMap;function ae(e){let t=ie.get(e);return t||(t=new Set,ie.set(e,t)),t}function B(e,t){ae(e).add(t)}function V(e){var t;I.set(e,((t=I.get(e))==null?0:t)+1)}function oe(e){var t;return(t=I.get(e))==null?0:t}function se(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=re.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),V(e),n.push(e))}}function ce(e){let t=re.get(e);if(!t){R.delete(e),L.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){R.delete(e),L.set(e,{parent:n,key:r});return}R.add(e),L.delete(e)}function le(e,t,n){if(typeof n!=`string`){R.add(e),L.delete(e);return}if(N.size){var r;let n=(r=F.get(t))==null?t:r;B(n,t),B(n,e)}let i=re.get(e);i||(i=new Map,re.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),ce(e)}function ue(e,t,n){let r=re.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||re.delete(e),ce(e))}function de(e,t){if(t===e)return[];if(R.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(R.has(r))return;let t=L.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let H=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function U(e){return typeof e==`object`&&!!e}const W=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[H.RAW])==null?e:t}const pe=new WeakMap,K=new WeakMap,me=new WeakMap;function he(e,t){let n=G(e);z.set(n,``),B(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),z.set(e.current,e.path),B(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!U(a)||a[H.SKIP])continue;let t=G(a);if(F.has(t)||F.set(t,n),le(t,e.current,i),!R.has(t)){let n=e.path?`${e.path}.${i}`:i;z.set(t,n)}B(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function ge(e){let t=G(e),n=ie.get(t);if(!n){z.delete(t);return}for(let e of n)L.delete(e),re.delete(e),z.delete(e),R.delete(e),F.delete(e),I.delete(e);ie.delete(t)}function q(e){A(G(e),W)}const _e={get(e,t,n){if(t===H.IS_REACTIVE)return!0;if(t===H.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,W),V(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,W),V(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,W),Reflect.ownKeys(e)}};function ve(e){if(!U(e))return e;let t=me.get(e);if(t)return t;if(e[H.IS_REACTIVE])return e;let n=new Proxy(e,_e);return me.set(e,n),K.set(n,e),I.has(e)||I.set(e,0),n}function ye(e){let t=G(e);return me.has(t)}function be(e){return oe(G(e))}function xe(e,t,n){var r;if(!N.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=F.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=de(i,e);if(!o){let r=new Set,o=re.get(e);if(o)for(let[e,t]of o){var s;let n=z.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=de(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of N)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of N)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of N)e({root:i,kind:a,op:n,path:d})}const Se={get(e,t,n){if(t===H.IS_REACTIVE)return!0;if(t===H.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),U(r)){var i,a;if(r[H.SKIP])return r;let n=(i=F.get(e))==null?e:i,o=(a=r==null?void 0:r[H.RAW])==null?r:a;F.has(o)||F.set(o,n),le(o,e,t);let s=z.get(e);if(N.size&&typeof t==`string`&&s!=null&&!R.has(o)){let e=s?`${s}.${t}`:t;z.set(o,e)}return Ce(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=U(o)?(c=o==null?void 0:o[H.RAW])==null?o:c:void 0;if(r&&ue(r,e,t),U(n)&&!n[H.SKIP]){var l,u;let r=(l=F.get(e))==null?e:l,i=(u=n==null?void 0:n[H.RAW])==null?n:u;F.has(i)||F.set(i,r),le(i,e,t);let a=z.get(e);if(N.size&&typeof t==`string`&&a!=null&&!R.has(i)){let e=a?`${a}.${t}`:t;z.set(i,e)}}M(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&M(e,`length`),M(e,W),V(e),se(e);let s=F.get(e);s&&s!==e&&(M(s,W),V(s)),xe(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=U(r)?(a=r==null?void 0:r[H.RAW])==null?r:a:void 0;n&&ue(n,e,t),M(e,t),M(e,W),V(e),se(e);let i=F.get(e);i&&i!==e&&(M(i,W),V(i)),xe(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,W),Reflect.ownKeys(e)}};function Ce(e){if(!U(e))return e;let t=pe.get(e);if(t)return t;if(e[H.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),K.set(n,e),I.has(e)||I.set(e,0),F.has(e)||F.set(e,e),n}function J(e){return!!(e&&e[H.IS_REACTIVE])}function we(e){return U(e)?Ce(e):e}function Te(e){return U(e)&&Object.defineProperty(e,H.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return U(e)&&H.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&te(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&te(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Pe(e,t){return Te(new Ne(e,t))}function Fe(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return U(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){te(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!U(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[H.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>Ue===`version`&&J(e)?(q(e),e):He(e,m)):Ue===`version`&&J(t)?(q(t),t):He(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function qe(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}function Xe(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return Oe(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function Ze(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=Xe({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}return Reflect.get(e,n,r)},set(e,t,n,r){return typeof t==`string`&&c[t]?(Je(l,t,n),!0):Reflect.set(e,t,n,r)},has(e,t){return typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t))?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Object.keys(s).forEach(e=>t.add(e)),Object.keys(c).forEach(e=>t.add(e)),Array.from(t)},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(c[t])return{configurable:!0,enumerable:!0,get(){return c[t].value},set(e){Je(l,t,e)}};if(Object.prototype.hasOwnProperty.call(s,t))return{configurable:!0,enumerable:!1,value:s[t]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(m,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(m));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(m);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(m);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:m,touchSetupMethodsVersion(){p.value+=1}}}const Qe=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,Qe,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function $e(e){return typeof e==`object`&&!!e&&e[Qe]===!0}function et(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function tt(e,t=new WeakMap,n){var r,i;let a=je(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if($e(a))return;let o=J(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=be(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([tt(r,t),tt(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(tt(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>tt(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=tt(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:be(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=tt(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:be(o),value:u}),u}function nt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function rt(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function it(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?nt(e,t,it):et(e)&&et(t)?rt(e,t,it):!1}function at(e){return e===void 0?null:e}function ot(e,t,n,r){if(!it(e,t)){if(et(e)&&et(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=at(t[i]);continue}ot(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){nt(e,t,it)||(r[n]=at(t));return}r[n]=at(t)}}function st(e,t){let n={};for(let r of Object.keys(t))ot(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function ct(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function lt(e,t,n){if(t<=0)return t+1;if(e===null)return 4;let r=typeof e;if(r===`string`)return 2+e.length;if(r===`number`)return Number.isFinite(e)?String(e).length:4;if(r===`boolean`)return e?4:5;if(r===`undefined`||r===`function`||r===`symbol`||r!==`object`||n.has(e))return 4;if(n.add(e),Array.isArray(e)){let r=2;for(let i=0;i<e.length;i++)if(i&&(r+=1),r+=lt(e[i],t-r,n),r>t)return r;return r}let i=2;for(let[r,a]of Object.entries(e))if(i>2&&(i+=1),i+=2+r.length+1,i+=lt(a,t-i,n),i>t)return i;return i}function ut(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=lt(e,n+1,new WeakSet);if(i>n)return{fallback:!0,estimatedBytes:i,bytes:void 0};if(i>=n*.85&&r>2)try{let t=JSON.stringify(e).length;return{fallback:t>n,estimatedBytes:i,bytes:t}}catch(e){return{fallback:!1,estimatedBytes:i,bytes:void 0}}return{fallback:!1,estimatedBytes:i,bytes:void 0}}function dt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=lt(e,1/0,new WeakSet);return h.set(e,n),n}return lt(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ft(e){return e===void 0?null:e}function pt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function mt(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!pt(e)||!pt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function ht(e,t,n,r){if(Object.is(e,t))return!0;if(n<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!ht(e[i],t[i],n-1,r))return!1;return!0}if(!pt(e)||!pt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!ht(e[a],t[a],n-1,r))return!1;return!0}function gt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function _t(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=tt(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=tt(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function vt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),ee=new Map(M);b.clear();let te=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},N=e=>{if(O.has(e))return O.get(e);let t=ft(tt(te(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=N(e),ee.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=N(e)}let ne=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),ne=t.length;for(let r of t){if(!l(r))continue;let t=tt(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?ht(i,t,o,{keys:s}):a===`shallow`?mt(i,t):Object.is(i,t))||(e[r]=ft(t),C[r]=t)}Object.assign(k,e)}let P=ct(k),F=0;if(f){let e=dt({input:P,entryMap:ee,getPlainByPath:N,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});F=e.merged,P=ct(e.out)}let I=ut(P,d),L=I.fallback;if(T({mode:L?`diff`:`patch`,reason:L?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(P).length,mergedSiblingParents:F||void 0,computedDirtyKeys:ne||void 0,estimatedBytes:I.estimatedBytes,bytes:I.bytes}),L){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(P).length){for(let[e,t]of Object.entries(P)){let n=ee.get(e);n?gt(S,e,t,n.kind===`array`?`set`:n.op):gt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(P);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(P).length})}}function yt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},ee=()=>_t({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),te=(e=`diff`)=>{let t=ee(),o=st(E,t);if(E=t,O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?vt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:M,runDiffUpdate:te}):te(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?ee():{...E},getLatestSnapshot:()=>E}}function bt(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function xt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function St(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Ct(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];(r[n]==null||typeof r[n]!=`object`)&&(r[n]={}),r=r[n]}r[t[t.length-1]]=n}function wt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Ct(e[a],o,i)}function Tt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function Et(e){return Ye(e)}function Dt(e,t,n,r){return(i,a)=>{let o=St(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Tt(e,o),c=e=>{wt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:Et,formatter:e=>e,...a};return{get value(){return s()},set value(e){c(e)},update(e){c(e)},model(e){let t={...l,...e},n=`on${xt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const Ot=`__wevuDefaultsScope`;let kt={};function At(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function jt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=At(e.setData),i=At(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=At(e.options),o=At(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Mt(e,t){return jt(e,t)}function Nt(e,t){return{app:jt(e.app,t.app),component:jt(e.component,t.component)}}function Pt(e){kt=Nt(kt,e)}function Ft(){kt={}}function It(e){return Mt(kt.app,e)}function Lt(e){return Mt(kt.component,e)}let Rt,zt;function Bt(){return Rt}function Vt(e){Rt=e}function Ht(){return zt}function Ut(e){zt=e}function Z(e){if(!Rt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Rt}function Wt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Wt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Gt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Kt(e){var t;let n=typeof wx<`u`?wx:void 0;if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function qt(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function Jt(e){Q(Z(`onLaunch`),`onLaunch`,e)}function Yt(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function Xt(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function Zt(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function Qt(e){Q(Z(`onShow`),`onShow`,e)}function $t(e){Q(Z(`onLoad`),`onLoad`,e)}function en(e){Q(Z(`onHide`),`onHide`,e)}function tn(e){Q(Z(`onUnload`),`onUnload`,e)}function nn(e){Q(Z(`onReady`),`onReady`,e)}function rn(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function an(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function on(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function sn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function cn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function ln(e){Q(Z(`onResize`),`onResize`,e)}function un(e){Q(Z(`onMoved`),`onMoved`,e)}function dn(e){Q(Z(`onError`),`onError`,e)}function fn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function pn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Gt(t,`onShareAppMessage`),Kt(t)}function mn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Gt(t,`onShareTimeline`),Kt(t)}function hn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Gt(t,`onAddToFavorites`)}function gn(e){Q(Z(`onMounted`),`onReady`,e)}function _n(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function vn(e){Z(`onBeforeUnmount`),e()}function yn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function bn(e){Z(`onBeforeMount`),e()}function xn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function Sn(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function Cn(e){Q(Z(`onActivated`),`onShow`,e)}function wn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Tn(e){Z(`onServerPrefetch`)}function En(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Dn(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function On(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function kn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function An(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function jn(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=c==null?void 0:c.wvInlineId;if(l&&r){let t=r[l];if(t&&typeof t.fn==`function`){let r={},i=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<i.length;e+=1){let t=i[e];r[t]=c==null?void 0:c[`wvS${e}`]}let a=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<a.length;e+=1){let t=a[e],n=On(c==null?void 0:c[`wvI${e}`]);n!==void 0&&(r[t]=n)}let o=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<i.length;t+=1){let a=i[t],s=o[t];try{let t;if(typeof s==`function`)t=s(e,r,n);else if(s&&typeof s==`object`&&s.type===`for-item`){let n=r[s.indexKey],i=kn(e,s.path);t=i==null?void 0:i[n]}else continue;t!==void 0&&(r[a]=An(t))}catch(e){}}let s=t.fn(e,r,n);return typeof s==`function`?s.call(e,n):s}}let u=typeof t==`string`?t:void 0;if(!u)return;let d=c==null?void 0:c.wvArgs,f=[];if(Array.isArray(d))f=d;else if(typeof d==`string`)try{f=JSON.parse(d)}catch(e){try{f=JSON.parse(Dn(d))}catch(e){f=[]}}Array.isArray(f)||(f=[]);let p=f.map(e=>e===`$event`?n:e),m=e==null?void 0:e[u];if(typeof m==`function`)return m.apply(e,p)}const Mn=new Map;let Nn=0;function Pn(){return Nn+=1,`wv${Nn}`}function Fn(e,t,n){var r;let i=(r=Mn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Mn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function In(e){Mn.delete(e)}function Ln(e,t){var n;let r=(n=Mn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Mn.set(e,r),()=>{let n=Mn.get(e);n&&n.subscribers.delete(t)}}function Rn(e){var t;return(t=Mn.get(e))==null?void 0:t.proxy}function zn(e){var t;return(t=Mn.get(e))==null?void 0:t.snapshot}function Bn(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Fn(n,i,t.proxy)}function Vn(e){return e.kind===`component`}function Hn(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Un(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=Hn(t);try{Object.defineProperty(e,`__wevuExposeProxy`,{value:r,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(e,`__wevuExposeRaw`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuExposeProxy=r,e.__wevuExposeRaw=t}return r}function Wn(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function Gn(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?Un(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function Kn(e){return e.__wevuTemplateRefMap}function qn(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Jn(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Yn(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function Xn(e){let t=e;return t&&typeof t.createSelectorQuery==`function`?t.createSelectorQuery():typeof wx<`u`&&typeof wx.createSelectorQuery==`function`?wx.createSelectorQuery().in(t):null}function Zn(e,t,n,r,i){let a=Xn(e);return a?(r(n.multiple?a.selectAll(t):a.select(t)),new Promise(e=>{a.exec(t=>{var r;let a=Array.isArray(t)?t[0]:null;if(n.index!=null&&Array.isArray(a)){var o;a=(o=a[n.index])==null?null:o}if(i){var s;i((s=a)==null?null:s)}e((r=a)==null?null:r)})})):(i&&i(null),Promise.resolve(null))}function Qn(e,t,n){return X({selector:t,boundingClientRect:r=>Zn(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Zn(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Zn(e,t,n,e=>e.fields(r),i),node:r=>Zn(e,t,n,e=>e.node(),r)})}function $n(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>Wn(Qn(e,t.selector,{multiple:!0,index:r}),Gn(n))))}return X([])}let r=Qn(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Wn(r,Gn(n.selectComponent(t.selector))):r}function er(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>Qn(e,t.selector,{multiple:!0,index:r}))):n?Qn(e,t.selector,{multiple:!1}):null}function tr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Kn(e),i=n.filter(e=>!Vn(e)),a=n.filter(e=>Vn(e)).map(t=>({binding:t,value:$n(e,t)})),o=n=>{var i,a;let o=Yn(e),s=new Map,c=new Set,l=(i=(a=e.__wevu)==null?void 0:a.proxy)==null?e:i;n.forEach(t=>{let n=t.binding,r=t.value,i=Jn(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,qn(r,e,n)}for(let e of Object.keys(o))c.has(e)||delete o[e];t==null||t()};if(!i.length){o(a);return}let s=Xn(e);if(!s){o(a);return}let c=[];for(let e of i)(e.inFor?s.selectAll(e.selector):s.select(e.selector)).boundingClientRect(),c.push({binding:e});s.exec(t=>{let n=c.map((n,r)=>{let i=Array.isArray(t)?t[r]:null;return{binding:n.binding,value:er(e,n.binding,i)}});o([...a,...n])})}function nr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,tr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function rr(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=Yn(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Kn(e);for(let t of r){let n=Jn(e,t),r=t.inFor?X([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,qn(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function ir(e,t,n){var r;if(typeof e!=`function`)return;let i=(r=n==null?void 0:n.runtime)==null?{methods:Object.create(null),state:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function ar(e,t,n){if(typeof e==`function`)return{handler:e.bind(t.proxy),options:{}};if(typeof e==`string`){var r,i;let a=(r=(i=t.methods)==null?void 0:i[e])==null?n[e]:r;return typeof a==`function`?{handler:a.bind(t.proxy),options:{}}:void 0}if(!e||typeof e!=`object`)return;let a=ar(e.handler,t,n);if(!a)return;let o={...a.options};return e.immediate!==void 0&&(o.immediate=e.immediate),e.deep!==void 0&&(o.deep=e.deep),{handler:a.handler,options:o}}function or(e,t){let n=t.split(`.`).map(e=>e.trim()).filter(Boolean);return n.length?()=>{let t=e;for(let e of n){if(t==null)return t;t=t[e]}return t}:()=>e}function sr(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=ar(o,e,n);if(!t)continue;let s=or(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function cr(){return Object.freeze(Object.create(null))}function lr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function ur(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function dr(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function fr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;let p=Pn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}if(typeof e.setData==`function`)return e.setData(r)}};return r.__wevu_enableSetData=()=>{if(n=!0,t&&Object.keys(t).length&&typeof e.setData==`function`){let n=t;t=void 0,e.setData(n)}},r})(e):{setData(t){if(typeof e.setData==`function`)return e.setData(t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Fn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),nr(e),n}},v=t.mount({..._});h=v;let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o,x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>lr()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,Bn(e,T,p),n){let t=sr(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ve({});dr(i,t),b&&typeof b==`object`&&ur(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ve(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:e,emit:(t,n,r)=>{typeof e.triggerEvent==`function`&&e.triggerEvent(t,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:cr()};Vt(e),Ut(c);try{let e=ir(r,i,c),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Ut(void 0),Vt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function pr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function mr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&In(n),rr(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function hr(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return jn((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){fr(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function gr(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=typeof s==`function`||!!t.enableOnTabItemTap,_=typeof c==`function`||!!t.enableOnResize,v=typeof u==`function`||!!t.enableOnShareTimeline,y=typeof l==`function`||!!t.enableOnShareAppMessage,b=typeof d==`function`||!!t.enableOnAddToFavorites,x=typeof n==`function`||!!t.enableOnSaveExitState,S=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:y,enableOnShareTimeline:v,enableOnAddToFavorites:b,enableOnSaveExitState:x,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:S,effectiveOnReachBottom:typeof i==`function`?i:S,effectiveOnPageScroll:typeof a==`function`?a:S,effectiveOnRouteDone:typeof o==`function`?o:S,effectiveOnTabItemTap:typeof s==`function`?s:S,effectiveOnResize:typeof c==`function`?c:S,effectiveOnShareAppMessage:typeof l==`function`?l:S,effectiveOnShareTimeline:typeof u==`function`?u:S,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let _r=!1,vr;function yr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function br(){if(_r)return;_r=!0;let e=typeof wx<`u`?wx:void 0;if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return vr&&$(vr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return vr&&$(vr,`onPageScroll`,[e==null?{}:e]),r})}function xr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=typeof wx<`u`?wx:void 0;if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function Sr(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:h,enableOnResize:g,enableOnShareAppMessage:_,enableOnShareTimeline:v,enableOnAddToFavorites:y,effectiveOnSaveExitState:b,effectiveOnPullDownRefresh:x,effectiveOnReachBottom:S,effectiveOnPageScroll:C,effectiveOnRouteDone:w,effectiveOnTabItemTap:T,effectiveOnResize:E,effectiveOnShareAppMessage:D,effectiveOnShareTimeline:O,effectiveOnAddToFavorites:k,hasHook:A}=e,j={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,fr(this,t,n,r),pr(this),l&&xr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&vr===this&&(vr=void 0),mr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(br(),vr=this,this.__wevuOnLoadCalled||j.onLoad.call(this,yr(this)),xr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e);if(l&&m&&this.__wevuReadyCalled&&!this.__wevuRouteDoneCalled){var t;return(t=j.onRouteDone)==null?void 0:t.call(this)}},onHide(...e){if(l&&vr===this&&(vr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||j.onLoad.call(this,yr(this)),xr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,nr(this,()=>{if($(this,`onReady`,e),typeof c==`function`&&c.apply(this,e),l&&m&&!this.__wevuRouteDoneCalled){var t;(t=j.onRouteDone)==null||t.call(this)}});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(j.onSaveExitState=function(...e){let t=qt(this,`onSaveExitState`,e);return t===void 0?b.apply(this,e):t}),d&&(j.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!A(this,`onPullDownRefresh`))return x.apply(this,e)}),f&&(j.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!A(this,`onReachBottom`))return S.apply(this,e)}),p&&(j.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!A(this,`onPageScroll`))return C.apply(this,e)}),m&&(j.onRouteDone=function(...e){if(this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!A(this,`onRouteDone`))return w.apply(this,e)}),h&&(j.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!A(this,`onTabItemTap`))return T.apply(this,e)}),g&&(j.onResize=function(...e){if($(this,`onResize`,e),!A(this,`onResize`))return E.apply(this,e)}),_&&(j.onShareAppMessage=function(...e){let t=qt(this,`onShareAppMessage`,e);return t===void 0?D.apply(this,e):t}),v&&(j.onShareTimeline=function(...e){let t=qt(this,`onShareTimeline`,e);return t===void 0?O.apply(this,e):t}),y&&(j.onAddToFavorites=function(...e){let t=qt(this,`onAddToFavorites`,e);return t===void 0?k.apply(this,e):t}),j}function Cr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return jn((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Ye(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];if(o&&(a=o.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?a:e}return a}}return{finalMethods:r}}function wr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Fn(r,i,n.proxy)}function Tr(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){wr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}wr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}wr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,wr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function Er(e,t,n,r,i){var a,o;let{methods:s={},lifetimes:c={},pageLifetimes:l={},options:u={},...d}=i,f=d.onLoad,p=d.onUnload,m=d.onShow,h=d.onHide,g=d.onReady,_=d.onSaveExitState,v=d.onPullDownRefresh,y=d.onReachBottom,b=d.onPageScroll,x=d.onRouteDone,S=d.onTabItemTap,C=d.onResize,w=d.onShareAppMessage,T=d.onShareTimeline,E=d.onAddToFavorites,D=(a=d.features)==null?{}:a,O=!!d.__wevu_isPage||Object.keys(D==null?{}:D).length>0,k={...d},A=k.__wevuTemplateRefs;delete k.__wevuTemplateRefs;let j=k.observers,M=k.setupLifecycle===`created`?`created`:`attached`;delete k.setupLifecycle;let ee=k.created;delete k.features,delete k.created,delete k.onLoad,delete k.onUnload,delete k.onShow,delete k.onHide,delete k.onReady;let{enableOnPullDownRefresh:te,enableOnReachBottom:N,enableOnPageScroll:ne,enableOnRouteDone:P,enableOnTabItemTap:F,enableOnResize:I,enableOnShareAppMessage:L,enableOnShareTimeline:re,enableOnAddToFavorites:R,enableOnSaveExitState:z,effectiveOnSaveExitState:ie,effectiveOnPullDownRefresh:ae,effectiveOnReachBottom:B,effectiveOnPageScroll:V,effectiveOnRouteDone:oe,effectiveOnTabItemTap:se,effectiveOnResize:ce,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de}=gr({features:D,userOnSaveExitState:_,userOnPullDownRefresh:v,userOnReachBottom:y,userOnPageScroll:b,userOnRouteDone:x,userOnTabItemTap:S,userOnResize:C,userOnShareAppMessage:w,userOnShareTimeline:T,userOnAddToFavorites:E}),H=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=k.export;k.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let U={multipleSlots:(o=u.multipleSlots)==null?!0:o,...u},{attachWevuPropKeys:W,syncWevuPropsFromInstance:fe,finalObservers:G}=Tr({restOptions:k,userObservers:j}),{finalMethods:pe}=Cr({userMethods:s,runtimeMethods:t}),K=Sr({runtimeApp:e,watch:n,setup:r,userOnLoad:f,userOnUnload:p,userOnShow:m,userOnHide:h,userOnReady:g,isPage:O,enableOnSaveExitState:z,enableOnPullDownRefresh:te,enableOnReachBottom:N,enableOnPageScroll:ne,enableOnRouteDone:P,enableOnTabItemTap:F,enableOnResize:I,enableOnShareAppMessage:L,enableOnShareTimeline:re,enableOnAddToFavorites:R,effectiveOnSaveExitState:ie,effectiveOnPullDownRefresh:ae,effectiveOnReachBottom:B,effectiveOnPageScroll:V,effectiveOnRouteDone:oe,effectiveOnTabItemTap:se,effectiveOnResize:ce,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de,hasHook:H}),me={};if(O)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=K[e];typeof t==`function`&&typeof pe[e]!=`function`&&(me[e]=function(...e){return t.apply(this,e)})}Component({...k,...K,observers:G,lifetimes:{...c,created:function(...t){Array.isArray(A)&&A.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:A,configurable:!0,enumerable:!1,writable:!1}),W(this),M===`created`&&(fr(this,e,n,r,{deferSetData:!0}),fe(this)),typeof ee==`function`&&ee.apply(this,t),typeof c.created==`function`&&c.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof c.moved==`function`&&c.moved.apply(this,e)},attached:function(...t){Array.isArray(A)&&A.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:A,configurable:!0,enumerable:!1,writable:!1}),W(this),(M!==`created`||!this.__wevu)&&fr(this,e,n,r),fe(this),M===`created`&&pr(this),typeof c.attached==`function`&&c.attached.apply(this,t)},ready:function(...e){if(O&&typeof K.onReady==`function`){K.onReady.call(this,...e),typeof c.ready==`function`&&c.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,fe(this),nr(this,()=>{$(this,`onReady`,e),typeof c.ready==`function`&&c.ready.apply(this,e)});return}typeof c.ready==`function`&&c.ready.apply(this,e)},detached:function(...e){if(O&&typeof K.onUnload==`function`){K.onUnload.call(this,...e),typeof c.detached==`function`&&c.detached.apply(this,e);return}rr(this),mr(this),typeof c.detached==`function`&&c.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof c.error==`function`&&c.error.apply(this,e)}},pageLifetimes:{...l,show:function(...e){if(O&&typeof K.onShow==`function`){K.onShow.call(this,...e),typeof l.show==`function`&&l.show.apply(this,e);return}$(this,`onShow`,e),typeof l.show==`function`&&l.show.apply(this,e)},hide:function(...e){if(O&&typeof K.onHide==`function`){K.onHide.call(this,...e),typeof l.hide==`function`&&l.hide.apply(this,e);return}$(this,`onHide`,e),typeof l.hide==`function`&&l.hide.apply(this,e)},resize:function(...e){if(O&&typeof K.onResize==`function`){K.onResize.call(this,...e),typeof l.resize==`function`&&l.resize.apply(this,e);return}$(this,`onResize`,e),typeof l.resize==`function`&&l.resize.apply(this,e)}},methods:{...me,...pe},options:U})}function Dr(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function Or(e){let{[Ot]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[Ot]===`component`?e:It(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ve(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:te}=bt(o),{boundMethods:N,computedRefs:F,computedSetters:I,dirtyComputedKeys:L,computedProxy:re,publicInstance:R,touchSetupMethodsVersion:z}=Ze({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ie=e==null?{setData:()=>{}}:e,ae=G(r),B,V=yt({state:r,computedRefs:F,dirtyComputedKeys:L,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ie,shouldIncludeKey:te,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>B==null?void 0:B(),isMounted:()=>c}),oe=()=>V.job(ae),se=e=>V.mutationRecorder(e,ae);B=k(()=>{q(r);let e=r.__wevuProps;J(e)&&q(e);let t=r.__wevuAttrs;J(t)&&q(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&q(e)}else J(t)&&q(t)})},{lazy:!0,scheduler:()=>a(oe)}),oe(),l.push(Dr(()=>x(B))),m===`patch`&&(he(r,{shouldIncludeTopKey:te,maxDepth:T,maxKeys:E}),ne(se),l.push(Dr(()=>P(se))),l.push(Dr(()=>ge(r))));function ce(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),Dr(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}return{get state(){return r},get proxy(){return R},get methods(){return N},get computed(){return re},get adapter(){return ie},bindModel:Dt(R,r,F,I),watch:ce,snapshot:()=>V.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)},__wevu_touchSetupMethodsVersion:z}},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=typeof globalThis<`u`?globalThis:void 0,t=typeof wx<`u`?wx:e==null?void 0:e.my,n=(t==null?void 0:t.__wxConfig)!==void 0,r=`__wevuAppRegistered`;n&&t&&t[r]||(n&&t&&(t[r]=!0),hr(m,i==null?{}:i,s,c,l))}return m}function kr(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function Ar(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function jr(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvArgs)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvArgs:t,a=[];if(Array.isArray(i))a=i;else if(typeof i==`string`)try{a=JSON.parse(i)}catch(e){try{a=JSON.parse(Ar(i))}catch(e){a=[]}}return Array.isArray(a)||(a=[]),a.map(t=>t===`$event`?e:t)}function Mr(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function Nr(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=Mr(i),s=Mr(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function Pr(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){Nr(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){Nr(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(Nr(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Ln(n,r);let i=zn(n);i&&r(i,Rn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a,o,s;let c=this.__wvOwnerProxy,l=(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map,u=jn(c,(n=e==null||(r=e.currentTarget)==null||(r=r.dataset)==null?void 0:r.wvHandler)==null?e==null||(i=e.target)==null||(i=i.dataset)==null?void 0:i.wvHandler:n,e,l);if(u!==void 0)return u;if(!c)return;let d=(a=e==null||(o=e.currentTarget)==null||(o=o.dataset)==null?void 0:o.wvHandler)==null?e==null||(s=e.target)==null||(s=s.dataset)==null?void 0:s.wvHandler:a;if(typeof d!=`string`||!d)return;let f=c==null?void 0:c[d];if(typeof f!=`function`)return;let p=jr(e);return f.apply(c,p)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function Fr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ir(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:Fr(e)}function Lr(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!Ir(i))try{Object.defineProperty(c,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){s[r]=i}else s[r]=i}}),e){var u,d;if(e.methods=(u=e.methods)==null?o:u,e.state=(d=e.state)==null?s:d,l){var f;(f=e.__wevu_touchSetupMethodsVersion)==null||f.call(e)}}}let Rr;function zr(){var e;let t=typeof globalThis<`u`,n=t?globalThis:void 0,r=typeof wx<`u`?wx:(e=n==null?void 0:n.my)==null?t?globalThis:void 0:e;if(!r)return;let i=r;!i.__weapp_vite_createScopedSlotComponent&&Rr&&(i.__weapp_vite_createScopedSlotComponent=Rr)}function Br(e){zr();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Lt(e),u=Or({data:n,computed:r,methods:i,setData:a,[Ot]:`component`}),d=(e,t)=>{let n=ir(s,e,t);return n&&t&&Lr(t.runtime,t.instance,n),n},f=kr(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return Er(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function Vr(e){zr();let{properties:t,props:n,...r}=e;Br(kr(r,n,t))}function Hr(e){Vr(Pr(e))}Rr=Hr,zr();const Ur=Symbol(`wevu.provideScope`),Wr=new Map;function Gr(e,t){let n=Bt();if(n){let r=n[Ur];r||(r=new Map,n[Ur]=r),r.set(e,t)}else Wr.set(e,t)}function Kr(e,t){let n=Bt();if(n){let t=n;for(;t;){let n=t[Ur];if(n&&n.has(e))return n.get(e);t=null}}if(Wr.has(e))return Wr.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function qr(e,t){Wr.set(e,t)}function Jr(e,t){if(Wr.has(e))return Wr.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const Yr=/\B([A-Z])/g;function Xr(e){return e?e.startsWith(`--`)?e:e.replace(Yr,`-$1`).toLowerCase():``}function Zr(e,t){if(!t)return e;if(!e)return t;let n=e;n.endsWith(`;`)||(n+=`;`);let r=t.startsWith(`;`)?t.slice(1):t;return n+r}function Qr(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=Xr(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=Zr(t,`${i}:${n}`))}else t=Zr(t,`${i}:${r}`)}return t}function $r(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=$r(n);t&&(e=Zr(e,t))}return e}return typeof t==`object`?Qr(t):``}function ei(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=ei(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const ti=Object.freeze(Object.create(null));function ni(){var e;let t=Ht();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function ri(){var e;let t=Ht();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?ti:e}function ii(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function ai(e){let t=Bt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=ii(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}function oi(e,t){let n=Ht();if(!n)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let r=n.emit,i=`update:${t}`;return Pe({get:()=>e==null?void 0:e[t],set:e=>{r==null||r(i,e)}})}function si(e){let t=Bt();if(!(t!=null&&t.__wevu)||typeof t.__wevu.bindModel!=`function`)throw Error(`useBindModel() 必须在 setup() 的同步阶段调用`);let n=t.__wevu.bindModel.bind(t.__wevu),r=((t,r)=>e?n(t,{...e,...r}):n(t,r));return r.model=(e,t)=>r(e).model(t),r.value=(t,n)=>{var i;let a={...e,...n},o=(i=a==null?void 0:a.valueProp)==null?`value`:i;return r.model(t,n)[o]},r.on=(t,n)=>{var i;let a={...e,...n},o=`on${xt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function ci(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function li(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function ui(e){return typeof e==`object`&&!!e}function di(e){if(!ui(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function fi(e,t){for(let n in t)e[n]=t[n]}function pi(e){if(Array.isArray(e))return e.map(e=>pi(e));if(di(e)){let t={};for(let n in e)t[n]=pi(e[n]);return t}return e}function mi(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=pi(t)});return}if(ui(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){mi(i,r);continue}if(di(r)&&di(i)){mi(i,r);continue}e[n]=pi(r)}}}function hi(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&ui(e)&&(fi(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(fi(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(fi(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function gi(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return gi._instance=e,e}const _i=Object.prototype.hasOwnProperty;function vi(e){return Y(e)&&_i.call(e,`dep`)}function yi(e){return J(e)?pi(G(e)):vi(e)?pi(e.value):pi(e)}function bi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function xi(e,t){let n,r=!1,i=gi._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||Y(t)&&!vi(t)||o.set(e,yi(t))});let s=hi(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(vi(r)){r.value=pi(e);return}if(J(r)){mi(r,e);return}Y(r)||(n[t]=pi(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=bi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=li(n,e,t,s.actionSubs);return}if(vi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{vi(e)?e.value:q(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=Ce(u),f=pi(G(u)),p=()=>{},m=hi(e,d,e=>p(e),()=>{mi(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=bi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Fe(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=li(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(q(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function Si(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{ne as addMutationRecorder,y as batch,$ as callHookList,qt as callHookReturn,En as callUpdateHooks,Fe as computed,Or as createApp,gi as createStore,Vr as createWevuComponent,Hr as createWevuScopedSlotComponent,Br as defineComponent,xi as defineStore,k as effect,w as effectScope,v as endBatch,Bt as getCurrentInstance,T as getCurrentScope,Ht as getCurrentSetupContext,Ge as getDeepWatchStrategy,be as getReactiveVersion,Kr as inject,Jr as injectGlobal,$e as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,ye as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,ci as mergeModels,fr as mountRuntimeInstance,o as nextTick,ei as normalizeClass,$r as normalizeStyle,Cn as onActivated,hn as onAddToFavorites,bn as onBeforeMount,vn as onBeforeUnmount,xn as onBeforeUpdate,wn as onDeactivated,dn as onError,Sn as onErrorCaptured,en as onHide,Jt as onLaunch,$t as onLoad,gn as onMounted,un as onMoved,Yt as onPageNotFound,on as onPageScroll,rn as onPullDownRefresh,an as onReachBottom,nn as onReady,ln as onResize,sn as onRouteDone,fn as onSaveExitState,E as onScopeDispose,Tn as onServerPrefetch,pn as onShareAppMessage,mn as onShareTimeline,Qt as onShow,cn as onTabItemTap,Zt as onThemeChange,Xt as onUnhandledRejection,tn as onUnload,yn as onUnmounted,_n as onUpdated,he as prelinkReactiveTree,Gr as provide,qr as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,hr as registerApp,Er as registerComponent,P as removeMutationRecorder,Ft as resetWevuDefaults,ir as runSetupFunction,Vt as setCurrentInstance,Ut as setCurrentSetupContext,We as setDeepWatchStrategy,Pt as setWevuDefaults,ve as shallowReactive,Le as shallowRef,g as startBatch,x as stop,Si as storeToRefs,mr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,q as touchReactive,He as traverse,ze as triggerRef,je as unref,ni as useAttrs,si as useBindModel,oi as useModel,ri as useSlots,ai as useTemplateRef,Ke as watch,qe as watchEffect};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "6.6.6",
4
+ "version": "6.6.8",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "vue": "^3.5.28",
70
- "@wevu/compiler": "6.6.6"
70
+ "@wevu/compiler": "6.6.8"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "tsdown -w",