@vue/compat 3.6.0-alpha.7 → 3.6.0-beta.1

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.6.0-alpha.7
2
+ * @vue/compat v3.6.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,7 +7,7 @@
7
7
 
8
8
  var parser = require('@babel/parser');
9
9
  var estreeWalker = require('estree-walker');
10
- var decode_js = require('entities/lib/decode.js');
10
+ var decode = require('entities/decode');
11
11
  var sourceMapJs = require('source-map-js');
12
12
 
13
13
  // @__NO_SIDE_EFFECTS__
@@ -718,13 +718,13 @@ class Dep {
718
718
  }
719
719
  }
720
720
  const targetMap = /* @__PURE__ */ new WeakMap();
721
- const ITERATE_KEY = Symbol(
721
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
722
722
  ""
723
723
  );
724
- const MAP_KEY_ITERATE_KEY = Symbol(
724
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
725
725
  ""
726
726
  );
727
- const ARRAY_ITERATE_KEY = Symbol(
727
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
728
728
  ""
729
729
  );
730
730
  function track(target, type, key) {
@@ -2564,10 +2564,10 @@ function flushPostFlushCbs(seen) {
2564
2564
  }
2565
2565
  }
2566
2566
  let isFlushing = false;
2567
- function flushOnAppMount() {
2567
+ function flushOnAppMount(instance) {
2568
2568
  if (!isFlushing) {
2569
2569
  isFlushing = true;
2570
- flushPreFlushCbs();
2570
+ flushPreFlushCbs(instance);
2571
2571
  flushPostFlushCbs();
2572
2572
  isFlushing = false;
2573
2573
  }
@@ -2771,58 +2771,6 @@ function emit$1(instance, event, args) {
2771
2771
  return instance.proxy;
2772
2772
  }
2773
2773
 
2774
- const compatModelEventPrefix = `onModelCompat:`;
2775
- function convertLegacyVModelProps(vnode) {
2776
- const { type, shapeFlag, props, dynamicProps } = vnode;
2777
- const comp = type;
2778
- if (shapeFlag & 6 && props && "modelValue" in props) {
2779
- if (!isCompatEnabled$1(
2780
- "COMPONENT_V_MODEL",
2781
- // this is a special case where we want to use the vnode component's
2782
- // compat config instead of the current rendering instance (which is the
2783
- // parent of the component that exposes v-model)
2784
- { type }
2785
- )) {
2786
- return;
2787
- }
2788
- const model = comp.model || {};
2789
- applyModelFromMixins(model, comp.mixins);
2790
- const { prop = "value", event = "input" } = model;
2791
- if (prop !== "modelValue") {
2792
- props[prop] = props.modelValue;
2793
- delete props.modelValue;
2794
- }
2795
- if (dynamicProps) {
2796
- dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
2797
- }
2798
- props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
2799
- delete props["onUpdate:modelValue"];
2800
- }
2801
- }
2802
- function applyModelFromMixins(model, mixins) {
2803
- if (mixins) {
2804
- mixins.forEach((m) => {
2805
- if (m.model) extend(model, m.model);
2806
- if (m.mixins) applyModelFromMixins(model, m.mixins);
2807
- });
2808
- }
2809
- }
2810
- function compatModelEmit(instance, event, args) {
2811
- if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
2812
- return;
2813
- }
2814
- const props = instance.vnode.props;
2815
- const modelHandler = props && props[compatModelEventPrefix + event];
2816
- if (modelHandler) {
2817
- callWithErrorHandling(
2818
- modelHandler,
2819
- instance,
2820
- 6,
2821
- args
2822
- );
2823
- }
2824
- }
2825
-
2826
2774
  let currentRenderingInstance = null;
2827
2775
  let currentScopeId = null;
2828
2776
  function setCurrentRenderingInstance(instance) {
@@ -2964,7 +2912,166 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
2964
2912
  }
2965
2913
  }
2966
2914
 
