wevu 6.16.6 → 6.16.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import"./chunk-CbfVNrr-.mjs";import{A as e,C as t,D as n,M as r,N as i,P as a,a as o,b as s,d as c,g as l,h as u,i as d,j as f,k as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,v as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E}from"./store-C-7rPMM3.mjs";import{C as D,D as O,E as k,H as A,M as j,N as M,O as N,S as P,T as F,V as I,X as L,_t as R,at as z,b as ee,ct as te,dt as B,et as V,ft as H,it as U,k as ne,lt as re,mt as W,nt as G,ot as K,pt as ie,rt as ae,st as oe,tt as q,ut as se,w as ce,x as le,y as ue}from"./router-Cm3FUnTw.mjs";import{WEVU_ATTRS_KEY as de,WEVU_EFFECT_SCOPE_KEY as J,WEVU_EXPOSED_KEY as fe,WEVU_HOOKS_KEY as pe,WEVU_INLINE_HANDLER as me,WEVU_INLINE_MAP_KEY as Y,WEVU_IS_APP_INSTANCE_KEY as he,WEVU_LAYOUT_BRIDGE_PAGE_KEYS as ge,WEVU_LAYOUT_HOST_BRIDGE_KEY as _e,WEVU_MODEL_HANDLER as ve,WEVU_NATIVE_INSTANCE_KEY as X,WEVU_ON_BEFORE_UPDATE_HOOK as ye,WEVU_ON_LOAD_CALLED_KEY as be,WEVU_ON_UPDATED_HOOK as xe,WEVU_OWNER_HANDLER as Se,WEVU_PAGE_LAYOUT_NAME_KEY as Ce,WEVU_PAGE_LAYOUT_NONE as we,WEVU_PAGE_LAYOUT_PROPS_KEY as Te,WEVU_PAGE_LAYOUT_SETTER_KEY as Ee,WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY as De,WEVU_PARENT_INSTANCE_KEY as Oe,WEVU_PENDING_PROP_VALUES_KEY as ke,WEVU_PROPS_KEY as Z,WEVU_PROP_KEYS_KEY as Ae,WEVU_PUBLIC_RUNTIME_KEY as je,WEVU_READY_CALLED_KEY as Me,WEVU_RESERVED_METHOD_PREFIX as Ne,WEVU_ROUTE_DONE_CALLED_KEY as Pe,WEVU_ROUTE_DONE_IN_TICK_KEY as Fe,WEVU_RUNTIME_APP_KEY as Ie,WEVU_RUNTIME_KEY as Le,WEVU_SCOPED_SLOT_CREATOR_KEY as Re,WEVU_SETUP_CONTEXT_INSTANCE_KEY as ze,WEVU_SLOT_NAMES_PROP as Be,WEVU_SLOT_OWNER_ID_KEY as Ve,WEVU_SLOT_OWNER_ID_PROP as He,WEVU_SLOT_OWNER_KEY as Ue,WEVU_SLOT_PROPS_DATA_KEY as We,WEVU_SLOT_PROPS_KEY as Ge,WEVU_SLOT_SCOPE_KEY as Ke,WEVU_TEMPLATE_REFS_CALLBACKS_KEY as qe,WEVU_TEMPLATE_REFS_KEY as Je,WEVU_TEMPLATE_REFS_PENDING_KEY as Ye,WEVU_TEMPLATE_REF_MAP_KEY as Xe,WEVU_WATCH_STOPS_KEY as Ze}from"@weapp-core/constants";import{resolveMiniProgramPageKeys as Qe}from"@weapp-core/shared";import{wpi as $e}from"@wevu/api";function et(e,t){return x((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function tt(e){return g(e)&&typeof e.value!=`function`}function nt(e){if(g(e)){let t=e.dep;if(t){r(t);return}e.value=e.value}}function rt(e,t,n){let r=e[t];return g(r)?r:x((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function it(e){m(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=rt(e,n);return t}function at(e,t=1/0,n=new Map){if(t<=0||!S(e))return e;if(g(e))return at(e.value,t-1,n),e;if(e.__r_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=>at(e,i,n)),e;let a=m(e)&&t!==1/0?T(e):e;for(let t in a)at(e[t],i,n);return e}function ot(e){K(q(`onMounted`),`onReady`,e)}function st(e){K(q(`onUpdated`),xe,e)}function ct(e){q(`onBeforeUnmount`),e()}function lt(e){K(q(`onUnmounted`),`onUnload`,e)}function ut(e){q(`onBeforeMount`),e()}function dt(e){K(q(`onBeforeUpdate`),ye,e)}function ft(e){let t=q(`onErrorCaptured`);K(t,`onError`,n=>e(n,t,``))}function pt(e){K(q(`onActivated`),`onShow`,e)}function mt(e){K(q(`onDeactivated`),`onHide`,e)}function ht(e){q(`onServerPrefetch`)}function gt(e,t){G(e,t===`before`?ye:xe)}let _t=`version`;function vt(e){_t=e}function yt(){return _t}function bt(e){if(typeof e==`function`)return e();if(g(e))return e.value;if(m(e))return e;throw Error(`无效的 watch 源`)}function xt(e){let t=m(e),n=Array.isArray(e)&&!t,r;if(n){let t=e;r=()=>t.map(e=>bt(e))}else if(typeof e==`function`)r=e;else if(g(e))r=()=>e.value;else if(t)r=()=>e;else throw Error(`无效的 watch 源`);return{getter:r,isMultiSource:n,isReactiveSource:t}}function St(e,t,n,r,i){let a=n?t.some(e=>m(e)):r,o=i==null?a:i;if(!(o===!0||typeof o==`number`))return e;let s=typeof o==`number`?o:o?1/0:0;return()=>{let t=e(),r=yt();return n&&Array.isArray(t)?t.map(e=>r===`version`&&m(e)?(l(e),e):at(e,s)):r===`version`&&m(t)?(l(t),t):at(t,s)}}function Ct(e,t,n,r){if(r){r(e,n);return}if(t===`sync`){e();return}if(t===`post`){i(()=>a(e));return}n?e():a(e)}function wt(e,r,i={}){var a;let o=U(),s=xt(e),c=St(s.getter,e,s.isMultiSource,s.isReactiveSource,i.deep),l,u=e=>{l=e},d,f,m=!1,h=0,g=h,_,v=i.once?(e,t,n)=>{r(e,t,n),_()}:r,y=(a=i.flush)==null?`pre`:a,b=e=>{if(!f.active||m||e!==h)return;let t=f();l==null||l();let n=U();oe(o);try{v(t,d,u)}finally{oe(n)}d=t},x=()=>b(g),S=e=>{g=h,Ct(x,y,e,i.scheduler)};f=t(()=>c(),{scheduler:()=>{m||S(!1)},lazy:!0});let C=()=>{l==null||l(),l=void 0,p(f)};return _=C,_.stop=C,_.pause=()=>{m||(m=!0,h+=1)},_.resume=()=>{!m||!f.active||(m=!1,d=f())},i.immediate?b(h):d=f(),n(_),_}function Tt(e,r={}){var i;let a=U(),o,s=e=>{o=e},c,l=!1,u=0,d=u,f=(i=r.flush)==null?`pre`:i,m=e=>{!c.active||l||e!==u||c()},h=()=>m(d),g=e=>{d=u,Ct(h,f,e)};c=t(()=>{o==null||o(),o=void 0;let t=U();oe(a);try{e(s)}finally{oe(t)}},{lazy:!0,scheduler:()=>{l||g(!1)}}),g(!0);let _=()=>{o==null||o(),o=void 0,p(c)},v=_;return v.stop=_,v.pause=()=>{l||(l=!0,u+=1)},v.resume=()=>{!l||!c.active||(l=!1,g(!0))},n(v),v}function Et(e,t={}){return Tt(e,{...t,flush:`post`})}function Dt(e,t={}){return Tt(e,{...t,flush:`sync`})}const Ot=`6.16.6`;function kt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function At(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function jt(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Mt(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 Nt(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 Pt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])jt(n,a,i);else{let t=e[a];g(t)?t.value=i:e[a]=i}return}if(t[a]){jt(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Nt(e[a],o,i)}function Ft(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function It(e){return Mt(e)}function Lt(e,t,n,r){return(i,a)=>{let o=At(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ft(e,o),c=e=>{Pt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:It,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${kt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}function Rt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zt(e){return Array.isArray(e)||Rt(e)}function Bt(e){if(Array.isArray(e))return e;let t=[];for(let n of Object.keys(e)){let r=Object.getOwnPropertyDescriptor(e,n);!r||typeof r.get==`function`||t.push(r.value)}return t}function Vt(e,t=new WeakSet){return g(e)||m(e)?!0:!e||typeof e!=`object`||t.has(e)||(t.add(e),!zt(e))?!1:Bt(e).some(e=>Vt(e,t))}function Ht(e,t=new WeakSet){if(g(e)){let n=e.value;m(n)&&l(n),Ht(n,t);return}if(m(e)){l(e),Ht(T(e),t);return}!e||typeof e!=`object`||t.has(e)||!zt(e)||(t.add(e),Bt(e).forEach(e=>Ht(e,t)))}const Ut=`__wevu_native_bridge__`;function Wt(e){try{Object.defineProperty(e,Ut,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Ut]=!0}}function Gt(e){return typeof e==`function`&&!!e[Ut]}function Kt(n){let r=Object.create(null),i=Object.create(null),a=new Set;return{computedRefs:r,computedSetters:i,dirtyComputedKeys:a,createTrackedComputed:(r,i,o)=>{let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),e(u,`value`),s},set value(e){if(!o)throw Error(`计算属性是只读的`);o(e)}};return y(u),l=t(i,{lazy:!0,scheduler:()=>{c||(c=!0,n.setDataStrategy===`patch`&&n.includeComputed&&a.add(r),f(u,`value`))}}),u},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&r[t])return r[t].value},has(e,t){return typeof t==`string`&&!!r[t]},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&r[t])return{configurable:!0,enumerable:!0,value:r[t].value}}})}}function qt(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:f,computedProxy:p}=Kt({includeComputed:a,setDataStrategy:o}),m=d(0),h=(e,t)=>{let n=T(e),r=n[Le],i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Gt(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`createIntersectionObserver`)||a(n,`setData`)),s=n[X];if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},g=e=>{if(Q(s,e))return;let n=(...n)=>{let r=h(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Wt(n),s[e]=n},_=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(m.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return p;if(Q(s,n))return s[n];if(c[n])return c[n].value;if(Q(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=h(e,r);if(t&&Reflect.has(t,n)){let e=Reflect.get(t,n);return typeof e==`function`?e.bind(t):e}}return Reflect.get(e,n,r)},set(e,t,n,r){if(typeof t==`string`&&c[t])return jt(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=h(e,r);return i&&Reflect.has(i,t)?Reflect.set(i,t,n):Reflect.set(e,t,n,r)},has(e,t){if(t===`data`||typeof t==`string`&&(c[t]||Q(s,t)))return!0;let n=h(e,e);return n&&Reflect.has(n,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)),[...t]},getOwnPropertyDescriptor(e,n){if(Reflect.has(e,n))return Object.getOwnPropertyDescriptor(e,n);if(typeof n==`string`){if(n===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(c[n])return{configurable:!0,enumerable:!0,get(){return c[n].value},set(e){jt(l,n,e)}};if(Q(s,n))return{configurable:!0,enumerable:!1,value:s[n]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(_,e);return}e===Y&&t&&typeof t==`object`&&(s[e]=t)}),g(`triggerEvent`),g(`createSelectorQuery`),g(`createIntersectionObserver`),g(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=f(e,()=>t.call(_));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(_);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(_);a?(l[e]=a,c[e]=f(e,n,a)):c[e]=f(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:p,publicInstance:_,touchSetupMethodsVersion(){m.value+=1}}}function Jt(e){return e!==`patch`&&e!==`diff`}function Yt(e){if(e!==`off`)return t=>{if(e===`fallback`&&!Jt(t.reason))return;let n=typeof t.bytes==`number`?t.bytes:t.estimatedBytes,r=typeof n==`number`?`${n}B`:`unknown`,i=[`mode=${t.mode}`,`reason=${t.reason}`,`pending=${t.pendingPatchKeys}`,`keys=${t.payloadKeys}`,`bytes=${r}`];typeof t.mergedSiblingParents==`number`&&i.push(`mergedParents=${t.mergedSiblingParents}`),typeof t.computedDirtyKeys==`number`&&i.push(`computedDirty=${t.computedDirtyKeys}`);let a=`[wevu:setData] ${i.join(` `)}`;if(Jt(t.reason)){console.warn(a);return}console.info(a)}}const Xt=Symbol(`wevu.noSetData`);function $(e){return Object.defineProperty(e,Xt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function Zt(e){return typeof e==`object`&&!!e&&e[Xt]===!0}function Qt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function $t(e,t,n,r,i){let a=_(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(Zt(a))return;let o=m(a)?T(a):a,s=n&&(m(a)||!Vt(o))?n:void 0;if(r<=0||i.keys<=0)return o;if(s){let e=b(o),t=s.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([$t(r,t,void 0,1/0,{keys:1/0}),$t(n,t,void 0,1/0,{keys:1/0})])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push($t(n,t,void 0,1/0,{keys:1/0}))}),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=[...e];return t.set(o,n),n.map(e=>$t(e,t,void 0,1/0,{keys:1/0}))}let n=[...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=[];t.set(o,e);let a=r-1;for(let r=0;r<o.length;r+=1){let s=$t(o[r],t,n,a,i);e[r]=s===void 0?null:s}return s&&s.set(o,{version:b(o),value:e}),e}let c={};t.set(o,c);let l=r-1;for(let e of Object.keys(o)){if(--i.keys,i.keys<=0)break;let r=$t(o[e],t,n,l,i);r!==void 0&&(c[e]=r)}return s&&s.set(o,{version:b(o),value:c}),c}function en(e,t=new WeakMap,n){var r,i;let a=(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,o=(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;return $t(e,t,n==null?void 0:n.cache,a,o)}function tn(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 nn(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(!Q(t,i)||!n(e[i],t[i]))return!1;return!0}function rn(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?tn(e,t,rn):Qt(e)&&Qt(t)?nn(e,t,rn):!1}function an(e){return e===void 0?null:e}function on(e,t,n,r){if(!rn(e,t)){if(Qt(e)&&Qt(t)){for(let i of Object.keys(t)){if(!Q(e,i)){r[`${n}.${i}`]=an(t[i]);continue}on(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Q(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){tn(e,t,rn)||(r[n]=an(t));return}r[n]=an(t)}}function sn(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||on(e[n],t[n],n,r);for(let n of Object.keys(e))i!=null&&i.has(n)||Q(t,n)||(r[n]=null);return r}function cn(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n={},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 ln(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+=ln(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+=ln(a,t-i,n),i>t)return i;return i}function un(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ln(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 dn(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=[...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.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=ln(e,1/0,new WeakSet);return h.set(e,n),n}return ln(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Q(p,e))continue;let n=t.filter(e=>Q(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 fn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function pn(e){return e===void 0?null:e}function mn(e){if(Array.isArray(e))return e.map(e=>mn(e));if(!fn(e))return e;let t={};for(let n of Object.keys(e))t[n]=mn(e[n]);return t}function hn(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(!fn(e)||!fn(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(!Q(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function gn(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(!gn(e[i],t[i],n-1,r))return!1;return!0}if(!fn(e)||!fn(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||!Q(t,a)||!gn(e[a],t[a],n-1,r))return!1;return!0}function _n(e,t,n,r,i){var a;let o=(a=i==null?void 0:i.cloneValue)==null?!0:a,s=t.split(`.`).filter(Boolean);if(!s.length)return;let c=e;for(let e=0;e<s.length-1;e++){let t=s[e];(!Q(c,t)||c[t]==null||typeof c[t]!=`object`)&&(c[t]={}),c=c[t]}let l=s[s.length-1];if(r===`delete`)try{delete c[l]}catch(e){c[l]=null}else c[l]=o?mn(n):n}function vn(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l={},u=Number.isFinite(s)?{keys:s}:void 0,d=m(t)?T(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=en(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=en(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function yn(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=[...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 P=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},F=e=>{if(O.has(e))return O.get(e);let t=pn(en(P(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]=F(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]=F(e)}let I=0;if(i&&r.size){let e=Object.create(null),t=[...r];r.clear(),I=t.length;for(let r of t){if(!l(r))continue;let t=en(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?gn(i,t,o,{keys:s}):a===`shallow`?hn(i,t):Object.is(i,t))||(e[r]=pn(t),C[r]=mn(t))}Object.assign(k,e)}let L=cn(k),R=0;if(f){let e=dn({input:L,entryMap:N,getPlainByPath:F,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});R=e.merged,L=cn(e.out)}let z=un(L,d),ee=z.fallback;if(T({mode:ee?`diff`:`patch`,reason:ee?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length,mergedSiblingParents:R||void 0,computedDirtyKeys:I||void 0,estimatedBytes:z.estimatedBytes,bytes:z.bytes}),ee){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(L).length){for(let[e,t]of Object.entries(L)){let n=N.get(e);n?_n(S,e,t,n.kind===`array`?`set`:n.op,{cloneValue:!1}):_n(S,e,t,`set`,{cloneValue:!1})}if(typeof c.setData==`function`){let e=c.setData(L);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length})}}function bn(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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,debug:C,debugWhen:w,debugSampleRate:E,runTracker:D,isMounted:O}=e,k=new WeakMap,A={},j=Object.create(null),M=Object.create(null),N=Object.create(null),P={value:a===`patch`},F=new Map,I=new Set,L=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},R=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?e.every((e,n)=>R(e,t[n])):!1;if(L(e)&&L(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>Q(t,n)&&R(e[n],t[n])):!1}return!1},z=e=>{let t=g(e)?e.value:e;if(typeof t!=`object`||!t)return t;if(!m(t)&&Vt(t))return{snapshot:en(t,new WeakMap,{maxDepth:x,maxKeys:S})};let n=m(t)?T(t):t;return{raw:n,version:b(n)}},ee=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!Q(e,`raw`)||!Q(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&Q(e,`snapshot`)&&Q(t,`snapshot`)?R(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,te=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=g(i)?i.value:i;!a||typeof a!=`object`||T(a)===e&&n.push(r)}return n},B=e=>{if(!C)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(w===`fallback`&&!t)&&!(E<1&&Math.random()>E))try{C(e)}catch(e){}},V=()=>vn({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:k,toPlainMaxDepth:x,toPlainMaxKeys:S}),H=()=>{let e=m(t)?T(t):t,r={...A},a=new WeakMap,o=new Set,s=new Set,c=new Set;for(let t of Object.keys(e)){if(!u(t))continue;o.add(t);let n=z(e[t]),i=M[t];i&&n&&typeof i==`object`&&typeof n==`object`&&Q(i,`raw`)&&Q(n,`raw`)&&Array.isArray(i.raw)&&Array.isArray(n.raw)&&i.raw!==n.raw&&c.add(t),(!ee(i,n)||!Q(A,t))&&(r[t]=en(e[t],a,{cache:k,maxDepth:x,maxKeys:S})),M[t]=n}for(let e of Object.keys(M))o.has(e)||(delete M[e],(!i||!Q(n,e))&&delete r[e]);if(!i){for(let e of Object.keys(N))delete N[e];return{snapshot:r,replacedTopLevelKeys:c}}for(let e of Object.keys(n)){if(!u(e))continue;s.add(e);let t=n[e].value,i=z(t);(!ee(N[e],i)||!Q(A,e))&&(r[e]=en(t,a,{cache:k,maxDepth:x,maxKeys:S})),N[e]=i}for(let t of Object.keys(N))s.has(t)||(delete N[t],(!Q(e,t)||!u(t))&&delete r[t]);return{snapshot:r,replacedTopLevelKeys:c}},U=(e=`diff`)=>{var t;let o=a===`diff`?H():void 0,s=(t=o==null?void 0:o.snapshot)==null?V():t,c=o?(()=>{let e={};for(let t of o.replacedTopLevelKeys)e[t]=s[t];return{...sn(A,s,{skipKeys:o.replacedTopLevelKeys}),...e}})():sn(A,s);if(A=s,P.value=!1,F.clear(),a===`patch`&&i){j=Object.create(null);for(let e of Object.keys(n))u(e)&&(j[e]=s[e]);r.clear()}if(Object.keys(c).length){if(typeof l.setData==`function`){let e=l.setData(c);e&&typeof e.then==`function`&&e.catch(()=>{})}B({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(c).length})}};return{job:e=>{if(O())if(D(),a===`patch`&&!P.value){if(!(F.size>0||I.size>0||i&&r.size>0)){U(`diff`);return}yn({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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,plainCache:k,pendingPatches:F,fallbackTopKeys:I,latestSnapshot:A,latestComputedSnapshot:j,needsFullSnapshot:P,emitDebug:B,runDiffUpdate:U})}else U(P.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!O())return;if(e.root!==t){let t=te(e.root);if(t.length)for(let e of t)I.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)I.add(t);else P.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&F.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?V():{...A},cloneLatestSnapshot:()=>({...A}),getLatestSnapshot:()=>A}}function xn(e){var t,n,r,i,a,o,s;let c=(t=e==null?void 0:e.includeComputed)==null?!0:t,l=(n=e==null?void 0:e.suspendWhenHidden)==null?!1:n,u=(r=e==null?void 0:e.strategy)==null?`diff`:r,d=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,f=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,p=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,m=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,h=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,g=(i=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:i,_=(a=e==null?void 0:e.computedCompare)==null?u===`patch`?`deep`:`reference`:a,v=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,y=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,b=e==null?void 0:e.prelinkMaxDepth,x=e==null?void 0:e.prelinkMaxKeys,S=e==null?void 0:e.debug,C=(o=e==null?void 0:e.diagnostics)==null?`off`:o,w=(s=e==null?void 0:e.debugWhen)==null?`fallback`:s,T=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,E=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,D=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,O=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,k=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,A=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:c,suspendWhenHidden:l,setDataStrategy:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,computedCompare:_,computedCompareMaxDepth:v,computedCompareMaxKeys:y,prelinkMaxDepth:b,prelinkMaxKeys:x,debug:S,diagnostics:C,debugWhen:w,debugSampleRate:T,elevateTopKeyThreshold:E,toPlainMaxDepth:D,toPlainMaxKeys:O,pickSet:k,omitSet:A,shouldIncludeKey:e=>!(k&&!k.has(e)||A&&A.has(e))}}function Sn(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 Cn(e){return typeof e==`function`?e():e==null?{}:e}function wn(e){let{data:n,resolvedComputed:r,resolvedMethods:i,appConfig:o,setDataOptions:d}=e;return e=>{let f=Cn(n);if(f&&typeof f==`object`&&!Q(f,Z))try{Object.defineProperty(f,Z,{value:v(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let g=c(f),_=r,y=i,b=!0,x=[],S=new Set;Object.keys(g).forEach(e=>{let t=g[e];Vt(t)&&S.add(e)});let{includeComputed:C,setDataStrategy:E,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,prelinkMaxDepth:I,prelinkMaxKeys:L,debug:R,diagnostics:z,debugWhen:ee,debugSampleRate:te,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,shouldIncludeKey:U}=xn(d),ne=Yt(z),re=R||ne?e=>{typeof R==`function`&&R(e),ne==null||ne(e)}:void 0,W=z===`always`?`always`:ee,{boundMethods:G,computedRefs:K,computedSetters:ie,dirtyComputedKeys:ae,computedProxy:oe,publicInstance:q,touchSetupMethodsVersion:se}=qt({state:g,computedDefs:_,methodDefs:y,appConfig:o,includeComputed:C,setDataStrategy:E}),ce=e==null?{setData:()=>{}}:e,le=T(g),ue,J=bn({state:g,computedRefs:K,dirtyComputedKeys:ae,includeComputed:C,setDataStrategy:E,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,currentAdapter:ce,shouldIncludeKey:U,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,debug:re,debugWhen:W,debugSampleRate:te,runTracker:()=>ue==null?void 0:ue(),isMounted:()=>b}),fe=()=>J.job(le),pe=e=>J.mutationRecorder(e,le);ue=t(()=>{l(g);let e=g[Z];m(e)&&l(e);let t=g[de];m(t)&&l(t),S.forEach(e=>{let t=g[e];Ht(t)})},{lazy:!0,scheduler:()=>a(fe)}),fe(),x.push(Sn(()=>p(ue))),E===`patch`&&(u(g,{shouldIncludeTopKey:U,maxDepth:I,maxKeys:L}),s(pe),x.push(Sn(()=>w(pe))),x.push(Sn(()=>h(g))));function me(e,t,n){let r=wt(e,(e,n)=>t(e,n),n);return x.push(r),Sn(()=>{r();let e=x.indexOf(r);e>=0&&x.splice(e,1)},r)}let Y={get state(){return g},get proxy(){return q},get methods(){return G},get computed(){return oe},get adapter(){return ce},bindModel:Lt(q,g,K,ie),watch:me,snapshot:()=>J.snapshot(),unmount:()=>{b&&(b=!1,x.forEach(e=>{try{e()}catch(e){}}),x.length=0)}};try{Object.defineProperty(Y,`__wevu_touchSetupMethodsVersion`,{value:se,configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_touchSetupMethodsVersion=se}try{Object.defineProperty(Y,`__wevu_flushSetupSnapshotSync`,{value:fe,configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_flushSetupSnapshotSync=fe}try{Object.defineProperty(Y,`__wevu_cloneLatestSnapshot`,{value:J.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_cloneLatestSnapshot=J.cloneLatestSnapshot}try{Object.defineProperty(Y,`__wevu_trackSetupReactiveKey`,{value:e=>{S.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_trackSetupReactiveKey=e=>{S.add(e)}}return Y}}const Tn=`__wevuDefaultsScope`;let En={};function Dn(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function On(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Dn(e.setData),i=Dn(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Dn(e.options),o=Dn(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function kn(e,t){return On(e,t)}function An(e,t){return{app:On(e.app,t.app),component:On(e.component,t.component)}}function jn(e){En=An(En,e)}function Mn(){En={}}function Nn(e){return kn(En.app,e)}function Pn(e){return kn(En.component,e)}const Fn=/&amp;/g,In=/&quot;/g,Ln=/&#34;/g,Rn=/&apos;/g,zn=/&#39;/g,Bn=/&lt;/g,Vn=/&gt;/g;function Hn(e){return e.replace(Fn,`&`).replace(In,`"`).replace(Ln,`"`).replace(Rn,`'`).replace(zn,`'`).replace(Bn,`<`).replace(Vn,`>`)}function Un(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}}const Wn=/[^a-z0-9]+/gi,Gn=/^-+|-+$/g;function Kn(e){return e.trim().replace(Wn,`-`).replace(Gn,``).toLowerCase()}const qn=/-([a-z0-9])/g;function Jn(e,t){let n=Kn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(qn,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}const Yn={wvEventDetail:[`wd`,`wvEventDetail`],wvHandler:[`wh`,`wvHandler`],wvInlineId:[`wi`,`wvInlineId`]};function Xn(e,t,n){var r;let i=(r=Yn[t])==null?[t]:r;for(let t of i){let r=Jn(t,n);if(r&&(e==null?void 0:e[r])!==void 0)return e[r]}for(let t of i)if((e==null?void 0:e[t])!==void 0)return e[t]}function Zn(e,t,n){return Xn(e,t,n)}function Qn(e,t){let n=Zn(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function $n(e,t){if(!Qn(t,e))return e;if(!(!e||typeof e!=`object`||!(`detail`in e)))return e.detail}function er(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=g(e)?e.value:e;for(let e of n){if(g(r)&&(r=r.value),r==null)return;r=r[e]}return g(r)?r.value:r}function tr(e){if(typeof e!=`object`||!e||g(e)||m(e))return e;try{return c(e)}catch(t){return e}}function nr(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=$n(n,c),u=Zn(c,`wvInlineId`,n);if(u&&r){let t=r[u];if(t&&typeof t.fn==`function`){let n={},r=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<r.length;e+=1){let t=r[e];n[t]=c==null?void 0:c[`wvS${e}`]}let i=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<i.length;e+=1){let t=i[e],r=Un(c==null?void 0:c[`wvI${e}`]);r!==void 0&&(n[t]=r)}let a=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<r.length;t+=1){let i=r[t],o=a[t];try{let t;if(typeof o==`function`)t=o(e,n,l);else if(o&&typeof o==`object`&&o.type===`for-item`){let r=n[o.indexKey],i=er(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=tr(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=Zn(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=Zn(c,`wvArgs`,n),m=[];if(Array.isArray(p))m=p;else if(typeof p==`string`)try{m=JSON.parse(p)}catch(e){try{m=JSON.parse(Hn(p))}catch(e){m=[]}}Array.isArray(m)||(m=[]);let h=m.map(e=>e===`$event`?l:e),g=e==null?void 0:e[f];if(typeof g==`function`)return g.apply(e,h)}function rr(){let e=P();if(e)return e;let t=se();return t[t.length-1]}function ir(e){return e===we?!1:e}function ar(){var e,t;if(!z())throw Error(`usePageLayout() 必须在 setup() 的同步阶段调用`);let n=U(),r=n==null||(e=n.__wevu)==null?void 0:e.state,i=c({name:ir(r==null?void 0:r[Ce]),props:{...(t=r==null?void 0:r[Te])==null?{}:t}});return n&&(n.__wevuPageLayoutState=i),R(i)}function or(e,t,n){let r=e.__wevuPageLayoutState;r&&(r.name=t,r.props={...n})}function sr(e){var t,n;let r=e.__wevuPageLayoutState,i=(t=e.__wevu)==null?void 0:t.state;!r||!i||(r.name=ir(i[Ce]),r.props={...(n=i[Te])==null?{}:n})}function cr(e,t){let n=U(),r=n==null?void 0:n[Ee];if(typeof r==`function`){r(e,t);return}let i=rr(),a=i==null?void 0:i[Ee];if(typeof a==`function`){a(e,t);return}throw Error(`setPageLayout() 未找到当前页面实例。请在页面 setup()、事件回调或当前页面上下文中调用。`)}function lr(e){return e===!1?we:e}const ur=new Map;let dr=0;function fr(){return dr+=1,`wv${dr}`}function pr(e,t,n){var r;let i=(r=ur.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,ur.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function mr(e){ur.delete(e)}function hr(e,t){var n;let r=(n=ur.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),ur.set(e,r),()=>{let n=ur.get(e);n&&n.subscribers.delete(t)}}function gr(e){var t;return(t=ur.get(e))==null?void 0:t.proxy}function _r(e){var t;return(t=ur.get(e))==null?void 0:t.snapshot}function vr(e){let t=e.__wevu_cloneLatestSnapshot;return typeof t==`function`?t():typeof e.snapshot==`function`?e.snapshot():{}}function yr(e,t,n){var r;try{t.state[Ve]=n}catch(e){}try{e[Ve]=n}catch(e){}let i=vr(t),a=(r=e[Z])==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;pr(n,i,t.proxy)}function br(e){return e.kind===`component`}function xr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return g(r)?r.value:r},set(e,t,n,r){let i=e[t];return g(i)&&!g(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Sr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=xr(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 Cr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return $(new Proxy(e,{get(e,t,r){if(Reflect.has(e,t))return Reflect.get(e,t,r);let i=n[t];return typeof i==`function`?i.bind(n):i},set(e,t,r,i){return Reflect.has(e,t)?Reflect.set(e,t,r,i):(t in n,n[t]=r,!0)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return[...new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)])]},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);let r=Object.getOwnPropertyDescriptor(n,t);return r&&{...r,configurable:!0}}}))}function wr(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n[fe];return r&&typeof r==`object`?Sr(n,r):(t=n[je])!=null&&t.proxy?n[je].proxy:e}function Tr(e){return e[Xe]}function Er(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Dr(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}:g(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Or(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=$(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function kr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();if(!W(`globalCreateSelectorQuery`))return null;let n=H();if(n&&typeof n.createSelectorQuery==`function`){let e=n.createSelectorQuery();return e?B().selectorQueryScopeByIn&&typeof e.in==`function`?e.in(t):e:null}return null}function Ar(e,t,n,r,i){let a=kr(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 jr(e,t,n){return $({selector:t,boundingClientRect:r=>Ar(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Ar(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Ar(e,t,n,e=>e.fields(r),i),node:r=>Ar(e,t,n,e=>e.node(),r)})}function Mr(e,t){let n=e;if(!n)return t.inFor?$([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return $((Array.isArray(r)?r:[]).map((n,r)=>Cr(jr(e,t.selector,{multiple:!0,index:r}),wr(n))))}return $([])}let r=jr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Cr(r,wr(n.selectComponent(t.selector))):r}function Nr(e,t,n){return t.inFor?$((Array.isArray(n)?n:[]).map((n,r)=>jr(e,t.selector,{multiple:!0,index:r}))):n?jr(e,t.selector,{multiple:!1}):null}function Pr(e,t){let n=e[Je];if(!n||!n.length){t==null||t();return}if(!e[Me]){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Tr(e),i=n.filter(e=>!br(e)),a=n.filter(e=>br(e)).map(t=>({binding:t,value:Mr(e,t)})),o=n=>{var i,a;let o=Or(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=Dr(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?$(t.values):t.values[0]:t.hasFor?$([]):null,o[e]=n,Er(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=kr(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:Nr(e,n.binding,i)}});o([...a,...n])})}function Fr(e,t){let n=e[Je];if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e[qe])==null?[]:r;n.push(t),e[qe]||Object.defineProperty(e,qe,{value:n,configurable:!0,enumerable:!1,writable:!0})}e[Ye]||(e[Ye]=!0,i(()=>{e[Ye]=!1,Pr(e,()=>{let t=e[qe];!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function Ir(e){var t,n;let r=e[Je];if(!r||!r.length)return;let i=Or(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Tr(e);for(let t of r){let n=Dr(e,t),r=t.inFor?$([]):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,Er(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}const Lr=[`triggerEvent`,`createSelectorQuery`,`createIntersectionObserver`,`setData`,`setUpdatePerformanceListener`];function Rr(){return Object.freeze(Object.create(null))}const zr=()=>[];function Br(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:!e||typeof e!=`object`?[]:Object.entries(e).filter(([,e])=>!!e).map(([e])=>e)}function Vr(e){if(!Q(e,Be))return Rr();let t=()=>Br(e[Be]),n=e=>typeof e==`string`&&t().includes(e);return new Proxy(Object.create(null),{get(e,t){if(n(t))return zr},has(e,t){return n(t)},ownKeys(){return t()},getOwnPropertyDescriptor(e,t){if(n(t))return{configurable:!0,enumerable:!0,value:zr}},set(){return!1},deleteProperty(){return!1}})}function Hr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Ur(e){try{return $(e)}catch(t){return e}}function Wr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Q(e,`bubbles`)||Q(e,`composed`)||Q(e,`capturePhase`)}function Gr(e){if(e.length===0)return{detail:void 0,options:void 0};if(e.length===1)return{detail:e[0],options:void 0};let t=e[e.length-1];if(Wr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}function Kr(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?T(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Gt(r))return!0;let i=t[n];return typeof i==`function`&&r===i},s=e=>!e||typeof e!=`object`||e===t||e===a||o(e)?!1:typeof e[n]==`function`,c=i?i[X]:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function qr(e,t,n){Wt(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Jr(e,t){let n=e[ze];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Kr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Gt(i))return e};qr(r,`triggerEvent`,(...e)=>{let[t,n,r]=e,a=i(`triggerEvent`);a&&typeof a.triggerEvent==`function`&&(e.length>=3?a.triggerEvent(t,n,r):a.triggerEvent(t,n))}),qr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=H();if(!W(`globalCreateSelectorQuery`)||!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||!B().selectorQueryScopeByIn||typeof o.in!=`function`)return o;let s=(n=Kr(t,e,`setData`))==null?e:n;return o.in(s)}),qr(r,`createIntersectionObserver`,n=>{var r;let a=i(`createIntersectionObserver`);if(a&&typeof a.createIntersectionObserver==`function`)return a.createIntersectionObserver(n==null?{}:n);let o=H();if(!W(`globalCreateIntersectionObserver`)||!o||typeof o.createIntersectionObserver!=`function`)return;let s=(r=Kr(t,e,`setData`))==null?e:r;return B().intersectionObserverScopeByParameter?o.createIntersectionObserver(s,n==null?{}:n):o.createIntersectionObserver(n==null?{}:n)}),qr(r,`setData`,(e,n)=>{let r=i(`setData`);if(r&&typeof r.setData==`function`)return r.setData(e,n);let a=t==null?void 0:t.adapter,o=typeof(a==null?void 0:a.setData)==`function`?a.setData(e):void 0;return typeof n==`function`&&n(),o}),qr(r,`setUpdatePerformanceListener`,e=>{let t=i(`setUpdatePerformanceListener`);if(t&&typeof t.setUpdatePerformanceListener==`function`)return t.setUpdatePerformanceListener(e)});let a=Ur(new Proxy(r,{get(t,n,r){if(Reflect.has(t,n))return Reflect.get(t,n,r);let i=e[n];return typeof i==`function`?i.bind(e):i},has(t,n){return Reflect.has(t,n)||n in e},set(t,n,r){return Reflect.has(t,n)?(t[n]=r,!0):(e[n]=r,!0)}}));try{Object.defineProperty(e,ze,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[ze]=a}return a}function Yr(e,t){try{let n=t.methods;for(let t of Object.keys(n))Lr.includes(t)||typeof e[t]!=`function`&&(e[t]=function(...e){var n;let r=this[je],i=r==null||(n=r.methods)==null?void 0:n[t];if(typeof i==`function`)return i.apply(r.proxy,e)})}catch(e){}}let Xr=e=>e.startsWith(`layouts/`);function Zr(e){let t=e.is;return typeof t==`string`&&Xr(t,e)}function Qr(e){if(Zr(e))return;let t=e[Oe];if(t&&typeof t==`object`)return t;let n=e.selectOwnerComponent;if(typeof n==`function`)try{let t=n.call(e);if(t&&t!==e&&typeof t==`object`&&t.__wevu)return t}catch(e){}let r=se(),i=r[r.length-1];if(i&&i!==e&&typeof i==`object`&&i.__wevu)return i}function $r(e){if(!Zr(e))return;let t=se(),n=t[t.length-1];n&&n!==e&&typeof n==`object`&&n.__wevu&&k(e,n)}function ei(e,t){e[Ie]=t,O(e,t,Qr(e)),$r(e)}function ti(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 ni(e){let{target:t,runtime:n,runtimeWithDefaults:r,runtimeState:i,runtimeProxy:a,setup:o,syncRuntimeProps:s,attachRuntimeProxyProps:c}=e,l=t.properties||{},u=i&&typeof i==`object`?i[Z]:void 0,d=u&&typeof u==`object`?u:v({});s(d,l),i&&typeof i==`object`&&c(i,d);try{Object.defineProperty(t,Z,{value:d,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[Z]=d}let f=v(Object.create(null)),p=new Set(Array.isArray(t[Ae])?t[Ae]:[]),h=e=>typeof i==`object`&&!!i&&Q(i,e);(()=>{let e=t.properties&&typeof t.properties==`object`?t.properties:void 0;for(let t of Object.keys(f))(!e||!Q(e,t)||p.has(t)||h(t))&&delete f[t];if(e)for(let[t,n]of Object.entries(e))p.has(t)||h(t)||(f[t]=n)})();try{Object.defineProperty(t,de,{value:f,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[de]=f}let g=Jr(t,r),_=Vr(d);try{Object.defineProperty(i,`$slots`,{value:_,configurable:!0,enumerable:!1,writable:!1})}catch(e){i.$slots=_}let y=Ur({props:d,runtime:r,state:i,proxy:a,bindModel:n.bindModel.bind(r),watch:n.watch.bind(r),instance:g,emit:(e,...t)=>{let{detail:n,options:r}=Gr(t);g.triggerEvent(e,n,r)},expose:e=>{t[fe]=e},attrs:f,slots:_}),b=C(!0);t[J]=b,oe(t),te(y);try{let e=b.run(()=>ti(o,d,y)),t=!1;if(e&&typeof e==`object`){let r=m(n.state)?T(n.state):n.state;Object.keys(e).forEach(i=>{let a=e[i];if(typeof a==`function`)n.methods[i]=(...e)=>a.apply(n.proxy,e),t=!0;else{if(Vt(a)){var o;(o=n.__wevu_trackSetupReactiveKey)==null||o.call(n,i)}if(p.has(i)){let e=a;try{Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){let t=r[Z];return t&&typeof t==`object`&&Q(t,i)?t[i]:e},set(t){e=t;let n=r[Z];if(!(!n||typeof n!=`object`))try{n[i]=t}catch(e){}}})}catch(e){n.state[i]=a}return}n.state[i]=a}})}if(t){var x;(x=n.__wevu_touchSetupMethodsVersion)==null||x.call(n)}}catch(e){throw b.stop(),t[J]=void 0,e}finally{te(void 0),oe(void 0)}}function ri(e,t){try{Object.defineProperty(e,Z,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e[Z]=t}}function ii(e,t){try{Object.defineProperty(e,X,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[X]=t}}function ai(e,t){try{Object.defineProperty(e,Le,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Le]=t}}function oi(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function si(e){let t=e[ze],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Gt(n))return n;let r=e.setData;if(typeof r==`function`&&!Gt(r))return r}function ci(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function li(e,t,n){try{return t.call(e,n)}catch(t){let n=ci(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function ui(e,t){let n=Object.keys(e);for(let r of n)if(!Q(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function di(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function fi(e){var t,n,r;let i={devOnly:!0,sampleWindowMs:1e3,maxCalls:30,coolDownMs:5e3,warnOnPageScroll:!0,pageScrollCoolDownMs:2e3};return e===void 0||e===!1?{...i,enabled:!1}:e===!0?{...i,enabled:!0}:di(e)?{enabled:(t=e.enabled)==null?!0:t,devOnly:(n=e.devOnly)==null?i.devOnly:n,sampleWindowMs:typeof e.sampleWindowMs==`number`?Math.max(100,Math.floor(e.sampleWindowMs)):i.sampleWindowMs,maxCalls:typeof e.maxCalls==`number`?Math.max(1,Math.floor(e.maxCalls)):i.maxCalls,coolDownMs:typeof e.coolDownMs==`number`?Math.max(0,Math.floor(e.coolDownMs)):i.coolDownMs,warnOnPageScroll:(r=e.warnOnPageScroll)==null?i.warnOnPageScroll:r,pageScrollCoolDownMs:typeof e.pageScrollCoolDownMs==`number`?Math.max(0,Math.floor(e.pageScrollCoolDownMs)):i.pageScrollCoolDownMs}:{...i,enabled:!1}}function pi(){let e=re();if((e==null?void 0:e.debug)===!0||(e==null?void 0:e.envVersion)===`develop`)return!0;let t=H();try{var n;if((t==null||(n=t.getAccountInfoSync)==null||(n=n.call(t))==null||(n=n.miniProgram)==null?void 0:n.envVersion)===`develop`)return!0}catch(e){}return!1}function mi(e){var t,n;let r=fi(e.option);if(!r.enabled)return;let i=pi();if(r.devOnly&&!i)return;let a=(t=e.now)==null?(()=>Date.now()):t,o=(n=e.logger)==null?(e=>{var t;let n=(t=globalThis)==null||(t=t.console)==null?void 0:t.warn;typeof n==`function`&&n(e)}):n,s=[],c=-1/0,l=-1/0;return()=>{var t,n;let i=a();s.push(i);let u=i-r.sampleWindowMs;for(;s.length>0&&s[0]<u;)s.shift();let d=(t=(n=e.isInPageScrollHook)==null?void 0:n.call(e))==null?!1:t;r.warnOnPageScroll&&d&&(r.pageScrollCoolDownMs<=0||i-l>=r.pageScrollCoolDownMs)&&(l=i,o(`[wevu:setData] 检测到 onPageScroll 回调内调用 setData(${e.targetLabel})。建议改用 IntersectionObserver 监听可见性,或对滚动更新做节流。`)),!(s.length<=r.maxCalls)&&(r.coolDownMs>0&&i-c<r.coolDownMs||(c=i,o(`[wevu:setData] 检测到高频 setData 调用:${s.length} 次/${r.sampleWindowMs}ms(${e.targetLabel})。建议合并更新或降低调用频率。`)))}}function hi(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=hi(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 gi(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 _i(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=hi(o,e,n);if(!t)continue;let s=gi(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function vi(e){typeof e.route!=`string`||!e.route||(e[Ee]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[Ce]=lr(t);let a=t===!1||n==null?{}:n;i[Te]=a,or(e,t,a)})}function yi(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m;if(e.__wevu)return e.__wevu;ei(e,t),Ur(e);let h=fr(),g=!!(!(t==null||(a=t.__wevuSetDataOptions)==null)&&a.suspendWhenHidden),_=typeof e.route==`string`&&e.route?`page:${e.route}`:typeof e.is==`string`&&e.is?`component:${e.is}`:`unknown-target`,v=mi({option:t==null||(o=t.__wevuSetDataOptions)==null?void 0:o.highFrequencyWarning,targetLabel:_,isInPageScrollHook:()=>{var t;return Number((t=e[De])==null?0:t)>0}}),y=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}let a=si(e);if(a)return li(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=si(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,li(e,r,n)}},r})(e):{setData(t){let n=si(e);if(n)return li(e,n,t)}},b,x=!0,S,C=(e,t)=>({...e==null?{}:e,...t}),w=()=>{var t;if(!b)return;let n=vr(b),r=(t=e[Z])==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;pr(h,n,b.proxy)},T={...y,setData(t){if(v==null||v(),g&&!x){S=C(S,t),w(),Fr(e);return}let n=y.setData(t);return w(),Fr(e),n},__wevu_setVisibility(t){if(x=t,!x||!S)return;let n=S;S=void 0;let r=y.setData(n);return w(),Fr(e),r}},E=t.mount({...T});b=E,oi(E,e);let D=(s=E==null?void 0:E.proxy)==null?{}:s,O=(c=E==null?void 0:E.state)==null?{}:c;O&&typeof O==`object`&&(ai(O,E),ii(O,e));let k=(l=E==null?void 0:E.computed)==null?Object.create(null):l;if(!(E!=null&&E.methods))try{E.methods=Object.create(null)}catch(e){}let A=(u=E==null?void 0:E.methods)==null?Object.create(null):u,j=(d=E==null?void 0:E.watch)==null?(()=>Hr()):d,M=(f=E==null?void 0:E.bindModel)==null?(()=>{}):f,N={...E==null?{}:E,state:O,proxy:D,methods:A,computed:k,watch:j,bindModel:M,snapshot:(p=E==null?void 0:E.snapshot)==null?(()=>Object.create(null)):p,unmount:(m=E==null?void 0:E.unmount)==null?(()=>{}):m},P=N,F={__wevu_flushSetupSnapshotSync:E.__wevu_flushSetupSnapshotSync,__wevu_touchSetupMethodsVersion:E.__wevu_touchSetupMethodsVersion,__wevu_trackSetupReactiveKey:E.__wevu_trackSetupReactiveKey};for(let[e,t]of Object.entries(F))t&&Object.defineProperty(N,e,{configurable:!0,enumerable:!1,value:t,writable:!0});if(Object.defineProperty(e,je,{value:N,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=N,vi(e),yr(e,N,h),n){let t=_i(N,n,e);t.length&&(e[Ze]=t)}if(r){var I;ni({target:e,runtime:E,runtimeWithDefaults:N,runtimeState:O,runtimeProxy:D,setup:r,syncRuntimeProps:ui,attachRuntimeProxyProps:ri}),(I=P.__wevu_flushSetupSnapshotSync)==null||I.call(P)}return Yr(e,E),E}function bi(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function xi(e,t){var n;let r=(n=e.__wevu)==null?void 0:n.adapter;r&&typeof r.__wevu_setVisibility==`function`&&r.__wevu_setVisibility(t)}function Si(e){var t;let n=e.__wevu,r=e[Ve];r&&mr(r),Ir(e),n&&e[pe]&&G(e,`onUnload`,[]),e[pe]&&(e[pe]=void 0);let i=e[Ze];if(Array.isArray(i))for(let e of i)try{e()}catch(e){}e[Ze]=void 0,(t=e[J])==null||t.stop(),e[J]=void 0,n&&n.unmount(),delete e.__wevu,je in e&&delete e[je]}const Ci=`__wevuAppGlobalListeners`,wi=`__wevuOnMemoryWarningListener`;function Ti(e){let t=e[pe],n=!!(t!=null&&t.onMemoryWarning);if(!W(`appMemoryWarningListener`)){delete e[wi];return}let r=H(),i=r==null?void 0:r.onMemoryWarning,a=r==null?void 0:r.offMemoryWarning;if(typeof i!=`function`)return;let o=e[wi];if(typeof o==`function`&&typeof a==`function`)try{a(o)}catch(e){}if(!n){delete e[wi];return}let s=t=>{G(e,`onMemoryWarning`,[t])};e[wi]=s,i(s)}function Ei(e,t){var n,r;let{hookName:i,onApiName:a,offApiName:o,capabilityName:s,userHandler:c}=t,l=e[pe],u=!!(l!=null&&l[i]),d=(r=(n=e)[Ci])==null?n[Ci]=Object.create(null):r,f=d[i];if(!W(s)){delete d[i],delete e[i];return}let p=H(),m=p==null?void 0:p[a],h=p==null?void 0:p[o];if(typeof f==`function`&&typeof h==`function`)try{h(f)}catch(e){}if(!u&&typeof c!=`function`){delete d[i];return}let g=(...t)=>{G(e,i,t),typeof c==`function`&&c.apply(e,t)};e[i]=g,d[i]=g,typeof m==`function`&&m(g)}function Di(e,t){Ei(e,{hookName:`onError`,onApiName:`onError`,offApiName:`offError`,capabilityName:`appErrorListener`,userHandler:t.onError}),Ei(e,{hookName:`onPageNotFound`,onApiName:`onPageNotFound`,offApiName:`offPageNotFound`,capabilityName:`appPageNotFoundListener`,userHandler:t.onPageNotFound}),Ei(e,{hookName:`onUnhandledRejection`,onApiName:`onUnhandledRejection`,offApiName:`offUnhandledRejection`,capabilityName:`appUnhandledRejectionListener`,userHandler:t.onUnhandledRejection}),Ei(e,{hookName:`onThemeChange`,onApiName:`onThemeChange`,offApiName:`offThemeChange`,capabilityName:`appThemeChangeListener`,userHandler:t.onThemeChange})}function Oi(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[me]||(s[me]=function(e){var t,n;let r=this.__wevu;return nr((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[Y])});let c=s.onLaunch,l=s.onError,u=s.onPageNotFound,d=s.onUnhandledRejection,f=s.onThemeChange;s.onLaunch=function(...t){this[he]=!0,yi(this,e,n,r),Ti(this),Di(this,{onError:l,onPageNotFound:u,onUnhandledRejection:d,onThemeChange:f}),G(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let p=s.onShow;s.onShow=function(...e){G(this,`onShow`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onHide;s.onHide=function(...e){G(this,`onHide`,e),typeof m==`function`&&m.apply(this,e)},delete s.onError,delete s.onPageNotFound,delete s.onUnhandledRejection,delete s.onThemeChange;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 ki(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=!!t.enableOnRouteDoneFallback,_=typeof s==`function`||!!t.enableOnTabItemTap,v=typeof c==`function`||!!t.enableOnResize,y=typeof u==`function`||!!t.enableOnShareTimeline,b=typeof l==`function`||!!t.enableOnShareAppMessage,x=typeof d==`function`||!!t.enableOnAddToFavorites,S=typeof n==`function`||!!t.enableOnSaveExitState,C=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnRouteDoneFallback:g,enableOnTabItemTap:_,enableOnResize:v,enableOnShareAppMessage:b,enableOnShareTimeline:y,enableOnAddToFavorites:x,enableOnSaveExitState:S,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:C,effectiveOnReachBottom:typeof i==`function`?i:C,effectiveOnPageScroll:typeof a==`function`?a:C,effectiveOnRouteDone:typeof o==`function`?o:C,effectiveOnTabItemTap:typeof s==`function`?s:C,effectiveOnResize:typeof c==`function`?c:C,effectiveOnShareAppMessage:typeof l==`function`?l:C,effectiveOnShareTimeline:typeof u==`function`?u:C,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}function Ai(e,t){let{enableOnSaveExitState:n,enableOnPullDownRefresh:r,enableOnReachBottom:i,enableOnPageScroll:a,enableOnRouteDone:o,enableOnTabItemTap:s,enableOnResize:c,enableOnShareAppMessage:l,enableOnShareTimeline:u,enableOnAddToFavorites:d,effectiveOnSaveExitState:f,effectiveOnPullDownRefresh:p,effectiveOnReachBottom:m,effectiveOnPageScroll:h,effectiveOnRouteDone:g,effectiveOnTabItemTap:_,effectiveOnResize:v,effectiveOnShareAppMessage:y,effectiveOnShareTimeline:b,effectiveOnAddToFavorites:x,hasHook:S}=t;n&&(e.onSaveExitState=function(...e){let t=ae(this,`onSaveExitState`,e);return t===void 0?f.apply(this,e):t}),r&&(e.onPullDownRefresh=function(...e){if(G(this,`onPullDownRefresh`,e),!S(this,`onPullDownRefresh`))return p.apply(this,e)}),i&&(e.onReachBottom=function(...e){if(G(this,`onReachBottom`,e),!S(this,`onReachBottom`))return m.apply(this,e)}),a&&(e.onPageScroll=function(...e){return F(this,()=>{if(G(this,`onPageScroll`,e),!S(this,`onPageScroll`))return h.apply(this,e)})}),o&&(e.onRouteDone=function(...e){if(!this[Fe]&&(this[Fe]=!0,Promise.resolve().then(()=>{this[Fe]=!1}),this[Pe]=!0,G(this,`onRouteDone`,e),!S(this,`onRouteDone`)))return g.apply(this,e)}),s&&(e.onTabItemTap=function(...e){if(G(this,`onTabItemTap`,e),!S(this,`onTabItemTap`))return _.apply(this,e)}),c&&(e.onResize=function(...e){if(G(this,`onResize`,e),!S(this,`onResize`))return v.apply(this,e)}),l&&(e.onShareAppMessage=function(...e){let t=ae(this,`onShareAppMessage`,e);return t===void 0?y.apply(this,e):t}),u&&(e.onShareTimeline=function(...e){let t=ae(this,`onShareTimeline`,e);return t===void 0?b.apply(this,e):t}),d&&(e.onAddToFavorites=function(...e){let t=ae(this,`onAddToFavorites`,e);return t===void 0?x.apply(this,e):t})}function ji(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,enableOnRouteDoneFallback:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}=e,N={onLoad(...e){if(!this[be]&&(this[be]=!0,yi(this,t,n,r),bi(this),l&&le({enableOnShareAppMessage:v,enableOnShareTimeline:y}),G(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&D(this),Si(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(ee(),ue(this),this[be]||N.onLoad.call(this,ce(this)),le({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this[Pe]=!1),xi(this,!0),G(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&D(this),xi(this,!1),G(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this[be]||N.onLoad.call(this,ce(this)),le({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this[Me]){if(this[Me]=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e[Pe]){var t;(t=N.onRouteDone)==null||t.call(e)}},0)}Fr(this,()=>{G(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return Ai(N,{enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}),N}function Mi(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r[me]||(r[me]=function(e){var t,n;let r=this.__wevu;return nr((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[Y])}),r[ve]||(r[ve]=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=Mt(e);try{a.bindModel(i).update(o)}catch(e){}}),!r[Se]&&typeof(n==null?void 0:n[Se])==`function`&&(r[Se]=n[Se]);let i=Object.keys(n==null?{}:n);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n[Le]}function o(e,t){if((e==null?void 0:e.proxy)===t)return;let n=e==null?void 0:e.proxy,r=e=>{let r=t[e];if(typeof r!=`function`)return!1;let i=n==null?void 0:n[e];return typeof i==`function`&&r===i};if(r(`triggerEvent`)||r(`createSelectorQuery`)||r(`createIntersectionObserver`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.createIntersectionObserver==`function`||typeof t.setData==`function`))return;let i=e==null?void 0:e.state;if(!(!i||typeof i!=`object`)&&t.$state!==i)try{Object.defineProperty(i,X,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[X]=t}}for(let e of i){if(e===Y||e.startsWith(Ne))continue;let t=r[e];r[e]=function(...n){var r;let i=a(this);o(i,this);let s,c=i==null||(r=i.methods)==null?void 0:r[e];if(c&&(s=c.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?s:e}return s}}return{finalMethods:r}}function Ni(e,t=new WeakMap){if(!e||typeof e!=`object`)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];t.set(e,n);for(let r of e)n.push(Ni(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=Ni(i,t);return n}function Pi(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Fi(e){var t;let{methods:n={},lifetimes:r={},pageLifetimes:i={},options:a={},...o}=e,s=o.onLoad,c=o.onUnload,l=o.onShow,u=o.onHide,d=o.onReady,f=o.onSaveExitState,p=o.onPullDownRefresh,m=o.onReachBottom,h=o.onPageScroll,g=o.onRouteDone,_=o.onTabItemTap,v=o.onResize,y=o.onShareAppMessage,b=o.onShareTimeline,x=o.onAddToFavorites,S=(t=o.features)==null?{}:t,C=[s,c,l,u,d,f,p,m,h,g,_,v,y,b,x].some(e=>typeof e==`function`),w=!!o.__wevu_isPage||Object.keys(S==null?{}:S).length>0||C,T={...o},E=new Set([`data`,`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`__wevuLayoutHosts`,`setupLifecycle`,`features`,`__wevu_isPage`]),D=[];for(let[e,t]of Object.entries(T))E.has(e)||typeof t!=`function`&&(D.push([e,t]),delete T[e]);let O=e=>{if(D.length){for(let[t,n]of D)if(!Q(e,t))try{e[t]=Ni(n)}catch(e){}}},k=new Set([`data`,`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),A={};for(let[e,t]of Object.entries(T))typeof t!=`function`||k.has(e)||(A[e]=t,delete T[e]);let j=T.__wevuTemplateRefs;delete T.__wevuTemplateRefs;let M=T.__wevuLayoutHosts;delete T.__wevuLayoutHosts;let N=T.observers,P=T.setupLifecycle===`created`?`created`:`attached`;delete T.setupLifecycle;let F=T.created;return delete T.features,delete T.created,delete T.onLoad,delete T.onUnload,delete T.onShow,delete T.onHide,delete T.onReady,{userMethods:n,userLifetimes:r,userPageLifetimes:i,userOptions:a,restOptions:T,topLevelMethods:A,templateRefs:j,layoutHosts:M,userObservers:N,setupLifecycle:P,legacyCreated:F,isPage:w,features:S,userOnLoad:s,userOnUnload:c,userOnShow:l,userOnHide:u,userOnReady:d,userOnSaveExitState:f,userOnPullDownRefresh:p,userOnReachBottom:m,userOnPageScroll:h,userOnRouteDone:g,userOnTabItemTap:_,userOnResize:v,userOnShareAppMessage:y,userOnShareTimeline:b,userOnAddToFavorites:x,applyExtraInstanceFields:O}}function Ii(e){var t;let n=e.__wevu,r=e[Ve];if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e[Z])==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;pr(r,i,n.proxy)}function Li(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,Ae,{value:r,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[Ae]=r}},o=e=>{let t=e[de];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&&Q(r,t)},r=e.properties,a=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!a||!Q(a,e)||i.has(e)||n(e))try{delete t[e]}catch(e){}if(!a){Ii(e);return}for(let[e,r]of Object.entries(a))if(!(i.has(e)||n(e)))try{t[e]=r}catch(e){}Ii(e)},s=e=>{let t=e[Z],n=e.properties,r=e[ke];if(t&&typeof t==`object`&&n&&typeof n==`object`){let i=n,a=Object.keys(t);for(let e of a)if(!Q(i,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(i)){let i=r&&Q(r,e)?r[e]:n;try{t[e]=i}catch(e){}}if(r){for(let[e,n]of Object.entries(r))if(!Q(i,e))try{t[e]=n}catch(e){}}Ii(e)}r&&delete e[ke],o(e)},c=(e,t,n)=>{var r,i;let a=e[Z];if(!a||typeof a!=`object`)return;try{a[t]=n}catch(e){}let s=(i=(r=e)[ke])==null?r[ke]=Object.create(null):i;s[t]=n,Ii(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}}const Ri=new Map;function zi(){let e=se();return e[e.length-1]}function Bi(e){return Array.from(new Set(Array.isArray(e)?e:[e])).filter(e=>typeof e==`string`&&e.length>0)}function Vi(e){return Qe(e)}function Hi(e){return e&&typeof e.__wevuSetPageLayout==`function`?e:zi()}function Ui(e){var t,n;if(!e||typeof e!=`object`)return;let r=(t=e[je])==null||(t=t.state)==null?void 0:t[X];if(r&&typeof r==`object`)return r;let i=(n=e.$state)==null?void 0:n[X];return i&&typeof i==`object`?i:e[X]&&typeof e[X]==`object`?e[X]:e}function Wi(e){return typeof e==`function`?e():g(e)?e.value:e}function Gi(e,t){return e.find(e=>e.key===t)}function Ki(e,t){let n=e==null?void 0:e.selectComponent;if(typeof n!=`function`)return null;try{var r;return(r=n.call(e,t))==null?null:r}catch(e){return null}}function qi(e,t){var n,r,i,a,o,s,c,l;if(!e.refName)return null;let u=Tr(t),d=(n=(r=(i=(a=t[je])==null||(a=a.state)==null?void 0:a.$refs)==null?(o=t.__wevu)==null||(o=o.state)==null?void 0:o.$refs:i)==null?(s=t.$state)==null?void 0:s.$refs:r)==null?t.$refs:n,f=(c=u==null||(l=u.get(e.refName))==null?void 0:l.value)==null?d==null?void 0:d[e.refName]:c;if(Array.isArray(f)){var p;return(p=f[0])==null?null:p}return f==null?null:f}function Ji(e,t){let n=Ui(t);return Object.assign(n&&typeof n==`object`?Object.create(n):{},{selectComponent(r){let i=Gi(e,r);if(!i)return null;if(i.kind===`component`||!i.kind){var a,o;return qi(i,t)||((a=(o=Ki(n,i.selector))==null?Ki(zi(),i.selector):o)==null?null:a)}return null}})}function Yi(e,t){let n=t==null?U():t,r=Hi(n),i=Vi(r);if(!n||!r||i.length===0)return!1;for(let t of i){var a;let r=(a=Ri.get(t))==null?new Map:a;for(let t of Bi(e))r.set(t,n);Ri.set(t,r)}return n[ge]=i,!0}function Xi(e,t){var n;let r=t==null?U():t,i=Hi(r),a=(n=r==null?void 0:r[ge])==null?Vi(i):n;if(!r||!Array.isArray(a)||a.length===0)return!1;let o=!1;for(let t of a){let n=Ri.get(t);if(n){for(let t of Bi(e))n.get(t)===r&&(n.delete(t),o=!0);n.size===0&&Ri.delete(t)}}return delete r[ge],o}function Zi(e,t){var n,r;let i=Vi((n=zi())==null?Hi(t):n).map(t=>{var n;return(n=Ri.get(t))==null?void 0:n.get(e)}).find(Boolean);return(r=i==null?t:i)==null?U():r}function Qi(e,t={}){var n,r;let i=Zi(e,(n=t.context)==null?t.fallbackContext:n),a=i==null||(r=i.selectComponent)==null?void 0:r.call(i,e);return a==null?null:a}function $i(e,t={}){var n,r;let i=(n=t.retries)==null?20:n,a=(r=t.interval)==null?16:r,o=Qi(e,t);return o||i<=0?Promise.resolve(o):new Promise(n=>{setTimeout(()=>{n($i(e,{...t,retries:i-1}))},a)})}function ea(e,t={}){if(!z())throw Error(`useLayoutBridge() 必须在 setup() 的同步阶段调用`);let n=U(),r=Bi(e),i=t.resolveComponent,a=Ui(n),o=Object.assign(a&&typeof a==`object`?Object.create(a):{},{selectComponent(e){var t,a,o;if(!r.includes(e))return null;let s=i==null?void 0:i(e);if(s!==void 0)return s;let c=Ui(n),l=c==null||(t=c.selectComponent)==null?void 0:t.call(c,e);if(l)return l;let u=zi();return(a=u==null||(o=u.selectComponent)==null?void 0:o.call(u,e))==null?null:a}});Yi(r,o),j(()=>{Yi(r,o)}),M(()=>{Xi(r,o)})}function ta(e,t){if(!e.length)return null;let n=t==null?U():t;if(!n)return null;let r=Ji(e,n);return Yi(e.map(e=>e.key),r),r}function na(e,t){if(!e.length)return!1;let n=t==null?U():t;return n?Xi(e.map(e=>e.key),n):!1}function ra(e){ea(Object.keys(e),{resolveComponent(t){return Wi(e[t])}})}function ia(e){let{runtimeApp:t,watch:n,setup:r,restOptions:i,pageLifecycleHooks:a,finalObservers:o,userLifetimes:s,userPageLifetimes:c,finalMethods:l,finalOptions:u,applyExtraInstanceFields:d,templateRefs:f,layoutHosts:p,attachWevuPropKeys:m,setupLifecycle:h,syncWevuPropsFromInstance:g,isPage:_,legacyCreated:v,getRuntimeOwnerLabel:y}=e,b={},x=e=>{if(!Array.isArray(p)||!p.length||e[_e])return;let t=ta(p,e);t&&(e[_e]=t)},S=e=>{_&&(e[Ee]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[Ce]=lr(t);let a=t===!1||n==null?{}:n;i[Te]=a,or(e,t,a)})};if(_)for(let e of[`onReachBottom`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=a[e];typeof t==`function`&&typeof l[e]!=`function`&&(b[e]=function(...e){return t.apply(this,e)})}Component({...i,...a,observers:o,lifetimes:{...s,created:function(...e){if(d(this),Array.isArray(f)&&f.length&&Object.defineProperty(this,Je,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h===`created`){try{yi(this,t,n,r,{deferSetData:!0})}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this)}typeof v==`function`&&v.apply(this,e),typeof s.created==`function`&&s.created.apply(this,e)},moved:function(...e){G(this,`onMoved`,e),typeof s.moved==`function`&&s.moved.apply(this,e)},attached:function(...e){if(d(this),Array.isArray(f)&&f.length&&!this[Je]&&Object.defineProperty(this,Je,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h!==`created`||!this.__wevu)try{yi(this,t,n,r)}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this),x(this),h===`created`&&bi(this),G(this,`onAttached`,e),typeof s.attached==`function`&&s.attached.apply(this,e)},ready:function(...e){if(_&&typeof a.onReady==`function`){a.onReady.call(this,...e),typeof s.ready==`function`&&s.ready.apply(this,e);return}if(!this[Me]){this[Me]=!0,g(this),Fr(this,()=>{G(this,`onReady`,e),typeof s.ready==`function`&&s.ready.apply(this,e)});return}typeof s.ready==`function`&&s.ready.apply(this,e)},detached:function(...e){if(G(this,`onDetached`,e),_&&typeof a.onUnload==`function`){a.onUnload.call(this,...e),typeof s.detached==`function`&&s.detached.apply(this,e);return}Ir(this),Array.isArray(p)&&p.length&&this[_e]&&(na(p,this[_e]),delete this[_e]),Si(this),typeof s.detached==`function`&&s.detached.apply(this,e)},error:function(...e){G(this,`onError`,e),typeof s.error==`function`&&s.error.apply(this,e)}},pageLifetimes:{...c,show:function(...e){if(_&&typeof a.onShow==`function`){a.onShow.call(this,...e),typeof c.show==`function`&&c.show.apply(this,e);return}xi(this,!0),G(this,`onShow`,e),typeof c.show==`function`&&c.show.apply(this,e)},hide:function(...e){if(_&&typeof a.onHide==`function`){a.onHide.call(this,...e),typeof c.hide==`function`&&c.hide.apply(this,e);return}xi(this,!1),G(this,`onHide`,e),typeof c.hide==`function`&&c.hide.apply(this,e)},resize:function(...e){if(_&&typeof a.onResize==`function`){a.onResize.call(this,...e),typeof c.resize==`function`&&c.resize.apply(this,e);return}G(this,`onResize`,e),typeof c.resize==`function`&&c.resize.apply(this,e)},routeDone:function(...e){if(_&&typeof a.onRouteDone==`function`){a.onRouteDone.call(this,...e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e);return}G(this,`onRouteDone`,e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e)}},methods:{...b,...l},options:u})}function aa(e,t,n,r,i){var a;let{userMethods:o,userLifetimes:s,userPageLifetimes:c,userOptions:l,restOptions:u,topLevelMethods:d,templateRefs:f,layoutHosts:p,userObservers:m,setupLifecycle:h,legacyCreated:g,isPage:_,features:v,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N,applyExtraInstanceFields:P}=Fi(i),{enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,enableOnSaveExitState:U,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:W,effectiveOnPageScroll:G,effectiveOnRouteDone:K,effectiveOnTabItemTap:ie,effectiveOnResize:ae,effectiveOnShareAppMessage:oe,effectiveOnShareTimeline:q,effectiveOnAddToFavorites:se}=ki({features:v,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N}),ce=(e,t)=>{let n=e[pe];if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=u.export;u.export=function(){var t;let n=(t=this[fe])==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let le={multipleSlots:(a=l.multipleSlots)==null?!0:a,...l},{attachWevuPropKeys:ue,syncWevuPropsFromInstance:de,finalObservers:J}=Li({restOptions:u,userObservers:m}),{finalMethods:me}=Mi({userMethods:{...d,...o},runtimeMethods:t});ia({runtimeApp:e,watch:n,setup:r,restOptions:u,pageLifecycleHooks:ji({runtimeApp:e,watch:n,setup:r,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,isPage:_,enableOnSaveExitState:U,enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:W,effectiveOnPageScroll:G,effectiveOnRouteDone:K,effectiveOnTabItemTap:ie,effectiveOnResize:ae,effectiveOnShareAppMessage:oe,effectiveOnShareTimeline:q,effectiveOnAddToFavorites:se,hasHook:ce}),finalObservers:J,userLifetimes:s,userPageLifetimes:c,finalMethods:me,finalOptions:le,applyExtraInstanceFields:P,templateRefs:f,layoutHosts:p,attachWevuPropKeys:ue,setupLifecycle:h,syncWevuPropsFromInstance:de,isPage:_,legacyCreated:g,getRuntimeOwnerLabel:Pi})}function oa(e){let{[Tn]:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,...c}=e.__wevuDefaultsScope===`component`?e:Nn(e),l=i==null?{}:i,u=r==null?{}:r,d=new Set,f=new Set,p=!1,m={globalProperties:{}},h={mount:wn({data:n,resolvedComputed:u,resolvedMethods:l,appConfig:m,setDataOptions:a}),use(e,...t){if(!e||d.has(e))return h;if(d.add(e),typeof e==`function`)e(h,...t);else if(typeof e.install==`function`)e.install(h,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return h},provide(e,t){return ne(h,e,t),h},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return p?(e(),h):(f.add(e),h)},unmount(){if(!p){p=!0;for(let e of f)e();f.clear()}},config:m,version:Ot},g=typeof App==`function`;try{N(h),Object.defineProperty(h,`__wevuSetDataOptions`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(e){h.__wevuSetDataOptions=a}if(g){let e=H(),t=`__wevuAppRegistered`;e&&e[t]||(e&&(e[t]=!0),Oi(h,i==null?{}:i,o,s,c))}return h}const sa=`__wevu_allowNullPropInput`,ca=`allowNullPropInput`,la=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[null,null],[`null`,null],[`Null`,null]]);function ua(e){return la.get(e)}function da(e){if(e===void 0)return[];let t=Array.isArray(e)?e:[e],n=[];t.forEach(e=>{let t=ua(e);t!==void 0&&(n.includes(t)||n.push(t))});let r=n.filter(e=>e!==null);return r.length>0?r:(n.includes(null),[null])}function fa(e,t){let n=da(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function pa(e,t){if(t===void 0||e.type===t)return;let n=Array.isArray(e.optionalTypes)?[...e.optionalTypes]:[];n.includes(t)||(n.push(t),e.optionalTypes=n)}function ma(e){if(!Array.isArray(e))return[];let t=[];return e.forEach(e=>{let n=ua(e);n==null||t.includes(n)||t.push(n)}),t}function ha(e,t){if(e===void 0)return;if(e===null)return{type:null};if(Array.isArray(e)||typeof e==`function`){let n={};return fa(n,e),t&&n.type!==null&&pa(n,null),Q(n,`type`)||(n.type=null),n}if(typeof e!=`object`)return e;let n={...e};if(`type`in n){var r;let e=da(n.type);n.type=(r=e[0])==null?null:r;let t=ma(n.optionalTypes);for(let n of e.slice(1))n!==null&&!t.includes(n)&&t.push(n);t.length>0?n.optionalTypes=t:delete n.optionalTypes}return Q(n,`type`)||(n.type=null),t&&n.type!==null&&pa(n,null),n}function ga(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{let i=ha(r,t);i!==void 0&&(n[e]=i)}),n}function _a(e,t,n){var r;let i=!!((r=e[sa])==null?e[ca]:r),{[sa]:a,[ca]:o,...s}=e,c=e.properties,l=n==null?c&&typeof c==`object`?c:void 0:n,u=e=>{let t={...e==null?{}:e};return Q(t,He)||(t[He]={type:String,value:``}),Q(t,Ke)||(t[Ke]={type:null,value:null}),Q(t,Be)||(t[Be]={type:null,value:null}),t};if(l||!t){let{properties:e,...t}=s,n=l?i?ga(l,i):l:void 0;return{...t,properties:u(n)}}let d={};return Object.entries(t).forEach(([e,t])=>{if(t!==void 0){if(t===null){d[e]={type:null};return}if(Array.isArray(t)||typeof t==`function`){let n={};fa(n,t),i&&n.type!==null&&pa(n,null),Q(n,`type`)||(n.type=null),d[e]=n;return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){d[e]={type:Object,value:{}};return}let n={};if(`type`in t&&t.type!==void 0&&fa(n,t.type),Array.isArray(t.optionalTypes)){let e=t.optionalTypes.map(e=>ua(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(n.optionalTypes)?n.optionalTypes:[];for(let r of e)r!==n.type&&(t.includes(r)||t.push(r));t.length>0&&(n.optionalTypes=t)}}`observer`in t&&(typeof t.observer==`function`||typeof t.observer==`string`)&&(n.observer=t.observer);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),i&&n.type!==null&&pa(n,null),Q(n,`type`)||(n.type=null),d[e]=n}}}),{...s,properties:u(d)}}const va=/&amp;/g,ya=/&quot;/g,ba=/&#34;/g,xa=/&apos;/g,Sa=/&#39;/g,Ca=/&lt;/g,wa=/&gt;/g;function Ta(e){return e.replace(va,`&`).replace(ya,`"`).replace(ba,`"`).replace(xa,`'`).replace(Sa,`'`).replace(Ca,`<`).replace(wa,`>`)}function Ea(e){var t,n,r,i;let a=Zn((t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,`wvArgs`,e),o=[];if(Array.isArray(a))o=a;else if(typeof a==`string`)try{o=JSON.parse(a)}catch(e){try{o=JSON.parse(Ta(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function Da(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 Oa(e,t){var n,r;let i=Q(t==null?{}:t,Ke)?t[Ke]:e==null||(n=e.properties)==null?void 0:n[Ke],a=Q(t==null?{}:t,Ge)?t[Ge]:e==null||(r=e.properties)==null?void 0:r[Ge],o=Da(i),s=Da(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({[We]:c})}function ka(e){let t={options:{virtualHost:!0},properties:{[Ve]:{type:String,value:``},[Ge]:{type:null,value:null,observer(e){Oa(this,{[Ge]:e})}},[Ke]:{type:null,value:null,observer(e){Oa(this,{[Ke]:e})}}},data:()=>({[Ue]:{},[We]:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t[Ve])==null?``:e;if(Oa(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({[Ue]:e||{}})};this.__wvOwnerUnsub=hr(n,r);let i=_r(n);i&&r(i,gr(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{[Se](e){var t,n,r,i,a;let o=this.__wvOwnerProxy,s=nr(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t[Y]);if(s!==void 0)return s;if(!o)return;let c=Zn((n=(r=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:r)==null?{}:n,`wvHandler`,e);if(typeof c!=`string`||!c)return;let l=o==null?void 0:o[c];if(typeof l!=`function`)return;let u=Ea(e);return l.apply(o,u)}}};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,[Y]:e.inlineMap}),t}function Aa(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ja(e){return typeof e!=`object`||!e||g(e)||m(e)||Array.isArray(e)?!0:Aa(e)}function Ma(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t[Ae])?t[Ae]:[]),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=m(s)?T(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(Vt(i)){var u;e==null||(u=e.__wevu_trackSetupReactiveKey)==null||u.call(e,r)}if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c[Z];return t&&typeof t==`object`&&Q(t,r)?t[r]:e},set(t){e=t;let n=c[Z];if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!ja(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 Na;function Pa(){let e=ie();if(!e)return;let t=e;!t[Re]&&Na&&(t[Re]=Na)}function Fa(e){Pa();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Pn(e),u=oa({data:n,computed:r,methods:i,setData:a,[Tn]:`component`}),d=typeof s==`function`?((e,t)=>{let n=ti(s,e,t);return n&&t&&Ma(t.runtime,t.instance,n),n}):void 0,f=typeof n==`function`?n():n,p=_a(f===void 0?l:{...l,data:f},c),m={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:p};return aa(u,i==null?{}:i,o,d,p),{__wevu_runtime:u,__wevu_options:m}}function Ia(e){var t;Pa();let{properties:n,props:r,...i}=e;Fa(_a({...i,allowNullPropInput:(t=i.allowNullPropInput)==null?!0:t,__wevu_allowNullPropInput:!0},r,n))}function La(e){Ia(ka(e))}Na=La,Pa();const Ra=[`dispose`,`abort`,`cancel`,`stop`,`disconnect`,`destroy`,`close`];function za(e){if(e){if(typeof e==`function`)return e;for(let t of Ra){let n=e[t];if(typeof n==`function`)return()=>n.call(e)}}}function Ba(){if(!U())throw Error(`useDisposables() 必须在 setup() 的同步阶段调用`);let e=new Set,t=!1,n=n=>{let r=za(n);if(!r)return()=>{};if(t){try{r()}catch(e){}return()=>{}}return e.add(r),()=>{e.delete(r)}},r=()=>{if(t)return;t=!0;let n=[...e];e.clear();for(let e of n)try{e()}catch(e){}};return V(r),M(r),{add:n,dispose:r,setTimeout:(e,t,...r)=>{let i=setTimeout(e,t,...r);return n(()=>{clearTimeout(i)}),i},setInterval:(e,t,...r)=>{let i=setInterval(e,t,...r);return n(()=>{clearInterval(i)}),i}}}function Va(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t);if(!W(`globalCreateIntersectionObserver`))return;let i=H(),a=i==null?void 0:i.createIntersectionObserver;if(typeof a==`function`)return B().intersectionObserverScopeByParameter?a.call(i,e,t):a.call(i,t)}function Ha(e,t){var n;if(t===!1||typeof e.relativeToViewport!=`function`)return e;let r=t&&typeof t==`object`?t:void 0;return(n=e.relativeToViewport(r))==null?e:n}function Ua(e){var t;let n=(t=e.context)==null?U():t;if(!n||!z())throw Error(`useElementIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=null,i=()=>{if(r){try{r.disconnect()}catch(e){}r=null}},a=()=>{var t,a;i();let s=o(e.selector);if(!(e.enabled==null||o(e.enabled))||!s)return null;let c=Va(n,o((t=e.observerOptions)==null?{}:t));return!c||typeof c.observe!=`function`?null:(r=Ha(c,(a=e.relativeToViewport)==null?!0:a),r.observe(s,t=>{var n;return(n=e.onObserve)==null?void 0:n.call(e,t)}),r)};return wt(()=>{var t;return[o(e.selector),e.enabled==null?!0:o(e.enabled),o((t=e.observerOptions)==null?{}:t),e.relativeToViewport]},()=>{a()},{deep:!0}),ot(a),lt(i),V(i),M(i),{disconnect:i,observe:a,get observer(){return r}}}function Wa(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t)}function Ga(e,t){if(!W(`globalCreateIntersectionObserver`))return;let n=H(),r=n==null?void 0:n.createIntersectionObserver;if(typeof r==`function`)return B().intersectionObserverScopeByParameter?r.call(n,e,t):r.call(n,t)}function Ka(e={}){var t;let n=U();if(!n)throw Error(`useIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=(t=Wa(n,e))==null?Ga(n,e):t;if(!r||typeof r.disconnect!=`function`)throw Error(`当前运行环境不支持 IntersectionObserver,请检查基础库版本或平台能力`);let i=!1,a=()=>{if(!i){i=!0;try{r.disconnect()}catch(e){}}};return V(a),M(a),r}function qa(e){var t,n;return e?(t=(n=e.split(`?`)[0])==null?void 0:n.replace(/^\/+/,``))==null?``:t:``}function Ja(){let e=se(),t=e[e.length-1],n=e.length||1;return{canGoBack:n>1,currentRoute:qa(t==null?void 0:t.route),stackLength:n}}function Ya(e={}){var t;if(!z())throw Error(`usePageStack() 必须在 setup() 的同步阶段调用`);let n=Ja(),r=d(n.currentRoute),i=d(n.stackLength),a=E(()=>i.value>1),o=()=>{let e=Ja();r.value=e.currentRoute,i.value=e.stackLength};return((t=e.autoRefresh)==null||t)&&(j(o),L(o)),{canGoBack:a,currentRoute:r,refresh:o,stackLength:i}}function Xa(e={}){var t,n;let r=(t=e.defaultStatusBarHeight)==null?20:t,i=(n=e.defaultNavigationBarHeight)==null?44:n,a=H(),o=typeof(a==null?void 0:a.getSystemInfoSync)==`function`?a.getSystemInfoSync():{},s=Number((o==null?void 0:o.statusBarHeight)||r),c;try{c=typeof(a==null?void 0:a.getMenuButtonBoundingClientRect)==`function`?a.getMenuButtonBoundingClientRect():void 0}catch(e){}let l=Number((c==null?void 0:c.top)||0),u=Number((c==null?void 0:c.height)||0),d=l>s&&u>0?(l-s)*2+u:i;return{navigationBarHeight:d,navigationHeight:s+d,statusBarHeight:s}}function Za(e={}){var t;if(!z())throw Error(`useNavigationBarMetrics() 必须在 setup() 的同步阶段调用`);let n=Xa(e),r=d(n.statusBarHeight),i=d(n.navigationBarHeight),a=E(()=>r.value+i.value),o=()=>{let t=Xa(e);r.value=t.statusBarHeight,i.value=t.navigationBarHeight};return((t=e.autoRefresh)==null||t)&&j(o),{navigationBarHeight:i,navigationHeight:a,refresh:o,statusBarHeight:r}}function Qa(e){return typeof e!=`number`||!Number.isFinite(e)?80:Math.max(0,e)}function $a(e){if(!(typeof e!=`number`||!Number.isFinite(e)))return Math.max(0,e)}function eo(e,t={}){var n,r;if(!U())throw Error(`usePageScrollThrottle() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`usePageScrollThrottle() 需要传入回调函数`);let i=Qa(t.interval),a=(n=t.leading)==null?!0:n,o=(r=t.trailing)==null?!0:r,s=$a(t.maxWait),c,l,u=!1,d=0,f,p=()=>{c&&(clearTimeout(c),c=void 0)},m=()=>{l&&(clearTimeout(l),l=void 0)},h=t=>{p(),m(),f=void 0,d=Date.now(),e(t)},g=()=>{let e=f;f=void 0,c=void 0,!(!e||u)&&h(e)},_=()=>{let e=f;l=void 0,!(!e||u)&&h(e)},v=e=>{if(!o||c)return;let t=Math.max(0,i-(e-(d===0?e:d)));c=setTimeout(g,t)},y=e=>{if(typeof s!=`number`||l)return;let t=s-(e-(d===0?e:d));if(t<=0){_();return}l=setTimeout(_,t)};I(e=>{if(u)return;if(i===0){h(e);return}let t=Date.now();if(f=e,a&&(d===0||t-d>=i)){h(e);return}if(typeof s==`number`&&t-(d===0?t:d)>=s){h(e);return}!o&&typeof s!=`number`||(v(t),y(t))});let b=()=>{u||(u=!0,f=void 0,p(),m())};return V(b),M(b),b}function to(e,t={}){A(async()=>{try{await e()}catch(e){var n;await((n=t.onError)==null?void 0:n.call(t,e))}finally{var r;await((r=t.stopPullDownRefresh)==null?(()=>$e.stopPullDownRefresh()):r)()}})}function no(e,t){let n=t==null?U():t;if(!n||!z())throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return n}function ro(e,t,n,r){let i=kr(e);return!i||!t?Promise.resolve(null):(r(n?i.selectAll(t):i.select(t)),new Promise(e=>{i.exec(t=>{let n=Array.isArray(t)?t[0]:null;e(n==null?null:n)})}))}function io(e={}){let t=no(`useSelectorQuery`,e.context);return()=>kr(t)}function ao(e={}){var t;let n=no(`useBoundingClientRect`,e.context),r=(t=e.all)==null?!1:t;return e=>ro(n,e,r,e=>e.boundingClientRect())}function oo(e){var t;let n=no(`useSelectorFields`,e.context),r=(t=e.all)==null?!1:t;return t=>ro(n,t,r,t=>t.fields(e.fields))}function so(e={}){var t;let n=no(`useScrollOffset`,e.context),r=(t=e.all)==null?!1:t;return e=>ro(n,e,r,e=>e.scrollOffset())}const co=/\B([A-Z])/g;function lo(e){return e?e.startsWith(`--`)?e:e.replace(co,`-$1`).toLowerCase():``}function uo(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 fo(e){let t=``;for(let n of Object.keys(e)){let r=_(e[n]);if(r==null)continue;let i=lo(n);if(Array.isArray(r))for(let e of r){let n=_(e);n!=null&&(t=uo(t,`${i}:${n}`))}else t=uo(t,`${i}:${r}`)}return t}function po(e){let t=_(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=po(n);t&&(e=uo(e,t))}return e}return typeof t==`object`?fo(t):``}function mo(e){let t=_(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=mo(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))_(t[e])&&(n+=`${e} `);return n.trim()}return n}function ho(e){let t=e,n=t.setUpdatePerformanceListener;if(typeof n==`function`)return e=>{n.call(t,e)}}function go(e){let t=U();if(!t)throw Error(`useUpdatePerformanceListener() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`useUpdatePerformanceListener() 需要传入监听函数`);let n=ho(t);if(!n)throw Error(`当前实例不支持 setUpdatePerformanceListener,请检查基础库版本或组件上下文`);n(e);let r=!1,i=()=>{if(!r){r=!0;try{n(void 0)}catch(e){}}};return V(i),M(i),i}function _o(){let e=U();if(e!=null&&e[he]&&e[Ie])return e[Ie];throw Error(`defineAppSetup() / use() 只能在 app setup 上下文中调用`)}function vo(e){return e(_o())}function yo(e,...t){return _o().use(e,...t)}const bo=Object.freeze(Object.create(null));function xo(){var e;let t=z();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function So(){var e;let t=z();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?bo:e}function Co(){let e=z();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}const wo=Object.freeze(Object.create(null));function To(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?wo:r}function Eo(e,t){let n=e;try{Object.defineProperty(n,Symbol.iterator,{configurable:!0,value:()=>{let e=0;return{next:()=>e===0?(e+=1,{value:n,done:!1}):e===1?(e+=1,{value:t(),done:!1}):{value:void 0,done:!0}}}})}catch(e){}return n}function Do(e,t,n={}){let r=z();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>To(e,t);return Eo(x({get:()=>{let r=e==null?void 0:e[t];return n.get?n.get(r,o()):r},set:e=>{let t=n.set?n.set(e,o()):e;i==null||i(a,t)}}),o)}function Oo(e){let t=U();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${kt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function ko(){let e=Oo({event:`change`});return function(t,n){return e.model(t,n)}}function Ao(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function jo(e){let t=e[Xe];if(t)return t;let n=new Map;try{Object.defineProperty(e,Xe,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[Xe]=n}return n}function Mo(e){let t=U();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=jo(t),i=r.get(n);if(i)return i;let a=et(null);return r.set(n,a),a}export{Zt as $,oa as A,$i as B,Ya as C,et as Ct,Ia as D,Ba as E,Qi as F,ti as G,yi as H,Xi as I,or as J,lr as K,na as L,Yi as M,ta as N,La as O,Zi as P,jn as Q,ea as R,Za as S,tt as St,Ua as T,xi as U,Oi as V,Si as W,ar as X,sr as Y,Mn as Z,io as _,lt as _t,Do as a,Dt as at,Ja as b,rt as bt,So as c,gt as ct,go as d,ct as dt,$ as et,mo as f,dt as ft,oo as g,ht as gt,so as h,ot as ht,ko as i,Et as it,aa as j,Fa as k,vo as l,pt as lt,ao as m,ft as mt,Ao as n,wt as nt,xo as o,yt as ot,po as p,mt as pt,cr as q,Oo as r,Tt as rt,Co as s,vt as st,Mo as t,Ot as tt,yo as u,ut,to as v,st as vt,Ka as w,nt as wt,Xa as x,it as xt,eo as y,at as yt,ra as z};
1
+ import"./chunk-CbfVNrr-.mjs";import{A as e,C as t,D as n,M as r,N as i,P as a,a as o,b as s,d as c,g as l,h as u,i as d,j as f,k as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,v as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E}from"./store-C-7rPMM3.mjs";import{C as D,D as O,E as k,H as A,M as j,N as M,O as N,S as P,T as F,V as I,X as L,_t as R,at as z,b as ee,ct as te,dt as B,et as V,ft as H,it as U,k as ne,lt as re,mt as W,nt as G,ot as K,pt as ie,rt as ae,st as oe,tt as q,ut as se,w as ce,x as le,y as ue}from"./router-Cm3FUnTw.mjs";import{WEVU_ATTRS_KEY as de,WEVU_EFFECT_SCOPE_KEY as J,WEVU_EXPOSED_KEY as fe,WEVU_HOOKS_KEY as pe,WEVU_INLINE_HANDLER as me,WEVU_INLINE_MAP_KEY as Y,WEVU_IS_APP_INSTANCE_KEY as he,WEVU_LAYOUT_BRIDGE_PAGE_KEYS as ge,WEVU_LAYOUT_HOST_BRIDGE_KEY as _e,WEVU_MODEL_HANDLER as ve,WEVU_NATIVE_INSTANCE_KEY as X,WEVU_ON_BEFORE_UPDATE_HOOK as ye,WEVU_ON_LOAD_CALLED_KEY as be,WEVU_ON_UPDATED_HOOK as xe,WEVU_OWNER_HANDLER as Se,WEVU_PAGE_LAYOUT_NAME_KEY as Ce,WEVU_PAGE_LAYOUT_NONE as we,WEVU_PAGE_LAYOUT_PROPS_KEY as Te,WEVU_PAGE_LAYOUT_SETTER_KEY as Ee,WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY as De,WEVU_PARENT_INSTANCE_KEY as Oe,WEVU_PENDING_PROP_VALUES_KEY as ke,WEVU_PROPS_KEY as Z,WEVU_PROP_KEYS_KEY as Ae,WEVU_PUBLIC_RUNTIME_KEY as je,WEVU_READY_CALLED_KEY as Me,WEVU_RESERVED_METHOD_PREFIX as Ne,WEVU_ROUTE_DONE_CALLED_KEY as Pe,WEVU_ROUTE_DONE_IN_TICK_KEY as Fe,WEVU_RUNTIME_APP_KEY as Ie,WEVU_RUNTIME_KEY as Le,WEVU_SCOPED_SLOT_CREATOR_KEY as Re,WEVU_SETUP_CONTEXT_INSTANCE_KEY as ze,WEVU_SLOT_NAMES_PROP as Be,WEVU_SLOT_OWNER_ID_KEY as Ve,WEVU_SLOT_OWNER_ID_PROP as He,WEVU_SLOT_OWNER_KEY as Ue,WEVU_SLOT_PROPS_DATA_KEY as We,WEVU_SLOT_PROPS_KEY as Ge,WEVU_SLOT_SCOPE_KEY as Ke,WEVU_TEMPLATE_REFS_CALLBACKS_KEY as qe,WEVU_TEMPLATE_REFS_KEY as Je,WEVU_TEMPLATE_REFS_PENDING_KEY as Ye,WEVU_TEMPLATE_REF_MAP_KEY as Xe,WEVU_WATCH_STOPS_KEY as Ze}from"@weapp-core/constants";import{resolveMiniProgramPageKeys as Qe}from"@weapp-core/shared";import{wpi as $e}from"@wevu/api";function et(e,t){return x((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function tt(e){return g(e)&&typeof e.value!=`function`}function nt(e){if(g(e)){let t=e.dep;if(t){r(t);return}e.value=e.value}}function rt(e,t,n){let r=e[t];return g(r)?r:x((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function it(e){m(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=rt(e,n);return t}function at(e,t=1/0,n=new Map){if(t<=0||!S(e))return e;if(g(e))return at(e.value,t-1,n),e;if(e.__r_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=>at(e,i,n)),e;let a=m(e)&&t!==1/0?T(e):e;for(let t in a)at(e[t],i,n);return e}function ot(e){K(q(`onMounted`),`onReady`,e)}function st(e){K(q(`onUpdated`),xe,e)}function ct(e){q(`onBeforeUnmount`),e()}function lt(e){K(q(`onUnmounted`),`onUnload`,e)}function ut(e){q(`onBeforeMount`),e()}function dt(e){K(q(`onBeforeUpdate`),ye,e)}function ft(e){let t=q(`onErrorCaptured`);K(t,`onError`,n=>e(n,t,``))}function pt(e){K(q(`onActivated`),`onShow`,e)}function mt(e){K(q(`onDeactivated`),`onHide`,e)}function ht(e){q(`onServerPrefetch`)}function gt(e,t){G(e,t===`before`?ye:xe)}let _t=`version`;function vt(e){_t=e}function yt(){return _t}function bt(e){if(typeof e==`function`)return e();if(g(e))return e.value;if(m(e))return e;throw Error(`无效的 watch 源`)}function xt(e){let t=m(e),n=Array.isArray(e)&&!t,r;if(n){let t=e;r=()=>t.map(e=>bt(e))}else if(typeof e==`function`)r=e;else if(g(e))r=()=>e.value;else if(t)r=()=>e;else throw Error(`无效的 watch 源`);return{getter:r,isMultiSource:n,isReactiveSource:t}}function St(e,t,n,r,i){let a=n?t.some(e=>m(e)):r,o=i==null?a:i;if(!(o===!0||typeof o==`number`))return e;let s=typeof o==`number`?o:o?1/0:0;return()=>{let t=e(),r=yt();return n&&Array.isArray(t)?t.map(e=>r===`version`&&m(e)?(l(e),e):at(e,s)):r===`version`&&m(t)?(l(t),t):at(t,s)}}function Ct(e,t,n,r){if(r){r(e,n);return}if(t===`sync`){e();return}if(t===`post`){i(()=>a(e));return}n?e():a(e)}function wt(e,r,i={}){var a;let o=U(),s=xt(e),c=St(s.getter,e,s.isMultiSource,s.isReactiveSource,i.deep),l,u=e=>{l=e},d,f,m=!1,h=0,g=h,_,v=i.once?(e,t,n)=>{r(e,t,n),_()}:r,y=(a=i.flush)==null?`pre`:a,b=e=>{if(!f.active||m||e!==h)return;let t=f();l==null||l();let n=U();oe(o);try{v(t,d,u)}finally{oe(n)}d=t},x=()=>b(g),S=e=>{g=h,Ct(x,y,e,i.scheduler)};f=t(()=>c(),{scheduler:()=>{m||S(!1)},lazy:!0});let C=()=>{l==null||l(),l=void 0,p(f)};return _=C,_.stop=C,_.pause=()=>{m||(m=!0,h+=1)},_.resume=()=>{!m||!f.active||(m=!1,d=f())},i.immediate?b(h):d=f(),n(_),_}function Tt(e,r={}){var i;let a=U(),o,s=e=>{o=e},c,l=!1,u=0,d=u,f=(i=r.flush)==null?`pre`:i,m=e=>{!c.active||l||e!==u||c()},h=()=>m(d),g=e=>{d=u,Ct(h,f,e)};c=t(()=>{o==null||o(),o=void 0;let t=U();oe(a);try{e(s)}finally{oe(t)}},{lazy:!0,scheduler:()=>{l||g(!1)}}),g(!0);let _=()=>{o==null||o(),o=void 0,p(c)},v=_;return v.stop=_,v.pause=()=>{l||(l=!0,u+=1)},v.resume=()=>{!l||!c.active||(l=!1,g(!0))},n(v),v}function Et(e,t={}){return Tt(e,{...t,flush:`post`})}function Dt(e,t={}){return Tt(e,{...t,flush:`sync`})}const Ot=`6.16.7`;function kt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function At(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function jt(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Mt(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 Nt(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 Pt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])jt(n,a,i);else{let t=e[a];g(t)?t.value=i:e[a]=i}return}if(t[a]){jt(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Nt(e[a],o,i)}function Ft(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function It(e){return Mt(e)}function Lt(e,t,n,r){return(i,a)=>{let o=At(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ft(e,o),c=e=>{Pt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:It,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${kt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}function Rt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zt(e){return Array.isArray(e)||Rt(e)}function Bt(e){if(Array.isArray(e))return e;let t=[];for(let n of Object.keys(e)){let r=Object.getOwnPropertyDescriptor(e,n);!r||typeof r.get==`function`||t.push(r.value)}return t}function Vt(e,t=new WeakSet){return g(e)||m(e)?!0:!e||typeof e!=`object`||t.has(e)||(t.add(e),!zt(e))?!1:Bt(e).some(e=>Vt(e,t))}function Ht(e,t=new WeakSet){if(g(e)){let n=e.value;m(n)&&l(n),Ht(n,t);return}if(m(e)){l(e),Ht(T(e),t);return}!e||typeof e!=`object`||t.has(e)||!zt(e)||(t.add(e),Bt(e).forEach(e=>Ht(e,t)))}const Ut=`__wevu_native_bridge__`;function Wt(e){try{Object.defineProperty(e,Ut,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Ut]=!0}}function Gt(e){return typeof e==`function`&&!!e[Ut]}function Kt(n){let r=Object.create(null),i=Object.create(null),a=new Set;return{computedRefs:r,computedSetters:i,dirtyComputedKeys:a,createTrackedComputed:(r,i,o)=>{let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),e(u,`value`),s},set value(e){if(!o)throw Error(`计算属性是只读的`);o(e)}};return y(u),l=t(i,{lazy:!0,scheduler:()=>{c||(c=!0,n.setDataStrategy===`patch`&&n.includeComputed&&a.add(r),f(u,`value`))}}),u},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&r[t])return r[t].value},has(e,t){return typeof t==`string`&&!!r[t]},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&r[t])return{configurable:!0,enumerable:!0,value:r[t].value}}})}}function qt(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:f,computedProxy:p}=Kt({includeComputed:a,setDataStrategy:o}),m=d(0),h=(e,t)=>{let n=T(e),r=n[Le],i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Gt(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`createIntersectionObserver`)||a(n,`setData`)),s=n[X];if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},g=e=>{if(Q(s,e))return;let n=(...n)=>{let r=h(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Wt(n),s[e]=n},_=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(m.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return p;if(Q(s,n))return s[n];if(c[n])return c[n].value;if(Q(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=h(e,r);if(t&&Reflect.has(t,n)){let e=Reflect.get(t,n);return typeof e==`function`?e.bind(t):e}}return Reflect.get(e,n,r)},set(e,t,n,r){if(typeof t==`string`&&c[t])return jt(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=h(e,r);return i&&Reflect.has(i,t)?Reflect.set(i,t,n):Reflect.set(e,t,n,r)},has(e,t){if(t===`data`||typeof t==`string`&&(c[t]||Q(s,t)))return!0;let n=h(e,e);return n&&Reflect.has(n,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)),[...t]},getOwnPropertyDescriptor(e,n){if(Reflect.has(e,n))return Object.getOwnPropertyDescriptor(e,n);if(typeof n==`string`){if(n===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(c[n])return{configurable:!0,enumerable:!0,get(){return c[n].value},set(e){jt(l,n,e)}};if(Q(s,n))return{configurable:!0,enumerable:!1,value:s[n]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(_,e);return}e===Y&&t&&typeof t==`object`&&(s[e]=t)}),g(`triggerEvent`),g(`createSelectorQuery`),g(`createIntersectionObserver`),g(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=f(e,()=>t.call(_));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(_);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(_);a?(l[e]=a,c[e]=f(e,n,a)):c[e]=f(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:p,publicInstance:_,touchSetupMethodsVersion(){m.value+=1}}}function Jt(e){return e!==`patch`&&e!==`diff`}function Yt(e){if(e!==`off`)return t=>{if(e===`fallback`&&!Jt(t.reason))return;let n=typeof t.bytes==`number`?t.bytes:t.estimatedBytes,r=typeof n==`number`?`${n}B`:`unknown`,i=[`mode=${t.mode}`,`reason=${t.reason}`,`pending=${t.pendingPatchKeys}`,`keys=${t.payloadKeys}`,`bytes=${r}`];typeof t.mergedSiblingParents==`number`&&i.push(`mergedParents=${t.mergedSiblingParents}`),typeof t.computedDirtyKeys==`number`&&i.push(`computedDirty=${t.computedDirtyKeys}`);let a=`[wevu:setData] ${i.join(` `)}`;if(Jt(t.reason)){console.warn(a);return}console.info(a)}}const Xt=Symbol(`wevu.noSetData`);function $(e){return Object.defineProperty(e,Xt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function Zt(e){return typeof e==`object`&&!!e&&e[Xt]===!0}function Qt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function $t(e,t,n,r,i){let a=_(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(Zt(a))return;let o=m(a)?T(a):a,s=n&&(m(a)||!Vt(o))?n:void 0;if(r<=0||i.keys<=0)return o;if(s){let e=b(o),t=s.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([$t(r,t,void 0,1/0,{keys:1/0}),$t(n,t,void 0,1/0,{keys:1/0})])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push($t(n,t,void 0,1/0,{keys:1/0}))}),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=[...e];return t.set(o,n),n.map(e=>$t(e,t,void 0,1/0,{keys:1/0}))}let n=[...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=[];t.set(o,e);let a=r-1;for(let r=0;r<o.length;r+=1){let s=$t(o[r],t,n,a,i);e[r]=s===void 0?null:s}return s&&s.set(o,{version:b(o),value:e}),e}let c={};t.set(o,c);let l=r-1;for(let e of Object.keys(o)){if(--i.keys,i.keys<=0)break;let r=$t(o[e],t,n,l,i);r!==void 0&&(c[e]=r)}return s&&s.set(o,{version:b(o),value:c}),c}function en(e,t=new WeakMap,n){var r,i;let a=(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,o=(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;return $t(e,t,n==null?void 0:n.cache,a,o)}function tn(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 nn(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(!Q(t,i)||!n(e[i],t[i]))return!1;return!0}function rn(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?tn(e,t,rn):Qt(e)&&Qt(t)?nn(e,t,rn):!1}function an(e){return e===void 0?null:e}function on(e,t,n,r){if(!rn(e,t)){if(Qt(e)&&Qt(t)){for(let i of Object.keys(t)){if(!Q(e,i)){r[`${n}.${i}`]=an(t[i]);continue}on(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Q(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){tn(e,t,rn)||(r[n]=an(t));return}r[n]=an(t)}}function sn(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||on(e[n],t[n],n,r);for(let n of Object.keys(e))i!=null&&i.has(n)||Q(t,n)||(r[n]=null);return r}function cn(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n={},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 ln(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+=ln(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+=ln(a,t-i,n),i>t)return i;return i}function un(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ln(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 dn(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=[...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.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=ln(e,1/0,new WeakSet);return h.set(e,n),n}return ln(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Q(p,e))continue;let n=t.filter(e=>Q(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 fn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function pn(e){return e===void 0?null:e}function mn(e){if(Array.isArray(e))return e.map(e=>mn(e));if(!fn(e))return e;let t={};for(let n of Object.keys(e))t[n]=mn(e[n]);return t}function hn(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(!fn(e)||!fn(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(!Q(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function gn(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(!gn(e[i],t[i],n-1,r))return!1;return!0}if(!fn(e)||!fn(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||!Q(t,a)||!gn(e[a],t[a],n-1,r))return!1;return!0}function _n(e,t,n,r,i){var a;let o=(a=i==null?void 0:i.cloneValue)==null?!0:a,s=t.split(`.`).filter(Boolean);if(!s.length)return;let c=e;for(let e=0;e<s.length-1;e++){let t=s[e];(!Q(c,t)||c[t]==null||typeof c[t]!=`object`)&&(c[t]={}),c=c[t]}let l=s[s.length-1];if(r===`delete`)try{delete c[l]}catch(e){c[l]=null}else c[l]=o?mn(n):n}function vn(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l={},u=Number.isFinite(s)?{keys:s}:void 0,d=m(t)?T(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=en(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=en(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function yn(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=[...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 P=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},F=e=>{if(O.has(e))return O.get(e);let t=pn(en(P(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]=F(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]=F(e)}let I=0;if(i&&r.size){let e=Object.create(null),t=[...r];r.clear(),I=t.length;for(let r of t){if(!l(r))continue;let t=en(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?gn(i,t,o,{keys:s}):a===`shallow`?hn(i,t):Object.is(i,t))||(e[r]=pn(t),C[r]=mn(t))}Object.assign(k,e)}let L=cn(k),R=0;if(f){let e=dn({input:L,entryMap:N,getPlainByPath:F,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});R=e.merged,L=cn(e.out)}let z=un(L,d),ee=z.fallback;if(T({mode:ee?`diff`:`patch`,reason:ee?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length,mergedSiblingParents:R||void 0,computedDirtyKeys:I||void 0,estimatedBytes:z.estimatedBytes,bytes:z.bytes}),ee){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(L).length){for(let[e,t]of Object.entries(L)){let n=N.get(e);n?_n(S,e,t,n.kind===`array`?`set`:n.op,{cloneValue:!1}):_n(S,e,t,`set`,{cloneValue:!1})}if(typeof c.setData==`function`){let e=c.setData(L);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length})}}function bn(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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,debug:C,debugWhen:w,debugSampleRate:E,runTracker:D,isMounted:O}=e,k=new WeakMap,A={},j=Object.create(null),M=Object.create(null),N=Object.create(null),P={value:a===`patch`},F=new Map,I=new Set,L=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},R=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?e.every((e,n)=>R(e,t[n])):!1;if(L(e)&&L(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>Q(t,n)&&R(e[n],t[n])):!1}return!1},z=e=>{let t=g(e)?e.value:e;if(typeof t!=`object`||!t)return t;if(!m(t)&&Vt(t))return{snapshot:en(t,new WeakMap,{maxDepth:x,maxKeys:S})};let n=m(t)?T(t):t;return{raw:n,version:b(n)}},ee=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!Q(e,`raw`)||!Q(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&Q(e,`snapshot`)&&Q(t,`snapshot`)?R(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,te=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=g(i)?i.value:i;!a||typeof a!=`object`||T(a)===e&&n.push(r)}return n},B=e=>{if(!C)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(w===`fallback`&&!t)&&!(E<1&&Math.random()>E))try{C(e)}catch(e){}},V=()=>vn({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:k,toPlainMaxDepth:x,toPlainMaxKeys:S}),H=()=>{let e=m(t)?T(t):t,r={...A},a=new WeakMap,o=new Set,s=new Set,c=new Set;for(let t of Object.keys(e)){if(!u(t))continue;o.add(t);let n=z(e[t]),i=M[t];i&&n&&typeof i==`object`&&typeof n==`object`&&Q(i,`raw`)&&Q(n,`raw`)&&Array.isArray(i.raw)&&Array.isArray(n.raw)&&i.raw!==n.raw&&c.add(t),(!ee(i,n)||!Q(A,t))&&(r[t]=en(e[t],a,{cache:k,maxDepth:x,maxKeys:S})),M[t]=n}for(let e of Object.keys(M))o.has(e)||(delete M[e],(!i||!Q(n,e))&&delete r[e]);if(!i){for(let e of Object.keys(N))delete N[e];return{snapshot:r,replacedTopLevelKeys:c}}for(let e of Object.keys(n)){if(!u(e))continue;s.add(e);let t=n[e].value,i=z(t);(!ee(N[e],i)||!Q(A,e))&&(r[e]=en(t,a,{cache:k,maxDepth:x,maxKeys:S})),N[e]=i}for(let t of Object.keys(N))s.has(t)||(delete N[t],(!Q(e,t)||!u(t))&&delete r[t]);return{snapshot:r,replacedTopLevelKeys:c}},U=(e=`diff`)=>{var t;let o=a===`diff`?H():void 0,s=(t=o==null?void 0:o.snapshot)==null?V():t,c=o?(()=>{let e={};for(let t of o.replacedTopLevelKeys)e[t]=s[t];return{...sn(A,s,{skipKeys:o.replacedTopLevelKeys}),...e}})():sn(A,s);if(A=s,P.value=!1,F.clear(),a===`patch`&&i){j=Object.create(null);for(let e of Object.keys(n))u(e)&&(j[e]=s[e]);r.clear()}if(Object.keys(c).length){if(typeof l.setData==`function`){let e=l.setData(c);e&&typeof e.then==`function`&&e.catch(()=>{})}B({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(c).length})}};return{job:e=>{if(O())if(D(),a===`patch`&&!P.value){if(!(F.size>0||I.size>0||i&&r.size>0)){U(`diff`);return}yn({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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,plainCache:k,pendingPatches:F,fallbackTopKeys:I,latestSnapshot:A,latestComputedSnapshot:j,needsFullSnapshot:P,emitDebug:B,runDiffUpdate:U})}else U(P.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!O())return;if(e.root!==t){let t=te(e.root);if(t.length)for(let e of t)I.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)I.add(t);else P.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&F.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?V():{...A},cloneLatestSnapshot:()=>({...A}),getLatestSnapshot:()=>A}}function xn(e){var t,n,r,i,a,o,s;let c=(t=e==null?void 0:e.includeComputed)==null?!0:t,l=(n=e==null?void 0:e.suspendWhenHidden)==null?!1:n,u=(r=e==null?void 0:e.strategy)==null?`diff`:r,d=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,f=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,p=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,m=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,h=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,g=(i=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:i,_=(a=e==null?void 0:e.computedCompare)==null?u===`patch`?`deep`:`reference`:a,v=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,y=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,b=e==null?void 0:e.prelinkMaxDepth,x=e==null?void 0:e.prelinkMaxKeys,S=e==null?void 0:e.debug,C=(o=e==null?void 0:e.diagnostics)==null?`off`:o,w=(s=e==null?void 0:e.debugWhen)==null?`fallback`:s,T=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,E=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,D=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,O=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,k=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,A=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:c,suspendWhenHidden:l,setDataStrategy:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,computedCompare:_,computedCompareMaxDepth:v,computedCompareMaxKeys:y,prelinkMaxDepth:b,prelinkMaxKeys:x,debug:S,diagnostics:C,debugWhen:w,debugSampleRate:T,elevateTopKeyThreshold:E,toPlainMaxDepth:D,toPlainMaxKeys:O,pickSet:k,omitSet:A,shouldIncludeKey:e=>!(k&&!k.has(e)||A&&A.has(e))}}function Sn(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 Cn(e){return typeof e==`function`?e():e==null?{}:e}function wn(e){let{data:n,resolvedComputed:r,resolvedMethods:i,appConfig:o,setDataOptions:d}=e;return e=>{let f=Cn(n);if(f&&typeof f==`object`&&!Q(f,Z))try{Object.defineProperty(f,Z,{value:v(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let g=c(f),_=r,y=i,b=!0,x=[],S=new Set;Object.keys(g).forEach(e=>{let t=g[e];Vt(t)&&S.add(e)});let{includeComputed:C,setDataStrategy:E,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,prelinkMaxDepth:I,prelinkMaxKeys:L,debug:R,diagnostics:z,debugWhen:ee,debugSampleRate:te,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,shouldIncludeKey:U}=xn(d),ne=Yt(z),re=R||ne?e=>{typeof R==`function`&&R(e),ne==null||ne(e)}:void 0,W=z===`always`?`always`:ee,{boundMethods:G,computedRefs:K,computedSetters:ie,dirtyComputedKeys:ae,computedProxy:oe,publicInstance:q,touchSetupMethodsVersion:se}=qt({state:g,computedDefs:_,methodDefs:y,appConfig:o,includeComputed:C,setDataStrategy:E}),ce=e==null?{setData:()=>{}}:e,le=T(g),ue,J=bn({state:g,computedRefs:K,dirtyComputedKeys:ae,includeComputed:C,setDataStrategy:E,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,currentAdapter:ce,shouldIncludeKey:U,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,debug:re,debugWhen:W,debugSampleRate:te,runTracker:()=>ue==null?void 0:ue(),isMounted:()=>b}),fe=()=>J.job(le),pe=e=>J.mutationRecorder(e,le);ue=t(()=>{l(g);let e=g[Z];m(e)&&l(e);let t=g[de];m(t)&&l(t),S.forEach(e=>{let t=g[e];Ht(t)})},{lazy:!0,scheduler:()=>a(fe)}),fe(),x.push(Sn(()=>p(ue))),E===`patch`&&(u(g,{shouldIncludeTopKey:U,maxDepth:I,maxKeys:L}),s(pe),x.push(Sn(()=>w(pe))),x.push(Sn(()=>h(g))));function me(e,t,n){let r=wt(e,(e,n)=>t(e,n),n);return x.push(r),Sn(()=>{r();let e=x.indexOf(r);e>=0&&x.splice(e,1)},r)}let Y={get state(){return g},get proxy(){return q},get methods(){return G},get computed(){return oe},get adapter(){return ce},bindModel:Lt(q,g,K,ie),watch:me,snapshot:()=>J.snapshot(),unmount:()=>{b&&(b=!1,x.forEach(e=>{try{e()}catch(e){}}),x.length=0)}};try{Object.defineProperty(Y,`__wevu_touchSetupMethodsVersion`,{value:se,configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_touchSetupMethodsVersion=se}try{Object.defineProperty(Y,`__wevu_flushSetupSnapshotSync`,{value:fe,configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_flushSetupSnapshotSync=fe}try{Object.defineProperty(Y,`__wevu_cloneLatestSnapshot`,{value:J.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_cloneLatestSnapshot=J.cloneLatestSnapshot}try{Object.defineProperty(Y,`__wevu_trackSetupReactiveKey`,{value:e=>{S.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){Y.__wevu_trackSetupReactiveKey=e=>{S.add(e)}}return Y}}const Tn=`__wevuDefaultsScope`;let En={};function Dn(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function On(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Dn(e.setData),i=Dn(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Dn(e.options),o=Dn(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function kn(e,t){return On(e,t)}function An(e,t){return{app:On(e.app,t.app),component:On(e.component,t.component)}}function jn(e){En=An(En,e)}function Mn(){En={}}function Nn(e){return kn(En.app,e)}function Pn(e){return kn(En.component,e)}const Fn=/&amp;/g,In=/&quot;/g,Ln=/&#34;/g,Rn=/&apos;/g,zn=/&#39;/g,Bn=/&lt;/g,Vn=/&gt;/g;function Hn(e){return e.replace(Fn,`&`).replace(In,`"`).replace(Ln,`"`).replace(Rn,`'`).replace(zn,`'`).replace(Bn,`<`).replace(Vn,`>`)}function Un(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}}const Wn=/[^a-z0-9]+/gi,Gn=/^-+|-+$/g;function Kn(e){return e.trim().replace(Wn,`-`).replace(Gn,``).toLowerCase()}const qn=/-([a-z0-9])/g;function Jn(e,t){let n=Kn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(qn,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}const Yn={wvEventDetail:[`wd`,`wvEventDetail`],wvHandler:[`wh`,`wvHandler`],wvInlineId:[`wi`,`wvInlineId`]};function Xn(e,t,n){var r;let i=(r=Yn[t])==null?[t]:r;for(let t of i){let r=Jn(t,n);if(r&&(e==null?void 0:e[r])!==void 0)return e[r]}for(let t of i)if((e==null?void 0:e[t])!==void 0)return e[t]}function Zn(e,t,n){return Xn(e,t,n)}function Qn(e,t){let n=Zn(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function $n(e,t){if(!Qn(t,e))return e;if(!(!e||typeof e!=`object`||!(`detail`in e)))return e.detail}function er(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=g(e)?e.value:e;for(let e of n){if(g(r)&&(r=r.value),r==null)return;r=r[e]}return g(r)?r.value:r}function tr(e){if(typeof e!=`object`||!e||g(e)||m(e))return e;try{return c(e)}catch(t){return e}}function nr(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=$n(n,c),u=Zn(c,`wvInlineId`,n);if(u&&r){let t=r[u];if(t&&typeof t.fn==`function`){let n={},r=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<r.length;e+=1){let t=r[e];n[t]=c==null?void 0:c[`wvS${e}`]}let i=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<i.length;e+=1){let t=i[e],r=Un(c==null?void 0:c[`wvI${e}`]);r!==void 0&&(n[t]=r)}let a=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<r.length;t+=1){let i=r[t],o=a[t];try{let t;if(typeof o==`function`)t=o(e,n,l);else if(o&&typeof o==`object`&&o.type===`for-item`){let r=n[o.indexKey],i=er(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=tr(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=Zn(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=Zn(c,`wvArgs`,n),m=[];if(Array.isArray(p))m=p;else if(typeof p==`string`)try{m=JSON.parse(p)}catch(e){try{m=JSON.parse(Hn(p))}catch(e){m=[]}}Array.isArray(m)||(m=[]);let h=m.map(e=>e===`$event`?l:e),g=e==null?void 0:e[f];if(typeof g==`function`)return g.apply(e,h)}function rr(){let e=P();if(e)return e;let t=se();return t[t.length-1]}function ir(e){return e===we?!1:e}function ar(){var e,t;if(!z())throw Error(`usePageLayout() 必须在 setup() 的同步阶段调用`);let n=U(),r=n==null||(e=n.__wevu)==null?void 0:e.state,i=c({name:ir(r==null?void 0:r[Ce]),props:{...(t=r==null?void 0:r[Te])==null?{}:t}});return n&&(n.__wevuPageLayoutState=i),R(i)}function or(e,t,n){let r=e.__wevuPageLayoutState;r&&(r.name=t,r.props={...n})}function sr(e){var t,n;let r=e.__wevuPageLayoutState,i=(t=e.__wevu)==null?void 0:t.state;!r||!i||(r.name=ir(i[Ce]),r.props={...(n=i[Te])==null?{}:n})}function cr(e,t){let n=U(),r=n==null?void 0:n[Ee];if(typeof r==`function`){r(e,t);return}let i=rr(),a=i==null?void 0:i[Ee];if(typeof a==`function`){a(e,t);return}throw Error(`setPageLayout() 未找到当前页面实例。请在页面 setup()、事件回调或当前页面上下文中调用。`)}function lr(e){return e===!1?we:e}const ur=new Map;let dr=0;function fr(){return dr+=1,`wv${dr}`}function pr(e,t,n){var r;let i=(r=ur.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,ur.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function mr(e){ur.delete(e)}function hr(e,t){var n;let r=(n=ur.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),ur.set(e,r),()=>{let n=ur.get(e);n&&n.subscribers.delete(t)}}function gr(e){var t;return(t=ur.get(e))==null?void 0:t.proxy}function _r(e){var t;return(t=ur.get(e))==null?void 0:t.snapshot}function vr(e){let t=e.__wevu_cloneLatestSnapshot;return typeof t==`function`?t():typeof e.snapshot==`function`?e.snapshot():{}}function yr(e,t,n){var r;try{t.state[Ve]=n}catch(e){}try{e[Ve]=n}catch(e){}let i=vr(t),a=(r=e[Z])==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;pr(n,i,t.proxy)}function br(e){return e.kind===`component`}function xr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return g(r)?r.value:r},set(e,t,n,r){let i=e[t];return g(i)&&!g(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Sr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=xr(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 Cr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return $(new Proxy(e,{get(e,t,r){if(Reflect.has(e,t))return Reflect.get(e,t,r);let i=n[t];return typeof i==`function`?i.bind(n):i},set(e,t,r,i){return Reflect.has(e,t)?Reflect.set(e,t,r,i):(t in n,n[t]=r,!0)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return[...new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)])]},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);let r=Object.getOwnPropertyDescriptor(n,t);return r&&{...r,configurable:!0}}}))}function wr(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n[fe];return r&&typeof r==`object`?Sr(n,r):(t=n[je])!=null&&t.proxy?n[je].proxy:e}function Tr(e){return e[Xe]}function Er(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Dr(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}:g(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Or(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=$(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function kr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();if(!W(`globalCreateSelectorQuery`))return null;let n=H();if(n&&typeof n.createSelectorQuery==`function`){let e=n.createSelectorQuery();return e?B().selectorQueryScopeByIn&&typeof e.in==`function`?e.in(t):e:null}return null}function Ar(e,t,n,r,i){let a=kr(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 jr(e,t,n){return $({selector:t,boundingClientRect:r=>Ar(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Ar(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Ar(e,t,n,e=>e.fields(r),i),node:r=>Ar(e,t,n,e=>e.node(),r)})}function Mr(e,t){let n=e;if(!n)return t.inFor?$([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return $((Array.isArray(r)?r:[]).map((n,r)=>Cr(jr(e,t.selector,{multiple:!0,index:r}),wr(n))))}return $([])}let r=jr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Cr(r,wr(n.selectComponent(t.selector))):r}function Nr(e,t,n){return t.inFor?$((Array.isArray(n)?n:[]).map((n,r)=>jr(e,t.selector,{multiple:!0,index:r}))):n?jr(e,t.selector,{multiple:!1}):null}function Pr(e,t){let n=e[Je];if(!n||!n.length){t==null||t();return}if(!e[Me]){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Tr(e),i=n.filter(e=>!br(e)),a=n.filter(e=>br(e)).map(t=>({binding:t,value:Mr(e,t)})),o=n=>{var i,a;let o=Or(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=Dr(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?$(t.values):t.values[0]:t.hasFor?$([]):null,o[e]=n,Er(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=kr(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:Nr(e,n.binding,i)}});o([...a,...n])})}function Fr(e,t){let n=e[Je];if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e[qe])==null?[]:r;n.push(t),e[qe]||Object.defineProperty(e,qe,{value:n,configurable:!0,enumerable:!1,writable:!0})}e[Ye]||(e[Ye]=!0,i(()=>{e[Ye]=!1,Pr(e,()=>{let t=e[qe];!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function Ir(e){var t,n;let r=e[Je];if(!r||!r.length)return;let i=Or(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Tr(e);for(let t of r){let n=Dr(e,t),r=t.inFor?$([]):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,Er(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}const Lr=[`triggerEvent`,`createSelectorQuery`,`createIntersectionObserver`,`setData`,`setUpdatePerformanceListener`];function Rr(){return Object.freeze(Object.create(null))}const zr=()=>[];function Br(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:!e||typeof e!=`object`?[]:Object.entries(e).filter(([,e])=>!!e).map(([e])=>e)}function Vr(e){if(!Q(e,Be))return Rr();let t=()=>Br(e[Be]),n=e=>typeof e==`string`&&t().includes(e);return new Proxy(Object.create(null),{get(e,t){if(n(t))return zr},has(e,t){return n(t)},ownKeys(){return t()},getOwnPropertyDescriptor(e,t){if(n(t))return{configurable:!0,enumerable:!0,value:zr}},set(){return!1},deleteProperty(){return!1}})}function Hr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Ur(e){try{return $(e)}catch(t){return e}}function Wr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Q(e,`bubbles`)||Q(e,`composed`)||Q(e,`capturePhase`)}function Gr(e){if(e.length===0)return{detail:void 0,options:void 0};if(e.length===1)return{detail:e[0],options:void 0};let t=e[e.length-1];if(Wr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}function Kr(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?T(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Gt(r))return!0;let i=t[n];return typeof i==`function`&&r===i},s=e=>!e||typeof e!=`object`||e===t||e===a||o(e)?!1:typeof e[n]==`function`,c=i?i[X]:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function qr(e,t,n){Wt(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Jr(e,t){let n=e[ze];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Kr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Gt(i))return e};qr(r,`triggerEvent`,(...e)=>{let[t,n,r]=e,a=i(`triggerEvent`);a&&typeof a.triggerEvent==`function`&&(e.length>=3?a.triggerEvent(t,n,r):a.triggerEvent(t,n))}),qr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=H();if(!W(`globalCreateSelectorQuery`)||!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||!B().selectorQueryScopeByIn||typeof o.in!=`function`)return o;let s=(n=Kr(t,e,`setData`))==null?e:n;return o.in(s)}),qr(r,`createIntersectionObserver`,n=>{var r;let a=i(`createIntersectionObserver`);if(a&&typeof a.createIntersectionObserver==`function`)return a.createIntersectionObserver(n==null?{}:n);let o=H();if(!W(`globalCreateIntersectionObserver`)||!o||typeof o.createIntersectionObserver!=`function`)return;let s=(r=Kr(t,e,`setData`))==null?e:r;return B().intersectionObserverScopeByParameter?o.createIntersectionObserver(s,n==null?{}:n):o.createIntersectionObserver(n==null?{}:n)}),qr(r,`setData`,(e,n)=>{let r=i(`setData`);if(r&&typeof r.setData==`function`)return r.setData(e,n);let a=t==null?void 0:t.adapter,o=typeof(a==null?void 0:a.setData)==`function`?a.setData(e):void 0;return typeof n==`function`&&n(),o}),qr(r,`setUpdatePerformanceListener`,e=>{let t=i(`setUpdatePerformanceListener`);if(t&&typeof t.setUpdatePerformanceListener==`function`)return t.setUpdatePerformanceListener(e)});let a=Ur(new Proxy(r,{get(t,n,r){if(Reflect.has(t,n))return Reflect.get(t,n,r);let i=e[n];return typeof i==`function`?i.bind(e):i},has(t,n){return Reflect.has(t,n)||n in e},set(t,n,r){return Reflect.has(t,n)?(t[n]=r,!0):(e[n]=r,!0)}}));try{Object.defineProperty(e,ze,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[ze]=a}return a}function Yr(e,t){try{let n=t.methods;for(let t of Object.keys(n))Lr.includes(t)||typeof e[t]!=`function`&&(e[t]=function(...e){var n;let r=this[je],i=r==null||(n=r.methods)==null?void 0:n[t];if(typeof i==`function`)return i.apply(r.proxy,e)})}catch(e){}}let Xr=e=>e.startsWith(`layouts/`);function Zr(e){let t=e.is;return typeof t==`string`&&Xr(t,e)}function Qr(e){if(Zr(e))return;let t=e[Oe];if(t&&typeof t==`object`)return t;let n=e.selectOwnerComponent;if(typeof n==`function`)try{let t=n.call(e);if(t&&t!==e&&typeof t==`object`&&t.__wevu)return t}catch(e){}let r=se(),i=r[r.length-1];if(i&&i!==e&&typeof i==`object`&&i.__wevu)return i}function $r(e){if(!Zr(e))return;let t=se(),n=t[t.length-1];n&&n!==e&&typeof n==`object`&&n.__wevu&&k(e,n)}function ei(e,t){e[Ie]=t,O(e,t,Qr(e)),$r(e)}function ti(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 ni(e){let{target:t,runtime:n,runtimeWithDefaults:r,runtimeState:i,runtimeProxy:a,setup:o,syncRuntimeProps:s,attachRuntimeProxyProps:c}=e,l=t.properties||{},u=i&&typeof i==`object`?i[Z]:void 0,d=u&&typeof u==`object`?u:v({});s(d,l),i&&typeof i==`object`&&c(i,d);try{Object.defineProperty(t,Z,{value:d,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[Z]=d}let f=v(Object.create(null)),p=new Set(Array.isArray(t[Ae])?t[Ae]:[]),h=e=>typeof i==`object`&&!!i&&Q(i,e);(()=>{let e=t.properties&&typeof t.properties==`object`?t.properties:void 0;for(let t of Object.keys(f))(!e||!Q(e,t)||p.has(t)||h(t))&&delete f[t];if(e)for(let[t,n]of Object.entries(e))p.has(t)||h(t)||(f[t]=n)})();try{Object.defineProperty(t,de,{value:f,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[de]=f}let g=Jr(t,r),_=Vr(d);try{Object.defineProperty(i,`$slots`,{value:_,configurable:!0,enumerable:!1,writable:!1})}catch(e){i.$slots=_}let y=Ur({props:d,runtime:r,state:i,proxy:a,bindModel:n.bindModel.bind(r),watch:n.watch.bind(r),instance:g,emit:(e,...t)=>{let{detail:n,options:r}=Gr(t);g.triggerEvent(e,n,r)},expose:e=>{t[fe]=e},attrs:f,slots:_}),b=C(!0);t[J]=b,oe(t),te(y);try{let e=b.run(()=>ti(o,d,y)),t=!1;if(e&&typeof e==`object`){let r=m(n.state)?T(n.state):n.state;Object.keys(e).forEach(i=>{let a=e[i];if(typeof a==`function`)n.methods[i]=(...e)=>a.apply(n.proxy,e),t=!0;else{if(Vt(a)){var o;(o=n.__wevu_trackSetupReactiveKey)==null||o.call(n,i)}if(p.has(i)){let e=a;try{Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){let t=r[Z];return t&&typeof t==`object`&&Q(t,i)?t[i]:e},set(t){e=t;let n=r[Z];if(!(!n||typeof n!=`object`))try{n[i]=t}catch(e){}}})}catch(e){n.state[i]=a}return}n.state[i]=a}})}if(t){var x;(x=n.__wevu_touchSetupMethodsVersion)==null||x.call(n)}}catch(e){throw b.stop(),t[J]=void 0,e}finally{te(void 0),oe(void 0)}}function ri(e,t){try{Object.defineProperty(e,Z,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e[Z]=t}}function ii(e,t){try{Object.defineProperty(e,X,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[X]=t}}function ai(e,t){try{Object.defineProperty(e,Le,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Le]=t}}function oi(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function si(e){let t=e[ze],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Gt(n))return n;let r=e.setData;if(typeof r==`function`&&!Gt(r))return r}function ci(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function li(e,t,n){try{return t.call(e,n)}catch(t){let n=ci(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function ui(e,t){let n=Object.keys(e);for(let r of n)if(!Q(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function di(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function fi(e){var t,n,r;let i={devOnly:!0,sampleWindowMs:1e3,maxCalls:30,coolDownMs:5e3,warnOnPageScroll:!0,pageScrollCoolDownMs:2e3};return e===void 0||e===!1?{...i,enabled:!1}:e===!0?{...i,enabled:!0}:di(e)?{enabled:(t=e.enabled)==null?!0:t,devOnly:(n=e.devOnly)==null?i.devOnly:n,sampleWindowMs:typeof e.sampleWindowMs==`number`?Math.max(100,Math.floor(e.sampleWindowMs)):i.sampleWindowMs,maxCalls:typeof e.maxCalls==`number`?Math.max(1,Math.floor(e.maxCalls)):i.maxCalls,coolDownMs:typeof e.coolDownMs==`number`?Math.max(0,Math.floor(e.coolDownMs)):i.coolDownMs,warnOnPageScroll:(r=e.warnOnPageScroll)==null?i.warnOnPageScroll:r,pageScrollCoolDownMs:typeof e.pageScrollCoolDownMs==`number`?Math.max(0,Math.floor(e.pageScrollCoolDownMs)):i.pageScrollCoolDownMs}:{...i,enabled:!1}}function pi(){let e=re();if((e==null?void 0:e.debug)===!0||(e==null?void 0:e.envVersion)===`develop`)return!0;let t=H();try{var n;if((t==null||(n=t.getAccountInfoSync)==null||(n=n.call(t))==null||(n=n.miniProgram)==null?void 0:n.envVersion)===`develop`)return!0}catch(e){}return!1}function mi(e){var t,n;let r=fi(e.option);if(!r.enabled)return;let i=pi();if(r.devOnly&&!i)return;let a=(t=e.now)==null?(()=>Date.now()):t,o=(n=e.logger)==null?(e=>{var t;let n=(t=globalThis)==null||(t=t.console)==null?void 0:t.warn;typeof n==`function`&&n(e)}):n,s=[],c=-1/0,l=-1/0;return()=>{var t,n;let i=a();s.push(i);let u=i-r.sampleWindowMs;for(;s.length>0&&s[0]<u;)s.shift();let d=(t=(n=e.isInPageScrollHook)==null?void 0:n.call(e))==null?!1:t;r.warnOnPageScroll&&d&&(r.pageScrollCoolDownMs<=0||i-l>=r.pageScrollCoolDownMs)&&(l=i,o(`[wevu:setData] 检测到 onPageScroll 回调内调用 setData(${e.targetLabel})。建议改用 IntersectionObserver 监听可见性,或对滚动更新做节流。`)),!(s.length<=r.maxCalls)&&(r.coolDownMs>0&&i-c<r.coolDownMs||(c=i,o(`[wevu:setData] 检测到高频 setData 调用:${s.length} 次/${r.sampleWindowMs}ms(${e.targetLabel})。建议合并更新或降低调用频率。`)))}}function hi(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=hi(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 gi(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 _i(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=hi(o,e,n);if(!t)continue;let s=gi(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function vi(e){typeof e.route!=`string`||!e.route||(e[Ee]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[Ce]=lr(t);let a=t===!1||n==null?{}:n;i[Te]=a,or(e,t,a)})}function yi(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m;if(e.__wevu)return e.__wevu;ei(e,t),Ur(e);let h=fr(),g=!!(!(t==null||(a=t.__wevuSetDataOptions)==null)&&a.suspendWhenHidden),_=typeof e.route==`string`&&e.route?`page:${e.route}`:typeof e.is==`string`&&e.is?`component:${e.is}`:`unknown-target`,v=mi({option:t==null||(o=t.__wevuSetDataOptions)==null?void 0:o.highFrequencyWarning,targetLabel:_,isInPageScrollHook:()=>{var t;return Number((t=e[De])==null?0:t)>0}}),y=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}let a=si(e);if(a)return li(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=si(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,li(e,r,n)}},r})(e):{setData(t){let n=si(e);if(n)return li(e,n,t)}},b,x=!0,S,C=(e,t)=>({...e==null?{}:e,...t}),w=()=>{var t;if(!b)return;let n=vr(b),r=(t=e[Z])==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;pr(h,n,b.proxy)},T={...y,setData(t){if(v==null||v(),g&&!x){S=C(S,t),w(),Fr(e);return}let n=y.setData(t);return w(),Fr(e),n},__wevu_setVisibility(t){if(x=t,!x||!S)return;let n=S;S=void 0;let r=y.setData(n);return w(),Fr(e),r}},E=t.mount({...T});b=E,oi(E,e);let D=(s=E==null?void 0:E.proxy)==null?{}:s,O=(c=E==null?void 0:E.state)==null?{}:c;O&&typeof O==`object`&&(ai(O,E),ii(O,e));let k=(l=E==null?void 0:E.computed)==null?Object.create(null):l;if(!(E!=null&&E.methods))try{E.methods=Object.create(null)}catch(e){}let A=(u=E==null?void 0:E.methods)==null?Object.create(null):u,j=(d=E==null?void 0:E.watch)==null?(()=>Hr()):d,M=(f=E==null?void 0:E.bindModel)==null?(()=>{}):f,N={...E==null?{}:E,state:O,proxy:D,methods:A,computed:k,watch:j,bindModel:M,snapshot:(p=E==null?void 0:E.snapshot)==null?(()=>Object.create(null)):p,unmount:(m=E==null?void 0:E.unmount)==null?(()=>{}):m},P=N,F={__wevu_flushSetupSnapshotSync:E.__wevu_flushSetupSnapshotSync,__wevu_touchSetupMethodsVersion:E.__wevu_touchSetupMethodsVersion,__wevu_trackSetupReactiveKey:E.__wevu_trackSetupReactiveKey};for(let[e,t]of Object.entries(F))t&&Object.defineProperty(N,e,{configurable:!0,enumerable:!1,value:t,writable:!0});if(Object.defineProperty(e,je,{value:N,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=N,vi(e),yr(e,N,h),n){let t=_i(N,n,e);t.length&&(e[Ze]=t)}if(r){var I;ni({target:e,runtime:E,runtimeWithDefaults:N,runtimeState:O,runtimeProxy:D,setup:r,syncRuntimeProps:ui,attachRuntimeProxyProps:ri}),(I=P.__wevu_flushSetupSnapshotSync)==null||I.call(P)}return Yr(e,E),E}function bi(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function xi(e,t){var n;let r=(n=e.__wevu)==null?void 0:n.adapter;r&&typeof r.__wevu_setVisibility==`function`&&r.__wevu_setVisibility(t)}function Si(e){var t;let n=e.__wevu,r=e[Ve];r&&mr(r),Ir(e),n&&e[pe]&&G(e,`onUnload`,[]),e[pe]&&(e[pe]=void 0);let i=e[Ze];if(Array.isArray(i))for(let e of i)try{e()}catch(e){}e[Ze]=void 0,(t=e[J])==null||t.stop(),e[J]=void 0,n&&n.unmount(),delete e.__wevu,je in e&&delete e[je]}const Ci=`__wevuAppGlobalListeners`,wi=`__wevuOnMemoryWarningListener`;function Ti(e){let t=e[pe],n=!!(t!=null&&t.onMemoryWarning);if(!W(`appMemoryWarningListener`)){delete e[wi];return}let r=H(),i=r==null?void 0:r.onMemoryWarning,a=r==null?void 0:r.offMemoryWarning;if(typeof i!=`function`)return;let o=e[wi];if(typeof o==`function`&&typeof a==`function`)try{a(o)}catch(e){}if(!n){delete e[wi];return}let s=t=>{G(e,`onMemoryWarning`,[t])};e[wi]=s,i(s)}function Ei(e,t){var n,r;let{hookName:i,onApiName:a,offApiName:o,capabilityName:s,userHandler:c}=t,l=e[pe],u=!!(l!=null&&l[i]),d=(r=(n=e)[Ci])==null?n[Ci]=Object.create(null):r,f=d[i];if(!W(s)){delete d[i],delete e[i];return}let p=H(),m=p==null?void 0:p[a],h=p==null?void 0:p[o];if(typeof f==`function`&&typeof h==`function`)try{h(f)}catch(e){}if(!u&&typeof c!=`function`){delete d[i];return}let g=(...t)=>{G(e,i,t),typeof c==`function`&&c.apply(e,t)};e[i]=g,d[i]=g,typeof m==`function`&&m(g)}function Di(e,t){Ei(e,{hookName:`onError`,onApiName:`onError`,offApiName:`offError`,capabilityName:`appErrorListener`,userHandler:t.onError}),Ei(e,{hookName:`onPageNotFound`,onApiName:`onPageNotFound`,offApiName:`offPageNotFound`,capabilityName:`appPageNotFoundListener`,userHandler:t.onPageNotFound}),Ei(e,{hookName:`onUnhandledRejection`,onApiName:`onUnhandledRejection`,offApiName:`offUnhandledRejection`,capabilityName:`appUnhandledRejectionListener`,userHandler:t.onUnhandledRejection}),Ei(e,{hookName:`onThemeChange`,onApiName:`onThemeChange`,offApiName:`offThemeChange`,capabilityName:`appThemeChangeListener`,userHandler:t.onThemeChange})}function Oi(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[me]||(s[me]=function(e){var t,n;let r=this.__wevu;return nr((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[Y])});let c=s.onLaunch,l=s.onError,u=s.onPageNotFound,d=s.onUnhandledRejection,f=s.onThemeChange;s.onLaunch=function(...t){this[he]=!0,yi(this,e,n,r),Ti(this),Di(this,{onError:l,onPageNotFound:u,onUnhandledRejection:d,onThemeChange:f}),G(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let p=s.onShow;s.onShow=function(...e){G(this,`onShow`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onHide;s.onHide=function(...e){G(this,`onHide`,e),typeof m==`function`&&m.apply(this,e)},delete s.onError,delete s.onPageNotFound,delete s.onUnhandledRejection,delete s.onThemeChange;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 ki(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=!!t.enableOnRouteDoneFallback,_=typeof s==`function`||!!t.enableOnTabItemTap,v=typeof c==`function`||!!t.enableOnResize,y=typeof u==`function`||!!t.enableOnShareTimeline,b=typeof l==`function`||!!t.enableOnShareAppMessage,x=typeof d==`function`||!!t.enableOnAddToFavorites,S=typeof n==`function`||!!t.enableOnSaveExitState,C=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnRouteDoneFallback:g,enableOnTabItemTap:_,enableOnResize:v,enableOnShareAppMessage:b,enableOnShareTimeline:y,enableOnAddToFavorites:x,enableOnSaveExitState:S,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:C,effectiveOnReachBottom:typeof i==`function`?i:C,effectiveOnPageScroll:typeof a==`function`?a:C,effectiveOnRouteDone:typeof o==`function`?o:C,effectiveOnTabItemTap:typeof s==`function`?s:C,effectiveOnResize:typeof c==`function`?c:C,effectiveOnShareAppMessage:typeof l==`function`?l:C,effectiveOnShareTimeline:typeof u==`function`?u:C,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}function Ai(e,t){let{enableOnSaveExitState:n,enableOnPullDownRefresh:r,enableOnReachBottom:i,enableOnPageScroll:a,enableOnRouteDone:o,enableOnTabItemTap:s,enableOnResize:c,enableOnShareAppMessage:l,enableOnShareTimeline:u,enableOnAddToFavorites:d,effectiveOnSaveExitState:f,effectiveOnPullDownRefresh:p,effectiveOnReachBottom:m,effectiveOnPageScroll:h,effectiveOnRouteDone:g,effectiveOnTabItemTap:_,effectiveOnResize:v,effectiveOnShareAppMessage:y,effectiveOnShareTimeline:b,effectiveOnAddToFavorites:x,hasHook:S}=t;n&&(e.onSaveExitState=function(...e){let t=ae(this,`onSaveExitState`,e);return t===void 0?f.apply(this,e):t}),r&&(e.onPullDownRefresh=function(...e){if(G(this,`onPullDownRefresh`,e),!S(this,`onPullDownRefresh`))return p.apply(this,e)}),i&&(e.onReachBottom=function(...e){if(G(this,`onReachBottom`,e),!S(this,`onReachBottom`))return m.apply(this,e)}),a&&(e.onPageScroll=function(...e){return F(this,()=>{if(G(this,`onPageScroll`,e),!S(this,`onPageScroll`))return h.apply(this,e)})}),o&&(e.onRouteDone=function(...e){if(!this[Fe]&&(this[Fe]=!0,Promise.resolve().then(()=>{this[Fe]=!1}),this[Pe]=!0,G(this,`onRouteDone`,e),!S(this,`onRouteDone`)))return g.apply(this,e)}),s&&(e.onTabItemTap=function(...e){if(G(this,`onTabItemTap`,e),!S(this,`onTabItemTap`))return _.apply(this,e)}),c&&(e.onResize=function(...e){if(G(this,`onResize`,e),!S(this,`onResize`))return v.apply(this,e)}),l&&(e.onShareAppMessage=function(...e){let t=ae(this,`onShareAppMessage`,e);return t===void 0?y.apply(this,e):t}),u&&(e.onShareTimeline=function(...e){let t=ae(this,`onShareTimeline`,e);return t===void 0?b.apply(this,e):t}),d&&(e.onAddToFavorites=function(...e){let t=ae(this,`onAddToFavorites`,e);return t===void 0?x.apply(this,e):t})}function ji(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,enableOnRouteDoneFallback:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}=e,N={onLoad(...e){if(!this[be]&&(this[be]=!0,yi(this,t,n,r),bi(this),l&&le({enableOnShareAppMessage:v,enableOnShareTimeline:y}),G(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&D(this),Si(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(ee(),ue(this),this[be]||N.onLoad.call(this,ce(this)),le({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this[Pe]=!1),xi(this,!0),G(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&D(this),xi(this,!1),G(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this[be]||N.onLoad.call(this,ce(this)),le({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this[Me]){if(this[Me]=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e[Pe]){var t;(t=N.onRouteDone)==null||t.call(e)}},0)}Fr(this,()=>{G(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return Ai(N,{enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}),N}function Mi(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r[me]||(r[me]=function(e){var t,n;let r=this.__wevu;return nr((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[Y])}),r[ve]||(r[ve]=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=Mt(e);try{a.bindModel(i).update(o)}catch(e){}}),!r[Se]&&typeof(n==null?void 0:n[Se])==`function`&&(r[Se]=n[Se]);let i=Object.keys(n==null?{}:n);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n[Le]}function o(e,t){if((e==null?void 0:e.proxy)===t)return;let n=e==null?void 0:e.proxy,r=e=>{let r=t[e];if(typeof r!=`function`)return!1;let i=n==null?void 0:n[e];return typeof i==`function`&&r===i};if(r(`triggerEvent`)||r(`createSelectorQuery`)||r(`createIntersectionObserver`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.createIntersectionObserver==`function`||typeof t.setData==`function`))return;let i=e==null?void 0:e.state;if(!(!i||typeof i!=`object`)&&t.$state!==i)try{Object.defineProperty(i,X,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[X]=t}}for(let e of i){if(e===Y||e.startsWith(Ne))continue;let t=r[e];r[e]=function(...n){var r;let i=a(this);o(i,this);let s,c=i==null||(r=i.methods)==null?void 0:r[e];if(c&&(s=c.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?s:e}return s}}return{finalMethods:r}}function Ni(e,t=new WeakMap){if(!e||typeof e!=`object`)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];t.set(e,n);for(let r of e)n.push(Ni(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=Ni(i,t);return n}function Pi(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Fi(e){var t;let{methods:n={},lifetimes:r={},pageLifetimes:i={},options:a={},...o}=e,s=o.onLoad,c=o.onUnload,l=o.onShow,u=o.onHide,d=o.onReady,f=o.onSaveExitState,p=o.onPullDownRefresh,m=o.onReachBottom,h=o.onPageScroll,g=o.onRouteDone,_=o.onTabItemTap,v=o.onResize,y=o.onShareAppMessage,b=o.onShareTimeline,x=o.onAddToFavorites,S=(t=o.features)==null?{}:t,C=[s,c,l,u,d,f,p,m,h,g,_,v,y,b,x].some(e=>typeof e==`function`),w=!!o.__wevu_isPage||Object.keys(S==null?{}:S).length>0||C,T={...o},E=new Set([`data`,`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`__wevuLayoutHosts`,`setupLifecycle`,`features`,`__wevu_isPage`]),D=[];for(let[e,t]of Object.entries(T))E.has(e)||typeof t!=`function`&&(D.push([e,t]),delete T[e]);let O=e=>{if(D.length){for(let[t,n]of D)if(!Q(e,t))try{e[t]=Ni(n)}catch(e){}}},k=new Set([`data`,`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),A={};for(let[e,t]of Object.entries(T))typeof t!=`function`||k.has(e)||(A[e]=t,delete T[e]);let j=T.__wevuTemplateRefs;delete T.__wevuTemplateRefs;let M=T.__wevuLayoutHosts;delete T.__wevuLayoutHosts;let N=T.observers,P=T.setupLifecycle===`created`?`created`:`attached`;delete T.setupLifecycle;let F=T.created;return delete T.features,delete T.created,delete T.onLoad,delete T.onUnload,delete T.onShow,delete T.onHide,delete T.onReady,{userMethods:n,userLifetimes:r,userPageLifetimes:i,userOptions:a,restOptions:T,topLevelMethods:A,templateRefs:j,layoutHosts:M,userObservers:N,setupLifecycle:P,legacyCreated:F,isPage:w,features:S,userOnLoad:s,userOnUnload:c,userOnShow:l,userOnHide:u,userOnReady:d,userOnSaveExitState:f,userOnPullDownRefresh:p,userOnReachBottom:m,userOnPageScroll:h,userOnRouteDone:g,userOnTabItemTap:_,userOnResize:v,userOnShareAppMessage:y,userOnShareTimeline:b,userOnAddToFavorites:x,applyExtraInstanceFields:O}}function Ii(e){var t;let n=e.__wevu,r=e[Ve];if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e[Z])==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;pr(r,i,n.proxy)}function Li(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,Ae,{value:r,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[Ae]=r}},o=e=>{let t=e[de];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&&Q(r,t)},r=e.properties,a=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!a||!Q(a,e)||i.has(e)||n(e))try{delete t[e]}catch(e){}if(!a){Ii(e);return}for(let[e,r]of Object.entries(a))if(!(i.has(e)||n(e)))try{t[e]=r}catch(e){}Ii(e)},s=e=>{let t=e[Z],n=e.properties,r=e[ke];if(t&&typeof t==`object`&&n&&typeof n==`object`){let i=n,a=Object.keys(t);for(let e of a)if(!Q(i,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(i)){let i=r&&Q(r,e)?r[e]:n;try{t[e]=i}catch(e){}}if(r){for(let[e,n]of Object.entries(r))if(!Q(i,e))try{t[e]=n}catch(e){}}Ii(e)}r&&delete e[ke],o(e)},c=(e,t,n)=>{var r,i;let a=e[Z];if(!a||typeof a!=`object`)return;try{a[t]=n}catch(e){}let s=(i=(r=e)[ke])==null?r[ke]=Object.create(null):i;s[t]=n,Ii(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}}const Ri=new Map;function zi(){let e=se();return e[e.length-1]}function Bi(e){return Array.from(new Set(Array.isArray(e)?e:[e])).filter(e=>typeof e==`string`&&e.length>0)}function Vi(e){return Qe(e)}function Hi(e){return e&&typeof e.__wevuSetPageLayout==`function`?e:zi()}function Ui(e){var t,n;if(!e||typeof e!=`object`)return;let r=(t=e[je])==null||(t=t.state)==null?void 0:t[X];if(r&&typeof r==`object`)return r;let i=(n=e.$state)==null?void 0:n[X];return i&&typeof i==`object`?i:e[X]&&typeof e[X]==`object`?e[X]:e}function Wi(e){return typeof e==`function`?e():g(e)?e.value:e}function Gi(e,t){return e.find(e=>e.key===t)}function Ki(e,t){let n=e==null?void 0:e.selectComponent;if(typeof n!=`function`)return null;try{var r;return(r=n.call(e,t))==null?null:r}catch(e){return null}}function qi(e,t){var n,r,i,a,o,s,c,l;if(!e.refName)return null;let u=Tr(t),d=(n=(r=(i=(a=t[je])==null||(a=a.state)==null?void 0:a.$refs)==null?(o=t.__wevu)==null||(o=o.state)==null?void 0:o.$refs:i)==null?(s=t.$state)==null?void 0:s.$refs:r)==null?t.$refs:n,f=(c=u==null||(l=u.get(e.refName))==null?void 0:l.value)==null?d==null?void 0:d[e.refName]:c;if(Array.isArray(f)){var p;return(p=f[0])==null?null:p}return f==null?null:f}function Ji(e,t){let n=Ui(t);return Object.assign(n&&typeof n==`object`?Object.create(n):{},{selectComponent(r){let i=Gi(e,r);if(!i)return null;if(i.kind===`component`||!i.kind){var a,o;return qi(i,t)||((a=(o=Ki(n,i.selector))==null?Ki(zi(),i.selector):o)==null?null:a)}return null}})}function Yi(e,t){let n=t==null?U():t,r=Hi(n),i=Vi(r);if(!n||!r||i.length===0)return!1;for(let t of i){var a;let r=(a=Ri.get(t))==null?new Map:a;for(let t of Bi(e))r.set(t,n);Ri.set(t,r)}return n[ge]=i,!0}function Xi(e,t){var n;let r=t==null?U():t,i=Hi(r),a=(n=r==null?void 0:r[ge])==null?Vi(i):n;if(!r||!Array.isArray(a)||a.length===0)return!1;let o=!1;for(let t of a){let n=Ri.get(t);if(n){for(let t of Bi(e))n.get(t)===r&&(n.delete(t),o=!0);n.size===0&&Ri.delete(t)}}return delete r[ge],o}function Zi(e,t){var n,r;let i=Vi((n=zi())==null?Hi(t):n).map(t=>{var n;return(n=Ri.get(t))==null?void 0:n.get(e)}).find(Boolean);return(r=i==null?t:i)==null?U():r}function Qi(e,t={}){var n,r;let i=Zi(e,(n=t.context)==null?t.fallbackContext:n),a=i==null||(r=i.selectComponent)==null?void 0:r.call(i,e);return a==null?null:a}function $i(e,t={}){var n,r;let i=(n=t.retries)==null?20:n,a=(r=t.interval)==null?16:r,o=Qi(e,t);return o||i<=0?Promise.resolve(o):new Promise(n=>{setTimeout(()=>{n($i(e,{...t,retries:i-1}))},a)})}function ea(e,t={}){if(!z())throw Error(`useLayoutBridge() 必须在 setup() 的同步阶段调用`);let n=U(),r=Bi(e),i=t.resolveComponent,a=Ui(n),o=Object.assign(a&&typeof a==`object`?Object.create(a):{},{selectComponent(e){var t,a,o;if(!r.includes(e))return null;let s=i==null?void 0:i(e);if(s!==void 0)return s;let c=Ui(n),l=c==null||(t=c.selectComponent)==null?void 0:t.call(c,e);if(l)return l;let u=zi();return(a=u==null||(o=u.selectComponent)==null?void 0:o.call(u,e))==null?null:a}});Yi(r,o),j(()=>{Yi(r,o)}),M(()=>{Xi(r,o)})}function ta(e,t){if(!e.length)return null;let n=t==null?U():t;if(!n)return null;let r=Ji(e,n);return Yi(e.map(e=>e.key),r),r}function na(e,t){if(!e.length)return!1;let n=t==null?U():t;return n?Xi(e.map(e=>e.key),n):!1}function ra(e){ea(Object.keys(e),{resolveComponent(t){return Wi(e[t])}})}function ia(e){let{runtimeApp:t,watch:n,setup:r,restOptions:i,pageLifecycleHooks:a,finalObservers:o,userLifetimes:s,userPageLifetimes:c,finalMethods:l,finalOptions:u,applyExtraInstanceFields:d,templateRefs:f,layoutHosts:p,attachWevuPropKeys:m,setupLifecycle:h,syncWevuPropsFromInstance:g,isPage:_,legacyCreated:v,getRuntimeOwnerLabel:y}=e,b={},x=e=>{if(!Array.isArray(p)||!p.length||e[_e])return;let t=ta(p,e);t&&(e[_e]=t)},S=e=>{_&&(e[Ee]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[Ce]=lr(t);let a=t===!1||n==null?{}:n;i[Te]=a,or(e,t,a)})};if(_)for(let e of[`onReachBottom`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=a[e];typeof t==`function`&&typeof l[e]!=`function`&&(b[e]=function(...e){return t.apply(this,e)})}Component({...i,...a,observers:o,lifetimes:{...s,created:function(...e){if(d(this),Array.isArray(f)&&f.length&&Object.defineProperty(this,Je,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h===`created`){try{yi(this,t,n,r,{deferSetData:!0})}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this)}typeof v==`function`&&v.apply(this,e),typeof s.created==`function`&&s.created.apply(this,e)},moved:function(...e){G(this,`onMoved`,e),typeof s.moved==`function`&&s.moved.apply(this,e)},attached:function(...e){if(d(this),Array.isArray(f)&&f.length&&!this[Je]&&Object.defineProperty(this,Je,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h!==`created`||!this.__wevu)try{yi(this,t,n,r)}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this),x(this),h===`created`&&bi(this),G(this,`onAttached`,e),typeof s.attached==`function`&&s.attached.apply(this,e)},ready:function(...e){if(_&&typeof a.onReady==`function`){a.onReady.call(this,...e),typeof s.ready==`function`&&s.ready.apply(this,e);return}if(!this[Me]){this[Me]=!0,g(this),Fr(this,()=>{G(this,`onReady`,e),typeof s.ready==`function`&&s.ready.apply(this,e)});return}typeof s.ready==`function`&&s.ready.apply(this,e)},detached:function(...e){if(G(this,`onDetached`,e),_&&typeof a.onUnload==`function`){a.onUnload.call(this,...e),typeof s.detached==`function`&&s.detached.apply(this,e);return}Ir(this),Array.isArray(p)&&p.length&&this[_e]&&(na(p,this[_e]),delete this[_e]),Si(this),typeof s.detached==`function`&&s.detached.apply(this,e)},error:function(...e){G(this,`onError`,e),typeof s.error==`function`&&s.error.apply(this,e)}},pageLifetimes:{...c,show:function(...e){if(_&&typeof a.onShow==`function`){a.onShow.call(this,...e),typeof c.show==`function`&&c.show.apply(this,e);return}xi(this,!0),G(this,`onShow`,e),typeof c.show==`function`&&c.show.apply(this,e)},hide:function(...e){if(_&&typeof a.onHide==`function`){a.onHide.call(this,...e),typeof c.hide==`function`&&c.hide.apply(this,e);return}xi(this,!1),G(this,`onHide`,e),typeof c.hide==`function`&&c.hide.apply(this,e)},resize:function(...e){if(_&&typeof a.onResize==`function`){a.onResize.call(this,...e),typeof c.resize==`function`&&c.resize.apply(this,e);return}G(this,`onResize`,e),typeof c.resize==`function`&&c.resize.apply(this,e)},routeDone:function(...e){if(_&&typeof a.onRouteDone==`function`){a.onRouteDone.call(this,...e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e);return}G(this,`onRouteDone`,e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e)}},methods:{...b,...l},options:u})}function aa(e,t,n,r,i){var a;let{userMethods:o,userLifetimes:s,userPageLifetimes:c,userOptions:l,restOptions:u,topLevelMethods:d,templateRefs:f,layoutHosts:p,userObservers:m,setupLifecycle:h,legacyCreated:g,isPage:_,features:v,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N,applyExtraInstanceFields:P}=Fi(i),{enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,enableOnSaveExitState:U,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:W,effectiveOnPageScroll:G,effectiveOnRouteDone:K,effectiveOnTabItemTap:ie,effectiveOnResize:ae,effectiveOnShareAppMessage:oe,effectiveOnShareTimeline:q,effectiveOnAddToFavorites:se}=ki({features:v,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N}),ce=(e,t)=>{let n=e[pe];if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=u.export;u.export=function(){var t;let n=(t=this[fe])==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let le={multipleSlots:(a=l.multipleSlots)==null?!0:a,...l},{attachWevuPropKeys:ue,syncWevuPropsFromInstance:de,finalObservers:J}=Li({restOptions:u,userObservers:m}),{finalMethods:me}=Mi({userMethods:{...d,...o},runtimeMethods:t});ia({runtimeApp:e,watch:n,setup:r,restOptions:u,pageLifecycleHooks:ji({runtimeApp:e,watch:n,setup:r,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,isPage:_,enableOnSaveExitState:U,enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:W,effectiveOnPageScroll:G,effectiveOnRouteDone:K,effectiveOnTabItemTap:ie,effectiveOnResize:ae,effectiveOnShareAppMessage:oe,effectiveOnShareTimeline:q,effectiveOnAddToFavorites:se,hasHook:ce}),finalObservers:J,userLifetimes:s,userPageLifetimes:c,finalMethods:me,finalOptions:le,applyExtraInstanceFields:P,templateRefs:f,layoutHosts:p,attachWevuPropKeys:ue,setupLifecycle:h,syncWevuPropsFromInstance:de,isPage:_,legacyCreated:g,getRuntimeOwnerLabel:Pi})}function oa(e){let{[Tn]:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,...c}=e.__wevuDefaultsScope===`component`?e:Nn(e),l=i==null?{}:i,u=r==null?{}:r,d=new Set,f=new Set,p=!1,m={globalProperties:{}},h={mount:wn({data:n,resolvedComputed:u,resolvedMethods:l,appConfig:m,setDataOptions:a}),use(e,...t){if(!e||d.has(e))return h;if(d.add(e),typeof e==`function`)e(h,...t);else if(typeof e.install==`function`)e.install(h,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return h},provide(e,t){return ne(h,e,t),h},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return p?(e(),h):(f.add(e),h)},unmount(){if(!p){p=!0;for(let e of f)e();f.clear()}},config:m,version:Ot},g=typeof App==`function`;try{N(h),Object.defineProperty(h,`__wevuSetDataOptions`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(e){h.__wevuSetDataOptions=a}if(g){let e=H(),t=`__wevuAppRegistered`;e&&e[t]||(e&&(e[t]=!0),Oi(h,i==null?{}:i,o,s,c))}return h}const sa=`__wevu_allowNullPropInput`,ca=`allowNullPropInput`,la=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[null,null],[`null`,null],[`Null`,null]]);function ua(e){return la.get(e)}function da(e){if(e===void 0)return[];let t=Array.isArray(e)?e:[e],n=[];t.forEach(e=>{let t=ua(e);t!==void 0&&(n.includes(t)||n.push(t))});let r=n.filter(e=>e!==null);return r.length>0?r:(n.includes(null),[null])}function fa(e,t){let n=da(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function pa(e,t){if(t===void 0||e.type===t)return;let n=Array.isArray(e.optionalTypes)?[...e.optionalTypes]:[];n.includes(t)||(n.push(t),e.optionalTypes=n)}function ma(e){if(!Array.isArray(e))return[];let t=[];return e.forEach(e=>{let n=ua(e);n==null||t.includes(n)||t.push(n)}),t}function ha(e,t){if(e===void 0)return;if(e===null)return{type:null};if(Array.isArray(e)||typeof e==`function`){let n={};return fa(n,e),t&&n.type!==null&&pa(n,null),Q(n,`type`)||(n.type=null),n}if(typeof e!=`object`)return e;let n={...e};if(`type`in n){var r;let e=da(n.type);n.type=(r=e[0])==null?null:r;let t=ma(n.optionalTypes);for(let n of e.slice(1))n!==null&&!t.includes(n)&&t.push(n);t.length>0?n.optionalTypes=t:delete n.optionalTypes}return Q(n,`type`)||(n.type=null),t&&n.type!==null&&pa(n,null),n}function ga(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{let i=ha(r,t);i!==void 0&&(n[e]=i)}),n}function _a(e,t,n){var r;let i=!!((r=e[sa])==null?e[ca]:r),{[sa]:a,[ca]:o,...s}=e,c=e.properties,l=n==null?c&&typeof c==`object`?c:void 0:n,u=e=>{let t={...e==null?{}:e};return Q(t,He)||(t[He]={type:String,value:``}),Q(t,Ke)||(t[Ke]={type:null,value:null}),Q(t,Be)||(t[Be]={type:null,value:null}),t};if(l||!t){let{properties:e,...t}=s,n=l?i?ga(l,i):l:void 0;return{...t,properties:u(n)}}let d={};return Object.entries(t).forEach(([e,t])=>{if(t!==void 0){if(t===null){d[e]={type:null};return}if(Array.isArray(t)||typeof t==`function`){let n={};fa(n,t),i&&n.type!==null&&pa(n,null),Q(n,`type`)||(n.type=null),d[e]=n;return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){d[e]={type:Object,value:{}};return}let n={};if(`type`in t&&t.type!==void 0&&fa(n,t.type),Array.isArray(t.optionalTypes)){let e=t.optionalTypes.map(e=>ua(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(n.optionalTypes)?n.optionalTypes:[];for(let r of e)r!==n.type&&(t.includes(r)||t.push(r));t.length>0&&(n.optionalTypes=t)}}`observer`in t&&(typeof t.observer==`function`||typeof t.observer==`string`)&&(n.observer=t.observer);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),i&&n.type!==null&&pa(n,null),Q(n,`type`)||(n.type=null),d[e]=n}}}),{...s,properties:u(d)}}const va=/&amp;/g,ya=/&quot;/g,ba=/&#34;/g,xa=/&apos;/g,Sa=/&#39;/g,Ca=/&lt;/g,wa=/&gt;/g;function Ta(e){return e.replace(va,`&`).replace(ya,`"`).replace(ba,`"`).replace(xa,`'`).replace(Sa,`'`).replace(Ca,`<`).replace(wa,`>`)}function Ea(e){var t,n,r,i;let a=Zn((t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,`wvArgs`,e),o=[];if(Array.isArray(a))o=a;else if(typeof a==`string`)try{o=JSON.parse(a)}catch(e){try{o=JSON.parse(Ta(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function Da(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 Oa(e,t){var n,r;let i=Q(t==null?{}:t,Ke)?t[Ke]:e==null||(n=e.properties)==null?void 0:n[Ke],a=Q(t==null?{}:t,Ge)?t[Ge]:e==null||(r=e.properties)==null?void 0:r[Ge],o=Da(i),s=Da(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({[We]:c})}function ka(e){let t={options:{virtualHost:!0},properties:{[Ve]:{type:String,value:``},[Ge]:{type:null,value:null,observer(e){Oa(this,{[Ge]:e})}},[Ke]:{type:null,value:null,observer(e){Oa(this,{[Ke]:e})}}},data:()=>({[Ue]:{},[We]:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t[Ve])==null?``:e;if(Oa(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({[Ue]:e||{}})};this.__wvOwnerUnsub=hr(n,r);let i=_r(n);i&&r(i,gr(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{[Se](e){var t,n,r,i,a;let o=this.__wvOwnerProxy,s=nr(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t[Y]);if(s!==void 0)return s;if(!o)return;let c=Zn((n=(r=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:r)==null?{}:n,`wvHandler`,e);if(typeof c!=`string`||!c)return;let l=o==null?void 0:o[c];if(typeof l!=`function`)return;let u=Ea(e);return l.apply(o,u)}}};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,[Y]:e.inlineMap}),t}function Aa(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ja(e){return typeof e!=`object`||!e||g(e)||m(e)||Array.isArray(e)?!0:Aa(e)}function Ma(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t[Ae])?t[Ae]:[]),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=m(s)?T(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(Vt(i)){var u;e==null||(u=e.__wevu_trackSetupReactiveKey)==null||u.call(e,r)}if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c[Z];return t&&typeof t==`object`&&Q(t,r)?t[r]:e},set(t){e=t;let n=c[Z];if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!ja(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 Na;function Pa(){let e=ie();if(!e)return;let t=e;!t[Re]&&Na&&(t[Re]=Na)}function Fa(e){Pa();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Pn(e),u=oa({data:n,computed:r,methods:i,setData:a,[Tn]:`component`}),d=typeof s==`function`?((e,t)=>{let n=ti(s,e,t);return n&&t&&Ma(t.runtime,t.instance,n),n}):void 0,f=typeof n==`function`?n():n,p=_a(f===void 0?l:{...l,data:f},c),m={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:p};return aa(u,i==null?{}:i,o,d,p),{__wevu_runtime:u,__wevu_options:m}}function Ia(e){var t;Pa();let{properties:n,props:r,...i}=e;Fa(_a({...i,allowNullPropInput:(t=i.allowNullPropInput)==null?!0:t,__wevu_allowNullPropInput:!0},r,n))}function La(e){Ia(ka(e))}Na=La,Pa();const Ra=[`dispose`,`abort`,`cancel`,`stop`,`disconnect`,`destroy`,`close`];function za(e){if(e){if(typeof e==`function`)return e;for(let t of Ra){let n=e[t];if(typeof n==`function`)return()=>n.call(e)}}}function Ba(){if(!U())throw Error(`useDisposables() 必须在 setup() 的同步阶段调用`);let e=new Set,t=!1,n=n=>{let r=za(n);if(!r)return()=>{};if(t){try{r()}catch(e){}return()=>{}}return e.add(r),()=>{e.delete(r)}},r=()=>{if(t)return;t=!0;let n=[...e];e.clear();for(let e of n)try{e()}catch(e){}};return V(r),M(r),{add:n,dispose:r,setTimeout:(e,t,...r)=>{let i=setTimeout(e,t,...r);return n(()=>{clearTimeout(i)}),i},setInterval:(e,t,...r)=>{let i=setInterval(e,t,...r);return n(()=>{clearInterval(i)}),i}}}function Va(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t);if(!W(`globalCreateIntersectionObserver`))return;let i=H(),a=i==null?void 0:i.createIntersectionObserver;if(typeof a==`function`)return B().intersectionObserverScopeByParameter?a.call(i,e,t):a.call(i,t)}function Ha(e,t){var n;if(t===!1||typeof e.relativeToViewport!=`function`)return e;let r=t&&typeof t==`object`?t:void 0;return(n=e.relativeToViewport(r))==null?e:n}function Ua(e){var t;let n=(t=e.context)==null?U():t;if(!n||!z())throw Error(`useElementIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=null,i=()=>{if(r){try{r.disconnect()}catch(e){}r=null}},a=()=>{var t,a;i();let s=o(e.selector);if(!(e.enabled==null||o(e.enabled))||!s)return null;let c=Va(n,o((t=e.observerOptions)==null?{}:t));return!c||typeof c.observe!=`function`?null:(r=Ha(c,(a=e.relativeToViewport)==null?!0:a),r.observe(s,t=>{var n;return(n=e.onObserve)==null?void 0:n.call(e,t)}),r)};return wt(()=>{var t;return[o(e.selector),e.enabled==null?!0:o(e.enabled),o((t=e.observerOptions)==null?{}:t),e.relativeToViewport]},()=>{a()},{deep:!0}),ot(a),lt(i),V(i),M(i),{disconnect:i,observe:a,get observer(){return r}}}function Wa(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t)}function Ga(e,t){if(!W(`globalCreateIntersectionObserver`))return;let n=H(),r=n==null?void 0:n.createIntersectionObserver;if(typeof r==`function`)return B().intersectionObserverScopeByParameter?r.call(n,e,t):r.call(n,t)}function Ka(e={}){var t;let n=U();if(!n)throw Error(`useIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=(t=Wa(n,e))==null?Ga(n,e):t;if(!r||typeof r.disconnect!=`function`)throw Error(`当前运行环境不支持 IntersectionObserver,请检查基础库版本或平台能力`);let i=!1,a=()=>{if(!i){i=!0;try{r.disconnect()}catch(e){}}};return V(a),M(a),r}function qa(e){var t,n;return e?(t=(n=e.split(`?`)[0])==null?void 0:n.replace(/^\/+/,``))==null?``:t:``}function Ja(){let e=se(),t=e[e.length-1],n=e.length||1;return{canGoBack:n>1,currentRoute:qa(t==null?void 0:t.route),stackLength:n}}function Ya(e={}){var t;if(!z())throw Error(`usePageStack() 必须在 setup() 的同步阶段调用`);let n=Ja(),r=d(n.currentRoute),i=d(n.stackLength),a=E(()=>i.value>1),o=()=>{let e=Ja();r.value=e.currentRoute,i.value=e.stackLength};return((t=e.autoRefresh)==null||t)&&(j(o),L(o)),{canGoBack:a,currentRoute:r,refresh:o,stackLength:i}}function Xa(e={}){var t,n;let r=(t=e.defaultStatusBarHeight)==null?20:t,i=(n=e.defaultNavigationBarHeight)==null?44:n,a=H(),o=typeof(a==null?void 0:a.getSystemInfoSync)==`function`?a.getSystemInfoSync():{},s=Number((o==null?void 0:o.statusBarHeight)||r),c;try{c=typeof(a==null?void 0:a.getMenuButtonBoundingClientRect)==`function`?a.getMenuButtonBoundingClientRect():void 0}catch(e){}let l=Number((c==null?void 0:c.top)||0),u=Number((c==null?void 0:c.height)||0),d=l>s&&u>0?(l-s)*2+u:i;return{navigationBarHeight:d,navigationHeight:s+d,statusBarHeight:s}}function Za(e={}){var t;if(!z())throw Error(`useNavigationBarMetrics() 必须在 setup() 的同步阶段调用`);let n=Xa(e),r=d(n.statusBarHeight),i=d(n.navigationBarHeight),a=E(()=>r.value+i.value),o=()=>{let t=Xa(e);r.value=t.statusBarHeight,i.value=t.navigationBarHeight};return((t=e.autoRefresh)==null||t)&&j(o),{navigationBarHeight:i,navigationHeight:a,refresh:o,statusBarHeight:r}}function Qa(e){return typeof e!=`number`||!Number.isFinite(e)?80:Math.max(0,e)}function $a(e){if(!(typeof e!=`number`||!Number.isFinite(e)))return Math.max(0,e)}function eo(e,t={}){var n,r;if(!U())throw Error(`usePageScrollThrottle() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`usePageScrollThrottle() 需要传入回调函数`);let i=Qa(t.interval),a=(n=t.leading)==null?!0:n,o=(r=t.trailing)==null?!0:r,s=$a(t.maxWait),c,l,u=!1,d=0,f,p=()=>{c&&(clearTimeout(c),c=void 0)},m=()=>{l&&(clearTimeout(l),l=void 0)},h=t=>{p(),m(),f=void 0,d=Date.now(),e(t)},g=()=>{let e=f;f=void 0,c=void 0,!(!e||u)&&h(e)},_=()=>{let e=f;l=void 0,!(!e||u)&&h(e)},v=e=>{if(!o||c)return;let t=Math.max(0,i-(e-(d===0?e:d)));c=setTimeout(g,t)},y=e=>{if(typeof s!=`number`||l)return;let t=s-(e-(d===0?e:d));if(t<=0){_();return}l=setTimeout(_,t)};I(e=>{if(u)return;if(i===0){h(e);return}let t=Date.now();if(f=e,a&&(d===0||t-d>=i)){h(e);return}if(typeof s==`number`&&t-(d===0?t:d)>=s){h(e);return}!o&&typeof s!=`number`||(v(t),y(t))});let b=()=>{u||(u=!0,f=void 0,p(),m())};return V(b),M(b),b}function to(e,t={}){A(async()=>{try{await e()}catch(e){var n;await((n=t.onError)==null?void 0:n.call(t,e))}finally{var r;await((r=t.stopPullDownRefresh)==null?(()=>$e.stopPullDownRefresh()):r)()}})}function no(e,t){let n=t==null?U():t;if(!n||!z())throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return n}function ro(e,t,n,r){let i=kr(e);return!i||!t?Promise.resolve(null):(r(n?i.selectAll(t):i.select(t)),new Promise(e=>{i.exec(t=>{let n=Array.isArray(t)?t[0]:null;e(n==null?null:n)})}))}function io(e={}){let t=no(`useSelectorQuery`,e.context);return()=>kr(t)}function ao(e={}){var t;let n=no(`useBoundingClientRect`,e.context),r=(t=e.all)==null?!1:t;return e=>ro(n,e,r,e=>e.boundingClientRect())}function oo(e){var t;let n=no(`useSelectorFields`,e.context),r=(t=e.all)==null?!1:t;return t=>ro(n,t,r,t=>t.fields(e.fields))}function so(e={}){var t;let n=no(`useScrollOffset`,e.context),r=(t=e.all)==null?!1:t;return e=>ro(n,e,r,e=>e.scrollOffset())}const co=/\B([A-Z])/g;function lo(e){return e?e.startsWith(`--`)?e:e.replace(co,`-$1`).toLowerCase():``}function uo(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 fo(e){let t=``;for(let n of Object.keys(e)){let r=_(e[n]);if(r==null)continue;let i=lo(n);if(Array.isArray(r))for(let e of r){let n=_(e);n!=null&&(t=uo(t,`${i}:${n}`))}else t=uo(t,`${i}:${r}`)}return t}function po(e){let t=_(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=po(n);t&&(e=uo(e,t))}return e}return typeof t==`object`?fo(t):``}function mo(e){let t=_(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=mo(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))_(t[e])&&(n+=`${e} `);return n.trim()}return n}function ho(e){let t=e,n=t.setUpdatePerformanceListener;if(typeof n==`function`)return e=>{n.call(t,e)}}function go(e){let t=U();if(!t)throw Error(`useUpdatePerformanceListener() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`useUpdatePerformanceListener() 需要传入监听函数`);let n=ho(t);if(!n)throw Error(`当前实例不支持 setUpdatePerformanceListener,请检查基础库版本或组件上下文`);n(e);let r=!1,i=()=>{if(!r){r=!0;try{n(void 0)}catch(e){}}};return V(i),M(i),i}function _o(){let e=U();if(e!=null&&e[he]&&e[Ie])return e[Ie];throw Error(`defineAppSetup() / use() 只能在 app setup 上下文中调用`)}function vo(e){return e(_o())}function yo(e,...t){return _o().use(e,...t)}const bo=Object.freeze(Object.create(null));function xo(){var e;let t=z();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function So(){var e;let t=z();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?bo:e}function Co(){let e=z();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}const wo=Object.freeze(Object.create(null));function To(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?wo:r}function Eo(e,t){let n=e;try{Object.defineProperty(n,Symbol.iterator,{configurable:!0,value:()=>{let e=0;return{next:()=>e===0?(e+=1,{value:n,done:!1}):e===1?(e+=1,{value:t(),done:!1}):{value:void 0,done:!0}}}})}catch(e){}return n}function Do(e,t,n={}){let r=z();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>To(e,t);return Eo(x({get:()=>{let r=e==null?void 0:e[t];return n.get?n.get(r,o()):r},set:e=>{let t=n.set?n.set(e,o()):e;i==null||i(a,t)}}),o)}function Oo(e){let t=U();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${kt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function ko(){let e=Oo({event:`change`});return function(t,n){return e.model(t,n)}}function Ao(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function jo(e){let t=e[Xe];if(t)return t;let n=new Map;try{Object.defineProperty(e,Xe,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[Xe]=n}return n}function Mo(e){let t=U();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=jo(t),i=r.get(n);if(i)return i;let a=et(null);return r.set(n,a),a}export{Zt as $,oa as A,$i as B,Ya as C,et as Ct,Ia as D,Ba as E,Qi as F,ti as G,yi as H,Xi as I,or as J,lr as K,na as L,Yi as M,ta as N,La as O,Zi as P,jn as Q,ea as R,Za as S,tt as St,Ua as T,xi as U,Oi as V,Si as W,ar as X,sr as Y,Mn as Z,io as _,lt as _t,Do as a,Dt as at,Ja as b,rt as bt,So as c,gt as ct,go as d,ct as dt,$ as et,mo as f,dt as ft,oo as g,ht as gt,so as h,ot as ht,ko as i,Et as it,aa as j,Fa as k,vo as l,pt as lt,ao as m,ft as mt,Ao as n,wt as nt,xo as o,yt as ot,po as p,mt as pt,cr as q,Oo as r,Tt as rt,Co as s,vt as st,Mo as t,Ot as tt,yo as u,ut,to as v,st as vt,Ka as w,nt as wt,Xa as x,it as xt,eo as y,at as yt,ra as z};
package/dist/vue-demi.mjs CHANGED
@@ -1 +1 @@
1
- import"./chunk-CbfVNrr-.mjs";import{C as e,D as t,E as n,N as r,O as i,S as a,T as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,n as _,o as v,p as y,s as b,t as x,u as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E,n as D,r as O,t as k}from"./store-C-7rPMM3.mjs";import{$ as A,A as j,B as M,F as N,G as P,H as F,I,J as L,K as R,L as z,M as B,N as V,P as H,Q as U,R as W,U as G,V as K,W as q,X as J,Y,Z as X,_ as Z,_t as Q,at as $,ct as ee,et as te,g as ne,gt as re,h as ie,ht as ae,it as oe,j as se,m as ce,n as le,nt as ue,q as de,rt as fe,st as pe,t as me,v as he,vt as ge,z as _e}from"./router-Cm3FUnTw.mjs";import{$ as ve,A as ye,B as be,C as xe,Ct as Se,D as Ce,E as we,F as Te,G as Ee,H as De,I as Oe,J as ke,K as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,Q as Ie,R as Le,S as Re,St as ze,T as Be,U as Ve,V as He,W as Ue,X as We,Y as Ge,Z as Ke,_ as qe,_t as Je,a as Ye,at as Xe,b as Ze,bt as Qe,c as $e,ct as et,d as tt,dt as nt,et as rt,f as it,ft as at,g as ot,gt as st,h as ct,ht as lt,i as ut,it as dt,j as ft,k as pt,l as mt,lt as ht,m as gt,mt as _t,n as vt,nt as yt,o as bt,ot as xt,p as St,pt as Ct,q as wt,r as Tt,rt as Et,s as Dt,st as Ot,t as kt,tt as At,u as jt,ut as Mt,v as Nt,vt as Pt,w as Ft,wt as It,x as Lt,xt as Rt,y as zt,yt as Bt,z as Vt}from"./src-BF-e4_0K.mjs";export*from"@wevu/web-apis";const Ht=!1,Ut=!0,Wt=void 0;function Gt(){}export{Wt as Vue2,c as addMutationRecorder,a as batch,ue as callHookList,fe as callHookReturn,et as callUpdateHooks,E as computed,ye as createApp,O as createStore,Ce as createWevuComponent,Pe as createWevuScopedSlotComponent,x as customRef,mt as defineAppSetup,pt as defineComponent,D as defineStore,e as effect,C as effectScope,o as endBatch,oe as getCurrentInstance,Ze as getCurrentPageStackSnapshot,n as getCurrentScope,$ as getCurrentSetupContext,xt as getDeepWatchStrategy,Lt as getNavigationBarMetrics,b as getReactiveVersion,ce as hasInjectionContext,ie as inject,ne as injectGlobal,Gt as install,ve as isNoSetData,ae as isProxy,l as isRaw,g as isReactive,re as isReadonly,_ as isRef,d as isShallowReactive,ze as isShallowRef,Ht as isVue2,Ut as isVue3,rt as markNoSetData,S as markRaw,vt as mergeModels,De as mountRuntimeInstance,r as nextTick,it as normalizeClass,St as normalizeStyle,ht as onActivated,se as onAddToFavorites,B as onAttached,Mt as onBeforeMount,nt as onBeforeUnmount,at as onBeforeUpdate,Ct as onDeactivated,V as onDetached,H as onError,_t as onErrorCaptured,N as onHide,I as onLaunch,z as onLoad,W as onMemoryWarning,lt as onMounted,_e as onMoved,M as onPageNotFound,K as onPageScroll,F as onPullDownRefresh,G as onReachBottom,q as onReady,P as onResize,R as onRouteDone,de as onSaveExitState,t as onScopeDispose,st as onServerPrefetch,L as onShareAppMessage,Y as onShareTimeline,J as onShow,X as onTabItemTap,U as onThemeChange,A as onUnhandledRejection,te as onUnload,Je as onUnmounted,Pt as onUpdated,p as prelinkReactiveTree,Z as provide,he as provideGlobal,u as reactive,Q as readonly,m as ref,He as registerApp,ft as registerComponent,Me as registerPageLayoutBridge,Ne as registerRuntimeLayoutHosts,w as removeMutationRecorder,Ke as resetWevuDefaults,Fe as resolveLayoutBridge,Te as resolveLayoutHost,Ae as resolveRuntimePageLayoutName,Ee as runSetupFunction,pe as setCurrentInstance,ee as setCurrentSetupContext,Ot as setDeepWatchStrategy,j as setGlobalProvidedValue,wt as setPageLayout,Ve as setRuntimeSetDataVisibility,Ie as setWevuDefaults,y as shallowReactive,ge as shallowReadonly,Se as shallowRef,i as startBatch,h as stop,k as storeToRefs,ke as syncRuntimePageLayoutState,Ge as syncRuntimePageLayoutStateFromRuntime,Ue as teardownRuntimeInstance,T as toRaw,Qe as toRef,Rt as toRefs,s as toValue,f as touchReactive,Bt as traverse,It as triggerRef,v as unref,Oe as unregisterPageLayoutBridge,je as unregisterRuntimeLayoutHosts,jt as use,Nt as useAsyncPullDownRefresh,bt as useAttrs,Tt as useBindModel,gt as useBoundingClientRect,ut as useChangeModel,we as useDisposables,Be as useElementIntersectionObserver,Ft as useIntersectionObserver,Le as useLayoutBridge,Vt as useLayoutHosts,Ye as useModel,Dt as useNativeInstance,me as useNativePageRouter,le as useNativeRouter,Re as useNavigationBarMetrics,We as usePageLayout,zt as usePageScrollThrottle,xe as usePageStack,ct as useScrollOffset,ot as useSelectorFields,qe as useSelectorQuery,$e as useSlots,kt as useTemplateRef,tt as useUpdatePerformanceListener,At as version,be as waitForLayoutHost,yt as watch,Et as watchEffect,dt as watchPostEffect,Xe as watchSyncEffect};
1
+ import"./chunk-CbfVNrr-.mjs";import{C as e,D as t,E as n,N as r,O as i,S as a,T as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,n as _,o as v,p as y,s as b,t as x,u as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E,n as D,r as O,t as k}from"./store-C-7rPMM3.mjs";import{$ as A,A as j,B as M,F as N,G as P,H as F,I,J as L,K as R,L as z,M as B,N as V,P as H,Q as U,R as W,U as G,V as K,W as q,X as J,Y,Z as X,_ as Z,_t as Q,at as $,ct as ee,et as te,g as ne,gt as re,h as ie,ht as ae,it as oe,j as se,m as ce,n as le,nt as ue,q as de,rt as fe,st as pe,t as me,v as he,vt as ge,z as _e}from"./router-Cm3FUnTw.mjs";import{$ as ve,A as ye,B as be,C as xe,Ct as Se,D as Ce,E as we,F as Te,G as Ee,H as De,I as Oe,J as ke,K as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,Q as Ie,R as Le,S as Re,St as ze,T as Be,U as Ve,V as He,W as Ue,X as We,Y as Ge,Z as Ke,_ as qe,_t as Je,a as Ye,at as Xe,b as Ze,bt as Qe,c as $e,ct as et,d as tt,dt as nt,et as rt,f as it,ft as at,g as ot,gt as st,h as ct,ht as lt,i as ut,it as dt,j as ft,k as pt,l as mt,lt as ht,m as gt,mt as _t,n as vt,nt as yt,o as bt,ot as xt,p as St,pt as Ct,q as wt,r as Tt,rt as Et,s as Dt,st as Ot,t as kt,tt as At,u as jt,ut as Mt,v as Nt,vt as Pt,w as Ft,wt as It,x as Lt,xt as Rt,y as zt,yt as Bt,z as Vt}from"./src-1LreGZrG.mjs";export*from"@wevu/web-apis";const Ht=!1,Ut=!0,Wt=void 0;function Gt(){}export{Wt as Vue2,c as addMutationRecorder,a as batch,ue as callHookList,fe as callHookReturn,et as callUpdateHooks,E as computed,ye as createApp,O as createStore,Ce as createWevuComponent,Pe as createWevuScopedSlotComponent,x as customRef,mt as defineAppSetup,pt as defineComponent,D as defineStore,e as effect,C as effectScope,o as endBatch,oe as getCurrentInstance,Ze as getCurrentPageStackSnapshot,n as getCurrentScope,$ as getCurrentSetupContext,xt as getDeepWatchStrategy,Lt as getNavigationBarMetrics,b as getReactiveVersion,ce as hasInjectionContext,ie as inject,ne as injectGlobal,Gt as install,ve as isNoSetData,ae as isProxy,l as isRaw,g as isReactive,re as isReadonly,_ as isRef,d as isShallowReactive,ze as isShallowRef,Ht as isVue2,Ut as isVue3,rt as markNoSetData,S as markRaw,vt as mergeModels,De as mountRuntimeInstance,r as nextTick,it as normalizeClass,St as normalizeStyle,ht as onActivated,se as onAddToFavorites,B as onAttached,Mt as onBeforeMount,nt as onBeforeUnmount,at as onBeforeUpdate,Ct as onDeactivated,V as onDetached,H as onError,_t as onErrorCaptured,N as onHide,I as onLaunch,z as onLoad,W as onMemoryWarning,lt as onMounted,_e as onMoved,M as onPageNotFound,K as onPageScroll,F as onPullDownRefresh,G as onReachBottom,q as onReady,P as onResize,R as onRouteDone,de as onSaveExitState,t as onScopeDispose,st as onServerPrefetch,L as onShareAppMessage,Y as onShareTimeline,J as onShow,X as onTabItemTap,U as onThemeChange,A as onUnhandledRejection,te as onUnload,Je as onUnmounted,Pt as onUpdated,p as prelinkReactiveTree,Z as provide,he as provideGlobal,u as reactive,Q as readonly,m as ref,He as registerApp,ft as registerComponent,Me as registerPageLayoutBridge,Ne as registerRuntimeLayoutHosts,w as removeMutationRecorder,Ke as resetWevuDefaults,Fe as resolveLayoutBridge,Te as resolveLayoutHost,Ae as resolveRuntimePageLayoutName,Ee as runSetupFunction,pe as setCurrentInstance,ee as setCurrentSetupContext,Ot as setDeepWatchStrategy,j as setGlobalProvidedValue,wt as setPageLayout,Ve as setRuntimeSetDataVisibility,Ie as setWevuDefaults,y as shallowReactive,ge as shallowReadonly,Se as shallowRef,i as startBatch,h as stop,k as storeToRefs,ke as syncRuntimePageLayoutState,Ge as syncRuntimePageLayoutStateFromRuntime,Ue as teardownRuntimeInstance,T as toRaw,Qe as toRef,Rt as toRefs,s as toValue,f as touchReactive,Bt as traverse,It as triggerRef,v as unref,Oe as unregisterPageLayoutBridge,je as unregisterRuntimeLayoutHosts,jt as use,Nt as useAsyncPullDownRefresh,bt as useAttrs,Tt as useBindModel,gt as useBoundingClientRect,ut as useChangeModel,we as useDisposables,Be as useElementIntersectionObserver,Ft as useIntersectionObserver,Le as useLayoutBridge,Vt as useLayoutHosts,Ye as useModel,Dt as useNativeInstance,me as useNativePageRouter,le as useNativeRouter,Re as useNavigationBarMetrics,We as usePageLayout,zt as usePageScrollThrottle,xe as usePageStack,ct as useScrollOffset,ot as useSelectorFields,qe as useSelectorQuery,$e as useSlots,kt as useTemplateRef,tt as useUpdatePerformanceListener,At as version,be as waitForLayoutHost,yt as watch,Et as watchEffect,dt as watchPostEffect,Xe as watchSyncEffect};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "6.16.6",
4
+ "version": "6.16.7",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -184,7 +184,7 @@
184
184
  "@weapp-core/constants": "^0.1.4",
185
185
  "@weapp-core/shared": "3.0.4",
186
186
  "@wevu/api": "0.2.8",
187
- "@wevu/compiler": "6.16.6",
187
+ "@wevu/compiler": "6.16.7",
188
188
  "@wevu/web-apis": "1.2.12"
189
189
  },
190
190
  "scripts": {