@vue/compat 3.3.9 → 3.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.cjs.js CHANGED
@@ -18,8 +18,8 @@ const EMPTY_ARR = Object.freeze([]) ;
18
18
  const NOOP = () => {
19
19
  };
20
20
  const NO = () => false;
21
- const onRE = /^on[^a-z]/;
22
- const isOn = (key) => onRE.test(key);
21
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
22
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
23
23
  const isModelListener = (key) => key.startsWith("onUpdate:");
24
24
  const extend = Object.assign;
25
25
  const remove = (arr, el) => {
@@ -373,20 +373,29 @@ const replacer = (_key, val) => {
373
373
  return replacer(_key, val.value);
374
374
  } else if (isMap(val)) {
375
375
  return {
376
- [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
377
- entries[`${key} =>`] = val2;
378
- return entries;
379
- }, {})
376
+ [`Map(${val.size})`]: [...val.entries()].reduce(
377
+ (entries, [key, val2], i) => {
378
+ entries[stringifySymbol(key, i) + " =>"] = val2;
379
+ return entries;
380
+ },
381
+ {}
382
+ )
380
383
  };
381
384
  } else if (isSet(val)) {
382
385
  return {
383
- [`Set(${val.size})`]: [...val.values()]
386
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
384
387
  };
388
+ } else if (isSymbol(val)) {
389
+ return stringifySymbol(val);
385
390
  } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
386
391
  return String(val);
387
392
  }
388
393
  return val;
389
394
  };
395
+ const stringifySymbol = (v, i = "") => {
396
+ var _a;
397
+ return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
398
+ };
390
399
 
391
400
  function warn$1(msg, ...args) {
392
401
  console.warn(`[Vue warn] ${msg}`, ...args);
@@ -810,8 +819,13 @@ class BaseReactiveHandler {
810
819
  return isReadonly2;
811
820
  } else if (key === "__v_isShallow") {
812
821
  return shallow;
813
- } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
814
- return target;
822
+ } else if (key === "__v_raw") {
823
+ if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
824
+ // this means the reciever is a user proxy of the reactive proxy
825
+ Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
826
+ return target;
827
+ }
828
+ return;
815
829
  }
816
830
  const targetIsArray = isArray(target);
817
831
  if (!isReadonly2) {
@@ -1822,13 +1836,16 @@ function queuePostFlushCb(cb) {
1822
1836
  }
1823
1837
  queueFlush();
1824
1838
  }
1825
- function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
1839
+ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
1826
1840
  {
1827
1841
  seen = seen || /* @__PURE__ */ new Map();
1828
1842
  }
