@vue/compat 3.6.0-alpha.6 → 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.
- package/README.md +38 -38
- package/dist/vue.cjs.js +548 -457
- package/dist/vue.cjs.prod.js +419 -348
- package/dist/vue.esm-browser.js +541 -450
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +532 -450
- package/dist/vue.global.js +454 -363
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime.esm-browser.js +541 -450
- package/dist/vue.runtime.esm-browser.prod.js +8 -8
- package/dist/vue.runtime.esm-bundler.js +532 -450
- package/dist/vue.runtime.global.js +454 -363
- package/dist/vue.runtime.global.prod.js +9 -9
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-
|
|
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
|
|
10
|
+
var decode = require('entities/decode');
|
|
11
11
|
var sourceMapJs = require('source-map-js');
|
|
12
12
|
|
|
13
13
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -877,13 +877,13 @@ class Dep {
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
880
|
-
const ITERATE_KEY = Symbol(
|
|
880
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
881
881
|
"Object iterate"
|
|
882
882
|
);
|
|
883
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
883
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
884
884
|
"Map keys iterate"
|
|
885
885
|
);
|
|
886
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
886
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
887
887
|
"Array iterate"
|
|
888
888
|
);
|
|
889
889
|
function track(target, type, key) {
|
|
@@ -2123,6 +2123,16 @@ class EffectScope {
|
|
|
2123
2123
|
return;
|
|
2124
2124
|
}
|
|
2125
2125
|
this.flags = 1024;
|
|
2126
|
+
this.reset();
|
|
2127
|
+
const sub = this.subs;
|
|
2128
|
+
if (sub !== void 0) {
|
|
2129
|
+
unlink(sub);
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
/**
|
|
2133
|
+
* @internal
|
|
2134
|
+
*/
|
|
2135
|
+
reset() {
|
|
2126
2136
|
let dep = this.deps;
|
|
2127
2137
|
while (dep !== void 0) {
|
|
2128
2138
|
const node = dep.dep;
|
|
@@ -2133,10 +2143,6 @@ class EffectScope {
|
|
|
2133
2143
|
dep = unlink(dep, this);
|
|
2134
2144
|
}
|
|
2135
2145
|
}
|
|
2136
|
-
const sub = this.subs;
|
|
2137
|
-
if (sub !== void 0) {
|
|
2138
|
-
unlink(sub);
|
|
2139
|
-
}
|
|
2140
2146
|
cleanup(this);
|
|
2141
2147
|
}
|
|
2142
2148
|
}
|
|
@@ -2878,10 +2884,10 @@ function flushPostFlushCbs(seen) {
|
|
|
2878
2884
|
}
|
|
2879
2885
|
}
|
|
2880
2886
|
let isFlushing = false;
|
|
2881
|
-
function flushOnAppMount() {
|
|
2887
|
+
function flushOnAppMount(instance) {
|
|
2882
2888
|
if (!isFlushing) {
|
|
2883
2889
|
isFlushing = true;
|
|
2884
|
-
flushPreFlushCbs();
|
|
2890
|
+
flushPreFlushCbs(instance);
|
|
2885
2891
|
flushPostFlushCbs();
|
|
2886
2892
|
isFlushing = false;
|
|
2887
2893
|
}
|
|
@@ -2948,6 +2954,7 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2948
2954
|
|
|
2949
2955
|
let isHmrUpdating = false;
|
|
2950
2956
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2957
|
+
const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
|
|
2951
2958
|
{
|
|
2952
2959
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
2953
2960
|
createRecord: tryWrap(createRecord),
|
|
@@ -3011,9 +3018,10 @@ function reload(id, newComp) {
|
|
|
3011
3018
|
const record = map.get(id);
|
|
3012
3019
|
if (!record) return;
|
|
3013
3020
|
newComp = normalizeClassComponent(newComp);
|
|
3021
|
+
const isVapor = record.initialDef.__vapor;
|
|
3014
3022
|
updateComponentDef(record.initialDef, newComp);
|
|
3015
3023
|
const instances = [...record.instances];
|
|
3016
|
-
if (newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
3024
|
+
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
3017
3025
|
for (const instance of instances) {
|
|
3018
3026
|
if (instance.root && instance.root.ce && instance !== instance.root) {
|
|
3019
3027
|
instance.root.ce._removeChildStyle(instance.type);
|
|
@@ -3033,6 +3041,7 @@ function reload(id, newComp) {
|
|
|
3033
3041
|
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
3034
3042
|
}
|
|
3035
3043
|
dirtyInstances.add(instance);
|
|
3044
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
3036
3045
|
instance.appContext.propsCache.delete(instance.type);
|
|
3037
3046
|
instance.appContext.emitsCache.delete(instance.type);
|
|
3038
3047
|
instance.appContext.optionsCache.delete(instance.type);
|
|
@@ -3073,6 +3082,7 @@ function reload(id, newComp) {
|
|
|
3073
3082
|
}
|
|
3074
3083
|
queuePostFlushCb(() => {
|
|
3075
3084
|
hmrDirtyComponents.clear();
|
|
3085
|
+
hmrDirtyComponentsMode.clear();
|
|
3076
3086
|
});
|
|
3077
3087
|
}
|
|
3078
3088
|
function updateComponentDef(oldComp, newComp) {
|
|
@@ -3611,65 +3621,6 @@ function emit$1(instance, event, args) {
|
|
|
3611
3621
|
return instance.proxy;
|
|
3612
3622
|
}
|
|
3613
3623
|
|
|
3614
|
-
const compatModelEventPrefix = `onModelCompat:`;
|
|
3615
|
-
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
3616
|
-
function convertLegacyVModelProps(vnode) {
|
|
3617
|
-
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
3618
|
-
const comp = type;
|
|
3619
|
-
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
3620
|
-
if (!isCompatEnabled$1(
|
|
3621
|
-
"COMPONENT_V_MODEL",
|
|
3622
|
-
// this is a special case where we want to use the vnode component's
|
|
3623
|
-
// compat config instead of the current rendering instance (which is the
|
|
3624
|
-
// parent of the component that exposes v-model)
|
|
3625
|
-
{ type }
|
|
3626
|
-
)) {
|
|
3627
|
-
return;
|
|
3628
|
-
}
|
|
3629
|
-
if (!warnedTypes.has(comp)) {
|
|
3630
|
-
pushWarningContext(vnode);
|
|
3631
|
-
warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
|
|
3632
|
-
popWarningContext();
|
|
3633
|
-
warnedTypes.add(comp);
|
|
3634
|
-
}
|
|
3635
|
-
const model = comp.model || {};
|
|
3636
|
-
applyModelFromMixins(model, comp.mixins);
|
|
3637
|
-
const { prop = "value", event = "input" } = model;
|
|
3638
|
-
if (prop !== "modelValue") {
|
|
3639
|
-
props[prop] = props.modelValue;
|
|
3640
|
-
delete props.modelValue;
|
|
3641
|
-
}
|
|
3642
|
-
if (dynamicProps) {
|
|
3643
|
-
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
3644
|
-
}
|
|
3645
|
-
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
3646
|
-
delete props["onUpdate:modelValue"];
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
function applyModelFromMixins(model, mixins) {
|
|
3650
|
-
if (mixins) {
|
|
3651
|
-
mixins.forEach((m) => {
|
|
3652
|
-
if (m.model) extend(model, m.model);
|
|
3653
|
-
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
3654
|
-
});
|
|
3655
|
-
}
|
|
3656
|
-
}
|
|
3657
|
-
function compatModelEmit(instance, event, args) {
|
|
3658
|
-
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
3659
|
-
return;
|
|
3660
|
-
}
|
|
3661
|
-
const props = instance.vnode.props;
|
|
3662
|
-
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
3663
|
-
if (modelHandler) {
|
|
3664
|
-
callWithErrorHandling(
|
|
3665
|
-
modelHandler,
|
|
3666
|
-
instance,
|
|
3667
|
-
6,
|
|
3668
|
-
args
|
|
3669
|
-
);
|
|
3670
|
-
}
|
|
3671
|
-
}
|
|
3672
|
-
|
|
3673
3624
|
let currentRenderingInstance = null;
|
|
3674
3625
|
let currentScopeId = null;
|
|
3675
3626
|
function setCurrentRenderingInstance(instance) {
|
|
@@ -3820,7 +3771,203 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3820
3771
|
}
|
|
3821
3772
|
}
|
|
3822
3773
|
|
|
3823
|
-
|
|
3774
|
+
function provide(key, value) {
|
|
3775
|
+
{
|
|
3776
|
+
if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) {
|
|
3777
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
if (currentInstance) {
|
|
3781
|
+
let provides = currentInstance.provides;
|
|
3782
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3783
|
+
if (parentProvides === provides) {
|
|
3784
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3785
|
+
}
|
|
3786
|
+
provides[key] = value;
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3790
|
+
const instance = getCurrentGenericInstance();
|
|
3791
|
+
if (instance || currentApp) {
|
|
3792
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
3793
|
+
if (provides && key in provides) {
|
|
3794
|
+
return provides[key];
|
|
3795
|
+
} else if (arguments.length > 1) {
|
|
3796
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3797
|
+
} else {
|
|
3798
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3799
|
+
}
|
|
3800
|
+
} else {
|
|
3801
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
function hasInjectionContext() {
|
|
3805
|
+
return !!(getCurrentGenericInstance() || currentApp);
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3809
|
+
const useSSRContext = () => {
|
|
3810
|
+
{
|
|
3811
|
+
const ctx = inject(ssrContextKey);
|
|
3812
|
+
if (!ctx) {
|
|
3813
|
+
warn$1(
|
|
3814
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3815
|
+
);
|
|
3816
|
+
}
|
|
3817
|
+
return ctx;
|
|
3818
|
+
}
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
function watchEffect(effect, options) {
|
|
3822
|
+
return doWatch(effect, null, options);
|
|
3823
|
+
}
|
|
3824
|
+
function watchPostEffect(effect, options) {
|
|
3825
|
+
return doWatch(
|
|
3826
|
+
effect,
|
|
3827
|
+
null,
|
|
3828
|
+
extend({}, options, { flush: "post" })
|
|
3829
|
+
);
|
|
3830
|
+
}
|
|
3831
|
+
function watchSyncEffect(effect, options) {
|
|
3832
|
+
return doWatch(
|
|
3833
|
+
effect,
|
|
3834
|
+
null,
|
|
3835
|
+
extend({}, options, { flush: "sync" })
|
|
3836
|
+
);
|
|
3837
|
+
}
|
|
3838
|
+
function watch(source, cb, options) {
|
|
3839
|
+
if (!isFunction(cb)) {
|
|
3840
|
+
warn$1(
|
|
3841
|
+
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
3842
|
+
);
|
|
3843
|
+
}
|
|
3844
|
+
return doWatch(source, cb, options);
|
|
3845
|
+
}
|
|
3846
|
+
class RenderWatcherEffect extends WatcherEffect {
|
|
3847
|
+
constructor(instance, source, cb, options, flush) {
|
|
3848
|
+
super(source, cb, options);
|
|
3849
|
+
this.flush = flush;
|
|
3850
|
+
const job = () => {
|
|
3851
|
+
if (this.dirty) {
|
|
3852
|
+
this.run();
|
|
3853
|
+
}
|
|
3854
|
+
};
|
|
3855
|
+
if (cb) {
|
|
3856
|
+
this.flags |= 128;
|
|
3857
|
+
job.flags |= 2;
|
|
3858
|
+
}
|
|
3859
|
+
if (instance) {
|
|
3860
|
+
job.i = instance;
|
|
3861
|
+
}
|
|
3862
|
+
this.job = job;
|
|
3863
|
+
}
|
|
3864
|
+
notify() {
|
|
3865
|
+
const flags = this.flags;
|
|
3866
|
+
if (!(flags & 256)) {
|
|
3867
|
+
const flush = this.flush;
|
|
3868
|
+
const job = this.job;
|
|
3869
|
+
if (flush === "post") {
|
|
3870
|
+
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
3871
|
+
} else if (flush === "pre") {
|
|
3872
|
+
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
3873
|
+
} else {
|
|
3874
|
+
job();
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3880
|
+
const { immediate, deep, flush = "pre", once } = options;
|
|
3881
|
+
if (!cb) {
|
|
3882
|
+
if (immediate !== void 0) {
|
|
3883
|
+
warn$1(
|
|
3884
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3885
|
+
);
|
|
3886
|
+
}
|
|
3887
|
+
if (deep !== void 0) {
|
|
3888
|
+
warn$1(
|
|
3889
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3890
|
+
);
|
|
3891
|
+
}
|
|
3892
|
+
if (once !== void 0) {
|
|
3893
|
+
warn$1(
|
|
3894
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3895
|
+
);
|
|
3896
|
+
}
|
|
3897
|
+
}
|
|
3898
|
+
const baseWatchOptions = extend({}, options);
|
|
3899
|
+
baseWatchOptions.onWarn = warn$1;
|
|
3900
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
3901
|
+
let ssrCleanup;
|
|
3902
|
+
if (isInSSRComponentSetup) {
|
|
3903
|
+
if (flush === "sync") {
|
|
3904
|
+
const ctx = useSSRContext();
|
|
3905
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
3906
|
+
} else if (!runsImmediately) {
|
|
3907
|
+
const watchStopHandle = () => {
|
|
3908
|
+
};
|
|
3909
|
+
watchStopHandle.stop = NOOP;
|
|
3910
|
+
watchStopHandle.resume = NOOP;
|
|
3911
|
+
watchStopHandle.pause = NOOP;
|
|
3912
|
+
return watchStopHandle;
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
const instance = currentInstance;
|
|
3916
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3917
|
+
const effect = new RenderWatcherEffect(
|
|
3918
|
+
instance,
|
|
3919
|
+
source,
|
|
3920
|
+
cb,
|
|
3921
|
+
baseWatchOptions,
|
|
3922
|
+
flush
|
|
3923
|
+
);
|
|
3924
|
+
if (cb) {
|
|
3925
|
+
effect.run(true);
|
|
3926
|
+
} else if (flush === "post") {
|
|
3927
|
+
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
3928
|
+
} else {
|
|
3929
|
+
effect.run(true);
|
|
3930
|
+
}
|
|
3931
|
+
const stop = effect.stop.bind(effect);
|
|
3932
|
+
stop.pause = effect.pause.bind(effect);
|
|
3933
|
+
stop.resume = effect.resume.bind(effect);
|
|
3934
|
+
stop.stop = stop;
|
|
3935
|
+
if (isInSSRComponentSetup) {
|
|
3936
|
+
if (ssrCleanup) {
|
|
3937
|
+
ssrCleanup.push(stop);
|
|
3938
|
+
} else if (runsImmediately) {
|
|
3939
|
+
stop();
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
return stop;
|
|
3943
|
+
}
|
|
3944
|
+
function instanceWatch(source, value, options) {
|
|
3945
|
+
const publicThis = this.proxy;
|
|
3946
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3947
|
+
let cb;
|
|
3948
|
+
if (isFunction(value)) {
|
|
3949
|
+
cb = value;
|
|
3950
|
+
} else {
|
|
3951
|
+
cb = value.handler;
|
|
3952
|
+
options = value;
|
|
3953
|
+
}
|
|
3954
|
+
const prev = setCurrentInstance(this);
|
|
3955
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3956
|
+
setCurrentInstance(...prev);
|
|
3957
|
+
return res;
|
|
3958
|
+
}
|
|
3959
|
+
function createPathGetter(ctx, path) {
|
|
3960
|
+
const segments = path.split(".");
|
|
3961
|
+
return () => {
|
|
3962
|
+
let cur = ctx;
|
|
3963
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3964
|
+
cur = cur[segments[i]];
|
|
3965
|
+
}
|
|
3966
|
+
return cur;
|
|
3967
|
+
};
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3824
3971
|
const isTeleport = (type) => type.__isTeleport;
|
|
3825
3972
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3826
3973
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -4192,8 +4339,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
4192
4339
|
return targetAnchor;
|
|
4193
4340
|
}
|
|
4194
4341
|
|
|
4195
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
4196
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
4342
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
4343
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
4197
4344
|
function useTransitionState() {
|
|
4198
4345
|
const state = {
|
|
4199
4346
|
isMounted: false,
|
|
@@ -4231,7 +4378,7 @@ const BaseTransitionPropsValidators = {
|
|
|
4231
4378
|
onAppearCancelled: TransitionHookValidator
|
|
4232
4379
|
};
|
|
4233
4380
|
const recursiveGetSubtree = (instance) => {
|
|
4234
|
-
const subTree = instance.type
|
|
4381
|
+
const subTree = isVaporComponent(instance.type) ? instance.block : instance.subTree;
|
|
4235
4382
|
return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
|
|
4236
4383
|
};
|
|
4237
4384
|
const BaseTransitionImpl = {
|
|
@@ -4541,7 +4688,7 @@ function getInnerChild$1(vnode) {
|
|
|
4541
4688
|
}
|
|
4542
4689
|
function setTransitionHooks(vnode, hooks) {
|
|
4543
4690
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4544
|
-
if (vnode.type
|
|
4691
|
+
if (isVaporComponent(vnode.type)) {
|
|
4545
4692
|
getVaporInterface(vnode.component, vnode).setTransitionHooks(
|
|
4546
4693
|
vnode.component,
|
|
4547
4694
|
hooks
|
|
@@ -5809,7 +5956,9 @@ const KeepAliveImpl = {
|
|
|
5809
5956
|
}
|
|
5810
5957
|
function pruneCache(filter) {
|
|
5811
5958
|
cache.forEach((vnode, key) => {
|
|
5812
|
-
const name = getComponentName(
|
|
5959
|
+
const name = getComponentName(
|
|
5960
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5961
|
+
);
|
|
5813
5962
|
if (name && !filter(name)) {
|
|
5814
5963
|
pruneCacheEntry(key);
|
|
5815
5964
|
}
|
|
@@ -6148,7 +6297,7 @@ const FILTERS = "filters";
|
|
|
6148
6297
|
function resolveComponent(name, maybeSelfReference) {
|
|
6149
6298
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
6150
6299
|
}
|
|
6151
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
6300
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
6152
6301
|
function resolveDynamicComponent(component) {
|
|
6153
6302
|
if (isString(component)) {
|
|
6154
6303
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6590,14 +6739,14 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
6590
6739
|
}
|
|
6591
6740
|
}
|
|
6592
6741
|
|
|
6593
|
-
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
6742
|
+
function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
|
|
6594
6743
|
const ret = {};
|
|
6595
6744
|
if (!isObject(obj)) {
|
|
6596
6745
|
warn$1(`v-on with no argument expects an object value.`);
|
|
6597
6746
|
return ret;
|
|
6598
6747
|
}
|
|
6599
6748
|
for (const key in obj) {
|
|
6600
|
-
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
6749
|
+
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
|
|
6601
6750
|
}
|
|
6602
6751
|
return ret;
|
|
6603
6752
|
}
|
|
@@ -7738,7 +7887,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7738
7887
|
return vm;
|
|
7739
7888
|
}
|
|
7740
7889
|
}
|
|
7741
|
-
Vue.version = `2.6.14-compat:${"3.6.0-
|
|
7890
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.1"}`;
|
|
7742
7891
|
Vue.config = singletonApp.config;
|
|
7743
7892
|
Vue.use = (plugin, ...options) => {
|
|
7744
7893
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8238,264 +8387,134 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
|
|
|
8238
8387
|
If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
|
|
8239
8388
|
);
|
|
8240
8389
|
}
|
|
8241
|
-
},
|
|
8242
|
-
onUnmount(cleanupFn) {
|
|
8243
|
-
if (typeof cleanupFn !== "function") {
|
|
8244
|
-
warn$1(
|
|
8245
|
-
`Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
|
|
8246
|
-
);
|
|
8247
|
-
}
|
|
8248
|
-
pluginCleanupFns.push(cleanupFn);
|
|
8249
|
-
},
|
|
8250
|
-
unmount() {
|
|
8251
|
-
if (isMounted) {
|
|
8252
|
-
callWithAsyncErrorHandling(
|
|
8253
|
-
pluginCleanupFns,
|
|
8254
|
-
app._instance,
|
|
8255
|
-
16
|
|
8256
|
-
);
|
|
8257
|
-
unmount(app);
|
|
8258
|
-
{
|
|
8259
|
-
app._instance = null;
|
|
8260
|
-
devtoolsUnmountApp(app);
|
|
8261
|
-
}
|
|
8262
|
-
delete app._container.__vue_app__;
|
|
8263
|
-
} else {
|
|
8264
|
-
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
8265
|
-
}
|
|
8266
|
-
},
|
|
8267
|
-
provide(key, value) {
|
|
8268
|
-
if (key in context.provides) {
|
|
8269
|
-
if (hasOwn(context.provides, key)) {
|
|
8270
|
-
warn$1(
|
|
8271
|
-
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
8272
|
-
);
|
|
8273
|
-
} else {
|
|
8274
|
-
warn$1(
|
|
8275
|
-
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
8276
|
-
);
|
|
8277
|
-
}
|
|
8278
|
-
}
|
|
8279
|
-
context.provides[key] = value;
|
|
8280
|
-
return app;
|
|
8281
|
-
},
|
|
8282
|
-
runWithContext(fn) {
|
|
8283
|
-
const lastApp = currentApp;
|
|
8284
|
-
currentApp = app;
|
|
8285
|
-
try {
|
|
8286
|
-
return fn();
|
|
8287
|
-
} finally {
|
|
8288
|
-
currentApp = lastApp;
|
|
8289
|
-
}
|
|
8290
|
-
}
|
|
8291
|
-
};
|
|
8292
|
-
{
|
|
8293
|
-
installAppCompatProperties(
|
|
8294
|
-
app,
|
|
8295
|
-
context,
|
|
8296
|
-
// vapor doesn't have compat mode so this is always passed
|
|
8297
|
-
render
|
|
8298
|
-
);
|
|
8299
|
-
}
|
|
8300
|
-
return app;
|
|
8301
|
-
};
|
|
8302
|
-
}
|
|
8303
|
-
let currentApp = null;
|
|
8304
|
-
|
|
8305
|
-
function provide(key, value) {
|
|
8306
|
-
{
|
|
8307
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
8308
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
8309
|
-
}
|
|
8310
|
-
}
|
|
8311
|
-
if (currentInstance) {
|
|
8312
|
-
let provides = currentInstance.provides;
|
|
8313
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
8314
|
-
if (parentProvides === provides) {
|
|
8315
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
8316
|
-
}
|
|
8317
|
-
provides[key] = value;
|
|
8318
|
-
}
|
|
8319
|
-
}
|
|
8320
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
8321
|
-
const instance = getCurrentGenericInstance();
|
|
8322
|
-
if (instance || currentApp) {
|
|
8323
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
8324
|
-
if (provides && key in provides) {
|
|
8325
|
-
return provides[key];
|
|
8326
|
-
} else if (arguments.length > 1) {
|
|
8327
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
8328
|
-
} else {
|
|
8329
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
8330
|
-
}
|
|
8331
|
-
} else {
|
|
8332
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
8333
|
-
}
|
|
8334
|
-
}
|
|
8335
|
-
function hasInjectionContext() {
|
|
8336
|
-
return !!(getCurrentGenericInstance() || currentApp);
|
|
8337
|
-
}
|
|
8338
|
-
|
|
8339
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
8340
|
-
const useSSRContext = () => {
|
|
8341
|
-
{
|
|
8342
|
-
const ctx = inject(ssrContextKey);
|
|
8343
|
-
if (!ctx) {
|
|
8344
|
-
warn$1(
|
|
8345
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
8346
|
-
);
|
|
8347
|
-
}
|
|
8348
|
-
return ctx;
|
|
8349
|
-
}
|
|
8350
|
-
};
|
|
8351
|
-
|
|
8352
|
-
function watchEffect(effect, options) {
|
|
8353
|
-
return doWatch(effect, null, options);
|
|
8354
|
-
}
|
|
8355
|
-
function watchPostEffect(effect, options) {
|
|
8356
|
-
return doWatch(
|
|
8357
|
-
effect,
|
|
8358
|
-
null,
|
|
8359
|
-
extend({}, options, { flush: "post" })
|
|
8360
|
-
);
|
|
8361
|
-
}
|
|
8362
|
-
function watchSyncEffect(effect, options) {
|
|
8363
|
-
return doWatch(
|
|
8364
|
-
effect,
|
|
8365
|
-
null,
|
|
8366
|
-
extend({}, options, { flush: "sync" })
|
|
8367
|
-
);
|
|
8368
|
-
}
|
|
8369
|
-
function watch(source, cb, options) {
|
|
8370
|
-
if (!isFunction(cb)) {
|
|
8371
|
-
warn$1(
|
|
8372
|
-
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
8373
|
-
);
|
|
8374
|
-
}
|
|
8375
|
-
return doWatch(source, cb, options);
|
|
8376
|
-
}
|
|
8377
|
-
class RenderWatcherEffect extends WatcherEffect {
|
|
8378
|
-
constructor(instance, source, cb, options, flush) {
|
|
8379
|
-
super(source, cb, options);
|
|
8380
|
-
this.flush = flush;
|
|
8381
|
-
const job = () => {
|
|
8382
|
-
if (this.dirty) {
|
|
8383
|
-
this.run();
|
|
8390
|
+
},
|
|
8391
|
+
onUnmount(cleanupFn) {
|
|
8392
|
+
if (typeof cleanupFn !== "function") {
|
|
8393
|
+
warn$1(
|
|
8394
|
+
`Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
|
|
8395
|
+
);
|
|
8396
|
+
}
|
|
8397
|
+
pluginCleanupFns.push(cleanupFn);
|
|
8398
|
+
},
|
|
8399
|
+
unmount() {
|
|
8400
|
+
if (isMounted) {
|
|
8401
|
+
callWithAsyncErrorHandling(
|
|
8402
|
+
pluginCleanupFns,
|
|
8403
|
+
app._instance,
|
|
8404
|
+
16
|
|
8405
|
+
);
|
|
8406
|
+
unmount(app);
|
|
8407
|
+
{
|
|
8408
|
+
app._instance = null;
|
|
8409
|
+
devtoolsUnmountApp(app);
|
|
8410
|
+
}
|
|
8411
|
+
delete app._container.__vue_app__;
|
|
8412
|
+
} else {
|
|
8413
|
+
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
8414
|
+
}
|
|
8415
|
+
},
|
|
8416
|
+
provide(key, value) {
|
|
8417
|
+
if (key in context.provides) {
|
|
8418
|
+
if (hasOwn(context.provides, key)) {
|
|
8419
|
+
warn$1(
|
|
8420
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
8421
|
+
);
|
|
8422
|
+
} else {
|
|
8423
|
+
warn$1(
|
|
8424
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
8425
|
+
);
|
|
8426
|
+
}
|
|
8427
|
+
}
|
|
8428
|
+
context.provides[key] = value;
|
|
8429
|
+
return app;
|
|
8430
|
+
},
|
|
8431
|
+
runWithContext(fn) {
|
|
8432
|
+
const lastApp = currentApp;
|
|
8433
|
+
currentApp = app;
|
|
8434
|
+
try {
|
|
8435
|
+
return fn();
|
|
8436
|
+
} finally {
|
|
8437
|
+
currentApp = lastApp;
|
|
8438
|
+
}
|
|
8384
8439
|
}
|
|
8385
8440
|
};
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
}
|
|
8393
|
-
this.job = job;
|
|
8394
|
-
}
|
|
8395
|
-
notify() {
|
|
8396
|
-
const flags = this.flags;
|
|
8397
|
-
if (!(flags & 256)) {
|
|
8398
|
-
const flush = this.flush;
|
|
8399
|
-
const job = this.job;
|
|
8400
|
-
if (flush === "post") {
|
|
8401
|
-
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
8402
|
-
} else if (flush === "pre") {
|
|
8403
|
-
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
8404
|
-
} else {
|
|
8405
|
-
job();
|
|
8406
|
-
}
|
|
8407
|
-
}
|
|
8408
|
-
}
|
|
8409
|
-
}
|
|
8410
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
8411
|
-
const { immediate, deep, flush = "pre", once } = options;
|
|
8412
|
-
if (!cb) {
|
|
8413
|
-
if (immediate !== void 0) {
|
|
8414
|
-
warn$1(
|
|
8415
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8441
|
+
{
|
|
8442
|
+
installAppCompatProperties(
|
|
8443
|
+
app,
|
|
8444
|
+
context,
|
|
8445
|
+
// vapor doesn't have compat mode so this is always passed
|
|
8446
|
+
render
|
|
8416
8447
|
);
|
|
8417
8448
|
}
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8449
|
+
return app;
|
|
8450
|
+
};
|
|
8451
|
+
}
|
|
8452
|
+
let currentApp = null;
|
|
8453
|
+
|
|
8454
|
+
const compatModelEventPrefix = `onModelCompat:`;
|
|
8455
|
+
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
8456
|
+
function convertLegacyVModelProps(vnode) {
|
|
8457
|
+
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
8458
|
+
const comp = type;
|
|
8459
|
+
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
8460
|
+
if (!isCompatEnabled$1(
|
|
8461
|
+
"COMPONENT_V_MODEL",
|
|
8462
|
+
// this is a special case where we want to use the vnode component's
|
|
8463
|
+
// compat config instead of the current rendering instance (which is the
|
|
8464
|
+
// parent of the component that exposes v-model)
|
|
8465
|
+
{ type }
|
|
8466
|
+
)) {
|
|
8467
|
+
return;
|
|
8422
8468
|
}
|
|
8423
|
-
if (
|
|
8424
|
-
|
|
8425
|
-
|
|
8469
|
+
if (!warnedTypes.has(comp)) {
|
|
8470
|
+
pushWarningContext(vnode);
|
|
8471
|
+
warnDeprecation$1(
|
|
8472
|
+
"COMPONENT_V_MODEL",
|
|
8473
|
+
{
|
|
8474
|
+
type,
|
|
8475
|
+
appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
|
|
8476
|
+
},
|
|
8477
|
+
comp
|
|
8426
8478
|
);
|
|
8479
|
+
popWarningContext();
|
|
8480
|
+
warnedTypes.add(comp);
|
|
8427
8481
|
}
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
if (flush === "sync") {
|
|
8435
|
-
const ctx = useSSRContext();
|
|
8436
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
8437
|
-
} else if (!runsImmediately) {
|
|
8438
|
-
const watchStopHandle = () => {
|
|
8439
|
-
};
|
|
8440
|
-
watchStopHandle.stop = NOOP;
|
|
8441
|
-
watchStopHandle.resume = NOOP;
|
|
8442
|
-
watchStopHandle.pause = NOOP;
|
|
8443
|
-
return watchStopHandle;
|
|
8482
|
+
const model = comp.model || {};
|
|
8483
|
+
applyModelFromMixins(model, comp.mixins);
|
|
8484
|
+
const { prop = "value", event = "input" } = model;
|
|
8485
|
+
if (prop !== "modelValue") {
|
|
8486
|
+
props[prop] = props.modelValue;
|
|
8487
|
+
delete props.modelValue;
|
|
8444
8488
|
}
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
8448
|
-
const effect = new RenderWatcherEffect(
|
|
8449
|
-
instance,
|
|
8450
|
-
source,
|
|
8451
|
-
cb,
|
|
8452
|
-
baseWatchOptions,
|
|
8453
|
-
flush
|
|
8454
|
-
);
|
|
8455
|
-
if (cb) {
|
|
8456
|
-
effect.run(true);
|
|
8457
|
-
} else if (flush === "post") {
|
|
8458
|
-
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
8459
|
-
} else {
|
|
8460
|
-
effect.run(true);
|
|
8461
|
-
}
|
|
8462
|
-
const stop = effect.stop.bind(effect);
|
|
8463
|
-
stop.pause = effect.pause.bind(effect);
|
|
8464
|
-
stop.resume = effect.resume.bind(effect);
|
|
8465
|
-
stop.stop = stop;
|
|
8466
|
-
if (isInSSRComponentSetup) {
|
|
8467
|
-
if (ssrCleanup) {
|
|
8468
|
-
ssrCleanup.push(stop);
|
|
8469
|
-
} else if (runsImmediately) {
|
|
8470
|
-
stop();
|
|
8489
|
+
if (dynamicProps) {
|
|
8490
|
+
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
8471
8491
|
}
|
|
8492
|
+
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
8493
|
+
delete props["onUpdate:modelValue"];
|
|
8472
8494
|
}
|
|
8473
|
-
return stop;
|
|
8474
8495
|
}
|
|
8475
|
-
function
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
} else {
|
|
8482
|
-
cb = value.handler;
|
|
8483
|
-
options = value;
|
|
8496
|
+
function applyModelFromMixins(model, mixins) {
|
|
8497
|
+
if (mixins) {
|
|
8498
|
+
mixins.forEach((m) => {
|
|
8499
|
+
if (m.model) extend(model, m.model);
|
|
8500
|
+
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
8501
|
+
});
|
|
8484
8502
|
}
|
|
8485
|
-
const prev = setCurrentInstance(this);
|
|
8486
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
8487
|
-
setCurrentInstance(...prev);
|
|
8488
|
-
return res;
|
|
8489
8503
|
}
|
|
8490
|
-
function
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8504
|
+
function compatModelEmit(instance, event, args) {
|
|
8505
|
+
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
8506
|
+
return;
|
|
8507
|
+
}
|
|
8508
|
+
const props = instance.vnode.props;
|
|
8509
|
+
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
8510
|
+
if (modelHandler) {
|
|
8511
|
+
callWithErrorHandling(
|
|
8512
|
+
modelHandler,
|
|
8513
|
+
instance,
|
|
8514
|
+
6,
|
|
8515
|
+
args
|
|
8516
|
+
);
|
|
8517
|
+
}
|
|
8499
8518
|
}
|
|
8500
8519
|
|
|
8501
8520
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -9687,6 +9706,14 @@ function isSupported() {
|
|
|
9687
9706
|
return supported;
|
|
9688
9707
|
}
|
|
9689
9708
|
|
|
9709
|
+
const MoveType = {
|
|
9710
|
+
"ENTER": 0,
|
|
9711
|
+
"0": "ENTER",
|
|
9712
|
+
"LEAVE": 1,
|
|
9713
|
+
"1": "LEAVE",
|
|
9714
|
+
"REORDER": 2,
|
|
9715
|
+
"2": "REORDER"
|
|
9716
|
+
};
|
|
9690
9717
|
const queuePostRenderEffect = queueEffectWithSuspense ;
|
|
9691
9718
|
function createRenderer(options) {
|
|
9692
9719
|
return baseCreateRenderer(options);
|
|
@@ -9756,7 +9783,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9756
9783
|
);
|
|
9757
9784
|
break;
|
|
9758
9785
|
case VaporSlot:
|
|
9759
|
-
getVaporInterface(parentComponent, n2).slot(
|
|
9786
|
+
getVaporInterface(parentComponent, n2).slot(
|
|
9787
|
+
n1,
|
|
9788
|
+
n2,
|
|
9789
|
+
container,
|
|
9790
|
+
anchor,
|
|
9791
|
+
parentComponent
|
|
9792
|
+
);
|
|
9760
9793
|
break;
|
|
9761
9794
|
default:
|
|
9762
9795
|
if (shapeFlag & 1) {
|
|
@@ -9829,7 +9862,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9829
9862
|
} else {
|
|
9830
9863
|
const el = n2.el = n1.el;
|
|
9831
9864
|
if (n2.children !== n1.children) {
|
|
9832
|
-
|
|
9865
|
+
if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
9866
|
+
const childNodes = container.childNodes;
|
|
9867
|
+
const newChild = hostCreateText(n2.children);
|
|
9868
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
9869
|
+
hostInsert(newChild, container, oldChild);
|
|
9870
|
+
hostRemove(oldChild);
|
|
9871
|
+
} else {
|
|
9872
|
+
hostSetText(el, n2.children);
|
|
9873
|
+
}
|
|
9833
9874
|
}
|
|
9834
9875
|
}
|
|
9835
9876
|
};
|
|
@@ -10215,7 +10256,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10215
10256
|
} else {
|
|
10216
10257
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
10217
10258
|
// of renderSlot() with no valid children
|
|
10218
|
-
n1.dynamicChildren) {
|
|
10259
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
10219
10260
|
patchBlockChildren(
|
|
10220
10261
|
n1.dynamicChildren,
|
|
10221
10262
|
dynamicChildren,
|
|
@@ -10931,8 +10972,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10931
10972
|
const nextChild = c2[nextIndex];
|
|
10932
10973
|
const anchorVNode = c2[nextIndex + 1];
|
|
10933
10974
|
const anchor = nextIndex + 1 < l2 ? (
|
|
10934
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
10935
|
-
anchorVNode.el || anchorVNode
|
|
10975
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
10976
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
10936
10977
|
) : parentAnchor;
|
|
10937
10978
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
10938
10979
|
patch(
|
|
@@ -10965,7 +11006,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10965
11006
|
const move = (vnode, container, anchor, moveType, parentComponent, parentSuspense = null) => {
|
|
10966
11007
|
const { el, type, transition, children, shapeFlag } = vnode;
|
|
10967
11008
|
if (shapeFlag & 6) {
|
|
10968
|
-
if (type
|
|
11009
|
+
if (isVaporComponent(type)) {
|
|
10969
11010
|
getVaporInterface(parentComponent, vnode).move(vnode, container, anchor);
|
|
10970
11011
|
} else {
|
|
10971
11012
|
move(
|
|
@@ -11075,7 +11116,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11075
11116
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
11076
11117
|
}
|
|
11077
11118
|
if (shapeFlag & 256) {
|
|
11078
|
-
if (vnode.type
|
|
11119
|
+
if (isVaporComponent(vnode.type)) {
|
|
11079
11120
|
getVaporInterface(parentComponent, vnode).deactivate(
|
|
11080
11121
|
vnode,
|
|
11081
11122
|
parentComponent.ctx.getStorageContainer()
|
|
@@ -11092,7 +11133,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11092
11133
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
11093
11134
|
}
|
|
11094
11135
|
if (shapeFlag & 6) {
|
|
11095
|
-
if (type
|
|
11136
|
+
if (isVaporComponent(type)) {
|
|
11096
11137
|
getVaporInterface(parentComponent, vnode).unmount(vnode, doRemove);
|
|
11097
11138
|
return;
|
|
11098
11139
|
} else {
|
|
@@ -11234,7 +11275,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11234
11275
|
};
|
|
11235
11276
|
const getNextHostNode = (vnode) => {
|
|
11236
11277
|
if (vnode.shapeFlag & 6) {
|
|
11237
|
-
if (vnode.type
|
|
11278
|
+
if (isVaporComponent(vnode.type)) {
|
|
11238
11279
|
return hostNextSibling(vnode.anchor);
|
|
11239
11280
|
}
|
|
11240
11281
|
return getNextHostNode(vnode.component.subTree);
|
|
@@ -11247,9 +11288,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11247
11288
|
return teleportEnd ? hostNextSibling(teleportEnd) : el;
|
|
11248
11289
|
};
|
|
11249
11290
|
const render = (vnode, container, namespace) => {
|
|
11291
|
+
let instance;
|
|
11250
11292
|
if (vnode == null) {
|
|
11251
11293
|
if (container._vnode) {
|
|
11252
11294
|
unmount(container._vnode, null, null, true);
|
|
11295
|
+
instance = container._vnode.component;
|
|
11253
11296
|
}
|
|
11254
11297
|
} else {
|
|
11255
11298
|
patch(
|
|
@@ -11263,7 +11306,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11263
11306
|
);
|
|
11264
11307
|
}
|
|
11265
11308
|
container._vnode = vnode;
|
|
11266
|
-
flushOnAppMount();
|
|
11309
|
+
flushOnAppMount(instance);
|
|
11267
11310
|
};
|
|
11268
11311
|
const internals = {
|
|
11269
11312
|
p: patch,
|
|
@@ -11355,9 +11398,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
11355
11398
|
if (!shallow && c2.patchFlag !== -2)
|
|
11356
11399
|
traverseStaticChildren(c1, c2);
|
|
11357
11400
|
}
|
|
11358
|
-
if (c2.type === Text
|
|
11359
|
-
|
|
11360
|
-
|
|
11401
|
+
if (c2.type === Text) {
|
|
11402
|
+
if (c2.patchFlag !== -1) {
|
|
11403
|
+
c2.el = c1.el;
|
|
11404
|
+
} else {
|
|
11405
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
11406
|
+
(n1.type === Fragment ? 1 : 0);
|
|
11407
|
+
}
|
|
11361
11408
|
}
|
|
11362
11409
|
if (c2.type === Comment && !c2.el) {
|
|
11363
11410
|
c2.el = c1.el;
|
|
@@ -11393,16 +11440,24 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
11393
11440
|
insert();
|
|
11394
11441
|
}
|
|
11395
11442
|
}
|
|
11396
|
-
function performTransitionLeave(el, transition, remove, isElement = true) {
|
|
11443
|
+
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
11397
11444
|
const performRemove = () => {
|
|
11398
11445
|
remove();
|
|
11399
11446
|
if (transition && !transition.persisted && transition.afterLeave) {
|
|
11400
11447
|
transition.afterLeave();
|
|
11401
11448
|
}
|
|
11402
11449
|
};
|
|
11403
|
-
if (isElement && transition && !transition.persisted) {
|
|
11450
|
+
if (force || isElement && transition && !transition.persisted) {
|
|
11404
11451
|
const { leave, delayLeave } = transition;
|
|
11405
|
-
const performLeave = () =>
|
|
11452
|
+
const performLeave = () => {
|
|
11453
|
+
if (el._isLeaving && force) {
|
|
11454
|
+
el[leaveCbKey](
|
|
11455
|
+
true
|
|
11456
|
+
/* cancelled */
|
|
11457
|
+
);
|
|
11458
|
+
}
|
|
11459
|
+
leave(el, performRemove);
|
|
11460
|
+
};
|
|
11406
11461
|
if (delayLeave) {
|
|
11407
11462
|
delayLeave(el, performRemove, performLeave);
|
|
11408
11463
|
} else {
|
|
@@ -11426,6 +11481,12 @@ app.use(vaporInteropPlugin)
|
|
|
11426
11481
|
}
|
|
11427
11482
|
return res;
|
|
11428
11483
|
}
|
|
11484
|
+
function isVaporComponent(type) {
|
|
11485
|
+
if (isHmrUpdating && hmrDirtyComponentsMode.has(type)) {
|
|
11486
|
+
return hmrDirtyComponentsMode.get(type);
|
|
11487
|
+
}
|
|
11488
|
+
return type.__vapor;
|
|
11489
|
+
}
|
|
11429
11490
|
function getInheritedScopeIds(vnode, parentComponent) {
|
|
11430
11491
|
const inheritedScopeIds = [];
|
|
11431
11492
|
let currentParent = parentComponent;
|
|
@@ -11452,6 +11513,16 @@ function getInheritedScopeIds(vnode, parentComponent) {
|
|
|
11452
11513
|
}
|
|
11453
11514
|
return inheritedScopeIds;
|
|
11454
11515
|
}
|
|
11516
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
11517
|
+
if (anchorVnode.placeholder) {
|
|
11518
|
+
return anchorVnode.placeholder;
|
|
11519
|
+
}
|
|
11520
|
+
const instance = anchorVnode.component;
|
|
11521
|
+
if (instance) {
|
|
11522
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
11523
|
+
}
|
|
11524
|
+
return null;
|
|
11525
|
+
}
|
|
11455
11526
|
|
|
11456
11527
|
const isSuspense = (type) => type.__isSuspense;
|
|
11457
11528
|
let suspenseId = 0;
|
|
@@ -12091,11 +12162,11 @@ function convertLegacyComponent(comp, instance) {
|
|
|
12091
12162
|
return comp;
|
|
12092
12163
|
}
|
|
12093
12164
|
|
|
12094
|
-
const Fragment = Symbol.for("v-fgt");
|
|
12095
|
-
const Text = Symbol.for("v-txt");
|
|
12096
|
-
const Comment = Symbol.for("v-cmt");
|
|
12097
|
-
const Static = Symbol.for("v-stc");
|
|
12098
|
-
const VaporSlot = Symbol.for("v-vps");
|
|
12165
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
12166
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
12167
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
12168
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
12169
|
+
const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
|
|
12099
12170
|
const blockStack = [];
|
|
12100
12171
|
let currentBlock = null;
|
|
12101
12172
|
function openBlock(disableTracking = false) {
|
|
@@ -13173,7 +13244,7 @@ function isMemoSame(cached, memo) {
|
|
|
13173
13244
|
return true;
|
|
13174
13245
|
}
|
|
13175
13246
|
|
|
13176
|
-
const version = "3.6.0-
|
|
13247
|
+
const version = "3.6.0-beta.1";
|
|
13177
13248
|
const warn = warn$1 ;
|
|
13178
13249
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13179
13250
|
const devtools = devtools$1 ;
|
|
@@ -13285,7 +13356,7 @@ const nodeOps = {
|
|
|
13285
13356
|
|
|
13286
13357
|
const TRANSITION$1 = "transition";
|
|
13287
13358
|
const ANIMATION = "animation";
|
|
13288
|
-
const vtcKey = Symbol("_vtc");
|
|
13359
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
13289
13360
|
const DOMTransitionPropsValidators = {
|
|
13290
13361
|
name: String,
|
|
13291
13362
|
type: String,
|
|
@@ -13615,8 +13686,8 @@ function patchClass(el, value, isSVG) {
|
|
|
13615
13686
|
}
|
|
13616
13687
|
}
|
|
13617
13688
|
|
|
13618
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
13619
|
-
const vShowHidden = Symbol("_vsh");
|
|
13689
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
13690
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
13620
13691
|
const vShow = {
|
|
13621
13692
|
// used for prop mismatch check during hydration
|
|
13622
13693
|
name: "show",
|
|
@@ -13665,7 +13736,7 @@ function initVShowForSSR() {
|
|
|
13665
13736
|
};
|
|
13666
13737
|
}
|
|
13667
13738
|
|
|
13668
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
|
|
13739
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
|
|
13669
13740
|
function useCssVars(getter) {
|
|
13670
13741
|
return;
|
|
13671
13742
|
}
|
|
@@ -13795,7 +13866,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
13795
13866
|
const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
|
|
13796
13867
|
function compatCoerceAttr(el, key, value, instance = null) {
|
|
13797
13868
|
if (isEnumeratedAttr(key)) {
|
|
13798
|
-
const v2CoercedValue = value ===
|
|
13869
|
+
const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
|
|
13799
13870
|
if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
|
|
13800
13871
|
"ATTR_ENUMERATED_COERCION",
|
|
13801
13872
|
instance,
|
|
@@ -13890,7 +13961,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
13890
13961
|
function removeEventListener(el, event, handler, options) {
|
|
13891
13962
|
el.removeEventListener(event, handler, options);
|
|
13892
13963
|
}
|
|
13893
|
-
const veiKey = Symbol("_vei");
|
|
13964
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
13894
13965
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
13895
13966
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
13896
13967
|
const existingInvoker = invokers[rawName];
|
|
@@ -14552,8 +14623,8 @@ function useCssModule(name = "$style") {
|
|
|
14552
14623
|
|
|
14553
14624
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
14554
14625
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
14555
|
-
const moveCbKey = Symbol("_moveCb");
|
|
14556
|
-
const enterCbKey = Symbol("_enterCb");
|
|
14626
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
14627
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
14557
14628
|
const decorate = (t) => {
|
|
14558
14629
|
delete t.props.mode;
|
|
14559
14630
|
{
|
|
@@ -14725,7 +14796,7 @@ function onCompositionEnd(e) {
|
|
|
14725
14796
|
target.dispatchEvent(new Event("input"));
|
|
14726
14797
|
}
|
|
14727
14798
|
}
|
|
14728
|
-
const assignKey = Symbol("_assign");
|
|
14799
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
14729
14800
|
const vModelText = {
|
|
14730
14801
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
14731
14802
|
el[assignKey] = getModelAssigner(vnode);
|
|
@@ -15261,6 +15332,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
15261
15332
|
ErrorTypeStrings: ErrorTypeStrings,
|
|
15262
15333
|
Fragment: Fragment,
|
|
15263
15334
|
KeepAlive: KeepAlive,
|
|
15335
|
+
MoveType: MoveType,
|
|
15264
15336
|
ReactiveEffect: ReactiveEffect,
|
|
15265
15337
|
Static: Static,
|
|
15266
15338
|
Suspense: Suspense,
|
|
@@ -15443,81 +15515,81 @@ function createCompatVue() {
|
|
|
15443
15515
|
return Vue;
|
|
15444
15516
|
}
|
|
15445
15517
|
|
|
15446
|
-
const FRAGMENT = Symbol(`Fragment` );
|
|
15447
|
-
const TELEPORT = Symbol(`Teleport` );
|
|
15448
|
-
const SUSPENSE = Symbol(`Suspense` );
|
|
15449
|
-
const KEEP_ALIVE = Symbol(`KeepAlive` );
|
|
15450
|
-
const BASE_TRANSITION = Symbol(
|
|
15518
|
+
const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
|
|
15519
|
+
const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
|
|
15520
|
+
const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
|
|
15521
|
+
const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
|
|
15522
|
+
const BASE_TRANSITION = /* @__PURE__ */ Symbol(
|
|
15451
15523
|
`BaseTransition`
|
|
15452
15524
|
);
|
|
15453
|
-
const OPEN_BLOCK = Symbol(`openBlock` );
|
|
15454
|
-
const CREATE_BLOCK = Symbol(`createBlock` );
|
|
15455
|
-
const CREATE_ELEMENT_BLOCK = Symbol(
|
|
15525
|
+
const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
|
|
15526
|
+
const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
|
|
15527
|
+
const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
|
|
15456
15528
|
`createElementBlock`
|
|
15457
15529
|
);
|
|
15458
|
-
const CREATE_VNODE = Symbol(`createVNode` );
|
|
15459
|
-
const CREATE_ELEMENT_VNODE = Symbol(
|
|
15530
|
+
const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
|
|
15531
|
+
const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
|
|
15460
15532
|
`createElementVNode`
|
|
15461
15533
|
);
|
|
15462
|
-
const CREATE_COMMENT = Symbol(
|
|
15534
|
+
const CREATE_COMMENT = /* @__PURE__ */ Symbol(
|
|
15463
15535
|
`createCommentVNode`
|
|
15464
15536
|
);
|
|
15465
|
-
const CREATE_TEXT = Symbol(
|
|
15537
|
+
const CREATE_TEXT = /* @__PURE__ */ Symbol(
|
|
15466
15538
|
`createTextVNode`
|
|
15467
15539
|
);
|
|
15468
|
-
const CREATE_STATIC = Symbol(
|
|
15540
|
+
const CREATE_STATIC = /* @__PURE__ */ Symbol(
|
|
15469
15541
|
`createStaticVNode`
|
|
15470
15542
|
);
|
|
15471
|
-
const RESOLVE_COMPONENT = Symbol(
|
|
15543
|
+
const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
|
|
15472
15544
|
`resolveComponent`
|
|
15473
15545
|
);
|
|
15474
|
-
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
15546
|
+
const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
|
|
15475
15547
|
`resolveDynamicComponent`
|
|
15476
15548
|
);
|
|
15477
|
-
const RESOLVE_DIRECTIVE = Symbol(
|
|
15549
|
+
const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
|
|
15478
15550
|
`resolveDirective`
|
|
15479
15551
|
);
|
|
15480
|
-
const RESOLVE_FILTER = Symbol(
|
|
15552
|
+
const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
|
|
15481
15553
|
`resolveFilter`
|
|
15482
15554
|
);
|
|
15483
|
-
const WITH_DIRECTIVES = Symbol(
|
|
15555
|
+
const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
|
|
15484
15556
|
`withDirectives`
|
|
15485
15557
|
);
|
|
15486
|
-
const RENDER_LIST = Symbol(`renderList` );
|
|
15487
|
-
const RENDER_SLOT = Symbol(`renderSlot` );
|
|
15488
|
-
const CREATE_SLOTS = Symbol(`createSlots` );
|
|
15489
|
-
const TO_DISPLAY_STRING = Symbol(
|
|
15558
|
+
const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
|
|
15559
|
+
const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
|
|
15560
|
+
const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
|
|
15561
|
+
const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
|
|
15490
15562
|
`toDisplayString`
|
|
15491
15563
|
);
|
|
15492
|
-
const MERGE_PROPS = Symbol(`mergeProps` );
|
|
15493
|
-
const NORMALIZE_CLASS = Symbol(
|
|
15564
|
+
const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
|
|
15565
|
+
const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
|
|
15494
15566
|
`normalizeClass`
|
|
15495
15567
|
);
|
|
15496
|
-
const NORMALIZE_STYLE = Symbol(
|
|
15568
|
+
const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
|
|
15497
15569
|
`normalizeStyle`
|
|
15498
15570
|
);
|
|
15499
|
-
const NORMALIZE_PROPS = Symbol(
|
|
15571
|
+
const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
|
|
15500
15572
|
`normalizeProps`
|
|
15501
15573
|
);
|
|
15502
|
-
const GUARD_REACTIVE_PROPS = Symbol(
|
|
15574
|
+
const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
|
|
15503
15575
|
`guardReactiveProps`
|
|
15504
15576
|
);
|
|
15505
|
-
const TO_HANDLERS = Symbol(`toHandlers` );
|
|
15506
|
-
const CAMELIZE = Symbol(`camelize` );
|
|
15507
|
-
const CAPITALIZE = Symbol(`capitalize` );
|
|
15508
|
-
const TO_HANDLER_KEY = Symbol(
|
|
15577
|
+
const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
|
|
15578
|
+
const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
|
|
15579
|
+
const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
|
|
15580
|
+
const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
|
|
15509
15581
|
`toHandlerKey`
|
|
15510
15582
|
);
|
|
15511
|
-
const SET_BLOCK_TRACKING = Symbol(
|
|
15583
|
+
const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
|
|
15512
15584
|
`setBlockTracking`
|
|
15513
15585
|
);
|
|
15514
|
-
const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
|
|
15515
|
-
const POP_SCOPE_ID = Symbol(`popScopeId` );
|
|
15516
|
-
const WITH_CTX = Symbol(`withCtx` );
|
|
15517
|
-
const UNREF = Symbol(`unref` );
|
|
15518
|
-
const IS_REF = Symbol(`isRef` );
|
|
15519
|
-
const WITH_MEMO = Symbol(`withMemo` );
|
|
15520
|
-
const IS_MEMO_SAME = Symbol(`isMemoSame` );
|
|
15586
|
+
const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
|
|
15587
|
+
const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
|
|
15588
|
+
const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
|
|
15589
|
+
const UNREF = /* @__PURE__ */ Symbol(`unref` );
|
|
15590
|
+
const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
|
|
15591
|
+
const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
|
|
15592
|
+
const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
|
|
15521
15593
|
const helperNameMap = {
|
|
15522
15594
|
[FRAGMENT]: `Fragment`,
|
|
15523
15595
|
[TELEPORT]: `Teleport`,
|
|
@@ -15787,8 +15859,8 @@ class Tokenizer {
|
|
|
15787
15859
|
this.currentSequence = void 0;
|
|
15788
15860
|
this.sequenceIndex = 0;
|
|
15789
15861
|
{
|
|
15790
|
-
this.entityDecoder = new
|
|
15791
|
-
|
|
15862
|
+
this.entityDecoder = new decode.EntityDecoder(
|
|
15863
|
+
decode.htmlDecodeTree,
|
|
15792
15864
|
(cp, consumed) => this.emitCodePoint(cp, consumed)
|
|
15793
15865
|
);
|
|
15794
15866
|
}
|
|
@@ -15818,14 +15890,28 @@ class Tokenizer {
|
|
|
15818
15890
|
getPos(index) {
|
|
15819
15891
|
let line = 1;
|
|
15820
15892
|
let column = index + 1;
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15893
|
+
const length = this.newlines.length;
|
|
15894
|
+
let j = -1;
|
|
15895
|
+
if (length > 100) {
|
|
15896
|
+
let l = -1;
|
|
15897
|
+
let r = length;
|
|
15898
|
+
while (l + 1 < r) {
|
|
15899
|
+
const m = l + r >>> 1;
|
|
15900
|
+
this.newlines[m] < index ? l = m : r = m;
|
|
15901
|
+
}
|
|
15902
|
+
j = l;
|
|
15903
|
+
} else {
|
|
15904
|
+
for (let i = length - 1; i >= 0; i--) {
|
|
15905
|
+
if (index > this.newlines[i]) {
|
|
15906
|
+
j = i;
|
|
15907
|
+
break;
|
|
15908
|
+
}
|
|
15827
15909
|
}
|
|
15828
15910
|
}
|
|
15911
|
+
if (j >= 0) {
|
|
15912
|
+
line = j + 2;
|
|
15913
|
+
column = index - this.newlines[j];
|
|
15914
|
+
}
|
|
15829
15915
|
return {
|
|
15830
15916
|
column,
|
|
15831
15917
|
line,
|
|
@@ -16338,7 +16424,7 @@ class Tokenizer {
|
|
|
16338
16424
|
this.state = 33;
|
|
16339
16425
|
this.entityStart = this.index;
|
|
16340
16426
|
this.entityDecoder.startEntity(
|
|
16341
|
-
this.baseState === 1 || this.baseState === 32 ?
|
|
16427
|
+
this.baseState === 1 || this.baseState === 32 ? decode.DecodingMode.Legacy : decode.DecodingMode.Attribute
|
|
16342
16428
|
);
|
|
16343
16429
|
}
|
|
16344
16430
|
}
|
|
@@ -16557,7 +16643,7 @@ class Tokenizer {
|
|
|
16557
16643
|
this.sectionStart = this.entityStart + consumed;
|
|
16558
16644
|
this.index = this.sectionStart - 1;
|
|
16559
16645
|
this.cbs.onattribentity(
|
|
16560
|
-
|
|
16646
|
+
decode.fromCodePoint(cp),
|
|
16561
16647
|
this.entityStart,
|
|
16562
16648
|
this.sectionStart
|
|
16563
16649
|
);
|
|
@@ -16568,7 +16654,7 @@ class Tokenizer {
|
|
|
16568
16654
|
this.sectionStart = this.entityStart + consumed;
|
|
16569
16655
|
this.index = this.sectionStart - 1;
|
|
16570
16656
|
this.cbs.ontextentity(
|
|
16571
|
-
|
|
16657
|
+
decode.fromCodePoint(cp),
|
|
16572
16658
|
this.entityStart,
|
|
16573
16659
|
this.sectionStart
|
|
16574
16660
|
);
|
|
@@ -16696,7 +16782,7 @@ const errorMessages = {
|
|
|
16696
16782
|
[32]: `v-for has invalid expression.`,
|
|
16697
16783
|
[33]: `<template v-for> key should be placed on the <template> tag.`,
|
|
16698
16784
|
[34]: `v-bind is missing expression.`,
|
|
16699
|
-
[
|
|
16785
|
+
[53]: `v-bind with same-name shorthand only allows static argument.`,
|
|
16700
16786
|
[35]: `v-on is missing expression.`,
|
|
16701
16787
|
[36]: `Unexpected custom directive on <slot> outlet.`,
|
|
16702
16788
|
[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.`,
|
|
@@ -16708,16 +16794,17 @@ const errorMessages = {
|
|
|
16708
16794
|
[43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
16709
16795
|
[44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
16710
16796
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
16711
|
-
[45]: `
|
|
16712
|
-
[46]:
|
|
16713
|
-
[
|
|
16797
|
+
[45]: `v-model cannot be used on a const binding because it is not writable.`,
|
|
16798
|
+
[46]: `Error parsing JavaScript expression: `,
|
|
16799
|
+
[47]: `<KeepAlive> expects exactly one child component.`,
|
|
16800
|
+
[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.`,
|
|
16714
16801
|
// generic errors
|
|
16715
|
-
[
|
|
16716
|
-
[
|
|
16717
|
-
[
|
|
16718
|
-
[
|
|
16802
|
+
[48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
16803
|
+
[49]: `ES module mode is not supported in this build of compiler.`,
|
|
16804
|
+
[50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
16805
|
+
[51]: `"scopeId" option is only supported in module mode.`,
|
|
16719
16806
|
// just to fulfill types
|
|
16720
|
-
[
|
|
16807
|
+
[54]: ``
|
|
16721
16808
|
};
|
|
16722
16809
|
|
|
16723
16810
|
function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
|
|
@@ -17441,7 +17528,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
17441
17528
|
let exp = getSlice(innerStart, innerEnd);
|
|
17442
17529
|
if (exp.includes("&")) {
|
|
17443
17530
|
{
|
|
17444
|
-
exp =
|
|
17531
|
+
exp = decode.decodeHTML(exp);
|
|
17445
17532
|
}
|
|
17446
17533
|
}
|
|
17447
17534
|
addNode({
|
|
@@ -18102,7 +18189,7 @@ function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0
|
|
|
18102
18189
|
}
|
|
18103
18190
|
} catch (e) {
|
|
18104
18191
|
exp.ast = false;
|
|
18105
|
-
emitError(
|
|
18192
|
+
emitError(46, loc.start.offset, e.message);
|
|
18106
18193
|
}
|
|
18107
18194
|
}
|
|
18108
18195
|
return exp;
|
|
@@ -19679,7 +19766,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
19679
19766
|
} catch (e) {
|
|
19680
19767
|
context.onError(
|
|
19681
19768
|
createCompilerError(
|
|
19682
|
-
|
|
19769
|
+
46,
|
|
19683
19770
|
node.loc,
|
|
19684
19771
|
void 0,
|
|
19685
19772
|
e.message
|
|
@@ -20563,7 +20650,7 @@ const transformElement = (node, context) => {
|
|
|
20563
20650
|
patchFlag |= 1024;
|
|
20564
20651
|
if (node.children.length > 1) {
|
|
20565
20652
|
context.onError(
|
|
20566
|
-
createCompilerError(
|
|
20653
|
+
createCompilerError(47, {
|
|
20567
20654
|
start: node.children[0].loc.start,
|
|
20568
20655
|
end: node.children[node.children.length - 1].loc.end,
|
|
20569
20656
|
source: ""
|
|
@@ -21226,7 +21313,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
21226
21313
|
if (arg.isStatic) {
|
|
21227
21314
|
let rawName = arg.content;
|
|
21228
21315
|
if (rawName.startsWith("vnode")) {
|
|
21229
|
-
context.onError(createCompilerError(
|
|
21316
|
+
context.onError(createCompilerError(52, arg.loc));
|
|
21230
21317
|
}
|
|
21231
21318
|
if (rawName.startsWith("vue:")) {
|
|
21232
21319
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -21488,6 +21575,10 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
21488
21575
|
context.onError(createCompilerError(44, exp.loc));
|
|
21489
21576
|
return createTransformProps();
|
|
21490
21577
|
}
|
|
21578
|
+
if (bindingType === "literal-const" || bindingType === "setup-const") {
|
|
21579
|
+
context.onError(createCompilerError(45, exp.loc));
|
|
21580
|
+
return createTransformProps();
|
|
21581
|
+
}
|
|
21491
21582
|
const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
|
|
21492
21583
|
if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
|
|
21493
21584
|
context.onError(
|
|
@@ -21741,7 +21832,7 @@ const transformVBindShorthand = (node, context) => {
|
|
|
21741
21832
|
if (arg.type !== 4 || !arg.isStatic) {
|
|
21742
21833
|
context.onError(
|
|
21743
21834
|
createCompilerError(
|
|
21744
|
-
|
|
21835
|
+
53,
|
|
21745
21836
|
arg.loc
|
|
21746
21837
|
)
|
|
21747
21838
|
);
|
|
@@ -21789,10 +21880,10 @@ function baseCompile(source, options = {}) {
|
|
|
21789
21880
|
const isModuleMode = options.mode === "module";
|
|
21790
21881
|
const prefixIdentifiers = options.prefixIdentifiers === true || isModuleMode;
|
|
21791
21882
|
if (!prefixIdentifiers && options.cacheHandlers) {
|
|
21792
|
-
onError(createCompilerError(
|
|
21883
|
+
onError(createCompilerError(50));
|
|
21793
21884
|
}
|
|
21794
21885
|
if (options.scopeId && !isModuleMode) {
|
|
21795
|
-
onError(createCompilerError(
|
|
21886
|
+
onError(createCompilerError(51));
|
|
21796
21887
|
}
|
|
21797
21888
|
const resolvedOptions = extend({}, options, {
|
|
21798
21889
|
prefixIdentifiers
|
|
@@ -21826,26 +21917,26 @@ function baseCompile(source, options = {}) {
|
|
|
21826
21917
|
|
|
21827
21918
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
21828
21919
|
|
|
21829
|
-
const V_MODEL_RADIO = Symbol(`vModelRadio` );
|
|
21830
|
-
const V_MODEL_CHECKBOX = Symbol(
|
|
21920
|
+
const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
|
|
21921
|
+
const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
|
|
21831
21922
|
`vModelCheckbox`
|
|
21832
21923
|
);
|
|
21833
|
-
const V_MODEL_TEXT = Symbol(`vModelText` );
|
|
21834
|
-
const V_MODEL_SELECT = Symbol(
|
|
21924
|
+
const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
|
|
21925
|
+
const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
|
|
21835
21926
|
`vModelSelect`
|
|
21836
21927
|
);
|
|
21837
|
-
const V_MODEL_DYNAMIC = Symbol(
|
|
21928
|
+
const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
|
|
21838
21929
|
`vModelDynamic`
|
|
21839
21930
|
);
|
|
21840
|
-
const V_ON_WITH_MODIFIERS = Symbol(
|
|
21931
|
+
const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
|
|
21841
21932
|
`vOnModifiersGuard`
|
|
21842
21933
|
);
|
|
21843
|
-
const V_ON_WITH_KEYS = Symbol(
|
|
21934
|
+
const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
|
|
21844
21935
|
`vOnKeysGuard`
|
|
21845
21936
|
);
|
|
21846
|
-
const V_SHOW = Symbol(`vShow` );
|
|
21847
|
-
const TRANSITION = Symbol(`Transition` );
|
|
21848
|
-
const TRANSITION_GROUP = Symbol(
|
|
21937
|
+
const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
|
|
21938
|
+
const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
|
|
21939
|
+
const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
|
|
21849
21940
|
`TransitionGroup`
|
|
21850
21941
|
);
|
|
21851
21942
|
registerRuntimeHelpers({
|
|
@@ -21942,31 +22033,31 @@ function createDOMCompilerError(code, loc) {
|
|
|
21942
22033
|
);
|
|
21943
22034
|
}
|
|
21944
22035
|
const DOMErrorMessages = {
|
|
21945
|
-
[
|
|
21946
|
-
[
|
|
21947
|
-
[
|
|
21948
|
-
[
|
|
21949
|
-
[
|
|
21950
|
-
[
|
|
21951
|
-
[
|
|
21952
|
-
[
|
|
21953
|
-
[
|
|
21954
|
-
[
|
|
21955
|
-
[
|
|
22036
|
+
[54]: `v-html is missing expression.`,
|
|
22037
|
+
[55]: `v-html will override element children.`,
|
|
22038
|
+
[56]: `v-text is missing expression.`,
|
|
22039
|
+
[57]: `v-text will override element children.`,
|
|
22040
|
+
[58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
22041
|
+
[59]: `v-model argument is not supported on plain elements.`,
|
|
22042
|
+
[60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
22043
|
+
[61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
22044
|
+
[62]: `v-show is missing expression.`,
|
|
22045
|
+
[63]: `<Transition> expects exactly one child element or component.`,
|
|
22046
|
+
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
21956
22047
|
// just to fulfill types
|
|
21957
|
-
[
|
|
22048
|
+
[65]: ``
|
|
21958
22049
|
};
|
|
21959
22050
|
|
|
21960
22051
|
const transformVHtml = (dir, node, context) => {
|
|
21961
22052
|
const { exp, loc } = dir;
|
|
21962
22053
|
if (!exp) {
|
|
21963
22054
|
context.onError(
|
|
21964
|
-
createDOMCompilerError(
|
|
22055
|
+
createDOMCompilerError(54, loc)
|
|
21965
22056
|
);
|
|
21966
22057
|
}
|
|
21967
22058
|
if (node.children.length) {
|
|
21968
22059
|
context.onError(
|
|
21969
|
-
createDOMCompilerError(
|
|
22060
|
+
createDOMCompilerError(55, loc)
|
|
21970
22061
|
);
|
|
21971
22062
|
node.children.length = 0;
|
|
21972
22063
|
}
|
|
@@ -21984,12 +22075,12 @@ const transformVText = (dir, node, context) => {
|
|
|
21984
22075
|
const { exp, loc } = dir;
|
|
21985
22076
|
if (!exp) {
|
|
21986
22077
|
context.onError(
|
|
21987
|
-
createDOMCompilerError(
|
|
22078
|
+
createDOMCompilerError(56, loc)
|
|
21988
22079
|
);
|
|
21989
22080
|
}
|
|
21990
22081
|
if (node.children.length) {
|
|
21991
22082
|
context.onError(
|
|
21992
|
-
createDOMCompilerError(
|
|
22083
|
+
createDOMCompilerError(57, loc)
|
|
21993
22084
|
);
|
|
21994
22085
|
node.children.length = 0;
|
|
21995
22086
|
}
|
|
@@ -22015,7 +22106,7 @@ const transformModel = (dir, node, context) => {
|
|
|
22015
22106
|
if (dir.arg) {
|
|
22016
22107
|
context.onError(
|
|
22017
22108
|
createDOMCompilerError(
|
|
22018
|
-
|
|
22109
|
+
59,
|
|
22019
22110
|
dir.arg.loc
|
|
22020
22111
|
)
|
|
22021
22112
|
);
|
|
@@ -22025,7 +22116,7 @@ const transformModel = (dir, node, context) => {
|
|
|
22025
22116
|
if (value && isStaticArgOf(value.arg, "value")) {
|
|
22026
22117
|
context.onError(
|
|
22027
22118
|
createDOMCompilerError(
|
|
22028
|
-
|
|
22119
|
+
61,
|
|
22029
22120
|
value.loc
|
|
22030
22121
|
)
|
|
22031
22122
|
);
|
|
@@ -22053,7 +22144,7 @@ const transformModel = (dir, node, context) => {
|
|
|
22053
22144
|
isInvalidType = true;
|
|
22054
22145
|
context.onError(
|
|
22055
22146
|
createDOMCompilerError(
|
|
22056
|
-
|
|
22147
|
+
60,
|
|
22057
22148
|
dir.loc
|
|
22058
22149
|
)
|
|
22059
22150
|
);
|
|
@@ -22079,7 +22170,7 @@ const transformModel = (dir, node, context) => {
|
|
|
22079
22170
|
} else {
|
|
22080
22171
|
context.onError(
|
|
22081
22172
|
createDOMCompilerError(
|
|
22082
|
-
|
|
22173
|
+
58,
|
|
22083
22174
|
dir.loc
|
|
22084
22175
|
)
|
|
22085
22176
|
);
|
|
@@ -22190,7 +22281,7 @@ const transformShow = (dir, node, context) => {
|
|
|
22190
22281
|
const { exp, loc } = dir;
|
|
22191
22282
|
if (!exp) {
|
|
22192
22283
|
context.onError(
|
|
22193
|
-
createDOMCompilerError(
|
|
22284
|
+
createDOMCompilerError(62, loc)
|
|
22194
22285
|
);
|
|
22195
22286
|
}
|
|
22196
22287
|
return {
|
|
@@ -22214,7 +22305,7 @@ function postTransformTransition(node, onError, hasMultipleChildren = defaultHas
|
|
|
22214
22305
|
}
|
|
22215
22306
|
if (hasMultipleChildren(node)) {
|
|
22216
22307
|
onError(
|
|
22217
|
-
createDOMCompilerError(
|
|
22308
|
+
createDOMCompilerError(63, {
|
|
22218
22309
|
start: node.children[0].loc.start,
|
|
22219
22310
|
end: node.children[node.children.length - 1].loc.end,
|
|
22220
22311
|
source: ""
|
|
@@ -22483,7 +22574,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
22483
22574
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
22484
22575
|
context.onError(
|
|
22485
22576
|
createDOMCompilerError(
|
|
22486
|
-
|
|
22577
|
+
64,
|
|
22487
22578
|
node.loc
|
|
22488
22579
|
)
|
|
22489
22580
|
);
|