@vue/runtime-core 3.3.3 → 3.3.4
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.
|
@@ -11,7 +11,7 @@ function popWarningContext() {
|
|
|
11
11
|
stack.pop();
|
|
12
12
|
}
|
|
13
13
|
function warn(msg, ...args) {
|
|
14
|
-
if (
|
|
14
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
15
15
|
return;
|
|
16
16
|
pauseTracking();
|
|
17
17
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
@@ -110,7 +110,7 @@ function formatProp(key, value, raw) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function assertNumber(val, type) {
|
|
113
|
-
if (
|
|
113
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
114
114
|
return;
|
|
115
115
|
if (val === void 0) {
|
|
116
116
|
return;
|
|
@@ -182,7 +182,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
182
182
|
if (instance) {
|
|
183
183
|
let cur = instance.parent;
|
|
184
184
|
const exposedInstance = instance.proxy;
|
|
185
|
-
const errorInfo = process.env.NODE_ENV !== "production" ? ErrorTypeStrings[type] : type;
|
|
185
|
+
const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings[type] : type;
|
|
186
186
|
while (cur) {
|
|
187
187
|
const errorCapturedHooks = cur.ec;
|
|
188
188
|
if (errorCapturedHooks) {
|
|
@@ -208,7 +208,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
208
208
|
logError(err, type, contextVNode, throwInDev);
|
|
209
209
|
}
|
|
210
210
|
function logError(err, type, contextVNode, throwInDev = true) {
|
|
211
|
-
if (process.env.NODE_ENV !== "production") {
|
|
211
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
212
212
|
const info = ErrorTypeStrings[type];
|
|
213
213
|
if (contextVNode) {
|
|
214
214
|
pushWarningContext(contextVNode);
|
|
@@ -290,13 +290,13 @@ function queuePostFlushCb(cb) {
|
|
|
290
290
|
queueFlush();
|
|
291
291
|
}
|
|
292
292
|
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
293
|
-
if (process.env.NODE_ENV !== "production") {
|
|
293
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
294
294
|
seen = seen || /* @__PURE__ */ new Map();
|
|
295
295
|
}
|
|
296
296
|
for (; i < queue.length; i++) {
|
|
297
297
|
const cb = queue[i];
|
|
298
298
|
if (cb && cb.pre) {
|
|
299
|
-
if (process.env.NODE_ENV !== "production" && checkRecursiveUpdates(seen, cb)) {
|
|
299
|
+
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
302
|
queue.splice(i, 1);
|
|
@@ -314,12 +314,12 @@ function flushPostFlushCbs(seen) {
|
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
activePostFlushCbs = deduped;
|
|
317
|
-
if (process.env.NODE_ENV !== "production") {
|
|
317
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
318
318
|
seen = seen || /* @__PURE__ */ new Map();
|
|
319
319
|
}
|
|
320
320
|
activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
|
|
321
321
|
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
322
|
-
if (process.env.NODE_ENV !== "production" && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
|
|
322
|
+
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
|
|
323
323
|
continue;
|
|
324
324
|
}
|
|
325
325
|
activePostFlushCbs[postFlushIndex]();
|
|
@@ -342,16 +342,16 @@ const comparator = (a, b) => {
|
|
|
342
342
|
function flushJobs(seen) {
|
|
343
343
|
isFlushPending = false;
|
|
344
344
|
isFlushing = true;
|
|
345
|
-
if (process.env.NODE_ENV !== "production") {
|
|
345
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
346
346
|
seen = seen || /* @__PURE__ */ new Map();
|
|
347
347
|
}
|
|
348
348
|
queue.sort(comparator);
|
|
349
|
-
const check = process.env.NODE_ENV !== "production" ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
|
|
349
|
+
const check = !!(process.env.NODE_ENV !== "production") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
|
|
350
350
|
try {
|
|
351
351
|
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
352
352
|
const job = queue[flushIndex];
|
|
353
353
|
if (job && job.active !== false) {
|
|
354
|
-
if (process.env.NODE_ENV !== "production" && check(job)) {
|
|
354
|
+
if (!!(process.env.NODE_ENV !== "production") && check(job)) {
|
|
355
355
|
continue;
|
|
356
356
|
}
|
|
357
357
|
callWithErrorHandling(job, null, 14);
|
|
@@ -388,7 +388,7 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
388
388
|
|
|
389
389
|
let isHmrUpdating = false;
|
|
390
390
|
const hmrDirtyComponents = /* @__PURE__ */ new Set();
|
|
391
|
-
if (process.env.NODE_ENV !== "production") {
|
|
391
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
392
392
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
393
393
|
createRecord: tryWrap(createRecord),
|
|
394
394
|
rerender: tryWrap(rerender),
|
|
@@ -602,7 +602,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
602
602
|
if (instance.isUnmounted)
|
|
603
603
|
return;
|
|
604
604
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
605
|
-
if (process.env.NODE_ENV !== "production") {
|
|
605
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
606
606
|
const {
|
|
607
607
|
emitsOptions,
|
|
608
608
|
propsOptions: [propsOptions]
|
|
@@ -640,10 +640,10 @@ function emit(instance, event, ...rawArgs) {
|
|
|
640
640
|
args = rawArgs.map(looseToNumber);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
643
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
644
644
|
devtoolsComponentEmit(instance, event, args);
|
|
645
645
|
}
|
|
646
|
-
if (process.env.NODE_ENV !== "production") {
|
|
646
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
647
647
|
const lowerCaseEvent = event.toLowerCase();
|
|
648
648
|
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
|
|
649
649
|
warn(
|
|
@@ -770,7 +770,7 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
770
770
|
setBlockTracking(1);
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
773
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
774
774
|
devtoolsComponentUpdated(ctx);
|
|
775
775
|
}
|
|
776
776
|
return res;
|
|
@@ -806,7 +806,7 @@ function renderComponentRoot(instance) {
|
|
|
806
806
|
let result;
|
|
807
807
|
let fallthroughAttrs;
|
|
808
808
|
const prev = setCurrentRenderingInstance(instance);
|
|
809
|
-
if (process.env.NODE_ENV !== "production") {
|
|
809
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
810
810
|
accessedAttrs = false;
|
|
811
811
|
}
|
|
812
812
|
try {
|
|
@@ -826,13 +826,13 @@ function renderComponentRoot(instance) {
|
|
|
826
826
|
fallthroughAttrs = attrs;
|
|
827
827
|
} else {
|
|
828
828
|
const render2 = Component;
|
|
829
|
-
if (process.env.NODE_ENV !== "production" && attrs === props) {
|
|
829
|
+
if (!!(process.env.NODE_ENV !== "production") && attrs === props) {
|
|
830
830
|
markAttrsAccessed();
|
|
831
831
|
}
|
|
832
832
|
result = normalizeVNode(
|
|
833
833
|
render2.length > 1 ? render2(
|
|
834
834
|
props,
|
|
835
|
-
process.env.NODE_ENV !== "production" ? {
|
|
835
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
|
836
836
|
get attrs() {
|
|
837
837
|
markAttrsAccessed();
|
|
838
838
|
return attrs;
|
|
@@ -855,7 +855,7 @@ function renderComponentRoot(instance) {
|
|
|
855
855
|
}
|
|
856
856
|
let root = result;
|
|
857
857
|
let setRoot = void 0;
|
|
858
|
-
if (process.env.NODE_ENV !== "production" && result.patchFlag > 0 && result.patchFlag & 2048) {
|
|
858
|
+
if (!!(process.env.NODE_ENV !== "production") && result.patchFlag > 0 && result.patchFlag & 2048) {
|
|
859
859
|
[root, setRoot] = getChildRoot(result);
|
|
860
860
|
}
|
|
861
861
|
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
@@ -870,7 +870,7 @@ function renderComponentRoot(instance) {
|
|
|
870
870
|
);
|
|
871
871
|
}
|
|
872
872
|
root = cloneVNode(root, fallthroughAttrs);
|
|
873
|
-
} else if (process.env.NODE_ENV !== "production" && !accessedAttrs && root.type !== Comment) {
|
|
873
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !accessedAttrs && root.type !== Comment) {
|
|
874
874
|
const allAttrs = Object.keys(attrs);
|
|
875
875
|
const eventAttrs = [];
|
|
876
876
|
const extraAttrs = [];
|
|
@@ -898,7 +898,7 @@ function renderComponentRoot(instance) {
|
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
if (vnode.dirs) {
|
|
901
|
-
if (process.env.NODE_ENV !== "production" && !isElementRoot(root)) {
|
|
901
|
+
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
|
|
902
902
|
warn(
|
|
903
903
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
904
904
|
);
|
|
@@ -907,14 +907,14 @@ function renderComponentRoot(instance) {
|
|
|
907
907
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
908
908
|
}
|
|
909
909
|
if (vnode.transition) {
|
|
910
|
-
if (process.env.NODE_ENV !== "production" && !isElementRoot(root)) {
|
|
910
|
+
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
|
|
911
911
|
warn(
|
|
912
912
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
913
913
|
);
|
|
914
914
|
}
|
|
915
915
|
root.transition = vnode.transition;
|
|
916
916
|
}
|
|
917
|
-
if (process.env.NODE_ENV !== "production" && setRoot) {
|
|
917
|
+
if (!!(process.env.NODE_ENV !== "production") && setRoot) {
|
|
918
918
|
setRoot(root);
|
|
919
919
|
} else {
|
|
920
920
|
result = root;
|
|
@@ -986,7 +986,7 @@ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
|
986
986
|
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
987
987
|
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
988
988
|
const emits = component.emitsOptions;
|
|
989
|
-
if (process.env.NODE_ENV !== "production" && (prevChildren || nextChildren) && isHmrUpdating) {
|
|
989
|
+
if (!!(process.env.NODE_ENV !== "production") && (prevChildren || nextChildren) && isHmrUpdating) {
|
|
990
990
|
return true;
|
|
991
991
|
}
|
|
992
992
|
if (nextVNode.dirs || nextVNode.transition) {
|
|
@@ -1298,7 +1298,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotSc
|
|
|
1298
1298
|
}
|
|
1299
1299
|
let hasWarned = false;
|
|
1300
1300
|
function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
|
|
1301
|
-
if (process.env.NODE_ENV !== "production" && true && !hasWarned) {
|
|
1301
|
+
if (!!(process.env.NODE_ENV !== "production") && true && !hasWarned) {
|
|
1302
1302
|
hasWarned = true;
|
|
1303
1303
|
console[console.info ? "info" : "log"](
|
|
1304
1304
|
`<Suspense> is an experimental feature and its API will likely change.`
|
|
@@ -1320,7 +1320,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0;
|
|
1323
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1323
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1324
1324
|
assertNumber(timeout, `Suspense timeout`);
|
|
1325
1325
|
}
|
|
1326
1326
|
const suspense = {
|
|
@@ -1341,7 +1341,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1341
1341
|
isUnmounted: false,
|
|
1342
1342
|
effects: [],
|
|
1343
1343
|
resolve(resume = false, sync = false) {
|
|
1344
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1344
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1345
1345
|
if (!resume && !suspense.pendingBranch) {
|
|
1346
1346
|
throw new Error(
|
|
1347
1347
|
`suspense.resolve() is called without a pending branch.`
|
|
@@ -1472,7 +1472,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1472
1472
|
}
|
|
1473
1473
|
instance.asyncResolved = true;
|
|
1474
1474
|
const { vnode: vnode2 } = instance;
|
|
1475
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1475
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1476
1476
|
pushWarningContext(vnode2);
|
|
1477
1477
|
}
|
|
1478
1478
|
handleSetupResult(instance, asyncSetupResult, false);
|
|
@@ -1498,7 +1498,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1498
1498
|
remove(placeholder);
|
|
1499
1499
|
}
|
|
1500
1500
|
updateHOCHostEl(instance, vnode2.el);
|
|
1501
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1501
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1502
1502
|
popWarningContext();
|
|
1503
1503
|
}
|
|
1504
1504
|
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
@@ -1581,7 +1581,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
if (isArray(s)) {
|
|
1583
1583
|
const singleChild = filterSingleRoot(s);
|
|
1584
|
-
if (process.env.NODE_ENV !== "production" && !singleChild) {
|
|
1584
|
+
if (!!(process.env.NODE_ENV !== "production") && !singleChild) {
|
|
1585
1585
|
warn(`<Suspense> slots expect a single root node.`);
|
|
1586
1586
|
}
|
|
1587
1587
|
s = singleChild;
|
|
@@ -1624,19 +1624,19 @@ function watchPostEffect(effect, options) {
|
|
|
1624
1624
|
return doWatch(
|
|
1625
1625
|
effect,
|
|
1626
1626
|
null,
|
|
1627
|
-
process.env.NODE_ENV !== "production" ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
1627
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
1628
1628
|
);
|
|
1629
1629
|
}
|
|
1630
1630
|
function watchSyncEffect(effect, options) {
|
|
1631
1631
|
return doWatch(
|
|
1632
1632
|
effect,
|
|
1633
1633
|
null,
|
|
1634
|
-
process.env.NODE_ENV !== "production" ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
1634
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
1635
1635
|
);
|
|
1636
1636
|
}
|
|
1637
1637
|
const INITIAL_WATCHER_VALUE = {};
|
|
1638
1638
|
function watch(source, cb, options) {
|
|
1639
|
-
if (process.env.NODE_ENV !== "production" && !isFunction(cb)) {
|
|
1639
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
1640
1640
|
warn(
|
|
1641
1641
|
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
1642
1642
|
);
|
|
@@ -1645,7 +1645,7 @@ function watch(source, cb, options) {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
|
|
1647
1647
|
var _a;
|
|
1648
|
-
if (process.env.NODE_ENV !== "production" && !cb) {
|
|
1648
|
+
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
1649
1649
|
if (immediate !== void 0) {
|
|
1650
1650
|
warn(
|
|
1651
1651
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
@@ -1685,7 +1685,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
1685
1685
|
} else if (isFunction(s)) {
|
|
1686
1686
|
return callWithErrorHandling(s, instance, 2);
|
|
1687
1687
|
} else {
|
|
1688
|
-
process.env.NODE_ENV !== "production" && warnInvalidSource(s);
|
|
1688
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(s);
|
|
1689
1689
|
}
|
|
1690
1690
|
});
|
|
1691
1691
|
} else if (isFunction(source)) {
|
|
@@ -1708,7 +1708,8 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
1710
|
} else {
|
|
1711
|
-
getter = NOOP
|
|
1711
|
+
getter = NOOP;
|
|
1712
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
|
|
1712
1713
|
}
|
|
1713
1714
|
if (cb && deep) {
|
|
1714
1715
|
const baseGetter = getter;
|
|
@@ -1777,7 +1778,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
1777
1778
|
scheduler = () => queueJob(job);
|
|
1778
1779
|
}
|
|
1779
1780
|
const effect = new ReactiveEffect(getter, scheduler);
|
|
1780
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1781
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1781
1782
|
effect.onTrack = onTrack;
|
|
1782
1783
|
effect.onTrigger = onTrigger;
|
|
1783
1784
|
}
|
|
@@ -1870,7 +1871,7 @@ function validateDirectiveName(name) {
|
|
|
1870
1871
|
function withDirectives(vnode, directives) {
|
|
1871
1872
|
const internalInstance = currentRenderingInstance;
|
|
1872
1873
|
if (internalInstance === null) {
|
|
1873
|
-
process.env.NODE_ENV !== "production" && warn(`withDirectives can only be used inside render functions.`);
|
|
1874
|
+
!!(process.env.NODE_ENV !== "production") && warn(`withDirectives can only be used inside render functions.`);
|
|
1874
1875
|
return vnode;
|
|
1875
1876
|
}
|
|
1876
1877
|
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
@@ -1974,7 +1975,7 @@ const BaseTransitionImpl = {
|
|
|
1974
1975
|
let hasFound = false;
|
|
1975
1976
|
for (const c of children) {
|
|
1976
1977
|
if (c.type !== Comment) {
|
|
1977
|
-
if (process.env.NODE_ENV !== "production" && hasFound) {
|
|
1978
|
+
if (!!(process.env.NODE_ENV !== "production") && hasFound) {
|
|
1978
1979
|
warn(
|
|
1979
1980
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
1980
1981
|
);
|
|
@@ -1982,14 +1983,14 @@ const BaseTransitionImpl = {
|
|
|
1982
1983
|
}
|
|
1983
1984
|
child = c;
|
|
1984
1985
|
hasFound = true;
|
|
1985
|
-
if (
|
|
1986
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
1986
1987
|
break;
|
|
1987
1988
|
}
|
|
1988
1989
|
}
|
|
1989
1990
|
}
|
|
1990
1991
|
const rawProps = toRaw(props);
|
|
1991
1992
|
const { mode } = rawProps;
|
|
1992
|
-
if (process.env.NODE_ENV !== "production" && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
1993
|
+
if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
1993
1994
|
warn(`invalid <transition> mode: ${mode}`);
|
|
1994
1995
|
}
|
|
1995
1996
|
if (state.isLeaving) {
|
|
@@ -2295,7 +2296,7 @@ function defineAsyncComponent(source) {
|
|
|
2295
2296
|
if (thisRequest !== pendingRequest && pendingRequest) {
|
|
2296
2297
|
return pendingRequest;
|
|
2297
2298
|
}
|
|
2298
|
-
if (process.env.NODE_ENV !== "production" && !comp) {
|
|
2299
|
+
if (!!(process.env.NODE_ENV !== "production") && !comp) {
|
|
2299
2300
|
warn(
|
|
2300
2301
|
`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
|
|
2301
2302
|
);
|
|
@@ -2303,7 +2304,7 @@ function defineAsyncComponent(source) {
|
|
|
2303
2304
|
if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) {
|
|
2304
2305
|
comp = comp.default;
|
|
2305
2306
|
}
|
|
2306
|
-
if (process.env.NODE_ENV !== "production" && comp && !isObject(comp) && !isFunction(comp)) {
|
|
2307
|
+
if (!!(process.env.NODE_ENV !== "production") && comp && !isObject(comp) && !isFunction(comp)) {
|
|
2307
2308
|
throw new Error(`Invalid async component load result: ${comp}`);
|
|
2308
2309
|
}
|
|
2309
2310
|
resolvedComp = comp;
|
|
@@ -2416,7 +2417,7 @@ const KeepAliveImpl = {
|
|
|
2416
2417
|
const cache = /* @__PURE__ */ new Map();
|
|
2417
2418
|
const keys = /* @__PURE__ */ new Set();
|
|
2418
2419
|
let current = null;
|
|
2419
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
2420
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
2420
2421
|
instance.__v_cache = cache;
|
|
2421
2422
|
}
|
|
2422
2423
|
const parentSuspense = instance.suspense;
|
|
@@ -2453,7 +2454,7 @@ const KeepAliveImpl = {
|
|
|
2453
2454
|
invokeVNodeHook(vnodeHook, instance2.parent, vnode);
|
|
2454
2455
|
}
|
|
2455
2456
|
}, parentSuspense);
|
|
2456
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
2457
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
2457
2458
|
devtoolsComponentAdded(instance2);
|
|
2458
2459
|
}
|
|
2459
2460
|
};
|
|
@@ -2470,7 +2471,7 @@ const KeepAliveImpl = {
|
|
|
2470
2471
|
}
|
|
2471
2472
|
instance2.isDeactivated = true;
|
|
2472
2473
|
}, parentSuspense);
|
|
2473
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
2474
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
2474
2475
|
devtoolsComponentAdded(instance2);
|
|
2475
2476
|
}
|
|
2476
2477
|
};
|
|
@@ -2534,7 +2535,7 @@ const KeepAliveImpl = {
|
|
|
2534
2535
|
const children = slots.default();
|
|
2535
2536
|
const rawVNode = children[0];
|
|
2536
2537
|
if (children.length > 1) {
|
|
2537
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2538
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2538
2539
|
warn(`KeepAlive should contain exactly one component child.`);
|
|
2539
2540
|
}
|
|
2540
2541
|
current = null;
|
|
@@ -2662,7 +2663,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
2662
2663
|
hooks.push(wrappedHook);
|
|
2663
2664
|
}
|
|
2664
2665
|
return wrappedHook;
|
|
2665
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
2666
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
2666
2667
|
const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ""));
|
|
2667
2668
|
warn(
|
|
2668
2669
|
`${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )
|
|
@@ -2729,13 +2730,13 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
2729
2730
|
if (!res && maybeSelfReference) {
|
|
2730
2731
|
return Component;
|
|
2731
2732
|
}
|
|
2732
|
-
if (process.env.NODE_ENV !== "production" && warnMissing && !res) {
|
|
2733
|
+
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
2733
2734
|
const extra = type === COMPONENTS ? `
|
|
2734
2735
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
2735
2736
|
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
2736
2737
|
}
|
|
2737
2738
|
return res;
|
|
2738
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
2739
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
2739
2740
|
warn(
|
|
2740
2741
|
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
2741
2742
|
);
|
|
@@ -2754,7 +2755,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
2754
2755
|
ret[i] = renderItem(source[i], i, void 0, cached && cached[i]);
|
|
2755
2756
|
}
|
|
2756
2757
|
} else if (typeof source === "number") {
|
|
2757
|
-
if (process.env.NODE_ENV !== "production" && !Number.isInteger(source)) {
|
|
2758
|
+
if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
|
|
2758
2759
|
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
2759
2760
|
}
|
|
2760
2761
|
ret = new Array(source);
|
|
@@ -2810,7 +2811,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
2810
2811
|
return createVNode("slot", props, fallback && fallback());
|
|
2811
2812
|
}
|
|
2812
2813
|
let slot = slots[name];
|
|
2813
|
-
if (process.env.NODE_ENV !== "production" && slot && slot.length > 1) {
|
|
2814
|
+
if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
|
|
2814
2815
|
warn(
|
|
2815
2816
|
`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`
|
|
2816
2817
|
);
|
|
@@ -2853,7 +2854,7 @@ function ensureValidVNode(vnodes) {
|
|
|
2853
2854
|
|
|
2854
2855
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
2855
2856
|
const ret = {};
|
|
2856
|
-
if (process.env.NODE_ENV !== "production" && !isObject(obj)) {
|
|
2857
|
+
if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
|
|
2857
2858
|
warn(`v-on with no argument expects an object value.`);
|
|
2858
2859
|
return ret;
|
|
2859
2860
|
}
|
|
@@ -2877,10 +2878,10 @@ const publicPropertiesMap = (
|
|
|
2877
2878
|
$: (i) => i,
|
|
2878
2879
|
$el: (i) => i.vnode.el,
|
|
2879
2880
|
$data: (i) => i.data,
|
|
2880
|
-
$props: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.props) : i.props,
|
|
2881
|
-
$attrs: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.attrs) : i.attrs,
|
|
2882
|
-
$slots: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.slots) : i.slots,
|
|
2883
|
-
$refs: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.refs) : i.refs,
|
|
2881
|
+
$props: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.props) : i.props,
|
|
2882
|
+
$attrs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.attrs) : i.attrs,
|
|
2883
|
+
$slots: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots,
|
|
2884
|
+
$refs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.refs) : i.refs,
|
|
2884
2885
|
$parent: (i) => getPublicInstance(i.parent),
|
|
2885
2886
|
$root: (i) => getPublicInstance(i.root),
|
|
2886
2887
|
$emit: (i) => i.emit,
|
|
@@ -2895,7 +2896,7 @@ const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScript
|
|
|
2895
2896
|
const PublicInstanceProxyHandlers = {
|
|
2896
2897
|
get({ _: instance }, key) {
|
|
2897
2898
|
const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
|
|
2898
|
-
if (process.env.NODE_ENV !== "production" && key === "__isVue") {
|
|
2899
|
+
if (!!(process.env.NODE_ENV !== "production") && key === "__isVue") {
|
|
2899
2900
|
return true;
|
|
2900
2901
|
}
|
|
2901
2902
|
let normalizedProps;
|
|
@@ -2936,8 +2937,9 @@ const PublicInstanceProxyHandlers = {
|
|
|
2936
2937
|
let cssModule, globalProperties;
|
|
2937
2938
|
if (publicGetter) {
|
|
2938
2939
|
if (key === "$attrs") {
|
|
2939
|
-
track(instance, "get", key)
|
|
2940
|
-
|
|
2940
|
+
track(instance, "get", key);
|
|
2941
|
+
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
2942
|
+
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
2941
2943
|
track(instance, "get", key);
|
|
2942
2944
|
}
|
|
2943
2945
|
return publicGetter(instance);
|
|
@@ -2956,7 +2958,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
2956
2958
|
{
|
|
2957
2959
|
return globalProperties[key];
|
|
2958
2960
|
}
|
|
2959
|
-
} else if (process.env.NODE_ENV !== "production" && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
2961
|
+
} else if (!!(process.env.NODE_ENV !== "production") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
2960
2962
|
// to infinite warning loop
|
|
2961
2963
|
key.indexOf("__v") !== 0)) {
|
|
2962
2964
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
@@ -2977,23 +2979,23 @@ const PublicInstanceProxyHandlers = {
|
|
|
2977
2979
|
if (hasSetupBinding(setupState, key)) {
|
|
2978
2980
|
setupState[key] = value;
|
|
2979
2981
|
return true;
|
|
2980
|
-
} else if (process.env.NODE_ENV !== "production" && setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
2982
|
+
} else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
2981
2983
|
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
2982
2984
|
return false;
|
|
2983
2985
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
2984
2986
|
data[key] = value;
|
|
2985
2987
|
return true;
|
|
2986
2988
|
} else if (hasOwn(instance.props, key)) {
|
|
2987
|
-
process.env.NODE_ENV !== "production" && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
2989
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
2988
2990
|
return false;
|
|
2989
2991
|
}
|
|
2990
2992
|
if (key[0] === "$" && key.slice(1) in instance) {
|
|
2991
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
2993
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
2992
2994
|
`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
|
|
2993
2995
|
);
|
|
2994
2996
|
return false;
|
|
2995
2997
|
} else {
|
|
2996
|
-
if (process.env.NODE_ENV !== "production" && key in instance.appContext.config.globalProperties) {
|
|
2998
|
+
if (!!(process.env.NODE_ENV !== "production") && key in instance.appContext.config.globalProperties) {
|
|
2997
2999
|
Object.defineProperty(ctx, key, {
|
|
2998
3000
|
enumerable: true,
|
|
2999
3001
|
configurable: true,
|
|
@@ -3020,7 +3022,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
3020
3022
|
return Reflect.defineProperty(target, key, descriptor);
|
|
3021
3023
|
}
|
|
3022
3024
|
};
|
|
3023
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
3025
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
3024
3026
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
3025
3027
|
warn(
|
|
3026
3028
|
`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
|
|
@@ -3040,7 +3042,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
|
|
|
3040
3042
|
},
|
|
3041
3043
|
has(_, key) {
|
|
3042
3044
|
const has = key[0] !== "_" && !isGloballyWhitelisted(key);
|
|
3043
|
-
if (process.env.NODE_ENV !== "production" && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
3045
|
+
if (!!(process.env.NODE_ENV !== "production") && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
3044
3046
|
warn(
|
|
3045
3047
|
`Property ${JSON.stringify(
|
|
3046
3048
|
key
|
|
@@ -3112,40 +3114,40 @@ const warnRuntimeUsage = (method) => warn(
|
|
|
3112
3114
|
`${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`
|
|
3113
3115
|
);
|
|
3114
3116
|
function defineProps() {
|
|
3115
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3117
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3116
3118
|
warnRuntimeUsage(`defineProps`);
|
|
3117
3119
|
}
|
|
3118
3120
|
return null;
|
|
3119
3121
|
}
|
|
3120
3122
|
function defineEmits() {
|
|
3121
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3123
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3122
3124
|
warnRuntimeUsage(`defineEmits`);
|
|
3123
3125
|
}
|
|
3124
3126
|
return null;
|
|
3125
3127
|
}
|
|
3126
3128
|
function defineExpose(exposed) {
|
|
3127
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3129
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3128
3130
|
warnRuntimeUsage(`defineExpose`);
|
|
3129
3131
|
}
|
|
3130
3132
|
}
|
|
3131
3133
|
function defineOptions(options) {
|
|
3132
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3134
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3133
3135
|
warnRuntimeUsage(`defineOptions`);
|
|
3134
3136
|
}
|
|
3135
3137
|
}
|
|
3136
3138
|
function defineSlots() {
|
|
3137
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3139
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3138
3140
|
warnRuntimeUsage(`defineSlots`);
|
|
3139
3141
|
}
|
|
3140
3142
|
return null;
|
|
3141
3143
|
}
|
|
3142
3144
|
function defineModel() {
|
|
3143
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3145
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3144
3146
|
warnRuntimeUsage("defineModel");
|
|
3145
3147
|
}
|
|
3146
3148
|
}
|
|
3147
3149
|
function withDefaults(props, defaults) {
|
|
3148
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3150
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3149
3151
|
warnRuntimeUsage(`withDefaults`);
|
|
3150
3152
|
}
|
|
3151
3153
|
return null;
|
|
@@ -3158,11 +3160,11 @@ function useAttrs() {
|
|
|
3158
3160
|
}
|
|
3159
3161
|
function useModel(props, name, options) {
|
|
3160
3162
|
const i = getCurrentInstance();
|
|
3161
|
-
if (process.env.NODE_ENV !== "production" && !i) {
|
|
3163
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
3162
3164
|
warn(`useModel() called without active instance.`);
|
|
3163
3165
|
return ref();
|
|
3164
3166
|
}
|
|
3165
|
-
if (process.env.NODE_ENV !== "production" && !i.propsOptions[0][name]) {
|
|
3167
|
+
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
3166
3168
|
warn(`useModel() called with prop "${name}" which is not declared.`);
|
|
3167
3169
|
return ref();
|
|
3168
3170
|
}
|
|
@@ -3192,7 +3194,7 @@ function useModel(props, name, options) {
|
|
|
3192
3194
|
}
|
|
3193
3195
|
function getContext() {
|
|
3194
3196
|
const i = getCurrentInstance();
|
|
3195
|
-
if (process.env.NODE_ENV !== "production" && !i) {
|
|
3197
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
3196
3198
|
warn(`useContext() called without active instance.`);
|
|
3197
3199
|
}
|
|
3198
3200
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
@@ -3217,7 +3219,7 @@ function mergeDefaults(raw, defaults) {
|
|
|
3217
3219
|
}
|
|
3218
3220
|
} else if (opt === null) {
|
|
3219
3221
|
opt = props[key] = { default: defaults[key] };
|
|
3220
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3222
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3221
3223
|
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
3222
3224
|
}
|
|
3223
3225
|
if (opt && defaults[`__skip_${key}`]) {
|
|
@@ -3247,7 +3249,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
3247
3249
|
}
|
|
3248
3250
|
function withAsyncContext(getAwaitable) {
|
|
3249
3251
|
const ctx = getCurrentInstance();
|
|
3250
|
-
if (process.env.NODE_ENV !== "production" && !ctx) {
|
|
3252
|
+
if (!!(process.env.NODE_ENV !== "production") && !ctx) {
|
|
3251
3253
|
warn(
|
|
3252
3254
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
3253
3255
|
);
|
|
@@ -3315,8 +3317,8 @@ function applyOptions(instance) {
|
|
|
3315
3317
|
directives,
|
|
3316
3318
|
filters
|
|
3317
3319
|
} = options;
|
|
3318
|
-
const checkDuplicateProperties = process.env.NODE_ENV !== "production" ? createDuplicateChecker() : null;
|
|
3319
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3320
|
+
const checkDuplicateProperties = !!(process.env.NODE_ENV !== "production") ? createDuplicateChecker() : null;
|
|
3321
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3320
3322
|
const [propsOptions] = instance.propsOptions;
|
|
3321
3323
|
if (propsOptions) {
|
|
3322
3324
|
for (const key in propsOptions) {
|
|
@@ -3331,7 +3333,7 @@ function applyOptions(instance) {
|
|
|
3331
3333
|
for (const key in methods) {
|
|
3332
3334
|
const methodHandler = methods[key];
|
|
3333
3335
|
if (isFunction(methodHandler)) {
|
|
3334
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3336
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3335
3337
|
Object.defineProperty(ctx, key, {
|
|
3336
3338
|
value: methodHandler.bind(publicThis),
|
|
3337
3339
|
configurable: true,
|
|
@@ -3341,10 +3343,10 @@ function applyOptions(instance) {
|
|
|
3341
3343
|
} else {
|
|
3342
3344
|
ctx[key] = methodHandler.bind(publicThis);
|
|
3343
3345
|
}
|
|
3344
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3346
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3345
3347
|
checkDuplicateProperties("Methods" /* METHODS */, key);
|
|
3346
3348
|
}
|
|
3347
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3349
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3348
3350
|
warn(
|
|
3349
3351
|
`Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
|
|
3350
3352
|
);
|
|
@@ -3352,22 +3354,22 @@ function applyOptions(instance) {
|
|
|
3352
3354
|
}
|
|
3353
3355
|
}
|
|
3354
3356
|
if (dataOptions) {
|
|
3355
|
-
if (process.env.NODE_ENV !== "production" && !isFunction(dataOptions)) {
|
|
3357
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(dataOptions)) {
|
|
3356
3358
|
warn(
|
|
3357
3359
|
`The data option must be a function. Plain object usage is no longer supported.`
|
|
3358
3360
|
);
|
|
3359
3361
|
}
|
|
3360
3362
|
const data = dataOptions.call(publicThis, publicThis);
|
|
3361
|
-
if (process.env.NODE_ENV !== "production" && isPromise(data)) {
|
|
3363
|
+
if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) {
|
|
3362
3364
|
warn(
|
|
3363
3365
|
`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
|
|
3364
3366
|
);
|
|
3365
3367
|
}
|
|
3366
3368
|
if (!isObject(data)) {
|
|
3367
|
-
process.env.NODE_ENV !== "production" && warn(`data() should return an object.`);
|
|
3369
|
+
!!(process.env.NODE_ENV !== "production") && warn(`data() should return an object.`);
|
|
3368
3370
|
} else {
|
|
3369
3371
|
instance.data = reactive(data);
|
|
3370
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3372
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3371
3373
|
for (const key in data) {
|
|
3372
3374
|
checkDuplicateProperties("Data" /* DATA */, key);
|
|
3373
3375
|
if (!isReservedPrefix(key[0])) {
|
|
@@ -3387,10 +3389,10 @@ function applyOptions(instance) {
|
|
|
3387
3389
|
for (const key in computedOptions) {
|
|
3388
3390
|
const opt = computedOptions[key];
|
|
3389
3391
|
const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
|
|
3390
|
-
if (process.env.NODE_ENV !== "production" && get === NOOP) {
|
|
3392
|
+
if (!!(process.env.NODE_ENV !== "production") && get === NOOP) {
|
|
3391
3393
|
warn(`Computed property "${key}" has no getter.`);
|
|
3392
3394
|
}
|
|
3393
|
-
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : process.env.NODE_ENV !== "production" ? () => {
|
|
3395
|
+
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : !!(process.env.NODE_ENV !== "production") ? () => {
|
|
3394
3396
|
warn(
|
|
3395
3397
|
`Write operation failed: computed property "${key}" is readonly.`
|
|
3396
3398
|
);
|
|
@@ -3405,7 +3407,7 @@ function applyOptions(instance) {
|
|
|
3405
3407
|
get: () => c.value,
|
|
3406
3408
|
set: (v) => c.value = v
|
|
3407
3409
|
});
|
|
3408
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3410
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3409
3411
|
checkDuplicateProperties("Computed" /* COMPUTED */, key);
|
|
3410
3412
|
}
|
|
3411
3413
|
}
|
|
@@ -3498,7 +3500,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
|
|
|
3498
3500
|
} else {
|
|
3499
3501
|
ctx[key] = injected;
|
|
3500
3502
|
}
|
|
3501
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3503
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3502
3504
|
checkDuplicateProperties("Inject" /* INJECT */, key);
|
|
3503
3505
|
}
|
|
3504
3506
|
}
|
|
@@ -3516,7 +3518,7 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
3516
3518
|
const handler = ctx[raw];
|
|
3517
3519
|
if (isFunction(handler)) {
|
|
3518
3520
|
watch(getter, handler);
|
|
3519
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3521
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3520
3522
|
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
3521
3523
|
}
|
|
3522
3524
|
} else if (isFunction(raw)) {
|
|
@@ -3528,11 +3530,11 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
3528
3530
|
const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
|
|
3529
3531
|
if (isFunction(handler)) {
|
|
3530
3532
|
watch(getter, handler, raw);
|
|
3531
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3533
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3532
3534
|
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
3533
3535
|
}
|
|
3534
3536
|
}
|
|
3535
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3537
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3536
3538
|
warn(`Invalid watch option: "${key}"`, raw);
|
|
3537
3539
|
}
|
|
3538
3540
|
}
|
|
@@ -3578,7 +3580,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
|
|
|
3578
3580
|
}
|
|
3579
3581
|
for (const key in from) {
|
|
3580
3582
|
if (asMixin && key === "expose") {
|
|
3581
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
3583
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
3582
3584
|
`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
|
|
3583
3585
|
);
|
|
3584
3586
|
} else {
|
|
@@ -3706,11 +3708,11 @@ function createAppAPI(render, hydrate) {
|
|
|
3706
3708
|
rootComponent = extend({}, rootComponent);
|
|
3707
3709
|
}
|
|
3708
3710
|
if (rootProps != null && !isObject(rootProps)) {
|
|
3709
|
-
process.env.NODE_ENV !== "production" && warn(`root props passed to app.mount() must be an object.`);
|
|
3711
|
+
!!(process.env.NODE_ENV !== "production") && warn(`root props passed to app.mount() must be an object.`);
|
|
3710
3712
|
rootProps = null;
|
|
3711
3713
|
}
|
|
3712
3714
|
const context = createAppContext();
|
|
3713
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3715
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3714
3716
|
Object.defineProperty(context.config, "unwrapInjectedRef", {
|
|
3715
3717
|
get() {
|
|
3716
3718
|
return true;
|
|
@@ -3736,7 +3738,7 @@ function createAppAPI(render, hydrate) {
|
|
|
3736
3738
|
return context.config;
|
|
3737
3739
|
},
|
|
3738
3740
|
set config(v) {
|
|
3739
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3741
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3740
3742
|
warn(
|
|
3741
3743
|
`app.config cannot be replaced. Modify individual options instead.`
|
|
3742
3744
|
);
|
|
@@ -3744,14 +3746,14 @@ function createAppAPI(render, hydrate) {
|
|
|
3744
3746
|
},
|
|
3745
3747
|
use(plugin, ...options) {
|
|
3746
3748
|
if (installedPlugins.has(plugin)) {
|
|
3747
|
-
process.env.NODE_ENV !== "production" && warn(`Plugin has already been applied to target app.`);
|
|
3749
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Plugin has already been applied to target app.`);
|
|
3748
3750
|
} else if (plugin && isFunction(plugin.install)) {
|
|
3749
3751
|
installedPlugins.add(plugin);
|
|
3750
3752
|
plugin.install(app, ...options);
|
|
3751
3753
|
} else if (isFunction(plugin)) {
|
|
3752
3754
|
installedPlugins.add(plugin);
|
|
3753
3755
|
plugin(app, ...options);
|
|
3754
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3756
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3755
3757
|
warn(
|
|
3756
3758
|
`A plugin must either be a function or an object with an "install" function.`
|
|
3757
3759
|
);
|
|
@@ -3762,37 +3764,37 @@ function createAppAPI(render, hydrate) {
|
|
|
3762
3764
|
if (__VUE_OPTIONS_API__) {
|
|
3763
3765
|
if (!context.mixins.includes(mixin)) {
|
|
3764
3766
|
context.mixins.push(mixin);
|
|
3765
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3767
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3766
3768
|
warn(
|
|
3767
3769
|
"Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
|
|
3768
3770
|
);
|
|
3769
3771
|
}
|
|
3770
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3772
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3771
3773
|
warn("Mixins are only available in builds supporting Options API");
|
|
3772
3774
|
}
|
|
3773
3775
|
return app;
|
|
3774
3776
|
},
|
|
3775
3777
|
component(name, component) {
|
|
3776
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3778
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3777
3779
|
validateComponentName(name, context.config);
|
|
3778
3780
|
}
|
|
3779
3781
|
if (!component) {
|
|
3780
3782
|
return context.components[name];
|
|
3781
3783
|
}
|
|
3782
|
-
if (process.env.NODE_ENV !== "production" && context.components[name]) {
|
|
3784
|
+
if (!!(process.env.NODE_ENV !== "production") && context.components[name]) {
|
|
3783
3785
|
warn(`Component "${name}" has already been registered in target app.`);
|
|
3784
3786
|
}
|
|
3785
3787
|
context.components[name] = component;
|
|
3786
3788
|
return app;
|
|
3787
3789
|
},
|
|
3788
3790
|
directive(name, directive) {
|
|
3789
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3791
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3790
3792
|
validateDirectiveName(name);
|
|
3791
3793
|
}
|
|
3792
3794
|
if (!directive) {
|
|
3793
3795
|
return context.directives[name];
|
|
3794
3796
|
}
|
|
3795
|
-
if (process.env.NODE_ENV !== "production" && context.directives[name]) {
|
|
3797
|
+
if (!!(process.env.NODE_ENV !== "production") && context.directives[name]) {
|
|
3796
3798
|
warn(`Directive "${name}" has already been registered in target app.`);
|
|
3797
3799
|
}
|
|
3798
3800
|
context.directives[name] = directive;
|
|
@@ -3800,7 +3802,7 @@ function createAppAPI(render, hydrate) {
|
|
|
3800
3802
|
},
|
|
3801
3803
|
mount(rootContainer, isHydrate, isSVG) {
|
|
3802
3804
|
if (!isMounted) {
|
|
3803
|
-
if (process.env.NODE_ENV !== "production" && rootContainer.__vue_app__) {
|
|
3805
|
+
if (!!(process.env.NODE_ENV !== "production") && rootContainer.__vue_app__) {
|
|
3804
3806
|
warn(
|
|
3805
3807
|
`There is already an app instance mounted on the host container.
|
|
3806
3808
|
If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
|
|
@@ -3811,7 +3813,7 @@ function createAppAPI(render, hydrate) {
|
|
|
3811
3813
|
rootProps
|
|
3812
3814
|
);
|
|
3813
3815
|
vnode.appContext = context;
|
|
3814
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3816
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3815
3817
|
context.reload = () => {
|
|
3816
3818
|
render(cloneVNode(vnode), rootContainer, isSVG);
|
|
3817
3819
|
};
|
|
@@ -3824,12 +3826,12 @@ function createAppAPI(render, hydrate) {
|
|
|
3824
3826
|
isMounted = true;
|
|
3825
3827
|
app._container = rootContainer;
|
|
3826
3828
|
rootContainer.__vue_app__ = app;
|
|
3827
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
3829
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
3828
3830
|
app._instance = vnode.component;
|
|
3829
3831
|
devtoolsInitApp(app, version);
|
|
3830
3832
|
}
|
|
3831
3833
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
3832
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3834
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3833
3835
|
warn(
|
|
3834
3836
|
`App has already been mounted.
|
|
3835
3837
|
If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
|
|
@@ -3839,17 +3841,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
3839
3841
|
unmount() {
|
|
3840
3842
|
if (isMounted) {
|
|
3841
3843
|
render(null, app._container);
|
|
3842
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
3844
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
3843
3845
|
app._instance = null;
|
|
3844
3846
|
devtoolsUnmountApp(app);
|
|
3845
3847
|
}
|
|
3846
3848
|
delete app._container.__vue_app__;
|
|
3847
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3849
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3848
3850
|
warn(`Cannot unmount an app that is not mounted.`);
|
|
3849
3851
|
}
|
|
3850
3852
|
},
|
|
3851
3853
|
provide(key, value) {
|
|
3852
|
-
if (process.env.NODE_ENV !== "production" && key in context.provides) {
|
|
3854
|
+
if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
|
|
3853
3855
|
warn(
|
|
3854
3856
|
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
3855
3857
|
);
|
|
@@ -3873,7 +3875,7 @@ let currentApp = null;
|
|
|
3873
3875
|
|
|
3874
3876
|
function provide(key, value) {
|
|
3875
3877
|
if (!currentInstance) {
|
|
3876
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3878
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3877
3879
|
warn(`provide() can only be used inside setup().`);
|
|
3878
3880
|
}
|
|
3879
3881
|
} else {
|
|
@@ -3893,10 +3895,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3893
3895
|
return provides[key];
|
|
3894
3896
|
} else if (arguments.length > 1) {
|
|
3895
3897
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3896
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3898
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3897
3899
|
warn(`injection "${String(key)}" not found.`);
|
|
3898
3900
|
}
|
|
3899
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3901
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3900
3902
|
warn(`inject() can only be used inside setup() or functional components.`);
|
|
3901
3903
|
}
|
|
3902
3904
|
}
|
|
@@ -3915,7 +3917,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
|
3915
3917
|
props[key] = void 0;
|
|
3916
3918
|
}
|
|
3917
3919
|
}
|
|
3918
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3920
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3919
3921
|
validateProps(rawProps || {}, props, instance);
|
|
3920
3922
|
}
|
|
3921
3923
|
if (isStateful) {
|
|
@@ -3949,7 +3951,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
3949
3951
|
// always force full diff in dev
|
|
3950
3952
|
// - #1942 if hmr is enabled with sfc component
|
|
3951
3953
|
// - vite#872 non-sfc component used by sfc component
|
|
3952
|
-
!(process.env.NODE_ENV !== "production" && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)
|
|
3954
|
+
!(!!(process.env.NODE_ENV !== "production") && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)
|
|
3953
3955
|
) {
|
|
3954
3956
|
if (patchFlag & 8) {
|
|
3955
3957
|
const propsToUpdate = instance.vnode.dynamicProps;
|
|
@@ -4026,7 +4028,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
4026
4028
|
if (hasAttrsChanged) {
|
|
4027
4029
|
trigger(instance, "set", "$attrs");
|
|
4028
4030
|
}
|
|
4029
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4031
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
4030
4032
|
validateProps(rawProps || {}, props, instance);
|
|
4031
4033
|
}
|
|
4032
4034
|
}
|
|
@@ -4140,7 +4142,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
4140
4142
|
}
|
|
4141
4143
|
if (isArray(raw)) {
|
|
4142
4144
|
for (let i = 0; i < raw.length; i++) {
|
|
4143
|
-
if (process.env.NODE_ENV !== "production" && !isString(raw[i])) {
|
|
4145
|
+
if (!!(process.env.NODE_ENV !== "production") && !isString(raw[i])) {
|
|
4144
4146
|
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
4145
4147
|
}
|
|
4146
4148
|
const normalizedKey = camelize(raw[i]);
|
|
@@ -4149,7 +4151,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
4149
4151
|
}
|
|
4150
4152
|
}
|
|
4151
4153
|
} else if (raw) {
|
|
4152
|
-
if (process.env.NODE_ENV !== "production" && !isObject(raw)) {
|
|
4154
|
+
if (!!(process.env.NODE_ENV !== "production") && !isObject(raw)) {
|
|
4153
4155
|
warn(`invalid props options`, raw);
|
|
4154
4156
|
}
|
|
4155
4157
|
for (const key in raw) {
|
|
@@ -4178,7 +4180,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
4178
4180
|
function validatePropName(key) {
|
|
4179
4181
|
if (key[0] !== "$") {
|
|
4180
4182
|
return true;
|
|
4181
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4183
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4182
4184
|
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
4183
4185
|
}
|
|
4184
4186
|
return false;
|
|
@@ -4305,7 +4307,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
4305
4307
|
return rawSlot;
|
|
4306
4308
|
}
|
|
4307
4309
|
const normalized = withCtx((...args) => {
|
|
4308
|
-
if (process.env.NODE_ENV !== "production" && currentInstance) {
|
|
4310
|
+
if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
|
|
4309
4311
|
warn(
|
|
4310
4312
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
4311
4313
|
);
|
|
@@ -4324,7 +4326,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
4324
4326
|
if (isFunction(value)) {
|
|
4325
4327
|
slots[key] = normalizeSlot(key, value, ctx);
|
|
4326
4328
|
} else if (value != null) {
|
|
4327
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
4329
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
4328
4330
|
warn(
|
|
4329
4331
|
`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
|
|
4330
4332
|
);
|
|
@@ -4335,7 +4337,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
4335
4337
|
}
|
|
4336
4338
|
};
|
|
4337
4339
|
const normalizeVNodeSlots = (instance, children) => {
|
|
4338
|
-
if (process.env.NODE_ENV !== "production" && !isKeepAlive(instance.vnode) && true) {
|
|
4340
|
+
if (!!(process.env.NODE_ENV !== "production") && !isKeepAlive(instance.vnode) && true) {
|
|
4339
4341
|
warn(
|
|
4340
4342
|
`Non-function value encountered for default slot. Prefer function slots for better performance.`
|
|
4341
4343
|
);
|
|
@@ -4369,7 +4371,7 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
4369
4371
|
if (vnode.shapeFlag & 32) {
|
|
4370
4372
|
const type = children._;
|
|
4371
4373
|
if (type) {
|
|
4372
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
4374
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
4373
4375
|
extend(slots, children);
|
|
4374
4376
|
trigger(instance, "set", "$slots");
|
|
4375
4377
|
} else if (optimized && type === 1) {
|
|
@@ -4417,7 +4419,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4417
4419
|
const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
|
|
4418
4420
|
const value = isUnmount ? null : refValue;
|
|
4419
4421
|
const { i: owner, r: ref } = rawRef;
|
|
4420
|
-
if (process.env.NODE_ENV !== "production" && !owner) {
|
|
4422
|
+
if (!!(process.env.NODE_ENV !== "production") && !owner) {
|
|
4421
4423
|
warn(
|
|
4422
4424
|
`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
|
|
4423
4425
|
);
|
|
@@ -4472,7 +4474,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4472
4474
|
ref.value = value;
|
|
4473
4475
|
if (rawRef.k)
|
|
4474
4476
|
refs[rawRef.k] = value;
|
|
4475
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4477
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4476
4478
|
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
4477
4479
|
}
|
|
4478
4480
|
};
|
|
@@ -4482,7 +4484,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4482
4484
|
} else {
|
|
4483
4485
|
doSet();
|
|
4484
4486
|
}
|
|
4485
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4487
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4486
4488
|
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
4487
4489
|
}
|
|
4488
4490
|
}
|
|
@@ -4507,7 +4509,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4507
4509
|
} = rendererInternals;
|
|
4508
4510
|
const hydrate = (vnode, container) => {
|
|
4509
4511
|
if (!container.hasChildNodes()) {
|
|
4510
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
4512
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
4511
4513
|
`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
|
|
4512
4514
|
);
|
|
4513
4515
|
patch(null, vnode, container);
|
|
@@ -4552,7 +4554,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4552
4554
|
}
|
|
4553
4555
|
} else {
|
|
4554
4556
|
if (node.data !== vnode.children) {
|
|
4555
|
-
hasMismatch = true
|
|
4557
|
+
hasMismatch = true;
|
|
4558
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
4556
4559
|
`Hydration text mismatch:
|
|
4557
4560
|
- Client: ${JSON.stringify(node.data)}
|
|
4558
4561
|
- Server: ${JSON.stringify(vnode.children)}`
|
|
@@ -4672,7 +4675,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4672
4675
|
rendererInternals,
|
|
4673
4676
|
hydrateNode
|
|
4674
4677
|
);
|
|
4675
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4678
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4676
4679
|
warn("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
4677
4680
|
}
|
|
4678
4681
|
}
|
|
@@ -4685,7 +4688,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4685
4688
|
optimized = optimized || !!vnode.dynamicChildren;
|
|
4686
4689
|
const { type, props, patchFlag, shapeFlag, dirs } = vnode;
|
|
4687
4690
|
const forcePatchValue = type === "input" && dirs || type === "option";
|
|
4688
|
-
if (process.env.NODE_ENV !== "production" || forcePatchValue || patchFlag !== -1) {
|
|
4691
|
+
if (!!(process.env.NODE_ENV !== "production") || forcePatchValue || patchFlag !== -1) {
|
|
4689
4692
|
if (dirs) {
|
|
4690
4693
|
invokeDirectiveHook(vnode, null, parentComponent, "created");
|
|
4691
4694
|
}
|
|
@@ -4743,7 +4746,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4743
4746
|
let hasWarned = false;
|
|
4744
4747
|
while (next) {
|
|
4745
4748
|
hasMismatch = true;
|
|
4746
|
-
if (process.env.NODE_ENV !== "production" && !hasWarned) {
|
|
4749
|
+
if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
|
|
4747
4750
|
warn(
|
|
4748
4751
|
`Hydration children mismatch in <${vnode.type}>: server rendered element contains more child nodes than client vdom.`
|
|
4749
4752
|
);
|
|
@@ -4755,7 +4758,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4755
4758
|
}
|
|
4756
4759
|
} else if (shapeFlag & 8) {
|
|
4757
4760
|
if (el.textContent !== vnode.children) {
|
|
4758
|
-
hasMismatch = true
|
|
4761
|
+
hasMismatch = true;
|
|
4762
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
4759
4763
|
`Hydration text content mismatch in <${vnode.type}>:
|
|
4760
4764
|
- Client: ${el.textContent}
|
|
4761
4765
|
- Server: ${vnode.children}`
|
|
@@ -4786,7 +4790,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4786
4790
|
continue;
|
|
4787
4791
|
} else {
|
|
4788
4792
|
hasMismatch = true;
|
|
4789
|
-
if (process.env.NODE_ENV !== "production" && !hasWarned) {
|
|
4793
|
+
if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
|
|
4790
4794
|
warn(
|
|
4791
4795
|
`Hydration children mismatch in <${container.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`
|
|
4792
4796
|
);
|
|
@@ -4830,7 +4834,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4830
4834
|
}
|
|
4831
4835
|
};
|
|
4832
4836
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
4833
|
-
hasMismatch = true
|
|
4837
|
+
hasMismatch = true;
|
|
4838
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
4834
4839
|
`Hydration node mismatch:
|
|
4835
4840
|
- Client vnode:`,
|
|
4836
4841
|
vnode.type,
|
|
@@ -4893,7 +4898,7 @@ function startMeasure(instance, type) {
|
|
|
4893
4898
|
if (instance.appContext.config.performance && isSupported()) {
|
|
4894
4899
|
perf.mark(`vue-${type}-${instance.uid}`);
|
|
4895
4900
|
}
|
|
4896
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4901
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4897
4902
|
devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now());
|
|
4898
4903
|
}
|
|
4899
4904
|
}
|
|
@@ -4910,7 +4915,7 @@ function endMeasure(instance, type) {
|
|
|
4910
4915
|
perf.clearMarks(startTag);
|
|
4911
4916
|
perf.clearMarks(endTag);
|
|
4912
4917
|
}
|
|
4913
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4918
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4914
4919
|
devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now());
|
|
4915
4920
|
}
|
|
4916
4921
|
}
|
|
@@ -4930,14 +4935,14 @@ function isSupported() {
|
|
|
4930
4935
|
function initFeatureFlags() {
|
|
4931
4936
|
const needWarn = [];
|
|
4932
4937
|
if (typeof __VUE_OPTIONS_API__ !== "boolean") {
|
|
4933
|
-
process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
4938
|
+
!!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
4934
4939
|
getGlobalThis().__VUE_OPTIONS_API__ = true;
|
|
4935
4940
|
}
|
|
4936
4941
|
if (typeof __VUE_PROD_DEVTOOLS__ !== "boolean") {
|
|
4937
|
-
process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
4942
|
+
!!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
4938
4943
|
getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;
|
|
4939
4944
|
}
|
|
4940
|
-
if (process.env.NODE_ENV !== "production" && needWarn.length) {
|
|
4945
|
+
if (!!(process.env.NODE_ENV !== "production") && needWarn.length) {
|
|
4941
4946
|
const multi = needWarn.length > 1;
|
|
4942
4947
|
console.warn(
|
|
4943
4948
|
`Feature flag${multi ? `s` : ``} ${needWarn.join(", ")} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
@@ -4960,7 +4965,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4960
4965
|
}
|
|
4961
4966
|
const target = getGlobalThis();
|
|
4962
4967
|
target.__VUE__ = true;
|
|
4963
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4968
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4964
4969
|
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
4965
4970
|
}
|
|
4966
4971
|
const {
|
|
@@ -4977,7 +4982,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4977
4982
|
setScopeId: hostSetScopeId = NOOP,
|
|
4978
4983
|
insertStaticContent: hostInsertStaticContent
|
|
4979
4984
|
} = options;
|
|
4980
|
-
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = process.env.NODE_ENV !== "production" && isHmrUpdating ? false : !!n2.dynamicChildren) => {
|
|
4985
|
+
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = !!(process.env.NODE_ENV !== "production") && isHmrUpdating ? false : !!n2.dynamicChildren) => {
|
|
4981
4986
|
if (n1 === n2) {
|
|
4982
4987
|
return;
|
|
4983
4988
|
}
|
|
@@ -5001,7 +5006,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5001
5006
|
case Static:
|
|
5002
5007
|
if (n1 == null) {
|
|
5003
5008
|
mountStaticNode(n2, container, anchor, isSVG);
|
|
5004
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
5009
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5005
5010
|
patchStaticNode(n1, n2, container, isSVG);
|
|
5006
5011
|
}
|
|
5007
5012
|
break;
|
|
@@ -5069,7 +5074,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5069
5074
|
optimized,
|
|
5070
5075
|
internals
|
|
5071
5076
|
);
|
|
5072
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
5077
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5073
5078
|
warn("Invalid VNode type:", type, `(${typeof type})`);
|
|
5074
5079
|
}
|
|
5075
5080
|
}
|
|
@@ -5221,7 +5226,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5221
5226
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
5222
5227
|
}
|
|
5223
5228
|
}
|
|
5224
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
5229
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
5225
5230
|
Object.defineProperty(el, "__vnode", {
|
|
5226
5231
|
value: vnode,
|
|
5227
5232
|
enumerable: false
|
|
@@ -5258,7 +5263,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5258
5263
|
}
|
|
5259
5264
|
if (parentComponent) {
|
|
5260
5265
|
let subTree = parentComponent.subTree;
|
|
5261
|
-
if (process.env.NODE_ENV !== "production" && subTree.patchFlag > 0 && subTree.patchFlag & 2048) {
|
|
5266
|
+
if (!!(process.env.NODE_ENV !== "production") && subTree.patchFlag > 0 && subTree.patchFlag & 2048) {
|
|
5262
5267
|
subTree = filterSingleRoot(subTree.children) || subTree;
|
|
5263
5268
|
}
|
|
5264
5269
|
if (vnode === subTree) {
|
|
@@ -5304,7 +5309,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5304
5309
|
invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
|
|
5305
5310
|
}
|
|
5306
5311
|
parentComponent && toggleRecurse(parentComponent, true);
|
|
5307
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
5312
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
5308
5313
|
patchFlag = 0;
|
|
5309
5314
|
optimized = false;
|
|
5310
5315
|
dynamicChildren = null;
|
|
@@ -5320,7 +5325,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5320
5325
|
areChildrenSVG,
|
|
5321
5326
|
slotScopeIds
|
|
5322
5327
|
);
|
|
5323
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5328
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5324
5329
|
traverseStaticChildren(n1, n2);
|
|
5325
5330
|
}
|
|
5326
5331
|
} else if (!optimized) {
|
|
@@ -5479,7 +5484,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5479
5484
|
const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText("");
|
|
5480
5485
|
const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText("");
|
|
5481
5486
|
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
|
|
5482
|
-
if (process.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
5487
|
+
if (!!(process.env.NODE_ENV !== "production") && // #5523 dev root fragment may inherit directives
|
|
5483
5488
|
(isHmrUpdating || patchFlag & 2048)) {
|
|
5484
5489
|
patchFlag = 0;
|
|
5485
5490
|
optimized = false;
|
|
@@ -5514,7 +5519,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5514
5519
|
isSVG,
|
|
5515
5520
|
slotScopeIds
|
|
5516
5521
|
);
|
|
5517
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5522
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5518
5523
|
traverseStaticChildren(n1, n2);
|
|
5519
5524
|
} else if (
|
|
5520
5525
|
// #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
@@ -5577,10 +5582,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5577
5582
|
parentComponent,
|
|
5578
5583
|
parentSuspense
|
|
5579
5584
|
));
|
|
5580
|
-
if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
|
|
5585
|
+
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
5581
5586
|
registerHMR(instance);
|
|
5582
5587
|
}
|
|
5583
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5588
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5584
5589
|
pushWarningContext(initialVNode);
|
|
5585
5590
|
startMeasure(instance, `mount`);
|
|
5586
5591
|
}
|
|
@@ -5588,11 +5593,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5588
5593
|
instance.ctx.renderer = internals;
|
|
5589
5594
|
}
|
|
5590
5595
|
{
|
|
5591
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5596
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5592
5597
|
startMeasure(instance, `init`);
|
|
5593
5598
|
}
|
|
5594
5599
|
setupComponent(instance);
|
|
5595
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5600
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5596
5601
|
endMeasure(instance, `init`);
|
|
5597
5602
|
}
|
|
5598
5603
|
}
|
|
@@ -5613,7 +5618,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5613
5618
|
isSVG,
|
|
5614
5619
|
optimized
|
|
5615
5620
|
);
|
|
5616
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5621
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5617
5622
|
popWarningContext();
|
|
5618
5623
|
endMeasure(instance, `mount`);
|
|
5619
5624
|
}
|
|
@@ -5622,11 +5627,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5622
5627
|
const instance = n2.component = n1.component;
|
|
5623
5628
|
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
5624
5629
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
5625
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5630
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5626
5631
|
pushWarningContext(n2);
|
|
5627
5632
|
}
|
|
5628
5633
|
updateComponentPreRender(instance, n2, optimized);
|
|
5629
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5634
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5630
5635
|
popWarningContext();
|
|
5631
5636
|
}
|
|
5632
5637
|
return;
|
|
@@ -5657,14 +5662,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5657
5662
|
toggleRecurse(instance, true);
|
|
5658
5663
|
if (el && hydrateNode) {
|
|
5659
5664
|
const hydrateSubTree = () => {
|
|
5660
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5665
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5661
5666
|
startMeasure(instance, `render`);
|
|
5662
5667
|
}
|
|
5663
5668
|
instance.subTree = renderComponentRoot(instance);
|
|
5664
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5669
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5665
5670
|
endMeasure(instance, `render`);
|
|
5666
5671
|
}
|
|
5667
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5672
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5668
5673
|
startMeasure(instance, `hydrate`);
|
|
5669
5674
|
}
|
|
5670
5675
|
hydrateNode(
|
|
@@ -5674,7 +5679,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5674
5679
|
parentSuspense,
|
|
5675
5680
|
null
|
|
5676
5681
|
);
|
|
5677
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5682
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5678
5683
|
endMeasure(instance, `hydrate`);
|
|
5679
5684
|
}
|
|
5680
5685
|
};
|
|
@@ -5690,14 +5695,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5690
5695
|
hydrateSubTree();
|
|
5691
5696
|
}
|
|
5692
5697
|
} else {
|
|
5693
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5698
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5694
5699
|
startMeasure(instance, `render`);
|
|
5695
5700
|
}
|
|
5696
5701
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
5697
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5702
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5698
5703
|
endMeasure(instance, `render`);
|
|
5699
5704
|
}
|
|
5700
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5705
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5701
5706
|
startMeasure(instance, `patch`);
|
|
5702
5707
|
}
|
|
5703
5708
|
patch(
|
|
@@ -5709,7 +5714,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5709
5714
|
parentSuspense,
|
|
5710
5715
|
isSVG
|
|
5711
5716
|
);
|
|
5712
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5717
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5713
5718
|
endMeasure(instance, `patch`);
|
|
5714
5719
|
}
|
|
5715
5720
|
initialVNode.el = subTree.el;
|
|
@@ -5728,7 +5733,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5728
5733
|
instance.a && queuePostRenderEffect(instance.a, parentSuspense);
|
|
5729
5734
|
}
|
|
5730
5735
|
instance.isMounted = true;
|
|
5731
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
5736
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
5732
5737
|
devtoolsComponentAdded(instance);
|
|
5733
5738
|
}
|
|
5734
5739
|
initialVNode = container = anchor = null;
|
|
@@ -5736,7 +5741,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5736
5741
|
let { next, bu, u, parent, vnode } = instance;
|
|
5737
5742
|
let originNext = next;
|
|
5738
5743
|
let vnodeHook;
|
|
5739
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5744
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5740
5745
|
pushWarningContext(next || instance.vnode);
|
|
5741
5746
|
}
|
|
5742
5747
|
toggleRecurse(instance, false);
|
|
@@ -5753,16 +5758,16 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5753
5758
|
invokeVNodeHook(vnodeHook, parent, next, vnode);
|
|
5754
5759
|
}
|
|
5755
5760
|
toggleRecurse(instance, true);
|
|
5756
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5761
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5757
5762
|
startMeasure(instance, `render`);
|
|
5758
5763
|
}
|
|
5759
5764
|
const nextTree = renderComponentRoot(instance);
|
|
5760
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5765
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5761
5766
|
endMeasure(instance, `render`);
|
|
5762
5767
|
}
|
|
5763
5768
|
const prevTree = instance.subTree;
|
|
5764
5769
|
instance.subTree = nextTree;
|
|
5765
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5770
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5766
5771
|
startMeasure(instance, `patch`);
|
|
5767
5772
|
}
|
|
5768
5773
|
patch(
|
|
@@ -5776,7 +5781,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5776
5781
|
parentSuspense,
|
|
5777
5782
|
isSVG
|
|
5778
5783
|
);
|
|
5779
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5784
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5780
5785
|
endMeasure(instance, `patch`);
|
|
5781
5786
|
}
|
|
5782
5787
|
next.el = nextTree.el;
|
|
@@ -5792,10 +5797,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5792
5797
|
parentSuspense
|
|
5793
5798
|
);
|
|
5794
5799
|
}
|
|
5795
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
5800
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
5796
5801
|
devtoolsComponentUpdated(instance);
|
|
5797
5802
|
}
|
|
5798
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5803
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5799
5804
|
popWarningContext();
|
|
5800
5805
|
}
|
|
5801
5806
|
}
|
|
@@ -5809,7 +5814,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5809
5814
|
const update = instance.update = () => effect.run();
|
|
5810
5815
|
update.id = instance.uid;
|
|
5811
5816
|
toggleRecurse(instance, true);
|
|
5812
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5817
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5813
5818
|
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
|
|
5814
5819
|
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
|
|
5815
5820
|
update.ownerInstance = instance;
|
|
@@ -6025,7 +6030,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6025
6030
|
for (i = s2; i <= e2; i++) {
|
|
6026
6031
|
const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
|
|
6027
6032
|
if (nextChild.key != null) {
|
|
6028
|
-
if (process.env.NODE_ENV !== "production" && keyToNewIndexMap.has(nextChild.key)) {
|
|
6033
|
+
if (!!(process.env.NODE_ENV !== "production") && keyToNewIndexMap.has(nextChild.key)) {
|
|
6029
6034
|
warn(
|
|
6030
6035
|
`Duplicate keys found during update:`,
|
|
6031
6036
|
JSON.stringify(nextChild.key),
|
|
@@ -6231,7 +6236,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6231
6236
|
const remove = (vnode) => {
|
|
6232
6237
|
const { type, el, anchor, transition } = vnode;
|
|
6233
6238
|
if (type === Fragment) {
|
|
6234
|
-
if (process.env.NODE_ENV !== "production" && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) {
|
|
6239
|
+
if (!!(process.env.NODE_ENV !== "production") && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) {
|
|
6235
6240
|
vnode.children.forEach((child) => {
|
|
6236
6241
|
if (child.type === Comment) {
|
|
6237
6242
|
hostRemove(child.el);
|
|
@@ -6276,7 +6281,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6276
6281
|
hostRemove(end);
|
|
6277
6282
|
};
|
|
6278
6283
|
const unmountComponent = (instance, parentSuspense, doRemove) => {
|
|
6279
|
-
if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
|
|
6284
|
+
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
6280
6285
|
unregisterHMR(instance);
|
|
6281
6286
|
}
|
|
6282
6287
|
const { bum, scope, update, subTree, um } = instance;
|
|
@@ -6300,7 +6305,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6300
6305
|
parentSuspense.resolve();
|
|
6301
6306
|
}
|
|
6302
6307
|
}
|
|
6303
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6308
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6304
6309
|
devtoolsComponentRemoved(instance);
|
|
6305
6310
|
}
|
|
6306
6311
|
};
|
|
@@ -6376,7 +6381,7 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
6376
6381
|
if (c2.type === Text) {
|
|
6377
6382
|
c2.el = c1.el;
|
|
6378
6383
|
}
|
|
6379
|
-
if (process.env.NODE_ENV !== "production" && c2.type === Comment && !c2.el) {
|
|
6384
|
+
if (!!(process.env.NODE_ENV !== "production") && c2.type === Comment && !c2.el) {
|
|
6380
6385
|
c2.el = c1.el;
|
|
6381
6386
|
}
|
|
6382
6387
|
}
|
|
@@ -6430,21 +6435,21 @@ const resolveTarget = (props, select) => {
|
|
|
6430
6435
|
const targetSelector = props && props.to;
|
|
6431
6436
|
if (isString(targetSelector)) {
|
|
6432
6437
|
if (!select) {
|
|
6433
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
6438
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6434
6439
|
`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
|
|
6435
6440
|
);
|
|
6436
6441
|
return null;
|
|
6437
6442
|
} else {
|
|
6438
6443
|
const target = select(targetSelector);
|
|
6439
6444
|
if (!target) {
|
|
6440
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
6445
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6441
6446
|
`Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
|
|
6442
6447
|
);
|
|
6443
6448
|
}
|
|
6444
6449
|
return target;
|
|
6445
6450
|
}
|
|
6446
6451
|
} else {
|
|
6447
|
-
if (process.env.NODE_ENV !== "production" && !targetSelector && !isTeleportDisabled(props)) {
|
|
6452
|
+
if (!!(process.env.NODE_ENV !== "production") && !targetSelector && !isTeleportDisabled(props)) {
|
|
6448
6453
|
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
6449
6454
|
}
|
|
6450
6455
|
return targetSelector;
|
|
@@ -6461,13 +6466,13 @@ const TeleportImpl = {
|
|
|
6461
6466
|
} = internals;
|
|
6462
6467
|
const disabled = isTeleportDisabled(n2.props);
|
|
6463
6468
|
let { shapeFlag, children, dynamicChildren } = n2;
|
|
6464
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
6469
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
6465
6470
|
optimized = false;
|
|
6466
6471
|
dynamicChildren = null;
|
|
6467
6472
|
}
|
|
6468
6473
|
if (n1 == null) {
|
|
6469
|
-
const placeholder = n2.el = process.env.NODE_ENV !== "production" ? createComment("teleport start") : createText("");
|
|
6470
|
-
const mainAnchor = n2.anchor = process.env.NODE_ENV !== "production" ? createComment("teleport end") : createText("");
|
|
6474
|
+
const placeholder = n2.el = !!(process.env.NODE_ENV !== "production") ? createComment("teleport start") : createText("");
|
|
6475
|
+
const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== "production") ? createComment("teleport end") : createText("");
|
|
6471
6476
|
insert(placeholder, container, anchor);
|
|
6472
6477
|
insert(mainAnchor, container, anchor);
|
|
6473
6478
|
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
@@ -6475,7 +6480,7 @@ const TeleportImpl = {
|
|
|
6475
6480
|
if (target) {
|
|
6476
6481
|
insert(targetAnchor, target);
|
|
6477
6482
|
isSVG = isSVG || isTargetSVG(target);
|
|
6478
|
-
} else if (process.env.NODE_ENV !== "production" && !disabled) {
|
|
6483
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
|
|
6479
6484
|
warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
6480
6485
|
}
|
|
6481
6486
|
const mount = (container2, anchor2) => {
|
|
@@ -6554,7 +6559,7 @@ const TeleportImpl = {
|
|
|
6554
6559
|
internals,
|
|
6555
6560
|
0
|
|
6556
6561
|
);
|
|
6557
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6562
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6558
6563
|
warn(
|
|
6559
6564
|
"Invalid Teleport target on update:",
|
|
6560
6565
|
target,
|
|
@@ -6740,7 +6745,7 @@ function isVNode(value) {
|
|
|
6740
6745
|
return value ? value.__v_isVNode === true : false;
|
|
6741
6746
|
}
|
|
6742
6747
|
function isSameVNodeType(n1, n2) {
|
|
6743
|
-
if (process.env.NODE_ENV !== "production" && n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) {
|
|
6748
|
+
if (!!(process.env.NODE_ENV !== "production") && n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) {
|
|
6744
6749
|
n1.shapeFlag &= ~256;
|
|
6745
6750
|
n2.shapeFlag &= ~512;
|
|
6746
6751
|
return false;
|
|
@@ -6805,7 +6810,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
6805
6810
|
} else if (children) {
|
|
6806
6811
|
vnode.shapeFlag |= isString(children) ? 8 : 16;
|
|
6807
6812
|
}
|
|
6808
|
-
if (process.env.NODE_ENV !== "production" && vnode.key !== vnode.key) {
|
|
6813
|
+
if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
|
|
6809
6814
|
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
6810
6815
|
}
|
|
6811
6816
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
@@ -6821,10 +6826,10 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
6821
6826
|
}
|
|
6822
6827
|
return vnode;
|
|
6823
6828
|
}
|
|
6824
|
-
const createVNode = process.env.NODE_ENV !== "production" ? createVNodeWithArgsTransform : _createVNode;
|
|
6829
|
+
const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
|
|
6825
6830
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
6826
6831
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
6827
|
-
if (process.env.NODE_ENV !== "production" && !type) {
|
|
6832
|
+
if (!!(process.env.NODE_ENV !== "production") && !type) {
|
|
6828
6833
|
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
6829
6834
|
}
|
|
6830
6835
|
type = Comment;
|
|
@@ -6866,7 +6871,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
6866
6871
|
}
|
|
6867
6872
|
}
|
|
6868
6873
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
6869
|
-
if (process.env.NODE_ENV !== "production" && shapeFlag & 4 && isProxy(type)) {
|
|
6874
|
+
if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
|
|
6870
6875
|
type = toRaw(type);
|
|
6871
6876
|
warn(
|
|
6872
6877
|
`Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
|
|
@@ -6908,7 +6913,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
6908
6913
|
) : ref,
|
|
6909
6914
|
scopeId: vnode.scopeId,
|
|
6910
6915
|
slotScopeIds: vnode.slotScopeIds,
|
|
6911
|
-
children: process.env.NODE_ENV !== "production" && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
|
|
6916
|
+
children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
|
|
6912
6917
|
target: vnode.target,
|
|
6913
6918
|
targetAnchor: vnode.targetAnchor,
|
|
6914
6919
|
staticCount: vnode.staticCount,
|
|
@@ -7132,7 +7137,7 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
7132
7137
|
ec: null,
|
|
7133
7138
|
sp: null
|
|
7134
7139
|
};
|
|
7135
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7140
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7136
7141
|
instance.ctx = createDevRenderContext(instance);
|
|
7137
7142
|
} else {
|
|
7138
7143
|
instance.ctx = { _: instance };
|
|
@@ -7196,7 +7201,7 @@ function setupComponent(instance, isSSR = false) {
|
|
|
7196
7201
|
function setupStatefulComponent(instance, isSSR) {
|
|
7197
7202
|
var _a;
|
|
7198
7203
|
const Component = instance.type;
|
|
7199
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7204
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7200
7205
|
if (Component.name) {
|
|
7201
7206
|
validateComponentName(Component.name, instance.appContext.config);
|
|
7202
7207
|
}
|
|
@@ -7220,7 +7225,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
7220
7225
|
}
|
|
7221
7226
|
instance.accessCache = /* @__PURE__ */ Object.create(null);
|
|
7222
7227
|
instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
|
|
7223
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7228
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7224
7229
|
exposePropsOnRenderContext(instance);
|
|
7225
7230
|
}
|
|
7226
7231
|
const { setup } = Component;
|
|
@@ -7232,7 +7237,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
7232
7237
|
setup,
|
|
7233
7238
|
instance,
|
|
7234
7239
|
0,
|
|
7235
|
-
[process.env.NODE_ENV !== "production" ? shallowReadonly(instance.props) : instance.props, setupContext]
|
|
7240
|
+
[!!(process.env.NODE_ENV !== "production") ? shallowReadonly(instance.props) : instance.props, setupContext]
|
|
7236
7241
|
);
|
|
7237
7242
|
resetTracking();
|
|
7238
7243
|
unsetCurrentInstance();
|
|
@@ -7246,7 +7251,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
7246
7251
|
});
|
|
7247
7252
|
} else {
|
|
7248
7253
|
instance.asyncDep = setupResult;
|
|
7249
|
-
if (process.env.NODE_ENV !== "production" && !instance.suspense) {
|
|
7254
|
+
if (!!(process.env.NODE_ENV !== "production") && !instance.suspense) {
|
|
7250
7255
|
const name = (_a = Component.name) != null ? _a : "Anonymous";
|
|
7251
7256
|
warn(
|
|
7252
7257
|
`Component <${name}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
|
|
@@ -7268,19 +7273,19 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
7268
7273
|
instance.render = setupResult;
|
|
7269
7274
|
}
|
|
7270
7275
|
} else if (isObject(setupResult)) {
|
|
7271
|
-
if (process.env.NODE_ENV !== "production" && isVNode(setupResult)) {
|
|
7276
|
+
if (!!(process.env.NODE_ENV !== "production") && isVNode(setupResult)) {
|
|
7272
7277
|
warn(
|
|
7273
7278
|
`setup() should not return VNodes directly - return a render function instead.`
|
|
7274
7279
|
);
|
|
7275
7280
|
}
|
|
7276
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
7281
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7277
7282
|
instance.devtoolsRawSetupState = setupResult;
|
|
7278
7283
|
}
|
|
7279
7284
|
instance.setupState = proxyRefs(setupResult);
|
|
7280
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7285
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7281
7286
|
exposeSetupStateOnRenderContext(instance);
|
|
7282
7287
|
}
|
|
7283
|
-
} else if (process.env.NODE_ENV !== "production" && setupResult !== void 0) {
|
|
7288
|
+
} else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) {
|
|
7284
7289
|
warn(
|
|
7285
7290
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
7286
7291
|
);
|
|
@@ -7304,7 +7309,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
7304
7309
|
if (!isSSR && compile && !Component.render) {
|
|
7305
7310
|
const template = Component.template || resolveMergedOptions(instance).template;
|
|
7306
7311
|
if (template) {
|
|
7307
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7312
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7308
7313
|
startMeasure(instance, `compile`);
|
|
7309
7314
|
}
|
|
7310
7315
|
const { isCustomElement, compilerOptions } = instance.appContext.config;
|
|
@@ -7320,7 +7325,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
7320
7325
|
componentCompilerOptions
|
|
7321
7326
|
);
|
|
7322
7327
|
Component.render = compile(template, finalCompilerOptions);
|
|
7323
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7328
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7324
7329
|
endMeasure(instance, `compile`);
|
|
7325
7330
|
}
|
|
7326
7331
|
}
|
|
@@ -7337,7 +7342,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
7337
7342
|
resetTracking();
|
|
7338
7343
|
unsetCurrentInstance();
|
|
7339
7344
|
}
|
|
7340
|
-
if (process.env.NODE_ENV !== "production" && !Component.render && instance.render === NOOP && !isSSR) {
|
|
7345
|
+
if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) {
|
|
7341
7346
|
if (!compile && Component.template) {
|
|
7342
7347
|
warn(
|
|
7343
7348
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
|
|
@@ -7351,7 +7356,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
7351
7356
|
function getAttrsProxy(instance) {
|
|
7352
7357
|
return instance.attrsProxy || (instance.attrsProxy = new Proxy(
|
|
7353
7358
|
instance.attrs,
|
|
7354
|
-
process.env.NODE_ENV !== "production" ? {
|
|
7359
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
|
7355
7360
|
get(target, key) {
|
|
7356
7361
|
markAttrsAccessed();
|
|
7357
7362
|
track(instance, "get", "$attrs");
|
|
@@ -7383,7 +7388,7 @@ function getSlotsProxy(instance) {
|
|
|
7383
7388
|
}
|
|
7384
7389
|
function createSetupContext(instance) {
|
|
7385
7390
|
const expose = (exposed) => {
|
|
7386
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7391
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7387
7392
|
if (instance.exposed) {
|
|
7388
7393
|
warn(`expose() should be called only once per setup().`);
|
|
7389
7394
|
}
|
|
@@ -7405,7 +7410,7 @@ function createSetupContext(instance) {
|
|
|
7405
7410
|
}
|
|
7406
7411
|
instance.exposed = exposed || {};
|
|
7407
7412
|
};
|
|
7408
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7413
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7409
7414
|
return Object.freeze({
|
|
7410
7415
|
get attrs() {
|
|
7411
7416
|
return getAttrsProxy(instance);
|
|
@@ -7506,7 +7511,7 @@ const useSSRContext = () => {
|
|
|
7506
7511
|
{
|
|
7507
7512
|
const ctx = inject(ssrContextKey);
|
|
7508
7513
|
if (!ctx) {
|
|
7509
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
7514
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7510
7515
|
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
7511
7516
|
);
|
|
7512
7517
|
}
|
|
@@ -7519,7 +7524,7 @@ function isShallow(value) {
|
|
|
7519
7524
|
}
|
|
7520
7525
|
|
|
7521
7526
|
function initCustomFormatter() {
|
|
7522
|
-
if (
|
|
7527
|
+
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
7523
7528
|
return;
|
|
7524
7529
|
}
|
|
7525
7530
|
const vueStyle = { style: "color:#3ba776" };
|
|
@@ -7719,7 +7724,7 @@ function isMemoSame(cached, memo) {
|
|
|
7719
7724
|
return true;
|
|
7720
7725
|
}
|
|
7721
7726
|
|
|
7722
|
-
const version = "3.3.
|
|
7727
|
+
const version = "3.3.4";
|
|
7723
7728
|
const _ssrUtils = {
|
|
7724
7729
|
createComponentInstance,
|
|
7725
7730
|
setupComponent,
|