1829
1843
  for (; i < queue.length; i++) {
1830
1844
  const cb = queue[i];
1831
1845
  if (cb && cb.pre) {
1846
+ if (instance && cb.id !== instance.uid) {
1847
+ continue;
1848
+ }
1832
1849
  if (checkRecursiveUpdates(seen, cb)) {
1833
1850
  continue;
1834
1851
  }
@@ -3445,7 +3462,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3445
3462
  if (delayEnter) {
3446
3463
  activeBranch.transition.afterLeave = () => {
3447
3464
  if (pendingId === suspense.pendingId) {
3448
- move(pendingBranch, container2, anchor2, 0);
3465
+ move(
3466
+ pendingBranch,
3467
+ container2,
3468
+ next(activeBranch),
3469
+ 0
3470
+ );
3449
3471
  queuePostFlushCb(effects);
3450
3472
  }
3451
3473
  };
@@ -6369,7 +6391,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6369
6391
  return vm;
6370
6392
  }
6371
6393
  }
6372
- Vue.version = `2.6.14-compat:${"3.3.9"}`;
6394
+ Vue.version = `2.6.14-compat:${"3.3.11"}`;
6373
6395
  Vue.config = singletonApp.config;
6374
6396
  Vue.use = (p, ...options) => {
6375
6397
  if (p && isFunction(p.install)) {
@@ -9007,7 +9029,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9007
9029
  updateProps(instance, nextVNode.props, prevProps, optimized);
9008
9030
  updateSlots(instance, nextVNode.children, optimized);
9009
9031
  pauseTracking();
9010
- flushPreFlushCbs();
9032
+ flushPreFlushCbs(instance);
9011
9033
  resetTracking();
9012
9034
  };
9013
9035
  const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
@@ -10778,9 +10800,9 @@ function initCustomFormatter() {
10778
10800
  return;
10779
10801
  }
10780
10802
  const vueStyle = { style: "color:#3ba776" };
10781
- const numberStyle = { style: "color:#0b1bc9" };
10782
- const stringStyle = { style: "color:#b62e24" };
10783
- const keywordStyle = { style: "color:#9d288c" };
10803
+ const numberStyle = { style: "color:#1677ff" };
10804
+ const stringStyle = { style: "color:#f5222d" };
10805
+ const keywordStyle = { style: "color:#eb2f96" };
10784
10806
  const formatter = {
10785
10807
  header(obj) {
10786
10808
  if (!isObject(obj)) {
@@ -10974,7 +10996,7 @@ function isMemoSame(cached, memo) {
10974
10996
  return true;
10975
10997
  }
10976
10998
 
10977
- const version = "3.3.9";
10999
+ const version = "3.3.11";
10978
11000
  const _ssrUtils = {
10979
11001
  createComponentInstance,
10980
11002
  setupComponent,
@@ -11688,7 +11710,8 @@ function patchStopImmediatePropagation(e, value) {
11688
11710
  }
11689
11711
  }
11690
11712
 
11691
- const nativeOnRE = /^on[a-z]/;
11713
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
11714
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
11692
11715
  const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
11693
11716
  if (key === "class") {
11694
11717
  patchClass(el, nextValue, isSVG);
@@ -11722,7 +11745,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
11722
11745
  if (key === "innerHTML" || key === "textContent") {
11723
11746
  return true;
11724
11747
  }
11725
- if (key in el && nativeOnRE.test(key) && isFunction(value)) {
11748
+ if (key in el && isNativeOn(key) && isFunction(value)) {
11726
11749
  return true;
11727
11750
  }
11728
11751
  return false;
@@ -11739,7 +11762,13 @@ function shouldSetAsProp(el, key, value, isSVG) {
11739
11762
  if (key === "type" && el.tagName === "TEXTAREA") {
11740
11763
  return false;
11741
11764
  }
11742
- if (nativeOnRE.test(key) && isString(value)) {
11765
+ if (key === "width" || key === "height") {
11766
+ const tag = el.tagName;
11767
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
11768
+ return false;
11769
+ }
11770
+ }
11771
+ if (isNativeOn(key) && isString(value)) {
11743
11772
  return false;
11744
11773
  }
11745
11774
  return key in el;
@@ -12408,14 +12437,14 @@ const modifierGuards = {
12408
12437
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
12409
12438
  };
12410
12439
  const withModifiers = (fn, modifiers) => {
12411
- return (event, ...args) => {
12440
+ return fn._withMods || (fn._withMods = (event, ...args) => {
12412
12441
  for (let i = 0; i < modifiers.length; i++) {
12413
12442
  const guard = modifierGuards[modifiers[i]];
12414
12443
  if (guard && guard(event, modifiers))
12415
12444
  return;
12416
12445
  }
12417
12446
  return fn(event, ...args);
12418
- };
12447
+ });
12419
12448
  };
12420
12449
  const keyNames = {
12421
12450
  esc: "escape",
@@ -12443,7 +12472,7 @@ const withKeys = (fn, modifiers) => {
12443
12472
  );
12444
12473
  }
12445
12474
  }
12446
- return (event) => {
12475
+ return fn._withKeys || (fn._withKeys = (event) => {
12447
12476
  if (!("key" in event)) {
12448
12477
  return;
12449
12478
  }
@@ -12471,7 +12500,7 @@ const withKeys = (fn, modifiers) => {
12471
12500
  }
12472
12501
  }
12473
12502
  }
12474
- };
12503
+ });
12475
12504
  };
12476
12505
 
12477
12506
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
@@ -16957,6 +16986,10 @@ function resolveSetupReference(name, context) {
16957
16986
  `${context.helperString(UNREF)}(${fromMaybeRef})`
16958
16987
  ) : `$setup[${JSON.stringify(fromMaybeRef)}]`;
16959
16988
  }
16989
+ const fromProps = checkType("props");
16990
+ if (fromProps) {
16991
+ return `${context.helperString(UNREF)}(${context.inline ? "__props" : "$props"}[${JSON.stringify(fromProps)}])`;
16992
+ }
16960
16993
  }
16961
16994
  function buildProps(node, context, props = node.props, isComponent, isDynamicComponent, ssr = false) {
16962
16995
  const { tag, loc: elementLoc, children } = node;
@@ -16997,6 +17030,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
16997
17030
  if (isEventHandler && isReservedProp(name)) {
16998
17031
  hasVnodeHook = true;
16999
17032
  }
17033
+ if (isEventHandler && value.type === 14) {
17034
+ value = value.arguments[0];
17035
+ }
17000
17036
  if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
17001
17037
  return;
17002
17038
  }
@@ -18,8 +18,8 @@ const EMPTY_ARR = [];
18
18
  const NOOP = () => {
19
19
  };
20
20
  const NO = () => false;
21
- const onRE = /^on[^a-z]/;
22
- const isOn = (key) => onRE.test(key);
21
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
22
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
23
23
  const isModelListener = (key) => key.startsWith("onUpdate:");
24
24
  const extend = Object.assign;
25
25
  const remove = (arr, el) => {
@@ -310,20 +310,29 @@ const replacer = (_key, val) => {
310
310
  return replacer(_key, val.value);
311
311
  } else if (isMap(val)) {
312
312
  return {
313
- [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
314
- entries[`${key} =>`] = val2;
315
- return entries;
316
- }, {})
313
+ [`Map(${val.size})`]: [...val.entries()].reduce(
314
+ (entries, [key, val2], i) => {
315
+ entries[stringifySymbol(key, i) + " =>"] = val2;
316
+ return entries;
317
+ },
318
+ {}
319
+ )
317
320
  };
318
321
  } else if (isSet(val)) {
319
322
  return {
320
- [`Set(${val.size})`]: [...val.values()]
323
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
321
324
  };
325
+ } else if (isSymbol(val)) {
326
+ return stringifySymbol(val);
322
327
  } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
323
328
  return String(val);
324
329
  }
325
330
  return val;
326
331
  };