2967
- const TeleportEndKey = Symbol("_vte");
2915
+ function provide(key, value) {
2916
+ if (currentInstance) {
2917
+ let provides = currentInstance.provides;
2918
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
2919
+ if (parentProvides === provides) {
2920
+ provides = currentInstance.provides = Object.create(parentProvides);
2921
+ }
2922
+ provides[key] = value;
2923
+ }
2924
+ }
2925
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
2926
+ const instance = getCurrentGenericInstance();
2927
+ if (instance || currentApp) {
2928
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
2929
+ if (provides && key in provides) {
2930
+ return provides[key];
2931
+ } else if (arguments.length > 1) {
2932
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
2933
+ } else ;
2934
+ }
2935
+ }
2936
+ function hasInjectionContext() {
2937
+ return !!(getCurrentGenericInstance() || currentApp);
2938
+ }
2939
+
2940
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
2941
+ const useSSRContext = () => {
2942
+ {
2943
+ const ctx = inject(ssrContextKey);
2944
+ return ctx;
2945
+ }
2946
+ };
2947
+
2948
+ function watchEffect(effect, options) {
2949
+ return doWatch(effect, null, options);
2950
+ }
2951
+ function watchPostEffect(effect, options) {
2952
+ return doWatch(
2953
+ effect,
2954
+ null,
2955
+ { flush: "post" }
2956
+ );
2957
+ }
2958
+ function watchSyncEffect(effect, options) {
2959
+ return doWatch(
2960
+ effect,
2961
+ null,
2962
+ { flush: "sync" }
2963
+ );
2964
+ }
2965
+ function watch(source, cb, options) {
2966
+ return doWatch(source, cb, options);
2967
+ }
2968
+ class RenderWatcherEffect extends WatcherEffect {
2969
+ constructor(instance, source, cb, options, flush) {
2970
+ super(source, cb, options);
2971
+ this.flush = flush;
2972
+ const job = () => {
2973
+ if (this.dirty) {
2974
+ this.run();
2975
+ }
2976
+ };
2977
+ if (cb) {
2978
+ this.flags |= 128;
2979
+ job.flags |= 2;
2980
+ }
2981
+ if (instance) {
2982
+ job.i = instance;
2983
+ }
2984
+ this.job = job;
2985
+ }
2986
+ notify() {
2987
+ const flags = this.flags;
2988
+ if (!(flags & 256)) {
2989
+ const flush = this.flush;
2990
+ const job = this.job;
2991
+ if (flush === "post") {
2992
+ queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
2993
+ } else if (flush === "pre") {
2994
+ queueJob(job, job.i ? job.i.uid : void 0, true);
2995
+ } else {
2996
+ job();
2997
+ }
2998
+ }
2999
+ }
3000
+ }
3001
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3002
+ const { immediate, deep, flush = "pre", once } = options;
3003
+ const baseWatchOptions = extend({}, options);
3004
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
3005
+ let ssrCleanup;
3006
+ if (isInSSRComponentSetup) {
3007
+ if (flush === "sync") {
3008
+ const ctx = useSSRContext();
3009
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
3010
+ } else if (!runsImmediately) {
3011
+ const watchStopHandle = () => {
3012
+ };
3013
+ watchStopHandle.stop = NOOP;
3014
+ watchStopHandle.resume = NOOP;
3015
+ watchStopHandle.pause = NOOP;
3016
+ return watchStopHandle;
3017
+ }
3018
+ }
3019
+ const instance = currentInstance;
3020
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3021
+ const effect = new RenderWatcherEffect(
3022
+ instance,
3023
+ source,
3024
+ cb,
3025
+ baseWatchOptions,
3026
+ flush
3027
+ );
3028
+ if (cb) {
3029
+ effect.run(true);
3030
+ } else if (flush === "post") {
3031
+ queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
3032
+ } else {
3033
+ effect.run(true);
3034
+ }
3035
+ const stop = effect.stop.bind(effect);
3036
+ stop.pause = effect.pause.bind(effect);
3037
+ stop.resume = effect.resume.bind(effect);
3038
+ stop.stop = stop;
3039
+ if (isInSSRComponentSetup) {
3040
+ if (ssrCleanup) {
3041
+ ssrCleanup.push(stop);
3042
+ } else if (runsImmediately) {
3043
+ stop();
3044
+ }
3045
+ }
3046
+ return stop;
3047
+ }
3048
+ function instanceWatch(source, value, options) {
3049
+ const publicThis = this.proxy;
3050
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3051
+ let cb;
3052
+ if (isFunction(value)) {
3053
+ cb = value;
3054
+ } else {
3055
+ cb = value.handler;
3056
+ options = value;
3057
+ }
3058
+ const prev = setCurrentInstance(this);
3059
+ const res = doWatch(getter, cb.bind(publicThis), options);
3060
+ setCurrentInstance(...prev);
3061
+ return res;
3062
+ }
3063
+ function createPathGetter(ctx, path) {
3064
+ const segments = path.split(".");
3065
+ return () => {
3066
+ let cur = ctx;
3067
+ for (let i = 0; i < segments.length && cur; i++) {
3068
+ cur = cur[segments[i]];
3069
+ }
3070
+ return cur;
3071
+ };
3072
+ }
3073
+
3074
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
2968
3075
  const isTeleport = (type) => type.__isTeleport;
2969
3076
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
2970
3077
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -3309,8 +3416,8 @@ function prepareAnchor(target, vnode, createText, insert) {
3309
3416
  return targetAnchor;
3310
3417
  }
3311
3418
 
