@valaxyjs/devtools 0.19.2 → 0.19.3
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/client/assets/{about-CDoBExGt.js → about-DHVIhTBg.js} +1 -1
- package/dist/client/assets/{categories-D7hL1LTr.js → categories-CPTL0Tg7.js} +1 -1
- package/dist/client/assets/{index-Ba7KgSIG.js → index-BT3dHazR.js} +1 -1
- package/dist/client/assets/{index-BIvNeJFh.js → index-COjcHghY.js} +582 -601
- package/dist/client/assets/{tags-C4xkAAO1.js → tags-DPpeDW7I.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +2 -2
- package/src/client/components.d.ts +47 -47
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BT3dHazR.js","./_plugin-vue_export-helper-DgDhiqFL.js","./index-DF84L4of.css","./about-DHVIhTBg.js","./categories-CPTL0Tg7.js","./tags-DPpeDW7I.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
true&&(function polyfill() {
|
|
3
3
|
const relList = document.createElement("link").relList;
|
|
4
4
|
if (relList && relList.supports && relList.supports("modulepreload")) {
|
|
@@ -39,7 +39,7 @@ true&&(function polyfill() {
|
|
|
39
39
|
/* Injected with object hook! */
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* @vue/shared v3.4.
|
|
42
|
+
* @vue/shared v3.4.33
|
|
43
43
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
44
44
|
* @license MIT
|
|
45
45
|
**/
|
|
@@ -228,7 +228,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
228
228
|
/* Injected with object hook! */
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* @vue/reactivity v3.4.
|
|
231
|
+
* @vue/reactivity v3.4.33
|
|
232
232
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
233
233
|
* @license MIT
|
|
234
234
|
**/
|
|
@@ -734,8 +734,10 @@ function size(target, isReadonly2 = false) {
|
|
|
734
734
|
!isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
735
735
|
return Reflect.get(target, "size", target);
|
|
736
736
|
}
|
|
737
|
-
function add(value) {
|
|
738
|
-
value
|
|
737
|
+
function add(value, _isShallow = false) {
|
|
738
|
+
if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
|
|
739
|
+
value = toRaw(value);
|
|
740
|
+
}
|
|
739
741
|
const target = toRaw(this);
|
|
740
742
|
const proto = getProto(target);
|
|
741
743
|
const hadKey = proto.has.call(target, value);
|
|
@@ -745,8 +747,10 @@ function add(value) {
|
|
|
745
747
|
}
|
|
746
748
|
return this;
|
|
747
749
|
}
|
|
748
|
-
function set(key, value) {
|
|
749
|
-
value
|
|
750
|
+
function set(key, value, _isShallow = false) {
|
|
751
|
+
if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
|
|
752
|
+
value = toRaw(value);
|
|
753
|
+
}
|
|
750
754
|
const target = toRaw(this);
|
|
751
755
|
const { has: has2, get: get2 } = getProto(target);
|
|
752
756
|
let hadKey = has2.call(target, key);
|
|
@@ -857,8 +861,12 @@ function createInstrumentations() {
|
|
|
857
861
|
return size(this);
|
|
858
862
|
},
|
|
859
863
|
has,
|
|
860
|
-
add
|
|
861
|
-
|
|
864
|
+
add(value) {
|
|
865
|
+
return add.call(this, value, true);
|
|
866
|
+
},
|
|
867
|
+
set(key, value) {
|
|
868
|
+
return set.call(this, key, value, true);
|
|
869
|
+
},
|
|
862
870
|
delete: deleteEntry,
|
|
863
871
|
clear,
|
|
864
872
|
forEach: createForEach(false, true)
|
|
@@ -1198,12 +1206,15 @@ function proxyRefs(objectWithRefs) {
|
|
|
1198
1206
|
/* Injected with object hook! */
|
|
1199
1207
|
|
|
1200
1208
|
/**
|
|
1201
|
-
* @vue/runtime-core v3.4.
|
|
1209
|
+
* @vue/runtime-core v3.4.33
|
|
1202
1210
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1203
1211
|
* @license MIT
|
|
1204
1212
|
**/
|
|
1205
1213
|
const stack = [];
|
|
1214
|
+
let isWarning = false;
|
|
1206
1215
|
function warn$1(msg, ...args) {
|
|
1216
|
+
if (isWarning) return;
|
|
1217
|
+
isWarning = true;
|
|
1207
1218
|
pauseTracking();
|
|
1208
1219
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
1209
1220
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
@@ -1236,6 +1247,7 @@ function warn$1(msg, ...args) {
|
|
|
1236
1247
|
console.warn(...warnArgs);
|
|
1237
1248
|
}
|
|
1238
1249
|
resetTracking();
|
|
1250
|
+
isWarning = false;
|
|
1239
1251
|
}
|
|
1240
1252
|
function getComponentTrace() {
|
|
1241
1253
|
let currentVNode = stack[stack.length - 1];
|
|
@@ -1482,7 +1494,11 @@ function flushJobs(seen) {
|
|
|
1482
1494
|
const job = queue[flushIndex];
|
|
1483
1495
|
if (job && job.active !== false) {
|
|
1484
1496
|
if (false) ;
|
|
1485
|
-
callWithErrorHandling(
|
|
1497
|
+
callWithErrorHandling(
|
|
1498
|
+
job,
|
|
1499
|
+
job.i,
|
|
1500
|
+
job.i ? 15 : 14
|
|
1501
|
+
);
|
|
1486
1502
|
}
|
|
1487
1503
|
}
|
|
1488
1504
|
} finally {
|
|
@@ -1496,102 +1512,6 @@ function flushJobs(seen) {
|
|
|
1496
1512
|
}
|
|
1497
1513
|
}
|
|
1498
1514
|
}
|
|
1499
|
-
function emit(instance, event, ...rawArgs) {
|
|
1500
|
-
if (instance.isUnmounted) return;
|
|
1501
|
-
const props = instance.vnode.props || EMPTY_OBJ;
|
|
1502
|
-
let args = rawArgs;
|
|
1503
|
-
const isModelListener2 = event.startsWith("update:");
|
|
1504
|
-
const modelArg = isModelListener2 && event.slice(7);
|
|
1505
|
-
if (modelArg && modelArg in props) {
|
|
1506
|
-
const modifiersKey = `${modelArg === "modelValue" ? "model" : modelArg}Modifiers`;
|
|
1507
|
-
const { number, trim } = props[modifiersKey] || EMPTY_OBJ;
|
|
1508
|
-
if (trim) {
|
|
1509
|
-
args = rawArgs.map((a) => isString(a) ? a.trim() : a);
|
|
1510
|
-
}
|
|
1511
|
-
if (number) {
|
|
1512
|
-
args = rawArgs.map(looseToNumber);
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
let handlerName;
|
|
1516
|
-
let handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
|
|
1517
|
-
props[handlerName = toHandlerKey(camelize(event))];
|
|
1518
|
-
if (!handler && isModelListener2) {
|
|
1519
|
-
handler = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
1520
|
-
}
|
|
1521
|
-
if (handler) {
|
|
1522
|
-
callWithAsyncErrorHandling(
|
|
1523
|
-
handler,
|
|
1524
|
-
instance,
|
|
1525
|
-
6,
|
|
1526
|
-
args
|
|
1527
|
-
);
|
|
1528
|
-
}
|
|
1529
|
-
const onceHandler = props[handlerName + `Once`];
|
|
1530
|
-
if (onceHandler) {
|
|
1531
|
-
if (!instance.emitted) {
|
|
1532
|
-
instance.emitted = {};
|
|
1533
|
-
} else if (instance.emitted[handlerName]) {
|
|
1534
|
-
return;
|
|
1535
|
-
}
|
|
1536
|
-
instance.emitted[handlerName] = true;
|
|
1537
|
-
callWithAsyncErrorHandling(
|
|
1538
|
-
onceHandler,
|
|
1539
|
-
instance,
|
|
1540
|
-
6,
|
|
1541
|
-
args
|
|
1542
|
-
);
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
1546
|
-
const cache = appContext.emitsCache;
|
|
1547
|
-
const cached = cache.get(comp);
|
|
1548
|
-
if (cached !== void 0) {
|
|
1549
|
-
return cached;
|
|
1550
|
-
}
|
|
1551
|
-
const raw = comp.emits;
|
|
1552
|
-
let normalized = {};
|
|
1553
|
-
let hasExtends = false;
|
|
1554
|
-
if (!isFunction(comp)) {
|
|
1555
|
-
const extendEmits = (raw2) => {
|
|
1556
|
-
const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
|
|
1557
|
-
if (normalizedFromExtend) {
|
|
1558
|
-
hasExtends = true;
|
|
1559
|
-
extend(normalized, normalizedFromExtend);
|
|
1560
|
-
}
|
|
1561
|
-
};
|
|
1562
|
-
if (!asMixin && appContext.mixins.length) {
|
|
1563
|
-
appContext.mixins.forEach(extendEmits);
|
|
1564
|
-
}
|
|
1565
|
-
if (comp.extends) {
|
|
1566
|
-
extendEmits(comp.extends);
|
|
1567
|
-
}
|
|
1568
|
-
if (comp.mixins) {
|
|
1569
|
-
comp.mixins.forEach(extendEmits);
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
if (!raw && !hasExtends) {
|
|
1573
|
-
if (isObject(comp)) {
|
|
1574
|
-
cache.set(comp, null);
|
|
1575
|
-
}
|
|
1576
|
-
return null;
|
|
1577
|
-
}
|
|
1578
|
-
if (isArray$1(raw)) {
|
|
1579
|
-
raw.forEach((key) => normalized[key] = null);
|
|
1580
|
-
} else {
|
|
1581
|
-
extend(normalized, raw);
|
|
1582
|
-
}
|
|
1583
|
-
if (isObject(comp)) {
|
|
1584
|
-
cache.set(comp, normalized);
|
|
1585
|
-
}
|
|
1586
|
-
return normalized;
|
|
1587
|
-
}
|
|
1588
|
-
function isEmitListener(options, key) {
|
|
1589
|
-
if (!options || !isOn(key)) {
|
|
1590
|
-
return false;
|
|
1591
|
-
}
|
|
1592
|
-
key = key.slice(2).replace(/Once$/, "");
|
|
1593
|
-
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
1594
|
-
}
|
|
1595
1515
|
let currentRenderingInstance = null;
|
|
1596
1516
|
let currentScopeId = null;
|
|
1597
1517
|
function setCurrentRenderingInstance(instance) {
|
|
@@ -1626,242 +1546,87 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
1626
1546
|
renderFnWithContext._d = true;
|
|
1627
1547
|
return renderFnWithContext;
|
|
1628
1548
|
}
|
|
1629
|
-
function
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
withProxy,
|
|
1637
|
-
propsOptions: [propsOptions],
|
|
1638
|
-
slots,
|
|
1639
|
-
attrs,
|
|
1640
|
-
emit: emit2,
|
|
1641
|
-
render,
|
|
1642
|
-
renderCache,
|
|
1643
|
-
props,
|
|
1644
|
-
data,
|
|
1645
|
-
setupState,
|
|
1646
|
-
ctx,
|
|
1647
|
-
inheritAttrs
|
|
1648
|
-
} = instance;
|
|
1649
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
1650
|
-
let result;
|
|
1651
|
-
let fallthroughAttrs;
|
|
1652
|
-
try {
|
|
1653
|
-
if (vnode.shapeFlag & 4) {
|
|
1654
|
-
const proxyToUse = withProxy || proxy;
|
|
1655
|
-
const thisProxy = false ? new Proxy(proxyToUse, {
|
|
1656
|
-
get(target, key, receiver) {
|
|
1657
|
-
warn$1(
|
|
1658
|
-
`Property '${String(
|
|
1659
|
-
key
|
|
1660
|
-
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
1661
|
-
);
|
|
1662
|
-
return Reflect.get(target, key, receiver);
|
|
1663
|
-
}
|
|
1664
|
-
}) : proxyToUse;
|
|
1665
|
-
result = normalizeVNode(
|
|
1666
|
-
render.call(
|
|
1667
|
-
thisProxy,
|
|
1668
|
-
proxyToUse,
|
|
1669
|
-
renderCache,
|
|
1670
|
-
false ? shallowReadonly(props) : props,
|
|
1671
|
-
setupState,
|
|
1672
|
-
data,
|
|
1673
|
-
ctx
|
|
1674
|
-
)
|
|
1675
|
-
);
|
|
1676
|
-
fallthroughAttrs = attrs;
|
|
1677
|
-
} else {
|
|
1678
|
-
const render2 = Component;
|
|
1679
|
-
if (false) ;
|
|
1680
|
-
result = normalizeVNode(
|
|
1681
|
-
render2.length > 1 ? render2(
|
|
1682
|
-
false ? shallowReadonly(props) : props,
|
|
1683
|
-
false ? {
|
|
1684
|
-
get attrs() {
|
|
1685
|
-
markAttrsAccessed();
|
|
1686
|
-
return shallowReadonly(attrs);
|
|
1687
|
-
},
|
|
1688
|
-
slots,
|
|
1689
|
-
emit: emit2
|
|
1690
|
-
} : { attrs, slots, emit: emit2 }
|
|
1691
|
-
) : render2(
|
|
1692
|
-
false ? shallowReadonly(props) : props,
|
|
1693
|
-
null
|
|
1694
|
-
)
|
|
1695
|
-
);
|
|
1696
|
-
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
1549
|
+
function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
1550
|
+
const bindings = vnode.dirs;
|
|
1551
|
+
const oldBindings = prevVNode && prevVNode.dirs;
|
|
1552
|
+
for (let i = 0; i < bindings.length; i++) {
|
|
1553
|
+
const binding = bindings[i];
|
|
1554
|
+
if (oldBindings) {
|
|
1555
|
+
binding.oldValue = oldBindings[i].value;
|
|
1697
1556
|
}
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
if (shapeFlag & (1 | 6)) {
|
|
1709
|
-
if (propsOptions && keys.some(isModelListener)) {
|
|
1710
|
-
fallthroughAttrs = filterModelListeners(
|
|
1711
|
-
fallthroughAttrs,
|
|
1712
|
-
propsOptions
|
|
1713
|
-
);
|
|
1714
|
-
}
|
|
1715
|
-
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
1716
|
-
}
|
|
1557
|
+
let hook = binding.dir[name];
|
|
1558
|
+
if (hook) {
|
|
1559
|
+
pauseTracking();
|
|
1560
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
1561
|
+
vnode.el,
|
|
1562
|
+
binding,
|
|
1563
|
+
vnode,
|
|
1564
|
+
prevVNode
|
|
1565
|
+
]);
|
|
1566
|
+
resetTracking();
|
|
1717
1567
|
}
|
|
1718
1568
|
}
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
if (vnode.
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
{
|
|
1727
|
-
|
|
1569
|
+
}
|
|
1570
|
+
function setTransitionHooks(vnode, hooks) {
|
|
1571
|
+
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
1572
|
+
setTransitionHooks(vnode.component.subTree, hooks);
|
|
1573
|
+
} else if (vnode.shapeFlag & 128) {
|
|
1574
|
+
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
1575
|
+
vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
|
|
1576
|
+
} else {
|
|
1577
|
+
vnode.transition = hooks;
|
|
1728
1578
|
}
|
|
1729
|
-
setCurrentRenderingInstance(prev);
|
|
1730
|
-
return result;
|
|
1731
1579
|
}
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1580
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
1581
|
+
// @__NO_SIDE_EFFECTS__
|
|
1582
|
+
function defineComponent(options, extraOptions) {
|
|
1583
|
+
return isFunction(options) ? (
|
|
1584
|
+
// #8326: extend call and options.name access are considered side-effects
|
|
1585
|
+
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1586
|
+
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
1587
|
+
) : options;
|
|
1588
|
+
}
|
|
1589
|
+
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
1590
|
+
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
1591
|
+
function onActivated(hook, target) {
|
|
1592
|
+
registerKeepAliveHook(hook, "a", target);
|
|
1593
|
+
}
|
|
1594
|
+
function onDeactivated(hook, target) {
|
|
1595
|
+
registerKeepAliveHook(hook, "da", target);
|
|
1596
|
+
}
|
|
1597
|
+
function registerKeepAliveHook(hook, type, target = currentInstance) {
|
|
1598
|
+
const wrappedHook = hook.__wdc || (hook.__wdc = () => {
|
|
1599
|
+
let current = target;
|
|
1600
|
+
while (current) {
|
|
1601
|
+
if (current.isDeactivated) {
|
|
1602
|
+
return;
|
|
1603
|
+
}
|
|
1604
|
+
current = current.parent;
|
|
1737
1605
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
return res;
|
|
1749
|
-
};
|
|
1750
|
-
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
1751
|
-
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
1752
|
-
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
1753
|
-
const emits = component.emitsOptions;
|
|
1754
|
-
if (nextVNode.dirs || nextVNode.transition) {
|
|
1755
|
-
return true;
|
|
1756
|
-
}
|
|
1757
|
-
if (optimized && patchFlag >= 0) {
|
|
1758
|
-
if (patchFlag & 1024) {
|
|
1759
|
-
return true;
|
|
1760
|
-
}
|
|
1761
|
-
if (patchFlag & 16) {
|
|
1762
|
-
if (!prevProps) {
|
|
1763
|
-
return !!nextProps;
|
|
1764
|
-
}
|
|
1765
|
-
return hasPropsChanged(prevProps, nextProps, emits);
|
|
1766
|
-
} else if (patchFlag & 8) {
|
|
1767
|
-
const dynamicProps = nextVNode.dynamicProps;
|
|
1768
|
-
for (let i = 0; i < dynamicProps.length; i++) {
|
|
1769
|
-
const key = dynamicProps[i];
|
|
1770
|
-
if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) {
|
|
1771
|
-
return true;
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
} else {
|
|
1776
|
-
if (prevChildren || nextChildren) {
|
|
1777
|
-
if (!nextChildren || !nextChildren.$stable) {
|
|
1778
|
-
return true;
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
if (prevProps === nextProps) {
|
|
1782
|
-
return false;
|
|
1783
|
-
}
|
|
1784
|
-
if (!prevProps) {
|
|
1785
|
-
return !!nextProps;
|
|
1786
|
-
}
|
|
1787
|
-
if (!nextProps) {
|
|
1788
|
-
return true;
|
|
1789
|
-
}
|
|
1790
|
-
return hasPropsChanged(prevProps, nextProps, emits);
|
|
1791
|
-
}
|
|
1792
|
-
return false;
|
|
1793
|
-
}
|
|
1794
|
-
function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
1795
|
-
const nextKeys = Object.keys(nextProps);
|
|
1796
|
-
if (nextKeys.length !== Object.keys(prevProps).length) {
|
|
1797
|
-
return true;
|
|
1798
|
-
}
|
|
1799
|
-
for (let i = 0; i < nextKeys.length; i++) {
|
|
1800
|
-
const key = nextKeys[i];
|
|
1801
|
-
if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) {
|
|
1802
|
-
return true;
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
return false;
|
|
1806
|
-
}
|
|
1807
|
-
function updateHOCHostEl({ vnode, parent }, el) {
|
|
1808
|
-
while (parent) {
|
|
1809
|
-
const root = parent.subTree;
|
|
1810
|
-
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
1811
|
-
root.el = vnode.el;
|
|
1812
|
-
}
|
|
1813
|
-
if (root === vnode) {
|
|
1814
|
-
(vnode = parent.vnode).el = el;
|
|
1815
|
-
parent = parent.parent;
|
|
1816
|
-
} else {
|
|
1817
|
-
break;
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
const COMPONENTS = "components";
|
|
1822
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
1823
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
1824
|
-
}
|
|
1825
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
1826
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
1827
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
1828
|
-
if (instance) {
|
|
1829
|
-
const Component = instance.type;
|
|
1830
|
-
{
|
|
1831
|
-
const selfName = getComponentName(
|
|
1832
|
-
Component,
|
|
1833
|
-
false
|
|
1834
|
-
);
|
|
1835
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
1836
|
-
return Component;
|
|
1606
|
+
return hook();
|
|
1607
|
+
});
|
|
1608
|
+
injectHook(type, wrappedHook, target);
|
|
1609
|
+
if (target) {
|
|
1610
|
+
let current = target.parent;
|
|
1611
|
+
while (current && current.parent) {
|
|
1612
|
+
if (isKeepAlive(current.parent.vnode)) {
|
|
1613
|
+
injectToKeepAliveRoot(wrappedHook, type, target, current);
|
|
1837
1614
|
}
|
|
1615
|
+
current = current.parent;
|
|
1838
1616
|
}
|
|
1839
|
-
const res = (
|
|
1840
|
-
// local registration
|
|
1841
|
-
// check instance[type] first which is resolved for options API
|
|
1842
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
1843
|
-
resolve(instance.appContext[type], name)
|
|
1844
|
-
);
|
|
1845
|
-
if (!res && maybeSelfReference) {
|
|
1846
|
-
return Component;
|
|
1847
|
-
}
|
|
1848
|
-
return res;
|
|
1849
1617
|
}
|
|
1850
1618
|
}
|
|
1851
|
-
function
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
} else {
|
|
1863
|
-
queuePostFlushCb(fn);
|
|
1864
|
-
}
|
|
1619
|
+
function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
|
|
1620
|
+
const injected = injectHook(
|
|
1621
|
+
type,
|
|
1622
|
+
hook,
|
|
1623
|
+
keepAliveRoot,
|
|
1624
|
+
true
|
|
1625
|
+
/* prepend */
|
|
1626
|
+
);
|
|
1627
|
+
onUnmounted(() => {
|
|
1628
|
+
remove(keepAliveRoot[type], injected);
|
|
1629
|
+
}, target);
|
|
1865
1630
|
}
|
|
1866
1631
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
1867
1632
|
if (target) {
|
|
@@ -1903,52 +1668,64 @@ const onRenderTracked = createHook(
|
|
|
1903
1668
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
1904
1669
|
injectHook("ec", hook, target);
|
|
1905
1670
|
}
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1671
|
+
const COMPONENTS = "components";
|
|
1672
|
+
function resolveComponent(name, maybeSelfReference) {
|
|
1673
|
+
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
1674
|
+
}
|
|
1675
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
1676
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
1677
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
1678
|
+
if (instance) {
|
|
1679
|
+
const Component = instance.type;
|
|
1680
|
+
{
|
|
1681
|
+
const selfName = getComponentName(
|
|
1682
|
+
Component,
|
|
1683
|
+
false
|
|
1684
|
+
);
|
|
1685
|
+
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
1686
|
+
return Component;
|
|
1687
|
+
}
|
|
1913
1688
|
}
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
]);
|
|
1923
|
-
resetTracking();
|
|
1689
|
+
const res = (
|
|
1690
|
+
// local registration
|
|
1691
|
+
// check instance[type] first which is resolved for options API
|
|
1692
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
1693
|
+
resolve(instance.appContext[type], name)
|
|
1694
|
+
);
|
|
1695
|
+
if (!res && maybeSelfReference) {
|
|
1696
|
+
return Component;
|
|
1924
1697
|
}
|
|
1698
|
+
return res;
|
|
1925
1699
|
}
|
|
1926
1700
|
}
|
|
1701
|
+
function resolve(registry, name) {
|
|
1702
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
1703
|
+
}
|
|
1927
1704
|
function renderList(source, renderItem, cache, index) {
|
|
1928
1705
|
let ret;
|
|
1929
|
-
const cached = cache
|
|
1706
|
+
const cached = cache;
|
|
1930
1707
|
if (isArray$1(source) || isString(source)) {
|
|
1931
1708
|
ret = new Array(source.length);
|
|
1932
1709
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
1933
|
-
ret[i] = renderItem(source[i], i, void 0, cached
|
|
1710
|
+
ret[i] = renderItem(source[i], i, void 0, cached);
|
|
1934
1711
|
}
|
|
1935
1712
|
} else if (typeof source === "number") {
|
|
1936
1713
|
ret = new Array(source);
|
|
1937
1714
|
for (let i = 0; i < source; i++) {
|
|
1938
|
-
ret[i] = renderItem(i + 1, i, void 0, cached
|
|
1715
|
+
ret[i] = renderItem(i + 1, i, void 0, cached);
|
|
1939
1716
|
}
|
|
1940
1717
|
} else if (isObject(source)) {
|
|
1941
1718
|
if (source[Symbol.iterator]) {
|
|
1942
1719
|
ret = Array.from(
|
|
1943
1720
|
source,
|
|
1944
|
-
(item, i) => renderItem(item, i, void 0, cached
|
|
1721
|
+
(item, i) => renderItem(item, i, void 0, cached)
|
|
1945
1722
|
);
|
|
1946
1723
|
} else {
|
|
1947
1724
|
const keys = Object.keys(source);
|
|
1948
1725
|
ret = new Array(keys.length);
|
|
1949
1726
|
for (let i = 0, l = keys.length; i < l; i++) {
|
|
1950
1727
|
const key = keys[i];
|
|
1951
|
-
ret[i] = renderItem(source[key], key, i, cached
|
|
1728
|
+
ret[i] = renderItem(source[key], key, i, cached);
|
|
1952
1729
|
}
|
|
1953
1730
|
}
|
|
1954
1731
|
} else {
|
|
@@ -1956,20 +1733,10 @@ function renderList(source, renderItem, cache, index) {
|
|
|
1956
1733
|
}
|
|
1957
1734
|
return ret;
|
|
1958
1735
|
}
|
|
1959
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
1960
|
-
// @__NO_SIDE_EFFECTS__
|
|
1961
|
-
function defineComponent(options, extraOptions) {
|
|
1962
|
-
return isFunction(options) ? (
|
|
1963
|
-
// #8326: extend call and options.name access are considered side-effects
|
|
1964
|
-
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1965
|
-
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
1966
|
-
) : options;
|
|
1967
|
-
}
|
|
1968
|
-
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
1969
1736
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
1970
1737
|
if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
|
|
1971
1738
|
if (name !== "default") props.name = name;
|
|
1972
|
-
return createVNode("slot", props, fallback
|
|
1739
|
+
return createVNode("slot", props, fallback);
|
|
1973
1740
|
}
|
|
1974
1741
|
let slot = slots[name];
|
|
1975
1742
|
if (slot && slot._c) {
|
|
@@ -1980,9 +1747,10 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
1980
1747
|
const rendered = createBlock(
|
|
1981
1748
|
Fragment,
|
|
1982
1749
|
{
|
|
1983
|
-
key: props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
1750
|
+
key: (props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
1984
1751
|
// key attached in the `createSlots` helper, respect that
|
|
1985
|
-
validSlotContent && validSlotContent.key || `_${name}`
|
|
1752
|
+
validSlotContent && validSlotContent.key || `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
1753
|
+
(!validSlotContent && fallback ? "_fb" : "")
|
|
1986
1754
|
},
|
|
1987
1755
|
validSlotContent || ([]),
|
|
1988
1756
|
validSlotContent && slots._ === 1 ? 64 : -2
|
|
@@ -2803,8 +2571,9 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
2803
2571
|
}
|
|
2804
2572
|
return value;
|
|
2805
2573
|
}
|
|
2574
|
+
const mixinPropsCache = /* @__PURE__ */ new WeakMap();
|
|
2806
2575
|
function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
2807
|
-
const cache = appContext.propsCache;
|
|
2576
|
+
const cache = asMixin ? mixinPropsCache : appContext.propsCache;
|
|
2808
2577
|
const cached = cache.get(comp);
|
|
2809
2578
|
if (cached) {
|
|
2810
2579
|
return cached;
|
|
@@ -2932,13 +2701,22 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
2932
2701
|
const normalized = normalizeSlotValue(children);
|
|
2933
2702
|
instance.slots.default = () => normalized;
|
|
2934
2703
|
};
|
|
2935
|
-
const
|
|
2704
|
+
const assignSlots = (slots, children, optimized) => {
|
|
2705
|
+
for (const key in children) {
|
|
2706
|
+
if (optimized || key !== "_") {
|
|
2707
|
+
slots[key] = children[key];
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
};
|
|
2711
|
+
const initSlots = (instance, children, optimized) => {
|
|
2936
2712
|
const slots = instance.slots = createInternalObject();
|
|
2937
2713
|
if (instance.vnode.shapeFlag & 32) {
|
|
2938
2714
|
const type = children._;
|
|
2939
2715
|
if (type) {
|
|
2940
|
-
|
|
2941
|
-
|
|
2716
|
+
assignSlots(slots, children, optimized);
|
|
2717
|
+
if (optimized) {
|
|
2718
|
+
def(slots, "_", type, true);
|
|
2719
|
+
}
|
|
2942
2720
|
} else {
|
|
2943
2721
|
normalizeObjectSlots(children, slots);
|
|
2944
2722
|
}
|
|
@@ -2956,10 +2734,7 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
2956
2734
|
if (optimized && type === 1) {
|
|
2957
2735
|
needDeletionCheck = false;
|
|
2958
2736
|
} else {
|
|
2959
|
-
|
|
2960
|
-
if (!optimized && type === 1) {
|
|
2961
|
-
delete slots._;
|
|
2962
|
-
}
|
|
2737
|
+
assignSlots(slots, children, optimized);
|
|
2963
2738
|
}
|
|
2964
2739
|
} else {
|
|
2965
2740
|
needDeletionCheck = !children.$stable;
|
|
@@ -3055,6 +2830,8 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3055
2830
|
}
|
|
3056
2831
|
}
|
|
3057
2832
|
}
|
|
2833
|
+
const TeleportEndKey = Symbol("_vte");
|
|
2834
|
+
const isTeleport = (type) => type.__isTeleport;
|
|
3058
2835
|
const queuePostRenderEffect = queueEffectWithSuspense;
|
|
3059
2836
|
function createRenderer(options) {
|
|
3060
2837
|
return baseCreateRenderer(options);
|
|
@@ -3285,17 +3062,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3285
3062
|
if (props) {
|
|
3286
3063
|
for (const key in props) {
|
|
3287
3064
|
if (key !== "value" && !isReservedProp(key)) {
|
|
3288
|
-
hostPatchProp(
|
|
3289
|
-
el,
|
|
3290
|
-
key,
|
|
3291
|
-
null,
|
|
3292
|
-
props[key],
|
|
3293
|
-
namespace,
|
|
3294
|
-
vnode.children,
|
|
3295
|
-
parentComponent,
|
|
3296
|
-
parentSuspense,
|
|
3297
|
-
unmountChildren
|
|
3298
|
-
);
|
|
3065
|
+
hostPatchProp(el, key, null, props[key], namespace, parentComponent);
|
|
3299
3066
|
}
|
|
3300
3067
|
}
|
|
3301
3068
|
if ("value" in props) {
|
|
@@ -3375,6 +3142,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3375
3142
|
invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
|
|
3376
3143
|
}
|
|
3377
3144
|
parentComponent && toggleRecurse(parentComponent, true);
|
|
3145
|
+
if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) {
|
|
3146
|
+
hostSetElementText(el, "");
|
|
3147
|
+
}
|
|
3378
3148
|
if (dynamicChildren) {
|
|
3379
3149
|
patchBlockChildren(
|
|
3380
3150
|
n1.dynamicChildren,
|
|
@@ -3400,15 +3170,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3400
3170
|
}
|
|
3401
3171
|
if (patchFlag > 0) {
|
|
3402
3172
|
if (patchFlag & 16) {
|
|
3403
|
-
patchProps(
|
|
3404
|
-
el,
|
|
3405
|
-
n2,
|
|
3406
|
-
oldProps,
|
|
3407
|
-
newProps,
|
|
3408
|
-
parentComponent,
|
|
3409
|
-
parentSuspense,
|
|
3410
|
-
namespace
|
|
3411
|
-
);
|
|
3173
|
+
patchProps(el, oldProps, newProps, parentComponent, namespace);
|
|
3412
3174
|
} else {
|
|
3413
3175
|
if (patchFlag & 2) {
|
|
3414
3176
|
if (oldProps.class !== newProps.class) {
|
|
@@ -3425,17 +3187,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3425
3187
|
const prev = oldProps[key];
|
|
3426
3188
|
const next = newProps[key];
|
|
3427
3189
|
if (next !== prev || key === "value") {
|
|
3428
|
-
hostPatchProp(
|
|
3429
|
-
el,
|
|
3430
|
-
key,
|
|
3431
|
-
prev,
|
|
3432
|
-
next,
|
|
3433
|
-
namespace,
|
|
3434
|
-
n1.children,
|
|
3435
|
-
parentComponent,
|
|
3436
|
-
parentSuspense,
|
|
3437
|
-
unmountChildren
|
|
3438
|
-
);
|
|
3190
|
+
hostPatchProp(el, key, prev, next, namespace, parentComponent);
|
|
3439
3191
|
}
|
|
3440
3192
|
}
|
|
3441
3193
|
}
|
|
@@ -3446,15 +3198,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3446
3198
|
}
|
|
3447
3199
|
}
|
|
3448
3200
|
} else if (!optimized && dynamicChildren == null) {
|
|
3449
|
-
patchProps(
|
|
3450
|
-
el,
|
|
3451
|
-
n2,
|
|
3452
|
-
oldProps,
|
|
3453
|
-
newProps,
|
|
3454
|
-
parentComponent,
|
|
3455
|
-
parentSuspense,
|
|
3456
|
-
namespace
|
|
3457
|
-
);
|
|
3201
|
+
patchProps(el, oldProps, newProps, parentComponent, namespace);
|
|
3458
3202
|
}
|
|
3459
3203
|
if ((vnodeHook = newProps.onVnodeUpdated) || dirs) {
|
|
3460
3204
|
queuePostRenderEffect(() => {
|
|
@@ -3494,7 +3238,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3494
3238
|
);
|
|
3495
3239
|
}
|
|
3496
3240
|
};
|
|
3497
|
-
const patchProps = (el,
|
|
3241
|
+
const patchProps = (el, oldProps, newProps, parentComponent, namespace) => {
|
|
3498
3242
|
if (oldProps !== newProps) {
|
|
3499
3243
|
if (oldProps !== EMPTY_OBJ) {
|
|
3500
3244
|
for (const key in oldProps) {
|
|
@@ -3505,10 +3249,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3505
3249
|
oldProps[key],
|
|
3506
3250
|
null,
|
|
3507
3251
|
namespace,
|
|
3508
|
-
|
|
3509
|
-
parentComponent,
|
|
3510
|
-
parentSuspense,
|
|
3511
|
-
unmountChildren
|
|
3252
|
+
parentComponent
|
|
3512
3253
|
);
|
|
3513
3254
|
}
|
|
3514
3255
|
}
|
|
@@ -3518,17 +3259,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3518
3259
|
const next = newProps[key];
|
|
3519
3260
|
const prev = oldProps[key];
|
|
3520
3261
|
if (next !== prev && key !== "value") {
|
|
3521
|
-
hostPatchProp(
|
|
3522
|
-
el,
|
|
3523
|
-
key,
|
|
3524
|
-
prev,
|
|
3525
|
-
next,
|
|
3526
|
-
namespace,
|
|
3527
|
-
vnode.children,
|
|
3528
|
-
parentComponent,
|
|
3529
|
-
parentSuspense,
|
|
3530
|
-
unmountChildren
|
|
3531
|
-
);
|
|
3262
|
+
hostPatchProp(el, key, prev, next, namespace, parentComponent);
|
|
3532
3263
|
}
|
|
3533
3264
|
}
|
|
3534
3265
|
if ("value" in newProps) {
|
|
@@ -3638,7 +3369,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3638
3369
|
instance.ctx.renderer = internals;
|
|
3639
3370
|
}
|
|
3640
3371
|
{
|
|
3641
|
-
setupComponent(instance);
|
|
3372
|
+
setupComponent(instance, false, optimized);
|
|
3642
3373
|
}
|
|
3643
3374
|
if (instance.asyncDep) {
|
|
3644
3375
|
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
@@ -3814,6 +3545,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3814
3545
|
effect2.run();
|
|
3815
3546
|
}
|
|
3816
3547
|
};
|
|
3548
|
+
update.i = instance;
|
|
3817
3549
|
update.id = instance.uid;
|
|
3818
3550
|
toggleRecurse(instance, true);
|
|
3819
3551
|
update();
|
|
@@ -4166,7 +3898,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4166
3898
|
shapeFlag,
|
|
4167
3899
|
patchFlag,
|
|
4168
3900
|
dirs,
|
|
4169
|
-
|
|
3901
|
+
cacheIndex
|
|
4170
3902
|
} = vnode;
|
|
4171
3903
|
if (patchFlag === -2) {
|
|
4172
3904
|
optimized = false;
|
|
@@ -4174,8 +3906,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4174
3906
|
if (ref3 != null) {
|
|
4175
3907
|
setRef(ref3, null, parentSuspense, vnode, true);
|
|
4176
3908
|
}
|
|
4177
|
-
if (
|
|
4178
|
-
parentComponent.renderCache[
|
|
3909
|
+
if (cacheIndex != null) {
|
|
3910
|
+
parentComponent.renderCache[cacheIndex] = void 0;
|
|
4179
3911
|
}
|
|
4180
3912
|
if (shapeFlag & 256) {
|
|
4181
3913
|
parentComponent.ctx.deactivate(vnode);
|
|
@@ -4205,7 +3937,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4205
3937
|
internals,
|
|
4206
3938
|
doRemove
|
|
4207
3939
|
);
|
|
4208
|
-
} else if (dynamicChildren && // #
|
|
3940
|
+
} else if (dynamicChildren && // #5154
|
|
3941
|
+
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
3942
|
+
// parent block with hasOnce: true
|
|
3943
|
+
// so that it doesn't take the fast path during unmount - otherwise
|
|
3944
|
+
// components nested in v-once are never unmounted.
|
|
3945
|
+
!dynamicChildren.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
4209
3946
|
(type !== Fragment || patchFlag > 0 && patchFlag & 64)) {
|
|
4210
3947
|
unmountChildren(
|
|
4211
3948
|
dynamicChildren,
|
|
@@ -4304,7 +4041,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4304
4041
|
if (vnode.shapeFlag & 128) {
|
|
4305
4042
|
return vnode.suspense.next();
|
|
4306
4043
|
}
|
|
4307
|
-
|
|
4044
|
+
const el = hostNextSibling(vnode.anchor || vnode.el);
|
|
4045
|
+
const teleportEnd = el && el[TeleportEndKey];
|
|
4046
|
+
return teleportEnd ? hostNextSibling(teleportEnd) : el;
|
|
4308
4047
|
};
|
|
4309
4048
|
let isFlushing2 = false;
|
|
4310
4049
|
const render = (vnode, container, namespace) => {
|
|
@@ -4542,169 +4281,418 @@ function doWatch(source, cb, {
|
|
|
4542
4281
|
if (!effect2.active || !effect2.dirty) {
|
|
4543
4282
|
return;
|
|
4544
4283
|
}
|
|
4545
|
-
if (cb) {
|
|
4546
|
-
const newValue = effect2.run();
|
|
4547
|
-
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
|
|
4548
|
-
if (cleanup) {
|
|
4549
|
-
cleanup();
|
|
4284
|
+
if (cb) {
|
|
4285
|
+
const newValue = effect2.run();
|
|
4286
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
|
|
4287
|
+
if (cleanup) {
|
|
4288
|
+
cleanup();
|
|
4289
|
+
}
|
|
4290
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
4291
|
+
newValue,
|
|
4292
|
+
// pass undefined as the old value when it's changed for the first time
|
|
4293
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
4294
|
+
onCleanup
|
|
4295
|
+
]);
|
|
4296
|
+
oldValue = newValue;
|
|
4297
|
+
}
|
|
4298
|
+
} else {
|
|
4299
|
+
effect2.run();
|
|
4300
|
+
}
|
|
4301
|
+
};
|
|
4302
|
+
job.allowRecurse = !!cb;
|
|
4303
|
+
let scheduler;
|
|
4304
|
+
if (flush === "sync") {
|
|
4305
|
+
scheduler = job;
|
|
4306
|
+
} else if (flush === "post") {
|
|
4307
|
+
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
4308
|
+
} else {
|
|
4309
|
+
job.pre = true;
|
|
4310
|
+
if (instance) job.id = instance.uid;
|
|
4311
|
+
scheduler = () => queueJob(job);
|
|
4312
|
+
}
|
|
4313
|
+
const effect2 = new ReactiveEffect(getter, NOOP, scheduler);
|
|
4314
|
+
const scope = getCurrentScope();
|
|
4315
|
+
const unwatch = () => {
|
|
4316
|
+
effect2.stop();
|
|
4317
|
+
if (scope) {
|
|
4318
|
+
remove(scope.effects, effect2);
|
|
4319
|
+
}
|
|
4320
|
+
};
|
|
4321
|
+
if (cb) {
|
|
4322
|
+
if (immediate) {
|
|
4323
|
+
job();
|
|
4324
|
+
} else {
|
|
4325
|
+
oldValue = effect2.run();
|
|
4326
|
+
}
|
|
4327
|
+
} else if (flush === "post") {
|
|
4328
|
+
queuePostRenderEffect(
|
|
4329
|
+
effect2.run.bind(effect2),
|
|
4330
|
+
instance && instance.suspense
|
|
4331
|
+
);
|
|
4332
|
+
} else {
|
|
4333
|
+
effect2.run();
|
|
4334
|
+
}
|
|
4335
|
+
if (ssrCleanup) ssrCleanup.push(unwatch);
|
|
4336
|
+
return unwatch;
|
|
4337
|
+
}
|
|
4338
|
+
function instanceWatch(source, value, options) {
|
|
4339
|
+
const publicThis = this.proxy;
|
|
4340
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
4341
|
+
let cb;
|
|
4342
|
+
if (isFunction(value)) {
|
|
4343
|
+
cb = value;
|
|
4344
|
+
} else {
|
|
4345
|
+
cb = value.handler;
|
|
4346
|
+
options = value;
|
|
4347
|
+
}
|
|
4348
|
+
const reset = setCurrentInstance(this);
|
|
4349
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
4350
|
+
reset();
|
|
4351
|
+
return res;
|
|
4352
|
+
}
|
|
4353
|
+
function createPathGetter(ctx, path) {
|
|
4354
|
+
const segments = path.split(".");
|
|
4355
|
+
return () => {
|
|
4356
|
+
let cur = ctx;
|
|
4357
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
4358
|
+
cur = cur[segments[i]];
|
|
4359
|
+
}
|
|
4360
|
+
return cur;
|
|
4361
|
+
};
|
|
4362
|
+
}
|
|
4363
|
+
function traverse(value, depth = Infinity, seen) {
|
|
4364
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
4365
|
+
return value;
|
|
4366
|
+
}
|
|
4367
|
+
seen = seen || /* @__PURE__ */ new Set();
|
|
4368
|
+
if (seen.has(value)) {
|
|
4369
|
+
return value;
|
|
4370
|
+
}
|
|
4371
|
+
seen.add(value);
|
|
4372
|
+
depth--;
|
|
4373
|
+
if (isRef(value)) {
|
|
4374
|
+
traverse(value.value, depth, seen);
|
|
4375
|
+
} else if (isArray$1(value)) {
|
|
4376
|
+
for (let i = 0; i < value.length; i++) {
|
|
4377
|
+
traverse(value[i], depth, seen);
|
|
4378
|
+
}
|
|
4379
|
+
} else if (isSet(value) || isMap(value)) {
|
|
4380
|
+
value.forEach((v) => {
|
|
4381
|
+
traverse(v, depth, seen);
|
|
4382
|
+
});
|
|
4383
|
+
} else if (isPlainObject(value)) {
|
|
4384
|
+
for (const key in value) {
|
|
4385
|
+
traverse(value[key], depth, seen);
|
|
4386
|
+
}
|
|
4387
|
+
for (const key of Object.getOwnPropertySymbols(value)) {
|
|
4388
|
+
if (Object.prototype.propertyIsEnumerable.call(value, key)) {
|
|
4389
|
+
traverse(value[key], depth, seen);
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
}
|
|
4393
|
+
return value;
|
|
4394
|
+
}
|
|
4395
|
+
const getModelModifiers = (props, modelName) => {
|
|
4396
|
+
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
4397
|
+
};
|
|
4398
|
+
function emit(instance, event, ...rawArgs) {
|
|
4399
|
+
if (instance.isUnmounted) return;
|
|
4400
|
+
const props = instance.vnode.props || EMPTY_OBJ;
|
|
4401
|
+
let args = rawArgs;
|
|
4402
|
+
const isModelListener2 = event.startsWith("update:");
|
|
4403
|
+
const modifiers = isModelListener2 && getModelModifiers(props, event.slice(7));
|
|
4404
|
+
if (modifiers) {
|
|
4405
|
+
if (modifiers.trim) {
|
|
4406
|
+
args = rawArgs.map((a) => isString(a) ? a.trim() : a);
|
|
4407
|
+
}
|
|
4408
|
+
if (modifiers.number) {
|
|
4409
|
+
args = rawArgs.map(looseToNumber);
|
|
4410
|
+
}
|
|
4411
|
+
}
|
|
4412
|
+
let handlerName;
|
|
4413
|
+
let handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
|
|
4414
|
+
props[handlerName = toHandlerKey(camelize(event))];
|
|
4415
|
+
if (!handler && isModelListener2) {
|
|
4416
|
+
handler = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
4417
|
+
}
|
|
4418
|
+
if (handler) {
|
|
4419
|
+
callWithAsyncErrorHandling(
|
|
4420
|
+
handler,
|
|
4421
|
+
instance,
|
|
4422
|
+
6,
|
|
4423
|
+
args
|
|
4424
|
+
);
|
|
4425
|
+
}
|
|
4426
|
+
const onceHandler = props[handlerName + `Once`];
|
|
4427
|
+
if (onceHandler) {
|
|
4428
|
+
if (!instance.emitted) {
|
|
4429
|
+
instance.emitted = {};
|
|
4430
|
+
} else if (instance.emitted[handlerName]) {
|
|
4431
|
+
return;
|
|
4432
|
+
}
|
|
4433
|
+
instance.emitted[handlerName] = true;
|
|
4434
|
+
callWithAsyncErrorHandling(
|
|
4435
|
+
onceHandler,
|
|
4436
|
+
instance,
|
|
4437
|
+
6,
|
|
4438
|
+
args
|
|
4439
|
+
);
|
|
4440
|
+
}
|
|
4441
|
+
}
|
|
4442
|
+
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
4443
|
+
const cache = appContext.emitsCache;
|
|
4444
|
+
const cached = cache.get(comp);
|
|
4445
|
+
if (cached !== void 0) {
|
|
4446
|
+
return cached;
|
|
4447
|
+
}
|
|
4448
|
+
const raw = comp.emits;
|
|
4449
|
+
let normalized = {};
|
|
4450
|
+
let hasExtends = false;
|
|
4451
|
+
if (!isFunction(comp)) {
|
|
4452
|
+
const extendEmits = (raw2) => {
|
|
4453
|
+
const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
|
|
4454
|
+
if (normalizedFromExtend) {
|
|
4455
|
+
hasExtends = true;
|
|
4456
|
+
extend(normalized, normalizedFromExtend);
|
|
4457
|
+
}
|
|
4458
|
+
};
|
|
4459
|
+
if (!asMixin && appContext.mixins.length) {
|
|
4460
|
+
appContext.mixins.forEach(extendEmits);
|
|
4461
|
+
}
|
|
4462
|
+
if (comp.extends) {
|
|
4463
|
+
extendEmits(comp.extends);
|
|
4464
|
+
}
|
|
4465
|
+
if (comp.mixins) {
|
|
4466
|
+
comp.mixins.forEach(extendEmits);
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
if (!raw && !hasExtends) {
|
|
4470
|
+
if (isObject(comp)) {
|
|
4471
|
+
cache.set(comp, null);
|
|
4472
|
+
}
|
|
4473
|
+
return null;
|
|
4474
|
+
}
|
|
4475
|
+
if (isArray$1(raw)) {
|
|
4476
|
+
raw.forEach((key) => normalized[key] = null);
|
|
4477
|
+
} else {
|
|
4478
|
+
extend(normalized, raw);
|
|
4479
|
+
}
|
|
4480
|
+
if (isObject(comp)) {
|
|
4481
|
+
cache.set(comp, normalized);
|
|
4482
|
+
}
|
|
4483
|
+
return normalized;
|
|
4484
|
+
}
|
|
4485
|
+
function isEmitListener(options, key) {
|
|
4486
|
+
if (!options || !isOn(key)) {
|
|
4487
|
+
return false;
|
|
4488
|
+
}
|
|
4489
|
+
key = key.slice(2).replace(/Once$/, "");
|
|
4490
|
+
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
4491
|
+
}
|
|
4492
|
+
function markAttrsAccessed() {
|
|
4493
|
+
}
|
|
4494
|
+
function renderComponentRoot(instance) {
|
|
4495
|
+
const {
|
|
4496
|
+
type: Component,
|
|
4497
|
+
vnode,
|
|
4498
|
+
proxy,
|
|
4499
|
+
withProxy,
|
|
4500
|
+
propsOptions: [propsOptions],
|
|
4501
|
+
slots,
|
|
4502
|
+
attrs,
|
|
4503
|
+
emit: emit2,
|
|
4504
|
+
render,
|
|
4505
|
+
renderCache,
|
|
4506
|
+
props,
|
|
4507
|
+
data,
|
|
4508
|
+
setupState,
|
|
4509
|
+
ctx,
|
|
4510
|
+
inheritAttrs
|
|
4511
|
+
} = instance;
|
|
4512
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
4513
|
+
let result;
|
|
4514
|
+
let fallthroughAttrs;
|
|
4515
|
+
try {
|
|
4516
|
+
if (vnode.shapeFlag & 4) {
|
|
4517
|
+
const proxyToUse = withProxy || proxy;
|
|
4518
|
+
const thisProxy = false ? new Proxy(proxyToUse, {
|
|
4519
|
+
get(target, key, receiver) {
|
|
4520
|
+
warn$1(
|
|
4521
|
+
`Property '${String(
|
|
4522
|
+
key
|
|
4523
|
+
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
4524
|
+
);
|
|
4525
|
+
return Reflect.get(target, key, receiver);
|
|
4526
|
+
}
|
|
4527
|
+
}) : proxyToUse;
|
|
4528
|
+
result = normalizeVNode(
|
|
4529
|
+
render.call(
|
|
4530
|
+
thisProxy,
|
|
4531
|
+
proxyToUse,
|
|
4532
|
+
renderCache,
|
|
4533
|
+
false ? shallowReadonly(props) : props,
|
|
4534
|
+
setupState,
|
|
4535
|
+
data,
|
|
4536
|
+
ctx
|
|
4537
|
+
)
|
|
4538
|
+
);
|
|
4539
|
+
fallthroughAttrs = attrs;
|
|
4540
|
+
} else {
|
|
4541
|
+
const render2 = Component;
|
|
4542
|
+
if (false) ;
|
|
4543
|
+
result = normalizeVNode(
|
|
4544
|
+
render2.length > 1 ? render2(
|
|
4545
|
+
false ? shallowReadonly(props) : props,
|
|
4546
|
+
false ? {
|
|
4547
|
+
get attrs() {
|
|
4548
|
+
markAttrsAccessed();
|
|
4549
|
+
return shallowReadonly(attrs);
|
|
4550
|
+
},
|
|
4551
|
+
slots,
|
|
4552
|
+
emit: emit2
|
|
4553
|
+
} : { attrs, slots, emit: emit2 }
|
|
4554
|
+
) : render2(
|
|
4555
|
+
false ? shallowReadonly(props) : props,
|
|
4556
|
+
null
|
|
4557
|
+
)
|
|
4558
|
+
);
|
|
4559
|
+
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
4560
|
+
}
|
|
4561
|
+
} catch (err) {
|
|
4562
|
+
blockStack.length = 0;
|
|
4563
|
+
handleError(err, instance, 1);
|
|
4564
|
+
result = createVNode(Comment);
|
|
4565
|
+
}
|
|
4566
|
+
let root = result;
|
|
4567
|
+
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
4568
|
+
const keys = Object.keys(fallthroughAttrs);
|
|
4569
|
+
const { shapeFlag } = root;
|
|
4570
|
+
if (keys.length) {
|
|
4571
|
+
if (shapeFlag & (1 | 6)) {
|
|
4572
|
+
if (propsOptions && keys.some(isModelListener)) {
|
|
4573
|
+
fallthroughAttrs = filterModelListeners(
|
|
4574
|
+
fallthroughAttrs,
|
|
4575
|
+
propsOptions
|
|
4576
|
+
);
|
|
4550
4577
|
}
|
|
4551
|
-
|
|
4552
|
-
newValue,
|
|
4553
|
-
// pass undefined as the old value when it's changed for the first time
|
|
4554
|
-
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
4555
|
-
onCleanup
|
|
4556
|
-
]);
|
|
4557
|
-
oldValue = newValue;
|
|
4578
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
4558
4579
|
}
|
|
4559
|
-
} else {
|
|
4560
|
-
effect2.run();
|
|
4561
4580
|
}
|
|
4562
|
-
};
|
|
4563
|
-
job.allowRecurse = !!cb;
|
|
4564
|
-
let scheduler;
|
|
4565
|
-
if (flush === "sync") {
|
|
4566
|
-
scheduler = job;
|
|
4567
|
-
} else if (flush === "post") {
|
|
4568
|
-
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
4569
|
-
} else {
|
|
4570
|
-
job.pre = true;
|
|
4571
|
-
if (instance) job.id = instance.uid;
|
|
4572
|
-
scheduler = () => queueJob(job);
|
|
4573
4581
|
}
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
effect2.stop();
|
|
4578
|
-
if (scope) {
|
|
4579
|
-
remove(scope.effects, effect2);
|
|
4580
|
-
}
|
|
4581
|
-
};
|
|
4582
|
-
if (cb) {
|
|
4583
|
-
if (immediate) {
|
|
4584
|
-
job();
|
|
4585
|
-
} else {
|
|
4586
|
-
oldValue = effect2.run();
|
|
4587
|
-
}
|
|
4588
|
-
} else if (flush === "post") {
|
|
4589
|
-
queuePostRenderEffect(
|
|
4590
|
-
effect2.run.bind(effect2),
|
|
4591
|
-
instance && instance.suspense
|
|
4592
|
-
);
|
|
4593
|
-
} else {
|
|
4594
|
-
effect2.run();
|
|
4582
|
+
if (vnode.dirs) {
|
|
4583
|
+
root = cloneVNode(root, null, false, true);
|
|
4584
|
+
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
4595
4585
|
}
|
|
4596
|
-
if (
|
|
4597
|
-
|
|
4586
|
+
if (vnode.transition) {
|
|
4587
|
+
root.transition = vnode.transition;
|
|
4588
|
+
}
|
|
4589
|
+
{
|
|
4590
|
+
result = root;
|
|
4591
|
+
}
|
|
4592
|
+
setCurrentRenderingInstance(prev);
|
|
4593
|
+
return result;
|
|
4598
4594
|
}
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
} else {
|
|
4606
|
-
cb = value.handler;
|
|
4607
|
-
options = value;
|
|
4595
|
+
const getFunctionalFallthrough = (attrs) => {
|
|
4596
|
+
let res;
|
|
4597
|
+
for (const key in attrs) {
|
|
4598
|
+
if (key === "class" || key === "style" || isOn(key)) {
|
|
4599
|
+
(res || (res = {}))[key] = attrs[key];
|
|
4600
|
+
}
|
|
4608
4601
|
}
|
|
4609
|
-
const reset = setCurrentInstance(this);
|
|
4610
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
4611
|
-
reset();
|
|
4612
4602
|
return res;
|
|
4613
|
-
}
|
|
4614
|
-
|
|
4615
|
-
const
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
cur = cur[segments[i]];
|
|
4603
|
+
};
|
|
4604
|
+
const filterModelListeners = (attrs, props) => {
|
|
4605
|
+
const res = {};
|
|
4606
|
+
for (const key in attrs) {
|
|
4607
|
+
if (!isModelListener(key) || !(key.slice(9) in props)) {
|
|
4608
|
+
res[key] = attrs[key];
|
|
4620
4609
|
}
|
|
4621
|
-
return cur;
|
|
4622
|
-
};
|
|
4623
|
-
}
|
|
4624
|
-
function traverse(value, depth = Infinity, seen) {
|
|
4625
|
-
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
4626
|
-
return value;
|
|
4627
4610
|
}
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4611
|
+
return res;
|
|
4612
|
+
};
|
|
4613
|
+
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
4614
|
+
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
4615
|
+
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
4616
|
+
const emits = component.emitsOptions;
|
|
4617
|
+
if (nextVNode.dirs || nextVNode.transition) {
|
|
4618
|
+
return true;
|
|
4631
4619
|
}
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
traverse(value.value, depth, seen);
|
|
4636
|
-
} else if (isArray$1(value)) {
|
|
4637
|
-
for (let i = 0; i < value.length; i++) {
|
|
4638
|
-
traverse(value[i], depth, seen);
|
|
4620
|
+
if (optimized && patchFlag >= 0) {
|
|
4621
|
+
if (patchFlag & 1024) {
|
|
4622
|
+
return true;
|
|
4639
4623
|
}
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4624
|
+
if (patchFlag & 16) {
|
|
4625
|
+
if (!prevProps) {
|
|
4626
|
+
return !!nextProps;
|
|
4627
|
+
}
|
|
4628
|
+
return hasPropsChanged(prevProps, nextProps, emits);
|
|
4629
|
+
} else if (patchFlag & 8) {
|
|
4630
|
+
const dynamicProps = nextVNode.dynamicProps;
|
|
4631
|
+
for (let i = 0; i < dynamicProps.length; i++) {
|
|
4632
|
+
const key = dynamicProps[i];
|
|
4633
|
+
if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) {
|
|
4634
|
+
return true;
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4647
4637
|
}
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4638
|
+
} else {
|
|
4639
|
+
if (prevChildren || nextChildren) {
|
|
4640
|
+
if (!nextChildren || !nextChildren.$stable) {
|
|
4641
|
+
return true;
|
|
4651
4642
|
}
|
|
4652
4643
|
}
|
|
4644
|
+
if (prevProps === nextProps) {
|
|
4645
|
+
return false;
|
|
4646
|
+
}
|
|
4647
|
+
if (!prevProps) {
|
|
4648
|
+
return !!nextProps;
|
|
4649
|
+
}
|
|
4650
|
+
if (!nextProps) {
|
|
4651
|
+
return true;
|
|
4652
|
+
}
|
|
4653
|
+
return hasPropsChanged(prevProps, nextProps, emits);
|
|
4653
4654
|
}
|
|
4654
|
-
return
|
|
4655
|
-
}
|
|
4656
|
-
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
4657
|
-
function onActivated(hook, target) {
|
|
4658
|
-
registerKeepAliveHook(hook, "a", target);
|
|
4655
|
+
return false;
|
|
4659
4656
|
}
|
|
4660
|
-
function
|
|
4661
|
-
|
|
4657
|
+
function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
4658
|
+
const nextKeys = Object.keys(nextProps);
|
|
4659
|
+
if (nextKeys.length !== Object.keys(prevProps).length) {
|
|
4660
|
+
return true;
|
|
4661
|
+
}
|
|
4662
|
+
for (let i = 0; i < nextKeys.length; i++) {
|
|
4663
|
+
const key = nextKeys[i];
|
|
4664
|
+
if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) {
|
|
4665
|
+
return true;
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
return false;
|
|
4662
4669
|
}
|
|
4663
|
-
function
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
return;
|
|
4669
|
-
}
|
|
4670
|
-
current = current.parent;
|
|
4670
|
+
function updateHOCHostEl({ vnode, parent }, el) {
|
|
4671
|
+
while (parent) {
|
|
4672
|
+
const root = parent.subTree;
|
|
4673
|
+
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
4674
|
+
root.el = vnode.el;
|
|
4671
4675
|
}
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
while (current && current.parent) {
|
|
4678
|
-
if (isKeepAlive(current.parent.vnode)) {
|
|
4679
|
-
injectToKeepAliveRoot(wrappedHook, type, target, current);
|
|
4680
|
-
}
|
|
4681
|
-
current = current.parent;
|
|
4676
|
+
if (root === vnode) {
|
|
4677
|
+
(vnode = parent.vnode).el = el;
|
|
4678
|
+
parent = parent.parent;
|
|
4679
|
+
} else {
|
|
4680
|
+
break;
|
|
4682
4681
|
}
|
|
4683
4682
|
}
|
|
4684
4683
|
}
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
onUnmounted(() => {
|
|
4694
|
-
remove(keepAliveRoot[type], injected);
|
|
4695
|
-
}, target);
|
|
4696
|
-
}
|
|
4697
|
-
function setTransitionHooks(vnode, hooks) {
|
|
4698
|
-
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4699
|
-
setTransitionHooks(vnode.component.subTree, hooks);
|
|
4700
|
-
} else if (vnode.shapeFlag & 128) {
|
|
4701
|
-
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
4702
|
-
vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
|
|
4684
|
+
const isSuspense = (type) => type.__isSuspense;
|
|
4685
|
+
function queueEffectWithSuspense(fn, suspense) {
|
|
4686
|
+
if (suspense && suspense.pendingBranch) {
|
|
4687
|
+
if (isArray$1(fn)) {
|
|
4688
|
+
suspense.effects.push(...fn);
|
|
4689
|
+
} else {
|
|
4690
|
+
suspense.effects.push(fn);
|
|
4691
|
+
}
|
|
4703
4692
|
} else {
|
|
4704
|
-
|
|
4693
|
+
queuePostFlushCb(fn);
|
|
4705
4694
|
}
|
|
4706
4695
|
}
|
|
4707
|
-
const isTeleport = (type) => type.__isTeleport;
|
|
4708
4696
|
const Fragment = Symbol.for("v-fgt");
|
|
4709
4697
|
const Text = Symbol.for("v-txt");
|
|
4710
4698
|
const Comment = Symbol.for("v-cmt");
|
|
@@ -4721,6 +4709,9 @@ function closeBlock() {
|
|
|
4721
4709
|
let isBlockTreeEnabled = 1;
|
|
4722
4710
|
function setBlockTracking(value) {
|
|
4723
4711
|
isBlockTreeEnabled += value;
|
|
4712
|
+
if (value < 0 && currentBlock) {
|
|
4713
|
+
currentBlock.hasOnce = true;
|
|
4714
|
+
}
|
|
4724
4715
|
}
|
|
4725
4716
|
function setupBlock(vnode) {
|
|
4726
4717
|
vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null;
|
|
@@ -4792,6 +4783,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
4792
4783
|
el: null,
|
|
4793
4784
|
anchor: null,
|
|
4794
4785
|
target: null,
|
|
4786
|
+
targetStart: null,
|
|
4795
4787
|
targetAnchor: null,
|
|
4796
4788
|
staticCount: 0,
|
|
4797
4789
|
shapeFlag,
|
|
@@ -4898,6 +4890,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
4898
4890
|
slotScopeIds: vnode.slotScopeIds,
|
|
4899
4891
|
children: children,
|
|
4900
4892
|
target: vnode.target,
|
|
4893
|
+
targetStart: vnode.targetStart,
|
|
4901
4894
|
targetAnchor: vnode.targetAnchor,
|
|
4902
4895
|
staticCount: vnode.staticCount,
|
|
4903
4896
|
shapeFlag: vnode.shapeFlag,
|
|
@@ -5086,8 +5079,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
5086
5079
|
refs: EMPTY_OBJ,
|
|
5087
5080
|
setupState: EMPTY_OBJ,
|
|
5088
5081
|
setupContext: null,
|
|
5089
|
-
attrsProxy: null,
|
|
5090
|
-
slotsProxy: null,
|
|
5091
5082
|
// suspense related
|
|
5092
5083
|
suspense,
|
|
5093
5084
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -5163,12 +5154,12 @@ function isStatefulComponent(instance) {
|
|
|
5163
5154
|
return instance.vnode.shapeFlag & 4;
|
|
5164
5155
|
}
|
|
5165
5156
|
let isInSSRComponentSetup = false;
|
|
5166
|
-
function setupComponent(instance, isSSR = false) {
|
|
5157
|
+
function setupComponent(instance, isSSR = false, optimized = false) {
|
|
5167
5158
|
isSSR && setInSSRSetupState(isSSR);
|
|
5168
5159
|
const { props, children } = instance.vnode;
|
|
5169
5160
|
const isStateful = isStatefulComponent(instance);
|
|
5170
5161
|
initProps(instance, props, isStateful, isSSR);
|
|
5171
|
-
initSlots(instance, children);
|
|
5162
|
+
initSlots(instance, children, optimized);
|
|
5172
5163
|
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
|
|
5173
5164
|
isSSR && setInSSRSetupState(false);
|
|
5174
5165
|
return setupResult;
|
|
@@ -5349,12 +5340,12 @@ function h(type, propsOrChildren, children) {
|
|
|
5349
5340
|
return createVNode(type, propsOrChildren, children);
|
|
5350
5341
|
}
|
|
5351
5342
|
}
|
|
5352
|
-
const version = "3.4.
|
|
5343
|
+
const version = "3.4.33";
|
|
5353
5344
|
|
|
5354
5345
|
/* Injected with object hook! */
|
|
5355
5346
|
|
|
5356
5347
|
/**
|
|
5357
|
-
* @vue/runtime-dom v3.4.
|
|
5348
|
+
* @vue/runtime-dom v3.4.33
|
|
5358
5349
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5359
5350
|
* @license MIT
|
|
5360
5351
|
**/
|
|
@@ -5551,12 +5542,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
5551
5542
|
}
|
|
5552
5543
|
}
|
|
5553
5544
|
}
|
|
5554
|
-
function patchDOMProp(el, key, value,
|
|
5545
|
+
function patchDOMProp(el, key, value, parentComponent) {
|
|
5555
5546
|
if (key === "innerHTML" || key === "textContent") {
|
|
5556
|
-
if (
|
|
5557
|
-
|
|
5558
|
-
}
|
|
5559
|
-
el[key] = value == null ? "" : value;
|
|
5547
|
+
if (value == null) return;
|
|
5548
|
+
el[key] = value;
|
|
5560
5549
|
return;
|
|
5561
5550
|
}
|
|
5562
5551
|
const tag = el.tagName;
|
|
@@ -5669,7 +5658,7 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
5669
5658
|
}
|
|
5670
5659
|
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
5671
5660
|
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
5672
|
-
const patchProp = (el, key, prevValue, nextValue, namespace,
|
|
5661
|
+
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
5673
5662
|
const isSVG = namespace === "svg";
|
|
5674
5663
|
if (key === "class") {
|
|
5675
5664
|
patchClass(el, nextValue, isSVG);
|
|
@@ -5680,15 +5669,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
|
|
|
5680
5669
|
patchEvent(el, key, prevValue, nextValue, parentComponent);
|
|
5681
5670
|
}
|
|
5682
5671
|
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
5683
|
-
patchDOMProp(
|
|
5684
|
-
el,
|
|
5685
|
-
key,
|
|
5686
|
-
nextValue,
|
|
5687
|
-
prevChildren,
|
|
5688
|
-
parentComponent,
|
|
5689
|
-
parentSuspense,
|
|
5690
|
-
unmountChildren
|
|
5691
|
-
);
|
|
5672
|
+
patchDOMProp(el, key, nextValue);
|
|
5692
5673
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
5693
5674
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
5694
5675
|
}
|
|
@@ -7700,25 +7681,25 @@ const routes = [
|
|
|
7700
7681
|
{
|
|
7701
7682
|
path: "/",
|
|
7702
7683
|
name: "/",
|
|
7703
|
-
component: () => __vitePreload(() => import('./index-
|
|
7684
|
+
component: () => __vitePreload(() => import('./index-BT3dHazR.js'),true?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
|
|
7704
7685
|
/* no children */
|
|
7705
7686
|
},
|
|
7706
7687
|
{
|
|
7707
7688
|
path: "/about",
|
|
7708
7689
|
name: "/about",
|
|
7709
|
-
component: () => __vitePreload(() => import('./about-
|
|
7690
|
+
component: () => __vitePreload(() => import('./about-DHVIhTBg.js'),true?__vite__mapDeps([3,1]):void 0,import.meta.url)
|
|
7710
7691
|
/* no children */
|
|
7711
7692
|
},
|
|
7712
7693
|
{
|
|
7713
7694
|
path: "/categories",
|
|
7714
7695
|
name: "/categories",
|
|
7715
|
-
component: () => __vitePreload(() => import('./categories-
|
|
7696
|
+
component: () => __vitePreload(() => import('./categories-CPTL0Tg7.js'),true?__vite__mapDeps([4,1]):void 0,import.meta.url)
|
|
7716
7697
|
/* no children */
|
|
7717
7698
|
},
|
|
7718
7699
|
{
|
|
7719
7700
|
path: "/tags",
|
|
7720
7701
|
name: "/tags",
|
|
7721
|
-
component: () => __vitePreload(() => import('./tags-
|
|
7702
|
+
component: () => __vitePreload(() => import('./tags-DPpeDW7I.js'),true?__vite__mapDeps([5,1]):void 0,import.meta.url)
|
|
7722
7703
|
/* no children */
|
|
7723
7704
|
}
|
|
7724
7705
|
];
|