332
+ const stringifySymbol = (v, i = "") => {
333
+ var _a;
334
+ return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
335
+ };
327
336
 
328
337
  let activeEffectScope;
329
338
  class EffectScope {
@@ -722,8 +731,13 @@ class BaseReactiveHandler {
722
731
  return isReadonly2;
723
732
  } else if (key === "__v_isShallow") {
724
733
  return shallow;
725
- } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
726
- return target;
734
+ } else if (key === "__v_raw") {
735
+ if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
736
+ // this means the reciever is a user proxy of the reactive proxy
737
+ Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
738
+ return target;
739
+ }
740
+ return;
727
741
  }
728
742
  const targetIsArray = isArray(target);
729
743
  if (!isReadonly2) {
@@ -1529,10 +1543,13 @@ function queuePostFlushCb(cb) {
1529
1543
  }
1530
1544
  queueFlush();
1531
1545
  }
1532
- function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
1546
+ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
1533
1547
  for (; i < queue.length; i++) {
1534
1548
  const cb = queue[i];
1535
1549
  if (cb && cb.pre) {
1550
+ if (instance && cb.id !== instance.uid) {
1551
+ continue;
1552
+ }
1536
1553
  queue.splice(i, 1);
1537
1554
  i--;
1538
1555
  cb();
@@ -2508,7 +2525,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
2508
2525
  if (delayEnter) {
2509
2526
  activeBranch.transition.afterLeave = () => {
2510
2527
  if (pendingId === suspense.pendingId) {
2511
- move(pendingBranch, container2, anchor2, 0);
2528
+ move(
2529
+ pendingBranch,
2530
+ container2,
2531
+ next(activeBranch),
2532
+ 0
2533
+ );
2512
2534
  queuePostFlushCb(effects);
2513
2535
  }
2514
2536
  };
@@ -5087,7 +5109,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5087
5109
  return vm;
5088
5110
  }
5089
5111
  }
5090
- Vue.version = `2.6.14-compat:${"3.3.9"}`;
5112
+ Vue.version = `2.6.14-compat:${"3.3.11"}`;
5091
5113
  Vue.config = singletonApp.config;
5092
5114
  Vue.use = (p, ...options) => {
5093
5115
  if (p && isFunction(p.install)) {
@@ -7245,7 +7267,7 @@ function baseCreateRenderer(options, createHydrationFns) {
7245
7267
  updateProps(instance, nextVNode.props, prevProps, optimized);
7246
7268
  updateSlots(instance, nextVNode.children, optimized);
7247
7269
  pauseTracking();
7248
- flushPreFlushCbs();
7270
+ flushPreFlushCbs(instance);
7249
7271
  resetTracking();
7250
7272
  };
7251
7273
  const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
@@ -8816,7 +8838,7 @@ function isMemoSame(cached, memo) {
8816
8838
  return true;
8817
8839
  }
8818
8840
 
8819
- const version = "3.3.9";
8841
+ const version = "3.3.11";
8820
8842
  const _ssrUtils = {
8821
8843
  createComponentInstance,
8822
8844
  setupComponent,
@@ -9508,7 +9530,8 @@ function patchStopImmediatePropagation(e, value) {
9508
9530
  }
9509
9531
  }
9510
9532
 
9511
- const nativeOnRE = /^on[a-z]/;
9533
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
9534
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
9512
9535
  const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
9513
9536
  if (key === "class") {
9514
9537
  patchClass(el, nextValue, isSVG);
@@ -9542,7 +9565,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
9542
9565
  if (key === "innerHTML" || key === "textContent") {
9543
9566
  return true;
9544
9567
  }
9545
- if (key in el && nativeOnRE.test(key) && isFunction(value)) {
9568
+ if (key in el && isNativeOn(key) && isFunction(value)) {
9546
9569
  return true;
9547
9570
  }
9548
9571
  return false;
@@ -9559,7 +9582,13 @@ function shouldSetAsProp(el, key, value, isSVG) {
9559
9582
  if (key === "type" && el.tagName === "TEXTAREA") {
9560
9583
  return false;
9561
9584
  }
9562
- if (nativeOnRE.test(key) && isString(value)) {
9585
+ if (key === "width" || key === "height") {
9586
+ const tag = el.tagName;
9587
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
9588
+ return false;
9589
+ }
9590
+ }
9591
+ if (isNativeOn(key) && isString(value)) {
9563
9592
  return false;
9564
9593
  }
9565
9594
  return key in el;
@@ -10201,14 +10230,14 @@ const modifierGuards = {
10201
10230
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
10202
10231
  };
10203
10232
  const withModifiers = (fn, modifiers) => {
10204
- return (event, ...args) => {
10233
+ return fn._withMods || (fn._withMods = (event, ...args) => {
10205
10234
  for (let i = 0; i < modifiers.length; i++) {
10206
10235
  const guard = modifierGuards[modifiers[i]];
10207
10236
  if (guard && guard(event, modifiers))
10208
10237
  return;
10209
10238
  }
10210
10239
  return fn(event, ...args);
10211
- };
10240
+ });
10212
10241
  };
10213
10242
  const keyNames = {
10214
10243
  esc: "escape",
@@ -10230,7 +10259,7 @@ const withKeys = (fn, modifiers) => {
10230
10259
  }
10231
10260
  }
10232
10261
  }
10233
- return (event) => {
10262
+ return fn._withKeys || (fn._withKeys = (event) => {
10234
10263
  if (!("key" in event)) {
10235
10264
  return;
10236
10265
  }
@@ -10258,7 +10287,7 @@ const withKeys = (fn, modifiers) => {
10258
10287
  }
10259
10288
  }
10260
10289
  }
10261
- };
10290
+ });
10262
10291
  };
10263
10292
 
10264
10293
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
@@ -14522,6 +14551,10 @@ function resolveSetupReference(name, context) {
14522
14551
  `${context.helperString(UNREF)}(${fromMaybeRef})`
14523
14552
  ) : `$setup[${JSON.stringify(fromMaybeRef)}]`;
14524
14553
  }
14554
+ const fromProps = checkType("props");
14555
+ if (fromProps) {
14556
+ return `${context.helperString(UNREF)}(${context.inline ? "__props" : "$props"}[${JSON.stringify(fromProps)}])`;
14557
+ }
14525
14558
  }
