@vue/compat 3.3.0-alpha.3 → 3.3.0-alpha.5

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.
@@ -7,6 +7,96 @@ function makeMap(str, expectsLowerCase) {
7
7
  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
8
  }
9
9
 
10
+ const EMPTY_OBJ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
11
+ const EMPTY_ARR = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
12
+ const NOOP = () => {
13
+ };
14
+ const NO = () => false;
15
+ const onRE = /^on[^a-z]/;
16
+ const isOn = (key) => onRE.test(key);
17
+ const isModelListener = (key) => key.startsWith("onUpdate:");
18
+ const extend = Object.assign;
19
+ const remove = (arr, el) => {
20
+ const i = arr.indexOf(el);
21
+ if (i > -1) {
22
+ arr.splice(i, 1);
23
+ }
24
+ };
25
+ const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
26
+ const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
27
+ const isArray = Array.isArray;
28
+ const isMap = (val) => toTypeString(val) === "[object Map]";
29
+ const isSet = (val) => toTypeString(val) === "[object Set]";
30
+ const isDate = (val) => toTypeString(val) === "[object Date]";
31
+ const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
32
+ const isFunction = (val) => typeof val === "function";
33
+ const isString = (val) => typeof val === "string";
34
+ const isSymbol = (val) => typeof val === "symbol";
35
+ const isObject = (val) => val !== null && typeof val === "object";
36
+ const isPromise = (val) => {
37
+ return isObject(val) && isFunction(val.then) && isFunction(val.catch);
38
+ };
39
+ const objectToString = Object.prototype.toString;
40
+ const toTypeString = (value) => objectToString.call(value);
41
+ const toRawType = (value) => {
42
+ return toTypeString(value).slice(8, -1);
43
+ };
44
+ const isPlainObject = (val) => toTypeString(val) === "[object Object]";
45
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
46
+ const isReservedProp = /* @__PURE__ */ makeMap(
47
+ // the leading comma is intentional so empty string "" is also included
48
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
49
+ );
50
+ const isBuiltInDirective = /* @__PURE__ */ makeMap(
51
+ "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
52
+ );
53
+ const cacheStringFunction = (fn) => {
54
+ const cache = /* @__PURE__ */ Object.create(null);
55
+ return (str) => {
56
+ const hit = cache[str];
57
+ return hit || (cache[str] = fn(str));
58
+ };
59
+ };
60
+ const camelizeRE = /-(\w)/g;
61
+ const camelize = cacheStringFunction((str) => {
62
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
63
+ });
64
+ const hyphenateRE = /\B([A-Z])/g;
65
+ const hyphenate = cacheStringFunction(
66
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
67
+ );
68
+ const capitalize = cacheStringFunction(
69
+ (str) => str.charAt(0).toUpperCase() + str.slice(1)
70
+ );
71
+ const toHandlerKey = cacheStringFunction(
72
+ (str) => str ? `on${capitalize(str)}` : ``
73
+ );
74
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
75
+ const invokeArrayFns = (fns, arg) => {
76
+ for (let i = 0; i < fns.length; i++) {
77
+ fns[i](arg);
78
+ }
79
+ };
80
+ const def = (obj, key, value) => {
81
+ Object.defineProperty(obj, key, {
82
+ configurable: true,
83
+ enumerable: false,
84
+ value
85
+ });
86
+ };
87
+ const looseToNumber = (val) => {
88
+ const n = parseFloat(val);
89
+ return isNaN(n) ? val : n;
90
+ };
91
+ const toNumber = (val) => {
92
+ const n = isString(val) ? Number(val) : NaN;
93
+ return isNaN(n) ? val : n;
94
+ };
95
+ let _globalThis;
96
+ const getGlobalThis = () => {
97
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
98
+ };
99
+
10
100
  const GLOBALS_WHITE_LISTED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt";
11
101
  const isGloballyWhitelisted = /* @__PURE__ */ makeMap(GLOBALS_WHITE_LISTED);
12
102
 
@@ -161,96 +251,6 @@ const replacer = (_key, val) => {
161
251
  return val;
162
252
  };
163
253
 
