@vue/compat 3.5.20 → 3.5.21
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 +94 -57
- package/dist/vue.cjs.prod.js +77 -44
- package/dist/vue.esm-browser.js +91 -56
- package/dist/vue.esm-browser.prod.js +9 -9
- package/dist/vue.esm-bundler.js +91 -56
- package/dist/vue.global.js +91 -56
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime.esm-browser.js +87 -52
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +87 -52
- package/dist/vue.runtime.global.js +87 -52
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.21
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
6
|
// @__NO_SIDE_EFFECTS__
|
|
8
7
|
function makeMap(str) {
|
|
9
8
|
const map = /* @__PURE__ */ Object.create(null);
|
|
@@ -61,10 +60,10 @@ const cacheStringFunction = (fn) => {
|
|
|
61
60
|
return hit || (cache[str] = fn(str));
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
|
-
const camelizeRE =
|
|
63
|
+
const camelizeRE = /-\w/g;
|
|
65
64
|
const camelize = cacheStringFunction(
|
|
66
65
|
(str) => {
|
|
67
|
-
return str.replace(camelizeRE, (
|
|
66
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
68
67
|
}
|
|
69
68
|
);
|
|
70
69
|
const hyphenateRE = /\B([A-Z])/g;
|
|
@@ -2227,11 +2226,11 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
2227
2226
|
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
2228
2227
|
return value;
|
|
2229
2228
|
}
|
|
2230
|
-
seen = seen || /* @__PURE__ */ new
|
|
2231
|
-
if (seen.
|
|
2229
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
2230
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
2232
2231
|
return value;
|
|
2233
2232
|
}
|
|
2234
|
-
seen.
|
|
2233
|
+
seen.set(value, depth);
|
|
2235
2234
|
depth--;
|
|
2236
2235
|
if (isRef(value)) {
|
|
2237
2236
|
traverse(value.value, depth, seen);
|
|
@@ -2693,11 +2692,14 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2693
2692
|
let isHmrUpdating = false;
|
|
2694
2693
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2695
2694
|
{
|
|
2696
|
-
getGlobalThis()
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2695
|
+
const g = getGlobalThis();
|
|
2696
|
+
if (!g.__VUE_HMR_RUNTIME__) {
|
|
2697
|
+
g.__VUE_HMR_RUNTIME__ = {
|
|
2698
|
+
createRecord: tryWrap(createRecord),
|
|
2699
|
+
rerender: tryWrap(rerender),
|
|
2700
|
+
reload: tryWrap(reload)
|
|
2701
|
+
};
|
|
2702
|
+
}
|
|
2701
2703
|
}
|
|
2702
2704
|
const map = /* @__PURE__ */ new Map();
|
|
2703
2705
|
function registerHMR(instance) {
|
|
@@ -2770,10 +2772,12 @@ function reload(id, newComp) {
|
|
|
2770
2772
|
dirtyInstances.delete(instance);
|
|
2771
2773
|
} else if (instance.parent) {
|
|
2772
2774
|
queueJob(() => {
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2775
|
+
if (!(instance.job.flags & 8)) {
|
|
2776
|
+
isHmrUpdating = true;
|
|
2777
|
+
instance.parent.update();
|
|
2778
|
+
isHmrUpdating = false;
|
|
2779
|
+
dirtyInstances.delete(instance);
|
|
2780
|
+
}
|
|
2777
2781
|
});
|
|
2778
2782
|
} else if (instance.appContext.reload) {
|
|
2779
2783
|
instance.appContext.reload();
|
|
@@ -2877,7 +2881,6 @@ const devtoolsComponentRemoved = (component) => {
|
|
|
2877
2881
|
_devtoolsComponentRemoved(component);
|
|
2878
2882
|
}
|
|
2879
2883
|
};
|
|
2880
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2881
2884
|
// @__NO_SIDE_EFFECTS__
|
|
2882
2885
|
function createDevtoolsComponentHook(hook) {
|
|
2883
2886
|
return (component) => {
|
|
@@ -3803,26 +3806,34 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
3803
3806
|
function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {
|
|
3804
3807
|
o: { nextSibling, parentNode, querySelector, insert, createText }
|
|
3805
3808
|
}, hydrateChildren) {
|
|
3809
|
+
function hydrateDisabledTeleport(node2, vnode2, targetStart, targetAnchor) {
|
|
3810
|
+
vnode2.anchor = hydrateChildren(
|
|
3811
|
+
nextSibling(node2),
|
|
3812
|
+
vnode2,
|
|
3813
|
+
parentNode(node2),
|
|
3814
|
+
parentComponent,
|
|
3815
|
+
parentSuspense,
|
|
3816
|
+
slotScopeIds,
|
|
3817
|
+
optimized
|
|
3818
|
+
);
|
|
3819
|
+
vnode2.targetStart = targetStart;
|
|
3820
|
+
vnode2.targetAnchor = targetAnchor;
|
|
3821
|
+
}
|
|
3806
3822
|
const target = vnode.target = resolveTarget(
|
|
3807
3823
|
vnode.props,
|
|
3808
3824
|
querySelector
|
|
3809
3825
|
);
|
|
3826
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3810
3827
|
if (target) {
|
|
3811
|
-
const disabled = isTeleportDisabled(vnode.props);
|
|
3812
3828
|
const targetNode = target._lpa || target.firstChild;
|
|
3813
3829
|
if (vnode.shapeFlag & 16) {
|
|
3814
3830
|
if (disabled) {
|
|
3815
|
-
|
|
3816
|
-
|
|
3831
|
+
hydrateDisabledTeleport(
|
|
3832
|
+
node,
|
|
3817
3833
|
vnode,
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
parentSuspense,
|
|
3821
|
-
slotScopeIds,
|
|
3822
|
-
optimized
|
|
3834
|
+
targetNode,
|
|
3835
|
+
targetNode && nextSibling(targetNode)
|
|
3823
3836
|
);
|
|
3824
|
-
vnode.targetStart = targetNode;
|
|
3825
|
-
vnode.targetAnchor = targetNode && nextSibling(targetNode);
|
|
3826
3837
|
} else {
|
|
3827
3838
|
vnode.anchor = nextSibling(node);
|
|
3828
3839
|
let targetAnchor = targetNode;
|
|
@@ -3853,6 +3864,10 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3853
3864
|
}
|
|
3854
3865
|
}
|
|
3855
3866
|
updateCssVars(vnode, disabled);
|
|
3867
|
+
} else if (disabled) {
|
|
3868
|
+
if (vnode.shapeFlag & 16) {
|
|
3869
|
+
hydrateDisabledTeleport(node, vnode, node, nextSibling(node));
|
|
3870
|
+
}
|
|
3856
3871
|
}
|
|
3857
3872
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3858
3873
|
}
|
|
@@ -3964,7 +3979,7 @@ const BaseTransitionImpl = {
|
|
|
3964
3979
|
setTransitionHooks(innerChild, enterHooks);
|
|
3965
3980
|
}
|
|
3966
3981
|
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3967
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(
|
|
3982
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3968
3983
|
let leavingHooks = resolveTransitionHooks(
|
|
3969
3984
|
oldInnerChild,
|
|
3970
3985
|
rawProps,
|
|
@@ -4247,7 +4262,6 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
4247
4262
|
return ret;
|
|
4248
4263
|
}
|
|
4249
4264
|
|
|
4250
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
4251
4265
|
// @__NO_SIDE_EFFECTS__
|
|
4252
4266
|
function defineComponent(options, extraOptions) {
|
|
4253
4267
|
return isFunction(options) ? (
|
|
@@ -4300,6 +4314,7 @@ function useTemplateRef(key) {
|
|
|
4300
4314
|
return ret;
|
|
4301
4315
|
}
|
|
4302
4316
|
|
|
4317
|
+
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
4303
4318
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
4304
4319
|
if (isArray(rawRef)) {
|
|
4305
4320
|
rawRef.forEach(
|
|
@@ -4349,6 +4364,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4349
4364
|
return !knownTemplateRefs.has(ref2);
|
|
4350
4365
|
};
|
|
4351
4366
|
if (oldRef != null && oldRef !== ref) {
|
|
4367
|
+
invalidatePendingSetRef(oldRawRef);
|
|
4352
4368
|
if (isString(oldRef)) {
|
|
4353
4369
|
refs[oldRef] = null;
|
|
4354
4370
|
if (canSetSetupRef(oldRef)) {
|
|
@@ -4406,9 +4422,15 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4406
4422
|
}
|
|
4407
4423
|
};
|
|
4408
4424
|
if (value) {
|
|
4409
|
-
|
|
4410
|
-
|
|
4425
|
+
const job = () => {
|
|
4426
|
+
doSet();
|
|
4427
|
+
pendingSetRefMap.delete(rawRef);
|
|
4428
|
+
};
|
|
4429
|
+
job.id = -1;
|
|
4430
|
+
pendingSetRefMap.set(rawRef, job);
|
|
4431
|
+
queuePostRenderEffect(job, parentSuspense);
|
|
4411
4432
|
} else {
|
|
4433
|
+
invalidatePendingSetRef(rawRef);
|
|
4412
4434
|
doSet();
|
|
4413
4435
|
}
|
|
4414
4436
|
} else {
|
|
@@ -4416,6 +4438,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4416
4438
|
}
|
|
4417
4439
|
}
|
|
4418
4440
|
}
|
|
4441
|
+
function invalidatePendingSetRef(rawRef) {
|
|
4442
|
+
const pendingSetRef = pendingSetRefMap.get(rawRef);
|
|
4443
|
+
if (pendingSetRef) {
|
|
4444
|
+
pendingSetRef.flags |= 8;
|
|
4445
|
+
pendingSetRefMap.delete(rawRef);
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4419
4448
|
|
|
4420
4449
|
let hasLoggedMismatchError = false;
|
|
4421
4450
|
const logMismatchError = () => {
|
|
@@ -5148,7 +5177,6 @@ function forEachElement(node, cb) {
|
|
|
5148
5177
|
}
|
|
5149
5178
|
|
|
5150
5179
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
5151
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
5152
5180
|
// @__NO_SIDE_EFFECTS__
|
|
5153
5181
|
function defineAsyncComponent(source) {
|
|
5154
5182
|
if (isFunction(source)) {
|
|
@@ -7245,7 +7273,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7245
7273
|
return vm;
|
|
7246
7274
|
}
|
|
7247
7275
|
}
|
|
7248
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7276
|
+
Vue.version = `2.6.14-compat:${"3.5.21"}`;
|
|
7249
7277
|
Vue.config = singletonApp.config;
|
|
7250
7278
|
Vue.use = (plugin, ...options) => {
|
|
7251
7279
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7503,7 +7531,7 @@ function installCompatMount(app, context, render) {
|
|
|
7503
7531
|
{
|
|
7504
7532
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
7505
7533
|
const attr = container.attributes[i];
|
|
7506
|
-
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
7534
|
+
if (attr.name !== "v-cloak" && /^(?:v-|:|@)/.test(attr.name)) {
|
|
7507
7535
|
warnDeprecation$1("GLOBAL_MOUNT_CONTAINER", null);
|
|
7508
7536
|
break;
|
|
7509
7537
|
}
|
|
@@ -10315,8 +10343,9 @@ function emit(instance, event, ...rawArgs) {
|
|
|
10315
10343
|
return emit$1(instance, event, args);
|
|
10316
10344
|
}
|
|
10317
10345
|
}
|
|
10346
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
10318
10347
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
10319
|
-
const cache = appContext.emitsCache;
|
|
10348
|
+
const cache = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
10320
10349
|
const cached = cache.get(comp);
|
|
10321
10350
|
if (cached !== void 0) {
|
|
10322
10351
|
return cached;
|
|
@@ -10788,7 +10817,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
10788
10817
|
const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
|
|
10789
10818
|
if (pendingBranch) {
|
|
10790
10819
|
suspense.pendingBranch = newBranch;
|
|
10791
|
-
if (isSameVNodeType(
|
|
10820
|
+
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
10792
10821
|
patch(
|
|
10793
10822
|
pendingBranch,
|
|
10794
10823
|
newBranch,
|
|
@@ -10859,7 +10888,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
10859
10888
|
);
|
|
10860
10889
|
setActiveBranch(suspense, newFallback);
|
|
10861
10890
|
}
|
|
10862
|
-
} else if (activeBranch && isSameVNodeType(
|
|
10891
|
+
} else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
10863
10892
|
patch(
|
|
10864
10893
|
activeBranch,
|
|
10865
10894
|
newBranch,
|
|
@@ -10890,7 +10919,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
10890
10919
|
}
|
|
10891
10920
|
}
|
|
10892
10921
|
} else {
|
|
10893
|
-
if (activeBranch && isSameVNodeType(
|
|
10922
|
+
if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
10894
10923
|
patch(
|
|
10895
10924
|
activeBranch,
|
|
10896
10925
|
newBranch,
|
|
@@ -12126,7 +12155,7 @@ function getComponentPublicInstance(instance) {
|
|
|
12126
12155
|
return instance.proxy;
|
|
12127
12156
|
}
|
|
12128
12157
|
}
|
|
12129
|
-
const classifyRE = /(?:^|[-_])
|
|
12158
|
+
const classifyRE = /(?:^|[-_])\w/g;
|
|
12130
12159
|
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
12131
12160
|
function getComponentName(Component, includeInferred = true) {
|
|
12132
12161
|
return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
@@ -12169,15 +12198,23 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
12169
12198
|
};
|
|
12170
12199
|
|
|
12171
12200
|
function h(type, propsOrChildren, children) {
|
|
12201
|
+
const doCreateVNode = (type2, props, children2) => {
|
|
12202
|
+
setBlockTracking(-1);
|
|
12203
|
+
try {
|
|
12204
|
+
return createVNode(type2, props, children2);
|
|
12205
|
+
} finally {
|
|
12206
|
+
setBlockTracking(1);
|
|
12207
|
+
}
|
|
12208
|
+
};
|
|
12172
12209
|
const l = arguments.length;
|
|
12173
12210
|
if (l === 2) {
|
|
12174
12211
|
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
12175
12212
|
if (isVNode(propsOrChildren)) {
|
|
12176
|
-
return
|
|
12213
|
+
return doCreateVNode(type, null, [propsOrChildren]);
|
|
12177
12214
|
}
|
|
12178
|
-
return
|
|
12215
|
+
return doCreateVNode(type, propsOrChildren);
|
|
12179
12216
|
} else {
|
|
12180
|
-
return
|
|
12217
|
+
return doCreateVNode(type, null, propsOrChildren);
|
|
12181
12218
|
}
|
|
12182
12219
|
} else {
|
|
12183
12220
|
if (l > 3) {
|
|
@@ -12185,7 +12222,7 @@ function h(type, propsOrChildren, children) {
|
|
|
12185
12222
|
} else if (l === 3 && isVNode(children)) {
|
|
12186
12223
|
children = [children];
|
|
12187
12224
|
}
|
|
12188
|
-
return
|
|
12225
|
+
return doCreateVNode(type, propsOrChildren, children);
|
|
12189
12226
|
}
|
|
12190
12227
|
}
|
|
12191
12228
|
|
|
@@ -12395,7 +12432,7 @@ function isMemoSame(cached, memo) {
|
|
|
12395
12432
|
return true;
|
|
12396
12433
|
}
|
|
12397
12434
|
|
|
12398
|
-
const version = "3.5.
|
|
12435
|
+
const version = "3.5.21";
|
|
12399
12436
|
const warn = warn$1 ;
|
|
12400
12437
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12401
12438
|
const devtools = devtools$1 ;
|
|
@@ -12798,7 +12835,7 @@ function getTransitionInfo(el, expectedType) {
|
|
|
12798
12835
|
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION$1 : ANIMATION : null;
|
|
12799
12836
|
propCount = type ? type === TRANSITION$1 ? transitionDurations.length : animationDurations.length : 0;
|
|
12800
12837
|
}
|
|
12801
|
-
const hasTransform = type === TRANSITION$1 && /\b(transform|all)(
|
|
12838
|
+
const hasTransform = type === TRANSITION$1 && /\b(?:transform|all)(?:,|$)/.test(
|
|
12802
12839
|
getStyleProperties(`${TRANSITION$1}Property`).toString()
|
|
12803
12840
|
);
|
|
12804
12841
|
return {
|
|
@@ -12959,7 +12996,7 @@ function setVarsOnNode(el, vars) {
|
|
|
12959
12996
|
}
|
|
12960
12997
|
}
|
|
12961
12998
|
|
|
12962
|
-
const displayRE = /(
|
|
12999
|
+
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
12963
13000
|
function patchStyle(el, prev, next) {
|
|
12964
13001
|
const style = el.style;
|
|
12965
13002
|
const isCssString = isString(next);
|
|
@@ -13326,11 +13363,10 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
13326
13363
|
}
|
|
13327
13364
|
|
|
13328
13365
|
const REMOVAL = {};
|
|
13329
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
13330
13366
|
// @__NO_SIDE_EFFECTS__
|
|
13331
13367
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
13332
|
-
|
|
13333
|
-
if (isPlainObject(Comp)) extend(Comp, extraOptions);
|
|
13368
|
+
let Comp = defineComponent(options, extraOptions);
|
|
13369
|
+
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
|
|
13334
13370
|
class VueCustomElement extends VueElement {
|
|
13335
13371
|
constructor(initialProps) {
|
|
13336
13372
|
super(Comp, initialProps, _createApp);
|
|
@@ -13339,7 +13375,6 @@ function defineCustomElement(options, extraOptions, _createApp) {
|
|
|
13339
13375
|
VueCustomElement.def = Comp;
|
|
13340
13376
|
return VueCustomElement;
|
|
13341
13377
|
}
|
|
13342
|
-
|
|
13343
13378
|
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13344
13379
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
13345
13380
|
});
|
|
@@ -13815,7 +13850,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
13815
13850
|
if (e && e.target !== el) {
|
|
13816
13851
|
return;
|
|
13817
13852
|
}
|
|
13818
|
-
if (!e ||
|
|
13853
|
+
if (!e || e.propertyName.endsWith("transform")) {
|
|
13819
13854
|
el.removeEventListener("transitionend", cb);
|
|
13820
13855
|
el[moveCbKey] = null;
|
|
13821
13856
|
removeTransitionClass(el, moveClass);
|
|
@@ -14314,7 +14349,7 @@ const createApp = ((...args) => {
|
|
|
14314
14349
|
if (container.nodeType === 1) {
|
|
14315
14350
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
14316
14351
|
const attr = container.attributes[i];
|
|
14317
|
-
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
14352
|
+
if (attr.name !== "v-cloak" && /^(?:v-|:|@)/.test(attr.name)) {
|
|
14318
14353
|
compatUtils.warnDeprecation(
|
|
14319
14354
|
"GLOBAL_MOUNT_CONTAINER",
|
|
14320
14355
|
null
|
|
@@ -15925,7 +15960,7 @@ const isMemberExpressionBrowser = (exp) => {
|
|
|
15925
15960
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
15926
15961
|
};
|
|
15927
15962
|
const isMemberExpression = isMemberExpressionBrowser ;
|
|
15928
|
-
const fnExpRE = /^\s*(async\s*)?(
|
|
15963
|
+
const fnExpRE = /^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
15929
15964
|
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
15930
15965
|
const isFnExpression = isFnExpressionBrowser ;
|
|
15931
15966
|
function assert(condition, msg) {
|
|
@@ -18064,7 +18099,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
18064
18099
|
}
|
|
18065
18100
|
|
|
18066
18101
|
const transformIf = createStructuralDirectiveTransform(
|
|
18067
|
-
/^(if|else|else-if)$/,
|
|
18102
|
+
/^(?:if|else|else-if)$/,
|
|
18068
18103
|
(node, dir, context) => {
|
|
18069
18104
|
return processIf(node, dir, context, (ifNode, branch, isRoot) => {
|
|
18070
18105
|
const siblings = context.parent.children;
|
|
@@ -18651,7 +18686,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
18651
18686
|
);
|
|
18652
18687
|
} else if (vElse = findDir(
|
|
18653
18688
|
slotElement,
|
|
18654
|
-
/^else(
|
|
18689
|
+
/^else(?:-if)?$/,
|
|
18655
18690
|
true
|
|
18656
18691
|
/* allowEmpty */
|
|
18657
18692
|
)) {
|
|
@@ -18663,7 +18698,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
18663
18698
|
break;
|
|
18664
18699
|
}
|
|
18665
18700
|
}
|
|
18666
|
-
if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) {
|
|
18701
|
+
if (prev && isTemplateNode(prev) && findDir(prev, /^(?:else-)?if$/)) {
|
|
18667
18702
|
let conditional = dynamicSlots[dynamicSlots.length - 1];
|
|
18668
18703
|
while (conditional.alternate.type === 19) {
|
|
18669
18704
|
conditional = conditional.alternate;
|