@vue/compat 3.5.17 → 3.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +138 -113
- package/dist/vue.cjs.prod.js +98 -96
- package/dist/vue.esm-browser.js +134 -112
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +135 -113
- package/dist/vue.global.js +134 -112
- package/dist/vue.global.prod.js +8 -8
- package/dist/vue.runtime.esm-browser.js +121 -93
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +122 -94
- package/dist/vue.runtime.global.js +121 -93
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.19
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -56,10 +56,10 @@ const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
|
56
56
|
);
|
|
57
57
|
const cacheStringFunction = (fn) => {
|
|
58
58
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
59
|
-
return (str) => {
|
|
59
|
+
return ((str) => {
|
|
60
60
|
const hit = cache[str];
|
|
61
61
|
return hit || (cache[str] = fn(str));
|
|
62
|
-
};
|
|
62
|
+
});
|
|
63
63
|
};
|
|
64
64
|
const camelizeRE = /-(\w)/g;
|
|
65
65
|
const camelize = cacheStringFunction(
|
|
@@ -311,6 +311,24 @@ const stringifySymbol = (v, i = "") => {
|
|
|
311
311
|
);
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
+
function normalizeCssVarValue(value) {
|
|
315
|
+
if (value == null) {
|
|
316
|
+
return "initial";
|
|
317
|
+
}
|
|
318
|
+
if (typeof value === "string") {
|
|
319
|
+
return value === "" ? " " : value;
|
|
320
|
+
}
|
|
321
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
322
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
323
|
+
console.warn(
|
|
324
|
+
"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
|
|
325
|
+
value
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return String(value);
|
|
330
|
+
}
|
|
331
|
+
|
|
314
332
|
function warn$2(msg, ...args) {
|
|
315
333
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
316
334
|
}
|
|
@@ -1278,7 +1296,13 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1278
1296
|
}
|
|
1279
1297
|
if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
|
|
1280
1298
|
if (isOldValueReadonly) {
|
|
1281
|
-
|
|
1299
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1300
|
+
warn$2(
|
|
1301
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
1302
|
+
target[key]
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
return true;
|
|
1282
1306
|
} else {
|
|
1283
1307
|
oldValue.value = value;
|
|
1284
1308
|
return true;
|
|
@@ -2656,7 +2680,9 @@ function rerender(id, newRender) {
|
|
|
2656
2680
|
}
|
|
2657
2681
|
instance.renderCache = [];
|
|
2658
2682
|
isHmrUpdating = true;
|
|
2659
|
-
instance.
|
|
2683
|
+
if (!(instance.job.flags & 8)) {
|
|
2684
|
+
instance.update();
|
|
2685
|
+
}
|
|
2660
2686
|
isHmrUpdating = false;
|
|
2661
2687
|
});
|
|
2662
2688
|
}
|
|
@@ -4252,7 +4278,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4252
4278
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4253
4279
|
const setupState = owner.setupState;
|
|
4254
4280
|
const rawSetupState = toRaw(setupState);
|
|
4255
|
-
const canSetSetupRef = setupState === EMPTY_OBJ ?
|
|
4281
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
|
|
4256
4282
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
4257
4283
|
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
|
4258
4284
|
warn$1(
|
|
@@ -4265,6 +4291,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4265
4291
|
}
|
|
4266
4292
|
return hasOwn(rawSetupState, key);
|
|
4267
4293
|
};
|
|
4294
|
+
const canSetRef = (ref2) => {
|
|
4295
|
+
return !!!(process.env.NODE_ENV !== "production") || !knownTemplateRefs.has(ref2);
|
|
4296
|
+
};
|
|
4268
4297
|
if (oldRef != null && oldRef !== ref) {
|
|
4269
4298
|
if (isString(oldRef)) {
|
|
4270
4299
|
refs[oldRef] = null;
|
|
@@ -4272,7 +4301,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4272
4301
|
setupState[oldRef] = null;
|
|
4273
4302
|
}
|
|
4274
4303
|
} else if (isRef(oldRef)) {
|
|
4275
|
-
oldRef
|
|
4304
|
+
if (canSetRef(oldRef)) {
|
|
4305
|
+
oldRef.value = null;
|
|
4306
|
+
}
|
|
4307
|
+
const oldRawRefAtom = oldRawRef;
|
|
4308
|
+
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
4276
4309
|
}
|
|
4277
4310
|
}
|
|
4278
4311
|
if (isFunction(ref)) {
|
|
@@ -4283,7 +4316,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4283
4316
|
if (_isString || _isRef) {
|
|
4284
4317
|
const doSet = () => {
|
|
4285
4318
|
if (rawRef.f) {
|
|
4286
|
-
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4319
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
|
|
4287
4320
|
if (isUnmount) {
|
|
4288
4321
|
isArray(existing) && remove(existing, refValue);
|
|
4289
4322
|
} else {
|
|
@@ -4294,8 +4327,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4294
4327
|
setupState[ref] = refs[ref];
|
|
4295
4328
|
}
|
|
4296
4329
|
} else {
|
|
4297
|
-
|
|
4298
|
-
if (
|
|
4330
|
+
const newVal = [refValue];
|
|
4331
|
+
if (canSetRef(ref)) {
|
|
4332
|
+
ref.value = newVal;
|
|
4333
|
+
}
|
|
4334
|
+
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
4299
4335
|
}
|
|
4300
4336
|
} else if (!existing.includes(refValue)) {
|
|
4301
4337
|
existing.push(refValue);
|
|
@@ -4307,7 +4343,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4307
4343
|
setupState[ref] = value;
|
|
4308
4344
|
}
|
|
4309
4345
|
} else if (_isRef) {
|
|
4310
|
-
ref
|
|
4346
|
+
if (canSetRef(ref)) {
|
|
4347
|
+
ref.value = value;
|
|
4348
|
+
}
|
|
4311
4349
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
4312
4350
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4313
4351
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -4939,10 +4977,8 @@ function resolveCssVars(instance, vnode, expectedMap) {
|
|
|
4939
4977
|
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4940
4978
|
const cssVars = instance.getCssVars();
|
|
4941
4979
|
for (const key in cssVars) {
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
String(cssVars[key])
|
|
4945
|
-
);
|
|
4980
|
+
const value = normalizeCssVarValue(cssVars[key]);
|
|
4981
|
+
expectedMap.set(`--${getEscapedCssVarName(key)}`, value);
|
|
4946
4982
|
}
|
|
4947
4983
|
}
|
|
4948
4984
|
if (vnode === root && instance.parent) {
|
|
@@ -5131,16 +5167,19 @@ function defineAsyncComponent(source) {
|
|
|
5131
5167
|
__asyncLoader: load,
|
|
5132
5168
|
__asyncHydrate(el, instance, hydrate) {
|
|
5133
5169
|
let patched = false;
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5170
|
+
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
5171
|
+
const performHydrate = () => {
|
|
5172
|
+
if (patched) {
|
|
5173
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5137
5174
|
warn$1(
|
|
5138
|
-
`Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
|
|
5175
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`
|
|
5139
5176
|
);
|
|
5140
|
-
return;
|
|
5141
5177
|
}
|
|
5142
|
-
|
|
5143
|
-
}
|
|
5178
|
+
return;
|
|
5179
|
+
}
|
|
5180
|
+
hydrate();
|
|
5181
|
+
};
|
|
5182
|
+
const doHydrate = hydrateStrategy ? () => {
|
|
5144
5183
|
const teardown = hydrateStrategy(
|
|
5145
5184
|
performHydrate,
|
|
5146
5185
|
(cb) => forEachElement(el, cb)
|
|
@@ -5148,8 +5187,7 @@ function defineAsyncComponent(source) {
|
|
|
5148
5187
|
if (teardown) {
|
|
5149
5188
|
(instance.bum || (instance.bum = [])).push(teardown);
|
|
5150
5189
|
}
|
|
5151
|
-
|
|
5152
|
-
} : hydrate;
|
|
5190
|
+
} : performHydrate;
|
|
5153
5191
|
if (resolvedComp) {
|
|
5154
5192
|
doHydrate();
|
|
5155
5193
|
} else {
|
|
@@ -6416,10 +6454,10 @@ const PublicInstanceProxyHandlers = {
|
|
|
6416
6454
|
return true;
|
|
6417
6455
|
},
|
|
6418
6456
|
has({
|
|
6419
|
-
_: { data, setupState, accessCache, ctx, appContext, propsOptions }
|
|
6457
|
+
_: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
|
|
6420
6458
|
}, key) {
|
|
6421
|
-
let normalizedProps;
|
|
6422
|
-
return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
|
|
6459
|
+
let normalizedProps, cssModules;
|
|
6460
|
+
return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
|
|
6423
6461
|
},
|
|
6424
6462
|
defineProperty(target, key, descriptor) {
|
|
6425
6463
|
if (descriptor.get != null) {
|
|
@@ -6571,15 +6609,15 @@ function withDefaults(props, defaults) {
|
|
|
6571
6609
|
return null;
|
|
6572
6610
|
}
|
|
6573
6611
|
function useSlots() {
|
|
6574
|
-
return getContext().slots;
|
|
6612
|
+
return getContext("useSlots").slots;
|
|
6575
6613
|
}
|
|
6576
6614
|
function useAttrs() {
|
|
6577
|
-
return getContext().attrs;
|
|
6615
|
+
return getContext("useAttrs").attrs;
|
|
6578
6616
|
}
|
|
6579
|
-
function getContext() {
|
|
6617
|
+
function getContext(calledFunctionName) {
|
|
6580
6618
|
const i = getCurrentInstance();
|
|
6581
6619
|
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
6582
|
-
warn$1(
|
|
6620
|
+
warn$1(`${calledFunctionName}() called without active instance.`);
|
|
6583
6621
|
}
|
|
6584
6622
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
6585
6623
|
}
|
|
@@ -6840,7 +6878,8 @@ function applyOptions(instance) {
|
|
|
6840
6878
|
expose.forEach((key) => {
|
|
6841
6879
|
Object.defineProperty(exposed, key, {
|
|
6842
6880
|
get: () => publicThis[key],
|
|
6843
|
-
set: (val) => publicThis[key] = val
|
|
6881
|
+
set: (val) => publicThis[key] = val,
|
|
6882
|
+
enumerable: true
|
|
6844
6883
|
});
|
|
6845
6884
|
});
|
|
6846
6885
|
} else if (!instance.exposed) {
|
|
@@ -7165,7 +7204,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7165
7204
|
return vm;
|
|
7166
7205
|
}
|
|
7167
7206
|
}
|
|
7168
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7207
|
+
Vue.version = `2.6.14-compat:${"3.5.19"}`;
|
|
7169
7208
|
Vue.config = singletonApp.config;
|
|
7170
7209
|
Vue.use = (plugin, ...options) => {
|
|
7171
7210
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7179,22 +7218,22 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7179
7218
|
singletonApp.mixin(m);
|
|
7180
7219
|
return Vue;
|
|
7181
7220
|
};
|
|
7182
|
-
Vue.component = (name, comp) => {
|
|
7221
|
+
Vue.component = ((name, comp) => {
|
|
7183
7222
|
if (comp) {
|
|
7184
7223
|
singletonApp.component(name, comp);
|
|
7185
7224
|
return Vue;
|
|
7186
7225
|
} else {
|
|
7187
7226
|
return singletonApp.component(name);
|
|
7188
7227
|
}
|
|
7189
|
-
};
|
|
7190
|
-
Vue.directive = (name, dir) => {
|
|
7228
|
+
});
|
|
7229
|
+
Vue.directive = ((name, dir) => {
|
|
7191
7230
|
if (dir) {
|
|
7192
7231
|
singletonApp.directive(name, dir);
|
|
7193
7232
|
return Vue;
|
|
7194
7233
|
} else {
|
|
7195
7234
|
return singletonApp.directive(name);
|
|
7196
7235
|
}
|
|
7197
|
-
};
|
|
7236
|
+
});
|
|
7198
7237
|
Vue.options = { _base: Vue };
|
|
7199
7238
|
let cid = 1;
|
|
7200
7239
|
Vue.cid = cid;
|
|
@@ -7257,14 +7296,14 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7257
7296
|
assertCompatEnabled("GLOBAL_OBSERVABLE", null);
|
|
7258
7297
|
return reactive(target);
|
|
7259
7298
|
};
|
|
7260
|
-
Vue.filter = (name, filter) => {
|
|
7299
|
+
Vue.filter = ((name, filter) => {
|
|
7261
7300
|
if (filter) {
|
|
7262
7301
|
singletonApp.filter(name, filter);
|
|
7263
7302
|
return Vue;
|
|
7264
7303
|
} else {
|
|
7265
7304
|
return singletonApp.filter(name);
|
|
7266
7305
|
}
|
|
7267
|
-
};
|
|
7306
|
+
});
|
|
7268
7307
|
const util = {
|
|
7269
7308
|
warn: !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP,
|
|
7270
7309
|
extend,
|
|
@@ -7759,7 +7798,7 @@ function provide(key, value) {
|
|
|
7759
7798
|
}
|
|
7760
7799
|
}
|
|
7761
7800
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
7762
|
-
const instance =
|
|
7801
|
+
const instance = getCurrentInstance();
|
|
7763
7802
|
if (instance || currentApp) {
|
|
7764
7803
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
7765
7804
|
if (provides && key in provides) {
|
|
@@ -7774,7 +7813,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
7774
7813
|
}
|
|
7775
7814
|
}
|
|
7776
7815
|
function hasInjectionContext() {
|
|
7777
|
-
return !!(
|
|
7816
|
+
return !!(getCurrentInstance() || currentApp);
|
|
7778
7817
|
}
|
|
7779
7818
|
|
|
7780
7819
|
function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
@@ -8260,7 +8299,7 @@ function isBoolean(...args) {
|
|
|
8260
8299
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
8261
8300
|
}
|
|
8262
8301
|
|
|
8263
|
-
const isInternalKey = (key) => key
|
|
8302
|
+
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
8264
8303
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
8265
8304
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
8266
8305
|
if (rawSlot._n) {
|
|
@@ -8314,8 +8353,6 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
8314
8353
|
const initSlots = (instance, children, optimized) => {
|
|
8315
8354
|
const slots = instance.slots = createInternalObject();
|
|
8316
8355
|
if (instance.vnode.shapeFlag & 32) {
|
|
8317
|
-
const cacheIndexes = children.__;
|
|
8318
|
-
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
8319
8356
|
const type = children._;
|
|
8320
8357
|
if (type) {
|
|
8321
8358
|
assignSlots(slots, children, optimized);
|
|
@@ -8376,12 +8413,10 @@ function endMeasure(instance, type) {
|
|
|
8376
8413
|
if (instance.appContext.config.performance && isSupported()) {
|
|
8377
8414
|
const startTag = `vue-${type}-${instance.uid}`;
|
|
8378
8415
|
const endTag = startTag + `:end`;
|
|
8416
|
+
const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`;
|
|
8379
8417
|
perf.mark(endTag);
|
|
8380
|
-
perf.measure(
|
|
8381
|
-
|
|
8382
|
-
startTag,
|
|
8383
|
-
endTag
|
|
8384
|
-
);
|
|
8418
|
+
perf.measure(measureName, startTag, endTag);
|
|
8419
|
+
perf.clearMeasures(measureName);
|
|
8385
8420
|
perf.clearMarks(startTag);
|
|
8386
8421
|
perf.clearMarks(endTag);
|
|
8387
8422
|
}
|
|
@@ -9041,6 +9076,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9041
9076
|
if (!initialVNode.el) {
|
|
9042
9077
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
9043
9078
|
processCommentNode(null, placeholder, container, anchor);
|
|
9079
|
+
initialVNode.placeholder = placeholder.el;
|
|
9044
9080
|
}
|
|
9045
9081
|
} else {
|
|
9046
9082
|
setupRenderEffect(
|
|
@@ -9566,7 +9602,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9566
9602
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
9567
9603
|
const nextIndex = s2 + i;
|
|
9568
9604
|
const nextChild = c2[nextIndex];
|
|
9569
|
-
const
|
|
9605
|
+
const anchorVNode = c2[nextIndex + 1];
|
|
9606
|
+
const anchor = nextIndex + 1 < l2 ? (
|
|
9607
|
+
// #13559, fallback to el placeholder for unresolved async component
|
|
9608
|
+
anchorVNode.el || anchorVNode.placeholder
|
|
9609
|
+
) : parentAnchor;
|
|
9570
9610
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
9571
9611
|
patch(
|
|
9572
9612
|
null,
|
|
@@ -9631,6 +9671,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9631
9671
|
}
|
|
9632
9672
|
};
|
|
9633
9673
|
const performLeave = () => {
|
|
9674
|
+
if (el._isLeaving) {
|
|
9675
|
+
el[leaveCbKey](
|
|
9676
|
+
true
|
|
9677
|
+
/* cancelled */
|
|
9678
|
+
);
|
|
9679
|
+
}
|
|
9634
9680
|
leave(el, () => {
|
|
9635
9681
|
remove2();
|
|
9636
9682
|
afterLeave && afterLeave();
|
|
@@ -9776,27 +9822,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9776
9822
|
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
9777
9823
|
unregisterHMR(instance);
|
|
9778
9824
|
}
|
|
9779
|
-
const {
|
|
9780
|
-
bum,
|
|
9781
|
-
scope,
|
|
9782
|
-
job,
|
|
9783
|
-
subTree,
|
|
9784
|
-
um,
|
|
9785
|
-
m,
|
|
9786
|
-
a,
|
|
9787
|
-
parent,
|
|
9788
|
-
slots: { __: slotCacheKeys }
|
|
9789
|
-
} = instance;
|
|
9825
|
+
const { bum, scope, job, subTree, um, m, a } = instance;
|
|
9790
9826
|
invalidateMount(m);
|
|
9791
9827
|
invalidateMount(a);
|
|
9792
9828
|
if (bum) {
|
|
9793
9829
|
invokeArrayFns(bum);
|
|
9794
9830
|
}
|
|
9795
|
-
if (parent && isArray(slotCacheKeys)) {
|
|
9796
|
-
slotCacheKeys.forEach((v) => {
|
|
9797
|
-
parent.renderCache[v] = void 0;
|
|
9798
|
-
});
|
|
9799
|
-
}
|
|
9800
9831
|
if (isCompatEnabled("INSTANCE_EVENT_HOOKS", instance)) {
|
|
9801
9832
|
instance.emit("hook:beforeDestroy");
|
|
9802
9833
|
}
|
|
@@ -9817,12 +9848,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9817
9848
|
queuePostRenderEffect(() => {
|
|
9818
9849
|
instance.isUnmounted = true;
|
|
9819
9850
|
}, parentSuspense);
|
|
9820
|
-
if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
|
|
9821
|
-
parentSuspense.deps--;
|
|
9822
|
-
if (parentSuspense.deps === 0) {
|
|
9823
|
-
parentSuspense.resolve();
|
|
9824
|
-
}
|
|
9825
|
-
}
|
|
9826
9851
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
9827
9852
|
devtoolsComponentRemoved(instance);
|
|
9828
9853
|
}
|
|
@@ -9923,7 +9948,8 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
9923
9948
|
if (!shallow && c2.patchFlag !== -2)
|
|
9924
9949
|
traverseStaticChildren(c1, c2);
|
|
9925
9950
|
}
|
|
9926
|
-
if (c2.type === Text
|
|
9951
|
+
if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
|
|
9952
|
+
c2.patchFlag !== -1) {
|
|
9927
9953
|
c2.el = c1.el;
|
|
9928
9954
|
}
|
|
9929
9955
|
if (c2.type === Comment && !c2.el) {
|
|
@@ -11561,6 +11587,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
11561
11587
|
suspense: vnode.suspense,
|
|
11562
11588
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
11563
11589
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
11590
|
+
placeholder: vnode.placeholder,
|
|
11564
11591
|
el: vnode.el,
|
|
11565
11592
|
anchor: vnode.anchor,
|
|
11566
11593
|
ctx: vnode.ctx,
|
|
@@ -12381,7 +12408,7 @@ function isMemoSame(cached, memo) {
|
|
|
12381
12408
|
return true;
|
|
12382
12409
|
}
|
|
12383
12410
|
|
|
12384
|
-
const version = "3.5.
|
|
12411
|
+
const version = "3.5.19";
|
|
12385
12412
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12386
12413
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12387
12414
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12858,7 +12885,7 @@ const vShow = {
|
|
|
12858
12885
|
setDisplay(el, value);
|
|
12859
12886
|
}
|
|
12860
12887
|
};
|
|
12861
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12888
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) {
|
|
12862
12889
|
vShow.name = "show";
|
|
12863
12890
|
}
|
|
12864
12891
|
function setDisplay(el, value) {
|
|
@@ -12938,8 +12965,9 @@ function setVarsOnNode(el, vars) {
|
|
|
12938
12965
|
const style = el.style;
|
|
12939
12966
|
let cssText = "";
|
|
12940
12967
|
for (const key in vars) {
|
|
12941
|
-
|
|
12942
|
-
|
|
12968
|
+
const value = normalizeCssVarValue(vars[key]);
|
|
12969
|
+
style.setProperty(`--${key}`, value);
|
|
12970
|
+
cssText += `--${key}: ${value};`;
|
|
12943
12971
|
}
|
|
12944
12972
|
style[CSS_VAR_TEXT] = cssText;
|
|
12945
12973
|
}
|
|
@@ -13325,10 +13353,10 @@ function defineCustomElement(options, extraOptions, _createApp) {
|
|
|
13325
13353
|
VueCustomElement.def = Comp;
|
|
13326
13354
|
return VueCustomElement;
|
|
13327
13355
|
}
|
|
13328
|
-
|
|
13329
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13356
|
+
|
|
13357
|
+
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13330
13358
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
13331
|
-
};
|
|
13359
|
+
});
|
|
13332
13360
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
13333
13361
|
};
|
|
13334
13362
|
class VueElement extends BaseClass {
|
|
@@ -14198,13 +14226,13 @@ const modifierGuards = {
|
|
|
14198
14226
|
const withModifiers = (fn, modifiers) => {
|
|
14199
14227
|
const cache = fn._withMods || (fn._withMods = {});
|
|
14200
14228
|
const cacheKey = modifiers.join(".");
|
|
14201
|
-
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
14229
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
|
14202
14230
|
for (let i = 0; i < modifiers.length; i++) {
|
|
14203
14231
|
const guard = modifierGuards[modifiers[i]];
|
|
14204
14232
|
if (guard && guard(event, modifiers)) return;
|
|
14205
14233
|
}
|
|
14206
14234
|
return fn(event, ...args);
|
|
14207
|
-
});
|
|
14235
|
+
}));
|
|
14208
14236
|
};
|
|
14209
14237
|
const keyNames = {
|
|
14210
14238
|
esc: "escape",
|
|
@@ -14234,7 +14262,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
14234
14262
|
}
|
|
14235
14263
|
const cache = fn._withKeys || (fn._withKeys = {});
|
|
14236
14264
|
const cacheKey = modifiers.join(".");
|
|
14237
|
-
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
14265
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
14238
14266
|
if (!("key" in event)) {
|
|
14239
14267
|
return;
|
|
14240
14268
|
}
|
|
@@ -14264,7 +14292,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
14264
14292
|
}
|
|
14265
14293
|
}
|
|
14266
14294
|
}
|
|
14267
|
-
});
|
|
14295
|
+
}));
|
|
14268
14296
|
};
|
|
14269
14297
|
|
|
14270
14298
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -14278,13 +14306,13 @@ function ensureHydrationRenderer() {
|
|
|
14278
14306
|
enabledHydration = true;
|
|
14279
14307
|
return renderer;
|
|
14280
14308
|
}
|
|
14281
|
-
const render = (...args) => {
|
|
14309
|
+
const render = ((...args) => {
|
|
14282
14310
|
ensureRenderer().render(...args);
|
|
14283
|
-
};
|
|
14284
|
-
const hydrate = (...args) => {
|
|
14311
|
+
});
|
|
14312
|
+
const hydrate = ((...args) => {
|
|
14285
14313
|
ensureHydrationRenderer().hydrate(...args);
|
|
14286
|
-
};
|
|
14287
|
-
const createApp = (...args) => {
|
|
14314
|
+
});
|
|
14315
|
+
const createApp = ((...args) => {
|
|
14288
14316
|
const app = ensureRenderer().createApp(...args);
|
|
14289
14317
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
14290
14318
|
injectNativeTagCheck(app);
|
|
@@ -14321,8 +14349,8 @@ const createApp = (...args) => {
|
|
|
14321
14349
|
return proxy;
|
|
14322
14350
|
};
|
|
14323
14351
|
return app;
|
|
14324
|
-
};
|
|
14325
|
-
const createSSRApp = (...args) => {
|
|
14352
|
+
});
|
|
14353
|
+
const createSSRApp = ((...args) => {
|
|
14326
14354
|
const app = ensureHydrationRenderer().createApp(...args);
|
|
14327
14355
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
14328
14356
|
injectNativeTagCheck(app);
|
|
@@ -14336,7 +14364,7 @@ const createSSRApp = (...args) => {
|
|
|
14336
14364
|
}
|
|
14337
14365
|
};
|
|
14338
14366
|
return app;
|
|
14339
|
-
};
|
|
14367
|
+
});
|
|
14340
14368
|
function resolveRootNamespace(container) {
|
|
14341
14369
|
if (container instanceof SVGElement) {
|
|
14342
14370
|
return "svg";
|
|
@@ -14605,13 +14633,13 @@ function createCompatVue() {
|
|
|
14605
14633
|
}
|
|
14606
14634
|
|
|
14607
14635
|
const Vue = createCompatVue();
|
|
14608
|
-
Vue.compile = () => {
|
|
14636
|
+
Vue.compile = (() => {
|
|
14609
14637
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
14610
14638
|
warn(
|
|
14611
14639
|
`Runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "@vue/compat/dist/vue.esm-bundler.js".` )
|
|
14612
14640
|
);
|
|
14613
14641
|
}
|
|
14614
|
-
};
|
|
14642
|
+
});
|
|
14615
14643
|
|
|
14616
14644
|
const configureCompat = Vue.configureCompat;
|
|
14617
14645
|
|