@vue-mini/core 1.2.11 → 1.2.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/vue-mini.cjs.js +56 -45
- package/dist/vue-mini.cjs.prod.js +2 -2
- package/dist/vue-mini.esm-bundler.js +29 -29
- package/package.json +6 -3
package/dist/vue-mini.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vue-mini v1.2.
|
|
2
|
+
* vue-mini v1.2.12
|
|
3
3
|
* https://github.com/vue-mini/vue-mini
|
|
4
4
|
* (c) 2019-present Yang Mingshan
|
|
5
5
|
* @license MIT
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @vue/shared v3.5.
|
|
10
|
+
* @vue/shared v3.5.38
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
13
|
**/
|
|
@@ -65,7 +65,7 @@ const def = (obj, key, value, writable = false) => {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* @vue/reactivity v3.5.
|
|
68
|
+
* @vue/reactivity v3.5.38
|
|
69
69
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
70
70
|
* @license MIT
|
|
71
71
|
**/
|
|
@@ -96,12 +96,18 @@ class EffectScope {
|
|
|
96
96
|
*/
|
|
97
97
|
this.cleanups = [];
|
|
98
98
|
this._isPaused = false;
|
|
99
|
+
this._warnOnRun = true;
|
|
99
100
|
this.__v_skip = true;
|
|
100
|
-
this.parent = activeEffectScope;
|
|
101
101
|
if (!detached && activeEffectScope) {
|
|
102
|
-
|
|
103
|
-
this
|
|
104
|
-
|
|
102
|
+
if (activeEffectScope.active) {
|
|
103
|
+
this.parent = activeEffectScope;
|
|
104
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
105
|
+
this
|
|
106
|
+
) - 1;
|
|
107
|
+
} else {
|
|
108
|
+
this._active = false;
|
|
109
|
+
this._warnOnRun = false;
|
|
110
|
+
}
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
113
|
get active() {
|
|
@@ -149,7 +155,7 @@ class EffectScope {
|
|
|
149
155
|
} finally {
|
|
150
156
|
activeEffectScope = currentEffectScope;
|
|
151
157
|
}
|
|
152
|
-
} else {
|
|
158
|
+
} else if (this._warnOnRun) {
|
|
153
159
|
warn(`cannot run an inactive effect scope.`);
|
|
154
160
|
}
|
|
155
161
|
}
|
|
@@ -255,8 +261,12 @@ class ReactiveEffect {
|
|
|
255
261
|
*/
|
|
256
262
|
this.cleanup = void 0;
|
|
257
263
|
this.scheduler = void 0;
|
|
258
|
-
if (activeEffectScope
|
|
259
|
-
activeEffectScope.
|
|
264
|
+
if (activeEffectScope) {
|
|
265
|
+
if (activeEffectScope.active) {
|
|
266
|
+
activeEffectScope.effects.push(this);
|
|
267
|
+
} else {
|
|
268
|
+
this.flags &= -2;
|
|
269
|
+
}
|
|
260
270
|
}
|
|
261
271
|
}
|
|
262
272
|
pause() {
|
|
@@ -1404,9 +1414,6 @@ function targetTypeMap(rawType) {
|
|
|
1404
1414
|
return 0 /* INVALID */;
|
|
1405
1415
|
}
|
|
1406
1416
|
}
|
|
1407
|
-
function getTargetType(value) {
|
|
1408
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1409
|
-
}
|
|
1410
1417
|
// @__NO_SIDE_EFFECTS__
|
|
1411
1418
|
function reactive(target) {
|
|
1412
1419
|
if (/* @__PURE__ */ isReadonly(target)) {
|
|
@@ -1464,14 +1471,17 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1464
1471
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1465
1472
|
return target;
|
|
1466
1473
|
}
|
|
1467
|
-
|
|
1468
|
-
if (targetType === 0 /* INVALID */) {
|
|
1474
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) {
|
|
1469
1475
|
return target;
|
|
1470
1476
|
}
|
|
1471
1477
|
const existingProxy = proxyMap.get(target);
|
|
1472
1478
|
if (existingProxy) {
|
|
1473
1479
|
return existingProxy;
|
|
1474
1480
|
}
|
|
1481
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1482
|
+
if (targetType === 0 /* INVALID */) {
|
|
1483
|
+
return target;
|
|
1484
|
+
}
|
|
1475
1485
|
const proxy = new Proxy(
|
|
1476
1486
|
target,
|
|
1477
1487
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -1898,8 +1908,9 @@ function watch$1(source, cb, options = EMPTY_OBJ$1) {
|
|
|
1898
1908
|
if (once && cb) {
|
|
1899
1909
|
const _cb = cb;
|
|
1900
1910
|
cb = (...args) => {
|
|
1901
|
-
_cb(...args);
|
|
1911
|
+
const res = _cb(...args);
|
|
1902
1912
|
watchHandle();
|
|
1913
|
+
return res;
|
|
1903
1914
|
};
|
|
1904
1915
|
}
|
|
1905
1916
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -1909,7 +1920,7 @@ function watch$1(source, cb, options = EMPTY_OBJ$1) {
|
|
|
1909
1920
|
}
|
|
1910
1921
|
if (cb) {
|
|
1911
1922
|
const newValue = effect.run();
|
|
1912
|
-
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
1923
|
+
if (immediateFirstRun || deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
1913
1924
|
if (cleanup) {
|
|
1914
1925
|
cleanup();
|
|
1915
1926
|
}
|
|
@@ -2034,7 +2045,7 @@ function isFunction(x) {
|
|
|
2034
2045
|
return typeof x === 'function';
|
|
2035
2046
|
}
|
|
2036
2047
|
function toHiddenField(name) {
|
|
2037
|
-
return `
|
|
2048
|
+
return `__v_${name}`;
|
|
2038
2049
|
}
|
|
2039
2050
|
|
|
2040
2051
|
var SchedulerJobFlags;
|
|
@@ -2382,9 +2393,9 @@ function definePage(optionsOrSetup, config) {
|
|
|
2382
2393
|
}
|
|
2383
2394
|
const originOnLoad = options[PageLifecycle.ON_LOAD];
|
|
2384
2395
|
options[PageLifecycle.ON_LOAD] = function (query) {
|
|
2385
|
-
this.
|
|
2396
|
+
this.__v_scope = new EffectScope();
|
|
2386
2397
|
// @ts-expect-error
|
|
2387
|
-
this.
|
|
2398
|
+
this.__v_scope.on();
|
|
2388
2399
|
const context = {
|
|
2389
2400
|
is: this.is,
|
|
2390
2401
|
route: this.route,
|
|
@@ -2432,7 +2443,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
2432
2443
|
}
|
|
2433
2444
|
}
|
|
2434
2445
|
// @ts-expect-error
|
|
2435
|
-
this.
|
|
2446
|
+
this.__v_scope.off();
|
|
2436
2447
|
if (originOnLoad !== undefined) {
|
|
2437
2448
|
originOnLoad.call(this, query);
|
|
2438
2449
|
}
|
|
@@ -2440,12 +2451,12 @@ function definePage(optionsOrSetup, config) {
|
|
|
2440
2451
|
const onUnload = createLifecycle$1(options, PageLifecycle.ON_UNLOAD);
|
|
2441
2452
|
options[PageLifecycle.ON_UNLOAD] = function () {
|
|
2442
2453
|
onUnload.call(this);
|
|
2443
|
-
this.
|
|
2454
|
+
this.__v_scope.stop();
|
|
2444
2455
|
};
|
|
2445
2456
|
if (options[PageLifecycle.ON_PAGE_SCROLL] || config.listenPageScroll) {
|
|
2446
2457
|
options[PageLifecycle.ON_PAGE_SCROLL] = createLifecycle$1(options, PageLifecycle.ON_PAGE_SCROLL);
|
|
2447
2458
|
/* istanbul ignore next -- @preserve */
|
|
2448
|
-
options.
|
|
2459
|
+
options.__v_listenPageScroll = () => true;
|
|
2449
2460
|
}
|
|
2450
2461
|
if (options[PageLifecycle.ON_SHARE_APP_MESSAGE] === undefined &&
|
|
2451
2462
|
config.canShareToOthers) {
|
|
@@ -2457,7 +2468,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
2457
2468
|
return {};
|
|
2458
2469
|
};
|
|
2459
2470
|
/* istanbul ignore next -- @preserve */
|
|
2460
|
-
options.
|
|
2471
|
+
options.__v_isInjectedShareToOthersHook = () => true;
|
|
2461
2472
|
}
|
|
2462
2473
|
if (options[PageLifecycle.ON_SHARE_TIMELINE] === undefined &&
|
|
2463
2474
|
config.canShareToTimeline) {
|
|
@@ -2469,7 +2480,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
2469
2480
|
return {};
|
|
2470
2481
|
};
|
|
2471
2482
|
/* istanbul ignore next -- @preserve */
|
|
2472
|
-
options.
|
|
2483
|
+
options.__v_isInjectedShareToTimelineHook = () => true;
|
|
2473
2484
|
}
|
|
2474
2485
|
if (options[PageLifecycle.ON_ADD_TO_FAVORITES] === undefined) {
|
|
2475
2486
|
options[PageLifecycle.ON_ADD_TO_FAVORITES] = function (favorites) {
|
|
@@ -2480,7 +2491,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
2480
2491
|
return {};
|
|
2481
2492
|
};
|
|
2482
2493
|
/* istanbul ignore next -- @preserve */
|
|
2483
|
-
options.
|
|
2494
|
+
options.__v_isInjectedFavoritesHook = () => true;
|
|
2484
2495
|
}
|
|
2485
2496
|
if (options[PageLifecycle.ON_SAVE_EXIT_STATE] === undefined) {
|
|
2486
2497
|
options[PageLifecycle.ON_SAVE_EXIT_STATE] = function () {
|
|
@@ -2491,7 +2502,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
2491
2502
|
return { data: undefined };
|
|
2492
2503
|
};
|
|
2493
2504
|
/* istanbul ignore next -- @preserve */
|
|
2494
|
-
options.
|
|
2505
|
+
options.__v_isInjectedExitStateHook = () => true;
|
|
2495
2506
|
}
|
|
2496
2507
|
options[PageLifecycle.ON_SHOW] = createLifecycle$1(options, PageLifecycle.ON_SHOW);
|
|
2497
2508
|
options[PageLifecycle.ON_READY] = createLifecycle$1(options, PageLifecycle.ON_READY);
|
|
@@ -2560,16 +2571,16 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2560
2571
|
const originAttached = options.lifetimes[ComponentLifecycle.ATTACHED] ||
|
|
2561
2572
|
options[ComponentLifecycle.ATTACHED];
|
|
2562
2573
|
options.lifetimes[ComponentLifecycle.ATTACHED] = function () {
|
|
2563
|
-
this.
|
|
2574
|
+
this.__v_scope = new EffectScope();
|
|
2564
2575
|
// @ts-expect-error
|
|
2565
|
-
this.
|
|
2576
|
+
this.__v_scope.on();
|
|
2566
2577
|
const rawProps = {};
|
|
2567
2578
|
if (properties) {
|
|
2568
2579
|
properties.forEach((property) => {
|
|
2569
2580
|
rawProps[property] = this.data[property];
|
|
2570
2581
|
});
|
|
2571
2582
|
}
|
|
2572
|
-
this.
|
|
2583
|
+
this.__v_props = shallowReactive(rawProps);
|
|
2573
2584
|
const context = {
|
|
2574
2585
|
is: this.is,
|
|
2575
2586
|
id: this.id,
|
|
@@ -2602,7 +2613,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2602
2613
|
setCurrentComponent(this);
|
|
2603
2614
|
const bindings = setup(
|
|
2604
2615
|
/* istanbul ignore next -- @preserve */
|
|
2605
|
-
shallowReadonly(this.
|
|
2616
|
+
shallowReadonly(this.__v_props) , context);
|
|
2606
2617
|
unsetCurrentComponent();
|
|
2607
2618
|
if (bindings !== undefined) {
|
|
2608
2619
|
let data;
|
|
@@ -2622,7 +2633,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2622
2633
|
}
|
|
2623
2634
|
}
|
|
2624
2635
|
// @ts-expect-error
|
|
2625
|
-
this.
|
|
2636
|
+
this.__v_scope.off();
|
|
2626
2637
|
if (originAttached !== undefined) {
|
|
2627
2638
|
originAttached.call(this);
|
|
2628
2639
|
}
|
|
@@ -2630,7 +2641,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2630
2641
|
const detached = createComponentLifecycle(options, ComponentLifecycle.DETACHED);
|
|
2631
2642
|
options.lifetimes[ComponentLifecycle.DETACHED] = function () {
|
|
2632
2643
|
detached.call(this);
|
|
2633
|
-
this.
|
|
2644
|
+
this.__v_scope.stop();
|
|
2634
2645
|
};
|
|
2635
2646
|
const originReady = options.lifetimes[ComponentLifecycle.READY] ||
|
|
2636
2647
|
options[ComponentLifecycle.READY];
|
|
@@ -2644,7 +2655,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2644
2655
|
config.listenPageScroll) {
|
|
2645
2656
|
options.methods[PageLifecycle.ON_PAGE_SCROLL] = createPageLifecycle(options, PageLifecycle.ON_PAGE_SCROLL);
|
|
2646
2657
|
/* istanbul ignore next -- @preserve */
|
|
2647
|
-
options.methods.
|
|
2658
|
+
options.methods.__v_listenPageScroll = () => true;
|
|
2648
2659
|
}
|
|
2649
2660
|
if (options.methods[PageLifecycle.ON_SHARE_APP_MESSAGE] === undefined &&
|
|
2650
2661
|
config.canShareToOthers) {
|
|
@@ -2656,7 +2667,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2656
2667
|
return {};
|
|
2657
2668
|
};
|
|
2658
2669
|
/* istanbul ignore next -- @preserve */
|
|
2659
|
-
options.methods.
|
|
2670
|
+
options.methods.__v_isInjectedShareToOthersHook = () => true;
|
|
2660
2671
|
}
|
|
2661
2672
|
if (options.methods[PageLifecycle.ON_SHARE_TIMELINE] === undefined &&
|
|
2662
2673
|
config.canShareToTimeline) {
|
|
@@ -2668,7 +2679,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2668
2679
|
return {};
|
|
2669
2680
|
};
|
|
2670
2681
|
/* istanbul ignore next -- @preserve */
|
|
2671
|
-
options.methods.
|
|
2682
|
+
options.methods.__v_isInjectedShareToTimelineHook = () => true;
|
|
2672
2683
|
}
|
|
2673
2684
|
if (options.methods[PageLifecycle.ON_ADD_TO_FAVORITES] === undefined) {
|
|
2674
2685
|
options.methods[PageLifecycle.ON_ADD_TO_FAVORITES] = function (favorites) {
|
|
@@ -2679,7 +2690,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2679
2690
|
return {};
|
|
2680
2691
|
};
|
|
2681
2692
|
/* istanbul ignore next -- @preserve */
|
|
2682
|
-
options.methods.
|
|
2693
|
+
options.methods.__v_isInjectedFavoritesHook = () => true;
|
|
2683
2694
|
}
|
|
2684
2695
|
if (options.methods[PageLifecycle.ON_SAVE_EXIT_STATE] === undefined) {
|
|
2685
2696
|
options.methods[PageLifecycle.ON_SAVE_EXIT_STATE] = function () {
|
|
@@ -2690,7 +2701,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2690
2701
|
return { data: undefined };
|
|
2691
2702
|
};
|
|
2692
2703
|
/* istanbul ignore next -- @preserve */
|
|
2693
|
-
options.methods.
|
|
2704
|
+
options.methods.__v_isInjectedExitStateHook = () => true;
|
|
2694
2705
|
}
|
|
2695
2706
|
options.methods[PageLifecycle.ON_LOAD] = createPageLifecycle(options, PageLifecycle.ON_LOAD);
|
|
2696
2707
|
options.methods[PageLifecycle.ON_PULL_DOWN_REFRESH] = createPageLifecycle(options, PageLifecycle.ON_PULL_DOWN_REFRESH);
|
|
@@ -2715,8 +2726,8 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
2715
2726
|
const originObserver = options.observers[property];
|
|
2716
2727
|
options.observers[property] = function (value) {
|
|
2717
2728
|
// Observer executes before attached
|
|
2718
|
-
if (this.
|
|
2719
|
-
this.
|
|
2729
|
+
if (this.__v_props) {
|
|
2730
|
+
this.__v_props[property] = value;
|
|
2720
2731
|
}
|
|
2721
2732
|
if (originObserver !== undefined) {
|
|
2722
2733
|
originObserver.call(this, value);
|
|
@@ -2771,7 +2782,7 @@ const onPageScroll = (hook) => {
|
|
|
2771
2782
|
/* istanbul ignore else -- @preserve */
|
|
2772
2783
|
if (currentInstance) {
|
|
2773
2784
|
/* istanbul ignore else -- @preserve */
|
|
2774
|
-
if (currentInstance.
|
|
2785
|
+
if (currentInstance.__v_listenPageScroll) {
|
|
2775
2786
|
injectHook(currentInstance, PageLifecycle.ON_PAGE_SCROLL, hook);
|
|
2776
2787
|
}
|
|
2777
2788
|
else {
|
|
@@ -2788,7 +2799,7 @@ const onShareAppMessage = (hook) => {
|
|
|
2788
2799
|
if (currentInstance) {
|
|
2789
2800
|
/* istanbul ignore else -- @preserve */
|
|
2790
2801
|
if (currentInstance[PageLifecycle.ON_SHARE_APP_MESSAGE] &&
|
|
2791
|
-
currentInstance.
|
|
2802
|
+
currentInstance.__v_isInjectedShareToOthersHook) {
|
|
2792
2803
|
const hiddenField = toHiddenField(PageLifecycle.ON_SHARE_APP_MESSAGE);
|
|
2793
2804
|
/* istanbul ignore else -- @preserve */
|
|
2794
2805
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -2812,7 +2823,7 @@ const onShareTimeline = (hook) => {
|
|
|
2812
2823
|
if (currentInstance) {
|
|
2813
2824
|
/* istanbul ignore else -- @preserve */
|
|
2814
2825
|
if (currentInstance[PageLifecycle.ON_SHARE_TIMELINE] &&
|
|
2815
|
-
currentInstance.
|
|
2826
|
+
currentInstance.__v_isInjectedShareToTimelineHook) {
|
|
2816
2827
|
const hiddenField = toHiddenField(PageLifecycle.ON_SHARE_TIMELINE);
|
|
2817
2828
|
/* istanbul ignore else -- @preserve */
|
|
2818
2829
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -2835,7 +2846,7 @@ const onAddToFavorites = (hook) => {
|
|
|
2835
2846
|
/* istanbul ignore else -- @preserve */
|
|
2836
2847
|
if (currentInstance) {
|
|
2837
2848
|
/* istanbul ignore else -- @preserve */
|
|
2838
|
-
if (currentInstance.
|
|
2849
|
+
if (currentInstance.__v_isInjectedFavoritesHook) {
|
|
2839
2850
|
const hiddenField = toHiddenField(PageLifecycle.ON_ADD_TO_FAVORITES);
|
|
2840
2851
|
/* istanbul ignore else -- @preserve */
|
|
2841
2852
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -2858,7 +2869,7 @@ const onSaveExitState = (hook) => {
|
|
|
2858
2869
|
/* istanbul ignore else -- @preserve */
|
|
2859
2870
|
if (currentInstance) {
|
|
2860
2871
|
/* istanbul ignore else -- @preserve */
|
|
2861
|
-
if (currentInstance.
|
|
2872
|
+
if (currentInstance.__v_isInjectedExitStateHook) {
|
|
2862
2873
|
const hiddenField = toHiddenField(PageLifecycle.ON_SAVE_EXIT_STATE);
|
|
2863
2874
|
/* istanbul ignore else -- @preserve */
|
|
2864
2875
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vue-mini v1.2.
|
|
2
|
+
* vue-mini v1.2.12
|
|
3
3
|
* https://github.com/vue-mini/vue-mini
|
|
4
4
|
* (c) 2019-present Yang Mingshan
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
"use strict";function t(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return t=>t in e}const e={},s=()=>{},n=Object.assign,i=Object.prototype.hasOwnProperty,o=(t,e)=>i.call(t,e),r=Array.isArray,c=t=>"[object Map]"===u(t),a=t=>"function"==typeof t,h=t=>"symbol"==typeof t,l=t=>null!==t&&"object"==typeof t,_=Object.prototype.toString,u=t=>_.call(t),f=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,p=(t,e)=>!Object.is(t,e);let d,E;class v{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=d,!t&&d&&(this.index=(d.scopes||(d.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,e;if(this._isPaused=!1,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=d;try{return d=this,t()}finally{d=e}}}on(){1===++this._on&&(this.prevScope=d,d=this)}off(){if(this._on>0&&0===--this._on){if(d===this)d=this.prevScope;else{let t=d;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){let e,s;for(this._active=!1,e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(this.effects.length=0,e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0}}}function O(){return d}const g=new WeakSet;class S{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,d&&d.active&&d.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,g.has(this)&&(g.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||T(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,U(this),y(this);const t=E,e=P;E=this,P=!0;try{return this.fn()}finally{D(this),E=t,P=e,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)I(t);this.deps=this.depsTail=void 0,U(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?g.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){x(this)&&this.run()}get dirty(){return x(this)}}let A,N,R=0;function T(t,e=!1){if(t.flags|=8,e)return t.next=N,void(N=t);t.next=A,A=t}function b(){R++}function m(){if(--R>0)return;if(N){let t=N;for(N=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let t;for(;A;){let e=A;for(A=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(e){t||(t=e)}e=s}}if(t)throw t}function y(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function D(t){let e,s=t.depsTail,n=s;for(;n;){const t=n.prevDep;-1===n.version?(n===s&&(s=t),I(n),L(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=t}t.deps=e,t.depsTail=s}function x(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(w(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function w(t){if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===M)return;if(t.globalVersion=M,!t.isSSR&&128&t.flags&&(!t.deps&&!t._dirty||!x(t)))return;t.flags|=2;const e=t.dep,s=E,n=P;E=t,P=!0;try{y(t);const s=t.fn(t._value);(0===e.version||p(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(t){throw e.version++,t}finally{E=s,P=n,D(t),t.flags&=-3}}function I(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let t=s.computed.deps;t;t=t.nextDep)I(t,!0)}e||--s.sc||!s.map||s.map.delete(s.key)}function L(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let P=!0;const H=[];function k(){H.push(P),P=!1}function C(){const t=H.pop();P=void 0===t||t}function U(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=E;E=void 0;try{e()}finally{E=t}}}let M=0;class j{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class W{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!E||!P||E===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==E)e=this.activeLink=new j(E,this),E.deps?(e.prevDep=E.depsTail,E.depsTail.nextDep=e,E.depsTail=e):E.deps=E.depsTail=e,V(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=E.depsTail,e.nextDep=void 0,E.depsTail.nextDep=e,E.depsTail=e,E.deps===e&&(E.deps=t)}return e}trigger(t){this.version++,M++,this.notify(t)}notify(t){b();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{m()}}}function V(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let t=e.deps;t;t=t.nextDep)V(t)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const G=new WeakMap,F=Symbol(""),B=Symbol(""),Q=Symbol("");function Y(t,e,s){if(P&&E){let e=G.get(t);e||G.set(t,e=new Map);let n=e.get(s);n||(e.set(s,n=new W),n.map=e,n.key=s),n.track()}}function X(t,e,s,n,i,o){const a=G.get(t);if(!a)return void M++;const l=t=>{t&&t.trigger()};if(b(),"clear"===e)a.forEach(l);else{const i=r(t),o=i&&f(s);if(i&&"length"===s){const t=Number(n);a.forEach((e,s)=>{("length"===s||s===Q||!h(s)&&s>=t)&&l(e)})}else switch((void 0!==s||a.has(void 0))&&l(a.get(s)),o&&l(a.get(Q)),e){case"add":i?o&&l(a.get("length")):(l(a.get(F)),c(t)&&l(a.get(B)));break;case"delete":i||(l(a.get(F)),c(t)&&l(a.get(B)));break;case"set":c(t)&&l(a.get(F))}}m()}function Z(t){const e=Ct(t);return e===t?e:(Y(e,0,Q),Ht(t)?e:e.map(Ut))}function z(t){return Y(t=Ct(t),0,Q),t}function J(t,e){return Pt(t)?Lt(t)?Mt(Ut(e)):Mt(e):Ut(e)}const K={__proto__:null,[Symbol.iterator](){return $(this,Symbol.iterator,t=>J(this,t))},concat(...t){return Z(this).concat(...t.map(t=>r(t)?Z(t):t))},entries(){return $(this,"entries",t=>(t[1]=J(this,t[1]),t))},every(t,e){return tt(this,"every",t,e,void 0,arguments)},filter(t,e){return tt(this,"filter",t,e,t=>t.map(t=>J(this,t)),arguments)},find(t,e){return tt(this,"find",t,e,t=>J(this,t),arguments)},findIndex(t,e){return tt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return tt(this,"findLast",t,e,t=>J(this,t),arguments)},findLastIndex(t,e){return tt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return tt(this,"forEach",t,e,void 0,arguments)},includes(...t){return st(this,"includes",t)},indexOf(...t){return st(this,"indexOf",t)},join(t){return Z(this).join(t)},lastIndexOf(...t){return st(this,"lastIndexOf",t)},map(t,e){return tt(this,"map",t,e,void 0,arguments)},pop(){return nt(this,"pop")},push(...t){return nt(this,"push",t)},reduce(t,...e){return et(this,"reduce",t,e)},reduceRight(t,...e){return et(this,"reduceRight",t,e)},shift(){return nt(this,"shift")},some(t,e){return tt(this,"some",t,e,void 0,arguments)},splice(...t){return nt(this,"splice",t)},toReversed(){return Z(this).toReversed()},toSorted(t){return Z(this).toSorted(t)},toSpliced(...t){return Z(this).toSpliced(...t)},unshift(...t){return nt(this,"unshift",t)},values(){return $(this,"values",t=>J(this,t))}};function $(t,e,s){const n=z(t),i=n[e]();return n===t||Ht(t)||(i._next=i.next,i.next=()=>{const t=i._next();return t.done||(t.value=s(t.value)),t}),i}const q=Array.prototype;function tt(t,e,s,n,i,o){const r=z(t),c=r!==t&&!Ht(t),a=r[e];if(a!==q[e]){const e=a.apply(t,o);return c?Ut(e):e}let h=s;r!==t&&(c?h=function(e,n){return s.call(this,J(t,e),n,t)}:s.length>2&&(h=function(e,n){return s.call(this,e,n,t)}));const l=a.call(r,h,n);return c&&i?i(l):l}function et(t,e,s,n){const i=z(t),o=i!==t&&!Ht(t);let r=s,c=!1;i!==t&&(o?(c=0===n.length,r=function(e,n,i){return c&&(c=!1,e=J(t,e)),s.call(this,e,J(t,n),i,t)}):s.length>3&&(r=function(e,n,i){return s.call(this,e,n,i,t)}));const a=i[e](r,...n);return c?J(t,a):a}function st(t,e,s){const n=Ct(t);Y(n,0,Q);const i=n[e](...s);return-1!==i&&!1!==i||!kt(s[0])?i:(s[0]=Ct(s[0]),n[e](...s))}function nt(t,e,s=[]){k(),b();const n=Ct(t)[e].apply(t,s);return m(),C(),n}const it=t("__proto__,__v_isRef,__isVue"),ot=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(h));function rt(t){h(t)||(t=String(t));const e=Ct(this);return Y(e,0,t),e.hasOwnProperty(t)}class ct{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,s){if("__v_skip"===e)return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===e)return!n;if("__v_isReadonly"===e)return n;if("__v_isShallow"===e)return i;if("__v_raw"===e)return s===(n?i?mt:bt:i?Tt:Rt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=r(t);if(!n){let t;if(o&&(t=K[e]))return t;if("hasOwnProperty"===e)return rt}const c=Reflect.get(t,e,jt(t)?t:s);if(h(e)?ot.has(e):it(e))return c;if(n||Y(t,0,e),i)return c;if(jt(c)){const t=o&&f(e)?c:c.value;return n&&l(t)?wt(t):t}return l(c)?n?wt(c):Dt(c):c}}class at extends ct{constructor(t=!1){super(!1,t)}set(t,e,s,n){let i=t[e];const c=r(t)&&f(e);if(!this._isShallow){const t=Pt(i);if(Ht(s)||Pt(s)||(i=Ct(i),s=Ct(s)),!c&&jt(i)&&!jt(s))return t||(i.value=s),!0}const a=c?Number(e)<t.length:o(t,e),h=Reflect.set(t,e,s,jt(t)?t:n);return t===Ct(n)&&(a?p(s,i)&&X(t,"set",e,s):X(t,"add",e,s)),h}deleteProperty(t,e){const s=o(t,e),n=Reflect.deleteProperty(t,e);return n&&s&&X(t,"delete",e,void 0),n}has(t,e){const s=Reflect.has(t,e);return h(e)&&ot.has(e)||Y(t,0,e),s}ownKeys(t){return Y(t,0,r(t)?"length":F),Reflect.ownKeys(t)}}class ht extends ct{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const lt=new at,_t=new ht,ut=new at(!0),ft=new ht(!0),pt=t=>t,dt=t=>Reflect.getPrototypeOf(t);function Et(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function vt(t,e){const s={get(s){const n=this.__v_raw,i=Ct(n),o=Ct(s);t||(p(s,o)&&Y(i,0,s),Y(i,0,o));const{has:r}=dt(i),c=e?pt:t?Mt:Ut;return r.call(i,s)?c(n.get(s)):r.call(i,o)?c(n.get(o)):void(n!==i&&n.get(s))},get size(){const e=this.__v_raw;return!t&&Y(Ct(e),0,F),e.size},has(e){const s=this.__v_raw,n=Ct(s),i=Ct(e);return t||(p(e,i)&&Y(n,0,e),Y(n,0,i)),e===i?s.has(e):s.has(e)||s.has(i)},forEach(s,n){const i=this,o=i.__v_raw,r=Ct(o),c=e?pt:t?Mt:Ut;return!t&&Y(r,0,F),o.forEach((t,e)=>s.call(n,c(t),c(e),i))}};n(s,t?{add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear")}:{add(t){const s=Ct(this),n=dt(s),i=Ct(t),o=e||Ht(t)||Pt(t)?t:i;return n.has.call(s,o)||p(t,o)&&n.has.call(s,t)||p(i,o)&&n.has.call(s,i)||(s.add(o),X(s,"add",o,o)),this},set(t,s){e||Ht(s)||Pt(s)||(s=Ct(s));const n=Ct(this),{has:i,get:o}=dt(n);let r=i.call(n,t);r||(t=Ct(t),r=i.call(n,t));const c=o.call(n,t);return n.set(t,s),r?p(s,c)&&X(n,"set",t,s):X(n,"add",t,s),this},delete(t){const e=Ct(this),{has:s,get:n}=dt(e);let i=s.call(e,t);i||(t=Ct(t),i=s.call(e,t)),n&&n.call(e,t);const o=e.delete(t);return i&&X(e,"delete",t,void 0),o},clear(){const t=Ct(this),e=0!==t.size,s=t.clear();return e&&X(t,"clear",void 0,void 0),s}});return["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=function(t,e,s){return function(...i){const o=this.__v_raw,r=Ct(o),a=c(r),h="entries"===t||t===Symbol.iterator&&a,l="keys"===t&&a,_=o[t](...i),u=s?pt:e?Mt:Ut;return!e&&Y(r,0,l?B:F),n(Object.create(_),{next(){const{value:t,done:e}=_.next();return e?{value:t,done:e}:{value:h?[u(t[0]),u(t[1])]:u(t),done:e}}})}}(i,t,e)}),s}function Ot(t,e){const s=vt(t,e);return(e,n,i)=>"__v_isReactive"===n?!t:"__v_isReadonly"===n?t:"__v_raw"===n?e:Reflect.get(o(s,n)&&n in e?s:e,n,i)}const gt={get:Ot(!1,!1)},St={get:Ot(!1,!0)},At={get:Ot(!0,!1)},Nt={get:Ot(!0,!0)},Rt=new WeakMap,Tt=new WeakMap,bt=new WeakMap,mt=new WeakMap;function yt(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>u(t).slice(8,-1))(t))}function Dt(t){return Pt(t)?t:It(t,!1,lt,gt,Rt)}function xt(t){return It(t,!1,ut,St,Tt)}function wt(t){return It(t,!0,_t,At,bt)}function It(t,e,s,n,i){if(!l(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=yt(t);if(0===o)return t;const r=i.get(t);if(r)return r;const c=new Proxy(t,2===o?n:s);return i.set(t,c),c}function Lt(t){return Pt(t)?Lt(t.__v_raw):!(!t||!t.__v_isReactive)}function Pt(t){return!(!t||!t.__v_isReadonly)}function Ht(t){return!(!t||!t.__v_isShallow)}function kt(t){return!!t&&!!t.__v_raw}function Ct(t){const e=t&&t.__v_raw;return e?Ct(e):t}const Ut=t=>l(t)?Dt(t):t,Mt=t=>l(t)?wt(t):t;function jt(t){return!!t&&!0===t.__v_isRef}function Wt(t){return Vt(t,!1)}function Vt(t,e){return jt(t)?t:new Gt(t,e)}class Gt{constructor(t,e){this.dep=new W,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Ct(t),this._value=e?t:Ut(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,s=this.__v_isShallow||Ht(t)||Pt(t);t=s?t:Ct(t),p(t,e)&&(this._rawValue=t,this._value=s?t:Ut(t),this.dep.trigger())}}function Ft(t){return jt(t)?t.value:t}const Bt={get:(t,e,s)=>"__v_raw"===e?t:Ft(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return jt(i)&&!jt(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};class Qt{constructor(t){this.__v_isRef=!0,this._value=void 0;const e=this.dep=new W,{get:s,set:n}=t(e.track.bind(e),e.trigger.bind(e));this._get=s,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}class Yt{constructor(t,e,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=h(e)?e:String(e),this._raw=Ct(t);let n=!0,i=t;if(!r(t)||h(this._key)||!f(this._key))do{n=!kt(i)||Ht(i)}while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Ft(t)),this._value=void 0===t?this._defaultValue:t}set value(t){if(this._shallow&&jt(this._raw[this._key])){const e=this._object[this._key];if(jt(e))return void(e.value=t)}this._object[this._key]=t}get dep(){return function(t,e){const s=G.get(t);return s&&s.get(e)}(this._raw,this._key)}}class Xt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Zt(t,e,s){return new Yt(t,e,s)}class zt{constructor(t,e,s){this.fn=t,this.setter=e,this._value=void 0,this.dep=new W(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=M-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=s}notify(){if(this.flags|=16,!(8&this.flags)&&E!==this)return T(this,!0),!0}get value(){const t=this.dep.track();return w(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}const Jt={},Kt=new WeakMap;let $t;function qt(t,e=!1,s=$t){if(s){let e=Kt.get(s);e||Kt.set(s,e=[]),e.push(t)}}function te(t,e=1/0,s){if(e<=0||!l(t)||t.__v_skip)return t;if(((s=s||new Map).get(t)||0)>=e)return t;if(s.set(t,e),e--,jt(t))te(t.value,e,s);else if(r(t))for(let n=0;n<t.length;n++)te(t[n],e,s);else if("[object Set]"===u(t)||c(t))t.forEach(t=>{te(t,e,s)});else if((t=>"[object Object]"===u(t))(t)){for(const n in t)te(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&te(t[n],e,s)}return t}const ee={},se=Array.isArray,ne=Object.assign;function ie(t,e){const s={};return Object.keys(t).forEach(n=>{e.includes(n)||(s[n]=t[n])}),s}function oe(t){return Object.prototype.toString.call(t).slice(8,-1)}function re(t){return"function"==typeof t}function ce(t){return`__${t}__`}var ae;!function(t){t[t.QUEUED=1]="QUEUED",t[t.ALLOW_RECURSE=4]="ALLOW_RECURSE"}(ae||(ae={}));const he=[];let le=-1;const _e=[];let ue=null,fe=0;const pe=Promise.resolve();let de=null;function Ee(t){t.flags&ae.QUEUED||(he.push(t),t.flags|=ae.QUEUED,de||(de=pe.then(Oe)))}function ve(){if(_e.length>0){for(ue=[...new Set(_e)],_e.length=0,fe=0;fe<ue.length;fe++){const t=ue[fe];t.flags&ae.ALLOW_RECURSE&&(t.flags&=~ae.QUEUED),t(),t.flags&=~ae.QUEUED}ue=null,fe=0}}function Oe(){try{for(le=0;le<he.length;le++){const t=he[le];0,t.flags&ae.ALLOW_RECURSE&&(t.flags&=~ae.QUEUED),t(),t.flags&ae.ALLOW_RECURSE||(t.flags&=~ae.QUEUED)}}finally{for(;le<he.length;le++){he[le].flags&=~ae.QUEUED}le=-1,he.length=0,de=null}}function ge(t,e,s){return Se(t,e,s)}function Se(t,n,i=ee){const{flush:o}=i,c=ne({},i);"post"===o?c.scheduler=t=>{!function(t){t.flags&ae.QUEUED||(_e.push(t),t.flags|=ae.QUEUED)}(t)}:"sync"!==o&&(c.scheduler=(t,e)=>{e?t():Ee(t)}),c.augmentJob=t=>{n&&(t.flags|=ae.ALLOW_RECURSE)};const h=function(t,n,i=e){const{immediate:o,deep:c,once:h,scheduler:l,augmentJob:_,call:u}=i,f=t=>c?t:Ht(t)||!1===c||0===c?te(t,1):te(t);let d,E,v,g,A=!1,N=!1;if(jt(t)?(E=()=>t.value,A=Ht(t)):Lt(t)?(E=()=>f(t),A=!0):r(t)?(N=!0,A=t.some(t=>Lt(t)||Ht(t)),E=()=>t.map(t=>jt(t)?t.value:Lt(t)?f(t):a(t)?u?u(t,2):t():void 0)):E=a(t)?n?u?()=>u(t,2):t:()=>{if(v){k();try{v()}finally{C()}}const e=$t;$t=d;try{return u?u(t,3,[g]):t(g)}finally{$t=e}}:s,n&&c){const t=E,e=!0===c?1/0:c;E=()=>te(t(),e)}const R=O(),T=()=>{d.stop(),R&&R.active&&((t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)})(R.effects,d)};if(h&&n){const t=n;n=(...e)=>{t(...e),T()}}let b=N?new Array(t.length).fill(Jt):Jt;const m=t=>{if(1&d.flags&&(d.dirty||t))if(n){const t=d.run();if(c||A||(N?t.some((t,e)=>p(t,b[e])):p(t,b))){v&&v();const e=$t;$t=d;try{const e=[t,b===Jt?void 0:N&&b[0]===Jt?[]:b,g];b=t,u?u(n,3,e):n(...e)}finally{$t=e}}}else d.run()};return _&&_(m),d=new S(E),d.scheduler=l?()=>l(m,!1):m,g=t=>qt(t,!1,d),v=d.onStop=()=>{const t=Kt.get(d);if(t){if(u)u(t,4);else for(const e of t)e();Kt.delete(d)}},n?o?m(!0):b=d.run():l?l(m.bind(null,!0),!0):d.run(),T.pause=d.pause.bind(d),T.resume=d.resume.bind(d),T.stop=T,T}(t,n,c);return h}const Ae=Object.create(null);let Ne=null,Re=null,Te=null;function be(){return Re||Te}var me,ye,De;function xe(t,e){const s=t[e];return function(...t){const n=this[ce(e)];n&&n.forEach(e=>e(...t)),void 0!==s&&s.call(this,...t)}}function we(t){if(function(t){const e=new Set(["undefined","boolean","number","string"]);return null===t||e.has(typeof t)}(t)||re(t))return t;if(jt(t))return we(t.value);if(kt(t))return we(Ct(t));if(se(t))return t.map(t=>we(t));if(function(t){return"Object"===oe(t)}(t)){const e={};return Object.keys(t).forEach(s=>{e[s]=we(t[s])}),e}throw new TypeError(`${oe(t)} value is not supported`)}function Ie(t,e){var s;null!==(s=e)&&"object"==typeof s&&ge(jt(e)?e:()=>e,()=>{this.setData({[t]:we(e)},ve)},{deep:!0})}function Le(t,e){const s=t[e];return function(...t){const n=this[ce(e)];n&&n.forEach(e=>e(...t)),void 0!==s&&s.call(this,...t)}}!function(t){t.ON_LAUNCH="onLaunch",t.ON_SHOW="onShow",t.ON_HIDE="onHide",t.ON_ERROR="onError",t.ON_PAGE_NOT_FOUND="onPageNotFound",t.ON_UNHANDLED_REJECTION="onUnhandledRejection",t.ON_THEME_CHANGE="onThemeChange"}(me||(me={})),function(t){t.ON_LOAD="onLoad",t.ON_SHOW="onShow",t.ON_READY="onReady",t.ON_HIDE="onHide",t.ON_UNLOAD="onUnload",t.ON_ROUTE_DONE="onRouteDone",t.ON_PULL_DOWN_REFRESH="onPullDownRefresh",t.ON_REACH_BOTTOM="onReachBottom",t.ON_PAGE_SCROLL="onPageScroll",t.ON_SHARE_APP_MESSAGE="onShareAppMessage",t.ON_SHARE_TIMELINE="onShareTimeline",t.ON_ADD_TO_FAVORITES="onAddToFavorites",t.ON_RESIZE="onResize",t.ON_TAB_ITEM_TAP="onTabItemTap",t.ON_SAVE_EXIT_STATE="onSaveExitState"}(ye||(ye={})),function(t){t.ATTACHED="attached",t.READY="ready",t.MOVED="moved",t.DETACHED="detached",t.ERROR="error"}(De||(De={}));const Pe={[ye.ON_SHOW]:"show",[ye.ON_HIDE]:"hide",[ye.ON_RESIZE]:"resize",[ye.ON_ROUTE_DONE]:"routeDone",[De.READY]:ye.ON_READY};function He(t,e){return Ue(e,t.lifetimes[e]||t[e])}function ke(t,e){return Ue(e,t.methods[e])}function Ce(t,e){return Ue(e,t.pageLifetimes[Pe[e]])}function Ue(t,e){const s=ce(t);return function(...t){const n=this[s];n&&n.forEach(e=>e(...t)),void 0!==e&&e.call(this,...t)}}const Me=ss(me.ON_SHOW),je=ss(me.ON_HIDE),We=ss(me.ON_ERROR),Ve=ss(me.ON_PAGE_NOT_FOUND),Ge=ss(me.ON_UNHANDLED_REJECTION),Fe=ss(me.ON_THEME_CHANGE),Be=ns(ye.ON_SHOW),Qe=ns(ye.ON_HIDE),Ye=ns(ye.ON_UNLOAD),Xe=ns(ye.ON_ROUTE_DONE),Ze=ns(ye.ON_PULL_DOWN_REFRESH),ze=ns(ye.ON_REACH_BOTTOM),Je=ns(ye.ON_RESIZE),Ke=ns(ye.ON_TAB_ITEM_TAP),$e=is(ye.ON_LOAD),qe=is(De.MOVED),ts=is(De.DETACHED),es=is(De.ERROR);function ss(t){return e=>{Ne&&os(Ne,t,e)}}function ns(t){return e=>{const s=be();s&&os(s,t,e)}}function is(t){return e=>{Te&&os(Te,t,e)}}function os(t,e,s){const n=ce(e);void 0===t[n]&&(t[n]=[]),t[n].push(s)}exports.EffectScope=v,exports.ReactiveEffect=S,exports.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},exports.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},exports.computed=function(t,e,s=!1){let n,i;return a(t)?n=t:(n=t.get,i=t.set),new zt(n,i,s)},exports.createApp=function(t){let e,s;if(re(t))e=t,s={};else{if(void 0===t.setup)return void App(t);e=t.setup,s=ie(t,["setup"])}const n=s[me.ON_LAUNCH];s[me.ON_LAUNCH]=function(t){Ne=this;const s=e(t);Ne=null,void 0!==s&&Object.keys(s).forEach(t=>{this[t]=s[t]}),void 0!==n&&n.call(this,t)},s[me.ON_SHOW]=xe(s,me.ON_SHOW),s[me.ON_HIDE]=xe(s,me.ON_HIDE),s[me.ON_ERROR]=xe(s,me.ON_ERROR),s[me.ON_PAGE_NOT_FOUND]=xe(s,me.ON_PAGE_NOT_FOUND),s[me.ON_UNHANDLED_REJECTION]=xe(s,me.ON_UNHANDLED_REJECTION),s[me.ON_THEME_CHANGE]=xe(s,me.ON_THEME_CHANGE),App(s)},exports.customRef=function(t){return new Qt(t)},exports.defineComponent=function(t,e){let s,n;e=ne({listenPageScroll:!1,canShareToOthers:!1,canShareToTimeline:!1},e);let i=null;if(re(t))s=t,n={};else{if(void 0===t.setup)return Component(t);s=t.setup,n=ie(t,["setup"]),n.properties&&(i=Object.keys(n.properties))}void 0===n.lifetimes&&(n.lifetimes={});const o=n.lifetimes[De.ATTACHED]||n[De.ATTACHED];n.lifetimes[De.ATTACHED]=function(){this.__scope__=new v,this.__scope__.on();const t={};i&&i.forEach(e=>{t[e]=this.data[e]}),this.__props__=xt(t);const e={is:this.is,id:this.id,dataset:this.dataset,exitState:this.exitState,router:this.router,pageRouter:this.pageRouter,renderer:this.renderer,triggerEvent:this.triggerEvent.bind(this),createSelectorQuery:this.createSelectorQuery.bind(this),createIntersectionObserver:this.createIntersectionObserver.bind(this),createMediaQueryObserver:this.createMediaQueryObserver.bind(this),selectComponent:this.selectComponent.bind(this),selectAllComponents:this.selectAllComponents.bind(this),selectOwnerComponent:this.selectOwnerComponent.bind(this),getRelationNodes:this.getRelationNodes.bind(this),getTabBar:this.getTabBar.bind(this),getPageId:this.getPageId.bind(this),animate:this.animate.bind(this),clearAnimation:this.clearAnimation.bind(this),getOpenerEventChannel:this.getOpenerEventChannel.bind(this),applyAnimatedStyle:this.applyAnimatedStyle.bind(this),clearAnimatedStyle:this.clearAnimatedStyle.bind(this),setUpdatePerformanceListener:this.setUpdatePerformanceListener.bind(this),getPassiveEvent:this.getPassiveEvent.bind(this),setPassiveEvent:this.setPassiveEvent.bind(this),setInitialRenderingCache:this.setInitialRenderingCache.bind(this),getAppBar:this.getAppBar&&this.getAppBar.bind(this)};Te=this;const n=s(this.__props__,e);if(Te=null,void 0!==n){let t;Object.keys(n).forEach(e=>{const s=n[e];re(s)?this[e]=s:(t=t||{},t[e]=we(s),Ie.call(this,e,s))}),void 0!==t&&this.setData(t,ve)}this.__scope__.off(),void 0!==o&&o.call(this)};const r=He(n,De.DETACHED);return n.lifetimes[De.DETACHED]=function(){r.call(this),this.__scope__.stop()},n.lifetimes[De.READY]=Ue(Pe[De.READY],n.lifetimes[De.READY]||n[De.READY]),n.lifetimes[De.MOVED]=He(n,De.MOVED),n.lifetimes[De.ERROR]=He(n,De.ERROR),void 0===n.methods&&(n.methods={}),(n.methods[ye.ON_PAGE_SCROLL]||e.listenPageScroll)&&(n.methods[ye.ON_PAGE_SCROLL]=ke(n,ye.ON_PAGE_SCROLL),n.methods.__listenPageScroll__=()=>!0),void 0===n.methods[ye.ON_SHARE_APP_MESSAGE]&&e.canShareToOthers&&(n.methods[ye.ON_SHARE_APP_MESSAGE]=function(t){const e=this[ce(ye.ON_SHARE_APP_MESSAGE)];return e?e(t):{}},n.methods.__isInjectedShareToOthersHook__=()=>!0),void 0===n.methods[ye.ON_SHARE_TIMELINE]&&e.canShareToTimeline&&(n.methods[ye.ON_SHARE_TIMELINE]=function(){const t=this[ce(ye.ON_SHARE_TIMELINE)];return t?t():{}},n.methods.__isInjectedShareToTimelineHook__=()=>!0),void 0===n.methods[ye.ON_ADD_TO_FAVORITES]&&(n.methods[ye.ON_ADD_TO_FAVORITES]=function(t){const e=this[ce(ye.ON_ADD_TO_FAVORITES)];return e?e(t):{}},n.methods.__isInjectedFavoritesHook__=()=>!0),void 0===n.methods[ye.ON_SAVE_EXIT_STATE]&&(n.methods[ye.ON_SAVE_EXIT_STATE]=function(){const t=this[ce(ye.ON_SAVE_EXIT_STATE)];return t?t():{data:void 0}},n.methods.__isInjectedExitStateHook__=()=>!0),n.methods[ye.ON_LOAD]=ke(n,ye.ON_LOAD),n.methods[ye.ON_PULL_DOWN_REFRESH]=ke(n,ye.ON_PULL_DOWN_REFRESH),n.methods[ye.ON_REACH_BOTTOM]=ke(n,ye.ON_REACH_BOTTOM),n.methods[ye.ON_TAB_ITEM_TAP]=ke(n,ye.ON_TAB_ITEM_TAP),void 0===n.pageLifetimes&&(n.pageLifetimes={}),n.pageLifetimes[Pe[ye.ON_SHOW]]=Ce(n,ye.ON_SHOW),n.pageLifetimes[Pe[ye.ON_HIDE]]=Ce(n,ye.ON_HIDE),n.pageLifetimes[Pe[ye.ON_RESIZE]]=Ce(n,ye.ON_RESIZE),n.pageLifetimes[Pe[ye.ON_ROUTE_DONE]]=Ce(n,ye.ON_ROUTE_DONE),i&&(void 0===n.observers&&(n.observers={}),i.forEach(t=>{const e=n.observers[t];n.observers[t]=function(s){this.__props__&&(this.__props__[t]=s),void 0!==e&&e.call(this,s)}})),Component(n)},exports.definePage=function(t,e){let s,n;if(e=ne({listenPageScroll:!1,canShareToOthers:!1,canShareToTimeline:!1},e),re(t))s=t,n={};else{if(void 0===t.setup)return void Page(t);s=t.setup,n=ie(t,["setup"])}const i=n[ye.ON_LOAD];n[ye.ON_LOAD]=function(t){this.__scope__=new v,this.__scope__.on();const e={is:this.is,route:this.route,options:this.options,exitState:this.exitState,router:this.router,pageRouter:this.pageRouter,renderer:this.renderer,createSelectorQuery:this.createSelectorQuery.bind(this),createIntersectionObserver:this.createIntersectionObserver.bind(this),createMediaQueryObserver:this.createMediaQueryObserver.bind(this),selectComponent:this.selectComponent.bind(this),selectAllComponents:this.selectAllComponents.bind(this),getTabBar:this.getTabBar.bind(this),getPageId:this.getPageId.bind(this),animate:this.animate.bind(this),clearAnimation:this.clearAnimation.bind(this),getOpenerEventChannel:this.getOpenerEventChannel.bind(this),applyAnimatedStyle:this.applyAnimatedStyle.bind(this),clearAnimatedStyle:this.clearAnimatedStyle.bind(this),setUpdatePerformanceListener:this.setUpdatePerformanceListener.bind(this),getPassiveEvent:this.getPassiveEvent.bind(this),setPassiveEvent:this.setPassiveEvent.bind(this),setInitialRenderingCache:this.setInitialRenderingCache.bind(this),getAppBar:this.getAppBar&&this.getAppBar.bind(this)};Re=this;const n=s(t,e);if(Re=null,void 0!==n){let t;Object.keys(n).forEach(e=>{const s=n[e];re(s)?this[e]=s:(t=t||{},t[e]=we(s),Ie.call(this,e,s))}),void 0!==t&&this.setData(t,ve)}this.__scope__.off(),void 0!==i&&i.call(this,t)};const o=Le(n,ye.ON_UNLOAD);n[ye.ON_UNLOAD]=function(){o.call(this),this.__scope__.stop()},(n[ye.ON_PAGE_SCROLL]||e.listenPageScroll)&&(n[ye.ON_PAGE_SCROLL]=Le(n,ye.ON_PAGE_SCROLL),n.__listenPageScroll__=()=>!0),void 0===n[ye.ON_SHARE_APP_MESSAGE]&&e.canShareToOthers&&(n[ye.ON_SHARE_APP_MESSAGE]=function(t){const e=this[ce(ye.ON_SHARE_APP_MESSAGE)];return e?e(t):{}},n.__isInjectedShareToOthersHook__=()=>!0),void 0===n[ye.ON_SHARE_TIMELINE]&&e.canShareToTimeline&&(n[ye.ON_SHARE_TIMELINE]=function(){const t=this[ce(ye.ON_SHARE_TIMELINE)];return t?t():{}},n.__isInjectedShareToTimelineHook__=()=>!0),void 0===n[ye.ON_ADD_TO_FAVORITES]&&(n[ye.ON_ADD_TO_FAVORITES]=function(t){const e=this[ce(ye.ON_ADD_TO_FAVORITES)];return e?e(t):{}},n.__isInjectedFavoritesHook__=()=>!0),void 0===n[ye.ON_SAVE_EXIT_STATE]&&(n[ye.ON_SAVE_EXIT_STATE]=function(){const t=this[ce(ye.ON_SAVE_EXIT_STATE)];return t?t():{data:void 0}},n.__isInjectedExitStateHook__=()=>!0),n[ye.ON_SHOW]=Le(n,ye.ON_SHOW),n[ye.ON_READY]=Le(n,ye.ON_READY),n[ye.ON_HIDE]=Le(n,ye.ON_HIDE),n[ye.ON_ROUTE_DONE]=Le(n,ye.ON_ROUTE_DONE),n[ye.ON_PULL_DOWN_REFRESH]=Le(n,ye.ON_PULL_DOWN_REFRESH),n[ye.ON_REACH_BOTTOM]=Le(n,ye.ON_REACH_BOTTOM),n[ye.ON_RESIZE]=Le(n,ye.ON_RESIZE),n[ye.ON_TAB_ITEM_TAP]=Le(n,ye.ON_TAB_ITEM_TAP),Page(n)},exports.effect=function(t,e){t.effect instanceof S&&(t=t.effect.fn);const s=new S(t);e&&n(s,e);try{s.run()}catch(t){throw s.stop(),t}const i=s.run.bind(s);return i.effect=s,i},exports.effectScope=function(t){return new v(t)},exports.getCurrentScope=O,exports.getCurrentWatcher=function(){return $t},exports.inject=function(t,e,s=!1){return t in Ae?Ae[t]:arguments.length>1?s&&re(e)?e():e:void 0},exports.isProxy=kt,exports.isReactive=Lt,exports.isReadonly=Pt,exports.isRef=jt,exports.isShallow=Ht,exports.markRaw=function(t){return!o(t,"__v_skip")&&Object.isExtensible(t)&&((t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})})(t,"__v_skip",!0),t},exports.nextTick=function(t){const e=de||pe;return t?e.then(t):e},exports.onAddToFavorites=t=>{const e=be();if(e&&e.__isInjectedFavoritesHook__){const s=ce(ye.ON_ADD_TO_FAVORITES);void 0===e[s]&&(e[s]=t)}},exports.onAppError=We,exports.onAppHide=je,exports.onAppShow=Me,exports.onDetach=ts,exports.onError=es,exports.onHide=Qe,exports.onLoad=$e,exports.onMove=qe,exports.onPageNotFound=Ve,exports.onPageScroll=t=>{const e=be();e&&e.__listenPageScroll__&&os(e,ye.ON_PAGE_SCROLL,t)},exports.onPullDownRefresh=Ze,exports.onReachBottom=ze,exports.onReady=t=>{const e=be();e&&os(e,ye.ON_READY,t)},exports.onResize=Je,exports.onRouteDone=Xe,exports.onSaveExitState=t=>{const e=be();if(e&&e.__isInjectedExitStateHook__){const s=ce(ye.ON_SAVE_EXIT_STATE);void 0===e[s]&&(e[s]=t)}},exports.onScopeDispose=function(t,e=!1){d&&d.cleanups.push(t)},exports.onShareAppMessage=t=>{const e=be();if(e&&e[ye.ON_SHARE_APP_MESSAGE]&&e.__isInjectedShareToOthersHook__){const s=ce(ye.ON_SHARE_APP_MESSAGE);void 0===e[s]&&(e[s]=t)}},exports.onShareTimeline=t=>{const e=be();if(e&&e[ye.ON_SHARE_TIMELINE]&&e.__isInjectedShareToTimelineHook__){const s=ce(ye.ON_SHARE_TIMELINE);void 0===e[s]&&(e[s]=t)}},exports.onShow=Be,exports.onTabItemTap=Ke,exports.onThemeChange=Fe,exports.onUnhandledRejection=Ge,exports.onUnload=Ye,exports.onWatcherCleanup=qt,exports.provide=function(t,e){Ae[t]=e},exports.proxyRefs=function(t){return Lt(t)?t:new Proxy(t,Bt)},exports.reactive=Dt,exports.readonly=wt,exports.ref=Wt,exports.shallowReactive=xt,exports.shallowReadonly=function(t){return It(t,!0,ft,Nt,mt)},exports.shallowRef=function(t){return Vt(t,!0)},exports.stop=function(t){t.effect.stop()},exports.toRaw=Ct,exports.toRef=function(t,e,s){return jt(t)?t:a(t)?new Xt(t):l(t)&&arguments.length>1?Zt(t,e,s):Wt(t)},exports.toRefs=function(t){const e=r(t)?new Array(t.length):{};for(const s in t)e[s]=Zt(t,s);return e},exports.toValue=function(t){return a(t)?t():Ft(t)},exports.triggerRef=function(t){t.dep&&t.dep.trigger()},exports.unref=Ft,exports.watch=ge,exports.watchEffect=function(t,e){return Se(t,null,e)},exports.watchPostEffect=function(t,e){return Se(t,null,{flush:"post"})},exports.watchSyncEffect=function(t,e){return Se(t,null,{flush:"sync"})};
|
|
7
|
+
"use strict";function t(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return t=>t in e}const e={},s=()=>{},n=Object.assign,i=Object.prototype.hasOwnProperty,o=(t,e)=>i.call(t,e),r=Array.isArray,c=t=>"[object Map]"===_(t),a=t=>"function"==typeof t,h=t=>"symbol"==typeof t,l=t=>null!==t&&"object"==typeof t,u=Object.prototype.toString,_=t=>u.call(t),f=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,p=(t,e)=>!Object.is(t,e);let d,v;class E{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&d&&(d.active?(this.parent=d,this.index=(d.scopes||(d.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,e;if(this._isPaused=!1,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=d;try{return d=this,t()}finally{d=e}}}on(){1===++this._on&&(this.prevScope=d,d=this)}off(){if(this._on>0&&0===--this._on){if(d===this)d=this.prevScope;else{let t=d;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){let e,s;for(this._active=!1,e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(this.effects.length=0,e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0}}}function O(){return d}const g=new WeakSet;class S{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,d&&(d.active?d.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,g.has(this)&&(g.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||T(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,U(this),y(this);const t=v,e=P;v=this,P=!0;try{return this.fn()}finally{D(this),v=t,P=e,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)I(t);this.deps=this.depsTail=void 0,U(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?g.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){x(this)&&this.run()}get dirty(){return x(this)}}let A,N,R=0;function T(t,e=!1){if(t.flags|=8,e)return t.next=N,void(N=t);t.next=A,A=t}function b(){R++}function m(){if(--R>0)return;if(N){let t=N;for(N=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let t;for(;A;){let e=A;for(A=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(e){t||(t=e)}e=s}}if(t)throw t}function y(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function D(t){let e,s=t.depsTail,n=s;for(;n;){const t=n.prevDep;-1===n.version?(n===s&&(s=t),I(n),L(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=t}t.deps=e,t.depsTail=s}function x(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(w(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function w(t){if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===M)return;if(t.globalVersion=M,!t.isSSR&&128&t.flags&&(!t.deps&&!t._dirty||!x(t)))return;t.flags|=2;const e=t.dep,s=v,n=P;v=t,P=!0;try{y(t);const s=t.fn(t._value);(0===e.version||p(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(t){throw e.version++,t}finally{v=s,P=n,D(t),t.flags&=-3}}function I(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let t=s.computed.deps;t;t=t.nextDep)I(t,!0)}e||--s.sc||!s.map||s.map.delete(s.key)}function L(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let P=!0;const H=[];function k(){H.push(P),P=!1}function C(){const t=H.pop();P=void 0===t||t}function U(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=v;v=void 0;try{e()}finally{v=t}}}let M=0;class j{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class W{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!v||!P||v===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==v)e=this.activeLink=new j(v,this),v.deps?(e.prevDep=v.depsTail,v.depsTail.nextDep=e,v.depsTail=e):v.deps=v.depsTail=e,V(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=v.depsTail,e.nextDep=void 0,v.depsTail.nextDep=e,v.depsTail=e,v.deps===e&&(v.deps=t)}return e}trigger(t){this.version++,M++,this.notify(t)}notify(t){b();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{m()}}}function V(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let t=e.deps;t;t=t.nextDep)V(t)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const G=new WeakMap,F=Symbol(""),B=Symbol(""),Q=Symbol("");function Y(t,e,s){if(P&&v){let e=G.get(t);e||G.set(t,e=new Map);let n=e.get(s);n||(e.set(s,n=new W),n.map=e,n.key=s),n.track()}}function X(t,e,s,n,i,o){const a=G.get(t);if(!a)return void M++;const l=t=>{t&&t.trigger()};if(b(),"clear"===e)a.forEach(l);else{const i=r(t),o=i&&f(s);if(i&&"length"===s){const t=Number(n);a.forEach((e,s)=>{("length"===s||s===Q||!h(s)&&s>=t)&&l(e)})}else switch((void 0!==s||a.has(void 0))&&l(a.get(s)),o&&l(a.get(Q)),e){case"add":i?o&&l(a.get("length")):(l(a.get(F)),c(t)&&l(a.get(B)));break;case"delete":i||(l(a.get(F)),c(t)&&l(a.get(B)));break;case"set":c(t)&&l(a.get(F))}}m()}function Z(t){const e=kt(t);return e===t?e:(Y(e,0,Q),Pt(t)?e:e.map(Ct))}function z(t){return Y(t=kt(t),0,Q),t}function J(t,e){return Lt(t)?It(t)?Ut(Ct(e)):Ut(e):Ct(e)}const K={__proto__:null,[Symbol.iterator](){return $(this,Symbol.iterator,t=>J(this,t))},concat(...t){return Z(this).concat(...t.map(t=>r(t)?Z(t):t))},entries(){return $(this,"entries",t=>(t[1]=J(this,t[1]),t))},every(t,e){return tt(this,"every",t,e,void 0,arguments)},filter(t,e){return tt(this,"filter",t,e,t=>t.map(t=>J(this,t)),arguments)},find(t,e){return tt(this,"find",t,e,t=>J(this,t),arguments)},findIndex(t,e){return tt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return tt(this,"findLast",t,e,t=>J(this,t),arguments)},findLastIndex(t,e){return tt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return tt(this,"forEach",t,e,void 0,arguments)},includes(...t){return st(this,"includes",t)},indexOf(...t){return st(this,"indexOf",t)},join(t){return Z(this).join(t)},lastIndexOf(...t){return st(this,"lastIndexOf",t)},map(t,e){return tt(this,"map",t,e,void 0,arguments)},pop(){return nt(this,"pop")},push(...t){return nt(this,"push",t)},reduce(t,...e){return et(this,"reduce",t,e)},reduceRight(t,...e){return et(this,"reduceRight",t,e)},shift(){return nt(this,"shift")},some(t,e){return tt(this,"some",t,e,void 0,arguments)},splice(...t){return nt(this,"splice",t)},toReversed(){return Z(this).toReversed()},toSorted(t){return Z(this).toSorted(t)},toSpliced(...t){return Z(this).toSpliced(...t)},unshift(...t){return nt(this,"unshift",t)},values(){return $(this,"values",t=>J(this,t))}};function $(t,e,s){const n=z(t),i=n[e]();return n===t||Pt(t)||(i._next=i.next,i.next=()=>{const t=i._next();return t.done||(t.value=s(t.value)),t}),i}const q=Array.prototype;function tt(t,e,s,n,i,o){const r=z(t),c=r!==t&&!Pt(t),a=r[e];if(a!==q[e]){const e=a.apply(t,o);return c?Ct(e):e}let h=s;r!==t&&(c?h=function(e,n){return s.call(this,J(t,e),n,t)}:s.length>2&&(h=function(e,n){return s.call(this,e,n,t)}));const l=a.call(r,h,n);return c&&i?i(l):l}function et(t,e,s,n){const i=z(t),o=i!==t&&!Pt(t);let r=s,c=!1;i!==t&&(o?(c=0===n.length,r=function(e,n,i){return c&&(c=!1,e=J(t,e)),s.call(this,e,J(t,n),i,t)}):s.length>3&&(r=function(e,n,i){return s.call(this,e,n,i,t)}));const a=i[e](r,...n);return c?J(t,a):a}function st(t,e,s){const n=kt(t);Y(n,0,Q);const i=n[e](...s);return-1!==i&&!1!==i||!Ht(s[0])?i:(s[0]=kt(s[0]),n[e](...s))}function nt(t,e,s=[]){k(),b();const n=kt(t)[e].apply(t,s);return m(),C(),n}const it=t("__proto__,__v_isRef,__isVue"),ot=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(h));function rt(t){h(t)||(t=String(t));const e=kt(this);return Y(e,0,t),e.hasOwnProperty(t)}class ct{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,s){if("__v_skip"===e)return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===e)return!n;if("__v_isReadonly"===e)return n;if("__v_isShallow"===e)return i;if("__v_raw"===e)return s===(n?i?mt:bt:i?Tt:Rt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=r(t);if(!n){let t;if(o&&(t=K[e]))return t;if("hasOwnProperty"===e)return rt}const c=Reflect.get(t,e,Mt(t)?t:s);if(h(e)?ot.has(e):it(e))return c;if(n||Y(t,0,e),i)return c;if(Mt(c)){const t=o&&f(e)?c:c.value;return n&&l(t)?xt(t):t}return l(c)?n?xt(c):yt(c):c}}class at extends ct{constructor(t=!1){super(!1,t)}set(t,e,s,n){let i=t[e];const c=r(t)&&f(e);if(!this._isShallow){const t=Lt(i);if(Pt(s)||Lt(s)||(i=kt(i),s=kt(s)),!c&&Mt(i)&&!Mt(s))return t||(i.value=s),!0}const a=c?Number(e)<t.length:o(t,e),h=Reflect.set(t,e,s,Mt(t)?t:n);return t===kt(n)&&(a?p(s,i)&&X(t,"set",e,s):X(t,"add",e,s)),h}deleteProperty(t,e){const s=o(t,e),n=Reflect.deleteProperty(t,e);return n&&s&&X(t,"delete",e,void 0),n}has(t,e){const s=Reflect.has(t,e);return h(e)&&ot.has(e)||Y(t,0,e),s}ownKeys(t){return Y(t,0,r(t)?"length":F),Reflect.ownKeys(t)}}class ht extends ct{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const lt=new at,ut=new ht,_t=new at(!0),ft=new ht(!0),pt=t=>t,dt=t=>Reflect.getPrototypeOf(t);function vt(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function Et(t,e){const s={get(s){const n=this.__v_raw,i=kt(n),o=kt(s);t||(p(s,o)&&Y(i,0,s),Y(i,0,o));const{has:r}=dt(i),c=e?pt:t?Ut:Ct;return r.call(i,s)?c(n.get(s)):r.call(i,o)?c(n.get(o)):void(n!==i&&n.get(s))},get size(){const e=this.__v_raw;return!t&&Y(kt(e),0,F),e.size},has(e){const s=this.__v_raw,n=kt(s),i=kt(e);return t||(p(e,i)&&Y(n,0,e),Y(n,0,i)),e===i?s.has(e):s.has(e)||s.has(i)},forEach(s,n){const i=this,o=i.__v_raw,r=kt(o),c=e?pt:t?Ut:Ct;return!t&&Y(r,0,F),o.forEach((t,e)=>s.call(n,c(t),c(e),i))}};n(s,t?{add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear")}:{add(t){const s=kt(this),n=dt(s),i=kt(t),o=e||Pt(t)||Lt(t)?t:i;return n.has.call(s,o)||p(t,o)&&n.has.call(s,t)||p(i,o)&&n.has.call(s,i)||(s.add(o),X(s,"add",o,o)),this},set(t,s){e||Pt(s)||Lt(s)||(s=kt(s));const n=kt(this),{has:i,get:o}=dt(n);let r=i.call(n,t);r||(t=kt(t),r=i.call(n,t));const c=o.call(n,t);return n.set(t,s),r?p(s,c)&&X(n,"set",t,s):X(n,"add",t,s),this},delete(t){const e=kt(this),{has:s,get:n}=dt(e);let i=s.call(e,t);i||(t=kt(t),i=s.call(e,t)),n&&n.call(e,t);const o=e.delete(t);return i&&X(e,"delete",t,void 0),o},clear(){const t=kt(this),e=0!==t.size,s=t.clear();return e&&X(t,"clear",void 0,void 0),s}});return["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=function(t,e,s){return function(...i){const o=this.__v_raw,r=kt(o),a=c(r),h="entries"===t||t===Symbol.iterator&&a,l="keys"===t&&a,u=o[t](...i),_=s?pt:e?Ut:Ct;return!e&&Y(r,0,l?B:F),n(Object.create(u),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:h?[_(t[0]),_(t[1])]:_(t),done:e}}})}}(i,t,e)}),s}function Ot(t,e){const s=Et(t,e);return(e,n,i)=>"__v_isReactive"===n?!t:"__v_isReadonly"===n?t:"__v_raw"===n?e:Reflect.get(o(s,n)&&n in e?s:e,n,i)}const gt={get:Ot(!1,!1)},St={get:Ot(!1,!0)},At={get:Ot(!0,!1)},Nt={get:Ot(!0,!0)},Rt=new WeakMap,Tt=new WeakMap,bt=new WeakMap,mt=new WeakMap;function yt(t){return Lt(t)?t:wt(t,!1,lt,gt,Rt)}function Dt(t){return wt(t,!1,_t,St,Tt)}function xt(t){return wt(t,!0,ut,At,bt)}function wt(t,e,s,n,i){if(!l(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;if(t.__v_skip||!Object.isExtensible(t))return t;const o=i.get(t);if(o)return o;const r=function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(t).slice(8,-1));if(0===r)return t;const c=new Proxy(t,2===r?n:s);return i.set(t,c),c}function It(t){return Lt(t)?It(t.__v_raw):!(!t||!t.__v_isReactive)}function Lt(t){return!(!t||!t.__v_isReadonly)}function Pt(t){return!(!t||!t.__v_isShallow)}function Ht(t){return!!t&&!!t.__v_raw}function kt(t){const e=t&&t.__v_raw;return e?kt(e):t}const Ct=t=>l(t)?yt(t):t,Ut=t=>l(t)?xt(t):t;function Mt(t){return!!t&&!0===t.__v_isRef}function jt(t){return Wt(t,!1)}function Wt(t,e){return Mt(t)?t:new Vt(t,e)}class Vt{constructor(t,e){this.dep=new W,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:kt(t),this._value=e?t:Ct(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,s=this.__v_isShallow||Pt(t)||Lt(t);t=s?t:kt(t),p(t,e)&&(this._rawValue=t,this._value=s?t:Ct(t),this.dep.trigger())}}function Gt(t){return Mt(t)?t.value:t}const Ft={get:(t,e,s)=>"__v_raw"===e?t:Gt(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return Mt(i)&&!Mt(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};class Bt{constructor(t){this.__v_isRef=!0,this._value=void 0;const e=this.dep=new W,{get:s,set:n}=t(e.track.bind(e),e.trigger.bind(e));this._get=s,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}class Qt{constructor(t,e,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=h(e)?e:String(e),this._raw=kt(t);let n=!0,i=t;if(!r(t)||h(this._key)||!f(this._key))do{n=!Ht(i)||Pt(i)}while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Gt(t)),this._value=void 0===t?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const e=this._object[this._key];if(Mt(e))return void(e.value=t)}this._object[this._key]=t}get dep(){return function(t,e){const s=G.get(t);return s&&s.get(e)}(this._raw,this._key)}}class Yt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Xt(t,e,s){return new Qt(t,e,s)}class Zt{constructor(t,e,s){this.fn=t,this.setter=e,this._value=void 0,this.dep=new W(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=M-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=s}notify(){if(this.flags|=16,!(8&this.flags)&&v!==this)return T(this,!0),!0}get value(){const t=this.dep.track();return w(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}const zt={},Jt=new WeakMap;let Kt;function $t(t,e=!1,s=Kt){if(s){let e=Jt.get(s);e||Jt.set(s,e=[]),e.push(t)}}function qt(t,e=1/0,s){if(e<=0||!l(t)||t.__v_skip)return t;if(((s=s||new Map).get(t)||0)>=e)return t;if(s.set(t,e),e--,Mt(t))qt(t.value,e,s);else if(r(t))for(let n=0;n<t.length;n++)qt(t[n],e,s);else if("[object Set]"===_(t)||c(t))t.forEach(t=>{qt(t,e,s)});else if((t=>"[object Object]"===_(t))(t)){for(const n in t)qt(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&qt(t[n],e,s)}return t}const te={},ee=Array.isArray,se=Object.assign;function ne(t,e){const s={};return Object.keys(t).forEach(n=>{e.includes(n)||(s[n]=t[n])}),s}function ie(t){return Object.prototype.toString.call(t).slice(8,-1)}function oe(t){return"function"==typeof t}function re(t){return`__v_${t}`}var ce;!function(t){t[t.QUEUED=1]="QUEUED",t[t.ALLOW_RECURSE=4]="ALLOW_RECURSE"}(ce||(ce={}));const ae=[];let he=-1;const le=[];let ue=null,_e=0;const fe=Promise.resolve();let pe=null;function de(t){t.flags&ce.QUEUED||(ae.push(t),t.flags|=ce.QUEUED,pe||(pe=fe.then(Ee)))}function ve(){if(le.length>0){for(ue=[...new Set(le)],le.length=0,_e=0;_e<ue.length;_e++){const t=ue[_e];t.flags&ce.ALLOW_RECURSE&&(t.flags&=~ce.QUEUED),t(),t.flags&=~ce.QUEUED}ue=null,_e=0}}function Ee(){try{for(he=0;he<ae.length;he++){const t=ae[he];0,t.flags&ce.ALLOW_RECURSE&&(t.flags&=~ce.QUEUED),t(),t.flags&ce.ALLOW_RECURSE||(t.flags&=~ce.QUEUED)}}finally{for(;he<ae.length;he++){ae[he].flags&=~ce.QUEUED}he=-1,ae.length=0,pe=null}}function Oe(t,e,s){return ge(t,e,s)}function ge(t,n,i=te){const{flush:o}=i,c=se({},i);"post"===o?c.scheduler=t=>{!function(t){t.flags&ce.QUEUED||(le.push(t),t.flags|=ce.QUEUED)}(t)}:"sync"!==o&&(c.scheduler=(t,e)=>{e?t():de(t)}),c.augmentJob=t=>{n&&(t.flags|=ce.ALLOW_RECURSE)};const h=function(t,n,i=e){const{immediate:o,deep:c,once:h,scheduler:l,augmentJob:u,call:_}=i,f=t=>c?t:Pt(t)||!1===c||0===c?qt(t,1):qt(t);let d,v,E,g,A=!1,N=!1;if(Mt(t)?(v=()=>t.value,A=Pt(t)):It(t)?(v=()=>f(t),A=!0):r(t)?(N=!0,A=t.some(t=>It(t)||Pt(t)),v=()=>t.map(t=>Mt(t)?t.value:It(t)?f(t):a(t)?_?_(t,2):t():void 0)):v=a(t)?n?_?()=>_(t,2):t:()=>{if(E){k();try{E()}finally{C()}}const e=Kt;Kt=d;try{return _?_(t,3,[g]):t(g)}finally{Kt=e}}:s,n&&c){const t=v,e=!0===c?1/0:c;v=()=>qt(t(),e)}const R=O(),T=()=>{d.stop(),R&&R.active&&((t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)})(R.effects,d)};if(h&&n){const t=n;n=(...e)=>{const s=t(...e);return T(),s}}let b=N?new Array(t.length).fill(zt):zt;const m=t=>{if(1&d.flags&&(d.dirty||t))if(n){const e=d.run();if(t||c||A||(N?e.some((t,e)=>p(t,b[e])):p(e,b))){E&&E();const t=Kt;Kt=d;try{const t=[e,b===zt?void 0:N&&b[0]===zt?[]:b,g];b=e,_?_(n,3,t):n(...t)}finally{Kt=t}}}else d.run()};return u&&u(m),d=new S(v),d.scheduler=l?()=>l(m,!1):m,g=t=>$t(t,!1,d),E=d.onStop=()=>{const t=Jt.get(d);if(t){if(_)_(t,4);else for(const e of t)e();Jt.delete(d)}},n?o?m(!0):b=d.run():l?l(m.bind(null,!0),!0):d.run(),T.pause=d.pause.bind(d),T.resume=d.resume.bind(d),T.stop=T,T}(t,n,c);return h}const Se=Object.create(null);let Ae=null,Ne=null,Re=null;function Te(){return Ne||Re}var be,me,ye;function De(t,e){const s=t[e];return function(...t){const n=this[re(e)];n&&n.forEach(e=>e(...t)),void 0!==s&&s.call(this,...t)}}function xe(t){if(function(t){const e=new Set(["undefined","boolean","number","string"]);return null===t||e.has(typeof t)}(t)||oe(t))return t;if(Mt(t))return xe(t.value);if(Ht(t))return xe(kt(t));if(ee(t))return t.map(t=>xe(t));if(function(t){return"Object"===ie(t)}(t)){const e={};return Object.keys(t).forEach(s=>{e[s]=xe(t[s])}),e}throw new TypeError(`${ie(t)} value is not supported`)}function we(t,e){var s;null!==(s=e)&&"object"==typeof s&&Oe(Mt(e)?e:()=>e,()=>{this.setData({[t]:xe(e)},ve)},{deep:!0})}function Ie(t,e){const s=t[e];return function(...t){const n=this[re(e)];n&&n.forEach(e=>e(...t)),void 0!==s&&s.call(this,...t)}}!function(t){t.ON_LAUNCH="onLaunch",t.ON_SHOW="onShow",t.ON_HIDE="onHide",t.ON_ERROR="onError",t.ON_PAGE_NOT_FOUND="onPageNotFound",t.ON_UNHANDLED_REJECTION="onUnhandledRejection",t.ON_THEME_CHANGE="onThemeChange"}(be||(be={})),function(t){t.ON_LOAD="onLoad",t.ON_SHOW="onShow",t.ON_READY="onReady",t.ON_HIDE="onHide",t.ON_UNLOAD="onUnload",t.ON_ROUTE_DONE="onRouteDone",t.ON_PULL_DOWN_REFRESH="onPullDownRefresh",t.ON_REACH_BOTTOM="onReachBottom",t.ON_PAGE_SCROLL="onPageScroll",t.ON_SHARE_APP_MESSAGE="onShareAppMessage",t.ON_SHARE_TIMELINE="onShareTimeline",t.ON_ADD_TO_FAVORITES="onAddToFavorites",t.ON_RESIZE="onResize",t.ON_TAB_ITEM_TAP="onTabItemTap",t.ON_SAVE_EXIT_STATE="onSaveExitState"}(me||(me={})),function(t){t.ATTACHED="attached",t.READY="ready",t.MOVED="moved",t.DETACHED="detached",t.ERROR="error"}(ye||(ye={}));const Le={[me.ON_SHOW]:"show",[me.ON_HIDE]:"hide",[me.ON_RESIZE]:"resize",[me.ON_ROUTE_DONE]:"routeDone",[ye.READY]:me.ON_READY};function Pe(t,e){return Ce(e,t.lifetimes[e]||t[e])}function He(t,e){return Ce(e,t.methods[e])}function ke(t,e){return Ce(e,t.pageLifetimes[Le[e]])}function Ce(t,e){const s=re(t);return function(...t){const n=this[s];n&&n.forEach(e=>e(...t)),void 0!==e&&e.call(this,...t)}}const Ue=es(be.ON_SHOW),Me=es(be.ON_HIDE),je=es(be.ON_ERROR),We=es(be.ON_PAGE_NOT_FOUND),Ve=es(be.ON_UNHANDLED_REJECTION),Ge=es(be.ON_THEME_CHANGE),Fe=ss(me.ON_SHOW),Be=ss(me.ON_HIDE),Qe=ss(me.ON_UNLOAD),Ye=ss(me.ON_ROUTE_DONE),Xe=ss(me.ON_PULL_DOWN_REFRESH),Ze=ss(me.ON_REACH_BOTTOM),ze=ss(me.ON_RESIZE),Je=ss(me.ON_TAB_ITEM_TAP),Ke=ns(me.ON_LOAD),$e=ns(ye.MOVED),qe=ns(ye.DETACHED),ts=ns(ye.ERROR);function es(t){return e=>{Ae&&is(Ae,t,e)}}function ss(t){return e=>{const s=Te();s&&is(s,t,e)}}function ns(t){return e=>{Re&&is(Re,t,e)}}function is(t,e,s){const n=re(e);void 0===t[n]&&(t[n]=[]),t[n].push(s)}exports.EffectScope=E,exports.ReactiveEffect=S,exports.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},exports.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},exports.computed=function(t,e,s=!1){let n,i;return a(t)?n=t:(n=t.get,i=t.set),new Zt(n,i,s)},exports.createApp=function(t){let e,s;if(oe(t))e=t,s={};else{if(void 0===t.setup)return void App(t);e=t.setup,s=ne(t,["setup"])}const n=s[be.ON_LAUNCH];s[be.ON_LAUNCH]=function(t){Ae=this;const s=e(t);Ae=null,void 0!==s&&Object.keys(s).forEach(t=>{this[t]=s[t]}),void 0!==n&&n.call(this,t)},s[be.ON_SHOW]=De(s,be.ON_SHOW),s[be.ON_HIDE]=De(s,be.ON_HIDE),s[be.ON_ERROR]=De(s,be.ON_ERROR),s[be.ON_PAGE_NOT_FOUND]=De(s,be.ON_PAGE_NOT_FOUND),s[be.ON_UNHANDLED_REJECTION]=De(s,be.ON_UNHANDLED_REJECTION),s[be.ON_THEME_CHANGE]=De(s,be.ON_THEME_CHANGE),App(s)},exports.customRef=function(t){return new Bt(t)},exports.defineComponent=function(t,e){let s,n;e=se({listenPageScroll:!1,canShareToOthers:!1,canShareToTimeline:!1},e);let i=null;if(oe(t))s=t,n={};else{if(void 0===t.setup)return Component(t);s=t.setup,n=ne(t,["setup"]),n.properties&&(i=Object.keys(n.properties))}void 0===n.lifetimes&&(n.lifetimes={});const o=n.lifetimes[ye.ATTACHED]||n[ye.ATTACHED];n.lifetimes[ye.ATTACHED]=function(){this.__v_scope=new E,this.__v_scope.on();const t={};i&&i.forEach(e=>{t[e]=this.data[e]}),this.__v_props=Dt(t);const e={is:this.is,id:this.id,dataset:this.dataset,exitState:this.exitState,router:this.router,pageRouter:this.pageRouter,renderer:this.renderer,triggerEvent:this.triggerEvent.bind(this),createSelectorQuery:this.createSelectorQuery.bind(this),createIntersectionObserver:this.createIntersectionObserver.bind(this),createMediaQueryObserver:this.createMediaQueryObserver.bind(this),selectComponent:this.selectComponent.bind(this),selectAllComponents:this.selectAllComponents.bind(this),selectOwnerComponent:this.selectOwnerComponent.bind(this),getRelationNodes:this.getRelationNodes.bind(this),getTabBar:this.getTabBar.bind(this),getPageId:this.getPageId.bind(this),animate:this.animate.bind(this),clearAnimation:this.clearAnimation.bind(this),getOpenerEventChannel:this.getOpenerEventChannel.bind(this),applyAnimatedStyle:this.applyAnimatedStyle.bind(this),clearAnimatedStyle:this.clearAnimatedStyle.bind(this),setUpdatePerformanceListener:this.setUpdatePerformanceListener.bind(this),getPassiveEvent:this.getPassiveEvent.bind(this),setPassiveEvent:this.setPassiveEvent.bind(this),setInitialRenderingCache:this.setInitialRenderingCache.bind(this),getAppBar:this.getAppBar&&this.getAppBar.bind(this)};Re=this;const n=s(this.__v_props,e);if(Re=null,void 0!==n){let t;Object.keys(n).forEach(e=>{const s=n[e];oe(s)?this[e]=s:(t=t||{},t[e]=xe(s),we.call(this,e,s))}),void 0!==t&&this.setData(t,ve)}this.__v_scope.off(),void 0!==o&&o.call(this)};const r=Pe(n,ye.DETACHED);return n.lifetimes[ye.DETACHED]=function(){r.call(this),this.__v_scope.stop()},n.lifetimes[ye.READY]=Ce(Le[ye.READY],n.lifetimes[ye.READY]||n[ye.READY]),n.lifetimes[ye.MOVED]=Pe(n,ye.MOVED),n.lifetimes[ye.ERROR]=Pe(n,ye.ERROR),void 0===n.methods&&(n.methods={}),(n.methods[me.ON_PAGE_SCROLL]||e.listenPageScroll)&&(n.methods[me.ON_PAGE_SCROLL]=He(n,me.ON_PAGE_SCROLL),n.methods.__v_listenPageScroll=()=>!0),void 0===n.methods[me.ON_SHARE_APP_MESSAGE]&&e.canShareToOthers&&(n.methods[me.ON_SHARE_APP_MESSAGE]=function(t){const e=this[re(me.ON_SHARE_APP_MESSAGE)];return e?e(t):{}},n.methods.__v_isInjectedShareToOthersHook=()=>!0),void 0===n.methods[me.ON_SHARE_TIMELINE]&&e.canShareToTimeline&&(n.methods[me.ON_SHARE_TIMELINE]=function(){const t=this[re(me.ON_SHARE_TIMELINE)];return t?t():{}},n.methods.__v_isInjectedShareToTimelineHook=()=>!0),void 0===n.methods[me.ON_ADD_TO_FAVORITES]&&(n.methods[me.ON_ADD_TO_FAVORITES]=function(t){const e=this[re(me.ON_ADD_TO_FAVORITES)];return e?e(t):{}},n.methods.__v_isInjectedFavoritesHook=()=>!0),void 0===n.methods[me.ON_SAVE_EXIT_STATE]&&(n.methods[me.ON_SAVE_EXIT_STATE]=function(){const t=this[re(me.ON_SAVE_EXIT_STATE)];return t?t():{data:void 0}},n.methods.__v_isInjectedExitStateHook=()=>!0),n.methods[me.ON_LOAD]=He(n,me.ON_LOAD),n.methods[me.ON_PULL_DOWN_REFRESH]=He(n,me.ON_PULL_DOWN_REFRESH),n.methods[me.ON_REACH_BOTTOM]=He(n,me.ON_REACH_BOTTOM),n.methods[me.ON_TAB_ITEM_TAP]=He(n,me.ON_TAB_ITEM_TAP),void 0===n.pageLifetimes&&(n.pageLifetimes={}),n.pageLifetimes[Le[me.ON_SHOW]]=ke(n,me.ON_SHOW),n.pageLifetimes[Le[me.ON_HIDE]]=ke(n,me.ON_HIDE),n.pageLifetimes[Le[me.ON_RESIZE]]=ke(n,me.ON_RESIZE),n.pageLifetimes[Le[me.ON_ROUTE_DONE]]=ke(n,me.ON_ROUTE_DONE),i&&(void 0===n.observers&&(n.observers={}),i.forEach(t=>{const e=n.observers[t];n.observers[t]=function(s){this.__v_props&&(this.__v_props[t]=s),void 0!==e&&e.call(this,s)}})),Component(n)},exports.definePage=function(t,e){let s,n;if(e=se({listenPageScroll:!1,canShareToOthers:!1,canShareToTimeline:!1},e),oe(t))s=t,n={};else{if(void 0===t.setup)return void Page(t);s=t.setup,n=ne(t,["setup"])}const i=n[me.ON_LOAD];n[me.ON_LOAD]=function(t){this.__v_scope=new E,this.__v_scope.on();const e={is:this.is,route:this.route,options:this.options,exitState:this.exitState,router:this.router,pageRouter:this.pageRouter,renderer:this.renderer,createSelectorQuery:this.createSelectorQuery.bind(this),createIntersectionObserver:this.createIntersectionObserver.bind(this),createMediaQueryObserver:this.createMediaQueryObserver.bind(this),selectComponent:this.selectComponent.bind(this),selectAllComponents:this.selectAllComponents.bind(this),getTabBar:this.getTabBar.bind(this),getPageId:this.getPageId.bind(this),animate:this.animate.bind(this),clearAnimation:this.clearAnimation.bind(this),getOpenerEventChannel:this.getOpenerEventChannel.bind(this),applyAnimatedStyle:this.applyAnimatedStyle.bind(this),clearAnimatedStyle:this.clearAnimatedStyle.bind(this),setUpdatePerformanceListener:this.setUpdatePerformanceListener.bind(this),getPassiveEvent:this.getPassiveEvent.bind(this),setPassiveEvent:this.setPassiveEvent.bind(this),setInitialRenderingCache:this.setInitialRenderingCache.bind(this),getAppBar:this.getAppBar&&this.getAppBar.bind(this)};Ne=this;const n=s(t,e);if(Ne=null,void 0!==n){let t;Object.keys(n).forEach(e=>{const s=n[e];oe(s)?this[e]=s:(t=t||{},t[e]=xe(s),we.call(this,e,s))}),void 0!==t&&this.setData(t,ve)}this.__v_scope.off(),void 0!==i&&i.call(this,t)};const o=Ie(n,me.ON_UNLOAD);n[me.ON_UNLOAD]=function(){o.call(this),this.__v_scope.stop()},(n[me.ON_PAGE_SCROLL]||e.listenPageScroll)&&(n[me.ON_PAGE_SCROLL]=Ie(n,me.ON_PAGE_SCROLL),n.__v_listenPageScroll=()=>!0),void 0===n[me.ON_SHARE_APP_MESSAGE]&&e.canShareToOthers&&(n[me.ON_SHARE_APP_MESSAGE]=function(t){const e=this[re(me.ON_SHARE_APP_MESSAGE)];return e?e(t):{}},n.__v_isInjectedShareToOthersHook=()=>!0),void 0===n[me.ON_SHARE_TIMELINE]&&e.canShareToTimeline&&(n[me.ON_SHARE_TIMELINE]=function(){const t=this[re(me.ON_SHARE_TIMELINE)];return t?t():{}},n.__v_isInjectedShareToTimelineHook=()=>!0),void 0===n[me.ON_ADD_TO_FAVORITES]&&(n[me.ON_ADD_TO_FAVORITES]=function(t){const e=this[re(me.ON_ADD_TO_FAVORITES)];return e?e(t):{}},n.__v_isInjectedFavoritesHook=()=>!0),void 0===n[me.ON_SAVE_EXIT_STATE]&&(n[me.ON_SAVE_EXIT_STATE]=function(){const t=this[re(me.ON_SAVE_EXIT_STATE)];return t?t():{data:void 0}},n.__v_isInjectedExitStateHook=()=>!0),n[me.ON_SHOW]=Ie(n,me.ON_SHOW),n[me.ON_READY]=Ie(n,me.ON_READY),n[me.ON_HIDE]=Ie(n,me.ON_HIDE),n[me.ON_ROUTE_DONE]=Ie(n,me.ON_ROUTE_DONE),n[me.ON_PULL_DOWN_REFRESH]=Ie(n,me.ON_PULL_DOWN_REFRESH),n[me.ON_REACH_BOTTOM]=Ie(n,me.ON_REACH_BOTTOM),n[me.ON_RESIZE]=Ie(n,me.ON_RESIZE),n[me.ON_TAB_ITEM_TAP]=Ie(n,me.ON_TAB_ITEM_TAP),Page(n)},exports.effect=function(t,e){t.effect instanceof S&&(t=t.effect.fn);const s=new S(t);e&&n(s,e);try{s.run()}catch(t){throw s.stop(),t}const i=s.run.bind(s);return i.effect=s,i},exports.effectScope=function(t){return new E(t)},exports.getCurrentScope=O,exports.getCurrentWatcher=function(){return Kt},exports.inject=function(t,e,s=!1){return t in Se?Se[t]:arguments.length>1?s&&oe(e)?e():e:void 0},exports.isProxy=Ht,exports.isReactive=It,exports.isReadonly=Lt,exports.isRef=Mt,exports.isShallow=Pt,exports.markRaw=function(t){return!o(t,"__v_skip")&&Object.isExtensible(t)&&((t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})})(t,"__v_skip",!0),t},exports.nextTick=function(t){const e=pe||fe;return t?e.then(t):e},exports.onAddToFavorites=t=>{const e=Te();if(e&&e.__v_isInjectedFavoritesHook){const s=re(me.ON_ADD_TO_FAVORITES);void 0===e[s]&&(e[s]=t)}},exports.onAppError=je,exports.onAppHide=Me,exports.onAppShow=Ue,exports.onDetach=qe,exports.onError=ts,exports.onHide=Be,exports.onLoad=Ke,exports.onMove=$e,exports.onPageNotFound=We,exports.onPageScroll=t=>{const e=Te();e&&e.__v_listenPageScroll&&is(e,me.ON_PAGE_SCROLL,t)},exports.onPullDownRefresh=Xe,exports.onReachBottom=Ze,exports.onReady=t=>{const e=Te();e&&is(e,me.ON_READY,t)},exports.onResize=ze,exports.onRouteDone=Ye,exports.onSaveExitState=t=>{const e=Te();if(e&&e.__v_isInjectedExitStateHook){const s=re(me.ON_SAVE_EXIT_STATE);void 0===e[s]&&(e[s]=t)}},exports.onScopeDispose=function(t,e=!1){d&&d.cleanups.push(t)},exports.onShareAppMessage=t=>{const e=Te();if(e&&e[me.ON_SHARE_APP_MESSAGE]&&e.__v_isInjectedShareToOthersHook){const s=re(me.ON_SHARE_APP_MESSAGE);void 0===e[s]&&(e[s]=t)}},exports.onShareTimeline=t=>{const e=Te();if(e&&e[me.ON_SHARE_TIMELINE]&&e.__v_isInjectedShareToTimelineHook){const s=re(me.ON_SHARE_TIMELINE);void 0===e[s]&&(e[s]=t)}},exports.onShow=Fe,exports.onTabItemTap=Je,exports.onThemeChange=Ge,exports.onUnhandledRejection=Ve,exports.onUnload=Qe,exports.onWatcherCleanup=$t,exports.provide=function(t,e){Se[t]=e},exports.proxyRefs=function(t){return It(t)?t:new Proxy(t,Ft)},exports.reactive=yt,exports.readonly=xt,exports.ref=jt,exports.shallowReactive=Dt,exports.shallowReadonly=function(t){return wt(t,!0,ft,Nt,mt)},exports.shallowRef=function(t){return Wt(t,!0)},exports.stop=function(t){t.effect.stop()},exports.toRaw=kt,exports.toRef=function(t,e,s){return Mt(t)?t:a(t)?new Yt(t):l(t)&&arguments.length>1?Xt(t,e,s):jt(t)},exports.toRefs=function(t){const e=r(t)?new Array(t.length):{};for(const s in t)e[s]=Xt(t,s);return e},exports.toValue=function(t){return a(t)?t():Gt(t)},exports.triggerRef=function(t){t.dep&&t.dep.trigger()},exports.unref=Gt,exports.watch=Oe,exports.watchEffect=function(t,e){return ge(t,null,e)},exports.watchPostEffect=function(t,e){return ge(t,null,{flush:"post"})},exports.watchSyncEffect=function(t,e){return ge(t,null,{flush:"sync"})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vue-mini v1.2.
|
|
2
|
+
* vue-mini v1.2.12
|
|
3
3
|
* https://github.com/vue-mini/vue-mini
|
|
4
4
|
* (c) 2019-present Yang Mingshan
|
|
5
5
|
* @license MIT
|
|
@@ -38,7 +38,7 @@ function isFunction(x) {
|
|
|
38
38
|
return typeof x === 'function';
|
|
39
39
|
}
|
|
40
40
|
function toHiddenField(name) {
|
|
41
|
-
return `
|
|
41
|
+
return `__v_${name}`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
var SchedulerJobFlags;
|
|
@@ -388,9 +388,9 @@ function definePage(optionsOrSetup, config) {
|
|
|
388
388
|
}
|
|
389
389
|
const originOnLoad = options[PageLifecycle.ON_LOAD];
|
|
390
390
|
options[PageLifecycle.ON_LOAD] = function (query) {
|
|
391
|
-
this.
|
|
391
|
+
this.__v_scope = new EffectScope();
|
|
392
392
|
// @ts-expect-error
|
|
393
|
-
this.
|
|
393
|
+
this.__v_scope.on();
|
|
394
394
|
const context = {
|
|
395
395
|
is: this.is,
|
|
396
396
|
route: this.route,
|
|
@@ -438,7 +438,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
// @ts-expect-error
|
|
441
|
-
this.
|
|
441
|
+
this.__v_scope.off();
|
|
442
442
|
if (originOnLoad !== undefined) {
|
|
443
443
|
originOnLoad.call(this, query);
|
|
444
444
|
}
|
|
@@ -446,12 +446,12 @@ function definePage(optionsOrSetup, config) {
|
|
|
446
446
|
const onUnload = createLifecycle$1(options, PageLifecycle.ON_UNLOAD);
|
|
447
447
|
options[PageLifecycle.ON_UNLOAD] = function () {
|
|
448
448
|
onUnload.call(this);
|
|
449
|
-
this.
|
|
449
|
+
this.__v_scope.stop();
|
|
450
450
|
};
|
|
451
451
|
if (options[PageLifecycle.ON_PAGE_SCROLL] || config.listenPageScroll) {
|
|
452
452
|
options[PageLifecycle.ON_PAGE_SCROLL] = createLifecycle$1(options, PageLifecycle.ON_PAGE_SCROLL);
|
|
453
453
|
/* istanbul ignore next -- @preserve */
|
|
454
|
-
options.
|
|
454
|
+
options.__v_listenPageScroll = () => true;
|
|
455
455
|
}
|
|
456
456
|
if (options[PageLifecycle.ON_SHARE_APP_MESSAGE] === undefined &&
|
|
457
457
|
config.canShareToOthers) {
|
|
@@ -463,7 +463,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
463
463
|
return {};
|
|
464
464
|
};
|
|
465
465
|
/* istanbul ignore next -- @preserve */
|
|
466
|
-
options.
|
|
466
|
+
options.__v_isInjectedShareToOthersHook = () => true;
|
|
467
467
|
}
|
|
468
468
|
if (options[PageLifecycle.ON_SHARE_TIMELINE] === undefined &&
|
|
469
469
|
config.canShareToTimeline) {
|
|
@@ -475,7 +475,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
475
475
|
return {};
|
|
476
476
|
};
|
|
477
477
|
/* istanbul ignore next -- @preserve */
|
|
478
|
-
options.
|
|
478
|
+
options.__v_isInjectedShareToTimelineHook = () => true;
|
|
479
479
|
}
|
|
480
480
|
if (options[PageLifecycle.ON_ADD_TO_FAVORITES] === undefined) {
|
|
481
481
|
options[PageLifecycle.ON_ADD_TO_FAVORITES] = function (favorites) {
|
|
@@ -486,7 +486,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
486
486
|
return {};
|
|
487
487
|
};
|
|
488
488
|
/* istanbul ignore next -- @preserve */
|
|
489
|
-
options.
|
|
489
|
+
options.__v_isInjectedFavoritesHook = () => true;
|
|
490
490
|
}
|
|
491
491
|
if (options[PageLifecycle.ON_SAVE_EXIT_STATE] === undefined) {
|
|
492
492
|
options[PageLifecycle.ON_SAVE_EXIT_STATE] = function () {
|
|
@@ -497,7 +497,7 @@ function definePage(optionsOrSetup, config) {
|
|
|
497
497
|
return { data: undefined };
|
|
498
498
|
};
|
|
499
499
|
/* istanbul ignore next -- @preserve */
|
|
500
|
-
options.
|
|
500
|
+
options.__v_isInjectedExitStateHook = () => true;
|
|
501
501
|
}
|
|
502
502
|
options[PageLifecycle.ON_SHOW] = createLifecycle$1(options, PageLifecycle.ON_SHOW);
|
|
503
503
|
options[PageLifecycle.ON_READY] = createLifecycle$1(options, PageLifecycle.ON_READY);
|
|
@@ -566,16 +566,16 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
566
566
|
const originAttached = options.lifetimes[ComponentLifecycle.ATTACHED] ||
|
|
567
567
|
options[ComponentLifecycle.ATTACHED];
|
|
568
568
|
options.lifetimes[ComponentLifecycle.ATTACHED] = function () {
|
|
569
|
-
this.
|
|
569
|
+
this.__v_scope = new EffectScope();
|
|
570
570
|
// @ts-expect-error
|
|
571
|
-
this.
|
|
571
|
+
this.__v_scope.on();
|
|
572
572
|
const rawProps = {};
|
|
573
573
|
if (properties) {
|
|
574
574
|
properties.forEach((property) => {
|
|
575
575
|
rawProps[property] = this.data[property];
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
|
-
this.
|
|
578
|
+
this.__v_props = shallowReactive(rawProps);
|
|
579
579
|
const context = {
|
|
580
580
|
is: this.is,
|
|
581
581
|
id: this.id,
|
|
@@ -608,7 +608,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
608
608
|
setCurrentComponent(this);
|
|
609
609
|
const bindings = setup(
|
|
610
610
|
/* istanbul ignore next -- @preserve */
|
|
611
|
-
(process.env.NODE_ENV !== 'production') ? shallowReadonly(this.
|
|
611
|
+
(process.env.NODE_ENV !== 'production') ? shallowReadonly(this.__v_props) : this.__v_props, context);
|
|
612
612
|
unsetCurrentComponent();
|
|
613
613
|
if (bindings !== undefined) {
|
|
614
614
|
let data;
|
|
@@ -628,7 +628,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
// @ts-expect-error
|
|
631
|
-
this.
|
|
631
|
+
this.__v_scope.off();
|
|
632
632
|
if (originAttached !== undefined) {
|
|
633
633
|
originAttached.call(this);
|
|
634
634
|
}
|
|
@@ -636,7 +636,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
636
636
|
const detached = createComponentLifecycle(options, ComponentLifecycle.DETACHED);
|
|
637
637
|
options.lifetimes[ComponentLifecycle.DETACHED] = function () {
|
|
638
638
|
detached.call(this);
|
|
639
|
-
this.
|
|
639
|
+
this.__v_scope.stop();
|
|
640
640
|
};
|
|
641
641
|
const originReady = options.lifetimes[ComponentLifecycle.READY] ||
|
|
642
642
|
options[ComponentLifecycle.READY];
|
|
@@ -650,7 +650,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
650
650
|
config.listenPageScroll) {
|
|
651
651
|
options.methods[PageLifecycle.ON_PAGE_SCROLL] = createPageLifecycle(options, PageLifecycle.ON_PAGE_SCROLL);
|
|
652
652
|
/* istanbul ignore next -- @preserve */
|
|
653
|
-
options.methods.
|
|
653
|
+
options.methods.__v_listenPageScroll = () => true;
|
|
654
654
|
}
|
|
655
655
|
if (options.methods[PageLifecycle.ON_SHARE_APP_MESSAGE] === undefined &&
|
|
656
656
|
config.canShareToOthers) {
|
|
@@ -662,7 +662,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
662
662
|
return {};
|
|
663
663
|
};
|
|
664
664
|
/* istanbul ignore next -- @preserve */
|
|
665
|
-
options.methods.
|
|
665
|
+
options.methods.__v_isInjectedShareToOthersHook = () => true;
|
|
666
666
|
}
|
|
667
667
|
if (options.methods[PageLifecycle.ON_SHARE_TIMELINE] === undefined &&
|
|
668
668
|
config.canShareToTimeline) {
|
|
@@ -674,7 +674,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
674
674
|
return {};
|
|
675
675
|
};
|
|
676
676
|
/* istanbul ignore next -- @preserve */
|
|
677
|
-
options.methods.
|
|
677
|
+
options.methods.__v_isInjectedShareToTimelineHook = () => true;
|
|
678
678
|
}
|
|
679
679
|
if (options.methods[PageLifecycle.ON_ADD_TO_FAVORITES] === undefined) {
|
|
680
680
|
options.methods[PageLifecycle.ON_ADD_TO_FAVORITES] = function (favorites) {
|
|
@@ -685,7 +685,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
685
685
|
return {};
|
|
686
686
|
};
|
|
687
687
|
/* istanbul ignore next -- @preserve */
|
|
688
|
-
options.methods.
|
|
688
|
+
options.methods.__v_isInjectedFavoritesHook = () => true;
|
|
689
689
|
}
|
|
690
690
|
if (options.methods[PageLifecycle.ON_SAVE_EXIT_STATE] === undefined) {
|
|
691
691
|
options.methods[PageLifecycle.ON_SAVE_EXIT_STATE] = function () {
|
|
@@ -696,7 +696,7 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
696
696
|
return { data: undefined };
|
|
697
697
|
};
|
|
698
698
|
/* istanbul ignore next -- @preserve */
|
|
699
|
-
options.methods.
|
|
699
|
+
options.methods.__v_isInjectedExitStateHook = () => true;
|
|
700
700
|
}
|
|
701
701
|
options.methods[PageLifecycle.ON_LOAD] = createPageLifecycle(options, PageLifecycle.ON_LOAD);
|
|
702
702
|
options.methods[PageLifecycle.ON_PULL_DOWN_REFRESH] = createPageLifecycle(options, PageLifecycle.ON_PULL_DOWN_REFRESH);
|
|
@@ -721,8 +721,8 @@ function defineComponent(optionsOrSetup, config) {
|
|
|
721
721
|
const originObserver = options.observers[property];
|
|
722
722
|
options.observers[property] = function (value) {
|
|
723
723
|
// Observer executes before attached
|
|
724
|
-
if (this.
|
|
725
|
-
this.
|
|
724
|
+
if (this.__v_props) {
|
|
725
|
+
this.__v_props[property] = value;
|
|
726
726
|
}
|
|
727
727
|
if (originObserver !== undefined) {
|
|
728
728
|
originObserver.call(this, value);
|
|
@@ -777,7 +777,7 @@ const onPageScroll = (hook) => {
|
|
|
777
777
|
/* istanbul ignore else -- @preserve */
|
|
778
778
|
if (currentInstance) {
|
|
779
779
|
/* istanbul ignore else -- @preserve */
|
|
780
|
-
if (currentInstance.
|
|
780
|
+
if (currentInstance.__v_listenPageScroll) {
|
|
781
781
|
injectHook(currentInstance, PageLifecycle.ON_PAGE_SCROLL, hook);
|
|
782
782
|
}
|
|
783
783
|
else if ((process.env.NODE_ENV !== 'production')) {
|
|
@@ -794,7 +794,7 @@ const onShareAppMessage = (hook) => {
|
|
|
794
794
|
if (currentInstance) {
|
|
795
795
|
/* istanbul ignore else -- @preserve */
|
|
796
796
|
if (currentInstance[PageLifecycle.ON_SHARE_APP_MESSAGE] &&
|
|
797
|
-
currentInstance.
|
|
797
|
+
currentInstance.__v_isInjectedShareToOthersHook) {
|
|
798
798
|
const hiddenField = toHiddenField(PageLifecycle.ON_SHARE_APP_MESSAGE);
|
|
799
799
|
/* istanbul ignore else -- @preserve */
|
|
800
800
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -818,7 +818,7 @@ const onShareTimeline = (hook) => {
|
|
|
818
818
|
if (currentInstance) {
|
|
819
819
|
/* istanbul ignore else -- @preserve */
|
|
820
820
|
if (currentInstance[PageLifecycle.ON_SHARE_TIMELINE] &&
|
|
821
|
-
currentInstance.
|
|
821
|
+
currentInstance.__v_isInjectedShareToTimelineHook) {
|
|
822
822
|
const hiddenField = toHiddenField(PageLifecycle.ON_SHARE_TIMELINE);
|
|
823
823
|
/* istanbul ignore else -- @preserve */
|
|
824
824
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -841,7 +841,7 @@ const onAddToFavorites = (hook) => {
|
|
|
841
841
|
/* istanbul ignore else -- @preserve */
|
|
842
842
|
if (currentInstance) {
|
|
843
843
|
/* istanbul ignore else -- @preserve */
|
|
844
|
-
if (currentInstance.
|
|
844
|
+
if (currentInstance.__v_isInjectedFavoritesHook) {
|
|
845
845
|
const hiddenField = toHiddenField(PageLifecycle.ON_ADD_TO_FAVORITES);
|
|
846
846
|
/* istanbul ignore else -- @preserve */
|
|
847
847
|
if (currentInstance[hiddenField] === undefined) {
|
|
@@ -864,7 +864,7 @@ const onSaveExitState = (hook) => {
|
|
|
864
864
|
/* istanbul ignore else -- @preserve */
|
|
865
865
|
if (currentInstance) {
|
|
866
866
|
/* istanbul ignore else -- @preserve */
|
|
867
|
-
if (currentInstance.
|
|
867
|
+
if (currentInstance.__v_isInjectedExitStateHook) {
|
|
868
868
|
const hiddenField = toHiddenField(PageLifecycle.ON_SAVE_EXIT_STATE);
|
|
869
869
|
/* istanbul ignore else -- @preserve */
|
|
870
870
|
if (currentInstance[hiddenField] === undefined) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-mini/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "基于 Vue 3 的小程序框架。简单,强大,高性能。 ",
|
|
5
5
|
"main": "dist/vue-mini.cjs.js",
|
|
6
6
|
"module": "dist/vue-mini.esm-bundler.js",
|
|
7
7
|
"types": "dist/vue-mini.d.ts",
|
|
8
|
-
"repository":
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/vue-mini/vue-mini.git"
|
|
11
|
+
},
|
|
9
12
|
"homepage": "https://vuemini.org",
|
|
10
13
|
"author": "Yang Mingshan <y.mingshan3@gmail.com>",
|
|
11
14
|
"license": "MIT",
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
"小程序"
|
|
33
36
|
],
|
|
34
37
|
"dependencies": {
|
|
35
|
-
"@vue/reactivity": "3.5.
|
|
38
|
+
"@vue/reactivity": "3.5.38",
|
|
36
39
|
"miniprogram-api-typings": "~4.0.8"
|
|
37
40
|
}
|
|
38
41
|
}
|