14526
14559
  function buildProps(node, context, props = node.props, isComponent, isDynamicComponent, ssr = false) {
14527
14560
  const { tag, loc: elementLoc, children } = node;
@@ -14562,6 +14595,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
14562
14595
  if (isEventHandler && isReservedProp(name)) {
14563
14596
  hasVnodeHook = true;
14564
14597
  }
14598
+ if (isEventHandler && value.type === 14) {
14599
+ value = value.arguments[0];
14600
+ }
14565
14601
  if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
14566
14602
  return;
14567
14603
  }
@@ -12,8 +12,8 @@ const EMPTY_ARR = Object.freeze([]) ;
12
12
  const NOOP = () => {
13
13
  };
14
14
  const NO = () => false;
15
- const onRE = /^on[^a-z]/;
16
- const isOn = (key) => onRE.test(key);
15
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
16
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
17
17
  const isModelListener = (key) => key.startsWith("onUpdate:");
18
18
  const extend = Object.assign;
19
19
  const remove = (arr, el) => {
@@ -300,20 +300,29 @@ const replacer = (_key, val) => {
300
300
  return replacer(_key, val.value);
301
301
  } else if (isMap(val)) {
302
302
  return {
303
- [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
304
- entries[`${key} =>`] = val2;
305
- return entries;
306
- }, {})
303
+ [`Map(${val.size})`]: [...val.entries()].reduce(
304
+ (entries, [key, val2], i) => {
305
+ entries[stringifySymbol(key, i) + " =>"] = val2;
306
+ return entries;
307
+ },
308
+ {}
309
+ )
307
310
  };
308
311
  } else if (isSet(val)) {
309
312
  return {
310
- [`Set(${val.size})`]: [...val.values()]
313
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
311
314
  };
315
+ } else if (isSymbol(val)) {
316
+ return stringifySymbol(val);
312
317
  } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
