wevu 6.6.10 → 6.6.12

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.
package/dist/index.d.mts CHANGED
@@ -7,9 +7,23 @@ type ShallowRef<T = any> = ShallowRef$2<T>;
7
7
  type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
8
8
  type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
9
9
  declare function isRef(value: unknown): value is Ref<any>;
10
+ declare function ref<T = any>(): Ref<T | undefined>;
10
11
  declare function ref<T>(value: T): Ref<T>;
11
12
  declare function unref<T>(value: MaybeRef<T> | ComputedRef<T>): T;
12
13
  declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
14
+ /**
15
+ * 自定义 ref 工厂:用于创建可显式控制 track/trigger 的自定义 ref
16
+ */
17
+ type CustomRefFactory<T> = (track: () => void, trigger: () => void) => {
18
+ get: () => T;
19
+ set: (value: T) => void;
20
+ };
21
+ interface CustomRefOptions<T> {
22
+ get: () => T;
23
+ set: (value: T) => void;
24
+ }
25
+ type CustomRefSource<T> = CustomRefFactory<T> | CustomRefOptions<T>;
26
+ declare function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T>;
13
27
  //#endregion
14
28
  //#region src/reactivity/computed.d.ts
15
29
  type ComputedGetter<T> = () => T;
@@ -417,6 +431,12 @@ type PropConstructor<T = any> = {
417
431
  } | PropMethod<T>;
418
432
  type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
419
433
  type ComponentPropsOptions = Record<string, PropOptions<any> | PropType<any> | null>;
