@@ -1290,18 +1289,16 @@ export default function vueFactory(exports) {
get:readonlyGet,
set(target,key){
if(process.env.NODE_ENV!=='production'){
{
console.warn("Set operation on key \"".concat(String(key),"\" failed: target is readonly."),target);
}
returntrue;
},
deleteProperty(target,key){
if(process.env.NODE_ENV!=='production'){
{
console.warn("Delete operation on key \"".concat(String(key),"\" failed: target is readonly."),target);
}
returntrue;
}
...
...
@@ -1416,7 +1413,7 @@ export default function vueFactory(exports) {
if(!hadKey){
key=toRaw(key);
hadKey=has.call(target,key);
}elseif(process.env.NODE_ENV!=='production'){
}else{
checkIdentityKeys(target,has,key);
}
...
...
@@ -1447,7 +1444,7 @@ export default function vueFactory(exports) {
if(!hadKey){
key=toRaw(key);
hadKey=has.call(target,key);
}elseif(process.env.NODE_ENV!=='production'){
}else{
checkIdentityKeys(target,has,key);
}
...
...
@@ -1467,7 +1464,7 @@ export default function vueFactory(exports) {
functionclear(){
vartarget=toRaw(this);
varhadItems=target.size!==0;
varoldTarget=process.env.NODE_ENV!=='production'?isMap(target)?newMap(target):newSet(target):undefined;// forward the operation before queueing reactions
varoldTarget=isMap(target)?newMap(target):newSet(target);// forward the operation before queueing reactions
varresult=target.clear();
...
...
@@ -1543,11 +1540,10 @@ export default function vueFactory(exports) {
warn("Event \"".concat(lowerCaseEvent,"\" is emitted in component ")+"".concat(formatComponentName(instance,instance.type)," but the handler is registered for \"").concat(event,"\". ")+"Note that HTML attributes are case-insensitive and you cannot use "+"v-on to listen to camelCase events when using in-DOM templates. "+"You should probably use \"".concat(hyphenate(event),"\" instead of \"").concat(event,"\"."));
}
}
varhandlerName;
varhandler=props[handlerName=toHandlerKey(event)]||// also try camelCase event handler (#2249)
props[handlerName=toHandlerKey(camelize(event))];// for v-model update:xxx events, also trigger kebab-case equivalent
...
...
@@ -3053,10 +3036,9 @@ export default function vueFactory(exports) {
setBlockTracking(1);
}
if(process.env.NODE_ENV!=='production'||false){
{
devtoolsComponentUpdated(ctx);
}
returnres;
};// mark normalized to avoid duplicated wrapping
...
...
@@ -3103,8 +3085,7 @@ export default function vueFactory(exports) {
}=instance;
varresult;
varprev=setCurrentRenderingInstance(instance);
if(process.env.NODE_ENV!=='production'){
{
accessedAttrs=false;
}
...
...
@@ -3123,11 +3104,11 @@ export default function vueFactory(exports) {
// functional
var_render=Component;// in dev, mark attrs accessed if optional props (attrs === props)
warn("`watch(fn, options?)` signature has been moved to a separate API. "+"Use `watchEffect(fn, options?)` instead. `watch` now only "+"supports `watch(source, cb, options?) signature.");
}
...
...
@@ -4066,7 +4042,7 @@ export default function vueFactory(exports) {
onTrack,
onTrigger
}=EMPTY_OBJ,instance=currentInstance){
if(process.env.NODE_ENV!=='production'&&!cb){
if(!cb){
if(immediate!==undefined){
warn("watch() \"immediate\" option is only respected when using the "+"watch(source, callback, options?) signature.");
}
...
...
@@ -4106,7 +4082,7 @@ export default function vueFactory(exports) {
warn("".concat(apiName," is called when there is no active component instance to be ")+"associated with. "+"Lifecycle injection APIs can only be used during execution of setup()."+(" If you are using async setup(), make sure to register lifecycle "+"hooks before the first await statement."));
}
...
...
@@ -5375,9 +5346,8 @@ export default function vueFactory(exports) {
@@ -5407,23 +5376,20 @@ export default function vueFactory(exports) {
if(isFunction(methodHandler)){
// In dev mode, we use the `createRenderContext` function to define methods to the proxy target,
// and those are read-only but reconfigurable, so it needs to be redefined here
if(process.env.NODE_ENV!=='production'){
{
Object.defineProperty(ctx,_key2,{
value:methodHandler.bind(publicThis),
configurable:true,
enumerable:true,
writable:true
});
}else{
ctx[_key2]=methodHandler.bind(publicThis);
}
if(process.env.NODE_ENV!=='production'){
{
checkDuplicateProperties("Methods"
/* METHODS */
,_key2);
}
}elseif(process.env.NODE_ENV!=='production'){
}else{
warn("Method \"".concat(_key2,"\" has type \"").concat(typeofmethodHandler,"\" in the component definition. ")+"Did you reference the function correctly?");
}
}
...
...
@@ -5431,22 +5397,21 @@ export default function vueFactory(exports) {
warn("data() returned a Promise - note data() cannot be async; If you "+"intend to perform data fetching before component renders, use "+"async setup() + <Suspense>.");
}
if(!isObject(data)){
process.env.NODE_ENV!=='production'&&warn("data() should return an object.");
warn("data() should return an object.");
}else{
instance.data=reactive(data);
if(process.env.NODE_ENV!=='production'){
{
var_loop=function(_key3){
checkDuplicateProperties("Data"
/* DATA */
...
...
@@ -5478,13 +5443,13 @@ export default function vueFactory(exports) {
@@ -5703,7 +5667,7 @@ export default function vueFactory(exports) {
for(varkeyinfrom){
if(asMixin&&key==='expose'){
process.env.NODE_ENV!=='production'&&warn("\"expose\" option is ignored when declared in mixins or extends. "+"It should only be declared in the base component itself.");
warn("\"expose\" option is ignored when declared in mixins or extends. "+"It should only be declared in the base component itself.");
warn("Slot \"".concat(key,"\" invoked outside of the render function: ")+"this will not track dependencies used in the slot. "+"Invoke the slot function inside the render function instead.");
}
...
...
@@ -6314,10 +6278,9 @@ export default function vueFactory(exports) {
slots[key]=normalizeSlot(key,value,ctx);
}elseif(value!=null){
(function(){
if(process.env.NODE_ENV!=='production'&&!false){
{
warn("Non-function value encountered for slot \"".concat(key,"\". ")+"Prefer function slots for better performance.");
}
varnormalized=normalizeSlotValue(value);
slots[key]=()=>normalized;
...
...
@@ -6327,7 +6290,7 @@ export default function vueFactory(exports) {
warn("Directive \"".concat(name,"\" has already been registered in target app."));
}
...
...
@@ -6630,7 +6593,7 @@ export default function vueFactory(exports) {
vnode.appContext=context;// HMR root reload
if(process.env.NODE_ENV!=='production'){
{
context.reload=()=>{
render(cloneVNode(vnode),rootContainer,isSVG);
};
...
...
@@ -6645,14 +6608,12 @@ export default function vueFactory(exports) {
isMounted=true;
app._container=rootContainer;
rootContainer.__vue_app__=app;
if(process.env.NODE_ENV!=='production'||false){
{
app._instance=vnode.component;
devtoolsInitApp(app,version);
}
returnvnode.component.proxy;
}elseif(process.env.NODE_ENV!=='production'){
}else{
warn("App has already been mounted.\n"+"If you want to remount the same app, move your app creation logic "+"into a factory function and create fresh app instances for each "+"mount - e.g. `const createMyApp = () => createApp(App)`");
}
},
...
...
@@ -6660,20 +6621,18 @@ export default function vueFactory(exports) {
unmount(){
if(isMounted){
render(null,app._container);
if(process.env.NODE_ENV!=='production'||false){
{
app._instance=null;
devtoolsUnmountApp(app);
}
deleteapp._container.__vue_app__;
}elseif(process.env.NODE_ENV!=='production'){
}else{
warn("Cannot unmount an app that is not mounted.");
warn("Hydration children mismatch in <".concat(vnode.type,">: ")+"server rendered element contains more child nodes than client vdom.");
_hasWarned=true;
}// The SSRed DOM contains more nodes than it should. Remove them.
...
...
@@ -6963,7 +6922,7 @@ export default function vueFactory(exports) {
){
if(el.textContent!==vnode.children){
hasMismatch=true;
process.env.NODE_ENV!=='production'&&warn("Hydration text content mismatch in <".concat(vnode.type,">:\n")+"- Client: ".concat(el.textContent,"\n")+"- Server: ".concat(vnode.children));
warn("Hydration text content mismatch in <".concat(vnode.type,">:\n")+"- Client: ".concat(el.textContent,"\n")+"- Server: ".concat(vnode.children));
el.textContent=vnode.children;
}
}
...
...
@@ -6988,7 +6947,7 @@ export default function vueFactory(exports) {
warn("Hydration children mismatch in <".concat(container.tagName.toLowerCase(),">: ")+"server rendered element contains fewer child nodes than client vdom.");
hasWarned=true;
}// the SSRed DOM didn't contain enough nodes. Mount the missing ones.
...
...
@@ -7028,7 +6987,7 @@ export default function vueFactory(exports) {
console.warn("You are running the esm-bundler build of Vue. It is recommended to "+"configure your bundler to explicitly replace feature flag globals "+"with boolean literals to get proper tree-shaking in the final bundle. "+"See http://link.vuejs.org/feature-flags for more details.");
}
}
varprodEffectOptions={
scheduler:queueJob,
// #1801, #2043 component render effects should allow recursive updates
allowRecurse:true
};
functioncreateDevEffectOptions(instance){
return{
...
...
@@ -7181,7 +7118,7 @@ export default function vueFactory(exports) {
r:ref
}=rawRef;
if(process.env.NODE_ENV!=='production'&&!owner){
if(!owner){
warn("Missing ref owner context. ref cannot be used on hoisted vnodes. "+"A vnode with ref must be created inside the render function.");
return;
}
...
...
@@ -7237,7 +7174,7 @@ export default function vueFactory(exports) {
@@ -8891,19 +8784,19 @@ export default function vueFactory(exports) {
if(isString(targetSelector)){
if(!select){
process.env.NODE_ENV!=='production'&&warn("Current renderer does not support string target for Teleports. "+"(missing querySelector renderer option)");
warn("Current renderer does not support string target for Teleports. "+"(missing querySelector renderer option)");
returnnull;
}else{
vartarget=select(targetSelector);
if(!target){
process.env.NODE_ENV!=='production'&&warn("Failed to locate Teleport target with selector \"".concat(targetSelector,"\". ")+"Note the target element must exist before the component is mounted - "+"i.e. the target cannot be rendered by the component itself, and "+"ideally should be outside of the entire Vue component tree.");
warn("Failed to locate Teleport target with selector \"".concat(targetSelector,"\". ")+"Note the target element must exist before the component is mounted - "+"i.e. the target cannot be rendered by the component itself, and "+"ideally should be outside of the entire Vue component tree.");
varStatic=Symbol(process.env.NODE_ENV!=='production'?'Static':undefined);// Since v-if and v-for are the two possible ways node structure can dynamically
varFragment=Symbol('Fragment');
varText=Symbol('Text');
varComment$1=Symbol('Comment');
varStatic=Symbol('Static');// Since v-if and v-for are the two possible ways node structure can dynamically
// change, once we consider v-if branches and each v-for fragment a block, we
// can divide a template into nested blocks, and within each block the node
// structure would be stable. This allows us to skip most children diffing
...
...
@@ -9320,7 +9213,7 @@ export default function vueFactory(exports) {
warn("SSR-optimized slot function detected in a non-SSR-optimized render "+"function. You need to mark this component with $dynamic-slots in the "+"parent template.");
slot=()=>[];
...
...
@@ -9865,7 +9758,7 @@ export default function vueFactory(exports) {
@@ -10019,7 +9912,7 @@ export default function vueFactory(exports) {
{
returnglobalProperties[key];
}
}elseif(process.env.NODE_ENV!=='production'&¤tRenderingInstance&&(!isString(key)||// #1091 avoid internal isRef/isVNode checks on component instance leading
}elseif(currentRenderingInstance&&(!isString(key)||// #1091 avoid internal isRef/isVNode checks on component instance leading
@@ -10044,15 +9937,15 @@ export default function vueFactory(exports) {
}elseif(data!==EMPTY_OBJ&&hasOwn(data,key)){
data[key]=value;
}elseif(hasOwn(instance.props,key)){
process.env.NODE_ENV!=='production'&&warn("Attempting to mutate prop \"".concat(key,"\". Props are readonly."),instance);
warn("Attempting to mutate prop \"".concat(key,"\". Props are readonly."),instance);
returnfalse;
}
if(key[0]==='$'&&key.slice(1)ininstance){
process.env.NODE_ENV!=='production'&&warn("Attempting to mutate public property \"".concat(key,"\". ")+"Properties starting with $ are reserved and readonly.",instance);
warn("Attempting to mutate public property \"".concat(key,"\". ")+"Properties starting with $ are reserved and readonly.",instance);
@@ -10081,14 +9974,12 @@ export default function vueFactory(exports) {
}
};
if(process.env.NODE_ENV!=='production'&&!false){
{
PublicInstanceProxyHandlers.ownKeys=target=>{
warn("Avoid app logic that relies on enumerating keys on a component instance. "+"The keys will be empty in production mode to avoid performance overhead.");
warn("Component provided template option but "+"runtime compilation is not supported in this build of Vue."+" Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\"."
...
...
@@ -10508,14 +10385,14 @@ export default function vueFactory(exports) {