@vue/reactivity 3.6.0-rc.6 → 3.6.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/reactivity.cjs.js +15 -31
- package/dist/reactivity.cjs.prod.js +15 -31
- package/dist/reactivity.esm-browser.js +15 -31
- package/dist/reactivity.esm-browser.prod.js +2 -2
- package/dist/reactivity.esm-bundler.js +15 -31
- package/dist/reactivity.global.js +15 -31
- package/dist/reactivity.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/reactivity.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -49,22 +49,6 @@ function warn(msg, ...args) {
|
|
|
49
49
|
}
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region packages/reactivity/src/system.ts
|
|
52
|
-
const ReactiveFlags$1 = {
|
|
53
|
-
"None": 0,
|
|
54
|
-
"0": "None",
|
|
55
|
-
"Mutable": 1,
|
|
56
|
-
"1": "Mutable",
|
|
57
|
-
"Watching": 2,
|
|
58
|
-
"2": "Watching",
|
|
59
|
-
"RecursedCheck": 4,
|
|
60
|
-
"4": "RecursedCheck",
|
|
61
|
-
"Recursed": 8,
|
|
62
|
-
"8": "Recursed",
|
|
63
|
-
"Dirty": 16,
|
|
64
|
-
"16": "Dirty",
|
|
65
|
-
"Pending": 32,
|
|
66
|
-
"32": "Pending"
|
|
67
|
-
};
|
|
68
52
|
const notifyBuffer = [];
|
|
69
53
|
let batchDepth = 0;
|
|
70
54
|
let activeSub = void 0;
|
|
@@ -1128,7 +1112,7 @@ var RefImpl = class {
|
|
|
1128
1112
|
constructor(value, wrap) {
|
|
1129
1113
|
this.subs = void 0;
|
|
1130
1114
|
this.subsTail = void 0;
|
|
1131
|
-
this.flags =
|
|
1115
|
+
this.flags = 1;
|
|
1132
1116
|
this.__v_isRef = true;
|
|
1133
1117
|
this.__v_isShallow = false;
|
|
1134
1118
|
this._oldValue = this._rawValue = wrap ? /* @__PURE__ */ toRaw(value) : value;
|
|
@@ -1141,7 +1125,7 @@ var RefImpl = class {
|
|
|
1141
1125
|
}
|
|
1142
1126
|
get value() {
|
|
1143
1127
|
trackRef(this);
|
|
1144
|
-
if (this.flags &
|
|
1128
|
+
if (this.flags & 16 && this.update()) {
|
|
1145
1129
|
const subs = this.subs;
|
|
1146
1130
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1147
1131
|
}
|
|
@@ -1152,7 +1136,7 @@ var RefImpl = class {
|
|
|
1152
1136
|
const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
|
|
1153
1137
|
newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
|
|
1154
1138
|
if ((0, _vue_shared.hasChanged)(newValue, oldValue)) {
|
|
1155
|
-
this.flags |=
|
|
1139
|
+
this.flags |= 16;
|
|
1156
1140
|
this._rawValue = newValue;
|
|
1157
1141
|
this._value = !useDirectValue && this._wrap ? this._wrap(newValue) : newValue;
|
|
1158
1142
|
const subs = this.subs;
|
|
@@ -1171,7 +1155,7 @@ var RefImpl = class {
|
|
|
1171
1155
|
}
|
|
1172
1156
|
}
|
|
1173
1157
|
update() {
|
|
1174
|
-
this.flags &=
|
|
1158
|
+
this.flags &= -17;
|
|
1175
1159
|
return (0, _vue_shared.hasChanged)(this._oldValue, this._oldValue = this._rawValue);
|
|
1176
1160
|
}
|
|
1177
1161
|
};
|
|
@@ -1281,7 +1265,7 @@ var CustomRefImpl = class {
|
|
|
1281
1265
|
constructor(factory) {
|
|
1282
1266
|
this.subs = void 0;
|
|
1283
1267
|
this.subsTail = void 0;
|
|
1284
|
-
this.flags =
|
|
1268
|
+
this.flags = 0;
|
|
1285
1269
|
this["__v_isRef"] = true;
|
|
1286
1270
|
this._value = void 0;
|
|
1287
1271
|
const { get, set } = factory(() => trackRef(this), () => triggerRef(this));
|
|
@@ -1677,12 +1661,12 @@ var ComputedRefImpl = class {
|
|
|
1677
1661
|
*/
|
|
1678
1662
|
get _dirty() {
|
|
1679
1663
|
const flags = this.flags;
|
|
1680
|
-
if (flags &
|
|
1681
|
-
if (flags &
|
|
1664
|
+
if (flags & 16) return true;
|
|
1665
|
+
if (flags & 32) {
|
|
1682
1666
|
if (checkDirty(this.deps, this)) {
|
|
1683
|
-
this.flags = flags |
|
|
1667
|
+
this.flags = flags | 16;
|
|
1684
1668
|
return true;
|
|
1685
|
-
} else this.flags = flags &
|
|
1669
|
+
} else this.flags = flags & -33;
|
|
1686
1670
|
}
|
|
1687
1671
|
return false;
|
|
1688
1672
|
}
|
|
@@ -1691,8 +1675,8 @@ var ComputedRefImpl = class {
|
|
|
1691
1675
|
* for backwards compat
|
|
1692
1676
|
*/
|
|
1693
1677
|
set _dirty(v) {
|
|
1694
|
-
if (v) this.flags |=
|
|
1695
|
-
else this.flags &=
|
|
1678
|
+
if (v) this.flags |= 16;
|
|
1679
|
+
else this.flags &= -49;
|
|
1696
1680
|
}
|
|
1697
1681
|
constructor(fn, setter) {
|
|
1698
1682
|
this.fn = fn;
|
|
@@ -1702,18 +1686,18 @@ var ComputedRefImpl = class {
|
|
|
1702
1686
|
this.subsTail = void 0;
|
|
1703
1687
|
this.deps = void 0;
|
|
1704
1688
|
this.depsTail = void 0;
|
|
1705
|
-
this.flags =
|
|
1689
|
+
this.flags = 17;
|
|
1706
1690
|
this.__v_isRef = true;
|
|
1707
1691
|
this["__v_isReadonly"] = !setter;
|
|
1708
1692
|
}
|
|
1709
1693
|
get value() {
|
|
1710
1694
|
const flags = this.flags;
|
|
1711
|
-
if (flags &
|
|
1695
|
+
if (flags & 16 || flags & 32 && checkDirty(this.deps, this)) {
|
|
1712
1696
|
if (this.update()) {
|
|
1713
1697
|
const subs = this.subs;
|
|
1714
1698
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1715
1699
|
}
|
|
1716
|
-
} else if (flags &
|
|
1700
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
1717
1701
|
if (activeSub !== void 0) {
|
|
1718
1702
|
onTrack(activeSub, {
|
|
1719
1703
|
target: this,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -9,22 +9,6 @@ Object.defineProperties(exports, {
|
|
|
9
9
|
});
|
|
10
10
|
let _vue_shared = require("@vue/shared");
|
|
11
11
|
//#region packages/reactivity/src/system.ts
|
|
12
|
-
const ReactiveFlags$1 = {
|
|
13
|
-
"None": 0,
|
|
14
|
-
"0": "None",
|
|
15
|
-
"Mutable": 1,
|
|
16
|
-
"1": "Mutable",
|
|
17
|
-
"Watching": 2,
|
|
18
|
-
"2": "Watching",
|
|
19
|
-
"RecursedCheck": 4,
|
|
20
|
-
"4": "RecursedCheck",
|
|
21
|
-
"Recursed": 8,
|
|
22
|
-
"8": "Recursed",
|
|
23
|
-
"Dirty": 16,
|
|
24
|
-
"16": "Dirty",
|
|
25
|
-
"Pending": 32,
|
|
26
|
-
"32": "Pending"
|
|
27
|
-
};
|
|
28
12
|
const notifyBuffer = [];
|
|
29
13
|
let batchDepth = 0;
|
|
30
14
|
let activeSub = void 0;
|
|
@@ -1055,7 +1039,7 @@ var RefImpl = class {
|
|
|
1055
1039
|
constructor(value, wrap) {
|
|
1056
1040
|
this.subs = void 0;
|
|
1057
1041
|
this.subsTail = void 0;
|
|
1058
|
-
this.flags =
|
|
1042
|
+
this.flags = 1;
|
|
1059
1043
|
this.__v_isRef = true;
|
|
1060
1044
|
this.__v_isShallow = false;
|
|
1061
1045
|
this._oldValue = this._rawValue = wrap ? /* @__PURE__ */ toRaw(value) : value;
|
|
@@ -1068,7 +1052,7 @@ var RefImpl = class {
|
|
|
1068
1052
|
}
|
|
1069
1053
|
get value() {
|
|
1070
1054
|
trackRef(this);
|
|
1071
|
-
if (this.flags &
|
|
1055
|
+
if (this.flags & 16 && this.update()) {
|
|
1072
1056
|
const subs = this.subs;
|
|
1073
1057
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1074
1058
|
}
|
|
@@ -1079,7 +1063,7 @@ var RefImpl = class {
|
|
|
1079
1063
|
const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
|
|
1080
1064
|
newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
|
|
1081
1065
|
if ((0, _vue_shared.hasChanged)(newValue, oldValue)) {
|
|
1082
|
-
this.flags |=
|
|
1066
|
+
this.flags |= 16;
|
|
1083
1067
|
this._rawValue = newValue;
|
|
1084
1068
|
this._value = !useDirectValue && this._wrap ? this._wrap(newValue) : newValue;
|
|
1085
1069
|
const subs = this.subs;
|
|
@@ -1090,7 +1074,7 @@ var RefImpl = class {
|
|
|
1090
1074
|
}
|
|
1091
1075
|
}
|
|
1092
1076
|
update() {
|
|
1093
|
-
this.flags &=
|
|
1077
|
+
this.flags &= -17;
|
|
1094
1078
|
return (0, _vue_shared.hasChanged)(this._oldValue, this._oldValue = this._rawValue);
|
|
1095
1079
|
}
|
|
1096
1080
|
};
|
|
@@ -1193,7 +1177,7 @@ var CustomRefImpl = class {
|
|
|
1193
1177
|
constructor(factory) {
|
|
1194
1178
|
this.subs = void 0;
|
|
1195
1179
|
this.subsTail = void 0;
|
|
1196
|
-
this.flags =
|
|
1180
|
+
this.flags = 0;
|
|
1197
1181
|
this["__v_isRef"] = true;
|
|
1198
1182
|
this._value = void 0;
|
|
1199
1183
|
const { get, set } = factory(() => trackRef(this), () => triggerRef(this));
|
|
@@ -1585,12 +1569,12 @@ var ComputedRefImpl = class {
|
|
|
1585
1569
|
*/
|
|
1586
1570
|
get _dirty() {
|
|
1587
1571
|
const flags = this.flags;
|
|
1588
|
-
if (flags &
|
|
1589
|
-
if (flags &
|
|
1572
|
+
if (flags & 16) return true;
|
|
1573
|
+
if (flags & 32) {
|
|
1590
1574
|
if (checkDirty(this.deps, this)) {
|
|
1591
|
-
this.flags = flags |
|
|
1575
|
+
this.flags = flags | 16;
|
|
1592
1576
|
return true;
|
|
1593
|
-
} else this.flags = flags &
|
|
1577
|
+
} else this.flags = flags & -33;
|
|
1594
1578
|
}
|
|
1595
1579
|
return false;
|
|
1596
1580
|
}
|
|
@@ -1599,8 +1583,8 @@ var ComputedRefImpl = class {
|
|
|
1599
1583
|
* for backwards compat
|
|
1600
1584
|
*/
|
|
1601
1585
|
set _dirty(v) {
|
|
1602
|
-
if (v) this.flags |=
|
|
1603
|
-
else this.flags &=
|
|
1586
|
+
if (v) this.flags |= 16;
|
|
1587
|
+
else this.flags &= -49;
|
|
1604
1588
|
}
|
|
1605
1589
|
constructor(fn, setter) {
|
|
1606
1590
|
this.fn = fn;
|
|
@@ -1610,18 +1594,18 @@ var ComputedRefImpl = class {
|
|
|
1610
1594
|
this.subsTail = void 0;
|
|
1611
1595
|
this.deps = void 0;
|
|
1612
1596
|
this.depsTail = void 0;
|
|
1613
|
-
this.flags =
|
|
1597
|
+
this.flags = 17;
|
|
1614
1598
|
this.__v_isRef = true;
|
|
1615
1599
|
this["__v_isReadonly"] = !setter;
|
|
1616
1600
|
}
|
|
1617
1601
|
get value() {
|
|
1618
1602
|
const flags = this.flags;
|
|
1619
|
-
if (flags &
|
|
1603
|
+
if (flags & 16 || flags & 32 && checkDirty(this.deps, this)) {
|
|
1620
1604
|
if (this.update()) {
|
|
1621
1605
|
const subs = this.subs;
|
|
1622
1606
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1623
1607
|
}
|
|
1624
|
-
} else if (flags &
|
|
1608
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
1625
1609
|
if (activeSub !== void 0) link(this, activeSub);
|
|
1626
1610
|
else if (activeEffectScope !== void 0) link(this, activeEffectScope);
|
|
1627
1611
|
return this._value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -102,22 +102,6 @@ function warn(msg, ...args) {
|
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region packages/reactivity/src/system.ts
|
|
105
|
-
const ReactiveFlags$1 = {
|
|
106
|
-
"None": 0,
|
|
107
|
-
"0": "None",
|
|
108
|
-
"Mutable": 1,
|
|
109
|
-
"1": "Mutable",
|
|
110
|
-
"Watching": 2,
|
|
111
|
-
"2": "Watching",
|
|
112
|
-
"RecursedCheck": 4,
|
|
113
|
-
"4": "RecursedCheck",
|
|
114
|
-
"Recursed": 8,
|
|
115
|
-
"8": "Recursed",
|
|
116
|
-
"Dirty": 16,
|
|
117
|
-
"16": "Dirty",
|
|
118
|
-
"Pending": 32,
|
|
119
|
-
"32": "Pending"
|
|
120
|
-
};
|
|
121
105
|
const notifyBuffer = [];
|
|
122
106
|
let batchDepth = 0;
|
|
123
107
|
let activeSub = void 0;
|
|
@@ -1181,7 +1165,7 @@ var RefImpl = class {
|
|
|
1181
1165
|
constructor(value, wrap) {
|
|
1182
1166
|
this.subs = void 0;
|
|
1183
1167
|
this.subsTail = void 0;
|
|
1184
|
-
this.flags =
|
|
1168
|
+
this.flags = 1;
|
|
1185
1169
|
this.__v_isRef = true;
|
|
1186
1170
|
this.__v_isShallow = false;
|
|
1187
1171
|
this._oldValue = this._rawValue = wrap ? /* @__PURE__ */ toRaw(value) : value;
|
|
@@ -1194,7 +1178,7 @@ var RefImpl = class {
|
|
|
1194
1178
|
}
|
|
1195
1179
|
get value() {
|
|
1196
1180
|
trackRef(this);
|
|
1197
|
-
if (this.flags &
|
|
1181
|
+
if (this.flags & 16 && this.update()) {
|
|
1198
1182
|
const subs = this.subs;
|
|
1199
1183
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1200
1184
|
}
|
|
@@ -1205,7 +1189,7 @@ var RefImpl = class {
|
|
|
1205
1189
|
const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
|
|
1206
1190
|
newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
|
|
1207
1191
|
if (hasChanged(newValue, oldValue)) {
|
|
1208
|
-
this.flags |=
|
|
1192
|
+
this.flags |= 16;
|
|
1209
1193
|
this._rawValue = newValue;
|
|
1210
1194
|
this._value = !useDirectValue && this._wrap ? this._wrap(newValue) : newValue;
|
|
1211
1195
|
const subs = this.subs;
|
|
@@ -1224,7 +1208,7 @@ var RefImpl = class {
|
|
|
1224
1208
|
}
|
|
1225
1209
|
}
|
|
1226
1210
|
update() {
|
|
1227
|
-
this.flags &=
|
|
1211
|
+
this.flags &= -17;
|
|
1228
1212
|
return hasChanged(this._oldValue, this._oldValue = this._rawValue);
|
|
1229
1213
|
}
|
|
1230
1214
|
};
|
|
@@ -1334,7 +1318,7 @@ var CustomRefImpl = class {
|
|
|
1334
1318
|
constructor(factory) {
|
|
1335
1319
|
this.subs = void 0;
|
|
1336
1320
|
this.subsTail = void 0;
|
|
1337
|
-
this.flags =
|
|
1321
|
+
this.flags = 0;
|
|
1338
1322
|
this["__v_isRef"] = true;
|
|
1339
1323
|
this._value = void 0;
|
|
1340
1324
|
const { get, set } = factory(() => trackRef(this), () => triggerRef(this));
|
|
@@ -1730,12 +1714,12 @@ var ComputedRefImpl = class {
|
|
|
1730
1714
|
*/
|
|
1731
1715
|
get _dirty() {
|
|
1732
1716
|
const flags = this.flags;
|
|
1733
|
-
if (flags &
|
|
1734
|
-
if (flags &
|
|
1717
|
+
if (flags & 16) return true;
|
|
1718
|
+
if (flags & 32) {
|
|
1735
1719
|
if (checkDirty(this.deps, this)) {
|
|
1736
|
-
this.flags = flags |
|
|
1720
|
+
this.flags = flags | 16;
|
|
1737
1721
|
return true;
|
|
1738
|
-
} else this.flags = flags &
|
|
1722
|
+
} else this.flags = flags & -33;
|
|
1739
1723
|
}
|
|
1740
1724
|
return false;
|
|
1741
1725
|
}
|
|
@@ -1744,8 +1728,8 @@ var ComputedRefImpl = class {
|
|
|
1744
1728
|
* for backwards compat
|
|
1745
1729
|
*/
|
|
1746
1730
|
set _dirty(v) {
|
|
1747
|
-
if (v) this.flags |=
|
|
1748
|
-
else this.flags &=
|
|
1731
|
+
if (v) this.flags |= 16;
|
|
1732
|
+
else this.flags &= -49;
|
|
1749
1733
|
}
|
|
1750
1734
|
constructor(fn, setter) {
|
|
1751
1735
|
this.fn = fn;
|
|
@@ -1755,18 +1739,18 @@ var ComputedRefImpl = class {
|
|
|
1755
1739
|
this.subsTail = void 0;
|
|
1756
1740
|
this.deps = void 0;
|
|
1757
1741
|
this.depsTail = void 0;
|
|
1758
|
-
this.flags =
|
|
1742
|
+
this.flags = 17;
|
|
1759
1743
|
this.__v_isRef = true;
|
|
1760
1744
|
this["__v_isReadonly"] = !setter;
|
|
1761
1745
|
}
|
|
1762
1746
|
get value() {
|
|
1763
1747
|
const flags = this.flags;
|
|
1764
|
-
if (flags &
|
|
1748
|
+
if (flags & 16 || flags & 32 && checkDirty(this.deps, this)) {
|
|
1765
1749
|
if (this.update()) {
|
|
1766
1750
|
const subs = this.subs;
|
|
1767
1751
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1768
1752
|
}
|
|
1769
|
-
} else if (flags &
|
|
1753
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
1770
1754
|
if (activeSub !== void 0) {
|
|
1771
1755
|
onTrack(activeSub, {
|
|
1772
1756
|
target: this,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}const t={},n=()=>{},r=Object.assign,i=Object.prototype.hasOwnProperty,a=(e,t)=>i.call(e,t),o=Array.isArray,s=e=>te(e)===`[object Map]`,c=e=>te(e)===`[object Set]`,l=e=>typeof e==`function`,ee=e=>typeof e==`string`,u=e=>typeof e==`symbol`,d=e=>typeof e==`object`&&!!e,f=Object.prototype.toString,te=e=>f.call(e),ne=e=>te(e).slice(8,-1),re=e=>te(e)===`[object Object]`,p=e=>ee(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,m=(e,t)=>!Object.is(e,t),ie=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},h={None:0,0:`None`,Mutable:1,1:`Mutable`,Watching:2,2:`Watching`,RecursedCheck:4,4:`RecursedCheck`,Recursed:8,8:`Recursed`,Dirty:16,16:`Dirty`,Pending:32,32:`Pending`},ae=[];let g=0,_,oe=0;function se(){++oe}function ce(){--oe}let le=0,v=0,y=0;function b(e){try{return _}finally{_=e}}function ue(){++g}function de(){!--g&&y&&he()}function x(e,t){let n=t.depsTail;if(n!==void 0&&n.dep===e)return;let r=n===void 0?t.deps:n.nextDep;if(r!==void 0&&r.dep===e){r.version=le,t.depsTail=r;return}let i=e.subsTail;if(i!==void 0&&i.version===le&&i.sub===t)return;let a=t.depsTail=e.subsTail={version:le,dep:e,sub:t,prevDep:n,nextDep:r,prevSub:i,nextSub:void 0};r!==void 0&&(r.prevDep=a),n===void 0?t.deps=a:n.nextDep=a,i===void 0?e.subs=a:i.nextSub=a}function S(e,t=e.sub){let n=e.dep,r=e.prevDep,i=e.nextDep,a=e.nextSub,o=e.prevSub;if(i===void 0?t.depsTail=r:i.prevDep=r,r===void 0?t.deps=i:r.nextDep=i,a===void 0?n.subsTail=o:a.prevSub=o,o!==void 0)o.nextSub=a;else if((n.subs=a)===void 0){let e=n.deps;if(e!==void 0){do e=S(e,n);while(e!==void 0);n.flags|=16}}return i}function fe(e){let t=e.nextSub,n;top:do{let r=e.sub,i=r.flags;if(i&3&&(i&60?i&12?i&4?!(i&48)&&_e(e,r)?(r.flags=i|40,i&=1):i=0:r.flags=i&-9|32:i=0:(r.flags=i|32,oe&&(r.flags|=8)),i&2&&(ae[y++]=r),i&1)){let i=r.subs;if(i!==void 0){e=i,i.nextSub!==void 0&&(n={value:t,prev:n},t=e.nextSub);continue}}if((e=t)!==void 0){t=e.nextSub;continue}for(;n!==void 0;)if(e=n.value,n=n.prev,e!==void 0){t=e.nextSub;continue top}break}while(!0)}function pe(e){return++le,e.depsTail=void 0,e.flags=e.flags&-57|4,b(e)}function me(e,t){_=t;let n=e.depsTail,r=n===void 0?e.deps:n.nextDep;for(;r!==void 0;)r=S(r,e);e.flags&=-5}function he(){for(;v<y;){let e=ae[v];ae[v++]=void 0,e.notify()}v=0,y=0}function ge(e,t){let n,r=0;top:do{let i=e.dep,a=i.flags,o=!1;if(t.flags&16)o=!0;else if((a&17)==17){let e=i.subs;i.update()&&(e.nextSub!==void 0&&C(e),o=!0)}else if((a&33)==33){n={value:e,prev:n},e=i.deps,t=i,++r;continue}if(!o&&e.nextDep!==void 0){e=e.nextDep;continue}for(;r;){if(--r,e=n.value,n=n.prev,o){let n=t.subs;if(t.update()){n.nextSub!==void 0&&C(n),t=e.sub;continue}}else t.flags&=-33;if(t=e.sub,e.nextDep!==void 0){e=e.nextDep;continue top}o=!1}return o&&!!t.flags}while(!0)}function C(e){do{let t=e.sub,n=e.nextSub,r=t.flags;(r&48)==32&&(t.flags=r|16),e=n}while(e!==void 0)}function _e(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}var ve=class{constructor(e,t){this.map=e,this.key=t,this._subs=void 0,this.subsTail=void 0,this.flags=0}get subs(){return this._subs}set subs(e){this._subs=e,e===void 0&&this.map.delete(this.key)}};const w=new WeakMap,T=Symbol(``),ye=Symbol(``),E=Symbol(``);function D(e,t,n){if(_!==void 0){let t=w.get(e);t||w.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=new ve(t,n)),x(r,_)}}function O(e,t,n,r,i,a){let c=w.get(e);if(!c)return;let l=e=>{e!==void 0&&e.subs!==void 0&&(fe(e.subs),C(e.subs))};if(ue(),t===`clear`)c.forEach(l);else{let i=o(e),a=i&&p(n);if(i&&n===`length`){let e=Number(r);c.forEach((t,n)=>{(n===`length`||n===E||!u(n)&&n>=e)&&l(t)})}else switch((n!==void 0||c.has(void 0))&&l(c.get(n)),a&&l(c.get(E)),t){case`add`:i?a&&l(c.get(`length`)):(l(c.get(T)),s(e)&&l(c.get(ye)));break;case`delete`:i||(l(c.get(T)),s(e)&&l(c.get(ye)));break;case`set`:s(e)&&l(c.get(T))}}de()}function be(e,t){let n=w.get(e);return n&&n.get(t)}function k(e){let t=H(e);return t===e?t:(D(t,`iterate`,E),V(e)?t:t.map(U))}function A(e){return D(e=H(e),`iterate`,E),e}function j(e,t){return B(e)?W(z(e)?U(t):t):U(t)}const xe={__proto__:null,[Symbol.iterator](){return Se(this,Symbol.iterator,e=>j(this,e))},concat(...e){return k(this).concat(...e.map(e=>o(e)?k(e):e))},entries(){return Se(this,`entries`,e=>(e[1]=j(this,e[1]),e))},every(e,t){return M(this,`every`,e,t,void 0,arguments)},filter(e,t){return M(this,`filter`,e,t,e=>e.map(e=>j(this,e)),arguments)},find(e,t){return M(this,`find`,e,t,e=>j(this,e),arguments)},findIndex(e,t){return M(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return M(this,`findLast`,e,t,e=>j(this,e),arguments)},findLastIndex(e,t){return M(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return M(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Te(this,`includes`,e)},indexOf(...e){return Te(this,`indexOf`,e)},join(e){return k(this).join(e)},lastIndexOf(...e){return Te(this,`lastIndexOf`,e)},map(e,t){return M(this,`map`,e,t,void 0,arguments)},pop(){return N(this,`pop`)},push(...e){return N(this,`push`,e)},reduce(e,...t){return we(this,`reduce`,e,t)},reduceRight(e,...t){return we(this,`reduceRight`,e,t)},shift(){return N(this,`shift`)},some(e,t){return M(this,`some`,e,t,void 0,arguments)},splice(...e){return N(this,`splice`,e)},toReversed(){return k(this).toReversed()},toSorted(e){return k(this).toSorted(e)},toSpliced(...e){return k(this).toSpliced(...e)},unshift(...e){return N(this,`unshift`,e)},values(){return Se(this,`values`,e=>j(this,e))}};function Se(e,t,n){let r=A(e),i=r[t]();return r!==e&&!V(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}const Ce=Array.prototype;function M(e,t,n,r,i,a){let o=A(e),s=o!==e&&!V(e),c=o[t];if(c!==Ce[t]){let t=c.apply(e,a);return s?U(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,j(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let ee=c.call(o,l,r);return s&&i?i(ee):ee}function we(e,t,n,r){let i=A(e),a=i!==e&&!V(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=j(e,t)),n.call(this,t,j(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?j(e,c):c}function Te(e,t,n){let r=H(e);D(r,`iterate`,E);let i=r[t](...n);return(i===-1||i===!1)&&Ze(n[0])?(n[0]=H(n[0]),r[t](...n)):i}function N(e,t,n=[]){ue();let r=b(),i=H(e)[t].apply(e,n);return b(r),de(),i}const Ee=e(`__proto__,__v_isRef,__isVue`),De=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(u));function Oe(e){u(e)||(e=String(e));let t=H(this);return D(t,`has`,e),t.hasOwnProperty(e)}var ke=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ke:Ge:i?We:Ue).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=o(e);if(!r){let e;if(a&&(e=xe[t]))return e;if(t===`hasOwnProperty`)return Oe}let s=G(e),c=Reflect.get(e,t,s?e:n);if(s&&t!==`value`||(u(t)?De.has(t):Ee(t))||(r||D(e,`get`,t),i))return c;if(G(c)){let e=a&&p(t)?c:c.value;return r&&d(e)?L(e):e}return d(c)?r?L(c):Je(c):c}},Ae=class extends ke{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],s=o(e)&&p(t);if(!this._isShallow){let e=B(i);if(!V(n)&&!B(n)&&(i=H(i),n=H(n)),!s&&G(i)&&!G(n))return e||(i.value=n),!0}let c=s?Number(t)<e.length:a(e,t),l=Reflect.set(e,t,n,G(e)?e:r);return e===H(r)&&l&&(c?m(n,i)&&O(e,`set`,t,n,i):O(e,`add`,t,n)),l}deleteProperty(e,t){let n=a(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&O(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!u(t)||!De.has(t))&&D(e,`has`,t),n}ownKeys(e){return D(e,`iterate`,o(e)?`length`:T),Reflect.ownKeys(e)}},je=class extends ke{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};const Me=new Ae,Ne=new je,Pe=new Ae(!0),Fe=new je(!0),Ie=e=>e,P=e=>Reflect.getPrototypeOf(e);function Le(e,t,n){return function(...i){let a=this.__v_raw,o=H(a),c=s(o),l=e===`entries`||e===Symbol.iterator&&c,ee=e===`keys`&&c,u=a[e](...i),d=n?Ie:t?W:U;return!t&&D(o,`iterate`,ee?ye:T),r(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function F(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Re(e,t){let n={get(n){let r=this.__v_raw,i=H(r),a=H(n);e||(m(n,a)&&D(i,`get`,n),D(i,`get`,a));let{has:o}=P(i),s=t?Ie:e?W:U;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&D(H(t),`iterate`,T),t.size},has(t){let n=this.__v_raw,r=H(n),i=H(t);return e||(m(t,i)&&D(r,`has`,t),D(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=H(a),s=t?Ie:e?W:U;return!e&&D(o,`iterate`,T),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return r(n,e?{add:F(`add`),set:F(`set`),delete:F(`delete`),clear:F(`clear`)}:{add(e){let n=H(this),r=P(n),i=H(e),a=!t&&!V(e)&&!B(e)?i:e;return r.has.call(n,a)||m(e,a)&&r.has.call(n,e)||m(i,a)&&r.has.call(n,i)||(n.add(a),O(n,`add`,a,a)),this},set(e,n){!t&&!V(n)&&!B(n)&&(n=H(n));let r=H(this),{has:i,get:a}=P(r),o=i.call(r,e);o||(e=H(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?m(n,s)&&O(r,`set`,e,n,s):O(r,`add`,e,n),this},delete(e){let t=H(this),{has:n,get:r}=P(t),i=n.call(t,e);i||(e=H(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&O(t,`delete`,e,void 0,a),o},clear(){let e=H(this),t=e.size!==0,n=e.clear();return t&&O(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Le(r,e,t)}),n}function I(e,t){let n=Re(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(a(n,r)&&r in t?n:t,r,i)}const ze={get:I(!1,!1)},Be={get:I(!1,!0)},Ve={get:I(!0,!1)},He={get:I(!0,!0)},Ue=new WeakMap,We=new WeakMap,Ge=new WeakMap,Ke=new WeakMap;function qe(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Je(e){return B(e)?e:R(e,!1,Me,ze,Ue)}function Ye(e){return R(e,!1,Pe,Be,We)}function L(e){return R(e,!0,Ne,Ve,Ge)}function Xe(e){return R(e,!0,Fe,He,Ke)}function R(e,t,n,r,i){if(!d(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=qe(ne(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function z(e){return B(e)?z(e.__v_raw):!!(e&&e.__v_isReactive)}function B(e){return!!(e&&e.__v_isReadonly)}function V(e){return!!(e&&e.__v_isShallow)}function Ze(e){return e?!!e.__v_raw:!1}function H(e){let t=e&&e.__v_raw;return t?H(t):e}function Qe(e){return!a(e,`__v_skip`)&&Object.isExtensible(e)&&ie(e,`__v_skip`,!0),e}const U=e=>d(e)?Je(e):e,W=e=>d(e)?L(e):e;function G(e){return e?e.__v_isRef===!0:!1}function $e(e){return tt(e,U)}function et(e){return tt(e)}function tt(e,t){return G(e)?e:new nt(e,t)}var nt=class{constructor(e,t){this.subs=void 0,this.subsTail=void 0,this.flags=h.Mutable,this.__v_isRef=!0,this.__v_isShallow=!1,this._oldValue=this._rawValue=t?H(e):e,this._value=t?t(e):e,this._wrap=t,this.__v_isShallow=!t}get dep(){return this}get value(){if(it(this),this.flags&h.Dirty&&this.update()){let e=this.subs;e!==void 0&&C(e)}return this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||V(e)||B(e);if(e=n?e:H(e),m(e,t)){this.flags|=h.Dirty,this._rawValue=e,this._value=!n&&this._wrap?this._wrap(e):e;let t=this.subs;t!==void 0&&(fe(t),g||he())}}update(){return this.flags&=~h.Dirty,m(this._oldValue,this._oldValue=this._rawValue)}};function rt(e){let t=e.dep;t!==void 0&&t.subs!==void 0&&(fe(t.subs),C(t.subs),g||he())}function it(e){_!==void 0&&x(e,_)}function K(e){return G(e)?e.value:e}function at(e){return l(e)?e():K(e)}const ot={get:(e,t,n)=>t===`__v_raw`?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return G(i)&&!G(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function st(e){return z(e)?e:new Proxy(e,ot)}var ct=class{constructor(e){this.subs=void 0,this.subsTail=void 0,this.flags=h.None,this.__v_isRef=!0,this._value=void 0;let{get:t,set:n}=e(()=>it(this),()=>rt(this));this._get=t,this._set=n}get dep(){return this}get value(){return this._value=this._get()}set value(e){this._set(e)}};function lt(e){return new ct(e)}function ut(e){let t=o(e)?Array(e.length):{};for(let n in e)t[n]=mt(e,n);return t}var dt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=u(t)?t:String(t),this._raw=H(e);let r=!0,i=e;if(!o(e)||u(this._key)||!p(this._key))do r=!Ze(i)||V(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=K(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&G(this._raw[this._key])){let t=this._object[this._key];if(G(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return be(this._raw,this._key)}},ft=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function pt(e,t,n){return G(e)?e:l(e)?new ft(e):d(e)&&arguments.length>1?mt(e,t,n):$e(e)}function mt(e,t,n){return new dt(e,t,n)}const ht={ALLOW_RECURSE:128,128:`ALLOW_RECURSE`,PAUSED:256,256:`PAUSED`,STOP:1024,1024:`STOP`};var q=class{fn(){}constructor(e){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=18,this.cleanups=[],this.cleanupsLength=0,e!==void 0&&(this.fn=e),X&&x(this,X)}get active(){return!(this.flags&1024)}pause(){this.flags|=256}resume(){(this.flags&=-257)&48&&this.notify()}notify(){!(this.flags&256)&&this.dirty&&this.run()}run(){if(!this.active)return this.fn();Y(this);let e=pe(this);se();try{return this.fn()}finally{ce(),me(this,e);let t=this.flags;(t&136)==136&&(this.flags=t&-9,this.notify())}}stop(){if(!this.active)return;this.flags=1024;let e=this.deps;for(;e!==void 0;)e=S(e,this);let t=this.subs;t!==void 0&&S(t),Y(this)}get dirty(){let e=this.flags;if(e&16)return!0;if(e&32){if(ge(this.deps,this))return this.flags=e|16,!0;this.flags=e&-33}return!1}};function gt(e,t){e.effect instanceof q&&(e=e.effect.fn);let n=new q(e);if(t){let{onStop:e,scheduler:i}=t;if(e){t.onStop=void 0;let r=n.stop.bind(n);n.stop=()=>{r(),e()}}i&&(t.scheduler=void 0,n.notify=()=>{n.flags&256||i()}),r(n,t)}try{n.run()}catch(e){throw n.stop(),e}let i=n.run.bind(n);return i.effect=n,i}function _t(e){e.effect.stop()}const J=[];function vt(){J.push(_),b()}function yt(){if(_!==void 0)J.push(_);else{J.push(void 0);for(let e=J.length-1;e>=0;e--)if(J[e]!==void 0){b(J[e]);break}}}function bt(){J.length?b(J.pop()):b()}function Y(e){let t=e.cleanupsLength;if(t){for(let n=0;n<t;n++)e.cleanups[n]();e.cleanupsLength=0}}function xt(e,t=!1){_ instanceof q&&(_.cleanups[_.cleanupsLength++]=()=>St(e))}function St(e){let t=b();try{e()}finally{b(t)}}let X;var Ct=class{constructor(e=!1){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=0,this.cleanups=[],this.cleanupsLength=0,!e&&X&&x(this,X)}get active(){return!(this.flags&1024)}pause(){if(!(this.flags&256)){this.flags|=256;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`pause`in t&&t.pause()}}}resume(){let e=this.flags;if(e&256){this.flags=e&-257;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`resume`in t&&t.resume()}}}run(e){let t=X;try{return X=this,e()}finally{X=t}}stop(){if(!this.active)return;this.flags=1024,this.reset();let e=this.subs;e!==void 0&&S(e)}reset(){let e=this.deps;for(;e!==void 0;){let t=e.dep;`stop`in t?(e=e.nextDep,t.stop()):e=S(e,this)}Y(this)}};function wt(e){return new Ct(e)}function Tt(){return X}function Et(e){try{return X}finally{X=e}}function Dt(e,t=!1){X!==void 0&&(X.cleanups[X.cleanupsLength++]=e)}var Ot=class{get effect(){return this}get dep(){return this}get _dirty(){let e=this.flags;if(e&h.Dirty)return!0;if(e&h.Pending){if(ge(this.deps,this))return this.flags=e|h.Dirty,!0;this.flags=e&~h.Pending}return!1}set _dirty(e){e?this.flags|=h.Dirty:this.flags&=~(h.Dirty|h.Pending)}constructor(e,t){this.fn=e,this.setter=t,this._value=void 0,this.subs=void 0,this.subsTail=void 0,this.deps=void 0,this.depsTail=void 0,this.flags=h.Mutable|h.Dirty,this.__v_isRef=!0,this.__v_isReadonly=!t}get value(){let e=this.flags;if(e&h.Dirty||e&h.Pending&&ge(this.deps,this)){if(this.update()){let e=this.subs;e!==void 0&&C(e)}}else e&h.Pending&&(this.flags=e&~h.Pending);return _===void 0?X!==void 0&&x(this,X):x(this,_),this._value}set value(e){this.setter&&this.setter(e)}update(){let e=pe(this);try{let e=this._value,t=this.fn(e);return m(e,t)?(this._value=t,!0):!1}finally{me(this,e)}}};function kt(e,t,n=!1){let r,i;return l(e)?r=e:(r=e.get,i=e.set),new Ot(r,i)}const At={GET:`get`,HAS:`has`,ITERATE:`iterate`},jt={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Mt={SKIP:`__v_skip`,IS_REACTIVE:`__v_isReactive`,IS_READONLY:`__v_isReadonly`,IS_SHALLOW:`__v_isShallow`,RAW:`__v_raw`,IS_REF:`__v_isRef`},Nt={WATCH_GETTER:2,2:`WATCH_GETTER`,WATCH_CALLBACK:3,3:`WATCH_CALLBACK`,WATCH_CLEANUP:4,4:`WATCH_CLEANUP`},Z={};let Q;function Pt(){return Q}function Ft(e,t=!1,n=Q){if(n){let{call:t}=n.options;t?n.cleanups[n.cleanupsLength++]=()=>t(e,4):n.cleanups[n.cleanupsLength++]=e}}var It=class extends q{constructor(e,r,i=t){let{deep:a,once:s,call:c,onWarn:ee}=i,u,d=!1,f=!1;if(G(e)?(u=()=>e.value,d=V(e)):z(e)?(u=()=>Lt(e,a),d=!0):o(e)?(f=!0,d=e.some(e=>z(e)||V(e)),u=()=>e.map(e=>{if(G(e))return e.value;if(z(e))return Lt(e,a);if(l(e))return c?c(e,2):e()})):u=l(e)?r?c?()=>c(e,2):e:()=>{if(this.cleanupsLength){let e=b();try{Y(this)}finally{b(e)}}let t=Q;Q=this;try{return c?c(e,3,[this.boundCleanup]):e(this.boundCleanup)}finally{Q=t}}:n,r&&a){let e=u,t=a===!0?1/0:a;u=()=>$(e(),t)}if(super(u),this.cb=r,this.options=i,this.boundCleanup=e=>Ft(e,!1,this),this.forceTrigger=d,this.isMultiSource=f,s&&r){let e=r;r=(...t)=>{let n=e(...t);return this.stop(),n}}this.cb=r,this.oldValue=f?Array(e.length).fill(Z):Z}run(e=!1){let t=this.oldValue,n=this.oldValue=super.run();if(!this.cb)return;let{immediate:r,deep:i,call:a}=this.options;if(!(e&&!r)&&(e||i||this.forceTrigger||(this.isMultiSource?n.some((e,n)=>m(e,t[n])):m(n,t)))){Y(this);let e=Q;Q=this;try{let e=[n,t===Z?void 0:this.isMultiSource&&t[0]===Z?[]:t,this.boundCleanup];a?a(this.cb,3,e):this.cb(...e)}finally{Q=e}}}};function Lt(e,t){return t?e:V(e)||t===!1||t===0?$(e,1):$(e)}function Rt(e,n,r=t){let i=new It(e,n,r);i.run(!0);let a=i.stop.bind(i);return a.pause=i.pause.bind(i),a.resume=i.resume.bind(i),a.stop=a,a}function $(e,t=1/0,n){if(t<=0||!d(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,G(e))$(e.value,t,n);else if(o(e))for(let r=0;r<e.length;r++)$(e[r],t,n);else if(c(e)||s(e))e.forEach(e=>{$(e,t,n)});else if(re(e)){for(let r in e)$(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$(e[r],t,n)}return e}export{E as ARRAY_ITERATE_KEY,ht as EffectFlags,Ct as EffectScope,T as ITERATE_KEY,ye as MAP_KEY_ITERATE_KEY,q as ReactiveEffect,Mt as ReactiveFlags,At as TrackOpTypes,jt as TriggerOpTypes,Nt as WatchErrorCodes,It as WatcherEffect,kt as computed,lt as customRef,gt as effect,wt as effectScope,yt as enableTracking,Tt as getCurrentScope,Pt as getCurrentWatcher,Ze as isProxy,z as isReactive,B as isReadonly,G as isRef,V as isShallow,Qe as markRaw,xt as onEffectCleanup,Dt as onScopeDispose,Ft as onWatcherCleanup,vt as pauseTracking,st as proxyRefs,Je as reactive,k as reactiveReadArray,L as readonly,$e as ref,bt as resetTracking,b as setActiveSub,Et as setCurrentScope,Ye as shallowReactive,A as shallowReadArray,Xe as shallowReadonly,et as shallowRef,_t as stop,H as toRaw,U as toReactive,W as toReadonly,pt as toRef,ut as toRefs,at as toValue,D as track,$ as traverse,O as trigger,rt as triggerRef,K as unref,Rt as watch};
|
|
6
|
+
function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}const t={},n=()=>{},r=Object.assign,i=Object.prototype.hasOwnProperty,a=(e,t)=>i.call(e,t),o=Array.isArray,s=e=>m(e)===`[object Map]`,c=e=>m(e)===`[object Set]`,l=e=>typeof e==`function`,u=e=>typeof e==`string`,d=e=>typeof e==`symbol`,f=e=>typeof e==`object`&&!!e,p=Object.prototype.toString,m=e=>p.call(e),ee=e=>m(e).slice(8,-1),te=e=>m(e)===`[object Object]`,ne=e=>u(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,h=(e,t)=>!Object.is(e,t),re=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ie=[];let g=0,_,ae=0;function oe(){++ae}function se(){--ae}let v=0,y=0,b=0;function x(e){try{return _}finally{_=e}}function ce(){++g}function le(){!--g&&b&&pe()}function S(e,t){let n=t.depsTail;if(n!==void 0&&n.dep===e)return;let r=n===void 0?t.deps:n.nextDep;if(r!==void 0&&r.dep===e){r.version=v,t.depsTail=r;return}let i=e.subsTail;if(i!==void 0&&i.version===v&&i.sub===t)return;let a=t.depsTail=e.subsTail={version:v,dep:e,sub:t,prevDep:n,nextDep:r,prevSub:i,nextSub:void 0};r!==void 0&&(r.prevDep=a),n===void 0?t.deps=a:n.nextDep=a,i===void 0?e.subs=a:i.nextSub=a}function C(e,t=e.sub){let n=e.dep,r=e.prevDep,i=e.nextDep,a=e.nextSub,o=e.prevSub;if(i===void 0?t.depsTail=r:i.prevDep=r,r===void 0?t.deps=i:r.nextDep=i,a===void 0?n.subsTail=o:a.prevSub=o,o!==void 0)o.nextSub=a;else if((n.subs=a)===void 0){let e=n.deps;if(e!==void 0){do e=C(e,n);while(e!==void 0);n.flags|=16}}return i}function ue(e){let t=e.nextSub,n;top:do{let r=e.sub,i=r.flags;if(i&3&&(i&60?i&12?i&4?!(i&48)&&he(e,r)?(r.flags=i|40,i&=1):i=0:r.flags=i&-9|32:i=0:(r.flags=i|32,ae&&(r.flags|=8)),i&2&&(ie[b++]=r),i&1)){let i=r.subs;if(i!==void 0){e=i,i.nextSub!==void 0&&(n={value:t,prev:n},t=e.nextSub);continue}}if((e=t)!==void 0){t=e.nextSub;continue}for(;n!==void 0;)if(e=n.value,n=n.prev,e!==void 0){t=e.nextSub;continue top}break}while(!0)}function de(e){return++v,e.depsTail=void 0,e.flags=e.flags&-57|4,x(e)}function fe(e,t){_=t;let n=e.depsTail,r=n===void 0?e.deps:n.nextDep;for(;r!==void 0;)r=C(r,e);e.flags&=-5}function pe(){for(;y<b;){let e=ie[y];ie[y++]=void 0,e.notify()}y=0,b=0}function me(e,t){let n,r=0;top:do{let i=e.dep,a=i.flags,o=!1;if(t.flags&16)o=!0;else if((a&17)==17){let e=i.subs;i.update()&&(e.nextSub!==void 0&&w(e),o=!0)}else if((a&33)==33){n={value:e,prev:n},e=i.deps,t=i,++r;continue}if(!o&&e.nextDep!==void 0){e=e.nextDep;continue}for(;r;){if(--r,e=n.value,n=n.prev,o){let n=t.subs;if(t.update()){n.nextSub!==void 0&&w(n),t=e.sub;continue}}else t.flags&=-33;if(t=e.sub,e.nextDep!==void 0){e=e.nextDep;continue top}o=!1}return o&&!!t.flags}while(!0)}function w(e){do{let t=e.sub,n=e.nextSub,r=t.flags;(r&48)==32&&(t.flags=r|16),e=n}while(e!==void 0)}function he(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}var ge=class{constructor(e,t){this.map=e,this.key=t,this._subs=void 0,this.subsTail=void 0,this.flags=0}get subs(){return this._subs}set subs(e){this._subs=e,e===void 0&&this.map.delete(this.key)}};const T=new WeakMap,E=Symbol(``),D=Symbol(``),O=Symbol(``);function k(e,t,n){if(_!==void 0){let t=T.get(e);t||T.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=new ge(t,n)),S(r,_)}}function A(e,t,n,r,i,a){let c=T.get(e);if(!c)return;let l=e=>{e!==void 0&&e.subs!==void 0&&(ue(e.subs),w(e.subs))};if(ce(),t===`clear`)c.forEach(l);else{let i=o(e),a=i&&ne(n);if(i&&n===`length`){let e=Number(r);c.forEach((t,n)=>{(n===`length`||n===O||!d(n)&&n>=e)&&l(t)})}else switch((n!==void 0||c.has(void 0))&&l(c.get(n)),a&&l(c.get(O)),t){case`add`:i?a&&l(c.get(`length`)):(l(c.get(E)),s(e)&&l(c.get(D)));break;case`delete`:i||(l(c.get(E)),s(e)&&l(c.get(D)));break;case`set`:s(e)&&l(c.get(E))}}le()}function _e(e,t){let n=T.get(e);return n&&n.get(t)}function j(e){let t=W(e);return t===e?t:(k(t,`iterate`,O),U(e)?t:t.map(G))}function M(e){return k(e=W(e),`iterate`,O),e}function N(e,t){return H(e)?K(V(e)?G(t):t):G(t)}const ve={__proto__:null,[Symbol.iterator](){return ye(this,Symbol.iterator,e=>N(this,e))},concat(...e){return j(this).concat(...e.map(e=>o(e)?j(e):e))},entries(){return ye(this,`entries`,e=>(e[1]=N(this,e[1]),e))},every(e,t){return P(this,`every`,e,t,void 0,arguments)},filter(e,t){return P(this,`filter`,e,t,e=>e.map(e=>N(this,e)),arguments)},find(e,t){return P(this,`find`,e,t,e=>N(this,e),arguments)},findIndex(e,t){return P(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return P(this,`findLast`,e,t,e=>N(this,e),arguments)},findLastIndex(e,t){return P(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return P(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Se(this,`includes`,e)},indexOf(...e){return Se(this,`indexOf`,e)},join(e){return j(this).join(e)},lastIndexOf(...e){return Se(this,`lastIndexOf`,e)},map(e,t){return P(this,`map`,e,t,void 0,arguments)},pop(){return F(this,`pop`)},push(...e){return F(this,`push`,e)},reduce(e,...t){return xe(this,`reduce`,e,t)},reduceRight(e,...t){return xe(this,`reduceRight`,e,t)},shift(){return F(this,`shift`)},some(e,t){return P(this,`some`,e,t,void 0,arguments)},splice(...e){return F(this,`splice`,e)},toReversed(){return j(this).toReversed()},toSorted(e){return j(this).toSorted(e)},toSpliced(...e){return j(this).toSpliced(...e)},unshift(...e){return F(this,`unshift`,e)},values(){return ye(this,`values`,e=>N(this,e))}};function ye(e,t,n){let r=M(e),i=r[t]();return r!==e&&!U(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}const be=Array.prototype;function P(e,t,n,r,i,a){let o=M(e),s=o!==e&&!U(e),c=o[t];if(c!==be[t]){let t=c.apply(e,a);return s?G(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,N(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function xe(e,t,n,r){let i=M(e),a=i!==e&&!U(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=N(e,t)),n.call(this,t,N(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?N(e,c):c}function Se(e,t,n){let r=W(e);k(r,`iterate`,O);let i=r[t](...n);return(i===-1||i===!1)&&Je(n[0])?(n[0]=W(n[0]),r[t](...n)):i}function F(e,t,n=[]){ce();let r=x(),i=W(e)[t].apply(e,n);return x(r),le(),i}const Ce=e(`__proto__,__v_isRef,__isVue`),we=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(d));function Te(e){d(e)||(e=String(e));let t=W(this);return k(t,`has`,e),t.hasOwnProperty(e)}var Ee=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ue:He:i?Ve:Be).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=o(e);if(!r){let e;if(a&&(e=ve[t]))return e;if(t===`hasOwnProperty`)return Te}let s=q(e),c=Reflect.get(e,t,s?e:n);if(s&&t!==`value`||(d(t)?we.has(t):Ce(t))||(r||k(e,`get`,t),i))return c;if(q(c)){let e=a&&ne(t)?c:c.value;return r&&f(e)?z(e):e}return f(c)?r?z(c):Ge(c):c}},De=class extends Ee{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],s=o(e)&&ne(t);if(!this._isShallow){let e=H(i);if(!U(n)&&!H(n)&&(i=W(i),n=W(n)),!s&&q(i)&&!q(n))return e||(i.value=n),!0}let c=s?Number(t)<e.length:a(e,t),l=Reflect.set(e,t,n,q(e)?e:r);return e===W(r)&&l&&(c?h(n,i)&&A(e,`set`,t,n,i):A(e,`add`,t,n)),l}deleteProperty(e,t){let n=a(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&A(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!d(t)||!we.has(t))&&k(e,`has`,t),n}ownKeys(e){return k(e,`iterate`,o(e)?`length`:E),Reflect.ownKeys(e)}},Oe=class extends Ee{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};const ke=new De,Ae=new Oe,je=new De(!0),Me=new Oe(!0),Ne=e=>e,I=e=>Reflect.getPrototypeOf(e);function Pe(e,t,n){return function(...i){let a=this.__v_raw,o=W(a),c=s(o),l=e===`entries`||e===Symbol.iterator&&c,u=e===`keys`&&c,d=a[e](...i),f=n?Ne:t?K:G;return!t&&k(o,`iterate`,u?D:E),r(Object.create(d),{next(){let{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:l?[f(e[0]),f(e[1])]:f(e),done:t}}})}}function L(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Fe(e,t){let n={get(n){let r=this.__v_raw,i=W(r),a=W(n);e||(h(n,a)&&k(i,`get`,n),k(i,`get`,a));let{has:o}=I(i),s=t?Ne:e?K:G;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&k(W(t),`iterate`,E),t.size},has(t){let n=this.__v_raw,r=W(n),i=W(t);return e||(h(t,i)&&k(r,`has`,t),k(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=W(a),s=t?Ne:e?K:G;return!e&&k(o,`iterate`,E),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return r(n,e?{add:L(`add`),set:L(`set`),delete:L(`delete`),clear:L(`clear`)}:{add(e){let n=W(this),r=I(n),i=W(e),a=!t&&!U(e)&&!H(e)?i:e;return r.has.call(n,a)||h(e,a)&&r.has.call(n,e)||h(i,a)&&r.has.call(n,i)||(n.add(a),A(n,`add`,a,a)),this},set(e,n){!t&&!U(n)&&!H(n)&&(n=W(n));let r=W(this),{has:i,get:a}=I(r),o=i.call(r,e);o||(e=W(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?h(n,s)&&A(r,`set`,e,n,s):A(r,`add`,e,n),this},delete(e){let t=W(this),{has:n,get:r}=I(t),i=n.call(t,e);i||(e=W(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&A(t,`delete`,e,void 0,a),o},clear(){let e=W(this),t=e.size!==0,n=e.clear();return t&&A(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Pe(r,e,t)}),n}function R(e,t){let n=Fe(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(a(n,r)&&r in t?n:t,r,i)}const Ie={get:R(!1,!1)},Le={get:R(!1,!0)},Re={get:R(!0,!1)},ze={get:R(!0,!0)},Be=new WeakMap,Ve=new WeakMap,He=new WeakMap,Ue=new WeakMap;function We(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ge(e){return H(e)?e:B(e,!1,ke,Ie,Be)}function Ke(e){return B(e,!1,je,Le,Ve)}function z(e){return B(e,!0,Ae,Re,He)}function qe(e){return B(e,!0,Me,ze,Ue)}function B(e,t,n,r,i){if(!f(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=We(ee(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function V(e){return H(e)?V(e.__v_raw):!!(e&&e.__v_isReactive)}function H(e){return!!(e&&e.__v_isReadonly)}function U(e){return!!(e&&e.__v_isShallow)}function Je(e){return e?!!e.__v_raw:!1}function W(e){let t=e&&e.__v_raw;return t?W(t):e}function Ye(e){return!a(e,`__v_skip`)&&Object.isExtensible(e)&&re(e,`__v_skip`,!0),e}const G=e=>f(e)?Ge(e):e,K=e=>f(e)?z(e):e;function q(e){return e?e.__v_isRef===!0:!1}function Xe(e){return Qe(e,G)}function Ze(e){return Qe(e)}function Qe(e,t){return q(e)?e:new $e(e,t)}var $e=class{constructor(e,t){this.subs=void 0,this.subsTail=void 0,this.flags=1,this.__v_isRef=!0,this.__v_isShallow=!1,this._oldValue=this._rawValue=t?W(e):e,this._value=t?t(e):e,this._wrap=t,this.__v_isShallow=!t}get dep(){return this}get value(){if(tt(this),this.flags&16&&this.update()){let e=this.subs;e!==void 0&&w(e)}return this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||U(e)||H(e);if(e=n?e:W(e),h(e,t)){this.flags|=16,this._rawValue=e,this._value=!n&&this._wrap?this._wrap(e):e;let t=this.subs;t!==void 0&&(ue(t),g||pe())}}update(){return this.flags&=-17,h(this._oldValue,this._oldValue=this._rawValue)}};function et(e){let t=e.dep;t!==void 0&&t.subs!==void 0&&(ue(t.subs),w(t.subs),g||pe())}function tt(e){_!==void 0&&S(e,_)}function nt(e){return q(e)?e.value:e}function rt(e){return l(e)?e():nt(e)}const it={get:(e,t,n)=>t===`__v_raw`?e:nt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return q(i)&&!q(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function at(e){return V(e)?e:new Proxy(e,it)}var ot=class{constructor(e){this.subs=void 0,this.subsTail=void 0,this.flags=0,this.__v_isRef=!0,this._value=void 0;let{get:t,set:n}=e(()=>tt(this),()=>et(this));this._get=t,this._set=n}get dep(){return this}get value(){return this._value=this._get()}set value(e){this._set(e)}};function st(e){return new ot(e)}function ct(e){let t=o(e)?Array(e.length):{};for(let n in e)t[n]=ft(e,n);return t}var lt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=d(t)?t:String(t),this._raw=W(e);let r=!0,i=e;if(!o(e)||d(this._key)||!ne(this._key))do r=!Je(i)||U(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=nt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&q(this._raw[this._key])){let t=this._object[this._key];if(q(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return _e(this._raw,this._key)}},ut=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function dt(e,t,n){return q(e)?e:l(e)?new ut(e):f(e)&&arguments.length>1?ft(e,t,n):Xe(e)}function ft(e,t,n){return new lt(e,t,n)}const pt={ALLOW_RECURSE:128,128:`ALLOW_RECURSE`,PAUSED:256,256:`PAUSED`,STOP:1024,1024:`STOP`};var J=class{fn(){}constructor(e){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=18,this.cleanups=[],this.cleanupsLength=0,e!==void 0&&(this.fn=e),Z&&S(this,Z)}get active(){return!(this.flags&1024)}pause(){this.flags|=256}resume(){(this.flags&=-257)&48&&this.notify()}notify(){!(this.flags&256)&&this.dirty&&this.run()}run(){if(!this.active)return this.fn();X(this);let e=de(this);oe();try{return this.fn()}finally{se(),fe(this,e);let t=this.flags;(t&136)==136&&(this.flags=t&-9,this.notify())}}stop(){if(!this.active)return;this.flags=1024;let e=this.deps;for(;e!==void 0;)e=C(e,this);let t=this.subs;t!==void 0&&C(t),X(this)}get dirty(){let e=this.flags;if(e&16)return!0;if(e&32){if(me(this.deps,this))return this.flags=e|16,!0;this.flags=e&-33}return!1}};function mt(e,t){e.effect instanceof J&&(e=e.effect.fn);let n=new J(e);if(t){let{onStop:e,scheduler:i}=t;if(e){t.onStop=void 0;let r=n.stop.bind(n);n.stop=()=>{r(),e()}}i&&(t.scheduler=void 0,n.notify=()=>{n.flags&256||i()}),r(n,t)}try{n.run()}catch(e){throw n.stop(),e}let i=n.run.bind(n);return i.effect=n,i}function ht(e){e.effect.stop()}const Y=[];function gt(){Y.push(_),x()}function _t(){if(_!==void 0)Y.push(_);else{Y.push(void 0);for(let e=Y.length-1;e>=0;e--)if(Y[e]!==void 0){x(Y[e]);break}}}function vt(){Y.length?x(Y.pop()):x()}function X(e){let t=e.cleanupsLength;if(t){for(let n=0;n<t;n++)e.cleanups[n]();e.cleanupsLength=0}}function yt(e,t=!1){_ instanceof J&&(_.cleanups[_.cleanupsLength++]=()=>bt(e))}function bt(e){let t=x();try{e()}finally{x(t)}}let Z;var xt=class{constructor(e=!1){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=0,this.cleanups=[],this.cleanupsLength=0,!e&&Z&&S(this,Z)}get active(){return!(this.flags&1024)}pause(){if(!(this.flags&256)){this.flags|=256;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`pause`in t&&t.pause()}}}resume(){let e=this.flags;if(e&256){this.flags=e&-257;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`resume`in t&&t.resume()}}}run(e){let t=Z;try{return Z=this,e()}finally{Z=t}}stop(){if(!this.active)return;this.flags=1024,this.reset();let e=this.subs;e!==void 0&&C(e)}reset(){let e=this.deps;for(;e!==void 0;){let t=e.dep;`stop`in t?(e=e.nextDep,t.stop()):e=C(e,this)}X(this)}};function St(e){return new xt(e)}function Ct(){return Z}function wt(e){try{return Z}finally{Z=e}}function Tt(e,t=!1){Z!==void 0&&(Z.cleanups[Z.cleanupsLength++]=e)}var Et=class{get effect(){return this}get dep(){return this}get _dirty(){let e=this.flags;if(e&16)return!0;if(e&32){if(me(this.deps,this))return this.flags=e|16,!0;this.flags=e&-33}return!1}set _dirty(e){e?this.flags|=16:this.flags&=-49}constructor(e,t){this.fn=e,this.setter=t,this._value=void 0,this.subs=void 0,this.subsTail=void 0,this.deps=void 0,this.depsTail=void 0,this.flags=17,this.__v_isRef=!0,this.__v_isReadonly=!t}get value(){let e=this.flags;if(e&16||e&32&&me(this.deps,this)){if(this.update()){let e=this.subs;e!==void 0&&w(e)}}else e&32&&(this.flags=e&-33);return _===void 0?Z!==void 0&&S(this,Z):S(this,_),this._value}set value(e){this.setter&&this.setter(e)}update(){let e=de(this);try{let e=this._value,t=this.fn(e);return h(e,t)?(this._value=t,!0):!1}finally{fe(this,e)}}};function Dt(e,t,n=!1){let r,i;return l(e)?r=e:(r=e.get,i=e.set),new Et(r,i)}const Ot={GET:`get`,HAS:`has`,ITERATE:`iterate`},kt={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},At={SKIP:`__v_skip`,IS_REACTIVE:`__v_isReactive`,IS_READONLY:`__v_isReadonly`,IS_SHALLOW:`__v_isShallow`,RAW:`__v_raw`,IS_REF:`__v_isRef`},jt={WATCH_GETTER:2,2:`WATCH_GETTER`,WATCH_CALLBACK:3,3:`WATCH_CALLBACK`,WATCH_CLEANUP:4,4:`WATCH_CLEANUP`},Mt={};let Q;function Nt(){return Q}function Pt(e,t=!1,n=Q){if(n){let{call:t}=n.options;t?n.cleanups[n.cleanupsLength++]=()=>t(e,4):n.cleanups[n.cleanupsLength++]=e}}var Ft=class extends J{constructor(e,r,i=t){let{deep:a,once:s,call:c,onWarn:u}=i,d,f=!1,p=!1;if(q(e)?(d=()=>e.value,f=U(e)):V(e)?(d=()=>It(e,a),f=!0):o(e)?(p=!0,f=e.some(e=>V(e)||U(e)),d=()=>e.map(e=>{if(q(e))return e.value;if(V(e))return It(e,a);if(l(e))return c?c(e,2):e()})):d=l(e)?r?c?()=>c(e,2):e:()=>{if(this.cleanupsLength){let e=x();try{X(this)}finally{x(e)}}let t=Q;Q=this;try{return c?c(e,3,[this.boundCleanup]):e(this.boundCleanup)}finally{Q=t}}:n,r&&a){let e=d,t=a===!0?1/0:a;d=()=>$(e(),t)}if(super(d),this.cb=r,this.options=i,this.boundCleanup=e=>Pt(e,!1,this),this.forceTrigger=f,this.isMultiSource=p,s&&r){let e=r;r=(...t)=>{let n=e(...t);return this.stop(),n}}this.cb=r,this.oldValue=p?Array(e.length).fill(Mt):Mt}run(e=!1){let t=this.oldValue,n=this.oldValue=super.run();if(!this.cb)return;let{immediate:r,deep:i,call:a}=this.options;if(!(e&&!r)&&(e||i||this.forceTrigger||(this.isMultiSource?n.some((e,n)=>h(e,t[n])):h(n,t)))){X(this);let e=Q;Q=this;try{let e=[n,t===Mt?void 0:this.isMultiSource&&t[0]===Mt?[]:t,this.boundCleanup];a?a(this.cb,3,e):this.cb(...e)}finally{Q=e}}}};function It(e,t){return t?e:U(e)||t===!1||t===0?$(e,1):$(e)}function Lt(e,n,r=t){let i=new Ft(e,n,r);i.run(!0);let a=i.stop.bind(i);return a.pause=i.pause.bind(i),a.resume=i.resume.bind(i),a.stop=a,a}function $(e,t=1/0,n){if(t<=0||!f(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,q(e))$(e.value,t,n);else if(o(e))for(let r=0;r<e.length;r++)$(e[r],t,n);else if(c(e)||s(e))e.forEach(e=>{$(e,t,n)});else if(te(e)){for(let r in e)$(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$(e[r],t,n)}return e}export{O as ARRAY_ITERATE_KEY,pt as EffectFlags,xt as EffectScope,E as ITERATE_KEY,D as MAP_KEY_ITERATE_KEY,J as ReactiveEffect,At as ReactiveFlags,Ot as TrackOpTypes,kt as TriggerOpTypes,jt as WatchErrorCodes,Ft as WatcherEffect,Dt as computed,st as customRef,mt as effect,St as effectScope,_t as enableTracking,Ct as getCurrentScope,Nt as getCurrentWatcher,Je as isProxy,V as isReactive,H as isReadonly,q as isRef,U as isShallow,Ye as markRaw,yt as onEffectCleanup,Tt as onScopeDispose,Pt as onWatcherCleanup,gt as pauseTracking,at as proxyRefs,Ge as reactive,j as reactiveReadArray,z as readonly,Xe as ref,vt as resetTracking,x as setActiveSub,wt as setCurrentScope,Ke as shallowReactive,M as shallowReadArray,qe as shallowReadonly,Ze as shallowRef,ht as stop,W as toRaw,G as toReactive,K as toReadonly,dt as toRef,ct as toRefs,rt as toValue,k as track,$ as traverse,A as trigger,et as triggerRef,nt as unref,Lt as watch};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -48,22 +48,6 @@ function warn(msg, ...args) {
|
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region packages/reactivity/src/system.ts
|
|
51
|
-
const ReactiveFlags$1 = {
|
|
52
|
-
"None": 0,
|
|
53
|
-
"0": "None",
|
|
54
|
-
"Mutable": 1,
|
|
55
|
-
"1": "Mutable",
|
|
56
|
-
"Watching": 2,
|
|
57
|
-
"2": "Watching",
|
|
58
|
-
"RecursedCheck": 4,
|
|
59
|
-
"4": "RecursedCheck",
|
|
60
|
-
"Recursed": 8,
|
|
61
|
-
"8": "Recursed",
|
|
62
|
-
"Dirty": 16,
|
|
63
|
-
"16": "Dirty",
|
|
64
|
-
"Pending": 32,
|
|
65
|
-
"32": "Pending"
|
|
66
|
-
};
|
|
67
51
|
const notifyBuffer = [];
|
|
68
52
|
let batchDepth = 0;
|
|
69
53
|
let activeSub = void 0;
|
|
@@ -1127,7 +1111,7 @@ var RefImpl = class {
|
|
|
1127
1111
|
constructor(value, wrap) {
|
|
1128
1112
|
this.subs = void 0;
|
|
1129
1113
|
this.subsTail = void 0;
|
|
1130
|
-
this.flags =
|
|
1114
|
+
this.flags = 1;
|
|
1131
1115
|
this.__v_isRef = true;
|
|
1132
1116
|
this.__v_isShallow = false;
|
|
1133
1117
|
this._oldValue = this._rawValue = wrap ? /* @__PURE__ */ toRaw(value) : value;
|
|
@@ -1140,7 +1124,7 @@ var RefImpl = class {
|
|
|
1140
1124
|
}
|
|
1141
1125
|
get value() {
|
|
1142
1126
|
trackRef(this);
|
|
1143
|
-
if (this.flags &
|
|
1127
|
+
if (this.flags & 16 && this.update()) {
|
|
1144
1128
|
const subs = this.subs;
|
|
1145
1129
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1146
1130
|
}
|
|
@@ -1151,7 +1135,7 @@ var RefImpl = class {
|
|
|
1151
1135
|
const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
|
|
1152
1136
|
newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
|
|
1153
1137
|
if (hasChanged(newValue, oldValue)) {
|
|
1154
|
-
this.flags |=
|
|
1138
|
+
this.flags |= 16;
|
|
1155
1139
|
this._rawValue = newValue;
|
|
1156
1140
|
this._value = !useDirectValue && this._wrap ? this._wrap(newValue) : newValue;
|
|
1157
1141
|
const subs = this.subs;
|
|
@@ -1170,7 +1154,7 @@ var RefImpl = class {
|
|
|
1170
1154
|
}
|
|
1171
1155
|
}
|
|
1172
1156
|
update() {
|
|
1173
|
-
this.flags &=
|
|
1157
|
+
this.flags &= -17;
|
|
1174
1158
|
return hasChanged(this._oldValue, this._oldValue = this._rawValue);
|
|
1175
1159
|
}
|
|
1176
1160
|
};
|
|
@@ -1280,7 +1264,7 @@ var CustomRefImpl = class {
|
|
|
1280
1264
|
constructor(factory) {
|
|
1281
1265
|
this.subs = void 0;
|
|
1282
1266
|
this.subsTail = void 0;
|
|
1283
|
-
this.flags =
|
|
1267
|
+
this.flags = 0;
|
|
1284
1268
|
this["__v_isRef"] = true;
|
|
1285
1269
|
this._value = void 0;
|
|
1286
1270
|
const { get, set } = factory(() => trackRef(this), () => triggerRef(this));
|
|
@@ -1676,12 +1660,12 @@ var ComputedRefImpl = class {
|
|
|
1676
1660
|
*/
|
|
1677
1661
|
get _dirty() {
|
|
1678
1662
|
const flags = this.flags;
|
|
1679
|
-
if (flags &
|
|
1680
|
-
if (flags &
|
|
1663
|
+
if (flags & 16) return true;
|
|
1664
|
+
if (flags & 32) {
|
|
1681
1665
|
if (checkDirty(this.deps, this)) {
|
|
1682
|
-
this.flags = flags |
|
|
1666
|
+
this.flags = flags | 16;
|
|
1683
1667
|
return true;
|
|
1684
|
-
} else this.flags = flags &
|
|
1668
|
+
} else this.flags = flags & -33;
|
|
1685
1669
|
}
|
|
1686
1670
|
return false;
|
|
1687
1671
|
}
|
|
@@ -1690,8 +1674,8 @@ var ComputedRefImpl = class {
|
|
|
1690
1674
|
* for backwards compat
|
|
1691
1675
|
*/
|
|
1692
1676
|
set _dirty(v) {
|
|
1693
|
-
if (v) this.flags |=
|
|
1694
|
-
else this.flags &=
|
|
1677
|
+
if (v) this.flags |= 16;
|
|
1678
|
+
else this.flags &= -49;
|
|
1695
1679
|
}
|
|
1696
1680
|
constructor(fn, setter) {
|
|
1697
1681
|
this.fn = fn;
|
|
@@ -1701,18 +1685,18 @@ var ComputedRefImpl = class {
|
|
|
1701
1685
|
this.subsTail = void 0;
|
|
1702
1686
|
this.deps = void 0;
|
|
1703
1687
|
this.depsTail = void 0;
|
|
1704
|
-
this.flags =
|
|
1688
|
+
this.flags = 17;
|
|
1705
1689
|
this.__v_isRef = true;
|
|
1706
1690
|
this["__v_isReadonly"] = !setter;
|
|
1707
1691
|
}
|
|
1708
1692
|
get value() {
|
|
1709
1693
|
const flags = this.flags;
|
|
1710
|
-
if (flags &
|
|
1694
|
+
if (flags & 16 || flags & 32 && checkDirty(this.deps, this)) {
|
|
1711
1695
|
if (this.update()) {
|
|
1712
1696
|
const subs = this.subs;
|
|
1713
1697
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1714
1698
|
}
|
|
1715
|
-
} else if (flags &
|
|
1699
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
1716
1700
|
if (activeSub !== void 0) {
|
|
1717
1701
|
if (!!(process.env.NODE_ENV !== "production")) onTrack(activeSub, {
|
|
1718
1702
|
target: this,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -104,22 +104,6 @@ var VueReactivity = (function(exports) {
|
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region packages/reactivity/src/system.ts
|
|
107
|
-
const ReactiveFlags$1 = {
|
|
108
|
-
"None": 0,
|
|
109
|
-
"0": "None",
|
|
110
|
-
"Mutable": 1,
|
|
111
|
-
"1": "Mutable",
|
|
112
|
-
"Watching": 2,
|
|
113
|
-
"2": "Watching",
|
|
114
|
-
"RecursedCheck": 4,
|
|
115
|
-
"4": "RecursedCheck",
|
|
116
|
-
"Recursed": 8,
|
|
117
|
-
"8": "Recursed",
|
|
118
|
-
"Dirty": 16,
|
|
119
|
-
"16": "Dirty",
|
|
120
|
-
"Pending": 32,
|
|
121
|
-
"32": "Pending"
|
|
122
|
-
};
|
|
123
107
|
const notifyBuffer = [];
|
|
124
108
|
let batchDepth = 0;
|
|
125
109
|
let activeSub = void 0;
|
|
@@ -1183,7 +1167,7 @@ var VueReactivity = (function(exports) {
|
|
|
1183
1167
|
constructor(value, wrap) {
|
|
1184
1168
|
this.subs = void 0;
|
|
1185
1169
|
this.subsTail = void 0;
|
|
1186
|
-
this.flags =
|
|
1170
|
+
this.flags = 1;
|
|
1187
1171
|
this.__v_isRef = true;
|
|
1188
1172
|
this.__v_isShallow = false;
|
|
1189
1173
|
this._oldValue = this._rawValue = wrap ? /* @__PURE__ */ toRaw(value) : value;
|
|
@@ -1196,7 +1180,7 @@ var VueReactivity = (function(exports) {
|
|
|
1196
1180
|
}
|
|
1197
1181
|
get value() {
|
|
1198
1182
|
trackRef(this);
|
|
1199
|
-
if (this.flags &
|
|
1183
|
+
if (this.flags & 16 && this.update()) {
|
|
1200
1184
|
const subs = this.subs;
|
|
1201
1185
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1202
1186
|
}
|
|
@@ -1207,7 +1191,7 @@ var VueReactivity = (function(exports) {
|
|
|
1207
1191
|
const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
|
|
1208
1192
|
newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
|
|
1209
1193
|
if (hasChanged(newValue, oldValue)) {
|
|
1210
|
-
this.flags |=
|
|
1194
|
+
this.flags |= 16;
|
|
1211
1195
|
this._rawValue = newValue;
|
|
1212
1196
|
this._value = !useDirectValue && this._wrap ? this._wrap(newValue) : newValue;
|
|
1213
1197
|
const subs = this.subs;
|
|
@@ -1226,7 +1210,7 @@ var VueReactivity = (function(exports) {
|
|
|
1226
1210
|
}
|
|
1227
1211
|
}
|
|
1228
1212
|
update() {
|
|
1229
|
-
this.flags &=
|
|
1213
|
+
this.flags &= -17;
|
|
1230
1214
|
return hasChanged(this._oldValue, this._oldValue = this._rawValue);
|
|
1231
1215
|
}
|
|
1232
1216
|
};
|
|
@@ -1336,7 +1320,7 @@ var VueReactivity = (function(exports) {
|
|
|
1336
1320
|
constructor(factory) {
|
|
1337
1321
|
this.subs = void 0;
|
|
1338
1322
|
this.subsTail = void 0;
|
|
1339
|
-
this.flags =
|
|
1323
|
+
this.flags = 0;
|
|
1340
1324
|
this["__v_isRef"] = true;
|
|
1341
1325
|
this._value = void 0;
|
|
1342
1326
|
const { get, set } = factory(() => trackRef(this), () => triggerRef(this));
|
|
@@ -1732,12 +1716,12 @@ var VueReactivity = (function(exports) {
|
|
|
1732
1716
|
*/
|
|
1733
1717
|
get _dirty() {
|
|
1734
1718
|
const flags = this.flags;
|
|
1735
|
-
if (flags &
|
|
1736
|
-
if (flags &
|
|
1719
|
+
if (flags & 16) return true;
|
|
1720
|
+
if (flags & 32) {
|
|
1737
1721
|
if (checkDirty(this.deps, this)) {
|
|
1738
|
-
this.flags = flags |
|
|
1722
|
+
this.flags = flags | 16;
|
|
1739
1723
|
return true;
|
|
1740
|
-
} else this.flags = flags &
|
|
1724
|
+
} else this.flags = flags & -33;
|
|
1741
1725
|
}
|
|
1742
1726
|
return false;
|
|
1743
1727
|
}
|
|
@@ -1746,8 +1730,8 @@ var VueReactivity = (function(exports) {
|
|
|
1746
1730
|
* for backwards compat
|
|
1747
1731
|
*/
|
|
1748
1732
|
set _dirty(v) {
|
|
1749
|
-
if (v) this.flags |=
|
|
1750
|
-
else this.flags &=
|
|
1733
|
+
if (v) this.flags |= 16;
|
|
1734
|
+
else this.flags &= -49;
|
|
1751
1735
|
}
|
|
1752
1736
|
constructor(fn, setter) {
|
|
1753
1737
|
this.fn = fn;
|
|
@@ -1757,18 +1741,18 @@ var VueReactivity = (function(exports) {
|
|
|
1757
1741
|
this.subsTail = void 0;
|
|
1758
1742
|
this.deps = void 0;
|
|
1759
1743
|
this.depsTail = void 0;
|
|
1760
|
-
this.flags =
|
|
1744
|
+
this.flags = 17;
|
|
1761
1745
|
this.__v_isRef = true;
|
|
1762
1746
|
this["__v_isReadonly"] = !setter;
|
|
1763
1747
|
}
|
|
1764
1748
|
get value() {
|
|
1765
1749
|
const flags = this.flags;
|
|
1766
|
-
if (flags &
|
|
1750
|
+
if (flags & 16 || flags & 32 && checkDirty(this.deps, this)) {
|
|
1767
1751
|
if (this.update()) {
|
|
1768
1752
|
const subs = this.subs;
|
|
1769
1753
|
if (subs !== void 0) shallowPropagate(subs);
|
|
1770
1754
|
}
|
|
1771
|
-
} else if (flags &
|
|
1755
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
1772
1756
|
if (activeSub !== void 0) {
|
|
1773
1757
|
onTrack(activeSub, {
|
|
1774
1758
|
target: this,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-rc.
|
|
2
|
+
* @vue/reactivity v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
var VueReactivity=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}let n={},r=()=>{},i=Object.assign,a=Object.prototype.hasOwnProperty,o=(e,t)=>a.call(e,t),s=Array.isArray,c=e=>m(e)===`[object Map]`,l=e=>m(e)===`[object Set]`,u=e=>typeof e==`function`,d=e=>typeof e==`string`,f=e=>typeof e==`symbol`,p=e=>typeof e==`object`&&!!e,ee=Object.prototype.toString,m=e=>ee.call(e),te=e=>m(e).slice(8,-1),ne=e=>m(e)===`[object Object]`,h=e=>d(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,g=(e,t)=>!Object.is(e,t),re=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},_={None:0,0:`None`,Mutable:1,1:`Mutable`,Watching:2,2:`Watching`,RecursedCheck:4,4:`RecursedCheck`,Recursed:8,8:`Recursed`,Dirty:16,16:`Dirty`,Pending:32,32:`Pending`},ie=[],v=0,y,ae=0;function oe(){++ae}function se(){--ae}let b=0,x=0,ce=0;function S(e){try{return y}finally{y=e}}function le(){++v}function ue(){!--v&&ce&&me()}function C(e,t){let n=t.depsTail;if(n!==void 0&&n.dep===e)return;let r=n===void 0?t.deps:n.nextDep;if(r!==void 0&&r.dep===e){r.version=b,t.depsTail=r;return}let i=e.subsTail;if(i!==void 0&&i.version===b&&i.sub===t)return;let a=t.depsTail=e.subsTail={version:b,dep:e,sub:t,prevDep:n,nextDep:r,prevSub:i,nextSub:void 0};r!==void 0&&(r.prevDep=a),n===void 0?t.deps=a:n.nextDep=a,i===void 0?e.subs=a:i.nextSub=a}function w(e,t=e.sub){let n=e.dep,r=e.prevDep,i=e.nextDep,a=e.nextSub,o=e.prevSub;if(i===void 0?t.depsTail=r:i.prevDep=r,r===void 0?t.deps=i:r.nextDep=i,a===void 0?n.subsTail=o:a.prevSub=o,o!==void 0)o.nextSub=a;else if((n.subs=a)===void 0){let e=n.deps;if(e!==void 0){do e=w(e,n);while(e!==void 0);n.flags|=16}}return i}function de(e){let t=e.nextSub,n;top:do{let r=e.sub,i=r.flags;if(i&3&&(i&60?i&12?i&4?!(i&48)&&ge(e,r)?(r.flags=i|40,i&=1):i=0:r.flags=i&-9|32:i=0:(r.flags=i|32,ae&&(r.flags|=8)),i&2&&(ie[ce++]=r),i&1)){let i=r.subs;if(i!==void 0){e=i,i.nextSub!==void 0&&(n={value:t,prev:n},t=e.nextSub);continue}}if((e=t)!==void 0){t=e.nextSub;continue}for(;n!==void 0;)if(e=n.value,n=n.prev,e!==void 0){t=e.nextSub;continue top}break}while(!0)}function fe(e){return++b,e.depsTail=void 0,e.flags=e.flags&-57|4,S(e)}function pe(e,t){y=t;let n=e.depsTail,r=n===void 0?e.deps:n.nextDep;for(;r!==void 0;)r=w(r,e);e.flags&=-5}function me(){for(;x<ce;){let e=ie[x];ie[x++]=void 0,e.notify()}x=0,ce=0}function he(e,t){let n,r=0;top:do{let i=e.dep,a=i.flags,o=!1;if(t.flags&16)o=!0;else if((a&17)==17){let e=i.subs;i.update()&&(e.nextSub!==void 0&&T(e),o=!0)}else if((a&33)==33){n={value:e,prev:n},e=i.deps,t=i,++r;continue}if(!o&&e.nextDep!==void 0){e=e.nextDep;continue}for(;r;){if(--r,e=n.value,n=n.prev,o){let n=t.subs;if(t.update()){n.nextSub!==void 0&&T(n),t=e.sub;continue}}else t.flags&=-33;if(t=e.sub,e.nextDep!==void 0){e=e.nextDep;continue top}o=!1}return o&&!!t.flags}while(!0)}function T(e){do{let t=e.sub,n=e.nextSub,r=t.flags;(r&48)==32&&(t.flags=r|16),e=n}while(e!==void 0)}function ge(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}var _e=class{constructor(e,t){this.map=e,this.key=t,this._subs=void 0,this.subsTail=void 0,this.flags=0}get subs(){return this._subs}set subs(e){this._subs=e,e===void 0&&this.map.delete(this.key)}};let E=new WeakMap,D=Symbol(``),O=Symbol(``),k=Symbol(``);function A(e,t,n){if(y!==void 0){let t=E.get(e);t||E.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=new _e(t,n)),C(r,y)}}function j(e,t,n,r,i,a){let o=E.get(e);if(!o)return;let l=e=>{e!==void 0&&e.subs!==void 0&&(de(e.subs),T(e.subs))};if(le(),t===`clear`)o.forEach(l);else{let i=s(e),a=i&&h(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===k||!f(n)&&n>=e)&&l(t)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),a&&l(o.get(k)),t){case`add`:i?a&&l(o.get(`length`)):(l(o.get(D)),c(e)&&l(o.get(O)));break;case`delete`:i||(l(o.get(D)),c(e)&&l(o.get(O)));break;case`set`:c(e)&&l(o.get(D))}}ue()}function ve(e,t){let n=E.get(e);return n&&n.get(t)}function M(e){let t=U(e);return t===e?t:(A(t,`iterate`,k),H(e)?t:t.map(W))}function N(e){return A(e=U(e),`iterate`,k),e}function P(e,t){return V(e)?G(B(e)?W(t):t):W(t)}let ye={__proto__:null,[Symbol.iterator](){return be(this,Symbol.iterator,e=>P(this,e))},concat(...e){return M(this).concat(...e.map(e=>s(e)?M(e):e))},entries(){return be(this,`entries`,e=>(e[1]=P(this,e[1]),e))},every(e,t){return F(this,`every`,e,t,void 0,arguments)},filter(e,t){return F(this,`filter`,e,t,e=>e.map(e=>P(this,e)),arguments)},find(e,t){return F(this,`find`,e,t,e=>P(this,e),arguments)},findIndex(e,t){return F(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return F(this,`findLast`,e,t,e=>P(this,e),arguments)},findLastIndex(e,t){return F(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return F(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ce(this,`includes`,e)},indexOf(...e){return Ce(this,`indexOf`,e)},join(e){return M(this).join(e)},lastIndexOf(...e){return Ce(this,`lastIndexOf`,e)},map(e,t){return F(this,`map`,e,t,void 0,arguments)},pop(){return I(this,`pop`)},push(...e){return I(this,`push`,e)},reduce(e,...t){return Se(this,`reduce`,e,t)},reduceRight(e,...t){return Se(this,`reduceRight`,e,t)},shift(){return I(this,`shift`)},some(e,t){return F(this,`some`,e,t,void 0,arguments)},splice(...e){return I(this,`splice`,e)},toReversed(){return M(this).toReversed()},toSorted(e){return M(this).toSorted(e)},toSpliced(...e){return M(this).toSpliced(...e)},unshift(...e){return I(this,`unshift`,e)},values(){return be(this,`values`,e=>P(this,e))}};function be(e,t,n){let r=N(e),i=r[t]();return r!==e&&!H(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}let xe=Array.prototype;function F(e,t,n,r,i,a){let o=N(e),s=o!==e&&!H(e),c=o[t];if(c!==xe[t]){let t=c.apply(e,a);return s?W(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,P(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Se(e,t,n,r){let i=N(e),a=i!==e&&!H(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=P(e,t)),n.call(this,t,P(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?P(e,c):c}function Ce(e,t,n){let r=U(e);A(r,`iterate`,k);let i=r[t](...n);return(i===-1||i===!1)&&Ze(n[0])?(n[0]=U(n[0]),r[t](...n)):i}function I(e,t,n=[]){le();let r=S(),i=U(e)[t].apply(e,n);return S(r),ue(),i}let we=t(`__proto__,__v_isRef,__isVue`),Te=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(f));function Ee(e){f(e)||(e=String(e));let t=U(this);return A(t,`has`,e),t.hasOwnProperty(e)}var De=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?We:Ue:i?He:Ve).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=s(e);if(!r){let e;if(a&&(e=ye[t]))return e;if(t===`hasOwnProperty`)return Ee}let o=K(e),c=Reflect.get(e,t,o?e:n);if(o&&t!==`value`||(f(t)?Te.has(t):we(t))||(r||A(e,`get`,t),i))return c;if(K(c)){let e=a&&h(t)?c:c.value;return r&&p(e)?Je(e):e}return p(c)?r?Je(c):Ke(c):c}},Oe=class extends De{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=s(e)&&h(t);if(!this._isShallow){let e=V(i);if(!H(n)&&!V(n)&&(i=U(i),n=U(n)),!a&&K(i)&&!K(n))return e||(i.value=n),!0}let c=a?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,K(e)?e:r);return e===U(r)&&l&&(c?g(n,i)&&j(e,`set`,t,n,i):j(e,`add`,t,n)),l}deleteProperty(e,t){let n=o(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&j(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!f(t)||!Te.has(t))&&A(e,`has`,t),n}ownKeys(e){return A(e,`iterate`,s(e)?`length`:D),Reflect.ownKeys(e)}},ke=class extends De{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};let Ae=new Oe,je=new ke,Me=new Oe(!0),Ne=new ke(!0),Pe=e=>e,L=e=>Reflect.getPrototypeOf(e);function Fe(e,t,n){return function(...r){let a=this.__v_raw,o=U(a),s=c(o),l=e===`entries`||e===Symbol.iterator&&s,u=e===`keys`&&s,d=a[e](...r),f=n?Pe:t?G:W;return!t&&A(o,`iterate`,u?O:D),i(Object.create(d),{next(){let{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:l?[f(e[0]),f(e[1])]:f(e),done:t}}})}}function R(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ie(e,t){let n={get(n){let r=this.__v_raw,i=U(r),a=U(n);e||(g(n,a)&&A(i,`get`,n),A(i,`get`,a));let{has:o}=L(i),s=t?Pe:e?G:W;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&A(U(t),`iterate`,D),t.size},has(t){let n=this.__v_raw,r=U(n),i=U(t);return e||(g(t,i)&&A(r,`has`,t),A(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=U(a),s=t?Pe:e?G:W;return!e&&A(o,`iterate`,D),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return i(n,e?{add:R(`add`),set:R(`set`),delete:R(`delete`),clear:R(`clear`)}:{add(e){let n=U(this),r=L(n),i=U(e),a=!t&&!H(e)&&!V(e)?i:e;return r.has.call(n,a)||g(e,a)&&r.has.call(n,e)||g(i,a)&&r.has.call(n,i)||(n.add(a),j(n,`add`,a,a)),this},set(e,n){!t&&!H(n)&&!V(n)&&(n=U(n));let r=U(this),{has:i,get:a}=L(r),o=i.call(r,e);o||(e=U(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?g(n,s)&&j(r,`set`,e,n,s):j(r,`add`,e,n),this},delete(e){let t=U(this),{has:n,get:r}=L(t),i=n.call(t,e);i||(e=U(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&j(t,`delete`,e,void 0,a),o},clear(){let e=U(this),t=e.size!==0,n=e.clear();return t&&j(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Fe(r,e,t)}),n}function z(e,t){let n=Ie(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(o(n,r)&&r in t?n:t,r,i)}let Le={get:z(!1,!1)},Re={get:z(!1,!0)},ze={get:z(!0,!1)},Be={get:z(!0,!0)},Ve=new WeakMap,He=new WeakMap,Ue=new WeakMap,We=new WeakMap;function Ge(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ke(e){return V(e)?e:Xe(e,!1,Ae,Le,Ve)}function qe(e){return Xe(e,!1,Me,Re,He)}function Je(e){return Xe(e,!0,je,ze,Ue)}function Ye(e){return Xe(e,!0,Ne,Be,We)}function Xe(e,t,n,r,i){if(!p(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Ge(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function B(e){return V(e)?B(e.__v_raw):!!(e&&e.__v_isReactive)}function V(e){return!!(e&&e.__v_isReadonly)}function H(e){return!!(e&&e.__v_isShallow)}function Ze(e){return e?!!e.__v_raw:!1}function U(e){let t=e&&e.__v_raw;return t?U(t):e}function Qe(e){return!o(e,`__v_skip`)&&Object.isExtensible(e)&&re(e,`__v_skip`,!0),e}let W=e=>p(e)?Ke(e):e,G=e=>p(e)?Je(e):e;function K(e){return e?e.__v_isRef===!0:!1}function $e(e){return tt(e,W)}function et(e){return tt(e)}function tt(e,t){return K(e)?e:new nt(e,t)}var nt=class{constructor(e,t){this.subs=void 0,this.subsTail=void 0,this.flags=_.Mutable,this.__v_isRef=!0,this.__v_isShallow=!1,this._oldValue=this._rawValue=t?U(e):e,this._value=t?t(e):e,this._wrap=t,this.__v_isShallow=!t}get dep(){return this}get value(){if(it(this),this.flags&_.Dirty&&this.update()){let e=this.subs;e!==void 0&&T(e)}return this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||H(e)||V(e);if(e=n?e:U(e),g(e,t)){this.flags|=_.Dirty,this._rawValue=e,this._value=!n&&this._wrap?this._wrap(e):e;let t=this.subs;t!==void 0&&(de(t),v||me())}}update(){return this.flags&=~_.Dirty,g(this._oldValue,this._oldValue=this._rawValue)}};function rt(e){let t=e.dep;t!==void 0&&t.subs!==void 0&&(de(t.subs),T(t.subs),v||me())}function it(e){y!==void 0&&C(e,y)}function q(e){return K(e)?e.value:e}function at(e){return u(e)?e():q(e)}let ot={get:(e,t,n)=>t===`__v_raw`?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return K(i)&&!K(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function st(e){return B(e)?e:new Proxy(e,ot)}var ct=class{constructor(e){this.subs=void 0,this.subsTail=void 0,this.flags=_.None,this.__v_isRef=!0,this._value=void 0;let{get:t,set:n}=e(()=>it(this),()=>rt(this));this._get=t,this._set=n}get dep(){return this}get value(){return this._value=this._get()}set value(e){this._set(e)}};function lt(e){return new ct(e)}function ut(e){let t=s(e)?Array(e.length):{};for(let n in e)t[n]=mt(e,n);return t}var dt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=f(t)?t:String(t),this._raw=U(e);let r=!0,i=e;if(!s(e)||f(this._key)||!h(this._key))do r=!Ze(i)||H(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=q(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&K(this._raw[this._key])){let t=this._object[this._key];if(K(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ve(this._raw,this._key)}},ft=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function pt(e,t,n){return K(e)?e:u(e)?new ft(e):p(e)&&arguments.length>1?mt(e,t,n):$e(e)}function mt(e,t,n){return new dt(e,t,n)}let ht={ALLOW_RECURSE:128,128:`ALLOW_RECURSE`,PAUSED:256,256:`PAUSED`,STOP:1024,1024:`STOP`};var J=class{fn(){}constructor(e){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=18,this.cleanups=[],this.cleanupsLength=0,e!==void 0&&(this.fn=e),Z&&C(this,Z)}get active(){return!(this.flags&1024)}pause(){this.flags|=256}resume(){(this.flags&=-257)&48&&this.notify()}notify(){!(this.flags&256)&&this.dirty&&this.run()}run(){if(!this.active)return this.fn();X(this);let e=fe(this);oe();try{return this.fn()}finally{se(),pe(this,e);let t=this.flags;(t&136)==136&&(this.flags=t&-9,this.notify())}}stop(){if(!this.active)return;this.flags=1024;let e=this.deps;for(;e!==void 0;)e=w(e,this);let t=this.subs;t!==void 0&&w(t),X(this)}get dirty(){let e=this.flags;if(e&16)return!0;if(e&32){if(he(this.deps,this))return this.flags=e|16,!0;this.flags=e&-33}return!1}};function gt(e,t){e.effect instanceof J&&(e=e.effect.fn);let n=new J(e);if(t){let{onStop:e,scheduler:r}=t;if(e){t.onStop=void 0;let r=n.stop.bind(n);n.stop=()=>{r(),e()}}r&&(t.scheduler=void 0,n.notify=()=>{n.flags&256||r()}),i(n,t)}try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function _t(e){e.effect.stop()}let Y=[];function vt(){Y.push(y),S()}function yt(){if(y!==void 0)Y.push(y);else{Y.push(void 0);for(let e=Y.length-1;e>=0;e--)if(Y[e]!==void 0){S(Y[e]);break}}}function bt(){Y.length?S(Y.pop()):S()}function X(e){let t=e.cleanupsLength;if(t){for(let n=0;n<t;n++)e.cleanups[n]();e.cleanupsLength=0}}function xt(e,t=!1){y instanceof J&&(y.cleanups[y.cleanupsLength++]=()=>St(e))}function St(e){let t=S();try{e()}finally{S(t)}}let Z;var Ct=class{constructor(e=!1){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=0,this.cleanups=[],this.cleanupsLength=0,!e&&Z&&C(this,Z)}get active(){return!(this.flags&1024)}pause(){if(!(this.flags&256)){this.flags|=256;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`pause`in t&&t.pause()}}}resume(){let e=this.flags;if(e&256){this.flags=e&-257;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`resume`in t&&t.resume()}}}run(e){let t=Z;try{return Z=this,e()}finally{Z=t}}stop(){if(!this.active)return;this.flags=1024,this.reset();let e=this.subs;e!==void 0&&w(e)}reset(){let e=this.deps;for(;e!==void 0;){let t=e.dep;`stop`in t?(e=e.nextDep,t.stop()):e=w(e,this)}X(this)}};function wt(e){return new Ct(e)}function Tt(){return Z}function Et(e){try{return Z}finally{Z=e}}function Dt(e,t=!1){Z!==void 0&&(Z.cleanups[Z.cleanupsLength++]=e)}var Ot=class{get effect(){return this}get dep(){return this}get _dirty(){let e=this.flags;if(e&_.Dirty)return!0;if(e&_.Pending){if(he(this.deps,this))return this.flags=e|_.Dirty,!0;this.flags=e&~_.Pending}return!1}set _dirty(e){e?this.flags|=_.Dirty:this.flags&=~(_.Dirty|_.Pending)}constructor(e,t){this.fn=e,this.setter=t,this._value=void 0,this.subs=void 0,this.subsTail=void 0,this.deps=void 0,this.depsTail=void 0,this.flags=_.Mutable|_.Dirty,this.__v_isRef=!0,this.__v_isReadonly=!t}get value(){let e=this.flags;if(e&_.Dirty||e&_.Pending&&he(this.deps,this)){if(this.update()){let e=this.subs;e!==void 0&&T(e)}}else e&_.Pending&&(this.flags=e&~_.Pending);return y===void 0?Z!==void 0&&C(this,Z):C(this,y),this._value}set value(e){this.setter&&this.setter(e)}update(){let e=fe(this);try{let e=this._value,t=this.fn(e);return g(e,t)?(this._value=t,!0):!1}finally{pe(this,e)}}};function kt(e,t,n=!1){let r,i;return u(e)?r=e:(r=e.get,i=e.set),new Ot(r,i)}let At={GET:`get`,HAS:`has`,ITERATE:`iterate`},jt={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Mt={SKIP:`__v_skip`,IS_REACTIVE:`__v_isReactive`,IS_READONLY:`__v_isReadonly`,IS_SHALLOW:`__v_isShallow`,RAW:`__v_raw`,IS_REF:`__v_isRef`},Nt={WATCH_GETTER:2,2:`WATCH_GETTER`,WATCH_CALLBACK:3,3:`WATCH_CALLBACK`,WATCH_CLEANUP:4,4:`WATCH_CLEANUP`},Pt={},Q;function Ft(){return Q}function It(e,t=!1,n=Q){if(n){let{call:t}=n.options;t?n.cleanups[n.cleanupsLength++]=()=>t(e,4):n.cleanups[n.cleanupsLength++]=e}}var Lt=class extends J{constructor(e,t,i=n){let{deep:a,once:o,call:c,onWarn:l}=i,d,f=!1,p=!1;if(K(e)?(d=()=>e.value,f=H(e)):B(e)?(d=()=>Rt(e,a),f=!0):s(e)?(p=!0,f=e.some(e=>B(e)||H(e)),d=()=>e.map(e=>{if(K(e))return e.value;if(B(e))return Rt(e,a);if(u(e))return c?c(e,2):e()})):d=u(e)?t?c?()=>c(e,2):e:()=>{if(this.cleanupsLength){let e=S();try{X(this)}finally{S(e)}}let t=Q;Q=this;try{return c?c(e,3,[this.boundCleanup]):e(this.boundCleanup)}finally{Q=t}}:r,t&&a){let e=d,t=a===!0?1/0:a;d=()=>$(e(),t)}if(super(d),this.cb=t,this.options=i,this.boundCleanup=e=>It(e,!1,this),this.forceTrigger=f,this.isMultiSource=p,o&&t){let e=t;t=(...t)=>{let n=e(...t);return this.stop(),n}}this.cb=t,this.oldValue=p?Array(e.length).fill(Pt):Pt}run(e=!1){let t=this.oldValue,n=this.oldValue=super.run();if(!this.cb)return;let{immediate:r,deep:i,call:a}=this.options;if(!(e&&!r)&&(e||i||this.forceTrigger||(this.isMultiSource?n.some((e,n)=>g(e,t[n])):g(n,t)))){X(this);let e=Q;Q=this;try{let e=[n,t===Pt?void 0:this.isMultiSource&&t[0]===Pt?[]:t,this.boundCleanup];a?a(this.cb,3,e):this.cb(...e)}finally{Q=e}}}};function Rt(e,t){return t?e:H(e)||t===!1||t===0?$(e,1):$(e)}function zt(e,t,r=n){let i=new Lt(e,t,r);i.run(!0);let a=i.stop.bind(i);return a.pause=i.pause.bind(i),a.resume=i.resume.bind(i),a.stop=a,a}function $(e,t=1/0,n){if(t<=0||!p(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,K(e))$(e.value,t,n);else if(s(e))for(let r=0;r<e.length;r++)$(e[r],t,n);else if(l(e)||c(e))e.forEach(e=>{$(e,t,n)});else if(ne(e)){for(let r in e)$(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$(e[r],t,n)}return e}return e.ARRAY_ITERATE_KEY=k,e.EffectFlags=ht,e.EffectScope=Ct,e.ITERATE_KEY=D,e.MAP_KEY_ITERATE_KEY=O,e.ReactiveEffect=J,e.ReactiveFlags=Mt,e.TrackOpTypes=At,e.TriggerOpTypes=jt,e.WatchErrorCodes=Nt,e.WatcherEffect=Lt,e.computed=kt,e.customRef=lt,e.effect=gt,e.effectScope=wt,e.enableTracking=yt,e.getCurrentScope=Tt,e.getCurrentWatcher=Ft,e.isProxy=Ze,e.isReactive=B,e.isReadonly=V,e.isRef=K,e.isShallow=H,e.markRaw=Qe,e.onEffectCleanup=xt,e.onScopeDispose=Dt,e.onWatcherCleanup=It,e.pauseTracking=vt,e.proxyRefs=st,e.reactive=Ke,e.reactiveReadArray=M,e.readonly=Je,e.ref=$e,e.resetTracking=bt,e.setActiveSub=S,e.setCurrentScope=Et,e.shallowReactive=qe,e.shallowReadArray=N,e.shallowReadonly=Ye,e.shallowRef=et,e.stop=_t,e.toRaw=U,e.toReactive=W,e.toReadonly=G,e.toRef=pt,e.toRefs=ut,e.toValue=at,e.track=A,e.traverse=$,e.trigger=j,e.triggerRef=rt,e.unref=q,e.watch=zt,e})({});
|
|
6
|
+
var VueReactivity=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}let n={},r=()=>{},i=Object.assign,a=Object.prototype.hasOwnProperty,o=(e,t)=>a.call(e,t),s=Array.isArray,c=e=>m(e)===`[object Map]`,l=e=>m(e)===`[object Set]`,u=e=>typeof e==`function`,d=e=>typeof e==`string`,f=e=>typeof e==`symbol`,p=e=>typeof e==`object`&&!!e,ee=Object.prototype.toString,m=e=>ee.call(e),te=e=>m(e).slice(8,-1),ne=e=>m(e)===`[object Object]`,h=e=>d(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,g=(e,t)=>!Object.is(e,t),re=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ie=[],_=0,v,ae=0;function oe(){++ae}function se(){--ae}let y=0,b=0,ce=0;function x(e){try{return v}finally{v=e}}function le(){++_}function ue(){!--_&&ce&&me()}function S(e,t){let n=t.depsTail;if(n!==void 0&&n.dep===e)return;let r=n===void 0?t.deps:n.nextDep;if(r!==void 0&&r.dep===e){r.version=y,t.depsTail=r;return}let i=e.subsTail;if(i!==void 0&&i.version===y&&i.sub===t)return;let a=t.depsTail=e.subsTail={version:y,dep:e,sub:t,prevDep:n,nextDep:r,prevSub:i,nextSub:void 0};r!==void 0&&(r.prevDep=a),n===void 0?t.deps=a:n.nextDep=a,i===void 0?e.subs=a:i.nextSub=a}function C(e,t=e.sub){let n=e.dep,r=e.prevDep,i=e.nextDep,a=e.nextSub,o=e.prevSub;if(i===void 0?t.depsTail=r:i.prevDep=r,r===void 0?t.deps=i:r.nextDep=i,a===void 0?n.subsTail=o:a.prevSub=o,o!==void 0)o.nextSub=a;else if((n.subs=a)===void 0){let e=n.deps;if(e!==void 0){do e=C(e,n);while(e!==void 0);n.flags|=16}}return i}function de(e){let t=e.nextSub,n;top:do{let r=e.sub,i=r.flags;if(i&3&&(i&60?i&12?i&4?!(i&48)&&ge(e,r)?(r.flags=i|40,i&=1):i=0:r.flags=i&-9|32:i=0:(r.flags=i|32,ae&&(r.flags|=8)),i&2&&(ie[ce++]=r),i&1)){let i=r.subs;if(i!==void 0){e=i,i.nextSub!==void 0&&(n={value:t,prev:n},t=e.nextSub);continue}}if((e=t)!==void 0){t=e.nextSub;continue}for(;n!==void 0;)if(e=n.value,n=n.prev,e!==void 0){t=e.nextSub;continue top}break}while(!0)}function fe(e){return++y,e.depsTail=void 0,e.flags=e.flags&-57|4,x(e)}function pe(e,t){v=t;let n=e.depsTail,r=n===void 0?e.deps:n.nextDep;for(;r!==void 0;)r=C(r,e);e.flags&=-5}function me(){for(;b<ce;){let e=ie[b];ie[b++]=void 0,e.notify()}b=0,ce=0}function he(e,t){let n,r=0;top:do{let i=e.dep,a=i.flags,o=!1;if(t.flags&16)o=!0;else if((a&17)==17){let e=i.subs;i.update()&&(e.nextSub!==void 0&&w(e),o=!0)}else if((a&33)==33){n={value:e,prev:n},e=i.deps,t=i,++r;continue}if(!o&&e.nextDep!==void 0){e=e.nextDep;continue}for(;r;){if(--r,e=n.value,n=n.prev,o){let n=t.subs;if(t.update()){n.nextSub!==void 0&&w(n),t=e.sub;continue}}else t.flags&=-33;if(t=e.sub,e.nextDep!==void 0){e=e.nextDep;continue top}o=!1}return o&&!!t.flags}while(!0)}function w(e){do{let t=e.sub,n=e.nextSub,r=t.flags;(r&48)==32&&(t.flags=r|16),e=n}while(e!==void 0)}function ge(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}var _e=class{constructor(e,t){this.map=e,this.key=t,this._subs=void 0,this.subsTail=void 0,this.flags=0}get subs(){return this._subs}set subs(e){this._subs=e,e===void 0&&this.map.delete(this.key)}};let T=new WeakMap,E=Symbol(``),ve=Symbol(``),D=Symbol(``);function O(e,t,n){if(v!==void 0){let t=T.get(e);t||T.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=new _e(t,n)),S(r,v)}}function k(e,t,n,r,i,a){let o=T.get(e);if(!o)return;let l=e=>{e!==void 0&&e.subs!==void 0&&(de(e.subs),w(e.subs))};if(le(),t===`clear`)o.forEach(l);else{let i=s(e),a=i&&h(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===D||!f(n)&&n>=e)&&l(t)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),a&&l(o.get(D)),t){case`add`:i?a&&l(o.get(`length`)):(l(o.get(E)),c(e)&&l(o.get(ve)));break;case`delete`:i||(l(o.get(E)),c(e)&&l(o.get(ve)));break;case`set`:c(e)&&l(o.get(E))}}ue()}function ye(e,t){let n=T.get(e);return n&&n.get(t)}function A(e){let t=U(e);return t===e?t:(O(t,`iterate`,D),H(e)?t:t.map(W))}function j(e){return O(e=U(e),`iterate`,D),e}function M(e,t){return V(e)?G(B(e)?W(t):t):W(t)}let be={__proto__:null,[Symbol.iterator](){return xe(this,Symbol.iterator,e=>M(this,e))},concat(...e){return A(this).concat(...e.map(e=>s(e)?A(e):e))},entries(){return xe(this,`entries`,e=>(e[1]=M(this,e[1]),e))},every(e,t){return N(this,`every`,e,t,void 0,arguments)},filter(e,t){return N(this,`filter`,e,t,e=>e.map(e=>M(this,e)),arguments)},find(e,t){return N(this,`find`,e,t,e=>M(this,e),arguments)},findIndex(e,t){return N(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return N(this,`findLast`,e,t,e=>M(this,e),arguments)},findLastIndex(e,t){return N(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return N(this,`forEach`,e,t,void 0,arguments)},includes(...e){return we(this,`includes`,e)},indexOf(...e){return we(this,`indexOf`,e)},join(e){return A(this).join(e)},lastIndexOf(...e){return we(this,`lastIndexOf`,e)},map(e,t){return N(this,`map`,e,t,void 0,arguments)},pop(){return P(this,`pop`)},push(...e){return P(this,`push`,e)},reduce(e,...t){return Ce(this,`reduce`,e,t)},reduceRight(e,...t){return Ce(this,`reduceRight`,e,t)},shift(){return P(this,`shift`)},some(e,t){return N(this,`some`,e,t,void 0,arguments)},splice(...e){return P(this,`splice`,e)},toReversed(){return A(this).toReversed()},toSorted(e){return A(this).toSorted(e)},toSpliced(...e){return A(this).toSpliced(...e)},unshift(...e){return P(this,`unshift`,e)},values(){return xe(this,`values`,e=>M(this,e))}};function xe(e,t,n){let r=j(e),i=r[t]();return r!==e&&!H(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}let Se=Array.prototype;function N(e,t,n,r,i,a){let o=j(e),s=o!==e&&!H(e),c=o[t];if(c!==Se[t]){let t=c.apply(e,a);return s?W(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,M(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Ce(e,t,n,r){let i=j(e),a=i!==e&&!H(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=M(e,t)),n.call(this,t,M(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?M(e,c):c}function we(e,t,n){let r=U(e);O(r,`iterate`,D);let i=r[t](...n);return(i===-1||i===!1)&&Xe(n[0])?(n[0]=U(n[0]),r[t](...n)):i}function P(e,t,n=[]){le();let r=x(),i=U(e)[t].apply(e,n);return x(r),ue(),i}let Te=t(`__proto__,__v_isRef,__isVue`),Ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(f));function De(e){f(e)||(e=String(e));let t=U(this);return O(t,`has`,e),t.hasOwnProperty(e)}var Oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ge:We:i?Ue:He).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=s(e);if(!r){let e;if(a&&(e=be[t]))return e;if(t===`hasOwnProperty`)return De}let o=K(e),c=Reflect.get(e,t,o?e:n);if(o&&t!==`value`||(f(t)?Ee.has(t):Te(t))||(r||O(e,`get`,t),i))return c;if(K(c)){let e=a&&h(t)?c:c.value;return r&&p(e)?R(e):e}return p(c)?r?R(c):qe(c):c}},ke=class extends Oe{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=s(e)&&h(t);if(!this._isShallow){let e=V(i);if(!H(n)&&!V(n)&&(i=U(i),n=U(n)),!a&&K(i)&&!K(n))return e||(i.value=n),!0}let c=a?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,K(e)?e:r);return e===U(r)&&l&&(c?g(n,i)&&k(e,`set`,t,n,i):k(e,`add`,t,n)),l}deleteProperty(e,t){let n=o(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&k(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!f(t)||!Ee.has(t))&&O(e,`has`,t),n}ownKeys(e){return O(e,`iterate`,s(e)?`length`:E),Reflect.ownKeys(e)}},Ae=class extends Oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};let je=new ke,Me=new Ae,Ne=new ke(!0),Pe=new Ae(!0),Fe=e=>e,F=e=>Reflect.getPrototypeOf(e);function Ie(e,t,n){return function(...r){let a=this.__v_raw,o=U(a),s=c(o),l=e===`entries`||e===Symbol.iterator&&s,u=e===`keys`&&s,d=a[e](...r),f=n?Fe:t?G:W;return!t&&O(o,`iterate`,u?ve:E),i(Object.create(d),{next(){let{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:l?[f(e[0]),f(e[1])]:f(e),done:t}}})}}function I(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Le(e,t){let n={get(n){let r=this.__v_raw,i=U(r),a=U(n);e||(g(n,a)&&O(i,`get`,n),O(i,`get`,a));let{has:o}=F(i),s=t?Fe:e?G:W;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&O(U(t),`iterate`,E),t.size},has(t){let n=this.__v_raw,r=U(n),i=U(t);return e||(g(t,i)&&O(r,`has`,t),O(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=U(a),s=t?Fe:e?G:W;return!e&&O(o,`iterate`,E),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return i(n,e?{add:I(`add`),set:I(`set`),delete:I(`delete`),clear:I(`clear`)}:{add(e){let n=U(this),r=F(n),i=U(e),a=!t&&!H(e)&&!V(e)?i:e;return r.has.call(n,a)||g(e,a)&&r.has.call(n,e)||g(i,a)&&r.has.call(n,i)||(n.add(a),k(n,`add`,a,a)),this},set(e,n){!t&&!H(n)&&!V(n)&&(n=U(n));let r=U(this),{has:i,get:a}=F(r),o=i.call(r,e);o||(e=U(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?g(n,s)&&k(r,`set`,e,n,s):k(r,`add`,e,n),this},delete(e){let t=U(this),{has:n,get:r}=F(t),i=n.call(t,e);i||(e=U(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&k(t,`delete`,e,void 0,a),o},clear(){let e=U(this),t=e.size!==0,n=e.clear();return t&&k(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ie(r,e,t)}),n}function L(e,t){let n=Le(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(o(n,r)&&r in t?n:t,r,i)}let Re={get:L(!1,!1)},ze={get:L(!1,!0)},Be={get:L(!0,!1)},Ve={get:L(!0,!0)},He=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ge=new WeakMap;function Ke(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function qe(e){return V(e)?e:z(e,!1,je,Re,He)}function Je(e){return z(e,!1,Ne,ze,Ue)}function R(e){return z(e,!0,Me,Be,We)}function Ye(e){return z(e,!0,Pe,Ve,Ge)}function z(e,t,n,r,i){if(!p(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Ke(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function B(e){return V(e)?B(e.__v_raw):!!(e&&e.__v_isReactive)}function V(e){return!!(e&&e.__v_isReadonly)}function H(e){return!!(e&&e.__v_isShallow)}function Xe(e){return e?!!e.__v_raw:!1}function U(e){let t=e&&e.__v_raw;return t?U(t):e}function Ze(e){return!o(e,`__v_skip`)&&Object.isExtensible(e)&&re(e,`__v_skip`,!0),e}let W=e=>p(e)?qe(e):e,G=e=>p(e)?R(e):e;function K(e){return e?e.__v_isRef===!0:!1}function Qe(e){return et(e,W)}function $e(e){return et(e)}function et(e,t){return K(e)?e:new tt(e,t)}var tt=class{constructor(e,t){this.subs=void 0,this.subsTail=void 0,this.flags=1,this.__v_isRef=!0,this.__v_isShallow=!1,this._oldValue=this._rawValue=t?U(e):e,this._value=t?t(e):e,this._wrap=t,this.__v_isShallow=!t}get dep(){return this}get value(){if(rt(this),this.flags&16&&this.update()){let e=this.subs;e!==void 0&&w(e)}return this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||H(e)||V(e);if(e=n?e:U(e),g(e,t)){this.flags|=16,this._rawValue=e,this._value=!n&&this._wrap?this._wrap(e):e;let t=this.subs;t!==void 0&&(de(t),_||me())}}update(){return this.flags&=-17,g(this._oldValue,this._oldValue=this._rawValue)}};function nt(e){let t=e.dep;t!==void 0&&t.subs!==void 0&&(de(t.subs),w(t.subs),_||me())}function rt(e){v!==void 0&&S(e,v)}function q(e){return K(e)?e.value:e}function it(e){return u(e)?e():q(e)}let at={get:(e,t,n)=>t===`__v_raw`?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return K(i)&&!K(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ot(e){return B(e)?e:new Proxy(e,at)}var st=class{constructor(e){this.subs=void 0,this.subsTail=void 0,this.flags=0,this.__v_isRef=!0,this._value=void 0;let{get:t,set:n}=e(()=>rt(this),()=>nt(this));this._get=t,this._set=n}get dep(){return this}get value(){return this._value=this._get()}set value(e){this._set(e)}};function ct(e){return new st(e)}function lt(e){let t=s(e)?Array(e.length):{};for(let n in e)t[n]=pt(e,n);return t}var ut=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=f(t)?t:String(t),this._raw=U(e);let r=!0,i=e;if(!s(e)||f(this._key)||!h(this._key))do r=!Xe(i)||H(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=q(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&K(this._raw[this._key])){let t=this._object[this._key];if(K(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ye(this._raw,this._key)}},dt=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function ft(e,t,n){return K(e)?e:u(e)?new dt(e):p(e)&&arguments.length>1?pt(e,t,n):Qe(e)}function pt(e,t,n){return new ut(e,t,n)}let mt={ALLOW_RECURSE:128,128:`ALLOW_RECURSE`,PAUSED:256,256:`PAUSED`,STOP:1024,1024:`STOP`};var J=class{fn(){}constructor(e){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=18,this.cleanups=[],this.cleanupsLength=0,e!==void 0&&(this.fn=e),Z&&S(this,Z)}get active(){return!(this.flags&1024)}pause(){this.flags|=256}resume(){(this.flags&=-257)&48&&this.notify()}notify(){!(this.flags&256)&&this.dirty&&this.run()}run(){if(!this.active)return this.fn();X(this);let e=fe(this);oe();try{return this.fn()}finally{se(),pe(this,e);let t=this.flags;(t&136)==136&&(this.flags=t&-9,this.notify())}}stop(){if(!this.active)return;this.flags=1024;let e=this.deps;for(;e!==void 0;)e=C(e,this);let t=this.subs;t!==void 0&&C(t),X(this)}get dirty(){let e=this.flags;if(e&16)return!0;if(e&32){if(he(this.deps,this))return this.flags=e|16,!0;this.flags=e&-33}return!1}};function ht(e,t){e.effect instanceof J&&(e=e.effect.fn);let n=new J(e);if(t){let{onStop:e,scheduler:r}=t;if(e){t.onStop=void 0;let r=n.stop.bind(n);n.stop=()=>{r(),e()}}r&&(t.scheduler=void 0,n.notify=()=>{n.flags&256||r()}),i(n,t)}try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function gt(e){e.effect.stop()}let Y=[];function _t(){Y.push(v),x()}function vt(){if(v!==void 0)Y.push(v);else{Y.push(void 0);for(let e=Y.length-1;e>=0;e--)if(Y[e]!==void 0){x(Y[e]);break}}}function yt(){Y.length?x(Y.pop()):x()}function X(e){let t=e.cleanupsLength;if(t){for(let n=0;n<t;n++)e.cleanups[n]();e.cleanupsLength=0}}function bt(e,t=!1){v instanceof J&&(v.cleanups[v.cleanupsLength++]=()=>xt(e))}function xt(e){let t=x();try{e()}finally{x(t)}}let Z;var St=class{constructor(e=!1){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=0,this.cleanups=[],this.cleanupsLength=0,!e&&Z&&S(this,Z)}get active(){return!(this.flags&1024)}pause(){if(!(this.flags&256)){this.flags|=256;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`pause`in t&&t.pause()}}}resume(){let e=this.flags;if(e&256){this.flags=e&-257;for(let e=this.deps;e!==void 0;e=e.nextDep){let t=e.dep;`resume`in t&&t.resume()}}}run(e){let t=Z;try{return Z=this,e()}finally{Z=t}}stop(){if(!this.active)return;this.flags=1024,this.reset();let e=this.subs;e!==void 0&&C(e)}reset(){let e=this.deps;for(;e!==void 0;){let t=e.dep;`stop`in t?(e=e.nextDep,t.stop()):e=C(e,this)}X(this)}};function Ct(e){return new St(e)}function wt(){return Z}function Tt(e){try{return Z}finally{Z=e}}function Et(e,t=!1){Z!==void 0&&(Z.cleanups[Z.cleanupsLength++]=e)}var Dt=class{get effect(){return this}get dep(){return this}get _dirty(){let e=this.flags;if(e&16)return!0;if(e&32){if(he(this.deps,this))return this.flags=e|16,!0;this.flags=e&-33}return!1}set _dirty(e){e?this.flags|=16:this.flags&=-49}constructor(e,t){this.fn=e,this.setter=t,this._value=void 0,this.subs=void 0,this.subsTail=void 0,this.deps=void 0,this.depsTail=void 0,this.flags=17,this.__v_isRef=!0,this.__v_isReadonly=!t}get value(){let e=this.flags;if(e&16||e&32&&he(this.deps,this)){if(this.update()){let e=this.subs;e!==void 0&&w(e)}}else e&32&&(this.flags=e&-33);return v===void 0?Z!==void 0&&S(this,Z):S(this,v),this._value}set value(e){this.setter&&this.setter(e)}update(){let e=fe(this);try{let e=this._value,t=this.fn(e);return g(e,t)?(this._value=t,!0):!1}finally{pe(this,e)}}};function Ot(e,t,n=!1){let r,i;return u(e)?r=e:(r=e.get,i=e.set),new Dt(r,i)}let kt={GET:`get`,HAS:`has`,ITERATE:`iterate`},At={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},jt={SKIP:`__v_skip`,IS_REACTIVE:`__v_isReactive`,IS_READONLY:`__v_isReadonly`,IS_SHALLOW:`__v_isShallow`,RAW:`__v_raw`,IS_REF:`__v_isRef`},Mt={WATCH_GETTER:2,2:`WATCH_GETTER`,WATCH_CALLBACK:3,3:`WATCH_CALLBACK`,WATCH_CLEANUP:4,4:`WATCH_CLEANUP`},Nt={},Q;function Pt(){return Q}function Ft(e,t=!1,n=Q){if(n){let{call:t}=n.options;t?n.cleanups[n.cleanupsLength++]=()=>t(e,4):n.cleanups[n.cleanupsLength++]=e}}var It=class extends J{constructor(e,t,i=n){let{deep:a,once:o,call:c,onWarn:l}=i,d,f=!1,p=!1;if(K(e)?(d=()=>e.value,f=H(e)):B(e)?(d=()=>Lt(e,a),f=!0):s(e)?(p=!0,f=e.some(e=>B(e)||H(e)),d=()=>e.map(e=>{if(K(e))return e.value;if(B(e))return Lt(e,a);if(u(e))return c?c(e,2):e()})):d=u(e)?t?c?()=>c(e,2):e:()=>{if(this.cleanupsLength){let e=x();try{X(this)}finally{x(e)}}let t=Q;Q=this;try{return c?c(e,3,[this.boundCleanup]):e(this.boundCleanup)}finally{Q=t}}:r,t&&a){let e=d,t=a===!0?1/0:a;d=()=>$(e(),t)}if(super(d),this.cb=t,this.options=i,this.boundCleanup=e=>Ft(e,!1,this),this.forceTrigger=f,this.isMultiSource=p,o&&t){let e=t;t=(...t)=>{let n=e(...t);return this.stop(),n}}this.cb=t,this.oldValue=p?Array(e.length).fill(Nt):Nt}run(e=!1){let t=this.oldValue,n=this.oldValue=super.run();if(!this.cb)return;let{immediate:r,deep:i,call:a}=this.options;if(!(e&&!r)&&(e||i||this.forceTrigger||(this.isMultiSource?n.some((e,n)=>g(e,t[n])):g(n,t)))){X(this);let e=Q;Q=this;try{let e=[n,t===Nt?void 0:this.isMultiSource&&t[0]===Nt?[]:t,this.boundCleanup];a?a(this.cb,3,e):this.cb(...e)}finally{Q=e}}}};function Lt(e,t){return t?e:H(e)||t===!1||t===0?$(e,1):$(e)}function Rt(e,t,r=n){let i=new It(e,t,r);i.run(!0);let a=i.stop.bind(i);return a.pause=i.pause.bind(i),a.resume=i.resume.bind(i),a.stop=a,a}function $(e,t=1/0,n){if(t<=0||!p(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,K(e))$(e.value,t,n);else if(s(e))for(let r=0;r<e.length;r++)$(e[r],t,n);else if(l(e)||c(e))e.forEach(e=>{$(e,t,n)});else if(ne(e)){for(let r in e)$(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$(e[r],t,n)}return e}return e.ARRAY_ITERATE_KEY=D,e.EffectFlags=mt,e.EffectScope=St,e.ITERATE_KEY=E,e.MAP_KEY_ITERATE_KEY=ve,e.ReactiveEffect=J,e.ReactiveFlags=jt,e.TrackOpTypes=kt,e.TriggerOpTypes=At,e.WatchErrorCodes=Mt,e.WatcherEffect=It,e.computed=Ot,e.customRef=ct,e.effect=ht,e.effectScope=Ct,e.enableTracking=vt,e.getCurrentScope=wt,e.getCurrentWatcher=Pt,e.isProxy=Xe,e.isReactive=B,e.isReadonly=V,e.isRef=K,e.isShallow=H,e.markRaw=Ze,e.onEffectCleanup=bt,e.onScopeDispose=Et,e.onWatcherCleanup=Ft,e.pauseTracking=_t,e.proxyRefs=ot,e.reactive=qe,e.reactiveReadArray=A,e.readonly=R,e.ref=Qe,e.resetTracking=yt,e.setActiveSub=x,e.setCurrentScope=Tt,e.shallowReactive=Je,e.shallowReadArray=j,e.shallowReadonly=Ye,e.shallowRef=$e,e.stop=gt,e.toRaw=U,e.toReactive=W,e.toReadonly=G,e.toRef=ft,e.toRefs=lt,e.toValue=it,e.track=O,e.traverse=$,e.trigger=k,e.triggerRef=nt,e.unref=q,e.watch=Rt,e})({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/reactivity",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
3
|
+
"version": "3.6.0-rc.8",
|
|
4
4
|
"description": "@vue/reactivity",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/reactivity.esm-bundler.js",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@vue/shared": "3.6.0-rc.
|
|
53
|
+
"@vue/shared": "3.6.0-rc.8"
|
|
54
54
|
}
|
|
55
55
|
}
|