434
+ interface NativeTypeHint<T = any> {
435
+ readonly __wevuNativeType?: T;
436
+ }
437
+ type NativePropsOptions = Record<string, WechatMiniprogram.Component.AllProperty | NativeTypeHint<any>>;
438
+ type NativePropType<T = any, C extends WechatMiniprogram.Component.ShortProperty = StringConstructor> = C & NativeTypeHint<T>;
439
+ type NativeTypedProperty<T = any, P extends WechatMiniprogram.Component.AllProperty = WechatMiniprogram.Component.AllProperty> = P & NativeTypeHint<T>;
420
440
  interface PropOptions<T = any> {
421
441
  type?: PropType<T> | true | null;
422
442
  /**
@@ -446,6 +466,19 @@ type InferPropType<O> = O extends null ? any : O extends {
446
466
  type?: infer T;
447
467
  } ? InferPropConstructor<T> : O extends PropType<infer V> ? V : InferPropConstructor<O>;
448
468
  type InferPropConstructor<T> = T extends readonly any[] ? InferPropConstructor<T[number]> : T extends undefined ? any : T extends null ? any : T extends BooleanConstructor ? boolean : T extends NumberConstructor ? number : T extends StringConstructor ? string : T extends DateConstructor ? Date : T extends ArrayConstructor ? any[] : T extends ObjectConstructor ? Record<string, any> : T extends PropConstructor<infer V> ? V : any;
469
+ type IsUnion<T, U = T> = T extends any ? ([U] extends [T] ? false : true) : never;
470
+ type WidenLiteral<T> = T extends string ? string extends T ? string : IsUnion<T> extends true ? T : string : T extends number ? number extends T ? number : IsUnion<T> extends true ? T : number : T extends boolean ? boolean extends T ? boolean : IsUnion<T> extends true ? T : boolean : T;
471
+ type NativeInferByCtor<C> = C extends readonly any[] ? NativeInferByCtor<C[number]> : C extends StringConstructor ? string : C extends NumberConstructor ? number : C extends BooleanConstructor ? boolean : C extends DateConstructor ? Date : C extends ArrayConstructor ? any[] : C extends ObjectConstructor ? Record<string, any> : C extends null ? any : C extends PropConstructor<infer V> ? V : any;
472
+ type MergeNativeType<Base, V> = Base extends string ? Exclude<Extract<WidenLiteral<V>, string>, never> | (Extract<WidenLiteral<V>, string> extends never ? string : never) : Base extends number ? Exclude<Extract<WidenLiteral<V>, number>, never> | (Extract<WidenLiteral<V>, number> extends never ? number : never) : Base extends boolean ? Exclude<Extract<WidenLiteral<V>, boolean>, never> | (Extract<WidenLiteral<V>, boolean> extends never ? boolean : never) : Base;
473
+ type InferNativeByOption<O extends {
474
+ type?: any;
475
+ }> = O['type'] extends NativeTypeHint<infer THint> ? THint : O extends {
476
+ value: infer V;
477
+ } ? MergeNativeType<NativeInferByCtor<O['type']>, V> : NativeInferByCtor<O['type']>;
478
+ type InferNativePropType<O> = O extends NativeTypeHint<infer T> ? T : O extends {
479
+ type?: any;
480
+ } ? InferNativeByOption<O> : NativeInferByCtor<O>;
481
+ type InferNativeProps<P extends NativePropsOptions = NativePropsOptions> = { readonly [K in keyof P]?: InferNativePropType<P[K]> };
449
482
  type InferProps<P extends ComponentPropsOptions = ComponentPropsOptions> = { [K in keyof Pick<P, RequiredKeys<P>>]: HasDefault<P[K]> extends true ? Exclude<InferPropType<P[K]>, undefined> : InferPropType<P[K]> } & { [K in keyof Pick<P, OptionalKeys<P>>]?: InferPropType<P[K]> };
450
483
  type ExtractPropTypes<P extends ComponentPropsOptions = ComponentPropsOptions> = InferProps<P>;
451
484
  type ExtractPublicPropTypes<P extends ComponentPropsOptions = ComponentPropsOptions> = InferProps<P>;
@@ -525,6 +558,7 @@ type AllowedComponentProps = AllowedComponentProps$1;
525
558
  type ComponentCustomProps = ComponentCustomProps$1;
526
559
  type ComponentOptionsMixin = ComponentOptionsMixin$1;
527
560
  type DefineComponent<PropsOrPropOptions = ComponentPropsOptions, RawBindings = Record<string, any>, D = Record<string, any>, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin$1 = ComponentOptionsMixin$1, Extends extends ComponentOptionsMixin$1 = ComponentOptionsMixin$1, E extends EmitsOptions$1 = EmitsOptions$1, EE extends string = string, PP = PublicProps$1, Props = (PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions), Defaults = (PropsOrPropOptions extends ComponentPropsOptions ? ExtractDefaultPropTypes<PropsOrPropOptions> : {}), S extends SlotsType = SlotsType> = DefineComponent$1<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults, S>;
561
+ type NativeComponent<Props = Record<string, any>> = new (...args: any[]) => InstanceType<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin$1, ComponentOptionsMixin$1, {}, string, PublicProps$1, Props, {}>>;
528
562
  type ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective$1<HostElement, Value, Modifiers, Arg>;
529
563
  type PublicProps = PublicProps$1;
530
564
  type ShallowUnwrapRef<T> = ShallowUnwrapRef$1<T>;
@@ -1050,7 +1084,14 @@ declare function useNativeInstance(): SetupContextNativeInstance;
1050
1084
  type TemplateRef<T = unknown> = Readonly<ShallowRef<T | null>>;
1051
1085
  declare function useTemplateRef<K extends keyof TemplateRefs>(name: K): TemplateRef<TemplateRefs[K]>;
1052
1086
  declare function useTemplateRef<T = unknown>(name: string): TemplateRef<T>;
1053
- declare function useModel<T = any>(props: Record<string, any>, name: string): Ref<T>;
1087
+ type ModelModifiers<M extends PropertyKey = string> = Record<M, true | undefined>;
1088
+ type ModelRef$1<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ModelRef$1<T, M, G, S>, ModelModifiers<M>];
1089
+ interface UseModelOptions<T, M extends PropertyKey = string, G = T, S = T> {
1090
+ get?: (value: T, modifiers: ModelModifiers<M>) => G;
1091
+ set?: (value: S, modifiers: ModelModifiers<M>) => T;
1092
+ }
1093
+ declare function useModel<T = any, M extends PropertyKey = string>(props: Record<string, any>, name: string): ModelRef$1<T, M, T, T>;
1094
+ declare function useModel<T = any, M extends PropertyKey = string, G = T, S = T>(props: Record<string, any>, name: string, options: UseModelOptions<T, M, G, S>): ModelRef$1<T, M, G, S>;
1054
1095
  /**
1055
1096
  * useBindModel 返回绑定到当前运行时实例的 bindModel。
1056
1097
  * 该方法必须在 setup() 的同步阶段调用。
@@ -1266,16 +1307,32 @@ declare function defineOptions<D extends object = Record<string, any>, C extends
1266
1307
  declare function defineSlots<T extends Record<string, any> = Record<string, any>>(): T;
1267
1308
  /**
1268
1309
  * defineModel 声明 v-model 绑定(weapp 变体)。
1269
- * 支持默认字段与自定义字段名。
1310
+ * 支持默认字段与自定义字段名,并兼容 Vue 3 的 tuple + modifiers 形态。
1270
1311
  *
1271
1312
  * @example
1272
1313
  * ```ts
1273
1314
  * const modelValue = defineModel<string>()
1315
+ * const [title, modifiers] = defineModel<string, 'trim' | 'uppercase'>()
1274
1316
  * const checked = defineModel<boolean>('checked')
1275
1317
  * const count = defineModel<number>('count', { default: 0 })
1276
1318
  * ```
1277
1319
  */
1278
- declare function defineModel<T = any>(name?: string, options?: Record<string, any>): Ref<T | undefined>;
1320
+ type DefineModelModifiers<M extends PropertyKey = string> = Record<M, true | undefined>;
1321
+ type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ModelRef<T, M, G, S>, DefineModelModifiers<M>];
1322
+ interface DefineModelTransformOptions<T, M extends PropertyKey = string, G = T, S = T> {
1323
+ get?: (value: T, modifiers: DefineModelModifiers<M>) => G;
1324
+ set?: (value: S, modifiers: DefineModelModifiers<M>) => T;
1325
+ }
1326
+ type DefineModelBaseOptions<T, M extends PropertyKey = string, G = T, S = T> = Record<string, any> & DefineModelTransformOptions<T, M, G, S>;
1327
+ type DefineModelRequiredOptions<T> = {
1328
+ default: T | (() => T);
1329
+ } | {
1330
+ required: true;
1331
+ };
1332
+ declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(options: DefineModelBaseOptions<T, M, G, S> & DefineModelRequiredOptions<T>): ModelRef<T, M, G, S>;
1333
+ declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(name: string, options: DefineModelBaseOptions<T, M, G, S> & DefineModelRequiredOptions<T>): ModelRef<T, M, G, S>;
1334
+ declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(options?: DefineModelBaseOptions<T | undefined, M, G | undefined, S | undefined>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
1335
+ declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(name?: string, options?: DefineModelBaseOptions<T | undefined, M, G | undefined, S | undefined>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
1279
1336
  //#endregion
1280
1337
  //#region src/store/types.d.ts
1281
1338
  /**
@@ -1386,4 +1443,4 @@ type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T]: T[K] e
1386
1443
  */
1387
1444
  declare function storeToRefs<T extends Record<string, any>>(store: T): StoreToRefsResult<T>;
1388
1445
  //#endregion
1389
- export { ActionContext, ActionSubscriber, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, ComponentTypeEmits, type ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, type CreateAppOptions, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineStoreOptions, EffectScope, EmitFn, EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramComponentBehaviorOptions, type MiniProgramComponentOptions, type MiniProgramComponentRawOptions, type MiniProgramInstance, type MiniProgramPageLifetimes, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, MutationType, type ObjectDirective, OnCleanup, type PageFeatures, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextNativeInstance, type SetupFunction, ShallowRef, type ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, type TriggerEventOptions, type VNode, type VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, type WevuPlugin, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, inject, injectGlobal, isNoSetData, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, removeMutationRecorder, resetWevuDefaults, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setWevuDefaults, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, useAttrs, useBindModel, useModel, useNativeInstance, useSlots, useTemplateRef, watch, watchEffect, withDefaults };
1446
+ export { ActionContext, ActionSubscriber, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, ComponentTypeEmits, type ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, type CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, EffectScope, EmitFn, EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramComponentBehaviorOptions, type MiniProgramComponentOptions, type MiniProgramComponentRawOptions, type MiniProgramInstance, type MiniProgramPageLifetimes, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, ModelModifiers, MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, type ObjectDirective, OnCleanup, type PageFeatures, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextNativeInstance, type SetupFunction, ShallowRef, type ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, type TriggerEventOptions, UseModelOptions, type VNode, type VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, type WevuPlugin, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, inject, injectGlobal, isNoSetData, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, removeMutationRecorder, resetWevuDefaults, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setWevuDefaults, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, useAttrs, useBindModel, useModel, useNativeInstance, useSlots, useTemplateRef, watch, watchEffect, withDefaults };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function N(e){new Set(e).forEach(j)}const P=new Set;function te(e){P.add(e)}function F(e){P.delete(e)}const I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakSet,V=new WeakMap,ne=new WeakMap;function re(e){let t=ne.get(e);return t||(t=new Set,ne.set(e,t)),t}function ie(e,t){re(e).add(t)}function H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=z.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),H(e),n.push(e))}}function se(e){let t=z.get(e);if(!t){B.delete(e),R.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){B.delete(e),R.set(e,{parent:n,key:r});return}B.add(e),R.delete(e)}function ce(e,t,n){if(typeof n!=`string`){B.add(e),R.delete(e);return}if(P.size){var r;let n=(r=I.get(t))==null?t:r;ie(n,t),ie(n,e)}let i=z.get(e);i||(i=new Map,z.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),se(e)}function le(e,t,n){let r=z.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||z.delete(e),se(e))}function ue(e,t){if(t===e)return[];if(B.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(B.has(r))return;let t=R.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const de=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[U.RAW])==null?e:t}const pe=new WeakMap,me=new WeakMap,he=new WeakMap;function ge(e,t){let n=G(e);V.set(n,``),ie(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),V.set(e.current,e.path),ie(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!W(a)||a[U.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),ce(t,e.current,i),!B.has(t)){let n=e.path?`${e.path}.${i}`:i;V.set(t,n)}ie(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function _e(e){let t=G(e),n=ne.get(t);if(!n){V.delete(t);return}for(let e of n)R.delete(e),z.delete(e),V.delete(e),B.delete(e),I.delete(e),L.delete(e);ne.delete(t)}function K(e){A(G(e),de)}const ve={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,de),H(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,de),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function ye(e){if(!W(e))return e;let t=he.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,ve);return he.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return he.has(t)}function q(e){return ae(G(e))}function xe(e,t,n){var r;if(!P.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=I.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=ue(i,e);if(!o){let r=new Set,o=z.get(e);if(o)for(let[e,t]of o){var s;let n=V.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=ue(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of P)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of P)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of P)e({root:i,kind:a,op:n,path:d})}const Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(o,e,t);let s=V.get(e);if(P.size&&typeof t==`string`&&s!=null&&!B.has(o)){let e=s?`${s}.${t}`:t;V.set(o,e)}return Ce(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(i,e,t);let a=V.get(e);if(P.size&&typeof t==`string`&&a!=null&&!B.has(i)){let e=a?`${a}.${t}`:t;V.set(i,e)}}M(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&M(e,`length`),M(e,de),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,de),H(s)),xe(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,de),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,de),H(i)),xe(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&N(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&N(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Pe(e,t){return Te(new Ne(e,t))}function Fe(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){N(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>Ue===`version`&&J(e)?(K(e),e):He(e,m)):Ue===`version`&&J(t)?(K(t),t):He(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function qe(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}const Xe=`__wevu_native_bridge__`;function Ze(e){try{Object.defineProperty(e,Xe,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xe]=!0}}function Qe(e){return typeof e==`function`&&!!e[Xe]}function $e(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return Oe(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function et(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=$e({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=(e,t)=>{let n=G(e),r=n.__wevuRuntime,i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qe(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`setData`)),s=n.__wevuNativeInstance;if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},h=e=>{if(Object.prototype.hasOwnProperty.call(s,e))return;let n=(...n)=>{let r=m(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Ze(n),s[e]=n},g=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=m(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 Je(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=m(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]||Object.prototype.hasOwnProperty.call(s,t)))return!0;let n=m(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)),Array.from(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){Je(l,n,e)}};if(Object.prototype.hasOwnProperty.call(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(g,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),h(`triggerEvent`),h(`createSelectorQuery`),h(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(g));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(g);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(g);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:g,touchSetupMethodsVersion(){p.value+=1}}}const tt=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,tt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function nt(e){return typeof e==`object`&&!!e&&e[tt]===!0}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 it(e,t=new WeakMap,n){var r,i;let a=je(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if(nt(a))return;let o=J(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=q(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([it(r,t),it(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(it(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>it(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=it(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:q(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=it(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:q(o),value:u}),u}function at(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 ot(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function st(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?at(e,t,st):rt(e)&&rt(t)?ot(e,t,st):!1}function ct(e){return e===void 0?null:e}function lt(e,t,n,r){if(!st(e,t)){if(rt(e)&&rt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=ct(t[i]);continue}lt(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){at(e,t,st)||(r[n]=ct(t));return}r[n]=ct(t)}}function ut(e,t){let n={};for(let r of Object.keys(t))lt(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function dt(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function ft(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+=ft(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+=ft(a,t-i,n),i>t)return i;return i}function pt(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ft(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 mt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=ft(e,1/0,new WeakSet);return h.set(e,n),n}return ft(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ht(e){return e===void 0?null:e}function gt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _t(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(!gt(e)||!gt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function vt(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(!vt(e[i],t[i],n-1,r))return!1;return!0}if(!gt(e)||!gt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!vt(e[a],t[a],n-1,r))return!1;return!0}function yt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function bt(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=it(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=it(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function xt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),ee=new Map(M);b.clear();let N=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},P=e=>{if(O.has(e))return O.get(e);let t=ht(it(N(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=P(e),ee.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=P(e)}let te=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),te=t.length;for(let r of t){if(!l(r))continue;let t=it(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?vt(i,t,o,{keys:s}):a===`shallow`?_t(i,t):Object.is(i,t))||(e[r]=ht(t),C[r]=t)}Object.assign(k,e)}let F=dt(k),I=0;if(f){let e=mt({input:F,entryMap:ee,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=dt(e.out)}let L=pt(F,d),R=L.fallback;if(T({mode:R?`diff`:`patch`,reason:R?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length,mergedSiblingParents:I||void 0,computedDirtyKeys:te||void 0,estimatedBytes:L.estimatedBytes,bytes:L.bytes}),R){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(F).length){for(let[e,t]of Object.entries(F)){let n=ee.get(e);n?yt(S,e,t,n.kind===`array`?`set`:n.op):yt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(F);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length})}}function St(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},ee=()=>bt({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=ee(),o=ut(E,t);if(E=t,O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?xt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:M,runDiffUpdate:N}):N(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?ee():{...E},getLatestSnapshot:()=>E}}function Ct(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function wt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Tt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Et(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 Dt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Et(e[a],o,i)}function Ot(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function kt(e){return Ye(e)}function At(e,t,n,r){return(i,a)=>{let o=Tt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ot(e,o),c=e=>{Dt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:kt,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${wt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const jt=`__wevuDefaultsScope`;let Mt={};function Nt(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Pt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Nt(e.setData),i=Nt(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Nt(e.options),o=Nt(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Ft(e,t){return Pt(e,t)}function It(e,t){return{app:Pt(e.app,t.app),component:Pt(e.component,t.component)}}function Lt(e){Mt=It(Mt,e)}function Rt(){Mt={}}function zt(e){return Ft(Mt.app,e)}function Bt(e){return Ft(Mt.component,e)}function Vt(){if(!(typeof globalThis>`u`))return globalThis}function Ht(){var e;let t=Vt(),n=(e=import.meta.env)==null?void 0:e.PLATFORM;if(n===`tt`)return t==null?void 0:t.tt;if(n===`alipay`||n===`my`)return t==null?void 0:t.my;if(n===`weapp`||n===`wx`)return t==null?void 0:t.wx;if(t!=null&&t.wx)return t.wx;if(t!=null&&t.my)return t.my;if(t!=null&&t.tt)return t.tt}function Ut(){var e;return(e=Ht())==null?Vt():e}let Wt,Gt;function Kt(){return Wt}function qt(e){Wt=e}function Jt(){return Gt}function Yt(e){Gt=e}function Z(e){if(!Wt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Wt}function Xt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Xt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Zt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Qt(e){var t;let n=Ht();if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function $t(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function en(e){Q(Z(`onLaunch`),`onLaunch`,e)}function tn(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function nn(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function rn(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function an(e){Q(Z(`onShow`),`onShow`,e)}function on(e){Q(Z(`onLoad`),`onLoad`,e)}function sn(e){Q(Z(`onHide`),`onHide`,e)}function cn(e){Q(Z(`onUnload`),`onUnload`,e)}function ln(e){Q(Z(`onReady`),`onReady`,e)}function un(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function dn(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function fn(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function pn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function mn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function hn(e){Q(Z(`onResize`),`onResize`,e)}function gn(e){Q(Z(`onMoved`),`onMoved`,e)}function _n(e){Q(Z(`onError`),`onError`,e)}function vn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function yn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Zt(t,`onShareAppMessage`),Qt(t)}function bn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Zt(t,`onShareTimeline`),Qt(t)}function xn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Zt(t,`onAddToFavorites`)}function Sn(e){Q(Z(`onMounted`),`onReady`,e)}function Cn(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function wn(e){Z(`onBeforeUnmount`),e()}function Tn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function En(e){Z(`onBeforeMount`),e()}function Dn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function On(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function kn(e){Q(Z(`onActivated`),`onShow`,e)}function An(e){Q(Z(`onDeactivated`),`onHide`,e)}function jn(e){Z(`onServerPrefetch`)}function Mn(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Nn(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function Pn(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function Fn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function In(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function Ln(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=c==null?void 0:c.wvInlineId;if(l&&r){let t=r[l];if(t&&typeof t.fn==`function`){let r={},i=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<i.length;e+=1){let t=i[e];r[t]=c==null?void 0:c[`wvS${e}`]}let a=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<a.length;e+=1){let t=a[e],n=Pn(c==null?void 0:c[`wvI${e}`]);n!==void 0&&(r[t]=n)}let o=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<i.length;t+=1){let a=i[t],s=o[t];try{let t;if(typeof s==`function`)t=s(e,r,n);else if(s&&typeof s==`object`&&s.type===`for-item`){let n=r[s.indexKey],i=Fn(e,s.path);t=i==null?void 0:i[n]}else continue;t!==void 0&&(r[a]=In(t))}catch(e){}}let s=t.fn(e,r,n);return typeof s==`function`?s.call(e,n):s}}let u=typeof t==`string`?t:void 0;if(!u)return;let d=c==null?void 0:c.wvArgs,f=[];if(Array.isArray(d))f=d;else if(typeof d==`string`)try{f=JSON.parse(d)}catch(e){try{f=JSON.parse(Nn(d))}catch(e){f=[]}}Array.isArray(f)||(f=[]);let p=f.map(e=>e===`$event`?n:e),m=e==null?void 0:e[u];if(typeof m==`function`)return m.apply(e,p)}const Rn=new Map;let zn=0;function Bn(){return zn+=1,`wv${zn}`}function Vn(e,t,n){var r;let i=(r=Rn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Rn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function Hn(e){Rn.delete(e)}function Un(e,t){var n;let r=(n=Rn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Rn.set(e,r),()=>{let n=Rn.get(e);n&&n.subscribers.delete(t)}}function Wn(e){var t;return(t=Rn.get(e))==null?void 0:t.proxy}function Gn(e){var t;return(t=Rn.get(e))==null?void 0:t.snapshot}function Kn(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Vn(n,i,t.proxy)}function qn(e){return e.kind===`component`}function Jn(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Yn(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=Jn(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 Xn(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function Zn(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?Yn(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function Qn(e){return e.__wevuTemplateRefMap}function $n(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function er(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function tr(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function nr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();let n=Ht();return n&&typeof n.createSelectorQuery==`function`?n.createSelectorQuery().in(t):null}function rr(e,t,n,r,i){let a=nr(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 ir(e,t,n){return X({selector:t,boundingClientRect:r=>rr(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>rr(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>rr(e,t,n,e=>e.fields(r),i),node:r=>rr(e,t,n,e=>e.node(),r)})}function ar(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>Xn(ir(e,t.selector,{multiple:!0,index:r}),Zn(n))))}return X([])}let r=ir(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Xn(r,Zn(n.selectComponent(t.selector))):r}function or(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>ir(e,t.selector,{multiple:!0,index:r}))):n?ir(e,t.selector,{multiple:!1}):null}function sr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Qn(e),i=n.filter(e=>!qn(e)),a=n.filter(e=>qn(e)).map(t=>({binding:t,value:ar(e,t)})),o=n=>{var i,a;let o=tr(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=er(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,$n(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=nr(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:or(e,n.binding,i)}});o([...a,...n])})}function cr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,sr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function lr(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=tr(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Qn(e);for(let t of r){let n=er(e,t),r=t.inFor?X([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,$n(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function ur(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 dr(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=dr(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 fr(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 pr(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=dr(o,e,n);if(!t)continue;let s=fr(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function mr(){return Object.freeze(Object.create(null))}function hr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function gr(e){try{return X(e)}catch(t){return e}}function _r(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Object.prototype.hasOwnProperty.call(e,`bubbles`)||Object.prototype.hasOwnProperty.call(e,`composed`)||Object.prototype.hasOwnProperty.call(e,`capturePhase`)}function vr(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(_r(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}const yr=[`triggerEvent`,`createSelectorQuery`,`setData`],br=`__wevuSetupContextInstance`;function xr(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?G(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Qe(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.__wevuNativeInstance:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function Sr(e,t,n){Ze(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Cr(e,t){let n=e[br];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=xr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qe(i))return e};Sr(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))}),Sr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=Ht();if(!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||typeof o.in!=`function`)return o;let s=(n=xr(t,e,`setData`))==null?e:n;return o.in(s)}),Sr(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});let a=gr(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,br,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[br]=a}return a}function wr(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function Tr(e,t){try{Object.defineProperty(e,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuNativeInstance=t}}function Er(e,t){try{Object.defineProperty(e,`__wevuRuntime`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuRuntime=t}}function Dr(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function Or(e){let t=e[br],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qe(n))return n;let r=e.setData;if(typeof r==`function`&&!Qe(r))return r}function kr(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Ar(e,t,n){try{return t.call(e,n)}catch(t){let n=kr(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function jr(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function Mr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;gr(e);let p=Bn(),m=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=Or(e);if(a)return Ar(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=Or(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,Ar(e,r,n)}},r})(e):{setData(t){let n=Or(e);if(n)return Ar(e,n,t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Vn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),cr(e),n}},v=t.mount({..._});h=v,Dr(v,e);let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o;b&&typeof b==`object`&&(Er(b,v),Tr(b,e));let x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>hr()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,Kn(e,T,p),n){let t=pr(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ye({});jr(i,t),b&&typeof b==`object`&&wr(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ye(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c=Cr(e,T),l={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:c,emit:(e,...t)=>{let{detail:n,options:r}=vr(t);c.triggerEvent(e,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:mr()};qt(e),Yt(l);try{let e=ur(r,i,l),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Yt(void 0),qt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))yr.includes(n)||typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function Nr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Pr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&Hn(n),lr(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function Fr(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return Ln((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){Mr(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function Ir(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=typeof s==`function`||!!t.enableOnTabItemTap,_=typeof c==`function`||!!t.enableOnResize,v=typeof u==`function`||!!t.enableOnShareTimeline,y=typeof l==`function`||!!t.enableOnShareAppMessage,b=typeof d==`function`||!!t.enableOnAddToFavorites,x=typeof n==`function`||!!t.enableOnSaveExitState,S=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:y,enableOnShareTimeline:v,enableOnAddToFavorites:b,enableOnSaveExitState:x,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:S,effectiveOnReachBottom:typeof i==`function`?i:S,effectiveOnPageScroll:typeof a==`function`?a:S,effectiveOnRouteDone:typeof o==`function`?o:S,effectiveOnTabItemTap:typeof s==`function`?s:S,effectiveOnResize:typeof c==`function`?c:S,effectiveOnShareAppMessage:typeof l==`function`?l:S,effectiveOnShareTimeline:typeof u==`function`?u:S,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let Lr=!1,Rr;function zr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function Br(){if(Lr)return;Lr=!0;let e=Ht();if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return Rr&&$(Rr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return Rr&&$(Rr,`onPageScroll`,[e==null?{}:e]),r})}function Vr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=Ht();if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function Hr(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:h,enableOnResize:g,enableOnShareAppMessage:_,enableOnShareTimeline:v,enableOnAddToFavorites:y,effectiveOnSaveExitState:b,effectiveOnPullDownRefresh:x,effectiveOnReachBottom:S,effectiveOnPageScroll:C,effectiveOnRouteDone:w,effectiveOnTabItemTap:T,effectiveOnResize:E,effectiveOnShareAppMessage:D,effectiveOnShareTimeline:O,effectiveOnAddToFavorites:k,hasHook:A}=e,j={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,Mr(this,t,n,r),Nr(this),l&&Vr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&Rr===this&&(Rr=void 0),Pr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(Br(),Rr=this,this.__wevuOnLoadCalled||j.onLoad.call(this,zr(this)),Vr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e);if(l&&m&&this.__wevuReadyCalled&&!this.__wevuRouteDoneCalled){var t;return(t=j.onRouteDone)==null?void 0:t.call(this)}},onHide(...e){if(l&&Rr===this&&(Rr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||j.onLoad.call(this,zr(this)),Vr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,cr(this,()=>{if($(this,`onReady`,e),typeof c==`function`&&c.apply(this,e),l&&m&&!this.__wevuRouteDoneCalled){var t;(t=j.onRouteDone)==null||t.call(this)}});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(j.onSaveExitState=function(...e){let t=$t(this,`onSaveExitState`,e);return t===void 0?b.apply(this,e):t}),d&&(j.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!A(this,`onPullDownRefresh`))return x.apply(this,e)}),f&&(j.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!A(this,`onReachBottom`))return S.apply(this,e)}),p&&(j.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!A(this,`onPageScroll`))return C.apply(this,e)}),m&&(j.onRouteDone=function(...e){if(this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!A(this,`onRouteDone`))return w.apply(this,e)}),h&&(j.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!A(this,`onTabItemTap`))return T.apply(this,e)}),g&&(j.onResize=function(...e){if($(this,`onResize`,e),!A(this,`onResize`))return E.apply(this,e)}),_&&(j.onShareAppMessage=function(...e){let t=$t(this,`onShareAppMessage`,e);return t===void 0?D.apply(this,e):t}),v&&(j.onShareTimeline=function(...e){let t=$t(this,`onShareTimeline`,e);return t===void 0?O.apply(this,e):t}),y&&(j.onAddToFavorites=function(...e){let t=$t(this,`onAddToFavorites`,e);return t===void 0?k.apply(this,e):t}),j}function Ur(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return Ln((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Ye(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n.__wevuRuntime}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(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`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,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i.__wevuNativeInstance=t}}for(let e of i){if(e.startsWith(`__weapp_vite_`))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 Wr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Vn(r,i,n.proxy)}function Gr(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Wr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}Wr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}Wr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,Wr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function Kr(e,t,n,r,i){var a,o;let s=(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(s(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=s(i,t);return n},c=e=>{let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`},{methods:l={},lifetimes:u={},pageLifetimes:d={},options:f={},...p}=i,m=p.onLoad,h=p.onUnload,g=p.onShow,_=p.onHide,v=p.onReady,y=p.onSaveExitState,b=p.onPullDownRefresh,x=p.onReachBottom,S=p.onPageScroll,C=p.onRouteDone,w=p.onTabItemTap,T=p.onResize,E=p.onShareAppMessage,D=p.onShareTimeline,O=p.onAddToFavorites,k=(a=p.features)==null?{}:a,A=[m,h,g,_,v,y,b,x,S,C,w,T,E,D,O].some(e=>typeof e==`function`),j=!!p.__wevu_isPage||Object.keys(k==null?{}:k).length>0||A,M={...p},ee=new Set([`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`setupLifecycle`,`features`,`__wevu_isPage`]),N=[];for(let[e,t]of Object.entries(M))ee.has(e)||typeof t!=`function`&&(N.push([e,t]),delete M[e]);let P=e=>{if(N.length){for(let[t,n]of N)if(!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=s(n)}catch(e){}}},te=new Set([`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),F={};for(let[e,t]of Object.entries(M))typeof t!=`function`||te.has(e)||(F[e]=t,delete M[e]);let I=M.__wevuTemplateRefs;delete M.__wevuTemplateRefs;let L=M.observers,R=M.setupLifecycle===`created`?`created`:`attached`;delete M.setupLifecycle;let z=M.created;delete M.features,delete M.created,delete M.onLoad,delete M.onUnload,delete M.onShow,delete M.onHide,delete M.onReady;let{enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnTabItemTap:ie,enableOnResize:H,enableOnShareAppMessage:ae,enableOnShareTimeline:oe,enableOnAddToFavorites:se,enableOnSaveExitState:ce,effectiveOnSaveExitState:le,effectiveOnPullDownRefresh:ue,effectiveOnReachBottom:U,effectiveOnPageScroll:W,effectiveOnRouteDone:de,effectiveOnTabItemTap:fe,effectiveOnResize:G,effectiveOnShareAppMessage:pe,effectiveOnShareTimeline:me,effectiveOnAddToFavorites:he}=Ir({features:k,userOnSaveExitState:y,userOnPullDownRefresh:b,userOnReachBottom:x,userOnPageScroll:S,userOnRouteDone:C,userOnTabItemTap:w,userOnResize:T,userOnShareAppMessage:E,userOnShareTimeline:D,userOnAddToFavorites:O}),ge=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=M.export;M.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let _e={multipleSlots:(o=f.multipleSlots)==null?!0:o,...f},{attachWevuPropKeys:K,syncWevuPropsFromInstance:ve,finalObservers:ye}=Gr({restOptions:M,userObservers:L}),{finalMethods:be}=Ur({userMethods:{...F,...l},runtimeMethods:t}),q=Hr({runtimeApp:e,watch:n,setup:r,userOnLoad:m,userOnUnload:h,userOnShow:g,userOnHide:_,userOnReady:v,isPage:j,enableOnSaveExitState:ce,enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnTabItemTap:ie,enableOnResize:H,enableOnShareAppMessage:ae,enableOnShareTimeline:oe,enableOnAddToFavorites:se,effectiveOnSaveExitState:le,effectiveOnPullDownRefresh:ue,effectiveOnReachBottom:U,effectiveOnPageScroll:W,effectiveOnRouteDone:de,effectiveOnTabItemTap:fe,effectiveOnResize:G,effectiveOnShareAppMessage:pe,effectiveOnShareTimeline:me,effectiveOnAddToFavorites:he,hasHook:ge}),xe={};if(j)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof be[e]!=`function`&&(xe[e]=function(...e){return t.apply(this,e)})}Component({...M,...q,observers:ye,lifetimes:{...u,created:function(...t){if(P(this),Array.isArray(I)&&I.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),K(this),R===`created`){try{Mr(this,e,n,r,{deferSetData:!0})}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}ve(this)}typeof z==`function`&&z.apply(this,t),typeof u.created==`function`&&u.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof u.moved==`function`&&u.moved.apply(this,e)},attached:function(...t){if(P(this),Array.isArray(I)&&I.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),K(this),R!==`created`||!this.__wevu)try{Mr(this,e,n,r)}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}ve(this),R===`created`&&Nr(this),typeof u.attached==`function`&&u.attached.apply(this,t)},ready:function(...e){if(j&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof u.ready==`function`&&u.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,ve(this),cr(this,()=>{$(this,`onReady`,e),typeof u.ready==`function`&&u.ready.apply(this,e)});return}typeof u.ready==`function`&&u.ready.apply(this,e)},detached:function(...e){if(j&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof u.detached==`function`&&u.detached.apply(this,e);return}lr(this),Pr(this),typeof u.detached==`function`&&u.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof u.error==`function`&&u.error.apply(this,e)}},pageLifetimes:{...d,show:function(...e){if(j&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof d.show==`function`&&d.show.apply(this,e);return}$(this,`onShow`,e),typeof d.show==`function`&&d.show.apply(this,e)},hide:function(...e){if(j&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof d.hide==`function`&&d.hide.apply(this,e);return}$(this,`onHide`,e),typeof d.hide==`function`&&d.hide.apply(this,e)},resize:function(...e){if(j&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof d.resize==`function`&&d.resize.apply(this,e);return}$(this,`onResize`,e),typeof d.resize==`function`&&d.resize.apply(this,e)}},methods:{...xe,...be},options:_e})}function qr(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 Jr(e){let{[jt]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[jt]===`component`?e:zt(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ye(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:N}=Ct(o),{boundMethods:P,computedRefs:I,computedSetters:L,dirtyComputedKeys:R,computedProxy:z,publicInstance:B,touchSetupMethodsVersion:V}=et({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ne=e==null?{setData:()=>{}}:e,re=G(r),ie,H=St({state:r,computedRefs:I,dirtyComputedKeys:R,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ne,shouldIncludeKey:N,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>ie==null?void 0:ie(),isMounted:()=>c}),ae=()=>H.job(re),oe=e=>H.mutationRecorder(e,re);ie=k(()=>{K(r);let e=r.__wevuProps;J(e)&&K(e);let t=r.__wevuAttrs;J(t)&&K(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&K(e)}else J(t)&&K(t)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),l.push(qr(()=>x(ie))),m===`patch`&&(ge(r,{shouldIncludeTopKey:N,maxDepth:T,maxKeys:E}),te(oe),l.push(qr(()=>F(oe))),l.push(qr(()=>_e(r))));function se(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),qr(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}let ce={get state(){return r},get proxy(){return B},get methods(){return P},get computed(){return z},get adapter(){return ne},bindModel:At(B,r,I,L),watch:se,snapshot:()=>H.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)}};try{Object.defineProperty(ce,`__wevu_touchSetupMethodsVersion`,{value:V,configurable:!0,enumerable:!1,writable:!1})}catch(e){ce.__wevu_touchSetupMethodsVersion=V}return ce},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=Ht(),t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),Fr(m,i==null?{}:i,s,c,l))}return m}function Yr(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function Xr(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function Zr(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvArgs)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvArgs:t,a=[];if(Array.isArray(i))a=i;else if(typeof i==`string`)try{a=JSON.parse(i)}catch(e){try{a=JSON.parse(Xr(i))}catch(e){a=[]}}return Array.isArray(a)||(a=[]),a.map(t=>t===`$event`?e:t)}function Qr(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 $r(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=Qr(i),s=Qr(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function ei(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){$r(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){$r(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if($r(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Un(n,r);let i=Gn(n);i&&r(i,Wn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a,o,s;let c=this.__wvOwnerProxy,l=(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map,u=Ln(c,(n=e==null||(r=e.currentTarget)==null||(r=r.dataset)==null?void 0:r.wvHandler)==null?e==null||(i=e.target)==null||(i=i.dataset)==null?void 0:i.wvHandler:n,e,l);if(u!==void 0)return u;if(!c)return;let d=(a=e==null||(o=e.currentTarget)==null||(o=o.dataset)==null?void 0:o.wvHandler)==null?e==null||(s=e.target)==null||(s=s.dataset)==null?void 0:s.wvHandler:a;if(typeof d!=`string`||!d)return;let f=c==null?void 0:c[d];if(typeof f!=`function`)return;let p=Zr(e);return f.apply(c,p)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function ti(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ni(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:ti(e)}function ri(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!ni(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 ii;function ai(){let e=Ut();if(!e)return;let t=e;!t.__weapp_vite_createScopedSlotComponent&&ii&&(t.__weapp_vite_createScopedSlotComponent=ii)}function oi(e){ai();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Bt(e),u=Jr({data:n,computed:r,methods:i,setData:a,[jt]:`component`}),d=(e,t)=>{let n=ur(s,e,t);return n&&t&&ri(t.runtime,t.instance,n),n},f=Yr(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return Kr(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function si(e){ai();let{properties:t,props:n,...r}=e;oi(Yr(r,n,t))}function ci(e){si(ei(e))}ii=ci,ai();const li=Symbol(`wevu.provideScope`),ui=new Map;function di(e,t){let n=Kt();if(n){let r=n[li];r||(r=new Map,n[li]=r),r.set(e,t)}else ui.set(e,t)}function fi(e,t){let n=Kt();if(n){let t=n;for(;t;){let n=t[li];if(n&&n.has(e))return n.get(e);t=null}}if(ui.has(e))return ui.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function pi(e,t){ui.set(e,t)}function mi(e,t){if(ui.has(e))return ui.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const hi=/\B([A-Z])/g;function gi(e){return e?e.startsWith(`--`)?e:e.replace(hi,`-$1`).toLowerCase():``}function _i(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 vi(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=gi(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=_i(t,`${i}:${n}`))}else t=_i(t,`${i}:${r}`)}return t}function yi(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=yi(n);t&&(e=_i(e,t))}return e}return typeof t==`object`?vi(t):``}function bi(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=bi(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const xi=Object.freeze(Object.create(null));function Si(){var e;let t=Jt();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Ci(){var e;let t=Jt();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?xi:e}function wi(){let e=Jt();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}function Ti(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function Ei(e){let t=Kt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Ti(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}function Di(e,t){let n=Jt();if(!n)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let r=n.emit,i=`update:${t}`;return Pe({get:()=>e==null?void 0:e[t],set:e=>{r==null||r(i,e)}})}function Oi(e){let t=Kt();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${wt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function ki(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function Ai(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function ji(e){return typeof e==`object`&&!!e}function Mi(e){if(!ji(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ni(e,t){for(let n in t)e[n]=t[n]}function Pi(e){if(Array.isArray(e))return e.map(e=>Pi(e));if(Mi(e)){let t={};for(let n in e)t[n]=Pi(e[n]);return t}return e}function Fi(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=Pi(t)});return}if(ji(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){Fi(i,r);continue}if(Mi(r)&&Mi(i)){Fi(i,r);continue}e[n]=Pi(r)}}}function Ii(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&ji(e)&&(Ni(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(Ni(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(Ni(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function Li(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return Li._instance=e,e}const Ri=Object.prototype.hasOwnProperty;function zi(e){return Y(e)&&Ri.call(e,`dep`)}function Bi(e){return J(e)?Pi(G(e)):zi(e)?Pi(e.value):Pi(e)}function Vi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function Hi(e,t){let n,r=!1,i=Li._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||Y(t)&&!zi(t)||o.set(e,Bi(t))});let s=Ii(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(zi(r)){r.value=Pi(e);return}if(J(r)){Fi(r,e);return}Y(r)||(n[t]=Pi(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=Vi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=Ai(n,e,t,s.actionSubs);return}if(zi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{zi(e)?e.value:K(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=Ce(u),f=Pi(G(u)),p=()=>{},m=Ii(e,d,e=>p(e),()=>{Fi(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=Vi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Fe(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=Ai(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(K(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function Ui(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,$t as callHookReturn,Mn as callUpdateHooks,Fe as computed,Jr as createApp,Li as createStore,si as createWevuComponent,ci as createWevuScopedSlotComponent,oi as defineComponent,Hi as defineStore,k as effect,w as effectScope,v as endBatch,Kt as getCurrentInstance,T as getCurrentScope,Jt as getCurrentSetupContext,Ge as getDeepWatchStrategy,q as getReactiveVersion,fi as inject,mi as injectGlobal,nt as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,be as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,ki as mergeModels,Mr as mountRuntimeInstance,o as nextTick,bi as normalizeClass,yi as normalizeStyle,kn as onActivated,xn as onAddToFavorites,En as onBeforeMount,wn as onBeforeUnmount,Dn as onBeforeUpdate,An as onDeactivated,_n as onError,On as onErrorCaptured,sn as onHide,en as onLaunch,on as onLoad,Sn as onMounted,gn as onMoved,tn as onPageNotFound,fn as onPageScroll,un as onPullDownRefresh,dn as onReachBottom,ln as onReady,hn as onResize,pn as onRouteDone,vn as onSaveExitState,E as onScopeDispose,jn as onServerPrefetch,yn as onShareAppMessage,bn as onShareTimeline,an as onShow,mn as onTabItemTap,rn as onThemeChange,nn as onUnhandledRejection,cn as onUnload,Tn as onUnmounted,Cn as onUpdated,ge as prelinkReactiveTree,di as provide,pi as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,Fr as registerApp,Kr as registerComponent,F as removeMutationRecorder,Rt as resetWevuDefaults,ur as runSetupFunction,qt as setCurrentInstance,Yt as setCurrentSetupContext,We as setDeepWatchStrategy,Lt as setWevuDefaults,ye as shallowReactive,Le as shallowRef,g as startBatch,x as stop,Ui as storeToRefs,Pr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,K as touchReactive,He as traverse,ze as triggerRef,je as unref,Si as useAttrs,Oi as useBindModel,Di as useModel,wi as useNativeInstance,Ci as useSlots,Ei as useTemplateRef,Ke as watch,qe as watchEffect};
1
+ const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function N(e){new Set(e).forEach(j)}const P=new Set;function te(e){P.add(e)}function F(e){P.delete(e)}const I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakSet,V=new WeakMap,ne=new WeakMap;function re(e){let t=ne.get(e);return t||(t=new Set,ne.set(e,t)),t}function ie(e,t){re(e).add(t)}function H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=z.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),H(e),n.push(e))}}function se(e){let t=z.get(e);if(!t){B.delete(e),R.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){B.delete(e),R.set(e,{parent:n,key:r});return}B.add(e),R.delete(e)}function ce(e,t,n){if(typeof n!=`string`){B.add(e),R.delete(e);return}if(P.size){var r;let n=(r=I.get(t))==null?t:r;ie(n,t),ie(n,e)}let i=z.get(e);i||(i=new Map,z.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),se(e)}function le(e,t,n){let r=z.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||z.delete(e),se(e))}function ue(e,t){if(t===e)return[];if(B.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(B.has(r))return;let t=R.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const de=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[U.RAW])==null?e:t}const pe=new WeakMap,me=new WeakMap,he=new WeakMap;function ge(e,t){let n=G(e);V.set(n,``),ie(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),V.set(e.current,e.path),ie(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!W(a)||a[U.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),ce(t,e.current,i),!B.has(t)){let n=e.path?`${e.path}.${i}`:i;V.set(t,n)}ie(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function _e(e){let t=G(e),n=ne.get(t);if(!n){V.delete(t);return}for(let e of n)R.delete(e),z.delete(e),V.delete(e),B.delete(e),I.delete(e),L.delete(e);ne.delete(t)}function K(e){A(G(e),de)}const ve={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,de),H(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,de),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function ye(e){if(!W(e))return e;let t=he.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,ve);return he.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return he.has(t)}function q(e){return ae(G(e))}function xe(e,t,n){var r;if(!P.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=I.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=ue(i,e);if(!o){let r=new Set,o=z.get(e);if(o)for(let[e,t]of o){var s;let n=V.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=ue(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of P)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of P)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of P)e({root:i,kind:a,op:n,path:d})}const Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(o,e,t);let s=V.get(e);if(P.size&&typeof t==`string`&&s!=null&&!B.has(o)){let e=s?`${s}.${t}`:t;V.set(o,e)}return Ce(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(i,e,t);let a=V.get(e);if(P.size&&typeof t==`string`&&a!=null&&!B.has(i)){let e=a?`${a}.${t}`:t;V.set(i,e)}}M(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&M(e,`length`),M(e,de),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,de),H(s)),xe(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,de),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,de),H(i)),xe(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&N(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&N(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Pe(e,t){return Te(new Ne(e,t))}function Fe(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){N(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>Ue===`version`&&J(e)?(K(e),e):He(e,m)):Ue===`version`&&J(t)?(K(t),t):He(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function qe(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}const Xe=`__wevu_native_bridge__`;function Ze(e){try{Object.defineProperty(e,Xe,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xe]=!0}}function Qe(e){return typeof e==`function`&&!!e[Xe]}function $e(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return Oe(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function et(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=$e({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=(e,t)=>{let n=G(e),r=n.__wevuRuntime,i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qe(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`setData`)),s=n.__wevuNativeInstance;if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},h=e=>{if(Object.prototype.hasOwnProperty.call(s,e))return;let n=(...n)=>{let r=m(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Ze(n),s[e]=n},g=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=m(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 Je(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=m(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]||Object.prototype.hasOwnProperty.call(s,t)))return!0;let n=m(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)),Array.from(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){Je(l,n,e)}};if(Object.prototype.hasOwnProperty.call(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(g,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),h(`triggerEvent`),h(`createSelectorQuery`),h(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(g));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(g);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(g);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:g,touchSetupMethodsVersion(){p.value+=1}}}const tt=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,tt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function nt(e){return typeof e==`object`&&!!e&&e[tt]===!0}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 it(e,t=new WeakMap,n){var r,i;let a=je(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if(nt(a))return;let o=J(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=q(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([it(r,t),it(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(it(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>it(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=it(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:q(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=it(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:q(o),value:u}),u}function at(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 ot(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function st(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?at(e,t,st):rt(e)&&rt(t)?ot(e,t,st):!1}function ct(e){return e===void 0?null:e}function lt(e,t,n,r){if(!st(e,t)){if(rt(e)&&rt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=ct(t[i]);continue}lt(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){at(e,t,st)||(r[n]=ct(t));return}r[n]=ct(t)}}function ut(e,t){let n={};for(let r of Object.keys(t))lt(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function dt(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function ft(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+=ft(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+=ft(a,t-i,n),i>t)return i;return i}function pt(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ft(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 mt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=ft(e,1/0,new WeakSet);return h.set(e,n),n}return ft(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ht(e){return e===void 0?null:e}function gt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _t(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(!gt(e)||!gt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function vt(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(!vt(e[i],t[i],n-1,r))return!1;return!0}if(!gt(e)||!gt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!vt(e[a],t[a],n-1,r))return!1;return!0}function yt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function bt(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=it(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=it(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function xt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),ee=new Map(M);b.clear();let N=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},P=e=>{if(O.has(e))return O.get(e);let t=ht(it(N(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=P(e),ee.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=P(e)}let te=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),te=t.length;for(let r of t){if(!l(r))continue;let t=it(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?vt(i,t,o,{keys:s}):a===`shallow`?_t(i,t):Object.is(i,t))||(e[r]=ht(t),C[r]=t)}Object.assign(k,e)}let F=dt(k),I=0;if(f){let e=mt({input:F,entryMap:ee,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=dt(e.out)}let L=pt(F,d),R=L.fallback;if(T({mode:R?`diff`:`patch`,reason:R?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length,mergedSiblingParents:I||void 0,computedDirtyKeys:te||void 0,estimatedBytes:L.estimatedBytes,bytes:L.bytes}),R){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(F).length){for(let[e,t]of Object.entries(F)){let n=ee.get(e);n?yt(S,e,t,n.kind===`array`?`set`:n.op):yt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(F);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length})}}function St(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},ee=()=>bt({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=ee(),o=ut(E,t);if(E=t,O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?xt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:M,runDiffUpdate:N}):N(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?ee():{...E},getLatestSnapshot:()=>E}}function Ct(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function wt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Tt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Et(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 Dt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Et(e[a],o,i)}function Ot(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function kt(e){return Ye(e)}function At(e,t,n,r){return(i,a)=>{let o=Tt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ot(e,o),c=e=>{Dt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:kt,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${wt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const jt=`__wevuDefaultsScope`;let Mt={};function Nt(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Pt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Nt(e.setData),i=Nt(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Nt(e.options),o=Nt(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Ft(e,t){return Pt(e,t)}function It(e,t){return{app:Pt(e.app,t.app),component:Pt(e.component,t.component)}}function Lt(e){Mt=It(Mt,e)}function Rt(){Mt={}}function zt(e){return Ft(Mt.app,e)}function Bt(e){return Ft(Mt.component,e)}function Vt(){if(!(typeof globalThis>`u`))return globalThis}function Ht(){var e;let t=Vt(),n=(e=import.meta.env)==null?void 0:e.PLATFORM;if(n===`tt`)return t==null?void 0:t.tt;if(n===`alipay`||n===`my`)return t==null?void 0:t.my;if(n===`weapp`||n===`wx`)return t==null?void 0:t.wx;if(t!=null&&t.wx)return t.wx;if(t!=null&&t.my)return t.my;if(t!=null&&t.tt)return t.tt}function Ut(){var e;return(e=Ht())==null?Vt():e}let Wt,Gt;function Kt(){return Wt}function qt(e){Wt=e}function Jt(){return Gt}function Yt(e){Gt=e}function Z(e){if(!Wt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Wt}function Xt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Xt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Zt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Qt(e){var t;let n=Ht();if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function $t(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function en(e){Q(Z(`onLaunch`),`onLaunch`,e)}function tn(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function nn(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function rn(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function an(e){Q(Z(`onShow`),`onShow`,e)}function on(e){Q(Z(`onLoad`),`onLoad`,e)}function sn(e){Q(Z(`onHide`),`onHide`,e)}function cn(e){Q(Z(`onUnload`),`onUnload`,e)}function ln(e){Q(Z(`onReady`),`onReady`,e)}function un(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function dn(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function fn(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function pn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function mn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function hn(e){Q(Z(`onResize`),`onResize`,e)}function gn(e){Q(Z(`onMoved`),`onMoved`,e)}function _n(e){Q(Z(`onError`),`onError`,e)}function vn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function yn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Zt(t,`onShareAppMessage`),Qt(t)}function bn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Zt(t,`onShareTimeline`),Qt(t)}function xn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Zt(t,`onAddToFavorites`)}function Sn(e){Q(Z(`onMounted`),`onReady`,e)}function Cn(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function wn(e){Z(`onBeforeUnmount`),e()}function Tn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function En(e){Z(`onBeforeMount`),e()}function Dn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function On(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function kn(e){Q(Z(`onActivated`),`onShow`,e)}function An(e){Q(Z(`onDeactivated`),`onHide`,e)}function jn(e){Z(`onServerPrefetch`)}function Mn(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Nn(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function Pn(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function Fn(e){return e.trim().replace(/[^a-z0-9]+/gi,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function In(e,t){let n=Fn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}function Ln(e,t,n){let r=In(t,n);return r&&(e==null?void 0:e[r])!==void 0?e[r]:e==null?void 0:e[t]}function Rn(e,t){let n=Ln(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function zn(e,t){return!Rn(t,e)||!e||typeof e!=`object`||!(`detail`in e)||e.detail===void 0?e:e.detail}function Bn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function Vn(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function Hn(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=zn(n,c),u=Ln(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=Pn(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=Bn(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=Vn(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=Ln(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=Ln(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(Nn(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)}const Un=new Map;let Wn=0;function Gn(){return Wn+=1,`wv${Wn}`}function Kn(e,t,n){var r;let i=(r=Un.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Un.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function qn(e){Un.delete(e)}function Jn(e,t){var n;let r=(n=Un.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Un.set(e,r),()=>{let n=Un.get(e);n&&n.subscribers.delete(t)}}function Yn(e){var t;return(t=Un.get(e))==null?void 0:t.proxy}function Xn(e){var t;return(t=Un.get(e))==null?void 0:t.snapshot}function Zn(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Kn(n,i,t.proxy)}function Qn(e){return e.kind===`component`}function $n(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function er(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=$n(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 tr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function nr(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?er(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function rr(e){return e.__wevuTemplateRefMap}function ir(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function ar(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function 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=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function sr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();let n=Ht();return n&&typeof n.createSelectorQuery==`function`?n.createSelectorQuery().in(t):null}function cr(e,t,n,r,i){let a=sr(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 lr(e,t,n){return X({selector:t,boundingClientRect:r=>cr(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>cr(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>cr(e,t,n,e=>e.fields(r),i),node:r=>cr(e,t,n,e=>e.node(),r)})}function ur(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>tr(lr(e,t.selector,{multiple:!0,index:r}),nr(n))))}return X([])}let r=lr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?tr(r,nr(n.selectComponent(t.selector))):r}function dr(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>lr(e,t.selector,{multiple:!0,index:r}))):n?lr(e,t.selector,{multiple:!1}):null}function fr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=rr(e),i=n.filter(e=>!Qn(e)),a=n.filter(e=>Qn(e)).map(t=>({binding:t,value:ur(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=ar(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,ir(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=sr(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:dr(e,n.binding,i)}});o([...a,...n])})}function pr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,fr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function mr(e){var t,n;let r=e.__wevuTemplateRefs;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=rr(e);for(let t of r){let n=ar(e,t),r=t.inFor?X([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,ir(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function hr(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 gr(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=gr(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 _r(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 vr(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=gr(o,e,n);if(!t)continue;let s=_r(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function yr(){return Object.freeze(Object.create(null))}function br(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function xr(e){try{return X(e)}catch(t){return e}}function Sr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Object.prototype.hasOwnProperty.call(e,`bubbles`)||Object.prototype.hasOwnProperty.call(e,`composed`)||Object.prototype.hasOwnProperty.call(e,`capturePhase`)}function Cr(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(Sr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}const wr=[`triggerEvent`,`createSelectorQuery`,`setData`],Tr=`__wevuSetupContextInstance`;function Er(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?G(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Qe(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.__wevuNativeInstance:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function Dr(e,t,n){Ze(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Or(e,t){let n=e[Tr];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Er(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qe(i))return e};Dr(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))}),Dr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=Ht();if(!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||typeof o.in!=`function`)return o;let s=(n=Er(t,e,`setData`))==null?e:n;return o.in(s)}),Dr(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});let a=xr(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,Tr,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Tr]=a}return a}function kr(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function Ar(e,t){try{Object.defineProperty(e,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuNativeInstance=t}}function jr(e,t){try{Object.defineProperty(e,`__wevuRuntime`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuRuntime=t}}function Mr(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function Nr(e){let t=e[Tr],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qe(n))return n;let r=e.setData;if(typeof r==`function`&&!Qe(r))return r}function Pr(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Fr(e,t,n){try{return t.call(e,n)}catch(t){let n=Pr(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function Ir(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function Lr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;xr(e);let p=Gn(),m=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=Nr(e);if(a)return Fr(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=Nr(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,Fr(e,r,n)}},r})(e):{setData(t){let n=Nr(e);if(n)return Fr(e,n,t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Kn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),pr(e),n}},v=t.mount({..._});h=v,Mr(v,e);let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o;b&&typeof b==`object`&&(jr(b,v),Ar(b,e));let x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>br()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,Zn(e,T,p),n){let t=vr(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ye({});Ir(i,t),b&&typeof b==`object`&&kr(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ye(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c=Or(e,T),l={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:c,emit:(e,...t)=>{let{detail:n,options:r}=Cr(t);c.triggerEvent(e,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:yr()};qt(e),Yt(l);try{let e=hr(r,i,l),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Yt(void 0),qt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))wr.includes(n)||typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function Rr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function zr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&qn(n),mr(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function Br(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Hn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){Lr(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function Vr(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=typeof s==`function`||!!t.enableOnTabItemTap,_=typeof c==`function`||!!t.enableOnResize,v=typeof u==`function`||!!t.enableOnShareTimeline,y=typeof l==`function`||!!t.enableOnShareAppMessage,b=typeof d==`function`||!!t.enableOnAddToFavorites,x=typeof n==`function`||!!t.enableOnSaveExitState,S=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:y,enableOnShareTimeline:v,enableOnAddToFavorites:b,enableOnSaveExitState:x,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:S,effectiveOnReachBottom:typeof i==`function`?i:S,effectiveOnPageScroll:typeof a==`function`?a:S,effectiveOnRouteDone:typeof o==`function`?o:S,effectiveOnTabItemTap:typeof s==`function`?s:S,effectiveOnResize:typeof c==`function`?c:S,effectiveOnShareAppMessage:typeof l==`function`?l:S,effectiveOnShareTimeline:typeof u==`function`?u:S,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let Hr=!1,Ur;function Wr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function Gr(){if(Hr)return;Hr=!0;let e=Ht();if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return Ur&&$(Ur,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return Ur&&$(Ur,`onPageScroll`,[e==null?{}:e]),r})}function Kr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=Ht();if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function qr(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:h,enableOnResize:g,enableOnShareAppMessage:_,enableOnShareTimeline:v,enableOnAddToFavorites:y,effectiveOnSaveExitState:b,effectiveOnPullDownRefresh:x,effectiveOnReachBottom:S,effectiveOnPageScroll:C,effectiveOnRouteDone:w,effectiveOnTabItemTap:T,effectiveOnResize:E,effectiveOnShareAppMessage:D,effectiveOnShareTimeline:O,effectiveOnAddToFavorites:k,hasHook:A}=e,j={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,Lr(this,t,n,r),Rr(this),l&&Kr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&Ur===this&&(Ur=void 0),zr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(Gr(),Ur=this,this.__wevuOnLoadCalled||j.onLoad.call(this,Wr(this)),Kr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e);if(l&&m&&this.__wevuReadyCalled&&!this.__wevuRouteDoneCalled){var t;return(t=j.onRouteDone)==null?void 0:t.call(this)}},onHide(...e){if(l&&Ur===this&&(Ur=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||j.onLoad.call(this,Wr(this)),Kr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,pr(this,()=>{if($(this,`onReady`,e),typeof c==`function`&&c.apply(this,e),l&&m&&!this.__wevuRouteDoneCalled){var t;(t=j.onRouteDone)==null||t.call(this)}});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(j.onSaveExitState=function(...e){let t=$t(this,`onSaveExitState`,e);return t===void 0?b.apply(this,e):t}),d&&(j.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!A(this,`onPullDownRefresh`))return x.apply(this,e)}),f&&(j.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!A(this,`onReachBottom`))return S.apply(this,e)}),p&&(j.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!A(this,`onPageScroll`))return C.apply(this,e)}),m&&(j.onRouteDone=function(...e){if(this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!A(this,`onRouteDone`))return w.apply(this,e)}),h&&(j.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!A(this,`onTabItemTap`))return T.apply(this,e)}),g&&(j.onResize=function(...e){if($(this,`onResize`,e),!A(this,`onResize`))return E.apply(this,e)}),_&&(j.onShareAppMessage=function(...e){let t=$t(this,`onShareAppMessage`,e);return t===void 0?D.apply(this,e):t}),v&&(j.onShareTimeline=function(...e){let t=$t(this,`onShareTimeline`,e);return t===void 0?O.apply(this,e):t}),y&&(j.onAddToFavorites=function(...e){let t=$t(this,`onAddToFavorites`,e);return t===void 0?k.apply(this,e):t}),j}function Jr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Hn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Ye(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n.__wevuRuntime}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(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`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,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i.__wevuNativeInstance=t}}for(let e of i){if(e.startsWith(`__weapp_vite_`))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 Yr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Kn(r,i,n.proxy)}function Xr(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Yr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}Yr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}Yr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,Yr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function Zr(e,t,n,r,i){var a,o;let s=(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(s(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=s(i,t);return n},c=e=>{let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`},{methods:l={},lifetimes:u={},pageLifetimes:d={},options:f={},...p}=i,m=p.onLoad,h=p.onUnload,g=p.onShow,_=p.onHide,v=p.onReady,y=p.onSaveExitState,b=p.onPullDownRefresh,x=p.onReachBottom,S=p.onPageScroll,C=p.onRouteDone,w=p.onTabItemTap,T=p.onResize,E=p.onShareAppMessage,D=p.onShareTimeline,O=p.onAddToFavorites,k=(a=p.features)==null?{}:a,A=[m,h,g,_,v,y,b,x,S,C,w,T,E,D,O].some(e=>typeof e==`function`),j=!!p.__wevu_isPage||Object.keys(k==null?{}:k).length>0||A,M={...p},ee=new Set([`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`setupLifecycle`,`features`,`__wevu_isPage`]),N=[];for(let[e,t]of Object.entries(M))ee.has(e)||typeof t!=`function`&&(N.push([e,t]),delete M[e]);let P=e=>{if(N.length){for(let[t,n]of N)if(!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=s(n)}catch(e){}}},te=new Set([`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),F={};for(let[e,t]of Object.entries(M))typeof t!=`function`||te.has(e)||(F[e]=t,delete M[e]);let I=M.__wevuTemplateRefs;delete M.__wevuTemplateRefs;let L=M.observers,R=M.setupLifecycle===`created`?`created`:`attached`;delete M.setupLifecycle;let z=M.created;delete M.features,delete M.created,delete M.onLoad,delete M.onUnload,delete M.onShow,delete M.onHide,delete M.onReady;let{enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnTabItemTap:ie,enableOnResize:H,enableOnShareAppMessage:ae,enableOnShareTimeline:oe,enableOnAddToFavorites:se,enableOnSaveExitState:ce,effectiveOnSaveExitState:le,effectiveOnPullDownRefresh:ue,effectiveOnReachBottom:U,effectiveOnPageScroll:W,effectiveOnRouteDone:de,effectiveOnTabItemTap:fe,effectiveOnResize:G,effectiveOnShareAppMessage:pe,effectiveOnShareTimeline:me,effectiveOnAddToFavorites:he}=Vr({features:k,userOnSaveExitState:y,userOnPullDownRefresh:b,userOnReachBottom:x,userOnPageScroll:S,userOnRouteDone:C,userOnTabItemTap:w,userOnResize:T,userOnShareAppMessage:E,userOnShareTimeline:D,userOnAddToFavorites:O}),ge=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=M.export;M.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let _e={multipleSlots:(o=f.multipleSlots)==null?!0:o,...f},{attachWevuPropKeys:K,syncWevuPropsFromInstance:ve,finalObservers:ye}=Xr({restOptions:M,userObservers:L}),{finalMethods:be}=Jr({userMethods:{...F,...l},runtimeMethods:t}),q=qr({runtimeApp:e,watch:n,setup:r,userOnLoad:m,userOnUnload:h,userOnShow:g,userOnHide:_,userOnReady:v,isPage:j,enableOnSaveExitState:ce,enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnTabItemTap:ie,enableOnResize:H,enableOnShareAppMessage:ae,enableOnShareTimeline:oe,enableOnAddToFavorites:se,effectiveOnSaveExitState:le,effectiveOnPullDownRefresh:ue,effectiveOnReachBottom:U,effectiveOnPageScroll:W,effectiveOnRouteDone:de,effectiveOnTabItemTap:fe,effectiveOnResize:G,effectiveOnShareAppMessage:pe,effectiveOnShareTimeline:me,effectiveOnAddToFavorites:he,hasHook:ge}),xe={};if(j)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof be[e]!=`function`&&(xe[e]=function(...e){return t.apply(this,e)})}Component({...M,...q,observers:ye,lifetimes:{...u,created:function(...t){if(P(this),Array.isArray(I)&&I.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),K(this),R===`created`){try{Lr(this,e,n,r,{deferSetData:!0})}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}ve(this)}typeof z==`function`&&z.apply(this,t),typeof u.created==`function`&&u.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof u.moved==`function`&&u.moved.apply(this,e)},attached:function(...t){if(P(this),Array.isArray(I)&&I.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),K(this),R!==`created`||!this.__wevu)try{Lr(this,e,n,r)}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}ve(this),R===`created`&&Rr(this),typeof u.attached==`function`&&u.attached.apply(this,t)},ready:function(...e){if(j&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof u.ready==`function`&&u.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,ve(this),pr(this,()=>{$(this,`onReady`,e),typeof u.ready==`function`&&u.ready.apply(this,e)});return}typeof u.ready==`function`&&u.ready.apply(this,e)},detached:function(...e){if(j&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof u.detached==`function`&&u.detached.apply(this,e);return}mr(this),zr(this),typeof u.detached==`function`&&u.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof u.error==`function`&&u.error.apply(this,e)}},pageLifetimes:{...d,show:function(...e){if(j&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof d.show==`function`&&d.show.apply(this,e);return}$(this,`onShow`,e),typeof d.show==`function`&&d.show.apply(this,e)},hide:function(...e){if(j&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof d.hide==`function`&&d.hide.apply(this,e);return}$(this,`onHide`,e),typeof d.hide==`function`&&d.hide.apply(this,e)},resize:function(...e){if(j&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof d.resize==`function`&&d.resize.apply(this,e);return}$(this,`onResize`,e),typeof d.resize==`function`&&d.resize.apply(this,e)}},methods:{...xe,...be},options:_e})}function Qr(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 $r(e){let{[jt]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[jt]===`component`?e:zt(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ye(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:N}=Ct(o),{boundMethods:P,computedRefs:I,computedSetters:L,dirtyComputedKeys:R,computedProxy:z,publicInstance:B,touchSetupMethodsVersion:V}=et({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ne=e==null?{setData:()=>{}}:e,re=G(r),ie,H=St({state:r,computedRefs:I,dirtyComputedKeys:R,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ne,shouldIncludeKey:N,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>ie==null?void 0:ie(),isMounted:()=>c}),ae=()=>H.job(re),oe=e=>H.mutationRecorder(e,re);ie=k(()=>{K(r);let e=r.__wevuProps;J(e)&&K(e);let t=r.__wevuAttrs;J(t)&&K(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&K(e)}else J(t)&&K(t)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),l.push(Qr(()=>x(ie))),m===`patch`&&(ge(r,{shouldIncludeTopKey:N,maxDepth:T,maxKeys:E}),te(oe),l.push(Qr(()=>F(oe))),l.push(Qr(()=>_e(r))));function se(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),Qr(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}let ce={get state(){return r},get proxy(){return B},get methods(){return P},get computed(){return z},get adapter(){return ne},bindModel:At(B,r,I,L),watch:se,snapshot:()=>H.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)}};try{Object.defineProperty(ce,`__wevu_touchSetupMethodsVersion`,{value:V,configurable:!0,enumerable:!1,writable:!1})}catch(e){ce.__wevu_touchSetupMethodsVersion=V}return ce},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=Ht(),t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),Br(m,i==null?{}:i,s,c,l))}return m}function ei(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function ti(e){return e.replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#34;/g,`"`).replace(/&apos;/g,`'`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)}function ni(e){var t,n,r,i;let a=Ln((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(ti(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function ri(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 ii(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=ri(i),s=ri(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function ai(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){ii(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){ii(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(ii(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Jn(n,r);let i=Xn(n);i&&r(i,Yn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a;let o=this.__wvOwnerProxy,s=Hn(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map);if(s!==void 0)return s;if(!o)return;let c=Ln((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=ni(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,__weapp_vite_inline_map:e.inlineMap}),t}function oi(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function si(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:oi(e)}function ci(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!si(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 li;function ui(){let e=Ut();if(!e)return;let t=e;!t.__weapp_vite_createScopedSlotComponent&&li&&(t.__weapp_vite_createScopedSlotComponent=li)}function di(e){ui();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Bt(e),u=$r({data:n,computed:r,methods:i,setData:a,[jt]:`component`}),d=(e,t)=>{let n=hr(s,e,t);return n&&t&&ci(t.runtime,t.instance,n),n},f=ei(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return Zr(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function fi(e){ui();let{properties:t,props:n,...r}=e;di(ei(r,n,t))}function pi(e){fi(ai(e))}li=pi,ui();const mi=Symbol(`wevu.provideScope`),hi=new Map;function gi(e,t){let n=Kt();if(n){let r=n[mi];r||(r=new Map,n[mi]=r),r.set(e,t)}else hi.set(e,t)}function _i(e,t){let n=Kt();if(n){let t=n;for(;t;){let n=t[mi];if(n&&n.has(e))return n.get(e);t=null}}if(hi.has(e))return hi.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function vi(e,t){hi.set(e,t)}function yi(e,t){if(hi.has(e))return hi.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const bi=/\B([A-Z])/g;function xi(e){return e?e.startsWith(`--`)?e:e.replace(bi,`-$1`).toLowerCase():``}function Si(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 Ci(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=xi(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=Si(t,`${i}:${n}`))}else t=Si(t,`${i}:${r}`)}return t}function wi(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=wi(n);t&&(e=Si(e,t))}return e}return typeof t==`object`?Ci(t):``}function Ti(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Ti(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const Ei=Object.freeze(Object.create(null));function Di(){var e;let t=Jt();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Oi(){var e;let t=Jt();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Ei:e}function ki(){let e=Jt();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}function Ai(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function ji(e){let t=Kt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Ai(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}const Mi=Object.freeze(Object.create(null));function Ni(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Mi:r}function Pi(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 Fi(e,t,n={}){let r=Jt();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Ni(e,t);return Pi(Pe({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 Ii(e){let t=Kt();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${wt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function Li(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function Ri(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function zi(e){return typeof e==`object`&&!!e}function Bi(e){if(!zi(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Vi(e,t){for(let n in t)e[n]=t[n]}function Hi(e){if(Array.isArray(e))return e.map(e=>Hi(e));if(Bi(e)){let t={};for(let n in e)t[n]=Hi(e[n]);return t}return e}function Ui(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=Hi(t)});return}if(zi(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){Ui(i,r);continue}if(Bi(r)&&Bi(i)){Ui(i,r);continue}e[n]=Hi(r)}}}function Wi(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&zi(e)&&(Vi(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(Vi(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(Vi(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function Gi(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return Gi._instance=e,e}const Ki=Object.prototype.hasOwnProperty;function qi(e){return Y(e)&&Ki.call(e,`dep`)}function Ji(e){return J(e)?Hi(G(e)):qi(e)?Hi(e.value):Hi(e)}function Yi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function Xi(e,t){let n,r=!1,i=Gi._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||Y(t)&&!qi(t)||o.set(e,Ji(t))});let s=Wi(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(qi(r)){r.value=Hi(e);return}if(J(r)){Ui(r,e);return}Y(r)||(n[t]=Hi(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=Yi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=Ri(n,e,t,s.actionSubs);return}if(qi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{qi(e)?e.value:K(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=Ce(u),f=Hi(G(u)),p=()=>{},m=Wi(e,d,e=>p(e),()=>{Ui(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=Yi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Fe(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=Ri(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(K(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function Zi(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,$t as callHookReturn,Mn as callUpdateHooks,Fe as computed,$r as createApp,Gi as createStore,fi as createWevuComponent,pi as createWevuScopedSlotComponent,Pe as customRef,di as defineComponent,Xi as defineStore,k as effect,w as effectScope,v as endBatch,Kt as getCurrentInstance,T as getCurrentScope,Jt as getCurrentSetupContext,Ge as getDeepWatchStrategy,q as getReactiveVersion,_i as inject,yi as injectGlobal,nt as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,be as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,Li as mergeModels,Lr as mountRuntimeInstance,o as nextTick,Ti as normalizeClass,wi as normalizeStyle,kn as onActivated,xn as onAddToFavorites,En as onBeforeMount,wn as onBeforeUnmount,Dn as onBeforeUpdate,An as onDeactivated,_n as onError,On as onErrorCaptured,sn as onHide,en as onLaunch,on as onLoad,Sn as onMounted,gn as onMoved,tn as onPageNotFound,fn as onPageScroll,un as onPullDownRefresh,dn as onReachBottom,ln as onReady,hn as onResize,pn as onRouteDone,vn as onSaveExitState,E as onScopeDispose,jn as onServerPrefetch,yn as onShareAppMessage,bn as onShareTimeline,an as onShow,mn as onTabItemTap,rn as onThemeChange,nn as onUnhandledRejection,cn as onUnload,Tn as onUnmounted,Cn as onUpdated,ge as prelinkReactiveTree,gi as provide,vi as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,Br as registerApp,Zr as registerComponent,F as removeMutationRecorder,Rt as resetWevuDefaults,hr as runSetupFunction,qt as setCurrentInstance,Yt as setCurrentSetupContext,We as setDeepWatchStrategy,Lt as setWevuDefaults,ye as shallowReactive,Le as shallowRef,g as startBatch,x as stop,Zi as storeToRefs,zr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,K as touchReactive,He as traverse,ze as triggerRef,je as unref,Di as useAttrs,Ii as useBindModel,Fi as useModel,ki as useNativeInstance,Oi as useSlots,ji as useTemplateRef,Ke as watch,qe as watchEffect};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "6.6.10",
4
+ "version": "6.6.12",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -66,8 +66,8 @@
66
66
  "miniprogram-api-typings": "^5.0.0"
67
67
  },
68
68
  "dependencies": {
69
- "vue": "^3.5.28",
70
- "@wevu/compiler": "6.6.10"
69
+ "vue": "^3.5.29",
70
+ "@wevu/compiler": "6.6.12"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "tsdown -w",