313
318
  return String(val);
314
319
  }
315
320
  return val;
316
321
  };
322
+ const stringifySymbol = (v, i = "") => {
323
+ var _a;
324
+ return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
325
+ };
317
326
 
318
327
  function warn$1(msg, ...args) {
319
328
  console.warn(`[Vue warn] ${msg}`, ...args);
@@ -737,8 +746,13 @@ class BaseReactiveHandler {
737
746
  return isReadonly2;
738
747
  } else if (key === "__v_isShallow") {
739
748
  return shallow;
740
- } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
741
- return target;
749
+ } else if (key === "__v_raw") {
750
+ if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
751
+ // this means the reciever is a user proxy of the reactive proxy
752
+ Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
753
+ return target;
754
+ }
755
+ return;
742
756
  }
743
757
  const targetIsArray = isArray(target);
744
758
  if (!isReadonly2) {
@@ -1749,13 +1763,16 @@ function queuePostFlushCb(cb) {
1749
1763
  }
1750
1764
  queueFlush();
1751
1765
  }
1752
- function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
1766
+ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
1753
1767
  {
1754
1768
  seen = seen || /* @__PURE__ */ new Map();
1755
1769
  }
1756
1770
  for (; i < queue.length; i++) {
1757
1771
  const cb = queue[i];
1758
1772
  if (cb && cb.pre) {
1773
+ if (instance && cb.id !== instance.uid) {
1774
+ continue;
1775
+ }
1759
1776
  if (checkRecursiveUpdates(seen, cb)) {
1760
1777
  continue;
1761
1778
  }
@@ -3372,7 +3389,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3372
3389
  if (delayEnter) {
3373
3390
  activeBranch.transition.afterLeave = () => {
3374
3391
  if (pendingId === suspense.pendingId) {
3375
- move(pendingBranch, container2, anchor2, 0);
3392
+ move(
3393
+ pendingBranch,
3394
+ container2,
3395
+ next(activeBranch),
3396
+ 0
3397
+ );
3376
3398
  queuePostFlushCb(effects);
3377
3399
  }
3378
3400
  };
@@ -6269,7 +6291,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6269
6291
  return vm;
6270
6292
  }
6271
6293
  }
6272
- Vue.version = `2.6.14-compat:${"3.3.9"}`;
6294
+ Vue.version = `2.6.14-compat:${"3.3.11"}`;
6273
6295
  Vue.config = singletonApp.config;
6274
6296
  Vue.use = (p, ...options) => {
6275
6297
  if (p && isFunction(p.install)) {
@@ -8907,7 +8929,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8907
8929
  updateProps(instance, nextVNode.props, prevProps, optimized);
8908
8930
  updateSlots(instance, nextVNode.children, optimized);
8909
8931
  pauseTracking();
8910
- flushPreFlushCbs();
8932
+ flushPreFlushCbs(instance);
8911
8933
  resetTracking();
8912
8934
  };
8913
8935
  const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
@@ -10666,9 +10688,9 @@ function initCustomFormatter() {
10666
10688
  return;
10667
10689
  }
10668
10690
  const vueStyle = { style: "color:#3ba776" };
10669
- const numberStyle = { style: "color:#0b1bc9" };
10670
- const stringStyle = { style: "color:#b62e24" };
10671
- const keywordStyle = { style: "color:#9d288c" };
10691
+ const numberStyle = { style: "color:#1677ff" };
10692
+ const stringStyle = { style: "color:#f5222d" };
10693
+ const keywordStyle = { style: "color:#eb2f96" };
10672
10694
  const formatter = {
10673
10695
  header(obj) {
10674
10696
  if (!isObject(obj)) {
@@ -10862,7 +10884,7 @@ function isMemoSame(cached, memo) {
10862
10884
  return true;
10863
10885
  }
10864
10886
 
10865
- const version = "3.3.9";
10887
+ const version = "3.3.11";
10866
10888
  const ssrUtils = null;
10867
10889
  const resolveFilter = resolveFilter$1 ;
10868
10890
  const _compatUtils = {
@@ -11561,7 +11583,8 @@ function patchStopImmediatePropagation(e, value) {
11561
11583
  }
11562
11584
  }
11563
11585
 
11564
- const nativeOnRE = /^on[a-z]/;
11586
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
11587
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
11565
11588
  const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
11566
11589
  if (key === "class") {
11567
11590
  patchClass(el, nextValue, isSVG);
@@ -11595,7 +11618,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
11595
11618
  if (key === "innerHTML" || key === "textContent") {
11596
11619
  return true;
11597
11620
  }
11598
- if (key in el && nativeOnRE.test(key) && isFunction(value)) {
11621
+ if (key in el && isNativeOn(key) && isFunction(value)) {
11599
11622
  return true;
11600
11623
  }
11601
11624
  return false;
@@ -11612,7 +11635,13 @@ function shouldSetAsProp(el, key, value, isSVG) {
11612
11635
  if (key === "type" && el.tagName === "TEXTAREA") {
11613
11636
  return false;
11614
11637
  }
11615
- if (nativeOnRE.test(key) && isString(value)) {
11638
+ if (key === "width" || key === "height") {
11639
+ const tag = el.tagName;
11640
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
11641
+ return false;
11642
+ }
11643
+ }
11644
+ if (isNativeOn(key) && isString(value)) {
11616
11645
  return false;
11617
11646
  }
11618
11647
  return key in el;
@@ -12302,14 +12331,14 @@ const modifierGuards = {
12302
12331
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
12303
12332
  };
12304
12333
  const withModifiers = (fn, modifiers) => {
12305
- return (event, ...args) => {
12334
+ return fn._withMods || (fn._withMods = (event, ...args) => {
12306
12335
  for (let i = 0; i < modifiers.length; i++) {
12307
12336
  const guard = modifierGuards[modifiers[i]];
12308
12337
  if (guard && guard(event, modifiers))
12309
12338
  return;
12310
12339
  }
12311
12340
  return fn(event, ...args);
12312
- };
12341
+ });
12313
12342
  };
12314
12343
  const keyNames = {
12315
12344
  esc: "escape",
@@ -12337,7 +12366,7 @@ const withKeys = (fn, modifiers) => {
12337
12366
  );
12338
12367
  }
12339
12368
  }
12340
- return (event) => {
12369
+ return fn._withKeys || (fn._withKeys = (event) => {
12341
12370
  if (!("key" in event)) {
12342
12371
  return;
12343
12372
  }
@@ -12365,7 +12394,7 @@ const withKeys = (fn, modifiers) => {
12365
12394
  }
12366
12395
  }
12367
12396
  }
12368
- };
12397
+ });
12369
12398
  };
12370
12399
 
12371
12400
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
@@ -16188,6 +16217,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
16188
16217
  if (isEventHandler && isReservedProp(name)) {
16189
16218
  hasVnodeHook = true;
16190
16219
  }
16220
+ if (isEventHandler && value.type === 14) {
16221
+ value = value.arguments[0];
16222
+ }
16191
16223
  if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
16192
16224
  return;
16193
16225
  }