@vtj/materials 0.8.151 → 0.8.153

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 v3.5.10
2
+ * vue v3.5.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -633,8 +633,14 @@ var Vue = (function (exports) {
633
633
  }
634
634
  let batchDepth = 0;
635
635
  let batchedSub;
636
- function batch(sub) {
636
+ let batchedComputed;
637
+ function batch(sub, isComputed = false) {
637
638
  sub.flags |= 8;
639
+ if (isComputed) {
640
+ sub.next = batchedComputed;
641
+ batchedComputed = sub;
642
+ return;
643
+ }
638
644
  sub.next = batchedSub;
639
645
  batchedSub = sub;
640
646
  }
@@ -645,20 +651,22 @@ var Vue = (function (exports) {
645
651
  if (--batchDepth > 0) {
646
652
  return;
647
653
  }
654
+ if (batchedComputed) {
655
+ let e = batchedComputed;
656
+ batchedComputed = void 0;
657
+ while (e) {
658
+ const next = e.next;
659
+ e.next = void 0;
660
+ e.flags &= ~8;
661
+ e = next;
662
+ }
663
+ }
648
664
  let error;
649
665
  while (batchedSub) {
650
666
  let e = batchedSub;
651
- let next;
652
- while (e) {
653
- if (!(e.flags & 1)) {
654
- e.flags &= ~8;
655
- }
656
- e = e.next;
657
- }
658
- e = batchedSub;
659
667
  batchedSub = void 0;
660
668
  while (e) {
661
- next = e.next;
669
+ const next = e.next;
662
670
  e.next = void 0;
663
671
  e.flags &= ~8;
664
672
  if (e.flags & 1) {
@@ -854,7 +862,6 @@ var Vue = (function (exports) {
854
862
  /**
855
863
  * For object property deps cleanup
856
864
  */
857
- this.target = void 0;
858
865
  this.map = void 0;
859
866
  this.key = void 0;
860
867
  /**
@@ -982,7 +989,6 @@ var Vue = (function (exports) {
982
989
  let dep = depsMap.get(key);
983
990
  if (!dep) {
984
991
  depsMap.set(key, dep = new Dep());
985
- dep.target = target;
986
992
  dep.map = depsMap;
987
993
  dep.key = key;
988
994
  }
@@ -2018,7 +2024,7 @@ var Vue = (function (exports) {
2018
2024
  this.flags |= 16;
2019
2025
  if (!(this.flags & 8) && // avoid infinite self recursion
2020
2026
  activeSub !== this) {
2021
- batch(this);
2027
+ batch(this, true);
2022
2028
  return true;
2023
2029
  }
2024
2030
  }
@@ -2540,10 +2546,8 @@ var Vue = (function (exports) {
2540
2546
  }
2541
2547
  }
2542
2548
 
2543
- let isFlushing = false;
2544
- let isFlushPending = false;
2545
2549
  const queue = [];
2546
- let flushIndex = 0;
2550
+ let flushIndex = -1;
2547
2551
  const pendingPostFlushCbs = [];
2548
2552
  let activePostFlushCbs = null;
2549
2553
  let postFlushIndex = 0;
@@ -2555,7 +2559,7 @@ var Vue = (function (exports) {
2555
2559
  return fn ? p.then(this ? fn.bind(this) : fn) : p;
2556
2560
  }
2557
2561
  function findInsertionIndex(id) {
2558
- let start = isFlushing ? flushIndex + 1 : 0;
2562
+ let start = flushIndex + 1;
2559
2563
  let end = queue.length;
2560
2564
  while (start < end) {
2561
2565
  const middle = start + end >>> 1;
@@ -2584,8 +2588,7 @@ var Vue = (function (exports) {
2584
2588
  }
2585
2589
  }
2586
2590
  function queueFlush() {
2587
- if (!isFlushing && !isFlushPending) {
2588
- isFlushPending = true;
2591
+ if (!currentFlushPromise) {
2589
2592
  currentFlushPromise = resolvedPromise.then(flushJobs);
2590
2593
  }
2591
2594
  }
@@ -2602,7 +2605,7 @@ var Vue = (function (exports) {
2602
2605
  }
2603
2606
  queueFlush();
2604
2607
  }
2605
- function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2608
+ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
2606
2609
  {
2607
2610
  seen = seen || /* @__PURE__ */ new Map();
2608
2611
  }
@@ -2658,8 +2661,6 @@ var Vue = (function (exports) {
2658
2661
  }
2659
2662
  const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
2660
2663
  function flushJobs(seen) {
2661
- isFlushPending = false;
2662
- isFlushing = true;
2663
2664
  {
2664
2665
  seen = seen || /* @__PURE__ */ new Map();
2665
2666
  }
@@ -2691,10 +2692,9 @@ var Vue = (function (exports) {
2691
2692
  job.flags &= ~1;
2692
2693
  }
2693
2694
  }
2694
- flushIndex = 0;
2695
+ flushIndex = -1;
2695
2696
  queue.length = 0;
2696
2697
  flushPostFlushCbs(seen);
2697
- isFlushing = false;
2698
2698
  currentFlushPromise = null;
2699
2699
  if (queue.length || pendingPostFlushCbs.length) {
2700
2700
  flushJobs(seen);
@@ -10482,7 +10482,7 @@ Component that was made reactive: `,
10482
10482
  return true;
10483
10483
  }
10484
10484
 
10485
- const version = "3.5.10";
10485
+ const version = "3.5.11";
10486
10486
  const warn = warn$1 ;
10487
10487
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10488
10488
  const devtools = devtools$1 ;