vue 3.5.25 → 3.5.26
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 +0 -4
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +342 -297
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +314 -269
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +229 -203
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +201 -175
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +6 -6
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1002,13 +1002,13 @@ function addSub(link) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
1005
|
-
const ITERATE_KEY = Symbol(
|
|
1005
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1006
1006
|
"Object iterate"
|
|
1007
1007
|
);
|
|
1008
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
1008
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1009
1009
|
"Map keys iterate"
|
|
1010
1010
|
);
|
|
1011
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
1011
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1012
1012
|
"Array iterate"
|
|
1013
1013
|
);
|
|
1014
1014
|
function track(target, type, key) {
|
|
@@ -3057,7 +3057,180 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
}
|
|
3059
3059
|
|
|
3060
|
-
|
|
3060
|
+
function provide(key, value) {
|
|
3061
|
+
{
|
|
3062
|
+
if (!currentInstance || currentInstance.isMounted) {
|
|
3063
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
if (currentInstance) {
|
|
3067
|
+
let provides = currentInstance.provides;
|
|
3068
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3069
|
+
if (parentProvides === provides) {
|
|
3070
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3071
|
+
}
|
|
3072
|
+
provides[key] = value;
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3076
|
+
const instance = getCurrentInstance();
|
|
3077
|
+
if (instance || currentApp) {
|
|
3078
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
3079
|
+
if (provides && key in provides) {
|
|
3080
|
+
return provides[key];
|
|
3081
|
+
} else if (arguments.length > 1) {
|
|
3082
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3083
|
+
} else {
|
|
3084
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3085
|
+
}
|
|
3086
|
+
} else {
|
|
3087
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
function hasInjectionContext() {
|
|
3091
|
+
return !!(getCurrentInstance() || currentApp);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3095
|
+
const useSSRContext = () => {
|
|
3096
|
+
{
|
|
3097
|
+
const ctx = inject(ssrContextKey);
|
|
3098
|
+
if (!ctx) {
|
|
3099
|
+
warn$1(
|
|
3100
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3101
|
+
);
|
|
3102
|
+
}
|
|
3103
|
+
return ctx;
|
|
3104
|
+
}
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
function watchEffect(effect, options) {
|
|
3108
|
+
return doWatch(effect, null, options);
|
|
3109
|
+
}
|
|
3110
|
+
function watchPostEffect(effect, options) {
|
|
3111
|
+
return doWatch(
|
|
3112
|
+
effect,
|
|
3113
|
+
null,
|
|
3114
|
+
extend({}, options, { flush: "post" })
|
|
3115
|
+
);
|
|
3116
|
+
}
|
|
3117
|
+
function watchSyncEffect(effect, options) {
|
|
3118
|
+
return doWatch(
|
|
3119
|
+
effect,
|
|
3120
|
+
null,
|
|
3121
|
+
extend({}, options, { flush: "sync" })
|
|
3122
|
+
);
|
|
3123
|
+
}
|
|
3124
|
+
function watch(source, cb, options) {
|
|
3125
|
+
if (!isFunction(cb)) {
|
|
3126
|
+
warn$1(
|
|
3127
|
+
`\`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.`
|
|
3128
|
+
);
|
|
3129
|
+
}
|
|
3130
|
+
return doWatch(source, cb, options);
|
|
3131
|
+
}
|
|
3132
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3133
|
+
const { immediate, deep, flush, once } = options;
|
|
3134
|
+
if (!cb) {
|
|
3135
|
+
if (immediate !== void 0) {
|
|
3136
|
+
warn$1(
|
|
3137
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3138
|
+
);
|
|
3139
|
+
}
|
|
3140
|
+
if (deep !== void 0) {
|
|
3141
|
+
warn$1(
|
|
3142
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3143
|
+
);
|
|
3144
|
+
}
|
|
3145
|
+
if (once !== void 0) {
|
|
3146
|
+
warn$1(
|
|
3147
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3148
|
+
);
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
const baseWatchOptions = extend({}, options);
|
|
3152
|
+
baseWatchOptions.onWarn = warn$1;
|
|
3153
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
3154
|
+
let ssrCleanup;
|
|
3155
|
+
if (isInSSRComponentSetup) {
|
|
3156
|
+
if (flush === "sync") {
|
|
3157
|
+
const ctx = useSSRContext();
|
|
3158
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
3159
|
+
} else if (!runsImmediately) {
|
|
3160
|
+
const watchStopHandle = () => {
|
|
3161
|
+
};
|
|
3162
|
+
watchStopHandle.stop = NOOP;
|
|
3163
|
+
watchStopHandle.resume = NOOP;
|
|
3164
|
+
watchStopHandle.pause = NOOP;
|
|
3165
|
+
return watchStopHandle;
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
const instance = currentInstance;
|
|
3169
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3170
|
+
let isPre = false;
|
|
3171
|
+
if (flush === "post") {
|
|
3172
|
+
baseWatchOptions.scheduler = (job) => {
|
|
3173
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
3174
|
+
};
|
|
3175
|
+
} else if (flush !== "sync") {
|
|
3176
|
+
isPre = true;
|
|
3177
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
3178
|
+
if (isFirstRun) {
|
|
3179
|
+
job();
|
|
3180
|
+
} else {
|
|
3181
|
+
queueJob(job);
|
|
3182
|
+
}
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3185
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
3186
|
+
if (cb) {
|
|
3187
|
+
job.flags |= 4;
|
|
3188
|
+
}
|
|
3189
|
+
if (isPre) {
|
|
3190
|
+
job.flags |= 2;
|
|
3191
|
+
if (instance) {
|
|
3192
|
+
job.id = instance.uid;
|
|
3193
|
+
job.i = instance;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
};
|
|
3197
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
3198
|
+
if (isInSSRComponentSetup) {
|
|
3199
|
+
if (ssrCleanup) {
|
|
3200
|
+
ssrCleanup.push(watchHandle);
|
|
3201
|
+
} else if (runsImmediately) {
|
|
3202
|
+
watchHandle();
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
return watchHandle;
|
|
3206
|
+
}
|
|
3207
|
+
function instanceWatch(source, value, options) {
|
|
3208
|
+
const publicThis = this.proxy;
|
|
3209
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3210
|
+
let cb;
|
|
3211
|
+
if (isFunction(value)) {
|
|
3212
|
+
cb = value;
|
|
3213
|
+
} else {
|
|
3214
|
+
cb = value.handler;
|
|
3215
|
+
options = value;
|
|
3216
|
+
}
|
|
3217
|
+
const reset = setCurrentInstance(this);
|
|
3218
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3219
|
+
reset();
|
|
3220
|
+
return res;
|
|
3221
|
+
}
|
|
3222
|
+
function createPathGetter(ctx, path) {
|
|
3223
|
+
const segments = path.split(".");
|
|
3224
|
+
return () => {
|
|
3225
|
+
let cur = ctx;
|
|
3226
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3227
|
+
cur = cur[segments[i]];
|
|
3228
|
+
}
|
|
3229
|
+
return cur;
|
|
3230
|
+
};
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3061
3234
|
const isTeleport = (type) => type.__isTeleport;
|
|
3062
3235
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3063
3236
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3417,8 +3590,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
3417
3590
|
return targetAnchor;
|
|
3418
3591
|
}
|
|
3419
3592
|
|
|
3420
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3421
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
3593
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
3594
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3422
3595
|
function useTransitionState() {
|
|
3423
3596
|
const state = {
|
|
3424
3597
|
isMounted: false,
|
|
@@ -4955,7 +5128,9 @@ const KeepAliveImpl = {
|
|
|
4955
5128
|
}
|
|
4956
5129
|
function pruneCache(filter) {
|
|
4957
5130
|
cache.forEach((vnode, key) => {
|
|
4958
|
-
const name = getComponentName(
|
|
5131
|
+
const name = getComponentName(
|
|
5132
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5133
|
+
);
|
|
4959
5134
|
if (name && !filter(name)) {
|
|
4960
5135
|
pruneCacheEntry(key);
|
|
4961
5136
|
}
|
|
@@ -5182,7 +5357,7 @@ const DIRECTIVES = "directives";
|
|
|
5182
5357
|
function resolveComponent(name, maybeSelfReference) {
|
|
5183
5358
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
5184
5359
|
}
|
|
5185
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5360
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
5186
5361
|
function resolveDynamicComponent(component) {
|
|
5187
5362
|
if (isString(component)) {
|
|
5188
5363
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6346,179 +6521,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6346
6521
|
}
|
|
6347
6522
|
let currentApp = null;
|
|
6348
6523
|
|
|
6349
|
-
function provide(key, value) {
|
|
6350
|
-
{
|
|
6351
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
6352
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
6353
|
-
}
|
|
6354
|
-
}
|
|
6355
|
-
if (currentInstance) {
|
|
6356
|
-
let provides = currentInstance.provides;
|
|
6357
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
6358
|
-
if (parentProvides === provides) {
|
|
6359
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
6360
|
-
}
|
|
6361
|
-
provides[key] = value;
|
|
6362
|
-
}
|
|
6363
|
-
}
|
|
6364
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6365
|
-
const instance = getCurrentInstance();
|
|
6366
|
-
if (instance || currentApp) {
|
|
6367
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
6368
|
-
if (provides && key in provides) {
|
|
6369
|
-
return provides[key];
|
|
6370
|
-
} else if (arguments.length > 1) {
|
|
6371
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
6372
|
-
} else {
|
|
6373
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
6374
|
-
}
|
|
6375
|
-
} else {
|
|
6376
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
6377
|
-
}
|
|
6378
|
-
}
|
|
6379
|
-
function hasInjectionContext() {
|
|
6380
|
-
return !!(getCurrentInstance() || currentApp);
|
|
6381
|
-
}
|
|
6382
|
-
|
|
6383
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
6384
|
-
const useSSRContext = () => {
|
|
6385
|
-
{
|
|
6386
|
-
const ctx = inject(ssrContextKey);
|
|
6387
|
-
if (!ctx) {
|
|
6388
|
-
warn$1(
|
|
6389
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
6390
|
-
);
|
|
6391
|
-
}
|
|
6392
|
-
return ctx;
|
|
6393
|
-
}
|
|
6394
|
-
};
|
|
6395
|
-
|
|
6396
|
-
function watchEffect(effect, options) {
|
|
6397
|
-
return doWatch(effect, null, options);
|
|
6398
|
-
}
|
|
6399
|
-
function watchPostEffect(effect, options) {
|
|
6400
|
-
return doWatch(
|
|
6401
|
-
effect,
|
|
6402
|
-
null,
|
|
6403
|
-
extend({}, options, { flush: "post" })
|
|
6404
|
-
);
|
|
6405
|
-
}
|
|
6406
|
-
function watchSyncEffect(effect, options) {
|
|
6407
|
-
return doWatch(
|
|
6408
|
-
effect,
|
|
6409
|
-
null,
|
|
6410
|
-
extend({}, options, { flush: "sync" })
|
|
6411
|
-
);
|
|
6412
|
-
}
|
|
6413
|
-
function watch(source, cb, options) {
|
|
6414
|
-
if (!isFunction(cb)) {
|
|
6415
|
-
warn$1(
|
|
6416
|
-
`\`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.`
|
|
6417
|
-
);
|
|
6418
|
-
}
|
|
6419
|
-
return doWatch(source, cb, options);
|
|
6420
|
-
}
|
|
6421
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
6422
|
-
const { immediate, deep, flush, once } = options;
|
|
6423
|
-
if (!cb) {
|
|
6424
|
-
if (immediate !== void 0) {
|
|
6425
|
-
warn$1(
|
|
6426
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6427
|
-
);
|
|
6428
|
-
}
|
|
6429
|
-
if (deep !== void 0) {
|
|
6430
|
-
warn$1(
|
|
6431
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6432
|
-
);
|
|
6433
|
-
}
|
|
6434
|
-
if (once !== void 0) {
|
|
6435
|
-
warn$1(
|
|
6436
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6437
|
-
);
|
|
6438
|
-
}
|
|
6439
|
-
}
|
|
6440
|
-
const baseWatchOptions = extend({}, options);
|
|
6441
|
-
baseWatchOptions.onWarn = warn$1;
|
|
6442
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
6443
|
-
let ssrCleanup;
|
|
6444
|
-
if (isInSSRComponentSetup) {
|
|
6445
|
-
if (flush === "sync") {
|
|
6446
|
-
const ctx = useSSRContext();
|
|
6447
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
6448
|
-
} else if (!runsImmediately) {
|
|
6449
|
-
const watchStopHandle = () => {
|
|
6450
|
-
};
|
|
6451
|
-
watchStopHandle.stop = NOOP;
|
|
6452
|
-
watchStopHandle.resume = NOOP;
|
|
6453
|
-
watchStopHandle.pause = NOOP;
|
|
6454
|
-
return watchStopHandle;
|
|
6455
|
-
}
|
|
6456
|
-
}
|
|
6457
|
-
const instance = currentInstance;
|
|
6458
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
6459
|
-
let isPre = false;
|
|
6460
|
-
if (flush === "post") {
|
|
6461
|
-
baseWatchOptions.scheduler = (job) => {
|
|
6462
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
6463
|
-
};
|
|
6464
|
-
} else if (flush !== "sync") {
|
|
6465
|
-
isPre = true;
|
|
6466
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
6467
|
-
if (isFirstRun) {
|
|
6468
|
-
job();
|
|
6469
|
-
} else {
|
|
6470
|
-
queueJob(job);
|
|
6471
|
-
}
|
|
6472
|
-
};
|
|
6473
|
-
}
|
|
6474
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
6475
|
-
if (cb) {
|
|
6476
|
-
job.flags |= 4;
|
|
6477
|
-
}
|
|
6478
|
-
if (isPre) {
|
|
6479
|
-
job.flags |= 2;
|
|
6480
|
-
if (instance) {
|
|
6481
|
-
job.id = instance.uid;
|
|
6482
|
-
job.i = instance;
|
|
6483
|
-
}
|
|
6484
|
-
}
|
|
6485
|
-
};
|
|
6486
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
6487
|
-
if (isInSSRComponentSetup) {
|
|
6488
|
-
if (ssrCleanup) {
|
|
6489
|
-
ssrCleanup.push(watchHandle);
|
|
6490
|
-
} else if (runsImmediately) {
|
|
6491
|
-
watchHandle();
|
|
6492
|
-
}
|
|
6493
|
-
}
|
|
6494
|
-
return watchHandle;
|
|
6495
|
-
}
|
|
6496
|
-
function instanceWatch(source, value, options) {
|
|
6497
|
-
const publicThis = this.proxy;
|
|
6498
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
6499
|
-
let cb;
|
|
6500
|
-
if (isFunction(value)) {
|
|
6501
|
-
cb = value;
|
|
6502
|
-
} else {
|
|
6503
|
-
cb = value.handler;
|
|
6504
|
-
options = value;
|
|
6505
|
-
}
|
|
6506
|
-
const reset = setCurrentInstance(this);
|
|
6507
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
6508
|
-
reset();
|
|
6509
|
-
return res;
|
|
6510
|
-
}
|
|
6511
|
-
function createPathGetter(ctx, path) {
|
|
6512
|
-
const segments = path.split(".");
|
|
6513
|
-
return () => {
|
|
6514
|
-
let cur = ctx;
|
|
6515
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
6516
|
-
cur = cur[segments[i]];
|
|
6517
|
-
}
|
|
6518
|
-
return cur;
|
|
6519
|
-
};
|
|
6520
|
-
}
|
|
6521
|
-
|
|
6522
6524
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
6523
6525
|
const i = getCurrentInstance();
|
|
6524
6526
|
if (!i) {
|
|
@@ -7701,7 +7703,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7701
7703
|
} else {
|
|
7702
7704
|
const el = n2.el = n1.el;
|
|
7703
7705
|
if (n2.children !== n1.children) {
|
|
7704
|
-
|
|
7706
|
+
if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
7707
|
+
const childNodes = container.childNodes;
|
|
7708
|
+
const newChild = hostCreateText(n2.children);
|
|
7709
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
7710
|
+
hostInsert(newChild, container, oldChild);
|
|
7711
|
+
hostRemove(oldChild);
|
|
7712
|
+
} else {
|
|
7713
|
+
hostSetText(el, n2.children);
|
|
7714
|
+
}
|
|
7705
7715
|
}
|
|
7706
7716
|
}
|
|
7707
7717
|
};
|
|
@@ -8087,7 +8097,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8087
8097
|
} else {
|
|
8088
8098
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
8089
8099
|
// of renderSlot() with no valid children
|
|
8090
|
-
n1.dynamicChildren) {
|
|
8100
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
8091
8101
|
patchBlockChildren(
|
|
8092
8102
|
n1.dynamicChildren,
|
|
8093
8103
|
dynamicChildren,
|
|
@@ -8676,8 +8686,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8676
8686
|
const nextChild = c2[nextIndex];
|
|
8677
8687
|
const anchorVNode = c2[nextIndex + 1];
|
|
8678
8688
|
const anchor = nextIndex + 1 < l2 ? (
|
|
8679
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
8680
|
-
anchorVNode.el || anchorVNode
|
|
8689
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
8690
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
8681
8691
|
) : parentAnchor;
|
|
8682
8692
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
8683
8693
|
patch(
|
|
@@ -8933,9 +8943,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8933
8943
|
};
|
|
8934
8944
|
let isFlushing = false;
|
|
8935
8945
|
const render = (vnode, container, namespace) => {
|
|
8946
|
+
let instance;
|
|
8936
8947
|
if (vnode == null) {
|
|
8937
8948
|
if (container._vnode) {
|
|
8938
8949
|
unmount(container._vnode, null, null, true);
|
|
8950
|
+
instance = container._vnode.component;
|
|
8939
8951
|
}
|
|
8940
8952
|
} else {
|
|
8941
8953
|
patch(
|
|
@@ -8951,7 +8963,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8951
8963
|
container._vnode = vnode;
|
|
8952
8964
|
if (!isFlushing) {
|
|
8953
8965
|
isFlushing = true;
|
|
8954
|
-
flushPreFlushCbs();
|
|
8966
|
+
flushPreFlushCbs(instance);
|
|
8955
8967
|
flushPostFlushCbs();
|
|
8956
8968
|
isFlushing = false;
|
|
8957
8969
|
}
|
|
@@ -9011,9 +9023,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
9011
9023
|
if (!shallow && c2.patchFlag !== -2)
|
|
9012
9024
|
traverseStaticChildren(c1, c2);
|
|
9013
9025
|
}
|
|
9014
|
-
if (c2.type === Text
|
|
9015
|
-
|
|
9016
|
-
|
|
9026
|
+
if (c2.type === Text) {
|
|
9027
|
+
if (c2.patchFlag !== -1) {
|
|
9028
|
+
c2.el = c1.el;
|
|
9029
|
+
} else {
|
|
9030
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
9031
|
+
(n1.type === Fragment ? 1 : 0);
|
|
9032
|
+
}
|
|
9017
9033
|
}
|
|
9018
9034
|
if (c2.type === Comment && !c2.el) {
|
|
9019
9035
|
c2.el = c1.el;
|
|
@@ -9080,6 +9096,16 @@ function invalidateMount(hooks) {
|
|
|
9080
9096
|
hooks[i].flags |= 8;
|
|
9081
9097
|
}
|
|
9082
9098
|
}
|
|
9099
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
9100
|
+
if (anchorVnode.placeholder) {
|
|
9101
|
+
return anchorVnode.placeholder;
|
|
9102
|
+
}
|
|
9103
|
+
const instance = anchorVnode.component;
|
|
9104
|
+
if (instance) {
|
|
9105
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
9106
|
+
}
|
|
9107
|
+
return null;
|
|
9108
|
+
}
|
|
9083
9109
|
|
|
9084
9110
|
const isSuspense = (type) => type.__isSuspense;
|
|
9085
9111
|
let suspenseId = 0;
|
|
@@ -9682,10 +9708,10 @@ function isVNodeSuspensible(vnode) {
|
|
|
9682
9708
|
return suspensible != null && suspensible !== false;
|
|
9683
9709
|
}
|
|
9684
9710
|
|
|
9685
|
-
const Fragment = Symbol.for("v-fgt");
|
|
9686
|
-
const Text = Symbol.for("v-txt");
|
|
9687
|
-
const Comment = Symbol.for("v-cmt");
|
|
9688
|
-
const Static = Symbol.for("v-stc");
|
|
9711
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
9712
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
9713
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
9714
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
9689
9715
|
const blockStack = [];
|
|
9690
9716
|
let currentBlock = null;
|
|
9691
9717
|
function openBlock(disableTracking = false) {
|
|
@@ -10729,7 +10755,7 @@ function isMemoSame(cached, memo) {
|
|
|
10729
10755
|
return true;
|
|
10730
10756
|
}
|
|
10731
10757
|
|
|
10732
|
-
const version = "3.5.
|
|
10758
|
+
const version = "3.5.26";
|
|
10733
10759
|
const warn = warn$1 ;
|
|
10734
10760
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10735
10761
|
const devtools = devtools$1 ;
|
|
@@ -10834,7 +10860,7 @@ const nodeOps = {
|
|
|
10834
10860
|
|
|
10835
10861
|
const TRANSITION$1 = "transition";
|
|
10836
10862
|
const ANIMATION = "animation";
|
|
10837
|
-
const vtcKey = Symbol("_vtc");
|
|
10863
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
10838
10864
|
const DOMTransitionPropsValidators = {
|
|
10839
10865
|
name: String,
|
|
10840
10866
|
type: String,
|
|
@@ -11127,8 +11153,8 @@ function patchClass(el, value, isSVG) {
|
|
|
11127
11153
|
}
|
|
11128
11154
|
}
|
|
11129
11155
|
|
|
11130
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
11131
|
-
const vShowHidden = Symbol("_vsh");
|
|
11156
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
11157
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
11132
11158
|
const vShow = {
|
|
11133
11159
|
// used for prop mismatch check during hydration
|
|
11134
11160
|
name: "show",
|
|
@@ -11177,7 +11203,7 @@ function initVShowForSSR() {
|
|
|
11177
11203
|
};
|
|
11178
11204
|
}
|
|
11179
11205
|
|
|
11180
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
|
|
11206
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
|
|
11181
11207
|
function useCssVars(getter) {
|
|
11182
11208
|
const instance = getCurrentInstance();
|
|
11183
11209
|
if (!instance) {
|
|
@@ -11427,7 +11453,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
11427
11453
|
function removeEventListener(el, event, handler, options) {
|
|
11428
11454
|
el.removeEventListener(event, handler, options);
|
|
11429
11455
|
}
|
|
11430
|
-
const veiKey = Symbol("_vei");
|
|
11456
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
11431
11457
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
11432
11458
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
11433
11459
|
const existingInvoker = invokers[rawName];
|
|
@@ -12065,8 +12091,8 @@ function useCssModule(name = "$style") {
|
|
|
12065
12091
|
|
|
12066
12092
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
12067
12093
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
12068
|
-
const moveCbKey = Symbol("_moveCb");
|
|
12069
|
-
const enterCbKey = Symbol("_enterCb");
|
|
12094
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
12095
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
12070
12096
|
const decorate = (t) => {
|
|
12071
12097
|
delete t.props.mode;
|
|
12072
12098
|
return t;
|
|
@@ -12219,7 +12245,7 @@ function onCompositionEnd(e) {
|
|
|
12219
12245
|
target.dispatchEvent(new Event("input"));
|
|
12220
12246
|
}
|
|
12221
12247
|
}
|
|
12222
|
-
const assignKey = Symbol("_assign");
|
|
12248
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
12223
12249
|
function castValue(value, trim, number) {
|
|
12224
12250
|
if (trim) value = value.trim();
|
|
12225
12251
|
if (number) value = looseToNumber(value);
|
|
@@ -12846,81 +12872,81 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
12846
12872
|
}
|
|
12847
12873
|
}
|
|
12848
12874
|
|
|
12849
|
-
const FRAGMENT = Symbol(`Fragment` );
|
|
12850
|
-
const TELEPORT = Symbol(`Teleport` );
|
|
12851
|
-
const SUSPENSE = Symbol(`Suspense` );
|
|
12852
|
-
const KEEP_ALIVE = Symbol(`KeepAlive` );
|
|
12853
|
-
const BASE_TRANSITION = Symbol(
|
|
12875
|
+
const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
|
|
12876
|
+
const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
|
|
12877
|
+
const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
|
|
12878
|
+
const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
|
|
12879
|
+
const BASE_TRANSITION = /* @__PURE__ */ Symbol(
|
|
12854
12880
|
`BaseTransition`
|
|
12855
12881
|
);
|
|
12856
|
-
const OPEN_BLOCK = Symbol(`openBlock` );
|
|
12857
|
-
const CREATE_BLOCK = Symbol(`createBlock` );
|
|
12858
|
-
const CREATE_ELEMENT_BLOCK = Symbol(
|
|
12882
|
+
const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
|
|
12883
|
+
const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
|
|
12884
|
+
const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
|
|
12859
12885
|
`createElementBlock`
|
|
12860
12886
|
);
|
|
12861
|
-
const CREATE_VNODE = Symbol(`createVNode` );
|
|
12862
|
-
const CREATE_ELEMENT_VNODE = Symbol(
|
|
12887
|
+
const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
|
|
12888
|
+
const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
|
|
12863
12889
|
`createElementVNode`
|
|
12864
12890
|
);
|
|
12865
|
-
const CREATE_COMMENT = Symbol(
|
|
12891
|
+
const CREATE_COMMENT = /* @__PURE__ */ Symbol(
|
|
12866
12892
|
`createCommentVNode`
|
|
12867
12893
|
);
|
|
12868
|
-
const CREATE_TEXT = Symbol(
|
|
12894
|
+
const CREATE_TEXT = /* @__PURE__ */ Symbol(
|
|
12869
12895
|
`createTextVNode`
|
|
12870
12896
|
);
|
|
12871
|
-
const CREATE_STATIC = Symbol(
|
|
12897
|
+
const CREATE_STATIC = /* @__PURE__ */ Symbol(
|
|
12872
12898
|
`createStaticVNode`
|
|
12873
12899
|
);
|
|
12874
|
-
const RESOLVE_COMPONENT = Symbol(
|
|
12900
|
+
const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
|
|
12875
12901
|
`resolveComponent`
|
|
12876
12902
|
);
|
|
12877
|
-
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
12903
|
+
const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
|
|
12878
12904
|
`resolveDynamicComponent`
|
|
12879
12905
|
);
|
|
12880
|
-
const RESOLVE_DIRECTIVE = Symbol(
|
|
12906
|
+
const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
|
|
12881
12907
|
`resolveDirective`
|
|
12882
12908
|
);
|
|
12883
|
-
const RESOLVE_FILTER = Symbol(
|
|
12909
|
+
const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
|
|
12884
12910
|
`resolveFilter`
|
|
12885
12911
|
);
|
|
12886
|
-
const WITH_DIRECTIVES = Symbol(
|
|
12912
|
+
const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
|
|
12887
12913
|
`withDirectives`
|
|
12888
12914
|
);
|
|
12889
|
-
const RENDER_LIST = Symbol(`renderList` );
|
|
12890
|
-
const RENDER_SLOT = Symbol(`renderSlot` );
|
|
12891
|
-
const CREATE_SLOTS = Symbol(`createSlots` );
|
|
12892
|
-
const TO_DISPLAY_STRING = Symbol(
|
|
12915
|
+
const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
|
|
12916
|
+
const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
|
|
12917
|
+
const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
|
|
12918
|
+
const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
|
|
12893
12919
|
`toDisplayString`
|
|
12894
12920
|
);
|
|
12895
|
-
const MERGE_PROPS = Symbol(`mergeProps` );
|
|
12896
|
-
const NORMALIZE_CLASS = Symbol(
|
|
12921
|
+
const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
|
|
12922
|
+
const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
|
|
12897
12923
|
`normalizeClass`
|
|
12898
12924
|
);
|
|
12899
|
-
const NORMALIZE_STYLE = Symbol(
|
|
12925
|
+
const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
|
|
12900
12926
|
`normalizeStyle`
|
|
12901
12927
|
);
|
|
12902
|
-
const NORMALIZE_PROPS = Symbol(
|
|
12928
|
+
const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
|
|
12903
12929
|
`normalizeProps`
|
|
12904
12930
|
);
|
|
12905
|
-
const GUARD_REACTIVE_PROPS = Symbol(
|
|
12931
|
+
const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
|
|
12906
12932
|
`guardReactiveProps`
|
|
12907
12933
|
);
|
|
12908
|
-
const TO_HANDLERS = Symbol(`toHandlers` );
|
|
12909
|
-
const CAMELIZE = Symbol(`camelize` );
|
|
12910
|
-
const CAPITALIZE = Symbol(`capitalize` );
|
|
12911
|
-
const TO_HANDLER_KEY = Symbol(
|
|
12934
|
+
const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
|
|
12935
|
+
const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
|
|
12936
|
+
const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
|
|
12937
|
+
const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
|
|
12912
12938
|
`toHandlerKey`
|
|
12913
12939
|
);
|
|
12914
|
-
const SET_BLOCK_TRACKING = Symbol(
|
|
12940
|
+
const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
|
|
12915
12941
|
`setBlockTracking`
|
|
12916
12942
|
);
|
|
12917
|
-
const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
|
|
12918
|
-
const POP_SCOPE_ID = Symbol(`popScopeId` );
|
|
12919
|
-
const WITH_CTX = Symbol(`withCtx` );
|
|
12920
|
-
const UNREF = Symbol(`unref` );
|
|
12921
|
-
const IS_REF = Symbol(`isRef` );
|
|
12922
|
-
const WITH_MEMO = Symbol(`withMemo` );
|
|
12923
|
-
const IS_MEMO_SAME = Symbol(`isMemoSame` );
|
|
12943
|
+
const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
|
|
12944
|
+
const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
|
|
12945
|
+
const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
|
|
12946
|
+
const UNREF = /* @__PURE__ */ Symbol(`unref` );
|
|
12947
|
+
const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
|
|
12948
|
+
const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
|
|
12949
|
+
const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
|
|
12924
12950
|
const helperNameMap = {
|
|
12925
12951
|
[FRAGMENT]: `Fragment`,
|
|
12926
12952
|
[TELEPORT]: `Teleport`,
|
|
@@ -13215,14 +13241,28 @@ class Tokenizer {
|
|
|
13215
13241
|
getPos(index) {
|
|
13216
13242
|
let line = 1;
|
|
13217
13243
|
let column = index + 1;
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13244
|
+
const length = this.newlines.length;
|
|
13245
|
+
let j = -1;
|
|
13246
|
+
if (length > 100) {
|
|
13247
|
+
let l = -1;
|
|
13248
|
+
let r = length;
|
|
13249
|
+
while (l + 1 < r) {
|
|
13250
|
+
const m = l + r >>> 1;
|
|
13251
|
+
this.newlines[m] < index ? l = m : r = m;
|
|
13252
|
+
}
|
|
13253
|
+
j = l;
|
|
13254
|
+
} else {
|
|
13255
|
+
for (let i = length - 1; i >= 0; i--) {
|
|
13256
|
+
if (index > this.newlines[i]) {
|
|
13257
|
+
j = i;
|
|
13258
|
+
break;
|
|
13259
|
+
}
|
|
13224
13260
|
}
|
|
13225
13261
|
}
|
|
13262
|
+
if (j >= 0) {
|
|
13263
|
+
line = j + 2;
|
|
13264
|
+
column = index - this.newlines[j];
|
|
13265
|
+
}
|
|
13226
13266
|
return {
|
|
13227
13267
|
column,
|
|
13228
13268
|
line,
|
|
@@ -13970,7 +14010,7 @@ const errorMessages = {
|
|
|
13970
14010
|
[32]: `v-for has invalid expression.`,
|
|
13971
14011
|
[33]: `<template v-for> key should be placed on the <template> tag.`,
|
|
13972
14012
|
[34]: `v-bind is missing expression.`,
|
|
13973
|
-
[
|
|
14013
|
+
[53]: `v-bind with same-name shorthand only allows static argument.`,
|
|
13974
14014
|
[35]: `v-on is missing expression.`,
|
|
13975
14015
|
[36]: `Unexpected custom directive on <slot> outlet.`,
|
|
13976
14016
|
[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.`,
|
|
@@ -13982,16 +14022,17 @@ const errorMessages = {
|
|
|
13982
14022
|
[43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
13983
14023
|
[44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
13984
14024
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
13985
|
-
[45]: `
|
|
13986
|
-
[46]:
|
|
13987
|
-
[
|
|
14025
|
+
[45]: `v-model cannot be used on a const binding because it is not writable.`,
|
|
14026
|
+
[46]: `Error parsing JavaScript expression: `,
|
|
14027
|
+
[47]: `<KeepAlive> expects exactly one child component.`,
|
|
14028
|
+
[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.`,
|
|
13988
14029
|
// generic errors
|
|
13989
|
-
[
|
|
13990
|
-
[
|
|
13991
|
-
[
|
|
13992
|
-
[
|
|
14030
|
+
[48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
14031
|
+
[49]: `ES module mode is not supported in this build of compiler.`,
|
|
14032
|
+
[50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
14033
|
+
[51]: `"scopeId" option is only supported in module mode.`,
|
|
13993
14034
|
// just to fulfill types
|
|
13994
|
-
[
|
|
14035
|
+
[54]: ``
|
|
13995
14036
|
};
|
|
13996
14037
|
|
|
13997
14038
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -16080,7 +16121,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
16080
16121
|
}
|
|
16081
16122
|
context.onError(
|
|
16082
16123
|
createCompilerError(
|
|
16083
|
-
|
|
16124
|
+
46,
|
|
16084
16125
|
node.loc,
|
|
16085
16126
|
void 0,
|
|
16086
16127
|
message
|
|
@@ -16843,7 +16884,7 @@ const transformElement = (node, context) => {
|
|
|
16843
16884
|
patchFlag |= 1024;
|
|
16844
16885
|
if (node.children.length > 1) {
|
|
16845
16886
|
context.onError(
|
|
16846
|
-
createCompilerError(
|
|
16887
|
+
createCompilerError(47, {
|
|
16847
16888
|
start: node.children[0].loc.start,
|
|
16848
16889
|
end: node.children[node.children.length - 1].loc.end,
|
|
16849
16890
|
source: ""
|
|
@@ -17390,7 +17431,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
17390
17431
|
if (arg.isStatic) {
|
|
17391
17432
|
let rawName = arg.content;
|
|
17392
17433
|
if (rawName.startsWith("vnode")) {
|
|
17393
|
-
context.onError(createCompilerError(
|
|
17434
|
+
context.onError(createCompilerError(52, arg.loc));
|
|
17394
17435
|
}
|
|
17395
17436
|
if (rawName.startsWith("vue:")) {
|
|
17396
17437
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -17623,6 +17664,10 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
17623
17664
|
context.onError(createCompilerError(44, exp.loc));
|
|
17624
17665
|
return createTransformProps();
|
|
17625
17666
|
}
|
|
17667
|
+
if (bindingType === "literal-const" || bindingType === "setup-const") {
|
|
17668
|
+
context.onError(createCompilerError(45, exp.loc));
|
|
17669
|
+
return createTransformProps();
|
|
17670
|
+
}
|
|
17626
17671
|
if (!expString.trim() || !isMemberExpression(exp) && true) {
|
|
17627
17672
|
context.onError(
|
|
17628
17673
|
createCompilerError(42, exp.loc)
|
|
@@ -17702,7 +17747,7 @@ const transformVBindShorthand = (node, context) => {
|
|
|
17702
17747
|
if (arg.type !== 4 || !arg.isStatic) {
|
|
17703
17748
|
context.onError(
|
|
17704
17749
|
createCompilerError(
|
|
17705
|
-
|
|
17750
|
+
53,
|
|
17706
17751
|
arg.loc
|
|
17707
17752
|
)
|
|
17708
17753
|
);
|
|
@@ -17746,17 +17791,17 @@ function baseCompile(source, options = {}) {
|
|
|
17746
17791
|
const isModuleMode = options.mode === "module";
|
|
17747
17792
|
{
|
|
17748
17793
|
if (options.prefixIdentifiers === true) {
|
|
17749
|
-
onError(createCompilerError(47));
|
|
17750
|
-
} else if (isModuleMode) {
|
|
17751
17794
|
onError(createCompilerError(48));
|
|
17795
|
+
} else if (isModuleMode) {
|
|
17796
|
+
onError(createCompilerError(49));
|
|
17752
17797
|
}
|
|
17753
17798
|
}
|
|
17754
17799
|
const prefixIdentifiers = false;
|
|
17755
17800
|
if (options.cacheHandlers) {
|
|
17756
|
-
onError(createCompilerError(
|
|
17801
|
+
onError(createCompilerError(50));
|
|
17757
17802
|
}
|
|
17758
17803
|
if (options.scopeId && !isModuleMode) {
|
|
17759
|
-
onError(createCompilerError(
|
|
17804
|
+
onError(createCompilerError(51));
|
|
17760
17805
|
}
|
|
17761
17806
|
const resolvedOptions = extend({}, options, {
|
|
17762
17807
|
prefixIdentifiers
|
|
@@ -17784,26 +17829,26 @@ function baseCompile(source, options = {}) {
|
|
|
17784
17829
|
|
|
17785
17830
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
17786
17831
|
|
|
17787
|
-
const V_MODEL_RADIO = Symbol(`vModelRadio` );
|
|
17788
|
-
const V_MODEL_CHECKBOX = Symbol(
|
|
17832
|
+
const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
|
|
17833
|
+
const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
|
|
17789
17834
|
`vModelCheckbox`
|
|
17790
17835
|
);
|
|
17791
|
-
const V_MODEL_TEXT = Symbol(`vModelText` );
|
|
17792
|
-
const V_MODEL_SELECT = Symbol(
|
|
17836
|
+
const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
|
|
17837
|
+
const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
|
|
17793
17838
|
`vModelSelect`
|
|
17794
17839
|
);
|
|
17795
|
-
const V_MODEL_DYNAMIC = Symbol(
|
|
17840
|
+
const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
|
|
17796
17841
|
`vModelDynamic`
|
|
17797
17842
|
);
|
|
17798
|
-
const V_ON_WITH_MODIFIERS = Symbol(
|
|
17843
|
+
const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
|
|
17799
17844
|
`vOnModifiersGuard`
|
|
17800
17845
|
);
|
|
17801
|
-
const V_ON_WITH_KEYS = Symbol(
|
|
17846
|
+
const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
|
|
17802
17847
|
`vOnKeysGuard`
|
|
17803
17848
|
);
|
|
17804
|
-
const V_SHOW = Symbol(`vShow` );
|
|
17805
|
-
const TRANSITION = Symbol(`Transition` );
|
|
17806
|
-
const TRANSITION_GROUP = Symbol(
|
|
17849
|
+
const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
|
|
17850
|
+
const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
|
|
17851
|
+
const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
|
|
17807
17852
|
`TransitionGroup`
|
|
17808
17853
|
);
|
|
17809
17854
|
registerRuntimeHelpers({
|
|
@@ -17914,29 +17959,29 @@ function createDOMCompilerError(code, loc) {
|
|
|
17914
17959
|
);
|
|
17915
17960
|
}
|
|
17916
17961
|
const DOMErrorMessages = {
|
|
17917
|
-
[
|
|
17918
|
-
[
|
|
17919
|
-
[
|
|
17920
|
-
[
|
|
17921
|
-
[
|
|
17922
|
-
[
|
|
17923
|
-
[
|
|
17924
|
-
[
|
|
17925
|
-
[
|
|
17926
|
-
[
|
|
17927
|
-
[
|
|
17962
|
+
[54]: `v-html is missing expression.`,
|
|
17963
|
+
[55]: `v-html will override element children.`,
|
|
17964
|
+
[56]: `v-text is missing expression.`,
|
|
17965
|
+
[57]: `v-text will override element children.`,
|
|
17966
|
+
[58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
17967
|
+
[59]: `v-model argument is not supported on plain elements.`,
|
|
17968
|
+
[60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
17969
|
+
[61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
17970
|
+
[62]: `v-show is missing expression.`,
|
|
17971
|
+
[63]: `<Transition> expects exactly one child element or component.`,
|
|
17972
|
+
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
|
|
17928
17973
|
};
|
|
17929
17974
|
|
|
17930
17975
|
const transformVHtml = (dir, node, context) => {
|
|
17931
17976
|
const { exp, loc } = dir;
|
|
17932
17977
|
if (!exp) {
|
|
17933
17978
|
context.onError(
|
|
17934
|
-
createDOMCompilerError(
|
|
17979
|
+
createDOMCompilerError(54, loc)
|
|
17935
17980
|
);
|
|
17936
17981
|
}
|
|
17937
17982
|
if (node.children.length) {
|
|
17938
17983
|
context.onError(
|
|
17939
|
-
createDOMCompilerError(
|
|
17984
|
+
createDOMCompilerError(55, loc)
|
|
17940
17985
|
);
|
|
17941
17986
|
node.children.length = 0;
|
|
17942
17987
|
}
|
|
@@ -17954,12 +17999,12 @@ const transformVText = (dir, node, context) => {
|
|
|
17954
17999
|
const { exp, loc } = dir;
|
|
17955
18000
|
if (!exp) {
|
|
17956
18001
|
context.onError(
|
|
17957
|
-
createDOMCompilerError(
|
|
18002
|
+
createDOMCompilerError(56, loc)
|
|
17958
18003
|
);
|
|
17959
18004
|
}
|
|
17960
18005
|
if (node.children.length) {
|
|
17961
18006
|
context.onError(
|
|
17962
|
-
createDOMCompilerError(
|
|
18007
|
+
createDOMCompilerError(57, loc)
|
|
17963
18008
|
);
|
|
17964
18009
|
node.children.length = 0;
|
|
17965
18010
|
}
|
|
@@ -17985,7 +18030,7 @@ const transformModel = (dir, node, context) => {
|
|
|
17985
18030
|
if (dir.arg) {
|
|
17986
18031
|
context.onError(
|
|
17987
18032
|
createDOMCompilerError(
|
|
17988
|
-
|
|
18033
|
+
59,
|
|
17989
18034
|
dir.arg.loc
|
|
17990
18035
|
)
|
|
17991
18036
|
);
|
|
@@ -17995,7 +18040,7 @@ const transformModel = (dir, node, context) => {
|
|
|
17995
18040
|
if (value && isStaticArgOf(value.arg, "value")) {
|
|
17996
18041
|
context.onError(
|
|
17997
18042
|
createDOMCompilerError(
|
|
17998
|
-
|
|
18043
|
+
61,
|
|
17999
18044
|
value.loc
|
|
18000
18045
|
)
|
|
18001
18046
|
);
|
|
@@ -18023,7 +18068,7 @@ const transformModel = (dir, node, context) => {
|
|
|
18023
18068
|
isInvalidType = true;
|
|
18024
18069
|
context.onError(
|
|
18025
18070
|
createDOMCompilerError(
|
|
18026
|
-
|
|
18071
|
+
60,
|
|
18027
18072
|
dir.loc
|
|
18028
18073
|
)
|
|
18029
18074
|
);
|
|
@@ -18049,7 +18094,7 @@ const transformModel = (dir, node, context) => {
|
|
|
18049
18094
|
} else {
|
|
18050
18095
|
context.onError(
|
|
18051
18096
|
createDOMCompilerError(
|
|
18052
|
-
|
|
18097
|
+
58,
|
|
18053
18098
|
dir.loc
|
|
18054
18099
|
)
|
|
18055
18100
|
);
|
|
@@ -18151,7 +18196,7 @@ const transformShow = (dir, node, context) => {
|
|
|
18151
18196
|
const { exp, loc } = dir;
|
|
18152
18197
|
if (!exp) {
|
|
18153
18198
|
context.onError(
|
|
18154
|
-
createDOMCompilerError(
|
|
18199
|
+
createDOMCompilerError(62, loc)
|
|
18155
18200
|
);
|
|
18156
18201
|
}
|
|
18157
18202
|
return {
|
|
@@ -18171,7 +18216,7 @@ const transformTransition = (node, context) => {
|
|
|
18171
18216
|
if (hasMultipleChildren(node)) {
|
|
18172
18217
|
context.onError(
|
|
18173
18218
|
createDOMCompilerError(
|
|
18174
|
-
|
|
18219
|
+
63,
|
|
18175
18220
|
{
|
|
18176
18221
|
start: node.children[0].loc.start,
|
|
18177
18222
|
end: node.children[node.children.length - 1].loc.end,
|
|
@@ -18210,7 +18255,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
18210
18255
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
18211
18256
|
context.onError(
|
|
18212
18257
|
createDOMCompilerError(
|
|
18213
|
-
|
|
18258
|
+
64,
|
|
18214
18259
|
node.loc
|
|
18215
18260
|
)
|
|
18216
18261
|
);
|