164
- const EMPTY_OBJ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
165
- const EMPTY_ARR = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
166
- const NOOP = () => {
167
- };
168
- const NO = () => false;
169
- const onRE = /^on[^a-z]/;
170
- const isOn = (key) => onRE.test(key);
171
- const isModelListener = (key) => key.startsWith("onUpdate:");
172
- const extend = Object.assign;
173
- const remove = (arr, el) => {
174
- const i = arr.indexOf(el);
175
- if (i > -1) {
176
- arr.splice(i, 1);
177
- }
178
- };
179
- const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
180
- const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
181
- const isArray = Array.isArray;
182
- const isMap = (val) => toTypeString(val) === "[object Map]";
183
- const isSet = (val) => toTypeString(val) === "[object Set]";
184
- const isDate = (val) => toTypeString(val) === "[object Date]";
185
- const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
186
- const isFunction = (val) => typeof val === "function";
187
- const isString = (val) => typeof val === "string";
188
- const isSymbol = (val) => typeof val === "symbol";
189
- const isObject = (val) => val !== null && typeof val === "object";
190
- const isPromise = (val) => {
191
- return isObject(val) && isFunction(val.then) && isFunction(val.catch);
192
- };
193
- const objectToString = Object.prototype.toString;
194
- const toTypeString = (value) => objectToString.call(value);
195
- const toRawType = (value) => {
196
- return toTypeString(value).slice(8, -1);
197
- };
198
- const isPlainObject = (val) => toTypeString(val) === "[object Object]";
199
- const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
200
- const isReservedProp = /* @__PURE__ */ makeMap(
201
- // the leading comma is intentional so empty string "" is also included
202
- ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
203
- );
204
- const isBuiltInDirective = /* @__PURE__ */ makeMap(
205
- "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
206
- );
207
- const cacheStringFunction = (fn) => {
208
- const cache = /* @__PURE__ */ Object.create(null);
209
- return (str) => {
210
- const hit = cache[str];
211
- return hit || (cache[str] = fn(str));
212
- };
213
- };
214
- const camelizeRE = /-(\w)/g;
215
- const camelize = cacheStringFunction((str) => {
216
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
217
- });
218
- const hyphenateRE = /\B([A-Z])/g;
219
- const hyphenate = cacheStringFunction(
220
- (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
221
- );
222
- const capitalize = cacheStringFunction(
223
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
224
- );
225
- const toHandlerKey = cacheStringFunction(
226
- (str) => str ? `on${capitalize(str)}` : ``
227
- );
228
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
229
- const invokeArrayFns = (fns, arg) => {
230
- for (let i = 0; i < fns.length; i++) {
231
- fns[i](arg);
232
- }
233
- };
234
- const def = (obj, key, value) => {
235
- Object.defineProperty(obj, key, {
236
- configurable: true,
237
- enumerable: false,
238
- value
239
- });
240
- };
241
- const looseToNumber = (val) => {
242
- const n = parseFloat(val);
243
- return isNaN(n) ? val : n;
244
- };
245
- const toNumber = (val) => {
246
- const n = isString(val) ? Number(val) : NaN;
247
- return isNaN(n) ? val : n;
248
- };
249
- let _globalThis;
250
- const getGlobalThis = () => {
251
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
252
- };
253
-
254
254
  function warn$1(msg, ...args) {
255
255
  console.warn(`[Vue warn] ${msg}`, ...args);
256
256
  }
@@ -1410,7 +1410,7 @@ function warn(msg, ...args) {
1410
1410
  callWithErrorHandling(
1411
1411
  appWarnHandler,
1412
1412
  instance,
1413
- "11",
1413
+ 11,
1414
1414
  [
1415
1415
  msg + args.join(""),
1416
1416
  instance && instance.proxy,
@@ -1525,21 +1525,21 @@ const ErrorTypeStrings = {
1525
1525
  ["ec"]: "errorCaptured hook",
1526
1526
  ["rtc"]: "renderTracked hook",
1527
1527
  ["rtg"]: "renderTriggered hook",
1528
- ["0"]: "setup function",
1529
- ["1"]: "render function",
1530
- ["2"]: "watcher getter",
1531
- ["3"]: "watcher callback",
1532
- ["4"]: "watcher cleanup function",
1533
- ["5"]: "native event handler",
1534
- ["6"]: "component event handler",
1535
- ["7"]: "vnode hook",
1536
- ["8"]: "directive hook",
1537
- ["9"]: "transition hook",
1538
- ["10"]: "app errorHandler",
1539
- ["11"]: "app warnHandler",
1540
- ["12"]: "ref function",
1541
- ["13"]: "async component loader",
1542
- ["14"]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
1528
+ [0]: "setup function",
1529
+ [1]: "render function",
1530
+ [2]: "watcher getter",
1531
+ [3]: "watcher callback",
1532
+ [4]: "watcher cleanup function",
1533
+ [5]: "native event handler",
1534
+ [6]: "component event handler",
1535
+ [7]: "vnode hook",
1536
+ [8]: "directive hook",
1537
+ [9]: "transition hook",
1538
+ [10]: "app errorHandler",
1539
+ [11]: "app warnHandler",
1540
+ [12]: "ref function",
1541
+ [13]: "async component loader",
1542
+ [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
1543
1543
  };
1544
1544
  function callWithErrorHandling(fn, instance, type, args) {
1545
1545
  let res;
@@ -1588,7 +1588,7 @@ function handleError(err, instance, type, throwInDev = true) {
1588
1588
  callWithErrorHandling(
1589
1589
  appErrorHandler,
1590
1590
  null,
1591
- "10",
1591
+ 10,
1592
1592
  [err, exposedInstance, errorInfo]
1593
1593
  );
1594
1594
  return;
@@ -1743,7 +1743,7 @@ function flushJobs(seen) {
1743
1743
  if (process.env.NODE_ENV !== "production" && check(job)) {
1744
1744
  continue;
1745
1745
  }
1746
- callWithErrorHandling(job, null, "14");
1746
+ callWithErrorHandling(job, null, 14);
1747
1747
  }
1748
1748
  }
1749
1749
  } finally {
@@ -2364,7 +2364,7 @@ function emit$1(instance, event, args) {
2364
2364
  callWithAsyncErrorHandling(
2365
2365
  cbs.map((cb) => cb.bind(instance.proxy)),
2366
2366
  instance,
2367
- "6",
2367
+ 6,
2368
2368
  args
2369
2369
  );
2370
2370
  }
@@ -2426,7 +2426,7 @@ function compatModelEmit(instance, event, args) {
2426
2426
  callWithErrorHandling(
2427
2427
  modelHandler,
2428
2428
  instance,
2429
- "6",
2429
+ 6,
2430
2430
  args
2431
2431
  );
2432
2432
  }
@@ -2498,7 +2498,7 @@ function emit(instance, event, ...rawArgs) {
2498
2498
  callWithAsyncErrorHandling(
2499
2499
  handler,
2500
2500
  instance,
2501
- "6",
2501
+ 6,
2502
2502
  args
2503
2503
  );
2504
2504
  }
@@ -2513,7 +2513,7 @@ function emit(instance, event, ...rawArgs) {
2513
2513
  callWithAsyncErrorHandling(
2514
2514
  onceHandler,
2515
2515
  instance,
2516
- "6",
2516
+ 6,
2517
2517
  args
2518
2518
  );
2519
2519
  }
@@ -2697,7 +2697,7 @@ function renderComponentRoot(instance) {
2697
2697
  }
2698
2698
  } catch (err) {
2699
2699
  blockStack.length = 0;
2700
- handleError(err, instance, "1");
2700
+ handleError(err, instance, 1);
2701
2701
  result = createVNode(Comment);
2702
2702
  }
2703
2703
  let root = result;
@@ -3224,7 +3224,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
3224
3224
  if (delayEnter) {
3225
3225
  activeBranch.transition.afterLeave = () => {
3226
3226
  if (pendingId === suspense.pendingId) {
3227
- move(pendingBranch, container2, anchor2, "0");
3227
+ move(pendingBranch, container2, anchor2, 0);
3228
3228
  }
3229
3229
  };
3230
3230
  }
@@ -3234,7 +3234,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
3234
3234
  unmount(activeBranch, parentComponent2, suspense, true);
3235
3235
  }
3236
3236
  if (!delayEnter) {
3237
- move(pendingBranch, container2, anchor2, "0");
3237
+ move(pendingBranch, container2, anchor2, 0);
3238
3238
  }
3239
3239
  }
3240
3240
  setActiveBranch(suspense, pendingBranch);
@@ -3312,7 +3312,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
3312
3312
  }
3313
3313
  const hydratedEl = instance.vnode.el;
3314
3314
  instance.asyncDep.catch((err) => {
3315
- handleError(err, instance, "0");
3315
+ handleError(err, instance, 0);
3316
3316
  }).then((asyncSetupResult) => {
3317
3317
  if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
3318
3318
  return;
@@ -3556,14 +3556,14 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3556
3556
  } else if (isReactive(s)) {
3557
3557
  return traverse(s);
3558
3558
  } else if (isFunction(s)) {
3559
- return callWithErrorHandling(s, instance, "2");
3559
+ return callWithErrorHandling(s, instance, 2);
3560
3560
  } else {
3561
3561
  process.env.NODE_ENV !== "production" && warnInvalidSource(s);
3562
3562
  }
3563
3563
  });
3564
3564
  } else if (isFunction(source)) {
3565
3565
  if (cb) {
3566
- getter = () => callWithErrorHandling(source, instance, "2");
3566
+ getter = () => callWithErrorHandling(source, instance, 2);
3567
3567
  } else {
3568
3568
  getter = () => {
3569
3569
  if (instance && instance.isUnmounted) {
@@ -3575,7 +3575,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3575
3575
  return callWithAsyncErrorHandling(
3576
3576
  source,
3577
3577
  instance,
3578
- "3",
3578
+ 3,
3579
3579
  [onCleanup]
3580
3580
  );
3581
3581
  };
@@ -3601,7 +3601,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3601
3601
  let cleanup;
3602
3602
  let onCleanup = (fn) => {
3603
3603
  cleanup = effect.onStop = () => {
3604
- callWithErrorHandling(fn, instance, "4");
3604
+ callWithErrorHandling(fn, instance, 4);
3605
3605
  };
3606
3606
  };
3607
3607
  let ssrCleanup;
@@ -3610,7 +3610,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3610
3610
  if (!cb) {
3611
3611
  getter();
3612
3612
  } else if (immediate) {
3613
- callWithAsyncErrorHandling(cb, instance, "3", [
3613
+ callWithAsyncErrorHandling(cb, instance, 3, [
3614
3614
  getter(),
3615
3615
  isMultiSource ? [] : void 0,
3616
3616
  onCleanup
@@ -3636,7 +3636,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3636
3636
  if (cleanup) {
3637
3637
  cleanup();
3638
3638
  }
3639
- callWithAsyncErrorHandling(cb, instance, "3", [
3639
+ callWithAsyncErrorHandling(cb, instance, 3, [
3640
3640
  newValue,
3641
3641
  // pass undefined as the old value when it's changed for the first time
3642
3642
  oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
@@ -3918,7 +3918,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
3918
3918
  hook && callWithAsyncErrorHandling(
3919
3919
  hook,
3920
3920
  instance,
3921
- "9",
3921
+ 9,
3922
3922
  args
3923
3923
  );
3924
3924
  };
@@ -4150,7 +4150,7 @@ function defineAsyncComponent(source) {
4150
4150
  handleError(
4151
4151
  err,
4152
4152
  instance,
4153
- "13",
4153
+ 13,
4154
4154
  !errorComponent
4155
4155
  /* do not throw in dev if user provided error component */
4156
4156
  );
@@ -4255,7 +4255,7 @@ const KeepAliveImpl = {
4255
4255
  const storageContainer = createElement("div");
4256
4256
  sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
4257
4257
  const instance2 = vnode.component;
4258
- move(vnode, container, anchor, "0", parentSuspense);
4258
+ move(vnode, container, anchor, 0, parentSuspense);
4259
4259
  patch(
4260
4260
  instance2.vnode,
4261
4261
  vnode,
@@ -4283,7 +4283,7 @@ const KeepAliveImpl = {
4283
4283
  };
4284
4284
  sharedContext.deactivate = (vnode) => {
4285
4285
  const instance2 = vnode.component;
4286
- move(vnode, storageContainer, null, "1", parentSuspense);
4286
+ move(vnode, storageContainer, null, 1, parentSuspense);
4287
4287
  queuePostRenderEffect(() => {
4288
4288
  if (instance2.da) {
4289
4289
  invokeArrayFns(instance2.da);
@@ -4641,7 +4641,7 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
4641
4641
  }
4642
4642
  if (hook) {
4643
4643
  pauseTracking();
4644
- callWithAsyncErrorHandling(hook, instance, "8", [
4644
+ callWithAsyncErrorHandling(hook, instance, 8, [
4645
4645
  vnode.el,
4646
4646
  binding,
4647
4647
  vnode,
@@ -4658,7 +4658,7 @@ const FILTERS = "filters";
4658
4658
  function resolveComponent(name, maybeSelfReference) {
4659
4659
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
4660
4660
  }
4661
- const NULL_DYNAMIC_COMPONENT = Symbol();
4661
+ const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
4662
4662
  function resolveDynamicComponent(component) {
4663
4663
  if (isString(component)) {
4664
4664
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -6626,7 +6626,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6626
6626
  return vm;
6627
6627
  }
6628
6628
  }
6629
- Vue.version = `2.6.14-compat:${"3.3.0-alpha.3"}`;
6629
+ Vue.version = `2.6.14-compat:${"3.3.0-alpha.5"}`;
6630
6630
  Vue.config = singletonApp.config;
6631
6631
  Vue.use = (p, ...options) => {
6632
6632
  if (p && isFunction(p.install)) {
@@ -7210,7 +7210,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
7210
7210
  }
7211
7211
  }
7212
7212
  if (isFunction(ref)) {
7213
- callWithErrorHandling(ref, owner, "12", [value, refs]);
7213
+ callWithErrorHandling(ref, owner, 12, [value, refs]);
7214
7214
  } else {
7215
7215
  const _isString = isString(ref);
7216
7216
  const _isRef = isRef(ref);
@@ -8904,7 +8904,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8904
8904
  );
8905
8905
  } else if (moved) {
8906
8906
  if (j < 0 || i !== increasingNewIndexSequence[j]) {
8907
- move(nextChild, container, anchor, "2");
8907
+ move(nextChild, container, anchor, 2);
8908
8908
  } else {
8909
8909
  j--;
8910
8910
  }
@@ -8938,9 +8938,9 @@ function baseCreateRenderer(options, createHydrationFns) {
8938
8938
  moveStaticNode(vnode, container, anchor);
8939
8939
  return;
8940
8940
  }
8941
- const needTransition = moveType !== "2" && shapeFlag & 1 && transition;
8941
+ const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
8942
8942
  if (needTransition) {
8943
- if (moveType === "0") {
8943
+ if (moveType === 0) {
8944
8944
  transition.beforeEnter(el);
8945
8945
  hostInsert(el, container, anchor);
8946
8946
  queuePostRenderEffect(() => transition.enter(el), parentSuspense);
@@ -9347,7 +9347,7 @@ const TeleportImpl = {
9347
9347
  container,
9348
9348
  mainAnchor,
9349
9349
  internals,
9350
- "1"
9350
+ 1
9351
9351
  );
9352
9352
  }
9353
9353
  } else {
@@ -9362,7 +9362,7 @@ const TeleportImpl = {
9362
9362
  nextTarget,
9363
9363
  null,
9364
9364
  internals,
9365
- "0"
9365
+ 0
9366
9366
  );
9367
9367
  } else if (process.env.NODE_ENV !== "production") {
9368
9368
  warn(
@@ -9377,7 +9377,7 @@ const TeleportImpl = {
9377
9377
  target,
9378
9378
  targetAnchor,
9379
9379
  internals,
9380
- "1"
9380
+ 1
9381
9381
  );
9382
9382
  }
9383
9383
  }
@@ -9408,12 +9408,12 @@ const TeleportImpl = {
9408
9408
  move: moveTeleport,
9409
9409
  hydrate: hydrateTeleport
9410
9410
  };
9411
- function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = "2") {
9412
- if (moveType === "0") {
9411
+ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
9412
+ if (moveType === 0) {
9413
9413
  insert(vnode.targetAnchor, container, parentAnchor);
9414
9414
  }
9415
9415
  const { el, anchor, shapeFlag, children, props } = vnode;
9416
- const isReorder = moveType === "2";
9416
+ const isReorder = moveType === 2;
9417
9417
  if (isReorder) {
9418
9418
  insert(el, container, parentAnchor);
9419
9419
  }
@@ -9424,7 +9424,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
9424
9424
  children[i],
9425
9425
  container,
9426
9426
  parentAnchor,
9427
- "2"
9427
+ 2
9428
9428
  );
9429
9429
  }
9430
9430
  }
@@ -9545,10 +9545,10 @@ function convertLegacyComponent(comp, instance) {
9545
9545
  return comp;
9546
9546
  }
9547
9547
 
9548
- const Fragment = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : void 0);
9549
- const Text = Symbol(process.env.NODE_ENV !== "production" ? "Text" : void 0);
9550
- const Comment = Symbol(process.env.NODE_ENV !== "production" ? "Comment" : void 0);
9551
- const Static = Symbol(process.env.NODE_ENV !== "production" ? "Static" : void 0);
9548
+ const Fragment = Symbol.for("v-fgt");
9549
+ const Text = Symbol.for("v-txt");
9550
+ const Comment = Symbol.for("v-cmt");
9551
+ const Static = Symbol.for("v-stc");
9552
9552
  const blockStack = [];
9553
9553
  let currentBlock = null;
9554
9554
  function openBlock(disableTracking = false) {
@@ -9913,7 +9913,7 @@ function mergeProps(...args) {
9913
9913
  return ret;
9914
9914
  }
9915
9915
  function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
9916
- callWithAsyncErrorHandling(hook, instance, "7", [
9916
+ callWithAsyncErrorHandling(hook, instance, 7, [
9917
9917
  vnode,
9918
9918
  prevVNode
9919
9919
  ]);
@@ -10012,13 +10012,29 @@ function createComponentInstance(vnode, parent, suspense) {
10012
10012
  }
10013
10013
  let currentInstance = null;
10014
10014
  const getCurrentInstance = () => currentInstance || currentRenderingInstance;
10015
+ let internalSetCurrentInstance;
10016
+ let globalCurrentInstanceSetters;
10017
+ let settersKey = "__VUE_INSTANCE_SETTERS__";
10018
+ {
10019
+ if (!(globalCurrentInstanceSetters = getGlobalThis()[settersKey])) {
10020
+ globalCurrentInstanceSetters = getGlobalThis()[settersKey] = [];
10021
+ }
10022
+ globalCurrentInstanceSetters.push((i) => currentInstance = i);
10023
+ internalSetCurrentInstance = (instance) => {
10024
+ if (globalCurrentInstanceSetters.length > 1) {
10025
+ globalCurrentInstanceSetters.forEach((s) => s(instance));
10026
+ } else {
10027
+ globalCurrentInstanceSetters[0](instance);
10028
+ }
10029
+ };
10030
+ }
10015
10031
  const setCurrentInstance = (instance) => {
10016
- currentInstance = instance;
10032
+ internalSetCurrentInstance(instance);
10017
10033
  instance.scope.on();
10018
10034
  };
10019
10035
  const unsetCurrentInstance = () => {
10020
10036
  currentInstance && currentInstance.scope.off();
10021
- currentInstance = null;
10037
+ internalSetCurrentInstance(null);
10022
10038
  };
10023
10039
  const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
10024
10040
  function validateComponentName(name, config) {
@@ -10081,7 +10097,7 @@ function setupStatefulComponent(instance, isSSR) {
10081
10097
  const setupResult = callWithErrorHandling(
10082
10098
  setup,
10083
10099
  instance,
10084
- "0",
10100
+ 0,
10085
10101
  [process.env.NODE_ENV !== "production" ? shallowReadonly(instance.props) : instance.props, setupContext]
10086
10102
  );
10087
10103
  resetTracking();
@@ -10092,7 +10108,7 @@ function setupStatefulComponent(instance, isSSR) {
10092
10108
  return setupResult.then((resolvedResult) => {
10093
10109
  handleSetupResult(instance, resolvedResult, isSSR);
10094
10110
  }).catch((e) => {
10095
- handleError(e, instance, "0");
10111
+ handleError(e, instance, 0);
10096
10112
  });
10097
10113
  } else {
10098
10114
  instance.asyncDep = setupResult;
@@ -10446,7 +10462,7 @@ function h(type, propsOrChildren, children) {
10446
10462
  }
10447
10463
  }
10448
10464
 
10449
- const ssrContextKey = Symbol(process.env.NODE_ENV !== "production" ? `ssrContext` : ``);
10465
+ const ssrContextKey = Symbol.for("v-scx");
10450
10466
  const useSSRContext = () => {
10451
10467
  {
10452
10468
  const ctx = inject(ssrContextKey);
@@ -10660,7 +10676,7 @@ function isMemoSame(cached, memo) {
10660
10676
  return true;
10661
10677
  }
10662
10678
 
10663
- const version = "3.3.0-alpha.3";
10679
+ const version = "3.3.0-alpha.5";
10664
10680
  const _ssrUtils = {
10665
10681
  createComponentInstance,
10666
10682
  setupComponent,
@@ -11000,7 +11016,7 @@ function createInvoker(initialValue, instance) {
11000
11016
  callWithAsyncErrorHandling(
11001
11017
  patchStopImmediatePropagation(e, invoker.value),
11002
11018
  instance,
11003
- "5",
11019
+ 5,
11004
11020
  [e]
11005
11021
  );
11006
11022
  };