@vue/compat 3.4.0-alpha.3 → 3.4.0-alpha.4

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.
@@ -8,8 +8,8 @@ const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([])
8
8
  const NOOP = () => {
9
9
  };
10
10
  const NO = () => false;
11
- const onRE = /^on[^a-z]/;
12
- const isOn = (key) => onRE.test(key);
11
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
12
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
13
13
  const isModelListener = (key) => key.startsWith("onUpdate:");
14
14
  const extend = Object.assign;
15
15
  const remove = (arr, el) => {
@@ -94,7 +94,7 @@ const getGlobalThis = () => {
94
94
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
95
95
  };
96
96
 
97
- const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console";
97
+ const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error";
98
98
  const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
99
99
 
100
100
  function normalizeStyle(value) {
@@ -1433,6 +1433,18 @@ function propertyToRef(source, key, defaultValue) {
1433
1433
  return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);
1434
1434
  }
1435
1435
 
1436
+ const TrackOpTypes = {
1437
+ "GET": "get",
1438
+ "HAS": "has",
1439
+ "ITERATE": "iterate"
1440
+ };
1441
+ const TriggerOpTypes = {
1442
+ "SET": "set",
1443
+ "ADD": "add",
1444
+ "DELETE": "delete",
1445
+ "CLEAR": "clear"
1446
+ };
1447
+
1436
1448
  const stack = [];
1437
1449
  function pushWarningContext(vnode) {
1438
1450
  stack.push(vnode);
@@ -1551,6 +1563,38 @@ function assertNumber(val, type) {
1551
1563
  }
1552
1564
  }
1553
1565
 
1566
+ const ErrorCodes = {
1567
+ "SETUP_FUNCTION": 0,
1568
+ "0": "SETUP_FUNCTION",
1569
+ "RENDER_FUNCTION": 1,
1570
+ "1": "RENDER_FUNCTION",
1571
+ "WATCH_GETTER": 2,
1572
+ "2": "WATCH_GETTER",
1573
+ "WATCH_CALLBACK": 3,
1574
+ "3": "WATCH_CALLBACK",
1575
+ "WATCH_CLEANUP": 4,
1576
+ "4": "WATCH_CLEANUP",
1577
+ "NATIVE_EVENT_HANDLER": 5,
1578
+ "5": "NATIVE_EVENT_HANDLER",
1579
+ "COMPONENT_EVENT_HANDLER": 6,
1580
+ "6": "COMPONENT_EVENT_HANDLER",
1581
+ "VNODE_HOOK": 7,
1582
+ "7": "VNODE_HOOK",
1583
+ "DIRECTIVE_HOOK": 8,
1584
+ "8": "DIRECTIVE_HOOK",
1585
+ "TRANSITION_HOOK": 9,
1586
+ "9": "TRANSITION_HOOK",
1587
+ "APP_ERROR_HANDLER": 10,
1588
+ "10": "APP_ERROR_HANDLER",
1589
+ "APP_WARN_HANDLER": 11,
1590
+ "11": "APP_WARN_HANDLER",
1591
+ "FUNCTION_REF": 12,
1592
+ "12": "FUNCTION_REF",
1593
+ "ASYNC_COMPONENT_LOADER": 13,
1594
+ "13": "ASYNC_COMPONENT_LOADER",
1595
+ "SCHEDULER": 14,
1596
+ "14": "SCHEDULER"
1597
+ };
1554
1598
  const ErrorTypeStrings$1 = {
1555
1599
  ["sp"]: "serverPrefetch hook",
1556
1600
  ["bc"]: "beforeCreate hook",
@@ -2035,6 +2079,50 @@ function devtoolsComponentEmit(component, event, params) {
2035
2079
  );
2036
2080
  }
2037
2081
 
2082
+ const DeprecationTypes$1 = {
2083
+ "GLOBAL_MOUNT": "GLOBAL_MOUNT",
2084
+ "GLOBAL_MOUNT_CONTAINER": "GLOBAL_MOUNT_CONTAINER",
2085
+ "GLOBAL_EXTEND": "GLOBAL_EXTEND",
2086
+ "GLOBAL_PROTOTYPE": "GLOBAL_PROTOTYPE",
2087
+ "GLOBAL_SET": "GLOBAL_SET",
2088
+ "GLOBAL_DELETE": "GLOBAL_DELETE",
2089
+ "GLOBAL_OBSERVABLE": "GLOBAL_OBSERVABLE",
2090
+ "GLOBAL_PRIVATE_UTIL": "GLOBAL_PRIVATE_UTIL",
2091
+ "CONFIG_SILENT": "CONFIG_SILENT",
2092
+ "CONFIG_DEVTOOLS": "CONFIG_DEVTOOLS",
2093
+ "CONFIG_KEY_CODES": "CONFIG_KEY_CODES",
2094
+ "CONFIG_PRODUCTION_TIP": "CONFIG_PRODUCTION_TIP",
2095
+ "CONFIG_IGNORED_ELEMENTS": "CONFIG_IGNORED_ELEMENTS",
2096
+ "CONFIG_WHITESPACE": "CONFIG_WHITESPACE",
2097
+ "CONFIG_OPTION_MERGE_STRATS": "CONFIG_OPTION_MERGE_STRATS",
2098
+ "INSTANCE_SET": "INSTANCE_SET",
2099
+ "INSTANCE_DELETE": "INSTANCE_DELETE",
2100
+ "INSTANCE_DESTROY": "INSTANCE_DESTROY",
2101
+ "INSTANCE_EVENT_EMITTER": "INSTANCE_EVENT_EMITTER",
2102
+ "INSTANCE_EVENT_HOOKS": "INSTANCE_EVENT_HOOKS",
2103
+ "INSTANCE_CHILDREN": "INSTANCE_CHILDREN",
2104
+ "INSTANCE_LISTENERS": "INSTANCE_LISTENERS",
2105
+ "INSTANCE_SCOPED_SLOTS": "INSTANCE_SCOPED_SLOTS",
2106
+ "INSTANCE_ATTRS_CLASS_STYLE": "INSTANCE_ATTRS_CLASS_STYLE",
2107
+ "OPTIONS_DATA_FN": "OPTIONS_DATA_FN",
2108
+ "OPTIONS_DATA_MERGE": "OPTIONS_DATA_MERGE",
2109
+ "OPTIONS_BEFORE_DESTROY": "OPTIONS_BEFORE_DESTROY",
2110
+ "OPTIONS_DESTROYED": "OPTIONS_DESTROYED",
2111
+ "WATCH_ARRAY": "WATCH_ARRAY",
2112
+ "PROPS_DEFAULT_THIS": "PROPS_DEFAULT_THIS",
2113
+ "V_ON_KEYCODE_MODIFIER": "V_ON_KEYCODE_MODIFIER",
2114
+ "CUSTOM_DIR": "CUSTOM_DIR",
2115
+ "ATTR_FALSE_VALUE": "ATTR_FALSE_VALUE",
2116
+ "ATTR_ENUMERATED_COERCION": "ATTR_ENUMERATED_COERCION",
2117
+ "TRANSITION_CLASSES": "TRANSITION_CLASSES",
2118
+ "TRANSITION_GROUP_ROOT": "TRANSITION_GROUP_ROOT",
2119
+ "COMPONENT_ASYNC": "COMPONENT_ASYNC",
2120
+ "COMPONENT_FUNCTIONAL": "COMPONENT_FUNCTIONAL",
2121
+ "COMPONENT_V_MODEL": "COMPONENT_V_MODEL",
2122
+ "RENDER_FUNCTION": "RENDER_FUNCTION",
2123
+ "FILTERS": "FILTERS",
2124
+ "PRIVATE_APIS": "PRIVATE_APIS"
2125
+ };
2038
2126
  const deprecationData = {
2039
2127
  ["GLOBAL_MOUNT"]: {
2040
2128
  message: `The global app bootstrapping API has changed: vm.$mount() and the "el" option have been removed. Use createApp(RootComponent).mount() instead.`,
@@ -3352,7 +3440,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3352
3440
  if (delayEnter) {
3353
3441
  activeBranch.transition.afterLeave = () => {
3354
3442
  if (pendingId === suspense.pendingId) {
3355
- move(pendingBranch, container2, anchor2, 0);
3443
+ move(
3444
+ pendingBranch,
3445
+ container2,
3446
+ next(activeBranch),
3447
+ 0
3448
+ );
3356
3449
  queuePostFlushCb(effects);
3357
3450
  }
3358
3451
  };
@@ -3399,7 +3492,6 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3399
3492
  }
3400
3493
  const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
3401
3494
  triggerEvent(vnode2, "onFallback");
3402
- const anchor2 = next(activeBranch);
3403
3495
  const mountFallback = () => {
3404
3496
  if (!suspense.isInFallback) {
3405
3497
  return;
@@ -3408,7 +3500,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3408
3500
  null,
3409
3501
  fallbackVNode,
3410
3502
  container2,
3411
- anchor2,
3503
+ next(activeBranch),
3412
3504
  parentComponent2,
3413
3505
  null,
3414
3506
  // fallback tree will not have suspense context
@@ -6297,7 +6389,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6297
6389
  return vm;
6298
6390
  }
6299
6391
  }
6300
- Vue.version = `2.6.14-compat:${"3.4.0-alpha.3"}`;
6392
+ Vue.version = `2.6.14-compat:${"3.4.0-alpha.4"}`;
6301
6393
  Vue.config = singletonApp.config;
6302
6394
  Vue.use = (p, ...options) => {
6303
6395
  if (p && isFunction(p.install)) {
@@ -6699,18 +6791,6 @@ function createAppAPI(render, hydrate) {
6699
6791
  rootProps = null;
6700
6792
  }
6701
6793
  const context = createAppContext();
6702
- if (!!(process.env.NODE_ENV !== "production")) {
6703
- Object.defineProperty(context.config, "unwrapInjectedRef", {
6704
- get() {
6705
- return true;
6706
- },
6707
- set() {
6708
- warn(
6709
- `app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
6710
- );
6711
- }
6712
- });
6713
- }
6714
6794
  const installedPlugins = /* @__PURE__ */ new WeakSet();
6715
6795
  let isMounted = false;
6716
6796
  const app = context.app = {
@@ -10765,9 +10845,9 @@ function initCustomFormatter() {
10765
10845
  return;
10766
10846
  }
10767
10847
  const vueStyle = { style: "color:#3ba776" };
10768
- const numberStyle = { style: "color:#0b1bc9" };
10769
- const stringStyle = { style: "color:#b62e24" };
10770
- const keywordStyle = { style: "color:#9d288c" };
10848
+ const numberStyle = { style: "color:#1677ff" };
10849
+ const stringStyle = { style: "color:#f5222d" };
10850
+ const keywordStyle = { style: "color:#eb2f96" };
10771
10851
  const formatter = {
10772
10852
  header(obj) {
10773
10853
  if (!isObject(obj)) {
@@ -10961,7 +11041,7 @@ function isMemoSame(cached, memo) {
10961
11041
  return true;
10962
11042
  }
10963
11043
 
10964
- const version = "3.4.0-alpha.3";
11044
+ const version = "3.4.0-alpha.4";
10965
11045
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10966
11046
  const _ssrUtils = {
10967
11047
  createComponentInstance,
@@ -10981,6 +11061,7 @@ const _compatUtils = {
10981
11061
  softAssertCompatEnabled
10982
11062
  };
10983
11063
  const compatUtils = _compatUtils ;
11064
+ const DeprecationTypes = DeprecationTypes$1 ;
10984
11065
 
10985
11066
  const svgNS = "http://www.w3.org/2000/svg";
10986
11067
  const doc = typeof document !== "undefined" ? document : null;
@@ -11676,7 +11757,8 @@ function patchStopImmediatePropagation(e, value) {
11676
11757
  }
11677
11758
  }
11678
11759
 
11679
- const nativeOnRE = /^on[a-z]/;
11760
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
11761
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
11680
11762
  const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
11681
11763
  if (key === "class") {
11682
11764
  patchClass(el, nextValue, isSVG);
@@ -11710,7 +11792,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
11710
11792
  if (key === "innerHTML" || key === "textContent") {
11711
11793
  return true;
11712
11794
  }
11713
- if (key in el && nativeOnRE.test(key) && isFunction(value)) {
11795
+ if (key in el && isNativeOn(key) && isFunction(value)) {
11714
11796
  return true;
11715
11797
  }
11716
11798
  return false;
@@ -11727,7 +11809,11 @@ function shouldSetAsProp(el, key, value, isSVG) {
11727
11809
  if (key === "type" && el.tagName === "TEXTAREA") {
11728
11810
  return false;
11729
11811
  }
11730
- if (nativeOnRE.test(key) && isString(value)) {
11812
+ if (key === "width" || key === "height") {
11813
+ const tag = el.tagName;
11814
+ return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
11815
+ }
11816
+ if (isNativeOn(key) && isString(value)) {
11731
11817
  return false;
11732
11818
  }
11733
11819
  return key in el;
@@ -12451,14 +12537,14 @@ const modifierGuards = {
12451
12537
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
12452
12538
  };
12453
12539
  const withModifiers = (fn, modifiers) => {
12454
- return (event, ...args) => {
12540
+ return fn._withMods || (fn._withMods = (event, ...args) => {
12455
12541
  for (let i = 0; i < modifiers.length; i++) {
12456
12542
  const guard = modifierGuards[modifiers[i]];
12457
12543
  if (guard && guard(event, modifiers))
12458
12544
  return;
12459
12545
  }
12460
12546
  return fn(event, ...args);
12461
- };
12547
+ });
12462
12548
  };
12463
12549
  const keyNames = {
12464
12550
  esc: "escape",
@@ -12486,7 +12572,7 @@ const withKeys = (fn, modifiers) => {
12486
12572
  );
12487
12573
  }
12488
12574
  }
12489
- return (event) => {
12575
+ return fn._withKeys || (fn._withKeys = (event) => {
12490
12576
  if (!("key" in event)) {
12491
12577
  return;
12492
12578
  }
@@ -12514,7 +12600,7 @@ const withKeys = (fn, modifiers) => {
12514
12600
  }
12515
12601
  }
12516
12602
  }
12517
- };
12603
+ });
12518
12604
  };
12519
12605
 
12520
12606
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
@@ -12652,7 +12738,9 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
12652
12738
  BaseTransition: BaseTransition,
12653
12739
  BaseTransitionPropsValidators: BaseTransitionPropsValidators,
12654
12740
  Comment: Comment,
12741
+ DeprecationTypes: DeprecationTypes,
12655
12742
  EffectScope: EffectScope,
12743
+ ErrorCodes: ErrorCodes,
12656
12744
  ErrorTypeStrings: ErrorTypeStrings,
12657
12745
  Fragment: Fragment,
12658
12746
  KeepAlive: KeepAlive,
@@ -12661,8 +12749,10 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
12661
12749
  Suspense: Suspense,
12662
12750
  Teleport: Teleport,
12663
12751
  Text: Text,
12752
+ TrackOpTypes: TrackOpTypes,
12664
12753
  Transition: Transition,
12665
12754
  TransitionGroup: TransitionGroup,
12755
+ TriggerOpTypes: TriggerOpTypes,
12666
12756
  VueElement: VueElement,
12667
12757
  assertNumber: assertNumber,
12668
12758
  callWithAsyncErrorHandling: callWithAsyncErrorHandling,
@@ -12844,4 +12934,4 @@ var Vue$1 = Vue;
12844
12934
 
12845
12935
  const { configureCompat } = Vue$1;
12846
12936
 
12847
- export { BaseTransition, BaseTransitionPropsValidators, Comment, EffectScope, ErrorTypeStrings, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue$1 as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useModel, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
12937
+ export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue$1 as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useModel, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
@@ -11,8 +11,8 @@ var Vue = (function () {
11
11
  const NOOP = () => {
12
12
  };
13
13
  const NO = () => false;
14
- const onRE = /^on[^a-z]/;
15
- const isOn = (key) => onRE.test(key);
14
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
15
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
16
16
  const isModelListener = (key) => key.startsWith("onUpdate:");
17
17
  const extend = Object.assign;
18
18
  const remove = (arr, el) => {
@@ -97,7 +97,7 @@ var Vue = (function () {
97
97
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
98
98
  };
99
99
 
100
- const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console";
100
+ const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error";
101
101
  const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
102
102
 
103
103
  function normalizeStyle(value) {
@@ -1436,6 +1436,18 @@ var Vue = (function () {
1436
1436
  return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);
1437
1437
  }
1438
1438
 
1439
+ const TrackOpTypes = {
1440
+ "GET": "get",
1441
+ "HAS": "has",
1442
+ "ITERATE": "iterate"
1443
+ };
1444
+ const TriggerOpTypes = {
1445
+ "SET": "set",
1446
+ "ADD": "add",
1447
+ "DELETE": "delete",
1448
+ "CLEAR": "clear"
1449
+ };
1450
+
1439
1451
  const stack = [];
1440
1452
  function pushWarningContext(vnode) {
1441
1453
  stack.push(vnode);
@@ -1550,6 +1562,38 @@ var Vue = (function () {
1550
1562
  }
1551
1563
  }
1552
1564
 
1565
+ const ErrorCodes = {
1566
+ "SETUP_FUNCTION": 0,
1567
+ "0": "SETUP_FUNCTION",
1568
+ "RENDER_FUNCTION": 1,
1569
+ "1": "RENDER_FUNCTION",
1570
+ "WATCH_GETTER": 2,
1571
+ "2": "WATCH_GETTER",
1572
+ "WATCH_CALLBACK": 3,
1573
+ "3": "WATCH_CALLBACK",
1574
+ "WATCH_CLEANUP": 4,
1575
+ "4": "WATCH_CLEANUP",
1576
+ "NATIVE_EVENT_HANDLER": 5,
1577
+ "5": "NATIVE_EVENT_HANDLER",
1578
+ "COMPONENT_EVENT_HANDLER": 6,
1579
+ "6": "COMPONENT_EVENT_HANDLER",
1580
+ "VNODE_HOOK": 7,
1581
+ "7": "VNODE_HOOK",
1582
+ "DIRECTIVE_HOOK": 8,
1583
+ "8": "DIRECTIVE_HOOK",
1584
+ "TRANSITION_HOOK": 9,
1585
+ "9": "TRANSITION_HOOK",
1586
+ "APP_ERROR_HANDLER": 10,
1587
+ "10": "APP_ERROR_HANDLER",
1588
+ "APP_WARN_HANDLER": 11,
1589
+ "11": "APP_WARN_HANDLER",
1590
+ "FUNCTION_REF": 12,
1591
+ "12": "FUNCTION_REF",
1592
+ "ASYNC_COMPONENT_LOADER": 13,
1593
+ "13": "ASYNC_COMPONENT_LOADER",
1594
+ "SCHEDULER": 14,
1595
+ "14": "SCHEDULER"
1596
+ };
1553
1597
  const ErrorTypeStrings$1 = {
1554
1598
  ["sp"]: "serverPrefetch hook",
1555
1599
  ["bc"]: "beforeCreate hook",
@@ -2032,6 +2076,50 @@ var Vue = (function () {
2032
2076
  );
2033
2077
  }
2034
2078
 
2079
+ const DeprecationTypes$1 = {
2080
+ "GLOBAL_MOUNT": "GLOBAL_MOUNT",
2081
+ "GLOBAL_MOUNT_CONTAINER": "GLOBAL_MOUNT_CONTAINER",
2082
+ "GLOBAL_EXTEND": "GLOBAL_EXTEND",
2083
+ "GLOBAL_PROTOTYPE": "GLOBAL_PROTOTYPE",
2084
+ "GLOBAL_SET": "GLOBAL_SET",
2085
+ "GLOBAL_DELETE": "GLOBAL_DELETE",
2086
+ "GLOBAL_OBSERVABLE": "GLOBAL_OBSERVABLE",
2087
+ "GLOBAL_PRIVATE_UTIL": "GLOBAL_PRIVATE_UTIL",
2088
+ "CONFIG_SILENT": "CONFIG_SILENT",
2089
+ "CONFIG_DEVTOOLS": "CONFIG_DEVTOOLS",
2090
+ "CONFIG_KEY_CODES": "CONFIG_KEY_CODES",
2091
+ "CONFIG_PRODUCTION_TIP": "CONFIG_PRODUCTION_TIP",
2092
+ "CONFIG_IGNORED_ELEMENTS": "CONFIG_IGNORED_ELEMENTS",
2093
+ "CONFIG_WHITESPACE": "CONFIG_WHITESPACE",
2094
+ "CONFIG_OPTION_MERGE_STRATS": "CONFIG_OPTION_MERGE_STRATS",
2095
+ "INSTANCE_SET": "INSTANCE_SET",
2096
+ "INSTANCE_DELETE": "INSTANCE_DELETE",
2097
+ "INSTANCE_DESTROY": "INSTANCE_DESTROY",
2098
+ "INSTANCE_EVENT_EMITTER": "INSTANCE_EVENT_EMITTER",
2099
+ "INSTANCE_EVENT_HOOKS": "INSTANCE_EVENT_HOOKS",
2100
+ "INSTANCE_CHILDREN": "INSTANCE_CHILDREN",
2101
+ "INSTANCE_LISTENERS": "INSTANCE_LISTENERS",
2102
+ "INSTANCE_SCOPED_SLOTS": "INSTANCE_SCOPED_SLOTS",
2103
+ "INSTANCE_ATTRS_CLASS_STYLE": "INSTANCE_ATTRS_CLASS_STYLE",
2104
+ "OPTIONS_DATA_FN": "OPTIONS_DATA_FN",
2105
+ "OPTIONS_DATA_MERGE": "OPTIONS_DATA_MERGE",
2106
+ "OPTIONS_BEFORE_DESTROY": "OPTIONS_BEFORE_DESTROY",
2107
+ "OPTIONS_DESTROYED": "OPTIONS_DESTROYED",
2108
+ "WATCH_ARRAY": "WATCH_ARRAY",
2109
+ "PROPS_DEFAULT_THIS": "PROPS_DEFAULT_THIS",
2110
+ "V_ON_KEYCODE_MODIFIER": "V_ON_KEYCODE_MODIFIER",
2111
+ "CUSTOM_DIR": "CUSTOM_DIR",
2112
+ "ATTR_FALSE_VALUE": "ATTR_FALSE_VALUE",
2113
+ "ATTR_ENUMERATED_COERCION": "ATTR_ENUMERATED_COERCION",
2114
+ "TRANSITION_CLASSES": "TRANSITION_CLASSES",
2115
+ "TRANSITION_GROUP_ROOT": "TRANSITION_GROUP_ROOT",
2116
+ "COMPONENT_ASYNC": "COMPONENT_ASYNC",
2117
+ "COMPONENT_FUNCTIONAL": "COMPONENT_FUNCTIONAL",
2118
+ "COMPONENT_V_MODEL": "COMPONENT_V_MODEL",
2119
+ "RENDER_FUNCTION": "RENDER_FUNCTION",
2120
+ "FILTERS": "FILTERS",
2121
+ "PRIVATE_APIS": "PRIVATE_APIS"
2122
+ };
2035
2123
  const deprecationData = {
2036
2124
  ["GLOBAL_MOUNT"]: {
2037
2125
  message: `The global app bootstrapping API has changed: vm.$mount() and the "el" option have been removed. Use createApp(RootComponent).mount() instead.`,
@@ -3346,7 +3434,12 @@ If this is a native custom element, make sure to exclude it from component resol
3346
3434
  if (delayEnter) {
3347
3435
  activeBranch.transition.afterLeave = () => {
3348
3436
  if (pendingId === suspense.pendingId) {
3349
- move(pendingBranch, container2, anchor2, 0);
3437
+ move(
3438
+ pendingBranch,
3439
+ container2,
3440
+ next(activeBranch),
3441
+ 0
3442
+ );
3350
3443
  queuePostFlushCb(effects);
3351
3444
  }
3352
3445
  };
@@ -3393,7 +3486,6 @@ If this is a native custom element, make sure to exclude it from component resol
3393
3486
  }
3394
3487
  const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
3395
3488
  triggerEvent(vnode2, "onFallback");
3396
- const anchor2 = next(activeBranch);
3397
3489
  const mountFallback = () => {
3398
3490
  if (!suspense.isInFallback) {
3399
3491
  return;
@@ -3402,7 +3494,7 @@ If this is a native custom element, make sure to exclude it from component resol
3402
3494
  null,
3403
3495
  fallbackVNode,
3404
3496
  container2,
3405
- anchor2,
3497
+ next(activeBranch),
3406
3498
  parentComponent2,
3407
3499
  null,
3408
3500
  // fallback tree will not have suspense context
@@ -6260,7 +6352,7 @@ If this is a native custom element, make sure to exclude it from component resol
6260
6352
  return vm;
6261
6353
  }
6262
6354
  }
6263
- Vue.version = `2.6.14-compat:${"3.4.0-alpha.3"}`;
6355
+ Vue.version = `2.6.14-compat:${"3.4.0-alpha.4"}`;
6264
6356
  Vue.config = singletonApp.config;
6265
6357
  Vue.use = (p, ...options) => {
6266
6358
  if (p && isFunction(p.install)) {
@@ -6661,18 +6753,6 @@ If this is a native custom element, make sure to exclude it from component resol
6661
6753
  rootProps = null;
6662
6754
  }
6663
6755
  const context = createAppContext();
6664
- {
6665
- Object.defineProperty(context.config, "unwrapInjectedRef", {
6666
- get() {
6667
- return true;
6668
- },
6669
- set() {
6670
- warn(
6671
- `app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
6672
- );
6673
- }
6674
- });
6675
- }
6676
6756
  const installedPlugins = /* @__PURE__ */ new WeakSet();
6677
6757
  let isMounted = false;
6678
6758
  const app = context.app = {
@@ -10657,9 +10737,9 @@ Component that was made reactive: `,
10657
10737
  return;
10658
10738
  }
10659
10739
  const vueStyle = { style: "color:#3ba776" };
10660
- const numberStyle = { style: "color:#0b1bc9" };
10661
- const stringStyle = { style: "color:#b62e24" };
10662
- const keywordStyle = { style: "color:#9d288c" };
10740
+ const numberStyle = { style: "color:#1677ff" };
10741
+ const stringStyle = { style: "color:#f5222d" };
10742
+ const keywordStyle = { style: "color:#eb2f96" };
10663
10743
  const formatter = {
10664
10744
  header(obj) {
10665
10745
  if (!isObject(obj)) {
@@ -10853,7 +10933,7 @@ Component that was made reactive: `,
10853
10933
  return true;
10854
10934
  }
10855
10935
 
10856
- const version = "3.4.0-alpha.3";
10936
+ const version = "3.4.0-alpha.4";
10857
10937
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10858
10938
  const ssrUtils = null;
10859
10939
  const resolveFilter = resolveFilter$1 ;
@@ -10865,6 +10945,7 @@ Component that was made reactive: `,
10865
10945
  softAssertCompatEnabled
10866
10946
  };
10867
10947
  const compatUtils = _compatUtils ;
10948
+ const DeprecationTypes = DeprecationTypes$1 ;
10868
10949
 
10869
10950
  const svgNS = "http://www.w3.org/2000/svg";
10870
10951
  const doc = typeof document !== "undefined" ? document : null;
@@ -11553,7 +11634,8 @@ Component that was made reactive: `,
11553
11634
  }
11554
11635
  }
11555
11636
 
11556
- const nativeOnRE = /^on[a-z]/;
11637
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
11638
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
11557
11639
  const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
11558
11640
  if (key === "class") {
11559
11641
  patchClass(el, nextValue, isSVG);
@@ -11587,7 +11669,7 @@ Component that was made reactive: `,
11587
11669
  if (key === "innerHTML" || key === "textContent") {
11588
11670
  return true;
11589
11671
  }
11590
- if (key in el && nativeOnRE.test(key) && isFunction(value)) {
11672
+ if (key in el && isNativeOn(key) && isFunction(value)) {
11591
11673
  return true;
11592
11674
  }
11593
11675
  return false;
@@ -11604,7 +11686,11 @@ Component that was made reactive: `,
11604
11686
  if (key === "type" && el.tagName === "TEXTAREA") {
11605
11687
  return false;
11606
11688
  }
11607
- if (nativeOnRE.test(key) && isString(value)) {
11689
+ if (key === "width" || key === "height") {
11690
+ const tag = el.tagName;
11691
+ return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
11692
+ }
11693
+ if (isNativeOn(key) && isString(value)) {
11608
11694
  return false;
11609
11695
  }
11610
11696
  return key in el;
@@ -12282,14 +12368,14 @@ Component that was made reactive: `,
12282
12368
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
12283
12369
  };
12284
12370
  const withModifiers = (fn, modifiers) => {
12285
- return (event, ...args) => {
12371
+ return fn._withMods || (fn._withMods = (event, ...args) => {
12286
12372
  for (let i = 0; i < modifiers.length; i++) {
12287
12373
  const guard = modifierGuards[modifiers[i]];
12288
12374
  if (guard && guard(event, modifiers))
12289
12375
  return;
12290
12376
  }
12291
12377
  return fn(event, ...args);
12292
- };
12378
+ });
12293
12379
  };
12294
12380
  const keyNames = {
12295
12381
  esc: "escape",
@@ -12317,7 +12403,7 @@ Component that was made reactive: `,
12317
12403
  );
12318
12404
  }
12319
12405
  }
12320
- return (event) => {
12406
+ return fn._withKeys || (fn._withKeys = (event) => {
12321
12407
  if (!("key" in event)) {
12322
12408
  return;
12323
12409
  }
@@ -12345,7 +12431,7 @@ Component that was made reactive: `,
12345
12431
  }
12346
12432
  }
12347
12433
  }
12348
- };
12434
+ });
12349
12435
  };
12350
12436
 
12351
12437
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
@@ -12476,7 +12562,9 @@ Component that was made reactive: `,
12476
12562
  BaseTransition: BaseTransition,
12477
12563
  BaseTransitionPropsValidators: BaseTransitionPropsValidators,
12478
12564
  Comment: Comment,
12565
+ DeprecationTypes: DeprecationTypes,
12479
12566
  EffectScope: EffectScope,
12567
+ ErrorCodes: ErrorCodes,
12480
12568
  ErrorTypeStrings: ErrorTypeStrings,
12481
12569
  Fragment: Fragment,
12482
12570
  KeepAlive: KeepAlive,
@@ -12485,8 +12573,10 @@ Component that was made reactive: `,
12485
12573
  Suspense: Suspense,
12486
12574
  Teleport: Teleport,
12487
12575
  Text: Text,
12576
+ TrackOpTypes: TrackOpTypes,
12488
12577
  Transition: Transition,
12489
12578
  TransitionGroup: TransitionGroup,
12579
+ TriggerOpTypes: TriggerOpTypes,
12490
12580
  VueElement: VueElement,
12491
12581
  assertNumber: assertNumber,
12492
12582
  callWithAsyncErrorHandling: callWithAsyncErrorHandling,