3312
- const leaveCbKey = Symbol("_leaveCb");
3313
- const enterCbKey$1 = Symbol("_enterCb");
3419
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
3420
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
3314
3421
  function useTransitionState() {
3315
3422
  const state = {
3316
3423
  isMounted: false,
@@ -4671,7 +4778,9 @@ const KeepAliveImpl = {
4671
4778
  }
4672
4779
  function pruneCache(filter) {
4673
4780
  cache.forEach((vnode, key) => {
4674
- const name = getComponentName(vnode.type);
4781
+ const name = getComponentName(
4782
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
4783
+ );
4675
4784
  if (name && !filter(name)) {
4676
4785
  pruneCacheEntry(key);
4677
4786
  }
@@ -4996,7 +5105,7 @@ const FILTERS = "filters";
4996
5105
  function resolveComponent(name, maybeSelfReference) {
4997
5106
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
4998
5107
  }
4999
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
5108
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
5000
5109
  function resolveDynamicComponent(component) {
5001
5110
  if (isString(component)) {
5002
5111
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -5420,10 +5529,10 @@ function ensureVaporSlotFallback(vnodes, fallback) {
5420
5529
  }
5421
5530
  }
5422
5531
 
5423
- function toHandlers(obj, preserveCaseIfNecessary) {
5532
+ function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
5424
5533
  const ret = {};
5425
5534
  for (const key in obj) {
5426
- ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
5535
+ ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
5427
5536
  }
5428
5537
  return ret;
5429
5538
  }
@@ -6315,7 +6424,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6315
6424
  return vm;
6316
6425
  }
6317
6426
  }
6318
- Vue.version = `2.6.14-compat:${"3.6.0-alpha.7"}`;
6427
+ Vue.version = `2.6.14-compat:${"3.6.0-beta.1"}`;
6319
6428
  Vue.config = singletonApp.config;
6320
6429
  Vue.use = (plugin, ...options) => {
6321
6430
  if (plugin && isFunction(plugin.install)) {
@@ -6776,163 +6885,56 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
6776
6885
  }
6777
6886
  let currentApp = null;
6778
6887
 
6779
- function provide(key, value) {
6780
- if (currentInstance) {
6781
- let provides = currentInstance.provides;
6782
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
6783
- if (parentProvides === provides) {
6784
- provides = currentInstance.provides = Object.create(parentProvides);
6785
- }
6786
- provides[key] = value;
6787
- }
6788
- }
6789
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
6790
- const instance = getCurrentGenericInstance();
6791
- if (instance || currentApp) {
6792
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
6793
- if (provides && key in provides) {
6794
- return provides[key];
6795
- } else if (arguments.length > 1) {
6796
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
6797
- } else ;
6798
- }
6799
- }
6800
- function hasInjectionContext() {
6801
- return !!(getCurrentGenericInstance() || currentApp);
6802
- }
6803
-
6804
- const ssrContextKey = Symbol.for("v-scx");
6805
- const useSSRContext = () => {
6806
- {
6807
- const ctx = inject(ssrContextKey);
6808
- return ctx;
6809
- }
6810
- };
6811
-
6812
- function watchEffect(effect, options) {
6813
- return doWatch(effect, null, options);
6814
- }
6815
- function watchPostEffect(effect, options) {
6816
- return doWatch(
6817
- effect,
6818
- null,
6819
- { flush: "post" }
6820
- );
6821
- }
6822
- function watchSyncEffect(effect, options) {
6823
- return doWatch(
6824
- effect,
6825
- null,
6826
- { flush: "sync" }
6827
- );
6828
- }
6829
- function watch(source, cb, options) {
6830
- return doWatch(source, cb, options);
6831
- }
6832
- class RenderWatcherEffect extends WatcherEffect {
6833
- constructor(instance, source, cb, options, flush) {
6834
- super(source, cb, options);
6835
- this.flush = flush;
6836
- const job = () => {
6837
- if (this.dirty) {
6838
- this.run();
6839
- }
6840
- };
6841
- if (cb) {
6842
- this.flags |= 128;
6843
- job.flags |= 2;
6888
+ const compatModelEventPrefix = `onModelCompat:`;
6889
+ function convertLegacyVModelProps(vnode) {
6890
+ const { type, shapeFlag, props, dynamicProps } = vnode;
6891
+ const comp = type;
6892
+ if (shapeFlag & 6 && props && "modelValue" in props) {
6893
+ if (!isCompatEnabled$1(
6894
+ "COMPONENT_V_MODEL",
6895
+ // this is a special case where we want to use the vnode component's
6896
+ // compat config instead of the current rendering instance (which is the
6897
+ // parent of the component that exposes v-model)
6898
+ { type }
6899
+ )) {
6900
+ return;
6844
6901
  }
6845
- if (instance) {
6846
- job.i = instance;
6902
+ const model = comp.model || {};
6903
+ applyModelFromMixins(model, comp.mixins);
6904
+ const { prop = "value", event = "input" } = model;
6905
+ if (prop !== "modelValue") {
6906
+ props[prop] = props.modelValue;
6907
+ delete props.modelValue;
6847
6908
  }
6848
- this.job = job;
6849
- }
6850
- notify() {
6851
- const flags = this.flags;
6852
- if (!(flags & 256)) {
6853
- const flush = this.flush;
6854
- const job = this.job;
6855
- if (flush === "post") {
6856
- queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
6857
- } else if (flush === "pre") {
6858
- queueJob(job, job.i ? job.i.uid : void 0, true);
6859
- } else {
6860
- job();
6861
- }
6909
+ if (dynamicProps) {
6910
+ dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
6862
6911
  }
6912
+ props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
6913
+ delete props["onUpdate:modelValue"];
6863
6914
  }
6864
6915
  }
6865
- function doWatch(source, cb, options = EMPTY_OBJ) {
6866
- const { immediate, deep, flush = "pre", once } = options;
6867
- const baseWatchOptions = extend({}, options);
6868
- const runsImmediately = cb && immediate || !cb && flush !== "post";
6869
- let ssrCleanup;
6870
- if (isInSSRComponentSetup) {
6871
- if (flush === "sync") {
6872
- const ctx = useSSRContext();
6873
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
6874
- } else if (!runsImmediately) {
6875
- const watchStopHandle = () => {
6876
- };
6877
- watchStopHandle.stop = NOOP;
6878
- watchStopHandle.resume = NOOP;
6879
- watchStopHandle.pause = NOOP;
6880
- return watchStopHandle;
6881
- }
6882
- }
6883
- const instance = currentInstance;
6884
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
6885
- const effect = new RenderWatcherEffect(
6886
- instance,
6887
- source,
6888
- cb,
6889
- baseWatchOptions,
6890
- flush
6891
- );
6892
- if (cb) {
6893
- effect.run(true);
6894
- } else if (flush === "post") {
6895
- queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
6896
- } else {
6897
- effect.run(true);
6898
- }
6899
- const stop = effect.stop.bind(effect);
6900
- stop.pause = effect.pause.bind(effect);
6901
- stop.resume = effect.resume.bind(effect);
6902
- stop.stop = stop;
6903
- if (isInSSRComponentSetup) {
6904
- if (ssrCleanup) {
6905
- ssrCleanup.push(stop);
6906
- } else if (runsImmediately) {
6907
- stop();
6908
- }
6916
+ function applyModelFromMixins(model, mixins) {
6917
+ if (mixins) {
6918
+ mixins.forEach((m) => {
6919
+ if (m.model) extend(model, m.model);
6920
+ if (m.mixins) applyModelFromMixins(model, m.mixins);
6921
+ });
6909
6922
  }
6910
- return stop;
6911
6923
  }
6912
- function instanceWatch(source, value, options) {
6913
- const publicThis = this.proxy;
6914
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
6915
- let cb;
6916
- if (isFunction(value)) {
6917
- cb = value;
6918
- } else {
6919
- cb = value.handler;
6920
- options = value;
6924
+ function compatModelEmit(instance, event, args) {
6925
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
6926
+ return;
6927
+ }
6928
+ const props = instance.vnode.props;
6929
+ const modelHandler = props && props[compatModelEventPrefix + event];
6930
+ if (modelHandler) {
6931
+ callWithErrorHandling(
6932
+ modelHandler,
6933
+ instance,
6934
+ 6,
6935
+ args
6936
+ );
6921
6937
  }
6922
- const prev = setCurrentInstance(this);
6923
- const res = doWatch(getter, cb.bind(publicThis), options);
6924
- setCurrentInstance(...prev);
6925
- return res;
6926
- }
6927
- function createPathGetter(ctx, path) {
6928
- const segments = path.split(".");
6929
- return () => {
6930
- let cur = ctx;
6931
- for (let i = 0; i < segments.length && cur; i++) {
6932
- cur = cur[segments[i]];
6933
- }
6934
- return cur;
6935
- };
6936
6938
  }
6937
6939
 
6938
6940
  function useModel(props, name, options = EMPTY_OBJ) {
@@ -7795,6 +7797,14 @@ const updateSlots = (instance, children, optimized) => {
7795
7797
  }
7796
7798
  };
7797
7799
 
7800
+ const MoveType = {
7801
+ "ENTER": 0,
7802
+ "0": "ENTER",
7803
+ "LEAVE": 1,
7804
+ "1": "LEAVE",
7805
+ "REORDER": 2,
7806
+ "2": "REORDER"
7807
+ };
7798
7808
  const queuePostRenderEffect = queueEffectWithSuspense ;
7799
7809
  function createRenderer(options) {
7800
7810
  return baseCreateRenderer(options);
@@ -7936,7 +7946,9 @@ function baseCreateRenderer(options, createHydrationFns) {
7936
7946
  } else {
7937
7947
  const el = n2.el = n1.el;
7938
7948
  if (n2.children !== n1.children) {
7939
- hostSetText(el, n2.children);
7949
+ {
7950
+ hostSetText(el, n2.children);
7951
+ }
7940
7952
  }
7941
7953
  }
7942
7954
  };
@@ -8284,7 +8296,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8284
8296
  } else {
8285
8297
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
8286
8298
  // of renderSlot() with no valid children
8287
- n1.dynamicChildren) {
8299
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
8288
8300
  patchBlockChildren(
8289
8301
  n1.dynamicChildren,
8290
8302
  dynamicChildren,
@@ -8922,8 +8934,8 @@ function baseCreateRenderer(options, createHydrationFns) {
8922
8934
  const nextChild = c2[nextIndex];
8923
8935
  const anchorVNode = c2[nextIndex + 1];
8924
8936
  const anchor = nextIndex + 1 < l2 ? (
8925
- // #13559, fallback to el placeholder for unresolved async component
8926
- anchorVNode.el || anchorVNode.placeholder
8937
+ // #13559, #14173 fallback to el placeholder for unresolved async component
8938
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
8927
8939
  ) : parentAnchor;
8928
8940
  if (newIndexToOldIndexMap[i] === 0) {
8929
8941
  patch(
@@ -9224,9 +9236,11 @@ function baseCreateRenderer(options, createHydrationFns) {
9224
9236
  return teleportEnd ? hostNextSibling(teleportEnd) : el;
9225
9237
  };
9226
9238
  const render = (vnode, container, namespace) => {
9239
+ let instance;
9227
9240
  if (vnode == null) {
9228
9241
  if (container._vnode) {
9229
9242
  unmount(container._vnode, null, null, true);
9243
+ instance = container._vnode.component;
9230
9244
  }
9231
9245
  } else {
9232
9246
  patch(
@@ -9240,7 +9254,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9240
9254
  );
9241
9255
  }
9242
9256
  container._vnode = vnode;
9243
- flushOnAppMount();
9257
+ flushOnAppMount(instance);
9244
9258
  };
9245
9259
  const internals = {
9246
9260
  p: patch,
@@ -9325,9 +9339,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
9325
9339
  if (!shallow && c2.patchFlag !== -2)
9326
9340
  traverseStaticChildren(c1, c2);
9327
9341
  }
9328
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
9329
- c2.patchFlag !== -1) {
9330
- c2.el = c1.el;
9342
+ if (c2.type === Text) {
9343
+ if (c2.patchFlag !== -1) {
9344
+ c2.el = c1.el;
9345
+ } else {
9346
+ c2.__elIndex = i + // take fragment start anchor into account
9347
+ (n1.type === Fragment ? 1 : 0);
9348
+ }
9331
9349
  }
9332
9350
  if (c2.type === Comment && !c2.el) {
9333
9351
  c2.el = c1.el;
@@ -9360,16 +9378,24 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
9360
9378
  insert();
9361
9379
  }
9362
9380
  }
9363
- function performTransitionLeave(el, transition, remove, isElement = true) {
9381
+ function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
9364
9382
  const performRemove = () => {
9365
9383
  remove();
9366
9384
  if (transition && !transition.persisted && transition.afterLeave) {
9367
9385
  transition.afterLeave();
9368
9386
  }
9369
9387
  };
9370
- if (isElement && transition && !transition.persisted) {
9388
+ if (force || isElement && transition && !transition.persisted) {
9371
9389
  const { leave, delayLeave } = transition;
9372
- const performLeave = () => leave(el, performRemove);
9390
+ const performLeave = () => {
9391
+ if (el._isLeaving && force) {
9392
+ el[leaveCbKey](
9393
+ true
9394
+ /* cancelled */
9395
+ );
9396
+ }
9397
+ leave(el, performRemove);
9398
+ };
9373
9399
  if (delayLeave) {
9374
9400
  delayLeave(el, performRemove, performLeave);
9375
9401
  } else {
@@ -9410,6 +9436,16 @@ function getInheritedScopeIds(vnode, parentComponent) {
9410
9436
  }
9411
9437
  return inheritedScopeIds;
9412
9438
  }
9439
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
9440
+ if (anchorVnode.placeholder) {
9441
+ return anchorVnode.placeholder;
9442
+ }
9443
+ const instance = anchorVnode.component;
9444
+ if (instance) {
9445
+ return resolveAsyncComponentPlaceholder(instance.subTree);
9446
+ }
9447
+ return null;
9448
+ }
9413
9449
 
9414
9450
  const isSuspense = (type) => type.__isSuspense;
9415
9451
  let suspenseId = 0;
@@ -10024,11 +10060,11 @@ function convertLegacyComponent(comp, instance) {
10024
10060
  return comp;
10025
10061
  }
10026
10062
 
10027
- const Fragment = Symbol.for("v-fgt");
10028
- const Text = Symbol.for("v-txt");
10029
- const Comment = Symbol.for("v-cmt");
10030
- const Static = Symbol.for("v-stc");
10031
- const VaporSlot = Symbol.for("v-vps");
10063
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
10064
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
10065
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
10066
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
10067
+ const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
10032
10068
  const blockStack = [];
10033
10069
  let currentBlock = null;
10034
10070
  function openBlock(disableTracking = false) {
@@ -10771,7 +10807,7 @@ function isMemoSame(cached, memo) {
10771
10807
  return true;
10772
10808
  }
10773
10809
 
10774
- const version = "3.6.0-alpha.7";
10810
+ const version = "3.6.0-beta.1";
10775
10811
  const warn$1 = NOOP;
10776
10812
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10777
10813
  const devtools = void 0;
@@ -10882,7 +10918,7 @@ const nodeOps = {
10882
10918
 
10883
10919
  const TRANSITION$1 = "transition";
10884
10920
  const ANIMATION = "animation";
10885
- const vtcKey = Symbol("_vtc");
10921
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
10886
10922
  const DOMTransitionPropsValidators = {
10887
10923
  name: String,
10888
10924
  type: String,
@@ -11209,8 +11245,8 @@ function patchClass(el, value, isSVG) {
11209
11245
  }
11210
11246
  }
11211
11247
 
11212
- const vShowOriginalDisplay = Symbol("_vod");
11213
- const vShowHidden = Symbol("_vsh");
11248
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
11249
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
11214
11250
  const vShow = {
11215
11251
  // used for prop mismatch check during hydration
11216
11252
  name: "show",
@@ -11259,7 +11295,7 @@ function initVShowForSSR() {
11259
11295
  };
11260
11296
  }
11261
11297
 
11262
- const CSS_VAR_TEXT = Symbol("");
11298
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("");
11263
11299
  function useCssVars(getter) {
11264
11300
  return;
11265
11301
  }
@@ -11381,7 +11417,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
11381
11417
  const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
11382
11418
  function compatCoerceAttr(el, key, value, instance = null) {
11383
11419
  if (isEnumeratedAttr(key)) {
11384
- const v2CoercedValue = value === null ? "false" : typeof value !== "boolean" && value !== void 0 ? "true" : null;
11420
+ const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
11385
11421
  if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
11386
11422
  "ATTR_ENUMERATED_COERCION",
11387
11423
  instance,
@@ -11465,7 +11501,7 @@ function addEventListener(el, event, handler, options) {
11465
11501
  function removeEventListener(el, event, handler, options) {
11466
11502
  el.removeEventListener(event, handler, options);
11467
11503
  }
11468
- const veiKey = Symbol("_vei");
11504
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
11469
11505
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
11470
11506
  const invokers = el[veiKey] || (el[veiKey] = {});
11471
11507
  const existingInvoker = invokers[rawName];
@@ -12052,8 +12088,8 @@ function useCssModule(name = "$style") {
12052
12088
 
12053
12089
  const positionMap = /* @__PURE__ */ new WeakMap();
12054
12090
  const newPositionMap = /* @__PURE__ */ new WeakMap();
12055
- const moveCbKey = Symbol("_moveCb");
12056
- const enterCbKey = Symbol("_enterCb");
12091
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
12092
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
12057
12093
  const decorate = (t) => {
12058
12094
  delete t.props.mode;
12059
12095
  {
@@ -12223,7 +12259,7 @@ function onCompositionEnd(e) {
12223
12259
  target.dispatchEvent(new Event("input"));
12224
12260
  }
12225
12261
  }
12226
- const assignKey = Symbol("_assign");
12262
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
12227
12263
  const vModelText = {
12228
12264
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
12229
12265
  el[assignKey] = getModelAssigner(vnode);
@@ -12685,6 +12721,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
12685
12721
  ErrorTypeStrings: ErrorTypeStrings,
12686
12722
  Fragment: Fragment,
12687
12723
  KeepAlive: KeepAlive,
12724
+ MoveType: MoveType,
12688
12725
  ReactiveEffect: ReactiveEffect,
12689
12726
  Static: Static,
12690
12727
  Suspense: Suspense,
@@ -12867,81 +12904,81 @@ function createCompatVue() {
12867
12904
  return Vue;
12868
12905
  }
12869
12906
 
12870
- const FRAGMENT = Symbol(``);
12871
- const TELEPORT = Symbol(``);
12872
- const SUSPENSE = Symbol(``);
12873
- const KEEP_ALIVE = Symbol(``);
12874
- const BASE_TRANSITION = Symbol(
12907
+ const FRAGMENT = /* @__PURE__ */ Symbol(``);
12908
+ const TELEPORT = /* @__PURE__ */ Symbol(``);
12909
+ const SUSPENSE = /* @__PURE__ */ Symbol(``);
12910
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(``);
12911
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
12875
12912
  ``
12876
12913
  );
12877
- const OPEN_BLOCK = Symbol(``);
12878
- const CREATE_BLOCK = Symbol(``);
12879
- const CREATE_ELEMENT_BLOCK = Symbol(
12914
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(``);
12915
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(``);
12916
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
12880
12917
  ``
12881
12918
  );
12882
- const CREATE_VNODE = Symbol(``);
12883
- const CREATE_ELEMENT_VNODE = Symbol(
12919
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(``);
12920
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
12884
12921
  ``
12885
12922
  );
12886
- const CREATE_COMMENT = Symbol(
12923
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
12887
12924
  ``
12888
12925
  );
12889
- const CREATE_TEXT = Symbol(
12926
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
12890
12927
  ``
12891
12928
  );
12892
- const CREATE_STATIC = Symbol(
12929
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
12893
12930
  ``
12894
12931
  );
12895
- const RESOLVE_COMPONENT = Symbol(
12932
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
12896
12933
  ``
12897
12934
  );
12898
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
12935
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
12899
12936
  ``
12900
12937
  );
12901
- const RESOLVE_DIRECTIVE = Symbol(
12938
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
12902
12939
  ``
12903
12940
  );
12904
- const RESOLVE_FILTER = Symbol(
12941
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
12905
12942
  ``
12906
12943
  );
12907
- const WITH_DIRECTIVES = Symbol(
12944
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
12908
12945
  ``
12909
12946
  );
12910
- const RENDER_LIST = Symbol(``);
12911
- const RENDER_SLOT = Symbol(``);
12912
- const CREATE_SLOTS = Symbol(``);
12913
- const TO_DISPLAY_STRING = Symbol(
12947
+ const RENDER_LIST = /* @__PURE__ */ Symbol(``);
12948
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(``);
12949
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(``);
12950
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
12914
12951
  ``
12915
12952
  );
12916
- const MERGE_PROPS = Symbol(``);
12917
- const NORMALIZE_CLASS = Symbol(
12953
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(``);
12954
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
12918
12955
  ``
12919
12956
  );
12920
- const NORMALIZE_STYLE = Symbol(
12957
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
12921
12958
  ``
12922
12959
  );
12923
- const NORMALIZE_PROPS = Symbol(
12960
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
12924
12961
  ``
12925
12962
  );
12926
- const GUARD_REACTIVE_PROPS = Symbol(
12963
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
12927
12964
  ``
12928
12965
  );
12929
- const TO_HANDLERS = Symbol(``);
12930
- const CAMELIZE = Symbol(``);
12931
- const CAPITALIZE = Symbol(``);
12932
- const TO_HANDLER_KEY = Symbol(
12966
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(``);
12967
+ const CAMELIZE = /* @__PURE__ */ Symbol(``);
12968
+ const CAPITALIZE = /* @__PURE__ */ Symbol(``);
12969
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
12933
12970
  ``
12934
12971
  );
12935
- const SET_BLOCK_TRACKING = Symbol(
12972
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
12936
12973
  ``
12937
12974
  );
12938
- const PUSH_SCOPE_ID = Symbol(``);
12939
- const POP_SCOPE_ID = Symbol(``);
12940
- const WITH_CTX = Symbol(``);
12941
- const UNREF = Symbol(``);
12942
- const IS_REF = Symbol(``);
12943
- const WITH_MEMO = Symbol(``);
12944
- const IS_MEMO_SAME = Symbol(``);
12975
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(``);
12976
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(``);
12977
+ const WITH_CTX = /* @__PURE__ */ Symbol(``);
12978
+ const UNREF = /* @__PURE__ */ Symbol(``);
12979
+ const IS_REF = /* @__PURE__ */ Symbol(``);
12980
+ const WITH_MEMO = /* @__PURE__ */ Symbol(``);
12981
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(``);
12945
12982
  const helperNameMap = {
12946
12983
  [FRAGMENT]: `Fragment`,
12947
12984
  [TELEPORT]: `Teleport`,
@@ -13211,8 +13248,8 @@ class Tokenizer {
13211
13248
  this.currentSequence = void 0;
13212
13249
  this.sequenceIndex = 0;
13213
13250
  {
13214
- this.entityDecoder = new decode_js.EntityDecoder(
13215
- decode_js.htmlDecodeTree,
13251
+ this.entityDecoder = new decode.EntityDecoder(
13252
+ decode.htmlDecodeTree,
13216
13253
  (cp, consumed) => this.emitCodePoint(cp, consumed)
13217
13254
  );
13218
13255
  }
@@ -13242,14 +13279,28 @@ class Tokenizer {
13242
13279
  getPos(index) {
13243
13280
  let line = 1;
13244
13281
  let column = index + 1;
13245
- for (let i = this.newlines.length - 1; i >= 0; i--) {
13246
- const newlineIndex = this.newlines[i];
13247
- if (index > newlineIndex) {
13248
- line = i + 2;
13249
- column = index - newlineIndex;
13250
- break;
13282
+ const length = this.newlines.length;
13283
+ let j = -1;
13284
+ if (length > 100) {
13285
+ let l = -1;
13286
+ let r = length;
13287
+ while (l + 1 < r) {
13288
+ const m = l + r >>> 1;
13289
+ this.newlines[m] < index ? l = m : r = m;
13290
+ }
13291
+ j = l;
13292
+ } else {
13293
+ for (let i = length - 1; i >= 0; i--) {
13294
+ if (index > this.newlines[i]) {
13295
+ j = i;
13296
+ break;
13297
+ }
13251
13298
  }
13252
13299
  }
13300
+ if (j >= 0) {
13301
+ line = j + 2;
13302
+ column = index - this.newlines[j];
13303
+ }
13253
13304
  return {
13254
13305
  column,
13255
13306
  line,
@@ -13762,7 +13813,7 @@ class Tokenizer {
13762
13813
  this.state = 33;
13763
13814
  this.entityStart = this.index;
13764
13815
  this.entityDecoder.startEntity(
13765
- this.baseState === 1 || this.baseState === 32 ? decode_js.DecodingMode.Legacy : decode_js.DecodingMode.Attribute
13816
+ this.baseState === 1 || this.baseState === 32 ? decode.DecodingMode.Legacy : decode.DecodingMode.Attribute
13766
13817
  );
13767
13818
  }
13768
13819
  }
@@ -13981,7 +14032,7 @@ class Tokenizer {
13981
14032
  this.sectionStart = this.entityStart + consumed;
13982
14033
  this.index = this.sectionStart - 1;
13983
14034
  this.cbs.onattribentity(
13984
- decode_js.fromCodePoint(cp),
14035
+ decode.fromCodePoint(cp),
13985
14036
  this.entityStart,
13986
14037
  this.sectionStart
13987
14038
  );
@@ -13992,7 +14043,7 @@ class Tokenizer {
13992
14043
  this.sectionStart = this.entityStart + consumed;
13993
14044
  this.index = this.sectionStart - 1;
13994
14045
  this.cbs.ontextentity(
13995
- decode_js.fromCodePoint(cp),
14046
+ decode.fromCodePoint(cp),
13996
14047
  this.entityStart,
13997
14048
  this.sectionStart
13998
14049
  );
@@ -14070,7 +14121,7 @@ const errorMessages = {
14070
14121
  [32]: `v-for has invalid expression.`,
14071
14122
  [33]: `<template v-for> key should be placed on the <template> tag.`,
14072
14123
  [34]: `v-bind is missing expression.`,
14073
- [52]: `v-bind with same-name shorthand only allows static argument.`,
14124
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
14074
14125
  [35]: `v-on is missing expression.`,
14075
14126
  [36]: `Unexpected custom directive on <slot> outlet.`,
14076
14127
  [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
@@ -14082,16 +14133,17 @@ const errorMessages = {
14082
14133
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
14083
14134
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
14084
14135
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
14085
- [45]: `Error parsing JavaScript expression: `,
14086
- [46]: `<KeepAlive> expects exactly one child component.`,
14087
- [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
14136
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
14137
+ [46]: `Error parsing JavaScript expression: `,
14138
+ [47]: `<KeepAlive> expects exactly one child component.`,
14139
+ [52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
14088
14140
  // generic errors
14089
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
14090
- [48]: `ES module mode is not supported in this build of compiler.`,
14091
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
14092
- [50]: `"scopeId" option is only supported in module mode.`,
14141
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
14142
+ [49]: `ES module mode is not supported in this build of compiler.`,
14143
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
14144
+ [51]: `"scopeId" option is only supported in module mode.`,
14093
14145
  // just to fulfill types
14094
- [53]: ``
14146
+ [54]: ``
14095
14147
  };
14096
14148
 
14097
14149
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -14810,7 +14862,7 @@ const tokenizer = new Tokenizer(stack, {
14810
14862
  let exp = getSlice(innerStart, innerEnd);
14811
14863
  if (exp.includes("&")) {
14812
14864
  {
14813
- exp = decode_js.decodeHTML(exp);
14865
+ exp = decode.decodeHTML(exp);
14814
14866
  }
14815
14867
  }
14816
14868
  addNode({
@@ -15441,7 +15493,7 @@ function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0
15441
15493
  }
15442
15494
  } catch (e) {
15443
15495
  exp.ast = false;
15444
- emitError(45, loc.start.offset, e.message);
15496
+ emitError(46, loc.start.offset, e.message);
15445
15497
  }
15446
15498
  }
15447
15499
  return exp;
@@ -16976,7 +17028,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
16976
17028
  } catch (e) {
16977
17029
  context.onError(
16978
17030
  createCompilerError(
16979
- 45,
17031
+ 46,
16980
17032
  node.loc,
16981
17033
  void 0,
16982
17034
  e.message
@@ -18741,6 +18793,10 @@ const transformModel$1 = (dir, node, context) => {
18741
18793
  context.onError(createCompilerError(44, exp.loc));
18742
18794
  return createTransformProps();
18743
18795
  }
18796
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
18797
+ context.onError(createCompilerError(45, exp.loc));
18798
+ return createTransformProps();
18799
+ }
18744
18800
  const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
18745
18801
  if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
18746
18802
  context.onError(
@@ -18989,7 +19045,7 @@ const transformVBindShorthand = (node, context) => {
18989
19045
  if (arg.type !== 4 || !arg.isStatic) {
18990
19046
  context.onError(
18991
19047
  createCompilerError(
18992
- 52,
19048
+ 53,
18993
19049
  arg.loc
18994
19050
  )
18995
19051
  );
@@ -19037,10 +19093,10 @@ function baseCompile(source, options = {}) {
19037
19093
  const isModuleMode = options.mode === "module";
19038
19094
  const prefixIdentifiers = options.prefixIdentifiers === true || isModuleMode;
19039
19095
  if (!prefixIdentifiers && options.cacheHandlers) {
19040
- onError(createCompilerError(49));
19096
+ onError(createCompilerError(50));
19041
19097
  }
19042
19098
  if (options.scopeId && !isModuleMode) {
19043
- onError(createCompilerError(50));
19099
+ onError(createCompilerError(51));
19044
19100
  }
19045
19101
  const resolvedOptions = extend({}, options, {
19046
19102
  prefixIdentifiers
@@ -19074,26 +19130,26 @@ function baseCompile(source, options = {}) {
19074
19130
 
19075
19131
  const noopDirectiveTransform = () => ({ props: [] });
19076
19132
 
19077
- const V_MODEL_RADIO = Symbol(``);
19078
- const V_MODEL_CHECKBOX = Symbol(
19133
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(``);
19134
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
19079
19135
  ``
19080
19136
  );
19081
- const V_MODEL_TEXT = Symbol(``);
19082
- const V_MODEL_SELECT = Symbol(
19137
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(``);
19138
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
19083
19139
  ``
19084
19140
  );
19085
- const V_MODEL_DYNAMIC = Symbol(
19141
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
19086
19142
  ``
19087
19143
  );
19088
- const V_ON_WITH_MODIFIERS = Symbol(
19144
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
19089
19145
  ``
19090
19146
  );
19091
- const V_ON_WITH_KEYS = Symbol(
19147
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
19092
19148
  ``
19093
19149
  );
19094
- const V_SHOW = Symbol(``);
19095
- const TRANSITION = Symbol(``);
19096
- const TRANSITION_GROUP = Symbol(
19150
+ const V_SHOW = /* @__PURE__ */ Symbol(``);
19151
+ const TRANSITION = /* @__PURE__ */ Symbol(``);
19152
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
19097
19153
  ``
19098
19154
  );
19099
19155
  registerRuntimeHelpers({
@@ -19190,31 +19246,31 @@ function createDOMCompilerError(code, loc) {
19190
19246
  );
19191
19247
  }
19192
19248
  const DOMErrorMessages = {
19193
- [53]: `v-html is missing expression.`,
19194
- [54]: `v-html will override element children.`,
19195
- [55]: `v-text is missing expression.`,
19196
- [56]: `v-text will override element children.`,
19197
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
19198
- [58]: `v-model argument is not supported on plain elements.`,
19199
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
19200
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
19201
- [61]: `v-show is missing expression.`,
19202
- [62]: `<Transition> expects exactly one child element or component.`,
19203
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
19249
+ [54]: `v-html is missing expression.`,
19250
+ [55]: `v-html will override element children.`,
19251
+ [56]: `v-text is missing expression.`,
19252
+ [57]: `v-text will override element children.`,
19253
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
19254
+ [59]: `v-model argument is not supported on plain elements.`,
19255
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
19256
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
19257
+ [62]: `v-show is missing expression.`,
19258
+ [63]: `<Transition> expects exactly one child element or component.`,
19259
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
19204
19260
  // just to fulfill types
19205
- [64]: ``
19261
+ [65]: ``
19206
19262
  };
19207
19263
 
19208
19264
  const transformVHtml = (dir, node, context) => {
19209
19265
  const { exp, loc } = dir;
19210
19266
  if (!exp) {
19211
19267
  context.onError(
19212
- createDOMCompilerError(53, loc)
19268
+ createDOMCompilerError(54, loc)
19213
19269
  );
19214
19270
  }
19215
19271
  if (node.children.length) {
19216
19272
  context.onError(
19217
- createDOMCompilerError(54, loc)
19273
+ createDOMCompilerError(55, loc)
19218
19274
  );
19219
19275
  node.children.length = 0;
19220
19276
  }
@@ -19232,12 +19288,12 @@ const transformVText = (dir, node, context) => {
19232
19288
  const { exp, loc } = dir;
19233
19289
  if (!exp) {
19234
19290
  context.onError(
19235
- createDOMCompilerError(55, loc)
19291
+ createDOMCompilerError(56, loc)
19236
19292
  );
19237
19293
  }
19238
19294
  if (node.children.length) {
19239
19295
  context.onError(
19240
- createDOMCompilerError(56, loc)
19296
+ createDOMCompilerError(57, loc)
19241
19297
  );
19242
19298
  node.children.length = 0;
19243
19299
  }
@@ -19263,7 +19319,7 @@ const transformModel = (dir, node, context) => {
19263
19319
  if (dir.arg) {
19264
19320
  context.onError(
19265
19321
  createDOMCompilerError(
19266
- 58,
19322
+ 59,
19267
19323
  dir.arg.loc
19268
19324
  )
19269
19325
  );
@@ -19290,7 +19346,7 @@ const transformModel = (dir, node, context) => {
19290
19346
  isInvalidType = true;
19291
19347
  context.onError(
19292
19348
  createDOMCompilerError(
19293
- 59,
19349
+ 60,
19294
19350
  dir.loc
19295
19351
  )
19296
19352
  );
@@ -19309,7 +19365,7 @@ const transformModel = (dir, node, context) => {
19309
19365
  } else {
19310
19366
  context.onError(
19311
19367
  createDOMCompilerError(
19312
- 57,
19368
+ 58,
19313
19369
  dir.loc
19314
19370
  )
19315
19371
  );
@@ -19418,7 +19474,7 @@ const transformShow = (dir, node, context) => {
19418
19474
  const { exp, loc } = dir;
19419
19475
  if (!exp) {
19420
19476
  context.onError(
19421
- createDOMCompilerError(61, loc)
19477
+ createDOMCompilerError(62, loc)
19422
19478
  );
19423
19479
  }
19424
19480
  return {