@vue/compat 3.2.45 → 3.2.47

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.
@@ -172,7 +172,7 @@ var Vue = (function () {
172
172
  // These tag configs are shared between compiler-dom and runtime-dom, so they
173
173
  // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
174
174
  const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
175
- 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
175
+ 'header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
176
176
  'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
177
177
  'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +
178
178
  'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
@@ -184,7 +184,7 @@ var Vue = (function () {
184
184
  const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
185
185
  'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
186
186
  'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
187
- 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
187
+ 'feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
188
188
  'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
189
189
  'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
190
190
  'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
@@ -341,12 +341,13 @@ var Vue = (function () {
341
341
  arr.splice(i, 1);
342
342
  }
343
343
  };
344
- const hasOwnProperty = Object.prototype.hasOwnProperty;
345
- const hasOwn = (val, key) => hasOwnProperty.call(val, key);
344
+ const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
345
+ const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
346
346
  const isArray = Array.isArray;
347
347
  const isMap = (val) => toTypeString(val) === '[object Map]';
348
348
  const isSet = (val) => toTypeString(val) === '[object Set]';
349
349
  const isDate = (val) => toTypeString(val) === '[object Date]';
350
+ const isRegExp = (val) => toTypeString(val) === '[object RegExp]';
350
351
  const isFunction = (val) => typeof val === 'function';
351
352
  const isString = (val) => typeof val === 'string';
352
353
  const isSymbol = (val) => typeof val === 'symbol';
@@ -413,10 +414,22 @@ var Vue = (function () {
413
414
  value
414
415
  });
415
416
  };
416
- const toNumber = (val) => {
417
+ /**
418
+ * "123-foo" will be parsed to 123
419
+ * This is used for the .number modifier in v-model
420
+ */
421
+ const looseToNumber = (val) => {
417
422
  const n = parseFloat(val);
418
423
  return isNaN(n) ? val : n;
419
424
  };
425
+ /**
426
+ * Only conerces number-like strings
427
+ * "123-foo" will be returned as-is
428
+ */
429
+ const toNumber = (val) => {
430
+ const n = isString(val) ? Number(val) : NaN;
431
+ return isNaN(n) ? val : n;
432
+ };
420
433
  let _globalThis;
421
434
  const getGlobalThis = () => {
422
435
  return (_globalThis ||
@@ -432,7 +445,7 @@ var Vue = (function () {
432
445
  : {}));
433
446
  };
434
447
 
435
- function warn(msg, ...args) {
448
+ function warn$1(msg, ...args) {
436
449
  console.warn(`[Vue warn] ${msg}`, ...args);
437
450
  }
438
451
 
@@ -443,7 +456,7 @@ var Vue = (function () {
443
456
  /**
444
457
  * @internal
445
458
  */
446
- this.active = true;
459
+ this._active = true;
447
460
  /**
448
461
  * @internal
449
462
  */
@@ -458,8 +471,11 @@ var Vue = (function () {
458
471
  (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
459
472
  }
460
473
  }
474
+ get active() {
475
+ return this._active;
476
+ }
461
477
  run(fn) {
462
- if (this.active) {
478
+ if (this._active) {
463
479
  const currentEffectScope = activeEffectScope;
464
480
  try {
465
481
  activeEffectScope = this;
@@ -470,7 +486,7 @@ var Vue = (function () {
470
486
  }
471
487
  }
472
488
  else {
473
- warn(`cannot run an inactive effect scope.`);
489
+ warn$1(`cannot run an inactive effect scope.`);
474
490
  }
475
491
  }
476
492
  /**
@@ -488,7 +504,7 @@ var Vue = (function () {
488
504
  activeEffectScope = this.parent;
489
505
  }
490
506
  stop(fromParent) {
491
- if (this.active) {
507
+ if (this._active) {
492
508
  let i, l;
493
509
  for (i = 0, l = this.effects.length; i < l; i++) {
494
510
  this.effects[i].stop();
@@ -511,7 +527,7 @@ var Vue = (function () {
511
527
  }
512
528
  }
513
529
  this.parent = undefined;
514
- this.active = false;
530
+ this._active = false;
515
531
  }
516
532
  }
517
533
  }
@@ -531,7 +547,7 @@ var Vue = (function () {
531
547
  activeEffectScope.cleanups.push(fn);
532
548
  }
533
549
  else {
534
- warn(`onScopeDispose() is called when there is no active effect scope` +
550
+ warn$1(`onScopeDispose() is called when there is no active effect scope` +
535
551
  ` to be associated with.`);
536
552
  }
537
553
  }
@@ -732,7 +748,7 @@ var Vue = (function () {
732
748
  deps = [...depsMap.values()];
733
749
  }
734
750
  else if (key === 'length' && isArray(target)) {
735
- const newLength = toNumber(newValue);
751
+ const newLength = Number(newValue);
736
752
  depsMap.forEach((dep, key) => {
737
753
  if (key === 'length' || key >= newLength) {
738
754
  deps.push(dep);
@@ -821,6 +837,10 @@ var Vue = (function () {
821
837
  }
822
838
  }
823
839
  }
840
+ function getDepFromReactive(object, key) {
841
+ var _a;
842
+ return (_a = targetMap.get(object)) === null || _a === void 0 ? void 0 : _a.get(key);
843
+ }
824
844
 
825
845
  const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);
826
846
  const builtInSymbols = new Set(
@@ -832,7 +852,7 @@ var Vue = (function () {
832
852
  .filter(key => key !== 'arguments' && key !== 'caller')
833
853
  .map(key => Symbol[key])
834
854
  .filter(isSymbol));
835
- const get = /*#__PURE__*/ createGetter();
855
+ const get$1 = /*#__PURE__*/ createGetter();
836
856
  const shallowGet = /*#__PURE__*/ createGetter(false, true);
837
857
  const readonlyGet = /*#__PURE__*/ createGetter(true);
838
858
  const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
@@ -866,6 +886,11 @@ var Vue = (function () {
866
886
  });
867
887
  return instrumentations;
868
888
  }
889
+ function hasOwnProperty(key) {
890
+ const obj = toRaw(this);
891
+ track(obj, "has" /* TrackOpTypes.HAS */, key);
892
+ return obj.hasOwnProperty(key);
893
+ }
869
894
  function createGetter(isReadonly = false, shallow = false) {
870
895
  return function get(target, key, receiver) {
871
896
  if (key === "__v_isReactive" /* ReactiveFlags.IS_REACTIVE */) {
@@ -889,8 +914,13 @@ var Vue = (function () {
889
914
  return target;
890
915
  }
891
916
  const targetIsArray = isArray(target);
892
- if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {
893
- return Reflect.get(arrayInstrumentations, key, receiver);
917
+ if (!isReadonly) {
918
+ if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
919
+ return Reflect.get(arrayInstrumentations, key, receiver);
920
+ }
921
+ if (key === 'hasOwnProperty') {
922
+ return hasOwnProperty;
923
+ }
894
924
  }
895
925
  const res = Reflect.get(target, key, receiver);
896
926
  if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
@@ -915,7 +945,7 @@ var Vue = (function () {
915
945
  return res;
916
946
  };
917
947
  }
918
- const set = /*#__PURE__*/ createSetter();
948
+ const set$1 = /*#__PURE__*/ createSetter();
919
949
  const shallowSet = /*#__PURE__*/ createSetter(true);
920
950
  function createSetter(shallow = false) {
921
951
  return function set(target, key, value, receiver) {
@@ -958,7 +988,7 @@ var Vue = (function () {
958
988
  }
959
989
  return result;
960
990
  }
961
- function has(target, key) {
991
+ function has$1(target, key) {
962
992
  const result = Reflect.has(target, key);
963
993
  if (!isSymbol(key) || !builtInSymbols.has(key)) {
964
994
  track(target, "has" /* TrackOpTypes.HAS */, key);
@@ -970,23 +1000,23 @@ var Vue = (function () {
970
1000
  return Reflect.ownKeys(target);
971
1001
  }
972
1002
  const mutableHandlers = {
973
- get,
974
- set,
1003
+ get: get$1,
1004
+ set: set$1,
975
1005
  deleteProperty,
976
- has,
1006
+ has: has$1,
977
1007
  ownKeys
978
1008
  };
979
1009
  const readonlyHandlers = {
980
1010
  get: readonlyGet,
981
1011
  set(target, key) {
982
1012
  {
983
- warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
1013
+ warn$1(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
984
1014
  }
985
1015
  return true;
986
1016
  },
987
1017
  deleteProperty(target, key) {
988
1018
  {
989
- warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
1019
+ warn$1(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
990
1020
  }
991
1021
  return true;
992
1022
  }
@@ -1004,7 +1034,7 @@ var Vue = (function () {
1004
1034
 
1005
1035
  const toShallow = (value) => value;
1006
1036
  const getProto = (v) => Reflect.getPrototypeOf(v);
1007
- function get$1(target, key, isReadonly = false, isShallow = false) {
1037
+ function get(target, key, isReadonly = false, isShallow = false) {
1008
1038
  // #1772: readonly(reactive(Map)) should return readonly + reactive version
1009
1039
  // of the value
1010
1040
  target = target["__v_raw" /* ReactiveFlags.RAW */];
@@ -1030,7 +1060,7 @@ var Vue = (function () {
1030
1060
  target.get(key);
1031
1061
  }
1032
1062
  }
1033
- function has$1(key, isReadonly = false) {
1063
+ function has(key, isReadonly = false) {
1034
1064
  const target = this["__v_raw" /* ReactiveFlags.RAW */];
1035
1065
  const rawTarget = toRaw(target);
1036
1066
  const rawKey = toRaw(key);
@@ -1060,7 +1090,7 @@ var Vue = (function () {
1060
1090
  }
1061
1091
  return this;
1062
1092
  }
1063
- function set$1(key, value) {
1093
+ function set(key, value) {
1064
1094
  value = toRaw(value);
1065
1095
  const target = toRaw(this);
1066
1096
  const { has, get } = getProto(target);
@@ -1173,41 +1203,41 @@ var Vue = (function () {
1173
1203
  function createInstrumentations() {
1174
1204
  const mutableInstrumentations = {
1175
1205
  get(key) {
1176
- return get$1(this, key);
1206
+ return get(this, key);
1177
1207
  },
1178
1208
  get size() {
1179
1209
  return size(this);
1180
1210
  },
1181
- has: has$1,
1211
+ has,
1182
1212
  add,
1183
- set: set$1,
1213
+ set,
1184
1214
  delete: deleteEntry,
1185
1215
  clear,
1186
1216
  forEach: createForEach(false, false)
1187
1217
  };
1188
1218
  const shallowInstrumentations = {
1189
1219
  get(key) {
1190
- return get$1(this, key, false, true);
1220
+ return get(this, key, false, true);
1191
1221
  },
1192
1222
  get size() {
1193
1223
  return size(this);
1194
1224
  },
1195
- has: has$1,
1225
+ has,
1196
1226
  add,
1197
- set: set$1,
1227
+ set,
1198
1228
  delete: deleteEntry,
1199
1229
  clear,
1200
1230
  forEach: createForEach(false, true)
1201
1231
  };
1202
1232
  const readonlyInstrumentations = {
1203
1233
  get(key) {
1204
- return get$1(this, key, true);
1234
+ return get(this, key, true);
1205
1235
  },
1206
1236
  get size() {
1207
1237
  return size(this, true);
1208
1238
  },
1209
1239
  has(key) {
1210
- return has$1.call(this, key, true);
1240
+ return has.call(this, key, true);
1211
1241
  },
1212
1242
  add: createReadonlyMethod("add" /* TriggerOpTypes.ADD */),
1213
1243
  set: createReadonlyMethod("set" /* TriggerOpTypes.SET */),
@@ -1217,13 +1247,13 @@ var Vue = (function () {
1217
1247
  };
1218
1248
  const shallowReadonlyInstrumentations = {
1219
1249
  get(key) {
1220
- return get$1(this, key, true, true);
1250
+ return get(this, key, true, true);
1221
1251
  },
1222
1252
  get size() {
1223
1253
  return size(this, true);
1224
1254
  },
1225
1255
  has(key) {
1226
- return has$1.call(this, key, true);
1256
+ return has.call(this, key, true);
1227
1257
  },
1228
1258
  add: createReadonlyMethod("add" /* TriggerOpTypes.ADD */),
1229
1259
  set: createReadonlyMethod("set" /* TriggerOpTypes.SET */),
@@ -1414,9 +1444,10 @@ var Vue = (function () {
1414
1444
  }
1415
1445
  function triggerRefValue(ref, newVal) {
1416
1446
  ref = toRaw(ref);
1417
- if (ref.dep) {
1447
+ const dep = ref.dep;
1448
+ if (dep) {
1418
1449
  {
1419
- triggerEffects(ref.dep, {
1450
+ triggerEffects(dep, {
1420
1451
  target: ref,
1421
1452
  type: "set" /* TriggerOpTypes.SET */,
1422
1453
  key: 'value',
@@ -1528,6 +1559,9 @@ var Vue = (function () {
1528
1559
  set value(newVal) {
1529
1560
  this._object[this._key] = newVal;
1530
1561
  }
1562
+ get dep() {
1563
+ return getDepFromReactive(toRaw(this._object), this._key);
1564
+ }
1531
1565
  }
1532
1566
  function toRef(object, key, defaultValue) {
1533
1567
  const val = object[key];
@@ -1569,7 +1603,7 @@ var Vue = (function () {
1569
1603
  }
1570
1604
  }
1571
1605
  _a = "__v_isReadonly" /* ReactiveFlags.IS_READONLY */;
1572
- function computed(getterOrOptions, debugOptions, isSSR = false) {
1606
+ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
1573
1607
  let getter;
1574
1608
  let setter;
1575
1609
  const onlyGetter = isFunction(getterOrOptions);
@@ -1599,7 +1633,7 @@ var Vue = (function () {
1599
1633
  function popWarningContext() {
1600
1634
  stack.pop();
1601
1635
  }
1602
- function warn$1(msg, ...args) {
1636
+ function warn(msg, ...args) {
1603
1637
  // avoid props formatting or warn handler tracking deps that might be mutated
1604
1638
  // during patch, leading to infinite recursion.
1605
1639
  pauseTracking();
@@ -1705,6 +1739,20 @@ var Vue = (function () {
1705
1739
  return raw ? value : [`${key}=`, value];
1706
1740
  }
1707
1741
  }
1742
+ /**
1743
+ * @internal
1744
+ */
1745
+ function assertNumber(val, type) {
1746
+ if (val === undefined) {
1747
+ return;
1748
+ }
1749
+ else if (typeof val !== 'number') {
1750
+ warn(`${type} is not a valid number - ` + `got ${JSON.stringify(val)}.`);
1751
+ }
1752
+ else if (isNaN(val)) {
1753
+ warn(`${type} is NaN - ` + 'the duration expression might be incorrect.');
1754
+ }
1755
+ }
1708
1756
 
1709
1757
  const ErrorTypeStrings = {
1710
1758
  ["sp" /* LifecycleHooks.SERVER_PREFETCH */]: 'serverPrefetch hook',
@@ -1798,7 +1846,7 @@ var Vue = (function () {
1798
1846
  if (contextVNode) {
1799
1847
  pushWarningContext(contextVNode);
1800
1848
  }
1801
- warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
1849
+ warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
1802
1850
  if (contextVNode) {
1803
1851
  popWarningContext();
1804
1852
  }
@@ -1994,7 +2042,7 @@ var Vue = (function () {
1994
2042
  if (count > RECURSION_LIMIT) {
1995
2043
  const instance = fn.ownerInstance;
1996
2044
  const componentName = instance && getComponentName(instance.type);
1997
- warn$1(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +
2045
+ warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +
1998
2046
  `This means you have a reactive effect that is mutating its own ` +
1999
2047
  `dependencies and thus recursively triggering itself. Possible sources ` +
2000
2048
  `include component template, render function, updated hook or ` +
@@ -2145,7 +2193,7 @@ var Vue = (function () {
2145
2193
  let devtools;
2146
2194
  let buffer = [];
2147
2195
  let devtoolsNotInstalled = false;
2148
- function emit(event, ...args) {
2196
+ function emit$2(event, ...args) {
2149
2197
  if (devtools) {
2150
2198
  devtools.emit(event, ...args);
2151
2199
  }
@@ -2192,7 +2240,7 @@ var Vue = (function () {
2192
2240
  }
2193
2241
  }
2194
2242
  function devtoolsInitApp(app, version) {
2195
- emit("app:init" /* DevtoolsHooks.APP_INIT */, app, version, {
2243
+ emit$2("app:init" /* DevtoolsHooks.APP_INIT */, app, version, {
2196
2244
  Fragment,
2197
2245
  Text,
2198
2246
  Comment,
@@ -2200,7 +2248,7 @@ var Vue = (function () {
2200
2248
  });
2201
2249
  }
2202
2250
  function devtoolsUnmountApp(app) {
2203
- emit("app:unmount" /* DevtoolsHooks.APP_UNMOUNT */, app);
2251
+ emit$2("app:unmount" /* DevtoolsHooks.APP_UNMOUNT */, app);
2204
2252
  }
2205
2253
  const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* DevtoolsHooks.COMPONENT_ADDED */);
2206
2254
  const devtoolsComponentUpdated =
@@ -2216,21 +2264,21 @@ var Vue = (function () {
2216
2264
  };
2217
2265
  function createDevtoolsComponentHook(hook) {
2218
2266
  return (component) => {
2219
- emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
2267
+ emit$2(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
2220
2268
  };
2221
2269
  }
2222
2270
  const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* DevtoolsHooks.PERFORMANCE_START */);
2223
2271
  const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* DevtoolsHooks.PERFORMANCE_END */);
2224
2272
  function createDevtoolsPerformanceHook(hook) {
2225
2273
  return (component, type, time) => {
2226
- emit(hook, component.appContext.app, component.uid, component, type, time);
2274
+ emit$2(hook, component.appContext.app, component.uid, component, type, time);
2227
2275
  };
2228
2276
  }
2229
2277
  function devtoolsComponentEmit(component, event, params) {
2230
- emit("component:emit" /* DevtoolsHooks.COMPONENT_EMIT */, component.appContext.app, component, event, params);
2278
+ emit$2("component:emit" /* DevtoolsHooks.COMPONENT_EMIT */, component.appContext.app, component, event, params);
2231
2279
  }
2232
2280
 
2233
- const deprecationData = {
2281
+ const deprecationData$1 = {
2234
2282
  ["GLOBAL_MOUNT" /* DeprecationTypes.GLOBAL_MOUNT */]: {
2235
2283
  message: `The global app bootstrapping API has changed: vm.$mount() and the "el" ` +
2236
2284
  `option have been removed. Use createApp(RootComponent).mount() instead.`,
@@ -2494,7 +2542,7 @@ var Vue = (function () {
2494
2542
  };
2495
2543
  const instanceWarned = Object.create(null);
2496
2544
  const warnCount = Object.create(null);
2497
- function warnDeprecation(key, instance, ...args) {
2545
+ function warnDeprecation$1(key, instance, ...args) {
2498
2546
  instance = instance || getCurrentInstance();
2499
2547
  // check user config
2500
2548
  const config = getCompatConfigForKey(key, instance);
@@ -2515,13 +2563,13 @@ var Vue = (function () {
2515
2563
  // same warning, but different component. skip the long message and just
2516
2564
  // log the key and count.
2517
2565
  if (dupKey in warnCount) {
2518
- warn$1(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
2566
+ warn(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
2519
2567
  return;
2520
2568
  }
2521
2569
  warnCount[dupKey] = 0;
2522
- const { message, link } = deprecationData[key];
2523
- warn$1(`(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`);
2524
- if (!isCompatEnabled(key, instance, true)) {
2570
+ const { message, link } = deprecationData$1[key];
2571
+ warn(`(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`);
2572
+ if (!isCompatEnabled$1(key, instance, true)) {
2525
2573
  console.error(`^ The above deprecation's compat behavior is disabled and will likely ` +
2526
2574
  `lead to runtime errors.`);
2527
2575
  }
@@ -2545,24 +2593,24 @@ var Vue = (function () {
2545
2593
  seenConfigObjects.add(config);
2546
2594
  for (const key of Object.keys(config)) {
2547
2595
  if (key !== 'MODE' &&
2548
- !(key in deprecationData) &&
2596
+ !(key in deprecationData$1) &&
2549
2597
  !(key in warnedInvalidKeys)) {
2550
2598
  if (key.startsWith('COMPILER_')) {
2551
2599
  if (isRuntimeOnly()) {
2552
- warn$1(`Deprecation config "${key}" is compiler-specific and you are ` +
2600
+ warn(`Deprecation config "${key}" is compiler-specific and you are ` +
2553
2601
  `running a runtime-only build of Vue. This deprecation should be ` +
2554
2602
  `configured via compiler options in your build setup instead.\n` +
2555
2603
  `Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`);
2556
2604
  }
2557
2605
  }
2558
2606
  else {
2559
- warn$1(`Invalid deprecation config "${key}".`);
2607
+ warn(`Invalid deprecation config "${key}".`);
2560
2608
  }
2561
2609
  warnedInvalidKeys[key] = true;
2562
2610
  }
2563
2611
  }
2564
2612
  if (instance && config["OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */] != null) {
2565
- warn$1(`Deprecation config "${"OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */}" can only be configured globally.`);
2613
+ warn(`Deprecation config "${"OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */}" can only be configured globally.`);
2566
2614
  }
2567
2615
  }
2568
2616
  function getCompatConfigForKey(key, instance) {
@@ -2572,7 +2620,7 @@ var Vue = (function () {
2572
2620
  }
2573
2621
  return globalCompatConfig[key];
2574
2622
  }
2575
- function isCompatEnabled(key, instance, enableForBuiltIn = false) {
2623
+ function isCompatEnabled$1(key, instance, enableForBuiltIn = false) {
2576
2624
  // skip compat for built-in components
2577
2625
  if (!enableForBuiltIn && instance && instance.type.__isBuiltIn) {
2578
2626
  return false;
@@ -2593,11 +2641,11 @@ var Vue = (function () {
2593
2641
  * Use this for features that are completely removed in non-compat build.
2594
2642
  */
2595
2643
  function assertCompatEnabled(key, instance, ...args) {
2596
- if (!isCompatEnabled(key, instance)) {
2644
+ if (!isCompatEnabled$1(key, instance)) {
2597
2645
  throw new Error(`${key} compat has been disabled.`);
2598
2646
  }
2599
2647
  else {
2600
- warnDeprecation(key, instance, ...args);
2648
+ warnDeprecation$1(key, instance, ...args);
2601
2649
  }
2602
2650
  }
2603
2651
  /**
@@ -2606,19 +2654,19 @@ var Vue = (function () {
2606
2654
  */
2607
2655
  function softAssertCompatEnabled(key, instance, ...args) {
2608
2656
  {
2609
- warnDeprecation(key, instance, ...args);
2657
+ warnDeprecation$1(key, instance, ...args);
2610
2658
  }
2611
- return isCompatEnabled(key, instance);
2659
+ return isCompatEnabled$1(key, instance);
2612
2660
  }
2613
2661
  /**
2614
2662
  * Use this for features with the same syntax but with mutually exclusive
2615
2663
  * behavior in 2 vs 3. Only warn if compat is enabled.
2616
2664
  * e.g. render function
2617
2665
  */
2618
- function checkCompatEnabled(key, instance, ...args) {
2619
- const enabled = isCompatEnabled(key, instance);
2666
+ function checkCompatEnabled$1(key, instance, ...args) {
2667
+ const enabled = isCompatEnabled$1(key, instance);
2620
2668
  if (enabled) {
2621
- warnDeprecation(key, instance, ...args);
2669
+ warnDeprecation$1(key, instance, ...args);
2622
2670
  }
2623
2671
  return enabled;
2624
2672
  }
@@ -2696,7 +2744,7 @@ var Vue = (function () {
2696
2744
  const { type, shapeFlag, props, dynamicProps } = vnode;
2697
2745
  const comp = type;
2698
2746
  if (shapeFlag & 6 /* ShapeFlags.COMPONENT */ && props && 'modelValue' in props) {
2699
- if (!isCompatEnabled("COMPONENT_V_MODEL" /* DeprecationTypes.COMPONENT_V_MODEL */,
2747
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL" /* DeprecationTypes.COMPONENT_V_MODEL */,
2700
2748
  // this is a special case where we want to use the vnode component's
2701
2749
  // compat config instead of the current rendering instance (which is the
2702
2750
  // parent of the component that exposes v-model)
@@ -2705,7 +2753,7 @@ var Vue = (function () {
2705
2753
  }
2706
2754
  if (!warnedTypes.has(comp)) {
2707
2755
  pushWarningContext(vnode);
2708
- warnDeprecation("COMPONENT_V_MODEL" /* DeprecationTypes.COMPONENT_V_MODEL */, { type }, comp);
2756
+ warnDeprecation$1("COMPONENT_V_MODEL" /* DeprecationTypes.COMPONENT_V_MODEL */, { type }, comp);
2709
2757
  popWarningContext();
2710
2758
  warnedTypes.add(comp);
2711
2759
  }
@@ -2738,7 +2786,7 @@ var Vue = (function () {
2738
2786
  }
2739
2787
  }
2740
2788
  function compatModelEmit(instance, event, args) {
2741
- if (!isCompatEnabled("COMPONENT_V_MODEL" /* DeprecationTypes.COMPONENT_V_MODEL */, instance)) {
2789
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL" /* DeprecationTypes.COMPONENT_V_MODEL */, instance)) {
2742
2790
  return;
2743
2791
  }
2744
2792
  const props = instance.vnode.props;
@@ -2748,7 +2796,7 @@ var Vue = (function () {
2748
2796
  }
2749
2797
  }
2750
2798
 
2751
- function emit$2(instance, event, ...rawArgs) {
2799
+ function emit(instance, event, ...rawArgs) {
2752
2800
  if (instance.isUnmounted)
2753
2801
  return;
2754
2802
  const props = instance.vnode.props || EMPTY_OBJ;
@@ -2759,7 +2807,7 @@ var Vue = (function () {
2759
2807
  !((event.startsWith('hook:') ||
2760
2808
  event.startsWith(compatModelEventPrefix)))) {
2761
2809
  if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
2762
- warn$1(`Component emitted event "${event}" but it is neither declared in ` +
2810
+ warn(`Component emitted event "${event}" but it is neither declared in ` +
2763
2811
  `the emits option nor as an "${toHandlerKey(event)}" prop.`);
2764
2812
  }
2765
2813
  }
@@ -2768,7 +2816,7 @@ var Vue = (function () {
2768
2816
  if (isFunction(validator)) {
2769
2817
  const isValid = validator(...rawArgs);
2770
2818
  if (!isValid) {
2771
- warn$1(`Invalid event arguments: event validation failed for event "${event}".`);
2819
+ warn(`Invalid event arguments: event validation failed for event "${event}".`);
2772
2820
  }
2773
2821
  }
2774
2822
  }
@@ -2785,7 +2833,7 @@ var Vue = (function () {
2785
2833
  args = rawArgs.map(a => (isString(a) ? a.trim() : a));
2786
2834
  }
2787
2835
  if (number) {
2788
- args = rawArgs.map(toNumber);
2836
+ args = rawArgs.map(looseToNumber);
2789
2837
  }
2790
2838
  }
2791
2839
  {
@@ -2794,7 +2842,7 @@ var Vue = (function () {
2794
2842
  {
2795
2843
  const lowerCaseEvent = event.toLowerCase();
2796
2844
  if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
2797
- warn$1(`Event "${lowerCaseEvent}" is emitted in component ` +
2845
+ warn(`Event "${lowerCaseEvent}" is emitted in component ` +
2798
2846
  `${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". ` +
2799
2847
  `Note that HTML attributes are case-insensitive and you cannot use ` +
2800
2848
  `v-on to listen to camelCase events when using in-DOM templates. ` +
@@ -3084,13 +3132,13 @@ var Vue = (function () {
3084
3132
  }
3085
3133
  }
3086
3134
  if (extraAttrs.length) {
3087
- warn$1(`Extraneous non-props attributes (` +
3135
+ warn(`Extraneous non-props attributes (` +
3088
3136
  `${extraAttrs.join(', ')}) ` +
3089
3137
  `were passed to component but could not be automatically inherited ` +
3090
3138
  `because component renders fragment or text root nodes.`);
3091
3139
  }
3092
3140
  if (eventAttrs.length) {
3093
- warn$1(`Extraneous non-emits event listeners (` +
3141
+ warn(`Extraneous non-emits event listeners (` +
3094
3142
  `${eventAttrs.join(', ')}) ` +
3095
3143
  `were passed to component but could not be automatically inherited ` +
3096
3144
  `because component renders fragment or text root nodes. ` +
@@ -3100,13 +3148,13 @@ var Vue = (function () {
3100
3148
  }
3101
3149
  }
3102
3150
  }
3103
- if (isCompatEnabled("INSTANCE_ATTRS_CLASS_STYLE" /* DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE */, instance) &&
3151
+ if (isCompatEnabled$1("INSTANCE_ATTRS_CLASS_STYLE" /* DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE */, instance) &&
3104
3152
  vnode.shapeFlag & 4 /* ShapeFlags.STATEFUL_COMPONENT */ &&
3105
3153
  root.shapeFlag & (1 /* ShapeFlags.ELEMENT */ | 6 /* ShapeFlags.COMPONENT */)) {
3106
3154
  const { class: cls, style } = vnode.props || {};
3107
3155
  if (cls || style) {
3108
3156
  if (inheritAttrs === false) {
3109
- warnDeprecation("INSTANCE_ATTRS_CLASS_STYLE" /* DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE */, instance, getComponentName(instance.type));
3157
+ warnDeprecation$1("INSTANCE_ATTRS_CLASS_STYLE" /* DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE */, instance, getComponentName(instance.type));
3110
3158
  }
3111
3159
  root = cloneVNode(root, {
3112
3160
  class: cls,
@@ -3117,7 +3165,7 @@ var Vue = (function () {
3117
3165
  // inherit directives
3118
3166
  if (vnode.dirs) {
3119
3167
  if (!isElementRoot(root)) {
3120
- warn$1(`Runtime directive used on component with non-element root node. ` +
3168
+ warn(`Runtime directive used on component with non-element root node. ` +
3121
3169
  `The directives will not function as intended.`);
3122
3170
  }
3123
3171
  // clone before mutating since the root may be a hoisted vnode
@@ -3127,7 +3175,7 @@ var Vue = (function () {
3127
3175
  // inherit transition data
3128
3176
  if (vnode.transition) {
3129
3177
  if (!isElementRoot(root)) {
3130
- warn$1(`Component inside <Transition> renders non-element root node ` +
3178
+ warn(`Component inside <Transition> renders non-element root node ` +
3131
3179
  `that cannot be animated.`);
3132
3180
  }
3133
3181
  root.transition = vnode.transition;
@@ -3462,7 +3510,10 @@ var Vue = (function () {
3462
3510
  console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);
3463
3511
  }
3464
3512
  const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
3465
- const timeout = toNumber(vnode.props && vnode.props.timeout);
3513
+ const timeout = vnode.props ? toNumber(vnode.props.timeout) : undefined;
3514
+ {
3515
+ assertNumber(timeout, `Suspense timeout`);
3516
+ }
3466
3517
  const suspense = {
3467
3518
  vnode,
3468
3519
  parent,
@@ -3690,7 +3741,7 @@ var Vue = (function () {
3690
3741
  if (isArray(s)) {
3691
3742
  const singleChild = filterSingleRoot(s);
3692
3743
  if (!singleChild) {
3693
- warn$1(`<Suspense> slots expect a single root node.`);
3744
+ warn(`<Suspense> slots expect a single root node.`);
3694
3745
  }
3695
3746
  s = singleChild;
3696
3747
  }
@@ -3728,7 +3779,7 @@ var Vue = (function () {
3728
3779
  function provide(key, value) {
3729
3780
  if (!currentInstance) {
3730
3781
  {
3731
- warn$1(`provide() can only be used inside setup().`);
3782
+ warn(`provide() can only be used inside setup().`);
3732
3783
  }
3733
3784
  }
3734
3785
  else {
@@ -3767,11 +3818,11 @@ var Vue = (function () {
3767
3818
  : defaultValue;
3768
3819
  }
3769
3820
  else {
3770
- warn$1(`injection "${String(key)}" not found.`);
3821
+ warn(`injection "${String(key)}" not found.`);
3771
3822
  }
3772
3823
  }
3773
3824
  else {
3774
- warn$1(`inject() can only be used inside setup() or functional components.`);
3825
+ warn(`inject() can only be used inside setup() or functional components.`);
3775
3826
  }
3776
3827
  }
3777
3828
 
@@ -3780,17 +3831,17 @@ var Vue = (function () {
3780
3831
  return doWatch(effect, null, options);
3781
3832
  }
3782
3833
  function watchPostEffect(effect, options) {
3783
- return doWatch(effect, null, (Object.assign(Object.assign({}, options), { flush: 'post' }) ));
3834
+ return doWatch(effect, null, Object.assign(Object.assign({}, options), { flush: 'post' }) );
3784
3835
  }
3785
3836
  function watchSyncEffect(effect, options) {
3786
- return doWatch(effect, null, (Object.assign(Object.assign({}, options), { flush: 'sync' }) ));
3837
+ return doWatch(effect, null, Object.assign(Object.assign({}, options), { flush: 'sync' }) );
3787
3838
  }
3788
3839
  // initial value for watchers to trigger on undefined initial values
3789
3840
  const INITIAL_WATCHER_VALUE = {};
3790
3841
  // implementation
3791
3842
  function watch(source, cb, options) {
3792
3843
  if (!isFunction(cb)) {
3793
- warn$1(`\`watch(fn, options?)\` signature has been moved to a separate API. ` +
3844
+ warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` +
3794
3845
  `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` +
3795
3846
  `supports \`watch(source, cb, options?) signature.`);
3796
3847
  }
@@ -3799,19 +3850,20 @@ var Vue = (function () {
3799
3850
  function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
3800
3851
  if (!cb) {
3801
3852
  if (immediate !== undefined) {
3802
- warn$1(`watch() "immediate" option is only respected when using the ` +
3853
+ warn(`watch() "immediate" option is only respected when using the ` +
3803
3854
  `watch(source, callback, options?) signature.`);
3804
3855
  }
3805
3856
  if (deep !== undefined) {
3806
- warn$1(`watch() "deep" option is only respected when using the ` +
3857
+ warn(`watch() "deep" option is only respected when using the ` +
3807
3858
  `watch(source, callback, options?) signature.`);
3808
3859
  }
3809
3860
  }
3810
3861
  const warnInvalidSource = (s) => {
3811
- warn$1(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +
3862
+ warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +
3812
3863
  `a reactive object, or an array of these types.`);
3813
3864
  };
3814
- const instance = currentInstance;
3865
+ const instance = getCurrentScope() === (currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.scope) ? currentInstance : null;
3866
+ // const instance = currentInstance
3815
3867
  let getter;
3816
3868
  let forceTrigger = false;
3817
3869
  let isMultiSource = false;
@@ -3869,7 +3921,7 @@ var Vue = (function () {
3869
3921
  getter = () => {
3870
3922
  const val = baseGetter();
3871
3923
  if (isArray(val) &&
3872
- checkCompatEnabled("WATCH_ARRAY" /* DeprecationTypes.WATCH_ARRAY */, instance)) {
3924
+ checkCompatEnabled$1("WATCH_ARRAY" /* DeprecationTypes.WATCH_ARRAY */, instance)) {
3873
3925
  traverse(val);
3874
3926
  }
3875
3927
  return val;
@@ -3901,7 +3953,7 @@ var Vue = (function () {
3901
3953
  ? newValue.some((v, i) => hasChanged(v, oldValue[i]))
3902
3954
  : hasChanged(newValue, oldValue)) ||
3903
3955
  (isArray(newValue) &&
3904
- isCompatEnabled("WATCH_ARRAY" /* DeprecationTypes.WATCH_ARRAY */, instance))) {
3956
+ isCompatEnabled$1("WATCH_ARRAY" /* DeprecationTypes.WATCH_ARRAY */, instance))) {
3905
3957
  // cleanup before running cb again
3906
3958
  if (cleanup) {
3907
3959
  cleanup();
@@ -3911,7 +3963,7 @@ var Vue = (function () {
3911
3963
  // pass undefined as the old value when it's changed for the first time
3912
3964
  oldValue === INITIAL_WATCHER_VALUE
3913
3965
  ? undefined
3914
- : (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3966
+ : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE
3915
3967
  ? []
3916
3968
  : oldValue,
3917
3969
  onCleanup
@@ -4091,7 +4143,7 @@ var Vue = (function () {
4091
4143
  if (c.type !== Comment) {
4092
4144
  if (hasFound) {
4093
4145
  // warn more than one non-comment child
4094
- warn$1('<transition> can only be used on a single element or component. ' +
4146
+ warn('<transition> can only be used on a single element or component. ' +
4095
4147
  'Use <transition-group> for lists.');
4096
4148
  break;
4097
4149
  }
@@ -4109,7 +4161,7 @@ var Vue = (function () {
4109
4161
  mode !== 'in-out' &&
4110
4162
  mode !== 'out-in' &&
4111
4163
  mode !== 'default') {
4112
- warn$1(`invalid <transition> mode: ${mode}`);
4164
+ warn(`invalid <transition> mode: ${mode}`);
4113
4165
  }
4114
4166
  if (state.isLeaving) {
4115
4167
  return emptyPlaceholder(child);
@@ -4420,7 +4472,7 @@ var Vue = (function () {
4420
4472
  return pendingRequest;
4421
4473
  }
4422
4474
  if (!comp) {
4423
- warn$1(`Async component loader resolved to undefined. ` +
4475
+ warn(`Async component loader resolved to undefined. ` +
4424
4476
  `If you are using retry(), make sure to return its return value.`);
4425
4477
  }
4426
4478
  // interop module default
@@ -4607,7 +4659,7 @@ var Vue = (function () {
4607
4659
  }
4608
4660
  function pruneCacheEntry(key) {
4609
4661
  const cached = cache.get(key);
4610
- if (!current || cached.type !== current.type) {
4662
+ if (!current || !isSameVNodeType(cached, current)) {
4611
4663
  unmount(cached);
4612
4664
  }
4613
4665
  else if (current) {
@@ -4639,7 +4691,7 @@ var Vue = (function () {
4639
4691
  cache.forEach(cached => {
4640
4692
  const { subTree, suspense } = instance;
4641
4693
  const vnode = getInnerChild(subTree);
4642
- if (cached.type === vnode.type) {
4694
+ if (cached.type === vnode.type && cached.key === vnode.key) {
4643
4695
  // current instance will be unmounted as part of keep-alive's unmount
4644
4696
  resetShapeFlag(vnode);
4645
4697
  // but invoke its deactivated hook here
@@ -4659,7 +4711,7 @@ var Vue = (function () {
4659
4711
  const rawVNode = children[0];
4660
4712
  if (children.length > 1) {
4661
4713
  {
4662
- warn$1(`KeepAlive should contain exactly one component child.`);
4714
+ warn(`KeepAlive should contain exactly one component child.`);
4663
4715
  }
4664
4716
  current = null;
4665
4717
  return children;
@@ -4739,7 +4791,7 @@ var Vue = (function () {
4739
4791
  else if (isString(pattern)) {
4740
4792
  return pattern.split(',').includes(name);
4741
4793
  }
4742
- else if (pattern.test) {
4794
+ else if (isRegExp(pattern)) {
4743
4795
  return pattern.test(name);
4744
4796
  }
4745
4797
  /* istanbul ignore next */
@@ -4833,7 +4885,7 @@ var Vue = (function () {
4833
4885
  }
4834
4886
  else {
4835
4887
  const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ''));
4836
- warn$1(`${apiName} is called when there is no active component instance to be ` +
4888
+ warn(`${apiName} is called when there is no active component instance to be ` +
4837
4889
  `associated with. ` +
4838
4890
  `Lifecycle injection APIs can only be used during execution of setup().` +
4839
4891
  (` If you are using async setup(), make sure to register lifecycle ` +
@@ -4863,18 +4915,18 @@ var Vue = (function () {
4863
4915
  const root = instance.subTree;
4864
4916
  const children = [];
4865
4917
  if (root) {
4866
- walk(root, children);
4918
+ walk$1(root, children);
4867
4919
  }
4868
4920
  return children;
4869
4921
  }
4870
- function walk(vnode, children) {
4922
+ function walk$1(vnode, children) {
4871
4923
  if (vnode.component) {
4872
4924
  children.push(vnode.component.proxy);
4873
4925
  }
4874
4926
  else if (vnode.shapeFlag & 16 /* ShapeFlags.ARRAY_CHILDREN */) {
4875
4927
  const vnodes = vnode.children;
4876
4928
  for (let i = 0; i < vnodes.length; i++) {
4877
- walk(vnodes[i], children);
4929
+ walk$1(vnodes[i], children);
4878
4930
  }
4879
4931
  }
4880
4932
  }
@@ -4937,7 +4989,7 @@ var Vue = (function () {
4937
4989
  */
4938
4990
  function validateDirectiveName(name) {
4939
4991
  if (isBuiltInDirective(name)) {
4940
- warn$1('Do not use built-in directive ids as custom directive id: ' + name);
4992
+ warn('Do not use built-in directive ids as custom directive id: ' + name);
4941
4993
  }
4942
4994
  }
4943
4995
  /**
@@ -4946,7 +4998,7 @@ var Vue = (function () {
4946
4998
  function withDirectives(vnode, directives) {
4947
4999
  const internalInstance = currentRenderingInstance;
4948
5000
  if (internalInstance === null) {
4949
- warn$1(`withDirectives can only be used inside render functions.`);
5001
+ warn(`withDirectives can only be used inside render functions.`);
4950
5002
  return vnode;
4951
5003
  }
4952
5004
  const instance = getExposeProxy(internalInstance) ||
@@ -5035,7 +5087,7 @@ var Vue = (function () {
5035
5087
  * v2 compat only
5036
5088
  * @internal
5037
5089
  */
5038
- function resolveFilter(name) {
5090
+ function resolveFilter$1(name) {
5039
5091
  return resolveAsset(FILTERS, name);
5040
5092
  }
5041
5093
  // implementation
@@ -5068,12 +5120,12 @@ var Vue = (function () {
5068
5120
  ? `\nIf this is a native custom element, make sure to exclude it from ` +
5069
5121
  `component resolution via compilerOptions.isCustomElement.`
5070
5122
  : ``;
5071
- warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
5123
+ warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
5072
5124
  }
5073
5125
  return res;
5074
5126
  }
5075
5127
  else {
5076
- warn$1(`resolve${capitalize(type.slice(0, -1))} ` +
5128
+ warn(`resolve${capitalize(type.slice(0, -1))} ` +
5077
5129
  `can only be used in render() or setup().`);
5078
5130
  }
5079
5131
  }
@@ -5099,7 +5151,7 @@ var Vue = (function () {
5099
5151
  return;
5100
5152
  }
5101
5153
  // v2 render function, try to provide compat
5102
- if (checkCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance)) {
5154
+ if (checkCompatEnabled$1("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance)) {
5103
5155
  const wrapped = (Component.render = function compatRender() {
5104
5156
  // @ts-ignore
5105
5157
  return render.call(this, compatH);
@@ -5260,8 +5312,8 @@ var Vue = (function () {
5260
5312
  }
5261
5313
  function defineLegacyVNodeProperties(vnode) {
5262
5314
  /* istanbul ignore if */
5263
- if (isCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, currentRenderingInstance, true /* enable for built-ins */) &&
5264
- isCompatEnabled("PRIVATE_APIS" /* DeprecationTypes.PRIVATE_APIS */, currentRenderingInstance, true /* enable for built-ins */)) {
5315
+ if (isCompatEnabled$1("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, currentRenderingInstance, true /* enable for built-ins */) &&
5316
+ isCompatEnabled$1("PRIVATE_APIS" /* DeprecationTypes.PRIVATE_APIS */, currentRenderingInstance, true /* enable for built-ins */)) {
5265
5317
  const context = currentRenderingInstance;
5266
5318
  const getInstance = () => vnode.component && vnode.component.proxy;
5267
5319
  let componentOptions;
@@ -5351,7 +5403,7 @@ var Vue = (function () {
5351
5403
  }
5352
5404
  else if (typeof source === 'number') {
5353
5405
  if (!Number.isInteger(source)) {
5354
- warn$1(`The v-for range expect an integer value but got ${source}.`);
5406
+ warn(`The v-for range expect an integer value but got ${source}.`);
5355
5407
  }
5356
5408
  ret = new Array(source);
5357
5409
  for (let i = 0; i < source; i++) {
@@ -5428,7 +5480,7 @@ var Vue = (function () {
5428
5480
  }
5429
5481
  let slot = slots[name];
5430
5482
  if (slot && slot.length > 1) {
5431
- warn$1(`SSR-optimized slot function detected in a non-SSR-optimized render ` +
5483
+ warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +
5432
5484
  `function. You need to mark this component with $dynamic-slots in the ` +
5433
5485
  `parent template.`);
5434
5486
  slot = () => [];
@@ -5481,7 +5533,7 @@ var Vue = (function () {
5481
5533
  function toHandlers(obj, preserveCaseIfNecessary) {
5482
5534
  const ret = {};
5483
5535
  if (!isObject(obj)) {
5484
- warn$1(`v-on with no argument expects an object value.`);
5536
+ warn(`v-on with no argument expects an object value.`);
5485
5537
  return ret;
5486
5538
  }
5487
5539
  for (const key in obj) {
@@ -5642,7 +5694,7 @@ var Vue = (function () {
5642
5694
  },
5643
5695
  // overrides existing accessor
5644
5696
  $slots: i => {
5645
- if (isCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, i) &&
5697
+ if (isCompatEnabled$1("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, i) &&
5646
5698
  i.render &&
5647
5699
  i.render._compatWrapped) {
5648
5700
  return new Proxy(i.slots, legacySlotProxyHandlers);
@@ -5667,7 +5719,7 @@ var Vue = (function () {
5667
5719
  $listeners: getCompatListeners
5668
5720
  });
5669
5721
  /* istanbul ignore if */
5670
- if (isCompatEnabled("PRIVATE_APIS" /* DeprecationTypes.PRIVATE_APIS */, null)) {
5722
+ if (isCompatEnabled$1("PRIVATE_APIS" /* DeprecationTypes.PRIVATE_APIS */, null)) {
5671
5723
  extend(map, {
5672
5724
  // needed by many libs / render fns
5673
5725
  $vnode: i => i.vnode,
@@ -5689,14 +5741,14 @@ var Vue = (function () {
5689
5741
  $createElement: () => compatH,
5690
5742
  _c: () => compatH,
5691
5743
  _o: () => legacyMarkOnce,
5692
- _n: () => toNumber,
5744
+ _n: () => looseToNumber,
5693
5745
  _s: () => toDisplayString,
5694
5746
  _l: () => renderList,
5695
5747
  _t: i => legacyRenderSlot.bind(null, i),
5696
5748
  _q: () => looseEqual,
5697
5749
  _i: () => looseIndexOf,
5698
5750
  _m: i => legacyRenderStatic.bind(null, i),
5699
- _f: () => resolveFilter,
5751
+ _f: () => resolveFilter$1,
5700
5752
  _k: i => legacyCheckKeyCodes.bind(null, i),
5701
5753
  _b: () => legacyBindObjectProps,
5702
5754
  _v: () => createTextVNode,
@@ -5842,11 +5894,11 @@ var Vue = (function () {
5842
5894
  // to infinite warning loop
5843
5895
  key.indexOf('__v') !== 0)) {
5844
5896
  if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
5845
- warn$1(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +
5897
+ warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +
5846
5898
  `character ("$" or "_") and is not proxied on the render context.`);
5847
5899
  }
5848
5900
  else if (instance === currentRenderingInstance) {
5849
- warn$1(`Property ${JSON.stringify(key)} was accessed during render ` +
5901
+ warn(`Property ${JSON.stringify(key)} was accessed during render ` +
5850
5902
  `but is not defined on instance.`);
5851
5903
  }
5852
5904
  }
@@ -5859,7 +5911,7 @@ var Vue = (function () {
5859
5911
  }
5860
5912
  else if (setupState.__isScriptSetup &&
5861
5913
  hasOwn(setupState, key)) {
5862
- warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
5914
+ warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
5863
5915
  return false;
5864
5916
  }
5865
5917
  else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
@@ -5867,11 +5919,11 @@ var Vue = (function () {
5867
5919
  return true;
5868
5920
  }
5869
5921
  else if (hasOwn(instance.props, key)) {
5870
- warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
5922
+ warn(`Attempting to mutate prop "${key}". Props are readonly.`);
5871
5923
  return false;
5872
5924
  }
5873
5925
  if (key[0] === '$' && key.slice(1) in instance) {
5874
- warn$1(`Attempting to mutate public property "${key}". ` +
5926
+ warn(`Attempting to mutate public property "${key}". ` +
5875
5927
  `Properties starting with $ are reserved and readonly.`);
5876
5928
  return false;
5877
5929
  }
@@ -5912,7 +5964,7 @@ var Vue = (function () {
5912
5964
  };
5913
5965
  {
5914
5966
  PublicInstanceProxyHandlers.ownKeys = (target) => {
5915
- warn$1(`Avoid app logic that relies on enumerating keys on a component instance. ` +
5967
+ warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +
5916
5968
  `The keys will be empty in production mode to avoid performance overhead.`);
5917
5969
  return Reflect.ownKeys(target);
5918
5970
  };
@@ -5928,7 +5980,7 @@ var Vue = (function () {
5928
5980
  has(_, key) {
5929
5981
  const has = key[0] !== '_' && !isGloballyWhitelisted(key);
5930
5982
  if (!has && PublicInstanceProxyHandlers.has(_, key)) {
5931
- warn$1(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);
5983
+ warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);
5932
5984
  }
5933
5985
  return has;
5934
5986
  }
@@ -5978,7 +6030,7 @@ var Vue = (function () {
5978
6030
  Object.keys(toRaw(setupState)).forEach(key => {
5979
6031
  if (!setupState.__isScriptSetup) {
5980
6032
  if (isReservedPrefix(key[0])) {
5981
- warn$1(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` +
6033
+ warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` +
5982
6034
  `which are reserved prefixes for Vue internals.`);
5983
6035
  return;
5984
6036
  }
@@ -5997,7 +6049,7 @@ var Vue = (function () {
5997
6049
  const toVal = to[key];
5998
6050
  const fromVal = from[key];
5999
6051
  if (key in to && isPlainObject(toVal) && isPlainObject(fromVal)) {
6000
- warnDeprecation("OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */, null, key);
6052
+ warnDeprecation$1("OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */, null, key);
6001
6053
  deepMergeData(toVal, fromVal);
6002
6054
  }
6003
6055
  else {
@@ -6011,7 +6063,7 @@ var Vue = (function () {
6011
6063
  const cache = Object.create(null);
6012
6064
  return (type, key) => {
6013
6065
  if (cache[key]) {
6014
- warn$1(`${type} property "${key}" is already defined in ${cache[key]}.`);
6066
+ warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
6015
6067
  }
6016
6068
  else {
6017
6069
  cache[key] = type;
@@ -6028,7 +6080,7 @@ var Vue = (function () {
6028
6080
  // call beforeCreate first before accessing other options since
6029
6081
  // the hook may mutate resolved options (#2791)
6030
6082
  if (options.beforeCreate) {
6031
- callHook(options.beforeCreate, instance, "bc" /* LifecycleHooks.BEFORE_CREATE */);
6083
+ callHook$1(options.beforeCreate, instance, "bc" /* LifecycleHooks.BEFORE_CREATE */);
6032
6084
  }
6033
6085
  const {
6034
6086
  // state
@@ -6078,24 +6130,24 @@ var Vue = (function () {
6078
6130
  }
6079
6131
  }
6080
6132
  else {
6081
- warn$1(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` +
6133
+ warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` +
6082
6134
  `Did you reference the function correctly?`);
6083
6135
  }
6084
6136
  }
6085
6137
  }
6086
6138
  if (dataOptions) {
6087
6139
  if (!isFunction(dataOptions)) {
6088
- warn$1(`The data option must be a function. ` +
6140
+ warn(`The data option must be a function. ` +
6089
6141
  `Plain object usage is no longer supported.`);
6090
6142
  }
6091
6143
  const data = dataOptions.call(publicThis, publicThis);
6092
6144
  if (isPromise(data)) {
6093
- warn$1(`data() returned a Promise - note data() cannot be async; If you ` +
6145
+ warn(`data() returned a Promise - note data() cannot be async; If you ` +
6094
6146
  `intend to perform data fetching before component renders, use ` +
6095
6147
  `async setup() + <Suspense>.`);
6096
6148
  }
6097
6149
  if (!isObject(data)) {
6098
- warn$1(`data() should return an object.`);
6150
+ warn(`data() should return an object.`);
6099
6151
  }
6100
6152
  else {
6101
6153
  instance.data = reactive(data);
@@ -6126,15 +6178,15 @@ var Vue = (function () {
6126
6178
  ? opt.get.bind(publicThis, publicThis)
6127
6179
  : NOOP;
6128
6180
  if (get === NOOP) {
6129
- warn$1(`Computed property "${key}" has no getter.`);
6181
+ warn(`Computed property "${key}" has no getter.`);
6130
6182
  }
6131
6183
  const set = !isFunction(opt) && isFunction(opt.set)
6132
6184
  ? opt.set.bind(publicThis)
6133
6185
  : () => {
6134
- warn$1(`Write operation failed: computed property "${key}" is readonly.`);
6186
+ warn(`Write operation failed: computed property "${key}" is readonly.`);
6135
6187
  }
6136
6188
  ;
6137
- const c = computed$1({
6189
+ const c = computed({
6138
6190
  get,
6139
6191
  set
6140
6192
  });
@@ -6163,7 +6215,7 @@ var Vue = (function () {
6163
6215
  });
6164
6216
  }
6165
6217
  if (created) {
6166
- callHook(created, instance, "c" /* LifecycleHooks.CREATED */);
6218
+ callHook$1(created, instance, "c" /* LifecycleHooks.CREATED */);
6167
6219
  }
6168
6220
  function registerLifecycleHook(register, hook) {
6169
6221
  if (isArray(hook)) {
@@ -6223,7 +6275,7 @@ var Vue = (function () {
6223
6275
  if (directives)
6224
6276
  instance.directives = directives;
6225
6277
  if (filters &&
6226
- isCompatEnabled("FILTERS" /* DeprecationTypes.FILTERS */, instance)) {
6278
+ isCompatEnabled$1("FILTERS" /* DeprecationTypes.FILTERS */, instance)) {
6227
6279
  instance.filters = filters;
6228
6280
  }
6229
6281
  }
@@ -6257,7 +6309,7 @@ var Vue = (function () {
6257
6309
  }
6258
6310
  else {
6259
6311
  {
6260
- warn$1(`injected property "${key}" is a ref and will be auto-unwrapped ` +
6312
+ warn(`injected property "${key}" is a ref and will be auto-unwrapped ` +
6261
6313
  `and no longer needs \`.value\` in the next minor release. ` +
6262
6314
  `To opt-in to the new behavior now, ` +
6263
6315
  `set \`app.config.unwrapInjectedRef = true\` (this config is ` +
@@ -6274,7 +6326,7 @@ var Vue = (function () {
6274
6326
  }
6275
6327
  }
6276
6328
  }
6277
- function callHook(hook, instance, type) {
6329
+ function callHook$1(hook, instance, type) {
6278
6330
  callWithAsyncErrorHandling(isArray(hook)
6279
6331
  ? hook.map(h => h.bind(instance.proxy))
6280
6332
  : hook.bind(instance.proxy), instance, type);
@@ -6289,7 +6341,7 @@ var Vue = (function () {
6289
6341
  watch(getter, handler);
6290
6342
  }
6291
6343
  else {
6292
- warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
6344
+ warn(`Invalid watch handler specified by key "${raw}"`, handler);
6293
6345
  }
6294
6346
  }
6295
6347
  else if (isFunction(raw)) {
@@ -6307,12 +6359,12 @@ var Vue = (function () {
6307
6359
  watch(getter, handler, raw);
6308
6360
  }
6309
6361
  else {
6310
- warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
6362
+ warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
6311
6363
  }
6312
6364
  }
6313
6365
  }
6314
6366
  else {
6315
- warn$1(`Invalid watch option: "${key}"`, raw);
6367
+ warn(`Invalid watch option: "${key}"`, raw);
6316
6368
  }
6317
6369
  }
6318
6370
  /**
@@ -6330,7 +6382,7 @@ var Vue = (function () {
6330
6382
  resolved = cached;
6331
6383
  }
6332
6384
  else if (!globalMixins.length && !mixins && !extendsOptions) {
6333
- if (isCompatEnabled("PRIVATE_APIS" /* DeprecationTypes.PRIVATE_APIS */, instance)) {
6385
+ if (isCompatEnabled$1("PRIVATE_APIS" /* DeprecationTypes.PRIVATE_APIS */, instance)) {
6334
6386
  resolved = extend({}, base);
6335
6387
  resolved.parent = instance.parent && instance.parent.proxy;
6336
6388
  resolved.propsData = instance.vnode.props;
@@ -6364,7 +6416,7 @@ var Vue = (function () {
6364
6416
  }
6365
6417
  for (const key in from) {
6366
6418
  if (asMixin && key === 'expose') {
6367
- warn$1(`"expose" option is ignored when declared in mixins or extends. ` +
6419
+ warn(`"expose" option is ignored when declared in mixins or extends. ` +
6368
6420
  `It should only be declared in the base component itself.`);
6369
6421
  }
6370
6422
  else {
@@ -6382,20 +6434,20 @@ var Vue = (function () {
6382
6434
  methods: mergeObjectOptions,
6383
6435
  computed: mergeObjectOptions,
6384
6436
  // lifecycle
6385
- beforeCreate: mergeAsArray,
6386
- created: mergeAsArray,
6387
- beforeMount: mergeAsArray,
6388
- mounted: mergeAsArray,
6389
- beforeUpdate: mergeAsArray,
6390
- updated: mergeAsArray,
6391
- beforeDestroy: mergeAsArray,
6392
- beforeUnmount: mergeAsArray,
6393
- destroyed: mergeAsArray,
6394
- unmounted: mergeAsArray,
6395
- activated: mergeAsArray,
6396
- deactivated: mergeAsArray,
6397
- errorCaptured: mergeAsArray,
6398
- serverPrefetch: mergeAsArray,
6437
+ beforeCreate: mergeAsArray$1,
6438
+ created: mergeAsArray$1,
6439
+ beforeMount: mergeAsArray$1,
6440
+ mounted: mergeAsArray$1,
6441
+ beforeUpdate: mergeAsArray$1,
6442
+ updated: mergeAsArray$1,
6443
+ beforeDestroy: mergeAsArray$1,
6444
+ beforeUnmount: mergeAsArray$1,
6445
+ destroyed: mergeAsArray$1,
6446
+ unmounted: mergeAsArray$1,
6447
+ activated: mergeAsArray$1,
6448
+ deactivated: mergeAsArray$1,
6449
+ errorCaptured: mergeAsArray$1,
6450
+ serverPrefetch: mergeAsArray$1,
6399
6451
  // assets
6400
6452
  components: mergeObjectOptions,
6401
6453
  directives: mergeObjectOptions,
@@ -6416,7 +6468,7 @@ var Vue = (function () {
6416
6468
  return from;
6417
6469
  }
6418
6470
  return function mergedDataFn() {
6419
- return (isCompatEnabled("OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */, null)
6471
+ return (isCompatEnabled$1("OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */, null)
6420
6472
  ? deepMergeData
6421
6473
  : extend)(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
6422
6474
  };
@@ -6434,7 +6486,7 @@ var Vue = (function () {
6434
6486
  }
6435
6487
  return raw;
6436
6488
  }
6437
- function mergeAsArray(to, from) {
6489
+ function mergeAsArray$1(to, from) {
6438
6490
  return to ? [...new Set([].concat(to, from))] : from;
6439
6491
  }
6440
6492
  function mergeObjectOptions(to, from) {
@@ -6447,7 +6499,7 @@ var Vue = (function () {
6447
6499
  return to;
6448
6500
  const merged = extend(Object.create(null), to);
6449
6501
  for (const key in from) {
6450
- merged[key] = mergeAsArray(to[key], from[key]);
6502
+ merged[key] = mergeAsArray$1(to[key], from[key]);
6451
6503
  }
6452
6504
  return merged;
6453
6505
  }
@@ -6455,7 +6507,7 @@ var Vue = (function () {
6455
6507
  function createPropsDefaultThis(instance, rawProps, propKey) {
6456
6508
  return new Proxy({}, {
6457
6509
  get(_, key) {
6458
- warnDeprecation("PROPS_DEFAULT_THIS" /* DeprecationTypes.PROPS_DEFAULT_THIS */, null, propKey);
6510
+ warnDeprecation$1("PROPS_DEFAULT_THIS" /* DeprecationTypes.PROPS_DEFAULT_THIS */, null, propKey);
6459
6511
  // $options
6460
6512
  if (key === '$options') {
6461
6513
  return resolveMergedOptions(instance);
@@ -6485,11 +6537,11 @@ var Vue = (function () {
6485
6537
  return true;
6486
6538
  }
6487
6539
  if ((key === 'class' || key === 'style') &&
6488
- isCompatEnabled("INSTANCE_ATTRS_CLASS_STYLE" /* DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE */, instance)) {
6540
+ isCompatEnabled$1("INSTANCE_ATTRS_CLASS_STYLE" /* DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE */, instance)) {
6489
6541
  return true;
6490
6542
  }
6491
6543
  if (isOn(key) &&
6492
- isCompatEnabled("INSTANCE_LISTENERS" /* DeprecationTypes.INSTANCE_LISTENERS */, instance)) {
6544
+ isCompatEnabled$1("INSTANCE_LISTENERS" /* DeprecationTypes.INSTANCE_LISTENERS */, instance)) {
6493
6545
  return true;
6494
6546
  }
6495
6547
  // vue-router
@@ -6717,7 +6769,7 @@ var Vue = (function () {
6717
6769
  }
6718
6770
  else {
6719
6771
  setCurrentInstance(instance);
6720
- value = propsDefaults[key] = defaultValue.call(isCompatEnabled("PROPS_DEFAULT_THIS" /* DeprecationTypes.PROPS_DEFAULT_THIS */, instance)
6772
+ value = propsDefaults[key] = defaultValue.call(isCompatEnabled$1("PROPS_DEFAULT_THIS" /* DeprecationTypes.PROPS_DEFAULT_THIS */, instance)
6721
6773
  ? createPropsDefaultThis(instance, props, key)
6722
6774
  : null, props);
6723
6775
  unsetCurrentInstance();
@@ -6781,7 +6833,7 @@ var Vue = (function () {
6781
6833
  if (isArray(raw)) {
6782
6834
  for (let i = 0; i < raw.length; i++) {
6783
6835
  if (!isString(raw[i])) {
6784
- warn$1(`props must be strings when using array syntax.`, raw[i]);
6836
+ warn(`props must be strings when using array syntax.`, raw[i]);
6785
6837
  }
6786
6838
  const normalizedKey = camelize(raw[i]);
6787
6839
  if (validatePropName(normalizedKey)) {
@@ -6791,7 +6843,7 @@ var Vue = (function () {
6791
6843
  }
6792
6844
  else if (raw) {
6793
6845
  if (!isObject(raw)) {
6794
- warn$1(`invalid props options`, raw);
6846
+ warn(`invalid props options`, raw);
6795
6847
  }
6796
6848
  for (const key in raw) {
6797
6849
  const normalizedKey = camelize(key);
@@ -6824,15 +6876,15 @@ var Vue = (function () {
6824
6876
  return true;
6825
6877
  }
6826
6878
  else {
6827
- warn$1(`Invalid prop name: "${key}" is a reserved property.`);
6879
+ warn(`Invalid prop name: "${key}" is a reserved property.`);
6828
6880
  }
6829
6881
  return false;
6830
6882
  }
6831
6883
  // use function string name to check type constructors
6832
6884
  // so that it works across vms / iframes.
6833
6885
  function getType(ctor) {
6834
- const match = ctor && ctor.toString().match(/^\s*function (\w+)/);
6835
- return match ? match[1] : ctor === null ? 'null' : '';
6886
+ const match = ctor && ctor.toString().match(/^\s*(function|class) (\w+)/);
6887
+ return match ? match[2] : ctor === null ? 'null' : '';
6836
6888
  }
6837
6889
  function isSameType(a, b) {
6838
6890
  return getType(a) === getType(b);
@@ -6866,7 +6918,7 @@ var Vue = (function () {
6866
6918
  const { type, required, validator } = prop;
6867
6919
  // required!
6868
6920
  if (required && isAbsent) {
6869
- warn$1('Missing required prop: "' + name + '"');
6921
+ warn('Missing required prop: "' + name + '"');
6870
6922
  return;
6871
6923
  }
6872
6924
  // missing but optional
@@ -6885,13 +6937,13 @@ var Vue = (function () {
6885
6937
  isValid = valid;
6886
6938
  }
6887
6939
  if (!isValid) {
6888
- warn$1(getInvalidTypeMessage(name, value, expectedTypes));
6940
+ warn(getInvalidTypeMessage(name, value, expectedTypes));
6889
6941
  return;
6890
6942
  }
6891
6943
  }
6892
6944
  // custom validator
6893
6945
  if (validator && !validator(value)) {
6894
- warn$1('Invalid prop: custom validator check failed for prop "' + name + '".');
6946
+ warn('Invalid prop: custom validator check failed for prop "' + name + '".');
6895
6947
  }
6896
6948
  }
6897
6949
  const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol,BigInt');
@@ -6988,7 +7040,7 @@ var Vue = (function () {
6988
7040
  }
6989
7041
  const normalized = withCtx((...args) => {
6990
7042
  if (true && currentInstance) {
6991
- warn$1(`Slot "${key}" invoked outside of the render function: ` +
7043
+ warn(`Slot "${key}" invoked outside of the render function: ` +
6992
7044
  `this will not track dependencies used in the slot. ` +
6993
7045
  `Invoke the slot function inside the render function instead.`);
6994
7046
  }
@@ -7007,8 +7059,8 @@ var Vue = (function () {
7007
7059
  slots[key] = normalizeSlot(key, value, ctx);
7008
7060
  }
7009
7061
  else if (value != null) {
7010
- if (!(isCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance))) {
7011
- warn$1(`Non-function value encountered for slot "${key}". ` +
7062
+ if (!(isCompatEnabled$1("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance))) {
7063
+ warn(`Non-function value encountered for slot "${key}". ` +
7012
7064
  `Prefer function slots for better performance.`);
7013
7065
  }
7014
7066
  const normalized = normalizeSlotValue(value);
@@ -7018,8 +7070,8 @@ var Vue = (function () {
7018
7070
  };
7019
7071
  const normalizeVNodeSlots = (instance, children) => {
7020
7072
  if (!isKeepAlive(instance.vnode) &&
7021
- !(isCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance))) {
7022
- warn$1(`Non-function value encountered for default slot. ` +
7073
+ !(isCompatEnabled$1("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance))) {
7074
+ warn(`Non-function value encountered for default slot. ` +
7023
7075
  `Prefer function slots for better performance.`);
7024
7076
  }
7025
7077
  const normalized = normalizeSlotValue(children);
@@ -7117,7 +7169,7 @@ var Vue = (function () {
7117
7169
  },
7118
7170
  set(newVal) {
7119
7171
  if (!isCopyingConfig) {
7120
- warnDeprecation(legacyConfigOptions[key], null);
7172
+ warnDeprecation$1(legacyConfigOptions[key], null);
7121
7173
  }
7122
7174
  val = newVal;
7123
7175
  }
@@ -7143,7 +7195,7 @@ var Vue = (function () {
7143
7195
  let singletonApp;
7144
7196
  let singletonCtor;
7145
7197
  // Legacy global Vue constructor
7146
- function createCompatVue(createApp, createSingletonApp) {
7198
+ function createCompatVue$1(createApp, createSingletonApp) {
7147
7199
  singletonApp = createSingletonApp({});
7148
7200
  const Vue = (singletonCtor = function Vue(options = {}) {
7149
7201
  return createCompatApp(options, Vue);
@@ -7168,7 +7220,7 @@ var Vue = (function () {
7168
7220
  return vm;
7169
7221
  }
7170
7222
  }
7171
- Vue.version = `2.6.14-compat:${"3.2.45"}`;
7223
+ Vue.version = `2.6.14-compat:${"3.2.47"}`;
7172
7224
  Vue.config = singletonApp.config;
7173
7225
  Vue.use = (p, ...options) => {
7174
7226
  if (p && isFunction(p.install)) {
@@ -7270,7 +7322,7 @@ var Vue = (function () {
7270
7322
  });
7271
7323
  // internal utils - these are technically internal but some plugins use it.
7272
7324
  const util = {
7273
- warn: warn$1 ,
7325
+ warn: warn ,
7274
7326
  extend,
7275
7327
  mergeOptions: (parent, child, vm) => mergeOptions(parent, child, vm ? undefined : internalOptionMergeStrats),
7276
7328
  defineReactive
@@ -7305,7 +7357,7 @@ var Vue = (function () {
7305
7357
  return context.filters[name];
7306
7358
  }
7307
7359
  if (context.filters[name]) {
7308
- warn$1(`Filter "${name}" has already been registered.`);
7360
+ warn(`Filter "${name}" has already been registered.`);
7309
7361
  }
7310
7362
  context.filters[name] = filter;
7311
7363
  return app;
@@ -7317,7 +7369,7 @@ var Vue = (function () {
7317
7369
  // so that app.use() can work with legacy plugins that extend prototypes
7318
7370
  prototype: {
7319
7371
  get() {
7320
- warnDeprecation("GLOBAL_PROTOTYPE" /* DeprecationTypes.GLOBAL_PROTOTYPE */, null);
7372
+ warnDeprecation$1("GLOBAL_PROTOTYPE" /* DeprecationTypes.GLOBAL_PROTOTYPE */, null);
7321
7373
  return app.config.globalProperties;
7322
7374
  }
7323
7375
  },
@@ -7354,7 +7406,7 @@ var Vue = (function () {
7354
7406
  app.config[key] = isObject(val) ? Object.create(val) : val;
7355
7407
  // compat for runtime ignoredElements -> isCustomElement
7356
7408
  if (key === 'ignoredElements' &&
7357
- isCompatEnabled("CONFIG_IGNORED_ELEMENTS" /* DeprecationTypes.CONFIG_IGNORED_ELEMENTS */, null) &&
7409
+ isCompatEnabled$1("CONFIG_IGNORED_ELEMENTS" /* DeprecationTypes.CONFIG_IGNORED_ELEMENTS */, null) &&
7358
7410
  !isRuntimeOnly() &&
7359
7411
  isArray(val)) {
7360
7412
  app.config.compilerOptions.isCustomElement = tag => {
@@ -7367,7 +7419,7 @@ var Vue = (function () {
7367
7419
  }
7368
7420
  function applySingletonPrototype(app, Ctor) {
7369
7421
  // copy prototype augmentations as config.globalProperties
7370
- const enabled = isCompatEnabled("GLOBAL_PROTOTYPE" /* DeprecationTypes.GLOBAL_PROTOTYPE */, null);
7422
+ const enabled = isCompatEnabled$1("GLOBAL_PROTOTYPE" /* DeprecationTypes.GLOBAL_PROTOTYPE */, null);
7371
7423
  if (enabled) {
7372
7424
  app.config.globalProperties = Object.create(Ctor.prototype);
7373
7425
  }
@@ -7382,7 +7434,7 @@ var Vue = (function () {
7382
7434
  }
7383
7435
  }
7384
7436
  if (hasPrototypeAugmentations) {
7385
- warnDeprecation("GLOBAL_PROTOTYPE" /* DeprecationTypes.GLOBAL_PROTOTYPE */, null);
7437
+ warnDeprecation$1("GLOBAL_PROTOTYPE" /* DeprecationTypes.GLOBAL_PROTOTYPE */, null);
7386
7438
  }
7387
7439
  }
7388
7440
  function installCompatMount(app, context, render) {
@@ -7416,7 +7468,7 @@ var Vue = (function () {
7416
7468
  // both runtime-core AND runtime-dom.
7417
7469
  instance.ctx._compat_mount = (selectorOrEl) => {
7418
7470
  if (isMounted) {
7419
- warn$1(`Root instance is already mounted.`);
7471
+ warn(`Root instance is already mounted.`);
7420
7472
  return;
7421
7473
  }
7422
7474
  let container;
@@ -7424,7 +7476,7 @@ var Vue = (function () {
7424
7476
  // eslint-disable-next-line
7425
7477
  const result = document.querySelector(selectorOrEl);
7426
7478
  if (!result) {
7427
- warn$1(`Failed to mount root instance: selector "${selectorOrEl}" returned null.`);
7479
+ warn(`Failed to mount root instance: selector "${selectorOrEl}" returned null.`);
7428
7480
  return;
7429
7481
  }
7430
7482
  container = result;
@@ -7452,7 +7504,7 @@ var Vue = (function () {
7452
7504
  for (let i = 0; i < container.attributes.length; i++) {
7453
7505
  const attr = container.attributes[i];
7454
7506
  if (attr.name !== 'v-cloak' && /^(v-|:|@)/.test(attr.name)) {
7455
- warnDeprecation("GLOBAL_MOUNT_CONTAINER" /* DeprecationTypes.GLOBAL_MOUNT_CONTAINER */, null);
7507
+ warnDeprecation$1("GLOBAL_MOUNT_CONTAINER" /* DeprecationTypes.GLOBAL_MOUNT_CONTAINER */, null);
7456
7508
  break;
7457
7509
  }
7458
7510
  }
@@ -7491,7 +7543,7 @@ var Vue = (function () {
7491
7543
  if (bum) {
7492
7544
  invokeArrayFns(bum);
7493
7545
  }
7494
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
7546
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
7495
7547
  instance.emit('hook:beforeDestroy');
7496
7548
  }
7497
7549
  // stop effects
@@ -7502,7 +7554,7 @@ var Vue = (function () {
7502
7554
  if (um) {
7503
7555
  invokeArrayFns(um);
7504
7556
  }
7505
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
7557
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
7506
7558
  instance.emit('hook:destroyed');
7507
7559
  }
7508
7560
  }
@@ -7594,21 +7646,21 @@ var Vue = (function () {
7594
7646
  emitsCache: new WeakMap()
7595
7647
  };
7596
7648
  }
7597
- let uid = 0;
7649
+ let uid$1 = 0;
7598
7650
  function createAppAPI(render, hydrate) {
7599
7651
  return function createApp(rootComponent, rootProps = null) {
7600
7652
  if (!isFunction(rootComponent)) {
7601
7653
  rootComponent = Object.assign({}, rootComponent);
7602
7654
  }
7603
7655
  if (rootProps != null && !isObject(rootProps)) {
7604
- warn$1(`root props passed to app.mount() must be an object.`);
7656
+ warn(`root props passed to app.mount() must be an object.`);
7605
7657
  rootProps = null;
7606
7658
  }
7607
7659
  const context = createAppContext();
7608
7660
  const installedPlugins = new Set();
7609
7661
  let isMounted = false;
7610
7662
  const app = (context.app = {
7611
- _uid: uid++,
7663
+ _uid: uid$1++,
7612
7664
  _component: rootComponent,
7613
7665
  _props: rootProps,
7614
7666
  _container: null,
@@ -7620,12 +7672,12 @@ var Vue = (function () {
7620
7672
  },
7621
7673
  set config(v) {
7622
7674
  {
7623
- warn$1(`app.config cannot be replaced. Modify individual options instead.`);
7675
+ warn(`app.config cannot be replaced. Modify individual options instead.`);
7624
7676
  }
7625
7677
  },
7626
7678
  use(plugin, ...options) {
7627
7679
  if (installedPlugins.has(plugin)) {
7628
- warn$1(`Plugin has already been applied to target app.`);
7680
+ warn(`Plugin has already been applied to target app.`);
7629
7681
  }
7630
7682
  else if (plugin && isFunction(plugin.install)) {
7631
7683
  installedPlugins.add(plugin);
@@ -7636,7 +7688,7 @@ var Vue = (function () {
7636
7688
  plugin(app, ...options);
7637
7689
  }
7638
7690
  else {
7639
- warn$1(`A plugin must either be a function or an object with an "install" ` +
7691
+ warn(`A plugin must either be a function or an object with an "install" ` +
7640
7692
  `function.`);
7641
7693
  }
7642
7694
  return app;
@@ -7647,7 +7699,7 @@ var Vue = (function () {
7647
7699
  context.mixins.push(mixin);
7648
7700
  }
7649
7701
  else {
7650
- warn$1('Mixin has already been applied to target app' +
7702
+ warn('Mixin has already been applied to target app' +
7651
7703
  (mixin.name ? `: ${mixin.name}` : ''));
7652
7704
  }
7653
7705
  }
@@ -7661,7 +7713,7 @@ var Vue = (function () {
7661
7713
  return context.components[name];
7662
7714
  }
7663
7715
  if (context.components[name]) {
7664
- warn$1(`Component "${name}" has already been registered in target app.`);
7716
+ warn(`Component "${name}" has already been registered in target app.`);
7665
7717
  }
7666
7718
  context.components[name] = component;
7667
7719
  return app;
@@ -7674,7 +7726,7 @@ var Vue = (function () {
7674
7726
  return context.directives[name];
7675
7727
  }
7676
7728
  if (context.directives[name]) {
7677
- warn$1(`Directive "${name}" has already been registered in target app.`);
7729
+ warn(`Directive "${name}" has already been registered in target app.`);
7678
7730
  }
7679
7731
  context.directives[name] = directive;
7680
7732
  return app;
@@ -7683,7 +7735,7 @@ var Vue = (function () {
7683
7735
  if (!isMounted) {
7684
7736
  // #5571
7685
7737
  if (rootContainer.__vue_app__) {
7686
- warn$1(`There is already an app instance mounted on the host container.\n` +
7738
+ warn(`There is already an app instance mounted on the host container.\n` +
7687
7739
  ` If you want to mount another app on the same host container,` +
7688
7740
  ` you need to unmount the previous app by calling \`app.unmount()\` first.`);
7689
7741
  }
@@ -7713,7 +7765,7 @@ var Vue = (function () {
7713
7765
  return getExposeProxy(vnode.component) || vnode.component.proxy;
7714
7766
  }
7715
7767
  else {
7716
- warn$1(`App has already been mounted.\n` +
7768
+ warn(`App has already been mounted.\n` +
7717
7769
  `If you want to remount the same app, move your app creation logic ` +
7718
7770
  `into a factory function and create fresh app instances for each ` +
7719
7771
  `mount - e.g. \`const createMyApp = () => createApp(App)\``);
@@ -7729,12 +7781,12 @@ var Vue = (function () {
7729
7781
  delete app._container.__vue_app__;
7730
7782
  }
7731
7783
  else {
7732
- warn$1(`Cannot unmount an app that is not mounted.`);
7784
+ warn(`Cannot unmount an app that is not mounted.`);
7733
7785
  }
7734
7786
  },
7735
7787
  provide(key, value) {
7736
7788
  if (key in context.provides) {
7737
- warn$1(`App already provides property with key "${String(key)}". ` +
7789
+ warn(`App already provides property with key "${String(key)}". ` +
7738
7790
  `It will be overwritten with the new value.`);
7739
7791
  }
7740
7792
  context.provides[key] = value;
@@ -7767,7 +7819,7 @@ var Vue = (function () {
7767
7819
  const value = isUnmount ? null : refValue;
7768
7820
  const { i: owner, r: ref } = rawRef;
7769
7821
  if (!owner) {
7770
- warn$1(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +
7822
+ warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +
7771
7823
  `A vnode with ref must be created inside the render function.`);
7772
7824
  return;
7773
7825
  }
@@ -7834,7 +7886,7 @@ var Vue = (function () {
7834
7886
  refs[rawRef.k] = value;
7835
7887
  }
7836
7888
  else {
7837
- warn$1('Invalid template ref type:', ref, `(${typeof ref})`);
7889
+ warn('Invalid template ref type:', ref, `(${typeof ref})`);
7838
7890
  }
7839
7891
  };
7840
7892
  if (value) {
@@ -7846,7 +7898,7 @@ var Vue = (function () {
7846
7898
  }
7847
7899
  }
7848
7900
  else {
7849
- warn$1('Invalid template ref type:', ref, `(${typeof ref})`);
7901
+ warn('Invalid template ref type:', ref, `(${typeof ref})`);
7850
7902
  }
7851
7903
  }
7852
7904
  }
@@ -7863,7 +7915,7 @@ var Vue = (function () {
7863
7915
  const { mt: mountComponent, p: patch, o: { patchProp, createText, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
7864
7916
  const hydrate = (vnode, container) => {
7865
7917
  if (!container.hasChildNodes()) {
7866
- warn$1(`Attempting to hydrate existing markup but container is empty. ` +
7918
+ warn(`Attempting to hydrate existing markup but container is empty. ` +
7867
7919
  `Performing full mount instead.`);
7868
7920
  patch(null, vnode, container);
7869
7921
  flushPostFlushCbs();
@@ -7906,7 +7958,7 @@ var Vue = (function () {
7906
7958
  else {
7907
7959
  if (node.data !== vnode.children) {
7908
7960
  hasMismatch = true;
7909
- warn$1(`Hydration text mismatch:` +
7961
+ warn(`Hydration text mismatch:` +
7910
7962
  `\n- Client: ${JSON.stringify(node.data)}` +
7911
7963
  `\n- Server: ${JSON.stringify(vnode.children)}`);
7912
7964
  node.data = vnode.children;
@@ -8021,7 +8073,7 @@ var Vue = (function () {
8021
8073
  nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
8022
8074
  }
8023
8075
  else {
8024
- warn$1('Invalid HostVNode type:', type, `(${typeof type})`);
8076
+ warn('Invalid HostVNode type:', type, `(${typeof type})`);
8025
8077
  }
8026
8078
  }
8027
8079
  if (ref != null) {
@@ -8082,7 +8134,7 @@ var Vue = (function () {
8082
8134
  while (next) {
8083
8135
  hasMismatch = true;
8084
8136
  if (!hasWarned) {
8085
- warn$1(`Hydration children mismatch in <${vnode.type}>: ` +
8137
+ warn(`Hydration children mismatch in <${vnode.type}>: ` +
8086
8138
  `server rendered element contains more child nodes than client vdom.`);
8087
8139
  hasWarned = true;
8088
8140
  }
@@ -8095,7 +8147,7 @@ var Vue = (function () {
8095
8147
  else if (shapeFlag & 8 /* ShapeFlags.TEXT_CHILDREN */) {
8096
8148
  if (el.textContent !== vnode.children) {
8097
8149
  hasMismatch = true;
8098
- warn$1(`Hydration text content mismatch in <${vnode.type}>:\n` +
8150
+ warn(`Hydration text content mismatch in <${vnode.type}>:\n` +
8099
8151
  `- Client: ${el.textContent}\n` +
8100
8152
  `- Server: ${vnode.children}`);
8101
8153
  el.textContent = vnode.children;
@@ -8122,7 +8174,7 @@ var Vue = (function () {
8122
8174
  else {
8123
8175
  hasMismatch = true;
8124
8176
  if (!hasWarned) {
8125
- warn$1(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +
8177
+ warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +
8126
8178
  `server rendered element contains fewer child nodes than client vdom.`);
8127
8179
  hasWarned = true;
8128
8180
  }
@@ -8155,7 +8207,7 @@ var Vue = (function () {
8155
8207
  };
8156
8208
  const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
8157
8209
  hasMismatch = true;
8158
- warn$1(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* DOMNodeTypes.TEXT */
8210
+ warn(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* DOMNodeTypes.TEXT */
8159
8211
  ? `(text)`
8160
8212
  : isComment(node) && node.data === '['
8161
8213
  ? `(start of fragment)`
@@ -8323,7 +8375,7 @@ var Vue = (function () {
8323
8375
  type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
8324
8376
  }
8325
8377
  else {
8326
- warn$1('Invalid VNode type:', type, `(${typeof type})`);
8378
+ warn('Invalid VNode type:', type, `(${typeof type})`);
8327
8379
  }
8328
8380
  }
8329
8381
  // set ref
@@ -8413,6 +8465,8 @@ var Vue = (function () {
8413
8465
  if (dirs) {
8414
8466
  invokeDirectiveHook(vnode, null, parentComponent, 'created');
8415
8467
  }
8468
+ // scopeId
8469
+ setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
8416
8470
  // props
8417
8471
  if (props) {
8418
8472
  for (const key in props) {
@@ -8436,8 +8490,6 @@ var Vue = (function () {
8436
8490
  invokeVNodeHook(vnodeHook, parentComponent, vnode);
8437
8491
  }
8438
8492
  }
8439
- // scopeId
8440
- setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
8441
8493
  {
8442
8494
  Object.defineProperty(el, '__vnode', {
8443
8495
  value: vnode,
@@ -8811,7 +8863,7 @@ var Vue = (function () {
8811
8863
  (vnodeHook = props && props.onVnodeBeforeMount)) {
8812
8864
  invokeVNodeHook(vnodeHook, parent, initialVNode);
8813
8865
  }
8814
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8866
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8815
8867
  instance.emit('hook:beforeMount');
8816
8868
  }
8817
8869
  toggleRecurse(instance, true);
@@ -8872,7 +8924,7 @@ var Vue = (function () {
8872
8924
  const scopedInitialVNode = initialVNode;
8873
8925
  queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);
8874
8926
  }
8875
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8927
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8876
8928
  queuePostRenderEffect(() => instance.emit('hook:mounted'), parentSuspense);
8877
8929
  }
8878
8930
  // activated hook for keep-alive roots.
@@ -8883,7 +8935,7 @@ var Vue = (function () {
8883
8935
  isAsyncWrapper(parent.vnode) &&
8884
8936
  parent.vnode.shapeFlag & 256 /* ShapeFlags.COMPONENT_SHOULD_KEEP_ALIVE */)) {
8885
8937
  instance.a && queuePostRenderEffect(instance.a, parentSuspense);
8886
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8938
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8887
8939
  queuePostRenderEffect(() => instance.emit('hook:activated'), parentSuspense);
8888
8940
  }
8889
8941
  }
@@ -8921,7 +8973,7 @@ var Vue = (function () {
8921
8973
  if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) {
8922
8974
  invokeVNodeHook(vnodeHook, parent, next, vnode);
8923
8975
  }
8924
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8976
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8925
8977
  instance.emit('hook:beforeUpdate');
8926
8978
  }
8927
8979
  toggleRecurse(instance, true);
@@ -8961,7 +9013,7 @@ var Vue = (function () {
8961
9013
  if ((vnodeHook = next.props && next.props.onVnodeUpdated)) {
8962
9014
  queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);
8963
9015
  }
8964
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
9016
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
8965
9017
  queuePostRenderEffect(() => instance.emit('hook:updated'), parentSuspense);
8966
9018
  }
8967
9019
  {
@@ -9166,7 +9218,7 @@ var Vue = (function () {
9166
9218
  : normalizeVNode(c2[i]));
9167
9219
  if (nextChild.key != null) {
9168
9220
  if (keyToNewIndexMap.has(nextChild.key)) {
9169
- warn$1(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);
9221
+ warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);
9170
9222
  }
9171
9223
  keyToNewIndexMap.set(nextChild.key, i);
9172
9224
  }
@@ -9434,7 +9486,7 @@ var Vue = (function () {
9434
9486
  if (bum) {
9435
9487
  invokeArrayFns(bum);
9436
9488
  }
9437
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
9489
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
9438
9490
  instance.emit('hook:beforeDestroy');
9439
9491
  }
9440
9492
  // stop effects in component scope
@@ -9450,7 +9502,7 @@ var Vue = (function () {
9450
9502
  if (um) {
9451
9503
  queuePostRenderEffect(um, parentSuspense);
9452
9504
  }
9453
- if (isCompatEnabled("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
9505
+ if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */, instance)) {
9454
9506
  queuePostRenderEffect(() => instance.emit('hook:destroyed'), parentSuspense);
9455
9507
  }
9456
9508
  queuePostRenderEffect(() => {
@@ -9617,14 +9669,14 @@ var Vue = (function () {
9617
9669
  const targetSelector = props && props.to;
9618
9670
  if (isString(targetSelector)) {
9619
9671
  if (!select) {
9620
- warn$1(`Current renderer does not support string target for Teleports. ` +
9672
+ warn(`Current renderer does not support string target for Teleports. ` +
9621
9673
  `(missing querySelector renderer option)`);
9622
9674
  return null;
9623
9675
  }
9624
9676
  else {
9625
9677
  const target = select(targetSelector);
9626
9678
  if (!target) {
9627
- warn$1(`Failed to locate Teleport target with selector "${targetSelector}". ` +
9679
+ warn(`Failed to locate Teleport target with selector "${targetSelector}". ` +
9628
9680
  `Note the target element must exist before the component is mounted - ` +
9629
9681
  `i.e. the target cannot be rendered by the component itself, and ` +
9630
9682
  `ideally should be outside of the entire Vue component tree.`);
@@ -9634,7 +9686,7 @@ var Vue = (function () {
9634
9686
  }
9635
9687
  else {
9636
9688
  if (!targetSelector && !isTeleportDisabled(props)) {
9637
- warn$1(`Invalid Teleport target: ${targetSelector}`);
9689
+ warn(`Invalid Teleport target: ${targetSelector}`);
9638
9690
  }
9639
9691
  return targetSelector;
9640
9692
  }
@@ -9667,7 +9719,7 @@ var Vue = (function () {
9667
9719
  isSVG = isSVG || isTargetSVG(target);
9668
9720
  }
9669
9721
  else if (!disabled) {
9670
- warn$1('Invalid Teleport target on mount:', target, `(${typeof target})`);
9722
+ warn('Invalid Teleport target on mount:', target, `(${typeof target})`);
9671
9723
  }
9672
9724
  const mount = (container, anchor) => {
9673
9725
  // Teleport *always* has Array children. This is enforced in both the
@@ -9719,7 +9771,7 @@ var Vue = (function () {
9719
9771
  moveTeleport(n2, nextTarget, null, internals, 0 /* TeleportMoveTypes.TARGET_CHANGE */);
9720
9772
  }
9721
9773
  else {
9722
- warn$1('Invalid Teleport target on update:', target, `(${typeof target})`);
9774
+ warn('Invalid Teleport target on update:', target, `(${typeof target})`);
9723
9775
  }
9724
9776
  }
9725
9777
  else if (wasDisabled) {
@@ -9875,7 +9927,7 @@ var Vue = (function () {
9875
9927
  }
9876
9928
  // 2.x async component
9877
9929
  if (isFunction(comp) &&
9878
- checkCompatEnabled("COMPONENT_ASYNC" /* DeprecationTypes.COMPONENT_ASYNC */, instance, comp)) {
9930
+ checkCompatEnabled$1("COMPONENT_ASYNC" /* DeprecationTypes.COMPONENT_ASYNC */, instance, comp)) {
9879
9931
  // since after disabling this, plain functions are still valid usage, do not
9880
9932
  // use softAssert here.
9881
9933
  return convertLegacyAsyncComponent(comp);
@@ -10060,7 +10112,7 @@ var Vue = (function () {
10060
10112
  }
10061
10113
  // validate key
10062
10114
  if (vnode.key !== vnode.key) {
10063
- warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
10115
+ warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
10064
10116
  }
10065
10117
  // track vnode for block tree
10066
10118
  if (isBlockTreeEnabled > 0 &&
@@ -10088,7 +10140,7 @@ var Vue = (function () {
10088
10140
  function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
10089
10141
  if (!type || type === NULL_DYNAMIC_COMPONENT) {
10090
10142
  if (!type) {
10091
- warn$1(`Invalid vnode type when creating vnode: ${type}.`);
10143
+ warn(`Invalid vnode type when creating vnode: ${type}.`);
10092
10144
  }
10093
10145
  type = Comment;
10094
10146
  }
@@ -10150,7 +10202,7 @@ var Vue = (function () {
10150
10202
  : 0;
10151
10203
  if (shapeFlag & 4 /* ShapeFlags.STATEFUL_COMPONENT */ && isProxy(type)) {
10152
10204
  type = toRaw(type);
10153
- warn$1(`Vue received a Component which was made a reactive object. This can ` +
10205
+ warn(`Vue received a Component which was made a reactive object. This can ` +
10154
10206
  `lead to unnecessary performance overhead, and should be avoided by ` +
10155
10207
  `marking the component with \`markRaw\` or using \`shallowRef\` ` +
10156
10208
  `instead of \`ref\`.`, `\nComponent that was made reactive: `, type);
@@ -10218,7 +10270,8 @@ var Vue = (function () {
10218
10270
  ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
10219
10271
  el: vnode.el,
10220
10272
  anchor: vnode.anchor,
10221
- ctx: vnode.ctx
10273
+ ctx: vnode.ctx,
10274
+ ce: vnode.ce
10222
10275
  };
10223
10276
  {
10224
10277
  defineLegacyVNodeProperties(cloned);
@@ -10388,13 +10441,13 @@ var Vue = (function () {
10388
10441
  }
10389
10442
 
10390
10443
  const emptyAppContext = createAppContext();
10391
- let uid$1 = 0;
10444
+ let uid = 0;
10392
10445
  function createComponentInstance(vnode, parent, suspense) {
10393
10446
  const type = vnode.type;
10394
10447
  // inherit parent app context - or - if root, adopt from root vnode
10395
10448
  const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
10396
10449
  const instance = {
10397
- uid: uid$1++,
10450
+ uid: uid++,
10398
10451
  vnode,
10399
10452
  type,
10400
10453
  parent,
@@ -10464,7 +10517,7 @@ var Vue = (function () {
10464
10517
  instance.ctx = createDevRenderContext(instance);
10465
10518
  }
10466
10519
  instance.root = parent ? parent.root : instance;
10467
- instance.emit = emit$2.bind(null, instance);
10520
+ instance.emit = emit.bind(null, instance);
10468
10521
  // apply custom element special handling
10469
10522
  if (vnode.ce) {
10470
10523
  vnode.ce(instance);
@@ -10485,7 +10538,7 @@ var Vue = (function () {
10485
10538
  function validateComponentName(name, config) {
10486
10539
  const appIsNativeTag = config.isNativeTag || NO;
10487
10540
  if (isBuiltInTag(name) || appIsNativeTag(name)) {
10488
- warn$1('Do not use built-in or reserved HTML elements as component id: ' + name);
10541
+ warn('Do not use built-in or reserved HTML elements as component id: ' + name);
10489
10542
  }
10490
10543
  }
10491
10544
  function isStatefulComponent(instance) {
@@ -10524,7 +10577,7 @@ var Vue = (function () {
10524
10577
  }
10525
10578
  }
10526
10579
  if (Component.compilerOptions && isRuntimeOnly()) {
10527
- warn$1(`"compilerOptions" is only supported when using a build of Vue that ` +
10580
+ warn(`"compilerOptions" is only supported when using a build of Vue that ` +
10528
10581
  `includes the runtime compiler. Since you are using a runtime-only ` +
10529
10582
  `build, the options should be passed via your build tool config instead.`);
10530
10583
  }
@@ -10565,7 +10618,7 @@ var Vue = (function () {
10565
10618
  instance.asyncDep = setupResult;
10566
10619
  if (!instance.suspense) {
10567
10620
  const name = (_a = Component.name) !== null && _a !== void 0 ? _a : 'Anonymous';
10568
- warn$1(`Component <${name}>: setup function returned a promise, but no ` +
10621
+ warn(`Component <${name}>: setup function returned a promise, but no ` +
10569
10622
  `<Suspense> boundary was found in the parent component tree. ` +
10570
10623
  `A component with async setup() must be nested in a <Suspense> ` +
10571
10624
  `in order to be rendered.`);
@@ -10589,7 +10642,7 @@ var Vue = (function () {
10589
10642
  }
10590
10643
  else if (isObject(setupResult)) {
10591
10644
  if (isVNode(setupResult)) {
10592
- warn$1(`setup() should not return VNodes directly - ` +
10645
+ warn(`setup() should not return VNodes directly - ` +
10593
10646
  `return a render function instead.`);
10594
10647
  }
10595
10648
  // setup returned bindings.
@@ -10603,18 +10656,18 @@ var Vue = (function () {
10603
10656
  }
10604
10657
  }
10605
10658
  else if (setupResult !== undefined) {
10606
- warn$1(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);
10659
+ warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);
10607
10660
  }
10608
10661
  finishComponentSetup(instance, isSSR);
10609
10662
  }
10610
- let compile;
10663
+ let compile$1;
10611
10664
  let installWithProxy;
10612
10665
  /**
10613
10666
  * For runtime-dom to register the compiler.
10614
10667
  * Note the exported method uses any to avoid d.ts relying on the compiler types.
10615
10668
  */
10616
10669
  function registerRuntimeCompiler(_compile) {
10617
- compile = _compile;
10670
+ compile$1 = _compile;
10618
10671
  installWithProxy = i => {
10619
10672
  if (i.render._rc) {
10620
10673
  i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);
@@ -10622,7 +10675,7 @@ var Vue = (function () {
10622
10675
  };
10623
10676
  }
10624
10677
  // dev only
10625
- const isRuntimeOnly = () => !compile;
10678
+ const isRuntimeOnly = () => !compile$1;
10626
10679
  function finishComponentSetup(instance, isSSR, skipOptions) {
10627
10680
  const Component = instance.type;
10628
10681
  {
@@ -10636,7 +10689,7 @@ var Vue = (function () {
10636
10689
  if (!instance.render) {
10637
10690
  // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
10638
10691
  // is done by server-renderer
10639
- if (!isSSR && compile && !Component.render) {
10692
+ if (!isSSR && compile$1 && !Component.render) {
10640
10693
  const template = (instance.vnode.props &&
10641
10694
  instance.vnode.props['inline-template']) ||
10642
10695
  Component.template ||
@@ -10659,7 +10712,7 @@ var Vue = (function () {
10659
10712
  extend(finalCompilerOptions.compatConfig, Component.compatConfig);
10660
10713
  }
10661
10714
  }
10662
- Component.render = compile(template, finalCompilerOptions);
10715
+ Component.render = compile$1(template, finalCompilerOptions);
10663
10716
  {
10664
10717
  endMeasure(instance, `compile`);
10665
10718
  }
@@ -10685,14 +10738,14 @@ var Vue = (function () {
10685
10738
  // the runtime compilation of template in SSR is done by server-render
10686
10739
  if (!Component.render && instance.render === NOOP && !isSSR) {
10687
10740
  /* istanbul ignore if */
10688
- if (!compile && Component.template) {
10689
- warn$1(`Component provided template option but ` +
10741
+ if (!compile$1 && Component.template) {
10742
+ warn(`Component provided template option but ` +
10690
10743
  `runtime compilation is not supported in this build of Vue.` +
10691
10744
  (` Use "vue.global.js" instead.`
10692
10745
  ) /* should not happen */);
10693
10746
  }
10694
10747
  else {
10695
- warn$1(`Component is missing template or render function.`);
10748
+ warn(`Component is missing template or render function.`);
10696
10749
  }
10697
10750
  }
10698
10751
  }
@@ -10704,11 +10757,11 @@ var Vue = (function () {
10704
10757
  return target[key];
10705
10758
  },
10706
10759
  set() {
10707
- warn$1(`setupContext.attrs is readonly.`);
10760
+ warn(`setupContext.attrs is readonly.`);
10708
10761
  return false;
10709
10762
  },
10710
10763
  deleteProperty() {
10711
- warn$1(`setupContext.attrs is readonly.`);
10764
+ warn(`setupContext.attrs is readonly.`);
10712
10765
  return false;
10713
10766
  }
10714
10767
  }
@@ -10716,8 +10769,24 @@ var Vue = (function () {
10716
10769
  }
10717
10770
  function createSetupContext(instance) {
10718
10771
  const expose = exposed => {
10719
- if (instance.exposed) {
10720
- warn$1(`expose() should be called only once per setup().`);
10772
+ {
10773
+ if (instance.exposed) {
10774
+ warn(`expose() should be called only once per setup().`);
10775
+ }
10776
+ if (exposed != null) {
10777
+ let exposedType = typeof exposed;
10778
+ if (exposedType === 'object') {
10779
+ if (isArray(exposed)) {
10780
+ exposedType = 'array';
10781
+ }
10782
+ else if (isRef(exposed)) {
10783
+ exposedType = 'ref';
10784
+ }
10785
+ }
10786
+ if (exposedType !== 'object') {
10787
+ warn(`expose() should be passed a plain object, received ${exposedType}.`);
10788
+ }
10789
+ }
10721
10790
  }
10722
10791
  instance.exposed = exposed || {};
10723
10792
  };
@@ -10792,13 +10861,13 @@ var Vue = (function () {
10792
10861
  return isFunction(value) && '__vccOpts' in value;
10793
10862
  }
10794
10863
 
10795
- const computed$1 = ((getterOrOptions, debugOptions) => {
10864
+ const computed = ((getterOrOptions, debugOptions) => {
10796
10865
  // @ts-ignore
10797
- return computed(getterOrOptions, debugOptions, isInSSRComponentSetup);
10866
+ return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
10798
10867
  });
10799
10868
 
10800
10869
  // dev only
10801
- const warnRuntimeUsage = (method) => warn$1(`${method}() is a compiler-hint helper that is only usable inside ` +
10870
+ const warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +
10802
10871
  `<script setup> of a single file component. Its arguments should be ` +
10803
10872
  `compiled away and passing it at runtime has no effect.`);
10804
10873
  // implementation
@@ -10865,7 +10934,7 @@ var Vue = (function () {
10865
10934
  function getContext() {
10866
10935
  const i = getCurrentInstance();
10867
10936
  if (!i) {
10868
- warn$1(`useContext() called without active instance.`);
10937
+ warn(`useContext() called without active instance.`);
10869
10938
  }
10870
10939
  return i.setupContext || (i.setupContext = createSetupContext(i));
10871
10940
  }
@@ -10892,7 +10961,7 @@ var Vue = (function () {
10892
10961
  props[key] = { default: defaults[key] };
10893
10962
  }
10894
10963
  else {
10895
- warn$1(`props default key "${key}" has no corresponding declaration.`);
10964
+ warn(`props default key "${key}" has no corresponding declaration.`);
10896
10965
  }
10897
10966
  }
10898
10967
  return props;
@@ -10935,7 +11004,7 @@ var Vue = (function () {
10935
11004
  function withAsyncContext(getAwaitable) {
10936
11005
  const ctx = getCurrentInstance();
10937
11006
  if (!ctx) {
10938
- warn$1(`withAsyncContext called without active current instance. ` +
11007
+ warn(`withAsyncContext called without active current instance. ` +
10939
11008
  `This is likely a bug.`);
10940
11009
  }
10941
11010
  let awaitable = getAwaitable();
@@ -10980,7 +11049,7 @@ var Vue = (function () {
10980
11049
  const ssrContextKey = Symbol(`ssrContext` );
10981
11050
  const useSSRContext = () => {
10982
11051
  {
10983
- warn$1(`useSSRContext() is not supported in the global build.`);
11052
+ warn(`useSSRContext() is not supported in the global build.`);
10984
11053
  }
10985
11054
  };
10986
11055
 
@@ -11201,7 +11270,7 @@ var Vue = (function () {
11201
11270
  }
11202
11271
 
11203
11272
  // Core API ------------------------------------------------------------------
11204
- const version = "3.2.45";
11273
+ const version = "3.2.47";
11205
11274
  /**
11206
11275
  * SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
11207
11276
  * @internal
@@ -11210,12 +11279,12 @@ var Vue = (function () {
11210
11279
  /**
11211
11280
  * @internal only exposed in compat builds
11212
11281
  */
11213
- const resolveFilter$1 = resolveFilter ;
11282
+ const resolveFilter = resolveFilter$1 ;
11214
11283
  const _compatUtils = {
11215
- warnDeprecation,
11216
- createCompatVue,
11217
- isCompatEnabled,
11218
- checkCompatEnabled,
11284
+ warnDeprecation: warnDeprecation$1,
11285
+ createCompatVue: createCompatVue$1,
11286
+ isCompatEnabled: isCompatEnabled$1,
11287
+ checkCompatEnabled: checkCompatEnabled$1,
11219
11288
  softAssertCompatEnabled
11220
11289
  };
11221
11290
  /**
@@ -11325,9 +11394,6 @@ var Vue = (function () {
11325
11394
  const style = el.style;
11326
11395
  const isCssString = isString(next);
11327
11396
  if (next && !isCssString) {
11328
- for (const key in next) {
11329
- setStyle(style, key, next[key]);
11330
- }
11331
11397
  if (prev && !isString(prev)) {
11332
11398
  for (const key in prev) {
11333
11399
  if (next[key] == null) {
@@ -11335,6 +11401,9 @@ var Vue = (function () {
11335
11401
  }
11336
11402
  }
11337
11403
  }
11404
+ for (const key in next) {
11405
+ setStyle(style, key, next[key]);
11406
+ }
11338
11407
  }
11339
11408
  else {
11340
11409
  const currentDisplay = style.display;
@@ -11365,7 +11434,7 @@ var Vue = (function () {
11365
11434
  val = '';
11366
11435
  {
11367
11436
  if (semicolonRE.test(val)) {
11368
- warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
11437
+ warn(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
11369
11438
  }
11370
11439
  }
11371
11440
  if (name.startsWith('--')) {
@@ -11527,7 +11596,7 @@ var Vue = (function () {
11527
11596
  catch (e) {
11528
11597
  // do not warn if value is auto-coerced from nullish values
11529
11598
  if (!needRemove) {
11530
- warn$1(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` +
11599
+ warn(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` +
11531
11600
  `value ${value} is invalid.`, e);
11532
11601
  }
11533
11602
  }
@@ -11731,7 +11800,7 @@ var Vue = (function () {
11731
11800
  }
11732
11801
  else {
11733
11802
  if (this.shadowRoot) {
11734
- warn$1(`Custom element has pre-rendered declarative shadow root but is not ` +
11803
+ warn(`Custom element has pre-rendered declarative shadow root but is not ` +
11735
11804
  `defined as hydratable. Use \`defineSSRCustomElement\`.`);
11736
11805
  }
11737
11806
  this.attachShadow({ mode: 'open' });
@@ -11937,7 +12006,7 @@ var Vue = (function () {
11937
12006
  /* istanbul ignore else */
11938
12007
  {
11939
12008
  {
11940
- warn$1(`useCssModule() is not supported in the global build.`);
12009
+ warn(`useCssModule() is not supported in the global build.`);
11941
12010
  }
11942
12011
  return EMPTY_OBJ;
11943
12012
  }
@@ -11951,7 +12020,7 @@ var Vue = (function () {
11951
12020
  const instance = getCurrentInstance();
11952
12021
  /* istanbul ignore next */
11953
12022
  if (!instance) {
11954
- warn$1(`useCssVars is called without current active component instance.`);
12023
+ warn(`useCssVars is called without current active component instance.`);
11955
12024
  return;
11956
12025
  }
11957
12026
  const updateTeleports = (instance.ut = (vars = getter(instance.proxy)) => {
@@ -12008,7 +12077,7 @@ var Vue = (function () {
12008
12077
  }
12009
12078
  }
12010
12079
 
12011
- const TRANSITION = 'transition';
12080
+ const TRANSITION$1 = 'transition';
12012
12081
  const ANIMATION = 'animation';
12013
12082
  // DOM Transition is a higher-order-component based on the platform-agnostic
12014
12083
  // base Transition component, with DOM-specific logic.
@@ -12041,7 +12110,7 @@ var Vue = (function () {
12041
12110
  * #3227 Incoming hooks may be merged into arrays when wrapping Transition
12042
12111
  * with custom HOCs.
12043
12112
  */
12044
- const callHook$1 = (hook, args = []) => {
12113
+ const callHook = (hook, args = []) => {
12045
12114
  if (isArray(hook)) {
12046
12115
  hook.forEach(h => h(...args));
12047
12116
  }
@@ -12108,11 +12177,16 @@ var Vue = (function () {
12108
12177
  return (el, done) => {
12109
12178
  const hook = isAppear ? onAppear : onEnter;
12110
12179
  const resolve = () => finishEnter(el, isAppear, done);
12111
- callHook$1(hook, [el, resolve]);
12180
+ callHook(hook, [el, resolve]);
12112
12181
  nextFrame(() => {
12113
12182
  removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
12114
12183
  if (legacyClassEnabled) {
12115
- removeTransitionClass(el, isAppear ? legacyAppearFromClass : legacyEnterFromClass);
12184
+ const legacyClass = isAppear
12185
+ ? legacyAppearFromClass
12186
+ : legacyEnterFromClass;
12187
+ if (legacyClass) {
12188
+ removeTransitionClass(el, legacyClass);
12189
+ }
12116
12190
  }
12117
12191
  addTransitionClass(el, isAppear ? appearToClass : enterToClass);
12118
12192
  if (!hasExplicitCallback(hook)) {
@@ -12123,17 +12197,17 @@ var Vue = (function () {
12123
12197
  };
12124
12198
  return extend(baseProps, {
12125
12199
  onBeforeEnter(el) {
12126
- callHook$1(onBeforeEnter, [el]);
12200
+ callHook(onBeforeEnter, [el]);
12127
12201
  addTransitionClass(el, enterFromClass);
12128
- if (legacyClassEnabled) {
12202
+ if (legacyClassEnabled && legacyEnterFromClass) {
12129
12203
  addTransitionClass(el, legacyEnterFromClass);
12130
12204
  }
12131
12205
  addTransitionClass(el, enterActiveClass);
12132
12206
  },
12133
12207
  onBeforeAppear(el) {
12134
- callHook$1(onBeforeAppear, [el]);
12208
+ callHook(onBeforeAppear, [el]);
12135
12209
  addTransitionClass(el, appearFromClass);
12136
- if (legacyClassEnabled) {
12210
+ if (legacyClassEnabled && legacyAppearFromClass) {
12137
12211
  addTransitionClass(el, legacyAppearFromClass);
12138
12212
  }
12139
12213
  addTransitionClass(el, appearActiveClass);
@@ -12144,7 +12218,7 @@ var Vue = (function () {
12144
12218
  el._isLeaving = true;
12145
12219
  const resolve = () => finishLeave(el, done);
12146
12220
  addTransitionClass(el, leaveFromClass);
12147
- if (legacyClassEnabled) {
12221
+ if (legacyClassEnabled && legacyLeaveFromClass) {
12148
12222
  addTransitionClass(el, legacyLeaveFromClass);
12149
12223
  }
12150
12224
  // force reflow so *-leave-from classes immediately take effect (#2593)
@@ -12156,7 +12230,7 @@ var Vue = (function () {
12156
12230
  return;
12157
12231
  }
12158
12232
  removeTransitionClass(el, leaveFromClass);
12159
- if (legacyClassEnabled) {
12233
+ if (legacyClassEnabled && legacyLeaveFromClass) {
12160
12234
  removeTransitionClass(el, legacyLeaveFromClass);
12161
12235
  }
12162
12236
  addTransitionClass(el, leaveToClass);
@@ -12164,19 +12238,19 @@ var Vue = (function () {
12164
12238
  whenTransitionEnds(el, type, leaveDuration, resolve);
12165
12239
  }
12166
12240
  });
12167
- callHook$1(onLeave, [el, resolve]);
12241
+ callHook(onLeave, [el, resolve]);
12168
12242
  },
12169
12243
  onEnterCancelled(el) {
12170
12244
  finishEnter(el, false);
12171
- callHook$1(onEnterCancelled, [el]);
12245
+ callHook(onEnterCancelled, [el]);
12172
12246
  },
12173
12247
  onAppearCancelled(el) {
12174
12248
  finishEnter(el, true);
12175
- callHook$1(onAppearCancelled, [el]);
12249
+ callHook(onAppearCancelled, [el]);
12176
12250
  },
12177
12251
  onLeaveCancelled(el) {
12178
12252
  finishLeave(el);
12179
- callHook$1(onLeaveCancelled, [el]);
12253
+ callHook(onLeaveCancelled, [el]);
12180
12254
  }
12181
12255
  });
12182
12256
  }
@@ -12194,18 +12268,10 @@ var Vue = (function () {
12194
12268
  }
12195
12269
  function NumberOf(val) {
12196
12270
  const res = toNumber(val);
12197
- validateDuration(res);
12198
- return res;
12199
- }
12200
- function validateDuration(val) {
12201
- if (typeof val !== 'number') {
12202
- warn$1(`<transition> explicit duration is not a valid number - ` +
12203
- `got ${JSON.stringify(val)}.`);
12204
- }
12205
- else if (isNaN(val)) {
12206
- warn$1(`<transition> explicit duration is NaN - ` +
12207
- 'the duration expression might be incorrect.');
12271
+ {
12272
+ assertNumber(res, '<transition> explicit duration');
12208
12273
  }
12274
+ return res;
12209
12275
  }
12210
12276
  function addTransitionClass(el, cls) {
12211
12277
  cls.split(/\s+/).forEach(c => c && el.classList.add(c));
@@ -12264,8 +12330,8 @@ var Vue = (function () {
12264
12330
  const styles = window.getComputedStyle(el);
12265
12331
  // JSDOM may return undefined for transition properties
12266
12332
  const getStyleProperties = (key) => (styles[key] || '').split(', ');
12267
- const transitionDelays = getStyleProperties(`${TRANSITION}Delay`);
12268
- const transitionDurations = getStyleProperties(`${TRANSITION}Duration`);
12333
+ const transitionDelays = getStyleProperties(`${TRANSITION$1}Delay`);
12334
+ const transitionDurations = getStyleProperties(`${TRANSITION$1}Duration`);
12269
12335
  const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
12270
12336
  const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
12271
12337
  const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
@@ -12274,9 +12340,9 @@ var Vue = (function () {
12274
12340
  let timeout = 0;
12275
12341
  let propCount = 0;
12276
12342
  /* istanbul ignore if */
12277
- if (expectedType === TRANSITION) {
12343
+ if (expectedType === TRANSITION$1) {
12278
12344
  if (transitionTimeout > 0) {
12279
- type = TRANSITION;
12345
+ type = TRANSITION$1;
12280
12346
  timeout = transitionTimeout;
12281
12347
  propCount = transitionDurations.length;
12282
12348
  }
@@ -12293,17 +12359,17 @@ var Vue = (function () {
12293
12359
  type =
12294
12360
  timeout > 0
12295
12361
  ? transitionTimeout > animationTimeout
12296
- ? TRANSITION
12362
+ ? TRANSITION$1
12297
12363
  : ANIMATION
12298
12364
  : null;
12299
12365
  propCount = type
12300
- ? type === TRANSITION
12366
+ ? type === TRANSITION$1
12301
12367
  ? transitionDurations.length
12302
12368
  : animationDurations.length
12303
12369
  : 0;
12304
12370
  }
12305
- const hasTransform = type === TRANSITION &&
12306
- /\b(transform|all)(,|$)/.test(getStyleProperties(`${TRANSITION}Property`).toString());
12371
+ const hasTransform = type === TRANSITION$1 &&
12372
+ /\b(transform|all)(,|$)/.test(getStyleProperties(`${TRANSITION$1}Property`).toString());
12307
12373
  return {
12308
12374
  type,
12309
12375
  timeout,
@@ -12392,7 +12458,7 @@ var Vue = (function () {
12392
12458
  setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));
12393
12459
  }
12394
12460
  else {
12395
- warn$1(`<TransitionGroup> children must be keyed.`);
12461
+ warn(`<TransitionGroup> children must be keyed.`);
12396
12462
  }
12397
12463
  }
12398
12464
  if (prevChildren) {
@@ -12409,6 +12475,14 @@ var Vue = (function () {
12409
12475
  {
12410
12476
  TransitionGroupImpl.__isBuiltIn = true;
12411
12477
  }
12478
+ /**
12479
+ * TransitionGroup does not support "mode" so we need to remove it from the
12480
+ * props declarations, but direct delete operation is considered a side effect
12481
+ * and will make the entire transition feature non-tree-shakeable, so we do it
12482
+ * in a function and mark the function's invocation as pure.
12483
+ */
12484
+ const removeMode = (props) => delete props.mode;
12485
+ /*#__PURE__*/ removeMode(TransitionGroupImpl.props);
12412
12486
  const TransitionGroup = TransitionGroupImpl;
12413
12487
  function callPendingCbs(c) {
12414
12488
  const el = c.el;
@@ -12484,7 +12558,7 @@ var Vue = (function () {
12484
12558
  domValue = domValue.trim();
12485
12559
  }
12486
12560
  if (castToNumber) {
12487
- domValue = toNumber(domValue);
12561
+ domValue = looseToNumber(domValue);
12488
12562
  }
12489
12563
  el._assign(domValue);
12490
12564
  });
@@ -12519,7 +12593,8 @@ var Vue = (function () {
12519
12593
  if (trim && el.value.trim() === value) {
12520
12594
  return;
12521
12595
  }
12522
- if ((number || el.type === 'number') && toNumber(el.value) === value) {
12596
+ if ((number || el.type === 'number') &&
12597
+ looseToNumber(el.value) === value) {
12523
12598
  return;
12524
12599
  }
12525
12600
  }
@@ -12608,7 +12683,7 @@ var Vue = (function () {
12608
12683
  addEventListener(el, 'change', () => {
12609
12684
  const selectedVal = Array.prototype.filter
12610
12685
  .call(el.options, (o) => o.selected)
12611
- .map((o) => number ? toNumber(getValue(o)) : getValue(o));
12686
+ .map((o) => number ? looseToNumber(getValue(o)) : getValue(o));
12612
12687
  el._assign(el.multiple
12613
12688
  ? isSetModel
12614
12689
  ? new Set(selectedVal)
@@ -12632,7 +12707,7 @@ var Vue = (function () {
12632
12707
  function setSelected(el, value) {
12633
12708
  const isMultiple = el.multiple;
12634
12709
  if (isMultiple && !isArray(value) && !isSet(value)) {
12635
- warn$1(`<select multiple v-model> expects an Array or Set value for its binding, ` +
12710
+ warn(`<select multiple v-model> expects an Array or Set value for its binding, ` +
12636
12711
  `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);
12637
12712
  return;
12638
12713
  }
@@ -12928,7 +13003,7 @@ var Vue = (function () {
12928
13003
  return isCustomElement;
12929
13004
  },
12930
13005
  set() {
12931
- warn$1(`The \`isCustomElement\` config option is deprecated. Use ` +
13006
+ warn(`The \`isCustomElement\` config option is deprecated. Use ` +
12932
13007
  `\`compilerOptions.isCustomElement\` instead.`);
12933
13008
  }
12934
13009
  });
@@ -12942,11 +13017,11 @@ var Vue = (function () {
12942
13017
  `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;
12943
13018
  Object.defineProperty(app.config, 'compilerOptions', {
12944
13019
  get() {
12945
- warn$1(msg);
13020
+ warn(msg);
12946
13021
  return compilerOptions;
12947
13022
  },
12948
13023
  set() {
12949
- warn$1(msg);
13024
+ warn(msg);
12950
13025
  }
12951
13026
  });
12952
13027
  }
@@ -12955,14 +13030,14 @@ var Vue = (function () {
12955
13030
  if (isString(container)) {
12956
13031
  const res = document.querySelector(container);
12957
13032
  if (!res) {
12958
- warn$1(`Failed to mount app: mount target selector "${container}" returned null.`);
13033
+ warn(`Failed to mount app: mount target selector "${container}" returned null.`);
12959
13034
  }
12960
13035
  return res;
12961
13036
  }
12962
13037
  if (window.ShadowRoot &&
12963
13038
  container instanceof window.ShadowRoot &&
12964
13039
  container.mode === 'closed') {
12965
- warn$1(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
13040
+ warn(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
12966
13041
  }
12967
13042
  return container;
12968
13043
  }
@@ -12973,150 +13048,151 @@ var Vue = (function () {
12973
13048
 
12974
13049
  var runtimeDom = /*#__PURE__*/Object.freeze({
12975
13050
  __proto__: null,
12976
- render: render,
12977
- hydrate: hydrate,
13051
+ BaseTransition: BaseTransition,
13052
+ Comment: Comment,
13053
+ EffectScope: EffectScope,
13054
+ Fragment: Fragment,
13055
+ KeepAlive: KeepAlive,
13056
+ ReactiveEffect: ReactiveEffect,
13057
+ Static: Static,
13058
+ Suspense: Suspense,
13059
+ Teleport: Teleport,
13060
+ Text: Text,
13061
+ Transition: Transition,
13062
+ TransitionGroup: TransitionGroup,
13063
+ VueElement: VueElement,
13064
+ assertNumber: assertNumber,
13065
+ callWithAsyncErrorHandling: callWithAsyncErrorHandling,
13066
+ callWithErrorHandling: callWithErrorHandling,
13067
+ camelize: camelize,
13068
+ capitalize: capitalize,
13069
+ cloneVNode: cloneVNode,
13070
+ compatUtils: compatUtils,
13071
+ computed: computed,
12978
13072
  createApp: createApp,
13073
+ createBlock: createBlock,
13074
+ createCommentVNode: createCommentVNode,
13075
+ createElementBlock: createElementBlock,
13076
+ createElementVNode: createBaseVNode,
13077
+ createHydrationRenderer: createHydrationRenderer,
13078
+ createPropsRestProxy: createPropsRestProxy,
13079
+ createRenderer: createRenderer,
12979
13080
  createSSRApp: createSSRApp,
12980
- initDirectivesForSSR: initDirectivesForSSR,
13081
+ createSlots: createSlots,
13082
+ createStaticVNode: createStaticVNode,
13083
+ createTextVNode: createTextVNode,
13084
+ createVNode: createVNode,
13085
+ customRef: customRef,
13086
+ defineAsyncComponent: defineAsyncComponent,
13087
+ defineComponent: defineComponent,
12981
13088
  defineCustomElement: defineCustomElement,
13089
+ defineEmits: defineEmits,
13090
+ defineExpose: defineExpose,
13091
+ defineProps: defineProps,
12982
13092
  defineSSRCustomElement: defineSSRCustomElement,
12983
- VueElement: VueElement,
12984
- useCssModule: useCssModule,
12985
- useCssVars: useCssVars,
12986
- Transition: Transition,
12987
- TransitionGroup: TransitionGroup,
12988
- vModelText: vModelText,
12989
- vModelCheckbox: vModelCheckbox,
12990
- vModelRadio: vModelRadio,
12991
- vModelSelect: vModelSelect,
12992
- vModelDynamic: vModelDynamic,
12993
- withModifiers: withModifiers,
12994
- withKeys: withKeys,
12995
- vShow: vShow,
12996
- reactive: reactive,
12997
- ref: ref,
12998
- readonly: readonly,
12999
- unref: unref,
13000
- proxyRefs: proxyRefs,
13001
- isRef: isRef,
13002
- toRef: toRef,
13003
- toRefs: toRefs,
13093
+ get devtools () { return devtools; },
13094
+ effect: effect,
13095
+ effectScope: effectScope,
13096
+ getCurrentInstance: getCurrentInstance,
13097
+ getCurrentScope: getCurrentScope,
13098
+ getTransitionRawChildren: getTransitionRawChildren,
13099
+ guardReactiveProps: guardReactiveProps,
13100
+ h: h,
13101
+ handleError: handleError,
13102
+ hydrate: hydrate,
13103
+ initCustomFormatter: initCustomFormatter,
13104
+ initDirectivesForSSR: initDirectivesForSSR,
13105
+ inject: inject,
13106
+ isMemoSame: isMemoSame,
13004
13107
  isProxy: isProxy,
13005
13108
  isReactive: isReactive,
13006
13109
  isReadonly: isReadonly,
13110
+ isRef: isRef,
13111
+ isRuntimeOnly: isRuntimeOnly,
13007
13112
  isShallow: isShallow,
13008
- customRef: customRef,
13009
- triggerRef: triggerRef,
13010
- shallowRef: shallowRef,
13011
- shallowReactive: shallowReactive,
13012
- shallowReadonly: shallowReadonly,
13113
+ isVNode: isVNode,
13013
13114
  markRaw: markRaw,
13014
- toRaw: toRaw,
13015
- effect: effect,
13016
- stop: stop,
13017
- ReactiveEffect: ReactiveEffect,
13018
- effectScope: effectScope,
13019
- EffectScope: EffectScope,
13020
- getCurrentScope: getCurrentScope,
13021
- onScopeDispose: onScopeDispose,
13022
- computed: computed$1,
13023
- watch: watch,
13024
- watchEffect: watchEffect,
13025
- watchPostEffect: watchPostEffect,
13026
- watchSyncEffect: watchSyncEffect,
13115
+ mergeDefaults: mergeDefaults,
13116
+ mergeProps: mergeProps,
13117
+ nextTick: nextTick,
13118
+ normalizeClass: normalizeClass,
13119
+ normalizeProps: normalizeProps,
13120
+ normalizeStyle: normalizeStyle,
13121
+ onActivated: onActivated,
13027
13122
  onBeforeMount: onBeforeMount,
13028
- onMounted: onMounted,
13029
- onBeforeUpdate: onBeforeUpdate,
13030
- onUpdated: onUpdated,
13031
13123
  onBeforeUnmount: onBeforeUnmount,
13032
- onUnmounted: onUnmounted,
13033
- onActivated: onActivated,
13124
+ onBeforeUpdate: onBeforeUpdate,
13034
13125
  onDeactivated: onDeactivated,
13126
+ onErrorCaptured: onErrorCaptured,
13127
+ onMounted: onMounted,
13035
13128
  onRenderTracked: onRenderTracked,
13036
13129
  onRenderTriggered: onRenderTriggered,
13037
- onErrorCaptured: onErrorCaptured,
13130
+ onScopeDispose: onScopeDispose,
13038
13131
  onServerPrefetch: onServerPrefetch,
13132
+ onUnmounted: onUnmounted,
13133
+ onUpdated: onUpdated,
13134
+ openBlock: openBlock,
13135
+ popScopeId: popScopeId,
13039
13136
  provide: provide,
13040
- inject: inject,
13041
- nextTick: nextTick,
13042
- defineComponent: defineComponent,
13043
- defineAsyncComponent: defineAsyncComponent,
13044
- useAttrs: useAttrs,
13045
- useSlots: useSlots,
13046
- defineProps: defineProps,
13047
- defineEmits: defineEmits,
13048
- defineExpose: defineExpose,
13049
- withDefaults: withDefaults,
13050
- mergeDefaults: mergeDefaults,
13051
- createPropsRestProxy: createPropsRestProxy,
13052
- withAsyncContext: withAsyncContext,
13053
- getCurrentInstance: getCurrentInstance,
13054
- h: h,
13055
- createVNode: createVNode,
13056
- cloneVNode: cloneVNode,
13057
- mergeProps: mergeProps,
13058
- isVNode: isVNode,
13059
- Fragment: Fragment,
13060
- Text: Text,
13061
- Comment: Comment,
13062
- Static: Static,
13063
- Teleport: Teleport,
13064
- Suspense: Suspense,
13065
- KeepAlive: KeepAlive,
13066
- BaseTransition: BaseTransition,
13067
- withDirectives: withDirectives,
13068
- useSSRContext: useSSRContext,
13069
- ssrContextKey: ssrContextKey,
13070
- createRenderer: createRenderer,
13071
- createHydrationRenderer: createHydrationRenderer,
13137
+ proxyRefs: proxyRefs,
13138
+ pushScopeId: pushScopeId,
13072
13139
  queuePostFlushCb: queuePostFlushCb,
13073
- warn: warn$1,
13074
- handleError: handleError,
13075
- callWithErrorHandling: callWithErrorHandling,
13076
- callWithAsyncErrorHandling: callWithAsyncErrorHandling,
13140
+ reactive: reactive,
13141
+ readonly: readonly,
13142
+ ref: ref,
13143
+ registerRuntimeCompiler: registerRuntimeCompiler,
13144
+ render: render,
13145
+ renderList: renderList,
13146
+ renderSlot: renderSlot,
13077
13147
  resolveComponent: resolveComponent,
13078
13148
  resolveDirective: resolveDirective,
13079
13149
  resolveDynamicComponent: resolveDynamicComponent,
13080
- registerRuntimeCompiler: registerRuntimeCompiler,
13081
- isRuntimeOnly: isRuntimeOnly,
13082
- useTransitionState: useTransitionState,
13150
+ resolveFilter: resolveFilter,
13083
13151
  resolveTransitionHooks: resolveTransitionHooks,
13084
- setTransitionHooks: setTransitionHooks,
13085
- getTransitionRawChildren: getTransitionRawChildren,
13086
- initCustomFormatter: initCustomFormatter,
13087
- get devtools () { return devtools; },
13088
- setDevtoolsHook: setDevtoolsHook,
13089
- withCtx: withCtx,
13090
- pushScopeId: pushScopeId,
13091
- popScopeId: popScopeId,
13092
- withScopeId: withScopeId,
13093
- renderList: renderList,
13094
- toHandlers: toHandlers,
13095
- renderSlot: renderSlot,
13096
- createSlots: createSlots,
13097
- withMemo: withMemo,
13098
- isMemoSame: isMemoSame,
13099
- openBlock: openBlock,
13100
- createBlock: createBlock,
13101
13152
  setBlockTracking: setBlockTracking,
13102
- createTextVNode: createTextVNode,
13103
- createCommentVNode: createCommentVNode,
13104
- createStaticVNode: createStaticVNode,
13105
- createElementVNode: createBaseVNode,
13106
- createElementBlock: createElementBlock,
13107
- guardReactiveProps: guardReactiveProps,
13153
+ setDevtoolsHook: setDevtoolsHook,
13154
+ setTransitionHooks: setTransitionHooks,
13155
+ shallowReactive: shallowReactive,
13156
+ shallowReadonly: shallowReadonly,
13157
+ shallowRef: shallowRef,
13158
+ ssrContextKey: ssrContextKey,
13159
+ ssrUtils: ssrUtils,
13160
+ stop: stop,
13108
13161
  toDisplayString: toDisplayString,
13109
- camelize: camelize,
13110
- capitalize: capitalize,
13111
13162
  toHandlerKey: toHandlerKey,
13112
- normalizeProps: normalizeProps,
13113
- normalizeClass: normalizeClass,
13114
- normalizeStyle: normalizeStyle,
13163
+ toHandlers: toHandlers,
13164
+ toRaw: toRaw,
13165
+ toRef: toRef,
13166
+ toRefs: toRefs,
13115
13167
  transformVNodeArgs: transformVNodeArgs,
13168
+ triggerRef: triggerRef,
13169
+ unref: unref,
13170
+ useAttrs: useAttrs,
13171
+ useCssModule: useCssModule,
13172
+ useCssVars: useCssVars,
13173
+ useSSRContext: useSSRContext,
13174
+ useSlots: useSlots,
13175
+ useTransitionState: useTransitionState,
13176
+ vModelCheckbox: vModelCheckbox,
13177
+ vModelDynamic: vModelDynamic,
13178
+ vModelRadio: vModelRadio,
13179
+ vModelSelect: vModelSelect,
13180
+ vModelText: vModelText,
13181
+ vShow: vShow,
13116
13182
  version: version,
13117
- ssrUtils: ssrUtils,
13118
- resolveFilter: resolveFilter$1,
13119
- compatUtils: compatUtils
13183
+ warn: warn,
13184
+ watch: watch,
13185
+ watchEffect: watchEffect,
13186
+ watchPostEffect: watchPostEffect,
13187
+ watchSyncEffect: watchSyncEffect,
13188
+ withAsyncContext: withAsyncContext,
13189
+ withCtx: withCtx,
13190
+ withDefaults: withDefaults,
13191
+ withDirectives: withDirectives,
13192
+ withKeys: withKeys,
13193
+ withMemo: withMemo,
13194
+ withModifiers: withModifiers,
13195
+ withScopeId: withScopeId
13120
13196
  });
13121
13197
 
13122
13198
  function initDev() {
@@ -13150,7 +13226,7 @@ var Vue = (function () {
13150
13226
  }
13151
13227
  return app;
13152
13228
  }
13153
- function createCompatVue$1() {
13229
+ function createCompatVue() {
13154
13230
  const Vue = compatUtils.createCompatVue(createApp, wrappedCreateApp);
13155
13231
  extend(Vue, runtimeDom);
13156
13232
  return Vue;
@@ -13212,7 +13288,7 @@ var Vue = (function () {
13212
13288
  [34 /* ErrorCodes.X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,
13213
13289
  [35 /* ErrorCodes.X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,
13214
13290
  [36 /* ErrorCodes.X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,
13215
- [37 /* ErrorCodes.X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +
13291
+ [37 /* ErrorCodes.X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>. ` +
13216
13292
  `When there are multiple named slots, all slots should use <template> ` +
13217
13293
  `syntax to avoid scope ambiguity.`,
13218
13294
  [38 /* ErrorCodes.X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,
@@ -13335,7 +13411,7 @@ var Vue = (function () {
13335
13411
  return {
13336
13412
  type: 0 /* NodeTypes.ROOT */,
13337
13413
  children,
13338
- helpers: [],
13414
+ helpers: new Set(),
13339
13415
  components: [],
13340
13416
  directives: [],
13341
13417
  hoists: [],
@@ -13633,7 +13709,7 @@ var Vue = (function () {
13633
13709
  !p.arg.isStatic) // v-bind:[foo]
13634
13710
  );
13635
13711
  }
13636
- function isText(node) {
13712
+ function isText$1(node) {
13637
13713
  return node.type === 5 /* NodeTypes.INTERPOLATION */ || node.type === 2 /* NodeTypes.TEXT */;
13638
13714
  }
13639
13715
  function isVSlot(p) {
@@ -13781,7 +13857,7 @@ var Vue = (function () {
13781
13857
  }
13782
13858
  }
13783
13859
 
13784
- const deprecationData$1 = {
13860
+ const deprecationData = {
13785
13861
  ["COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */]: {
13786
13862
  message: `Platform-native elements with "is" prop will no longer be ` +
13787
13863
  `treated as components in Vue 3 unless the "is" value is explicitly ` +
@@ -13845,26 +13921,26 @@ var Vue = (function () {
13845
13921
  return value;
13846
13922
  }
13847
13923
  }
13848
- function isCompatEnabled$1(key, context) {
13924
+ function isCompatEnabled(key, context) {
13849
13925
  const mode = getCompatValue('MODE', context);
13850
13926
  const value = getCompatValue(key, context);
13851
13927
  // in v3 mode, only enable if explicitly set to true
13852
13928
  // otherwise enable for any non-false value
13853
13929
  return mode === 3 ? value === true : value !== false;
13854
13930
  }
13855
- function checkCompatEnabled$1(key, context, loc, ...args) {
13856
- const enabled = isCompatEnabled$1(key, context);
13931
+ function checkCompatEnabled(key, context, loc, ...args) {
13932
+ const enabled = isCompatEnabled(key, context);
13857
13933
  if (enabled) {
13858
- warnDeprecation$1(key, context, loc, ...args);
13934
+ warnDeprecation(key, context, loc, ...args);
13859
13935
  }
13860
13936
  return enabled;
13861
13937
  }
13862
- function warnDeprecation$1(key, context, loc, ...args) {
13938
+ function warnDeprecation(key, context, loc, ...args) {
13863
13939
  const val = getCompatValue(key, context);
13864
13940
  if (val === 'suppress-warning') {
13865
13941
  return;
13866
13942
  }
13867
- const { message, link } = deprecationData$1[key];
13943
+ const { message, link } = deprecationData[key];
13868
13944
  const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`;
13869
13945
  const err = new SyntaxError(msg);
13870
13946
  err.code = key;
@@ -13986,12 +14062,12 @@ var Vue = (function () {
13986
14062
  else if (/[a-z]/i.test(s[1])) {
13987
14063
  node = parseElement(context, ancestors);
13988
14064
  // 2.x <template> with no directive compat
13989
- if (isCompatEnabled$1("COMPILER_NATIVE_TEMPLATE" /* CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE */, context) &&
14065
+ if (isCompatEnabled("COMPILER_NATIVE_TEMPLATE" /* CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE */, context) &&
13990
14066
  node &&
13991
14067
  node.tag === 'template' &&
13992
14068
  !node.props.some(p => p.type === 7 /* NodeTypes.DIRECTIVE */ &&
13993
14069
  isSpecialTemplateDirective(p.name))) {
13994
- warnDeprecation$1("COMPILER_NATIVE_TEMPLATE" /* CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE */, context, node.loc);
14070
+ warnDeprecation("COMPILER_NATIVE_TEMPLATE" /* CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE */, context, node.loc);
13995
14071
  node = node.children;
13996
14072
  }
13997
14073
  }
@@ -14191,7 +14267,7 @@ var Vue = (function () {
14191
14267
  {
14192
14268
  const inlineTemplateProp = element.props.find(p => p.type === 6 /* NodeTypes.ATTRIBUTE */ && p.name === 'inline-template');
14193
14269
  if (inlineTemplateProp &&
14194
- checkCompatEnabled$1("COMPILER_INLINE_TEMPLATE" /* CompilerDeprecationTypes.COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {
14270
+ checkCompatEnabled("COMPILER_INLINE_TEMPLATE" /* CompilerDeprecationTypes.COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {
14195
14271
  const loc = getSelection(context, element.loc.end);
14196
14272
  inlineTemplateProp.value = {
14197
14273
  type: 2 /* NodeTypes.TEXT */,
@@ -14268,7 +14344,7 @@ var Vue = (function () {
14268
14344
  return;
14269
14345
  }
14270
14346
  // 2.x deprecation checks
14271
- if (isCompatEnabled$1("COMPILER_V_IF_V_FOR_PRECEDENCE" /* CompilerDeprecationTypes.COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {
14347
+ if (isCompatEnabled("COMPILER_V_IF_V_FOR_PRECEDENCE" /* CompilerDeprecationTypes.COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {
14272
14348
  let hasIf = false;
14273
14349
  let hasFor = false;
14274
14350
  for (let i = 0; i < props.length; i++) {
@@ -14282,7 +14358,7 @@ var Vue = (function () {
14282
14358
  }
14283
14359
  }
14284
14360
  if (hasIf && hasFor) {
14285
- warnDeprecation$1("COMPILER_V_IF_V_FOR_PRECEDENCE" /* CompilerDeprecationTypes.COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));
14361
+ warnDeprecation("COMPILER_V_IF_V_FOR_PRECEDENCE" /* CompilerDeprecationTypes.COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));
14286
14362
  break;
14287
14363
  }
14288
14364
  }
@@ -14334,7 +14410,7 @@ var Vue = (function () {
14334
14410
  if (p.value.content.startsWith('vue:')) {
14335
14411
  return true;
14336
14412
  }
14337
- else if (checkCompatEnabled$1("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
14413
+ else if (checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
14338
14414
  return true;
14339
14415
  }
14340
14416
  }
@@ -14350,7 +14426,7 @@ var Vue = (function () {
14350
14426
  p.name === 'bind' &&
14351
14427
  isStaticArgOf(p.arg, 'is') &&
14352
14428
  true &&
14353
- checkCompatEnabled$1("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
14429
+ checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
14354
14430
  return true;
14355
14431
  }
14356
14432
  }
@@ -14476,12 +14552,12 @@ var Vue = (function () {
14476
14552
  // 2.x compat v-bind:foo.sync -> v-model:foo
14477
14553
  if (dirName === 'bind' && arg) {
14478
14554
  if (modifiers.includes('sync') &&
14479
- checkCompatEnabled$1("COMPILER_V_BIND_SYNC" /* CompilerDeprecationTypes.COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {
14555
+ checkCompatEnabled("COMPILER_V_BIND_SYNC" /* CompilerDeprecationTypes.COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {
14480
14556
  dirName = 'model';
14481
14557
  modifiers.splice(modifiers.indexOf('sync'), 1);
14482
14558
  }
14483
14559
  if (modifiers.includes('prop')) {
14484
- checkCompatEnabled$1("COMPILER_V_BIND_PROP" /* CompilerDeprecationTypes.COMPILER_V_BIND_PROP */, context, loc);
14560
+ checkCompatEnabled("COMPILER_V_BIND_PROP" /* CompilerDeprecationTypes.COMPILER_V_BIND_PROP */, context, loc);
14485
14561
  }
14486
14562
  }
14487
14563
  return {
@@ -14696,7 +14772,7 @@ var Vue = (function () {
14696
14772
  }
14697
14773
 
14698
14774
  function hoistStatic(root, context) {
14699
- walk$1(root, context,
14775
+ walk(root, context,
14700
14776
  // Root node is unfortunately non-hoistable due to potential parent
14701
14777
  // fallthrough attributes.
14702
14778
  isSingleElementRoot(root, root.children[0]));
@@ -14707,7 +14783,7 @@ var Vue = (function () {
14707
14783
  child.type === 1 /* NodeTypes.ELEMENT */ &&
14708
14784
  !isSlotOutlet(child));
14709
14785
  }
14710
- function walk$1(node, context, doNotHoistNode = false) {
14786
+ function walk(node, context, doNotHoistNode = false) {
14711
14787
  const { children } = node;
14712
14788
  const originalCount = children.length;
14713
14789
  let hoistedCount = 0;
@@ -14756,19 +14832,19 @@ var Vue = (function () {
14756
14832
  if (isComponent) {
14757
14833
  context.scopes.vSlot++;
14758
14834
  }
14759
- walk$1(child, context);
14835
+ walk(child, context);
14760
14836
  if (isComponent) {
14761
14837
  context.scopes.vSlot--;
14762
14838
  }
14763
14839
  }
14764
14840
  else if (child.type === 11 /* NodeTypes.FOR */) {
14765
14841
  // Do not hoist v-for single child because it has to be a block
14766
- walk$1(child, context, child.children.length === 1);
14842
+ walk(child, context, child.children.length === 1);
14767
14843
  }
14768
14844
  else if (child.type === 9 /* NodeTypes.IF */) {
14769
14845
  for (let i = 0; i < child.branches.length; i++) {
14770
14846
  // Do not hoist v-if single child because it has to be a block
14771
- walk$1(child.branches[i], context, child.branches[i].children.length === 1);
14847
+ walk(child.branches[i], context, child.branches[i].children.length === 1);
14772
14848
  }
14773
14849
  }
14774
14850
  }
@@ -15116,7 +15192,7 @@ var Vue = (function () {
15116
15192
  createRootCodegen(root, context);
15117
15193
  }
15118
15194
  // finalize meta information
15119
- root.helpers = [...context.helpers.keys()];
15195
+ root.helpers = new Set([...context.helpers.keys()]);
15120
15196
  root.components = [...context.components];
15121
15197
  root.directives = [...context.directives];
15122
15198
  root.imports = context.imports;
@@ -15322,12 +15398,16 @@ var Vue = (function () {
15322
15398
  if (options.onContextCreated)
15323
15399
  options.onContextCreated(context);
15324
15400
  const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context;
15325
- const hasHelpers = ast.helpers.length > 0;
15401
+ const helpers = Array.from(ast.helpers);
15402
+ const hasHelpers = helpers.length > 0;
15326
15403
  const useWithBlock = !prefixIdentifiers && mode !== 'module';
15404
+ const isSetupInlined = !true ;
15327
15405
  // preambles
15328
15406
  // in setup() inline mode, the preamble is generated in a sub context
15329
15407
  // and returned separately.
15330
- const preambleContext = context;
15408
+ const preambleContext = isSetupInlined
15409
+ ? createCodegenContext(ast, options)
15410
+ : context;
15331
15411
  {
15332
15412
  genFunctionPreamble(ast, preambleContext);
15333
15413
  }
@@ -15345,7 +15425,7 @@ var Vue = (function () {
15345
15425
  // function mode const declarations should be inside with block
15346
15426
  // also they should be renamed to avoid collision with user properties
15347
15427
  if (hasHelpers) {
15348
- push(`const { ${ast.helpers.map(aliasHelper).join(', ')} } = _Vue`);
15428
+ push(`const { ${helpers.map(aliasHelper).join(', ')} } = _Vue`);
15349
15429
  push(`\n`);
15350
15430
  newline();
15351
15431
  }
@@ -15397,7 +15477,7 @@ var Vue = (function () {
15397
15477
  return {
15398
15478
  ast,
15399
15479
  code: context.code,
15400
- preamble: ``,
15480
+ preamble: isSetupInlined ? preambleContext.code : ``,
15401
15481
  // SourceMapGenerator does have toJSON() method but it's not in the types
15402
15482
  map: context.map ? context.map.toJSON() : undefined
15403
15483
  };
@@ -15409,7 +15489,8 @@ var Vue = (function () {
15409
15489
  // In prefix mode, we place the const declaration at top so it's done
15410
15490
  // only once; But if we not prefixing, we place the declaration inside the
15411
15491
  // with block so it doesn't incur the `in` check cost for every helper access.
15412
- if (ast.helpers.length > 0) {
15492
+ const helpers = Array.from(ast.helpers);
15493
+ if (helpers.length > 0) {
15413
15494
  {
15414
15495
  // "with" mode.
15415
15496
  // save Vue in a separate variable to avoid collision
@@ -15425,7 +15506,7 @@ var Vue = (function () {
15425
15506
  CREATE_TEXT,
15426
15507
  CREATE_STATIC
15427
15508
  ]
15428
- .filter(helper => ast.helpers.includes(helper))
15509
+ .filter(helper => helpers.includes(helper))
15429
15510
  .map(aliasHelper)
15430
15511
  .join(', ');
15431
15512
  push(`const { ${staticHelpers} } = _Vue\n`);
@@ -15472,7 +15553,7 @@ var Vue = (function () {
15472
15553
  }
15473
15554
  context.pure = false;
15474
15555
  }
15475
- function isText$1(n) {
15556
+ function isText(n) {
15476
15557
  return (isString(n) ||
15477
15558
  n.type === 4 /* NodeTypes.SIMPLE_EXPRESSION */ ||
15478
15559
  n.type === 2 /* NodeTypes.TEXT */ ||
@@ -15481,7 +15562,7 @@ var Vue = (function () {
15481
15562
  }
15482
15563
  function genNodeListAsArray(nodes, context) {
15483
15564
  const multilines = nodes.length > 3 ||
15484
- (nodes.some(n => isArray(n) || !isText$1(n)));
15565
+ (nodes.some(n => isArray(n) || !isText(n)));
15485
15566
  context.push(`[`);
15486
15567
  multilines && context.indent();
15487
15568
  genNodeList(nodes, context, multilines);
@@ -15821,11 +15902,11 @@ var Vue = (function () {
15821
15902
  }
15822
15903
 
15823
15904
  // these keywords should not appear inside expressions, but operators like
15824
- // typeof, instanceof and in are allowed
15905
+ // 'typeof', 'instanceof', and 'in' are allowed
15825
15906
  const prohibitedKeywordRE = new RegExp('\\b' +
15826
- ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
15827
- 'super,throw,while,yield,delete,export,import,return,switch,default,' +
15828
- 'extends,finally,continue,debugger,function,arguments,typeof,void')
15907
+ ('arguments,await,break,case,catch,class,const,continue,debugger,default,' +
15908
+ 'delete,do,else,export,extends,finally,for,function,if,import,let,new,' +
15909
+ 'return,super,switch,throw,try,var,void,while,with,yield')
15829
15910
  .split(',')
15830
15911
  .join('\\b|\\b') +
15831
15912
  '\\b');
@@ -16723,7 +16804,7 @@ var Vue = (function () {
16723
16804
  const isProp = findProp(node, 'is');
16724
16805
  if (isProp) {
16725
16806
  if (isExplicitDynamic ||
16726
- (isCompatEnabled$1("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context))) {
16807
+ (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context))) {
16727
16808
  const exp = isProp.type === 6 /* NodeTypes.ATTRIBUTE */
16728
16809
  ? isProp.value && createSimpleExpression(isProp.value.content, true)
16729
16810
  : isProp.exp;
@@ -16851,7 +16932,7 @@ var Vue = (function () {
16851
16932
  if (name === 'is' &&
16852
16933
  (isComponentTag(tag) ||
16853
16934
  (value && value.content.startsWith('vue:')) ||
16854
- (isCompatEnabled$1("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context)))) {
16935
+ (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context)))) {
16855
16936
  continue;
16856
16937
  }
16857
16938
  properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));
@@ -16877,7 +16958,7 @@ var Vue = (function () {
16877
16958
  (isVBind &&
16878
16959
  isStaticArgOf(arg, 'is') &&
16879
16960
  (isComponentTag(tag) ||
16880
- (isCompatEnabled$1("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context))))) {
16961
+ (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT */, context))))) {
16881
16962
  continue;
16882
16963
  }
16883
16964
  // skip v-on in SSR compilation
@@ -16923,10 +17004,10 @@ var Vue = (function () {
16923
17004
  }
16924
17005
  });
16925
17006
  if (hasOverridableKeys) {
16926
- checkCompatEnabled$1("COMPILER_V_BIND_OBJECT_ORDER" /* CompilerDeprecationTypes.COMPILER_V_BIND_OBJECT_ORDER */, context, loc);
17007
+ checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* CompilerDeprecationTypes.COMPILER_V_BIND_OBJECT_ORDER */, context, loc);
16927
17008
  }
16928
17009
  }
16929
- if (isCompatEnabled$1("COMPILER_V_BIND_OBJECT_ORDER" /* CompilerDeprecationTypes.COMPILER_V_BIND_OBJECT_ORDER */, context)) {
17010
+ if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* CompilerDeprecationTypes.COMPILER_V_BIND_OBJECT_ORDER */, context)) {
16930
17011
  mergeArgs.unshift(exp);
16931
17012
  continue;
16932
17013
  }
@@ -17106,7 +17187,7 @@ var Vue = (function () {
17106
17187
  const existing = knownProps.get(name);
17107
17188
  if (existing) {
17108
17189
  if (name === 'style' || name === 'class' || isOn(name)) {
17109
- mergeAsArray$1(existing, prop);
17190
+ mergeAsArray(existing, prop);
17110
17191
  }
17111
17192
  // unexpected duplicate, should have emitted error during parse
17112
17193
  }
@@ -17117,7 +17198,7 @@ var Vue = (function () {
17117
17198
  }
17118
17199
  return deduped;
17119
17200
  }
17120
- function mergeAsArray$1(existing, incoming) {
17201
+ function mergeAsArray(existing, incoming) {
17121
17202
  if (existing.value.type === 17 /* NodeTypes.JS_ARRAY_EXPRESSION */) {
17122
17203
  existing.value.elements.push(incoming.value);
17123
17204
  }
@@ -17245,7 +17326,7 @@ var Vue = (function () {
17245
17326
  }
17246
17327
 
17247
17328
  const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
17248
- const transformOn = (dir, node, context, augmentor) => {
17329
+ const transformOn$1 = (dir, node, context, augmentor) => {
17249
17330
  const { loc, modifiers, arg } = dir;
17250
17331
  if (!dir.exp && !modifiers.length) {
17251
17332
  context.onError(createCompilerError(35 /* ErrorCodes.X_V_ON_NO_EXPRESSION */, loc));
@@ -17405,11 +17486,11 @@ var Vue = (function () {
17405
17486
  let hasText = false;
17406
17487
  for (let i = 0; i < children.length; i++) {
17407
17488
  const child = children[i];
17408
- if (isText(child)) {
17489
+ if (isText$1(child)) {
17409
17490
  hasText = true;
17410
17491
  for (let j = i + 1; j < children.length; j++) {
17411
17492
  const next = children[j];
17412
- if (isText(next)) {
17493
+ if (isText$1(next)) {
17413
17494
  if (!currentContainer) {
17414
17495
  currentContainer = children[i] = createCompoundExpression([child], child.loc);
17415
17496
  }
@@ -17451,7 +17532,7 @@ var Vue = (function () {
17451
17532
  // runtime normalization.
17452
17533
  for (let i = 0; i < children.length; i++) {
17453
17534
  const child = children[i];
17454
- if (isText(child) || child.type === 8 /* NodeTypes.COMPOUND_EXPRESSION */) {
17535
+ if (isText$1(child) || child.type === 8 /* NodeTypes.COMPOUND_EXPRESSION */) {
17455
17536
  const callArgs = [];
17456
17537
  // createTextVNode defaults to single whitespace, so if it is a
17457
17538
  // single space the code could be an empty call to save bytes.
@@ -17476,13 +17557,13 @@ var Vue = (function () {
17476
17557
  }
17477
17558
  };
17478
17559
 
17479
- const seen = new WeakSet();
17560
+ const seen$1 = new WeakSet();
17480
17561
  const transformOnce = (node, context) => {
17481
17562
  if (node.type === 1 /* NodeTypes.ELEMENT */ && findDir(node, 'once', true)) {
17482
- if (seen.has(node) || context.inVOnce) {
17563
+ if (seen$1.has(node) || context.inVOnce) {
17483
17564
  return;
17484
17565
  }
17485
- seen.add(node);
17566
+ seen$1.add(node);
17486
17567
  context.inVOnce = true;
17487
17568
  context.helper(SET_BLOCK_TRACKING);
17488
17569
  return () => {
@@ -17495,7 +17576,7 @@ var Vue = (function () {
17495
17576
  }
17496
17577
  };
17497
17578
 
17498
- const transformModel = (dir, node, context) => {
17579
+ const transformModel$1 = (dir, node, context) => {
17499
17580
  const { exp, arg } = dir;
17500
17581
  if (!exp) {
17501
17582
  context.onError(createCompilerError(41 /* ErrorCodes.X_V_MODEL_NO_EXPRESSION */, dir.loc));
@@ -17521,7 +17602,7 @@ var Vue = (function () {
17521
17602
  const propName = arg ? arg : createSimpleExpression('modelValue', true);
17522
17603
  const eventName = arg
17523
17604
  ? isStaticExp(arg)
17524
- ? `onUpdate:${arg.content}`
17605
+ ? `onUpdate:${camelize(arg.content)}`
17525
17606
  : createCompoundExpression(['"onUpdate:" + ', arg])
17526
17607
  : `onUpdate:modelValue`;
17527
17608
  let assignmentExp;
@@ -17559,7 +17640,7 @@ var Vue = (function () {
17559
17640
 
17560
17641
  const validDivisionCharRE = /[\w).+\-_$\]]/;
17561
17642
  const transformFilter = (node, context) => {
17562
- if (!isCompatEnabled$1("COMPILER_FILTER" /* CompilerDeprecationTypes.COMPILER_FILTERS */, context)) {
17643
+ if (!isCompatEnabled("COMPILER_FILTER" /* CompilerDeprecationTypes.COMPILER_FILTERS */, context)) {
17563
17644
  return;
17564
17645
  }
17565
17646
  if (node.type === 5 /* NodeTypes.INTERPOLATION */) {
@@ -17700,7 +17781,7 @@ var Vue = (function () {
17700
17781
  lastFilterIndex = i + 1;
17701
17782
  }
17702
17783
  if (filters.length) {
17703
- warnDeprecation$1("COMPILER_FILTER" /* CompilerDeprecationTypes.COMPILER_FILTERS */, context, node.loc);
17784
+ warnDeprecation("COMPILER_FILTER" /* CompilerDeprecationTypes.COMPILER_FILTERS */, context, node.loc);
17704
17785
  for (i = 0; i < filters.length; i++) {
17705
17786
  expression = wrapFilter(expression, filters[i], context);
17706
17787
  }
@@ -17722,14 +17803,14 @@ var Vue = (function () {
17722
17803
  }
17723
17804
  }
17724
17805
 
17725
- const seen$1 = new WeakSet();
17806
+ const seen = new WeakSet();
17726
17807
  const transformMemo = (node, context) => {
17727
17808
  if (node.type === 1 /* NodeTypes.ELEMENT */) {
17728
17809
  const dir = findDir(node, 'memo');
17729
- if (!dir || seen$1.has(node)) {
17810
+ if (!dir || seen.has(node)) {
17730
17811
  return;
17731
17812
  }
17732
- seen$1.add(node);
17813
+ seen.add(node);
17733
17814
  return () => {
17734
17815
  const codegenNode = node.codegenNode ||
17735
17816
  context.currentNode.codegenNode;
@@ -17765,9 +17846,9 @@ var Vue = (function () {
17765
17846
  transformText
17766
17847
  ],
17767
17848
  {
17768
- on: transformOn,
17849
+ on: transformOn$1,
17769
17850
  bind: transformBind,
17770
- model: transformModel
17851
+ model: transformModel$1
17771
17852
  }
17772
17853
  ];
17773
17854
  }
@@ -17818,7 +17899,7 @@ var Vue = (function () {
17818
17899
  const V_ON_WITH_MODIFIERS = Symbol(`vOnModifiersGuard` );
17819
17900
  const V_ON_WITH_KEYS = Symbol(`vOnKeysGuard` );
17820
17901
  const V_SHOW = Symbol(`vShow` );
17821
- const TRANSITION$1 = Symbol(`Transition` );
17902
+ const TRANSITION = Symbol(`Transition` );
17822
17903
  const TRANSITION_GROUP = Symbol(`TransitionGroup` );
17823
17904
  registerRuntimeHelpers({
17824
17905
  [V_MODEL_RADIO]: `vModelRadio`,
@@ -17829,7 +17910,7 @@ var Vue = (function () {
17829
17910
  [V_ON_WITH_MODIFIERS]: `withModifiers`,
17830
17911
  [V_ON_WITH_KEYS]: `withKeys`,
17831
17912
  [V_SHOW]: `vShow`,
17832
- [TRANSITION$1]: `Transition`,
17913
+ [TRANSITION]: `Transition`,
17833
17914
  [TRANSITION_GROUP]: `TransitionGroup`
17834
17915
  });
17835
17916
 
@@ -17857,7 +17938,7 @@ var Vue = (function () {
17857
17938
  decodeEntities: decodeHtmlBrowser ,
17858
17939
  isBuiltInComponent: (tag) => {
17859
17940
  if (isBuiltInType(tag, `Transition`)) {
17860
- return TRANSITION$1;
17941
+ return TRANSITION;
17861
17942
  }
17862
17943
  else if (isBuiltInType(tag, `TransitionGroup`)) {
17863
17944
  return TRANSITION_GROUP;
@@ -17997,8 +18078,8 @@ var Vue = (function () {
17997
18078
  };
17998
18079
  };
17999
18080
 
18000
- const transformModel$1 = (dir, node, context) => {
18001
- const baseResult = transformModel(dir, node, context);
18081
+ const transformModel = (dir, node, context) => {
18082
+ const baseResult = transformModel$1(dir, node, context);
18002
18083
  // base transform has errors OR component v-model (only need props)
18003
18084
  if (!baseResult.props.length || node.tagType === 1 /* ElementTypes.COMPONENT */) {
18004
18085
  return baseResult;
@@ -18098,7 +18179,7 @@ var Vue = (function () {
18098
18179
  for (let i = 0; i < modifiers.length; i++) {
18099
18180
  const modifier = modifiers[i];
18100
18181
  if (modifier === 'native' &&
18101
- checkCompatEnabled$1("COMPILER_V_ON_NATIVE" /* CompilerDeprecationTypes.COMPILER_V_ON_NATIVE */, context, loc)) {
18182
+ checkCompatEnabled("COMPILER_V_ON_NATIVE" /* CompilerDeprecationTypes.COMPILER_V_ON_NATIVE */, context, loc)) {
18102
18183
  eventOptionModifiers.push(modifier);
18103
18184
  }
18104
18185
  else if (isEventOptionModifier(modifier)) {
@@ -18152,8 +18233,8 @@ var Vue = (function () {
18152
18233
  ])
18153
18234
  : key;
18154
18235
  };
18155
- const transformOn$1 = (dir, node, context) => {
18156
- return transformOn(dir, node, context, baseResult => {
18236
+ const transformOn = (dir, node, context) => {
18237
+ return transformOn$1(dir, node, context, baseResult => {
18157
18238
  const { modifiers } = dir;
18158
18239
  if (!modifiers.length)
18159
18240
  return baseResult;
@@ -18207,7 +18288,7 @@ var Vue = (function () {
18207
18288
  if (node.type === 1 /* NodeTypes.ELEMENT */ &&
18208
18289
  node.tagType === 1 /* ElementTypes.COMPONENT */) {
18209
18290
  const component = context.isBuiltInComponent(node.tag);
18210
- if (component === TRANSITION$1) {
18291
+ if (component === TRANSITION) {
18211
18292
  return () => {
18212
18293
  if (!node.children.length) {
18213
18294
  return;
@@ -18266,11 +18347,11 @@ var Vue = (function () {
18266
18347
  cloak: noopDirectiveTransform,
18267
18348
  html: transformVHtml,
18268
18349
  text: transformVText,
18269
- model: transformModel$1,
18270
- on: transformOn$1,
18350
+ model: transformModel,
18351
+ on: transformOn,
18271
18352
  show: transformShow
18272
18353
  };
18273
- function compile$1(template, options = {}) {
18354
+ function compile(template, options = {}) {
18274
18355
  return baseCompile(template, extend({}, parserOptions, options, {
18275
18356
  nodeTransforms: [
18276
18357
  // ignore <script> and <tag>
@@ -18293,7 +18374,7 @@ var Vue = (function () {
18293
18374
  template = template.innerHTML;
18294
18375
  }
18295
18376
  else {
18296
- warn$1(`invalid template option: `, template);
18377
+ warn(`invalid template option: `, template);
18297
18378
  return NOOP;
18298
18379
  }
18299
18380
  }
@@ -18305,7 +18386,7 @@ var Vue = (function () {
18305
18386
  if (template[0] === '#') {
18306
18387
  const el = document.querySelector(template);
18307
18388
  if (!el) {
18308
- warn$1(`Template element not found or is empty: ${template}`);
18389
+ warn(`Template element not found or is empty: ${template}`);
18309
18390
  }
18310
18391
  // __UNSAFE__
18311
18392
  // Reason: potential execution of JS expressions in in-DOM template.
@@ -18314,9 +18395,9 @@ var Vue = (function () {
18314
18395
  template = el ? el.innerHTML : ``;
18315
18396
  }
18316
18397
  if ((!options || !options.whitespace)) {
18317
- warnDeprecation("CONFIG_WHITESPACE" /* DeprecationTypes.CONFIG_WHITESPACE */, null);
18398
+ warnDeprecation$1("CONFIG_WHITESPACE" /* DeprecationTypes.CONFIG_WHITESPACE */, null);
18318
18399
  }
18319
- const { code } = compile$1(template, extend({
18400
+ const { code } = compile(template, extend({
18320
18401
  hoistStatic: true,
18321
18402
  whitespace: 'preserve',
18322
18403
  onError: onError ,
@@ -18328,7 +18409,7 @@ var Vue = (function () {
18328
18409
  : `Template compilation error: ${err.message}`;
18329
18410
  const codeFrame = err.loc &&
18330
18411
  generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
18331
- warn$1(codeFrame ? `${message}\n${codeFrame}` : message);
18412
+ warn(codeFrame ? `${message}\n${codeFrame}` : message);
18332
18413
  }
18333
18414
  // The wildcard import results in a huge object with every export
18334
18415
  // with keys that cannot be mangled, and can be quite heavy size-wise.
@@ -18339,9 +18420,9 @@ var Vue = (function () {
18339
18420
  return (compileCache[key] = render);
18340
18421
  }
18341
18422
  registerRuntimeCompiler(compileToFunction);
18342
- const Vue = createCompatVue$1();
18423
+ const Vue = createCompatVue();
18343
18424
  Vue.compile = compileToFunction;
18344
18425
 
18345
18426
  return Vue;
18346
18427
 
18347
- }());
18428
+ })();