@vue/compat 3.5.12 → 3.5.14

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.12
2
+ * @vue/compat v3.5.14
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -141,10 +141,9 @@ function parseStringStyle(cssText) {
141
141
  return ret;
142
142
  }
143
143
  function stringifyStyle(styles) {
144
+ if (!styles) return "";
145
+ if (isString(styles)) return styles;
144
146
  let ret = "";
145
- if (!styles || isString(styles)) {
146
- return ret;
147
- }
148
147
  for (const key in styles) {
149
148
  const value = styles[key];
150
149
  if (isString(value) || typeof value === "number") {
@@ -324,6 +323,10 @@ class EffectScope {
324
323
  * @internal
325
324
  */
326
325
  this._active = true;
326
+ /**
327
+ * @internal track `on` calls, allow `on` call multiple times
328
+ */
329
+ this._on = 0;
327
330
  /**
328
331
  * @internal
329
332
  */
@@ -394,28 +397,38 @@ class EffectScope {
394
397
  * @internal
395
398
  */
396
399
  on() {
397
- activeEffectScope = this;
400
+ if (++this._on === 1) {
401
+ this.prevScope = activeEffectScope;
402
+ activeEffectScope = this;
403
+ }
398
404
  }
399
405
  /**
400
406
  * This should only be called on non-detached scopes
401
407
  * @internal
402
408
  */
403
409
  off() {
404
- activeEffectScope = this.parent;
410
+ if (this._on > 0 && --this._on === 0) {
411
+ activeEffectScope = this.prevScope;
412
+ this.prevScope = void 0;
413
+ }
405
414
  }
406
415
  stop(fromParent) {
407
416
  if (this._active) {
417
+ this._active = false;
408
418
  let i, l;
409
419
  for (i = 0, l = this.effects.length; i < l; i++) {
410
420
  this.effects[i].stop();
411
421
  }
422
+ this.effects.length = 0;
412
423
  for (i = 0, l = this.cleanups.length; i < l; i++) {
413
424
  this.cleanups[i]();
414
425
  }
426
+ this.cleanups.length = 0;
415
427
  if (this.scopes) {
416
428
  for (i = 0, l = this.scopes.length; i < l; i++) {
417
429
  this.scopes[i].stop(true);
418
430
  }
431
+ this.scopes.length = 0;
419
432
  }
420
433
  if (!this.detached && this.parent && !fromParent) {
421
434
  const last = this.parent.scopes.pop();
@@ -425,7 +438,6 @@ class EffectScope {
425
438
  }
426
439
  }
427
440
  this.parent = void 0;
428
- this._active = false;
429
441
  }
430
442
  }
431
443
  }
@@ -480,7 +492,7 @@ class ReactiveEffect {
480
492
  }
481
493
  resume() {
482
494
  if (this.flags & 64) {
483
- this.flags &= ~64;
495
+ this.flags &= -65;
484
496
  if (pausedQueueEffects.has(this)) {
485
497
  pausedQueueEffects.delete(this);
486
498
  this.trigger();
@@ -520,7 +532,7 @@ class ReactiveEffect {
520
532
  cleanupDeps(this);
521
533
  activeSub = prevEffect;
522
534
  shouldTrack = prevShouldTrack;
523
- this.flags &= ~2;
535
+ this.flags &= -3;
524
536
  }
525
537
  }
526
538
  stop() {
@@ -531,7 +543,7 @@ class ReactiveEffect {
531
543
  this.deps = this.depsTail = void 0;
532
544
  cleanupEffect(this);
533
545
  this.onStop && this.onStop();
534
- this.flags &= ~1;
546
+ this.flags &= -2;
535
547
  }
536
548
  }
537
549
  trigger() {
@@ -581,7 +593,7 @@ function endBatch() {
581
593
  while (e) {
582
594
  const next = e.next;
583
595
  e.next = void 0;
584
- e.flags &= ~8;
596
+ e.flags &= -9;
585
597
  e = next;
586
598
  }
587
599
  }
@@ -592,7 +604,7 @@ function endBatch() {
592
604
  while (e) {
593
605
  const next = e.next;
594
606
  e.next = void 0;
595
- e.flags &= ~8;
607
+ e.flags &= -9;
596
608
  if (e.flags & 1) {
597
609
  try {
598
610
  ;
@@ -648,17 +660,16 @@ function refreshComputed(computed) {
648
660
  if (computed.flags & 4 && !(computed.flags & 16)) {
649
661
  return;
650
662
  }
651
- computed.flags &= ~16;
663
+ computed.flags &= -17;
652
664
  if (computed.globalVersion === globalVersion) {
653
665
  return;
654
666
  }
655
667
  computed.globalVersion = globalVersion;
656
- const dep = computed.dep;
657
- computed.flags |= 2;
658
- if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
659
- computed.flags &= ~2;
668
+ if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
660
669
  return;
661
670
  }
671
+ computed.flags |= 2;
672
+ const dep = computed.dep;
662
673
  const prevSub = activeSub;
663
674
  const prevShouldTrack = shouldTrack;
664
675
  activeSub = computed;
@@ -667,6 +678,7 @@ function refreshComputed(computed) {
667
678
  prepareDeps(computed);
668
679
  const value = computed.fn(computed._value);
669
680
  if (dep.version === 0 || hasChanged(value, computed._value)) {
681
+ computed.flags |= 128;
670
682
  computed._value = value;
671
683
  dep.version++;
672
684
  }
@@ -677,7 +689,7 @@ function refreshComputed(computed) {
677
689
  activeSub = prevSub;
678
690
  shouldTrack = prevShouldTrack;
679
691
  cleanupDeps(computed);
680
- computed.flags &= ~2;
692
+ computed.flags &= -3;
681
693
  }
682
694
  }
683
695
  function removeSub(link, soft = false) {
@@ -696,7 +708,7 @@ function removeSub(link, soft = false) {
696
708
  if (dep.subs === link) {
697
709
  dep.subs = prevSub;
698
710
  if (!prevSub && dep.computed) {
699
- dep.computed.flags &= ~4;
711
+ dep.computed.flags &= -5;
700
712
  for (let l = dep.computed.deps; l; l = l.nextDep) {
701
713
  removeSub(l, true);
702
714
  }
@@ -1195,6 +1207,7 @@ class BaseReactiveHandler {
1195
1207
  this._isShallow = _isShallow;
1196
1208
  }
1197
1209
  get(target, key, receiver) {
1210
+ if (key === "__v_skip") return target["__v_skip"];
1198
1211
  const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
1199
1212
  if (key === "__v_isReactive") {
1200
1213
  return !isReadonly2;
@@ -1632,14 +1645,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
1632
1645
  if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
1633
1646
  return target;
1634
1647
  }
1635
- const existingProxy = proxyMap.get(target);
1636
- if (existingProxy) {
1637
- return existingProxy;
1638
- }
1639
1648
  const targetType = getTargetType(target);
1640
1649
  if (targetType === 0 /* INVALID */) {
1641
1650
  return target;
1642
1651
  }
1652
+ const existingProxy = proxyMap.get(target);
1653
+ if (existingProxy) {
1654
+ return existingProxy;
1655
+ }
1643
1656
  const proxy = new Proxy(
1644
1657
  target,
1645
1658
  targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
@@ -2037,7 +2050,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
2037
2050
  const scope = getCurrentScope();
2038
2051
  const watchHandle = () => {
2039
2052
  effect.stop();
2040
- if (scope) {
2053
+ if (scope && scope.active) {
2041
2054
  remove(scope.effects, effect);
2042
2055
  }
2043
2056
  };
@@ -2494,11 +2507,11 @@ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
2494
2507
  queue.splice(i, 1);
2495
2508
  i--;
2496
2509
  if (cb.flags & 4) {
2497
- cb.flags &= ~1;
2510
+ cb.flags &= -2;
2498
2511
  }
2499
2512
  cb();
2500
2513
  if (!(cb.flags & 4)) {
2501
- cb.flags &= ~1;
2514
+ cb.flags &= -2;
2502
2515
  }
2503
2516
  }
2504
2517
  }
@@ -2523,10 +2536,10 @@ function flushPostFlushCbs(seen) {
2523
2536
  continue;
2524
2537
  }
2525
2538
  if (cb.flags & 4) {
2526
- cb.flags &= ~1;
2539
+ cb.flags &= -2;
2527
2540
  }
2528
2541
  if (!(cb.flags & 8)) cb();
2529
- cb.flags &= ~1;
2542
+ cb.flags &= -2;
2530
2543
  }
2531
2544
  activePostFlushCbs = null;
2532
2545
  postFlushIndex = 0;
@@ -2562,7 +2575,7 @@ function flushJobs(seen) {
2562
2575
  for (; flushIndex < queue.length; flushIndex++) {
2563
2576
  const job = queue[flushIndex];
2564
2577
  if (job) {
2565
- job.flags &= ~1;
2578
+ job.flags &= -2;
2566
2579
  }
2567
2580
  }
2568
2581
  flushIndex = -1;
@@ -3533,11 +3546,32 @@ const TeleportImpl = {
3533
3546
  updateCssVars(n2, true);
3534
3547
  }
3535
3548
  if (isTeleportDeferred(n2.props)) {
3536
- queuePostRenderEffect(mountToTarget, parentSuspense);
3549
+ queuePostRenderEffect(() => {
3550
+ mountToTarget();
3551
+ n2.el.__isMounted = true;
3552
+ }, parentSuspense);
3537
3553
  } else {
3538
3554
  mountToTarget();
3539
3555
  }
3540
3556
  } else {
3557
+ if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {
3558
+ queuePostRenderEffect(() => {
3559
+ TeleportImpl.process(
3560
+ n1,
3561
+ n2,
3562
+ container,
3563
+ anchor,
3564
+ parentComponent,
3565
+ parentSuspense,
3566
+ namespace,
3567
+ slotScopeIds,
3568
+ optimized,
3569
+ internals
3570
+ );
3571
+ delete n1.el.__isMounted;
3572
+ }, parentSuspense);
3573
+ return;
3574
+ }
3541
3575
  n2.el = n1.el;
3542
3576
  n2.targetStart = n1.targetStart;
3543
3577
  const mainAnchor = n2.anchor = n1.anchor;
@@ -3561,7 +3595,7 @@ const TeleportImpl = {
3561
3595
  namespace,
3562
3596
  slotScopeIds
3563
3597
  );
3564
- traverseStaticChildren(n1, n2, true);
3598
+ traverseStaticChildren(n1, n2, !!!(process.env.NODE_ENV !== "production"));
3565
3599
  } else if (!optimized) {
3566
3600
  patchChildren(
3567
3601
  n1,
@@ -3843,10 +3877,9 @@ const BaseTransitionImpl = {
3843
3877
  if (innerChild.type !== Comment) {
3844
3878
  setTransitionHooks(innerChild, enterHooks);
3845
3879
  }
3846
- const oldChild = instance.subTree;
3847
- const oldInnerChild = oldChild && getInnerChild$1(oldChild);
3880
+ let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
3848
3881
  if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
3849
- const leavingHooks = resolveTransitionHooks(
3882
+ let leavingHooks = resolveTransitionHooks(
3850
3883
  oldInnerChild,
3851
3884
  rawProps,
3852
3885
  state,
@@ -3861,6 +3894,7 @@ const BaseTransitionImpl = {
3861
3894
  instance.update();
3862
3895
  }
3863
3896
  delete leavingHooks.afterLeave;
3897
+ oldInnerChild = void 0;
3864
3898
  };
3865
3899
  return emptyPlaceholder(child);
3866
3900
  } else if (mode === "in-out" && innerChild.type !== Comment) {
@@ -3874,10 +3908,19 @@ const BaseTransitionImpl = {
3874
3908
  earlyRemove();
3875
3909
  el[leaveCbKey] = void 0;
3876
3910
  delete enterHooks.delayedLeave;
3911
+ oldInnerChild = void 0;
3912
+ };
3913
+ enterHooks.delayedLeave = () => {
3914
+ delayedLeave();
3915
+ delete enterHooks.delayedLeave;
3916
+ oldInnerChild = void 0;
3877
3917
  };
3878
- enterHooks.delayedLeave = delayedLeave;
3879
3918
  };
3919
+ } else {
3920
+ oldInnerChild = void 0;
3880
3921
  }
3922
+ } else if (oldInnerChild) {
3923
+ oldInnerChild = void 0;
3881
3924
  }
3882
3925
  return child;
3883
3926
  };
@@ -4072,7 +4115,7 @@ function getInnerChild$1(vnode) {
4072
4115
  }
4073
4116
  return vnode;
4074
4117
  }
4075
- if (!!(process.env.NODE_ENV !== "production") && vnode.component) {
4118
+ if (vnode.component) {
4076
4119
  return vnode.component.subTree;
4077
4120
  }
4078
4121
  const { shapeFlag, children } = vnode;
@@ -4186,6 +4229,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4186
4229
  return;
4187
4230
  }
4188
4231
  if (isAsyncWrapper(vnode) && !isUnmount) {
4232
+ if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) {
4233
+ setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);
4234
+ }
4189
4235
  return;
4190
4236
  }
4191
4237
  const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
@@ -4450,7 +4496,7 @@ function createHydrationFunctions(rendererInternals) {
4450
4496
  getContainerType(container),
4451
4497
  optimized
4452
4498
  );
4453
- if (isAsyncWrapper(vnode)) {
4499
+ if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {
4454
4500
  let subTree;
4455
4501
  if (isFragmentStart) {
4456
4502
  subTree = createVNode(Fragment);
@@ -4730,6 +4776,10 @@ Server rendered element contains fewer child nodes than client vdom.`
4730
4776
  getContainerType(container),
4731
4777
  slotScopeIds
4732
4778
  );
4779
+ if (parentComponent) {
4780
+ parentComponent.vnode.el = vnode.el;
4781
+ updateHOCHostEl(parentComponent, vnode.el);
4782
+ }
4733
4783
  return next;
4734
4784
  };
4735
4785
  const locateClosingAnchor = (node, open = "[", close = "]") => {
@@ -5245,6 +5295,9 @@ const KeepAliveImpl = {
5245
5295
  if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
5246
5296
  devtoolsComponentAdded(instance2);
5247
5297
  }
5298
+ if (!!(process.env.NODE_ENV !== "production") && true) {
5299
+ instance2.__keepAliveStorageContainer = storageContainer;
5300
+ }
5248
5301
  };
5249
5302
  function unmount(vnode) {
5250
5303
  resetShapeFlag(vnode);
@@ -5332,7 +5385,7 @@ const KeepAliveImpl = {
5332
5385
  );
5333
5386
  const { include, exclude, max } = props;
5334
5387
  if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
5335
- vnode.shapeFlag &= ~256;
5388
+ vnode.shapeFlag &= -257;
5336
5389
  current = vnode;
5337
5390
  return rawVNode;
5338
5391
  }
@@ -5423,8 +5476,8 @@ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
5423
5476
  }, target);
5424
5477
  }
5425
5478
  function resetShapeFlag(vnode) {
5426
- vnode.shapeFlag &= ~256;
5427
- vnode.shapeFlag &= ~512;
5479
+ vnode.shapeFlag &= -257;
5480
+ vnode.shapeFlag &= -513;
5428
5481
  }
5429
5482
  function getInnerChild(vnode) {
5430
5483
  return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
@@ -5826,14 +5879,16 @@ function renderList(source, renderItem, cache, index) {
5826
5879
  if (sourceIsArray || isString(source)) {
5827
5880
  const sourceIsReactiveArray = sourceIsArray && isReactive(source);
5828
5881
  let needsWrap = false;
5882
+ let isReadonlySource = false;
5829
5883
  if (sourceIsReactiveArray) {
5830
5884
  needsWrap = !isShallow(source);
5885
+ isReadonlySource = isReadonly(source);
5831
5886
  source = shallowReadArray(source);
5832
5887
  }
5833
5888
  ret = new Array(source.length);
5834
5889
  for (let i = 0, l = source.length; i < l; i++) {
5835
5890
  ret[i] = renderItem(
5836
- needsWrap ? toReactive(source[i]) : source[i],
5891
+ needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
5837
5892
  i,
5838
5893
  void 0,
5839
5894
  cached && cached[i]
@@ -7087,7 +7142,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7087
7142
  return vm;
7088
7143
  }
7089
7144
  }
7090
- Vue.version = `2.6.14-compat:${"3.5.12"}`;
7145
+ Vue.version = `2.6.14-compat:${"3.5.14"}`;
7091
7146
  Vue.config = singletonApp.config;
7092
7147
  Vue.use = (plugin, ...options) => {
7093
7148
  if (plugin && isFunction(plugin.install)) {
@@ -7583,11 +7638,9 @@ function createAppAPI(render, hydrate) {
7583
7638
  }
7584
7639
  if (!!(process.env.NODE_ENV !== "production")) {
7585
7640
  context.reload = () => {
7586
- render(
7587
- cloneVNode(vnode),
7588
- rootContainer,
7589
- namespace
7590
- );
7641
+ const cloned = cloneVNode(vnode);
7642
+ cloned.el = null;
7643
+ render(cloned, rootContainer, namespace);
7591
7644
  };
7592
7645
  }
7593
7646
  if (isHydrate && hydrate) {
@@ -8185,7 +8238,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
8185
8238
  return rawSlot;
8186
8239
  }
8187
8240
  const normalized = withCtx((...args) => {
8188
- if (!!(process.env.NODE_ENV !== "production") && currentInstance && (!ctx || ctx.root === currentInstance.root)) {
8241
+ if (!!(process.env.NODE_ENV !== "production") && currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
8189
8242
  warn$1(
8190
8243
  `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.`
8191
8244
  );
@@ -8224,7 +8277,7 @@ const normalizeVNodeSlots = (instance, children) => {
8224
8277
  };
8225
8278
  const assignSlots = (slots, children, optimized) => {
8226
8279
  for (const key in children) {
8227
- if (optimized || key !== "_") {
8280
+ if (optimized || !isInternalKey(key)) {
8228
8281
  slots[key] = children[key];
8229
8282
  }
8230
8283
  }
@@ -8949,8 +9002,8 @@ function baseCreateRenderer(options, createHydrationFns) {
8949
9002
  endMeasure(instance, `init`);
8950
9003
  }
8951
9004
  }
9005
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
8952
9006
  if (instance.asyncDep) {
8953
- if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
8954
9007
  parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
8955
9008
  if (!initialVNode.el) {
8956
9009
  const placeholder = instance.subTree = createVNode(Comment);
@@ -9536,7 +9589,13 @@ function baseCreateRenderer(options, createHydrationFns) {
9536
9589
  queuePostRenderEffect(() => transition.enter(el), parentSuspense);
9537
9590
  } else {
9538
9591
  const { leave, delayLeave, afterLeave } = transition;
9539
- const remove2 = () => hostInsert(el, container, anchor);
9592
+ const remove2 = () => {
9593
+ if (vnode.ctx.isUnmounted) {
9594
+ hostRemove(el);
9595
+ } else {
9596
+ hostInsert(el, container, anchor);
9597
+ }
9598
+ };
9540
9599
  const performLeave = () => {
9541
9600
  leave(el, () => {
9542
9601
  remove2();
@@ -9569,7 +9628,9 @@ function baseCreateRenderer(options, createHydrationFns) {
9569
9628
  optimized = false;
9570
9629
  }
9571
9630
  if (ref != null) {
9631
+ pauseTracking();
9572
9632
  setRef(ref, null, parentSuspense, vnode, true);
9633
+ resetTracking();
9573
9634
  }
9574
9635
  if (cacheIndex != null) {
9575
9636
  parentComponent.renderCache[cacheIndex] = void 0;
@@ -9681,12 +9742,27 @@ function baseCreateRenderer(options, createHydrationFns) {
9681
9742
  if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
9682
9743
  unregisterHMR(instance);
9683
9744
  }
9684
- const { bum, scope, job, subTree, um, m, a } = instance;
9745
+ const {
9746
+ bum,
9747
+ scope,
9748
+ job,
9749
+ subTree,
9750
+ um,
9751
+ m,
9752
+ a,
9753
+ parent,
9754
+ slots: { __: slotCacheKeys }
9755
+ } = instance;
9685
9756
  invalidateMount(m);
9686
9757
  invalidateMount(a);
9687
9758
  if (bum) {
9688
9759
  invokeArrayFns(bum);
9689
9760
  }
9761
+ if (parent && isArray(slotCacheKeys)) {
9762
+ slotCacheKeys.forEach((v) => {
9763
+ parent.renderCache[v] = void 0;
9764
+ });
9765
+ }
9690
9766
  if (isCompatEnabled("INSTANCE_EVENT_HOOKS", instance)) {
9691
9767
  instance.emit("hook:beforeDestroy");
9692
9768
  }
@@ -9791,8 +9867,8 @@ function toggleRecurse({ effect, job }, allowed) {
9791
9867
  effect.flags |= 32;
9792
9868
  job.flags |= 4;
9793
9869
  } else {
9794
- effect.flags &= ~32;
9795
- job.flags &= ~4;
9870
+ effect.flags &= -33;
9871
+ job.flags &= -5;
9796
9872
  }
9797
9873
  }
9798
9874
  function needTransition(parentSuspense, transition) {
@@ -9816,9 +9892,12 @@ function traverseStaticChildren(n1, n2, shallow = false) {
9816
9892
  if (c2.type === Text) {
9817
9893
  c2.el = c1.el;
9818
9894
  }
9819
- if (!!(process.env.NODE_ENV !== "production") && c2.type === Comment && !c2.el) {
9895
+ if (c2.type === Comment && !c2.el) {
9820
9896
  c2.el = c1.el;
9821
9897
  }
9898
+ if (!!(process.env.NODE_ENV !== "production")) {
9899
+ c2.el && (c2.el.__vnode = c2);
9900
+ }
9822
9901
  }
9823
9902
  }
9824
9903
  }
@@ -10342,7 +10421,7 @@ function renderComponentRoot(instance) {
10342
10421
  }
10343
10422
  if (extraAttrs.length) {
10344
10423
  warn$1(
10345
- `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
10424
+ `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
10346
10425
  );
10347
10426
  }
10348
10427
  if (eventAttrs.length) {
@@ -11203,9 +11282,9 @@ function closeBlock() {
11203
11282
  currentBlock = blockStack[blockStack.length - 1] || null;
11204
11283
  }
11205
11284
  let isBlockTreeEnabled = 1;
11206
- function setBlockTracking(value) {
11285
+ function setBlockTracking(value, inVOnce = false) {
11207
11286
  isBlockTreeEnabled += value;
11208
- if (value < 0 && currentBlock) {
11287
+ if (value < 0 && currentBlock && inVOnce) {
11209
11288
  currentBlock.hasOnce = true;
11210
11289
  }
11211
11290
  }
@@ -11249,8 +11328,8 @@ function isSameVNodeType(n1, n2) {
11249
11328
  if (!!(process.env.NODE_ENV !== "production") && n2.shapeFlag & 6 && n1.component) {
11250
11329
  const dirtyInstances = hmrDirtyComponents.get(n2.type);
11251
11330
  if (dirtyInstances && dirtyInstances.has(n1.component)) {
11252
- n1.shapeFlag &= ~256;
11253
- n2.shapeFlag &= ~512;
11331
+ n1.shapeFlag &= -257;
11332
+ n2.shapeFlag &= -513;
11254
11333
  return false;
11255
11334
  }
11256
11335
  }
@@ -11723,7 +11802,7 @@ function setupComponent(instance, isSSR = false, optimized = false) {
11723
11802
  const { props, children } = instance.vnode;
11724
11803
  const isStateful = isStatefulComponent(instance);
11725
11804
  initProps(instance, props, isStateful, isSSR);
11726
- initSlots(instance, children, optimized);
11805
+ initSlots(instance, children, optimized || isSSR);
11727
11806
  const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
11728
11807
  isSSR && setInSSRSetupState(false);
11729
11808
  return setupResult;
@@ -11850,7 +11929,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
11850
11929
  }
11851
11930
  if (!instance.render) {
11852
11931
  if (!isSSR && compile && !Component.render) {
11853
- const template = instance.vnode.props && instance.vnode.props["inline-template"] || Component.template || resolveMergedOptions(instance).template;
11932
+ const template = instance.vnode.props && instance.vnode.props["inline-template"] || Component.template || __VUE_OPTIONS_API__ && resolveMergedOptions(instance).template;
11854
11933
  if (template) {
11855
11934
  if (!!(process.env.NODE_ENV !== "production")) {
11856
11935
  startMeasure(instance, `compile`);
@@ -12078,13 +12157,15 @@ function initCustomFormatter() {
12078
12157
  if (obj.__isVue) {
12079
12158
  return ["div", vueStyle, `VueInstance`];
12080
12159
  } else if (isRef(obj)) {
12160
+ pauseTracking();
12161
+ const value = obj.value;
12162
+ resetTracking();
12081
12163
  return [
12082
12164
  "div",
12083
12165
  {},
12084
12166
  ["span", vueStyle, genRefFlag(obj)],
12085
12167
  "<",
12086
- // avoid debugger accessing value affecting behavior
12087
- formatValue("_value" in obj ? obj._value : obj),
12168
+ formatValue(value),
12088
12169
  `>`
12089
12170
  ];
12090
12171
  } else if (isReactive(obj)) {
@@ -12265,7 +12346,7 @@ function isMemoSame(cached, memo) {
12265
12346
  return true;
12266
12347
  }
12267
12348
 
12268
- const version = "3.5.12";
12349
+ const version = "3.5.14";
12269
12350
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12270
12351
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12271
12352
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -12475,7 +12556,8 @@ function resolveTransitionProps(rawProps) {
12475
12556
  onAppear = onEnter,
12476
12557
  onAppearCancelled = onEnterCancelled
12477
12558
  } = baseProps;
12478
- const finishEnter = (el, isAppear, done) => {
12559
+ const finishEnter = (el, isAppear, done, isCancelled) => {
12560
+ el._enterCancelled = isCancelled;
12479
12561
  removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
12480
12562
  removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
12481
12563
  done && done();
@@ -12533,8 +12615,13 @@ function resolveTransitionProps(rawProps) {
12533
12615
  if (legacyClassEnabled && legacyLeaveFromClass) {
12534
12616
  addTransitionClass(el, legacyLeaveFromClass);
12535
12617
  }
12536
- addTransitionClass(el, leaveActiveClass);
12537
- forceReflow();
12618
+ if (!el._enterCancelled) {
12619
+ forceReflow();
12620
+ addTransitionClass(el, leaveActiveClass);
12621
+ } else {
12622
+ addTransitionClass(el, leaveActiveClass);
12623
+ forceReflow();
12624
+ }
12538
12625
  nextFrame(() => {
12539
12626
  if (!el._isLeaving) {
12540
12627
  return;
@@ -12551,11 +12638,11 @@ function resolveTransitionProps(rawProps) {
12551
12638
  callHook(onLeave, [el, resolve]);
12552
12639
  },
12553
12640
  onEnterCancelled(el) {
12554
- finishEnter(el, false);
12641
+ finishEnter(el, false, void 0, true);
12555
12642
  callHook(onEnterCancelled, [el]);
12556
12643
  },
12557
12644
  onAppearCancelled(el) {
12558
- finishEnter(el, true);
12645
+ finishEnter(el, true, void 0, true);
12559
12646
  callHook(onAppearCancelled, [el]);
12560
12647
  },
12561
12648
  onLeaveCancelled(el) {
@@ -12775,10 +12862,11 @@ function useCssVars(getter) {
12775
12862
  }
12776
12863
  updateTeleports(vars);
12777
12864
  };
12778
- onBeforeMount(() => {
12779
- watchPostEffect(setVars);
12865
+ onBeforeUpdate(() => {
12866
+ queuePostFlushCb(setVars);
12780
12867
  });
12781
12868
  onMounted(() => {
12869
+ watch(setVars, NOOP, { flush: "post" });
12782
12870
  const ob = new MutationObserver(setVars);
12783
12871
  ob.observe(instance.subTree.el.parentNode, { childList: true });
12784
12872
  onUnmounted(() => ob.disconnect());
@@ -13164,7 +13252,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
13164
13252
  }
13165
13253
  return false;
13166
13254
  }
13167
- if (key === "spellcheck" || key === "draggable" || key === "translate") {
13255
+ if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
13168
13256
  return false;
13169
13257
  }
13170
13258
  if (key === "form") {
@@ -13429,6 +13517,8 @@ class VueElement extends BaseClass {
13429
13517
  this._update();
13430
13518
  }
13431
13519
  if (shouldReflect) {
13520
+ const ob = this._ob;
13521
+ ob && ob.disconnect();
13432
13522
  if (val === true) {
13433
13523
  this.setAttribute(hyphenate(key), "");
13434
13524
  } else if (typeof val === "string" || typeof val === "number") {
@@ -13436,6 +13526,7 @@ class VueElement extends BaseClass {
13436
13526
  } else if (!val) {
13437
13527
  this.removeAttribute(hyphenate(key));
13438
13528
  }
13529
+ ob && ob.observe(this, { attributes: true });
13439
13530
  }
13440
13531
  }
13441
13532
  }
@@ -13653,6 +13744,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
13653
13744
  instance.vnode.el,
13654
13745
  moveClass
13655
13746
  )) {
13747
+ prevChildren = [];
13656
13748
  return;
13657
13749
  }
13658
13750
  prevChildren.forEach(callPendingCbs);
@@ -13676,6 +13768,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
13676
13768
  };
13677
13769
  el.addEventListener("transitionend", cb);
13678
13770
  });
13771
+ prevChildren = [];
13679
13772
  });
13680
13773
  return () => {
13681
13774
  const rawProps = toRaw(props);