@vue/compat 3.6.0-rc.4 → 3.6.0-rc.6

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.6.0-rc.4
2
+ * @vue/compat v3.6.0-rc.6
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -24,7 +24,7 @@ var Vue = (function() {
24
24
  * \/\*#\_\_PURE\_\_\*\/
25
25
  * So that they can be tree-shaken if necessary.
26
26
  */
27
- /* @__NO_SIDE_EFFECTS__ */
27
+ /*@__NO_SIDE_EFFECTS__*/
28
28
  function makeMap(str) {
29
29
  const map = Object.create(null);
30
30
  for (const key of str.split(",")) map[key] = 1;
@@ -68,9 +68,9 @@ var Vue = (function() {
68
68
  };
69
69
  const isPlainObject = (val) => toTypeString(val) === "[object Object]";
70
70
  const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
71
- const isReservedProp = /* @__PURE__ */ makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");
72
- const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
73
- const isBuiltInDirective = /* @__PURE__ */ makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo");
71
+ const isReservedProp = /*@__PURE__*/ makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");
72
+ const isBuiltInTag = /*#__PURE__*/ makeMap("slot,component");
73
+ const isBuiltInDirective = /*@__PURE__*/ makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo");
74
74
  const cacheStringFunction = (fn) => {
75
75
  const cache = Object.create(null);
76
76
  return ((str) => {
@@ -178,7 +178,7 @@ var Vue = (function() {
178
178
  [2]: "DYNAMIC",
179
179
  [3]: "FORWARDED"
180
180
  };
181
- const isGloballyAllowed = /* @__PURE__ */ makeMap("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,Symbol");
181
+ const isGloballyAllowed = /*@__PURE__*/ makeMap("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,Symbol");
182
182
  //#endregion
183
183
  //#region packages/shared/src/codeframe.ts
184
184
  const range = 2;
@@ -285,22 +285,22 @@ var Vue = (function() {
285
285
  * Compiler only.
286
286
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
287
287
  */
288
- const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
288
+ const isHTMLTag = /*@__PURE__*/ makeMap(HTML_TAGS);
289
289
  /**
290
290
  * Compiler only.
291
291
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
292
292
  */
293
- const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
293
+ const isSVGTag = /*@__PURE__*/ makeMap(SVG_TAGS);
294
294
  /**
295
295
  * Compiler only.
296
296
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
297
297
  */
298
- const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
298
+ const isMathMLTag = /*@__PURE__*/ makeMap(MATH_TAGS);
299
299
  /**
300
300
  * Compiler only.
301
301
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
302
302
  */
303
- const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
303
+ const isVoidTag = /*@__PURE__*/ makeMap(VOID_TAGS);
304
304
  //#endregion
305
305
  //#region packages/shared/src/domAttrConfig.ts
306
306
  /**
@@ -315,11 +315,11 @@ var Vue = (function() {
315
315
  * - readonly -> readOnly
316
316
  */
317
317
  const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
318
- const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
318
+ const isSpecialBooleanAttr = /*@__PURE__*/ makeMap(specialBooleanAttrs);
319
319
  /**
320
320
  * The full list is needed during SSR to produce the correct initial markup.
321
321
  */
322
- const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + ",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");
322
+ const isBooleanAttr = /*@__PURE__*/ makeMap(specialBooleanAttrs + ",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");
323
323
  /**
324
324
  * Boolean attributes should be included if the value is truthy or ''.
325
325
  * e.g. `<select multiple>` compiles to `{ multiple: '' }`
@@ -333,11 +333,11 @@ var Vue = (function() {
333
333
  * Don't also forget to allow `data-*` and `aria-*`!
334
334
  * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
335
335
  */
336
- const isKnownHtmlAttr = /* @__PURE__ */ makeMap("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");
336
+ const isKnownHtmlAttr = /*@__PURE__*/ makeMap("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");
337
337
  /**
338
338
  * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
339
339
  */
340
- const isKnownSvgAttr = /* @__PURE__ */ makeMap("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");
340
+ const isKnownSvgAttr = /*@__PURE__*/ makeMap("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");
341
341
  /**
342
342
  * Shared between server-renderer and runtime-core hydration logic
343
343
  */
@@ -369,6 +369,21 @@ var Vue = (function() {
369
369
  for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i]);
370
370
  return equal;
371
371
  }
372
+ function looseCompareCollections(a, b) {
373
+ if (a.size !== b.size) return false;
374
+ const candidates = Array.from(b);
375
+ const matched = new Uint8Array(candidates.length);
376
+ for (const item of a) {
377
+ let index = -1;
378
+ for (let i = 0; i < candidates.length; i++) if (!matched[i] && looseEqual(item, candidates[i])) {
379
+ index = i;
380
+ break;
381
+ }
382
+ if (index < 0) return false;
383
+ matched[index] = 1;
384
+ }
385
+ return true;
386
+ }
372
387
  function looseEqual(a, b) {
373
388
  if (a === b) return true;
374
389
  let aValidType = isDate(a);
@@ -384,6 +399,12 @@ var Vue = (function() {
384
399
  bValidType = isObject(b);
385
400
  if (aValidType || bValidType) {
386
401
  if (!aValidType || !bValidType) return false;
402
+ aValidType = isMap(a);
403
+ bValidType = isMap(b);
404
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
405
+ aValidType = isSet(a);
406
+ bValidType = isSet(b);
407
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
387
408
  if (Object.keys(a).length !== Object.keys(b).length) return false;
388
409
  for (const key in a) {
389
410
  const aHasKey = a.hasOwnProperty(key);
@@ -830,9 +851,7 @@ var Vue = (function() {
830
851
  if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
831
852
  }
832
853
  break;
833
- case "set":
834
- if (isMap(target)) run(depsMap.get(ITERATE_KEY));
835
- break;
854
+ case "set": if (isMap(target)) run(depsMap.get(ITERATE_KEY));
836
855
  }
837
856
  }
838
857
  }
@@ -1029,8 +1048,8 @@ var Vue = (function() {
1029
1048
  }
1030
1049
  //#endregion
1031
1050
  //#region packages/reactivity/src/baseHandlers.ts
1032
- const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
1033
- const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol));
1051
+ const isNonTrackableKeys = /*@__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);
1052
+ const builtInSymbols = new Set(/*@__PURE__*/ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol));
1034
1053
  function hasOwnProperty(key) {
1035
1054
  if (!isSymbol(key)) key = String(key);
1036
1055
  const obj = /* @__PURE__ */ toRaw(this);
@@ -1085,12 +1104,14 @@ var Vue = (function() {
1085
1104
  oldValue = /* @__PURE__ */ toRaw(oldValue);
1086
1105
  value = /* @__PURE__ */ toRaw(value);
1087
1106
  }
1088
- if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) if (isOldValueReadonly) {
1089
- warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target[key]);
1090
- return true;
1091
- } else {
1092
- oldValue.value = value;
1093
- return true;
1107
+ if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
1108
+ if (isOldValueReadonly) {
1109
+ warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target[key]);
1110
+ return true;
1111
+ } else {
1112
+ oldValue.value = value;
1113
+ return true;
1114
+ }
1094
1115
  }
1095
1116
  }
1096
1117
  const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);
@@ -1131,10 +1152,10 @@ var Vue = (function() {
1131
1152
  return true;
1132
1153
  }
1133
1154
  };
1134
- const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
1135
- const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
1136
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
1137
- const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
1155
+ const mutableHandlers = /*@__PURE__*/ new MutableReactiveHandler();
1156
+ const readonlyHandlers = /*@__PURE__*/ new ReadonlyReactiveHandler();
1157
+ const shallowReactiveHandlers = /*@__PURE__*/ new MutableReactiveHandler(true);
1158
+ const shallowReadonlyHandlers = /*@__PURE__*/ new ReadonlyReactiveHandler(true);
1138
1159
  //#endregion
1139
1160
  //#region packages/reactivity/src/collectionHandlers.ts
1140
1161
  const toShallow = (value) => value;
@@ -1285,10 +1306,10 @@ var Vue = (function() {
1285
1306
  return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
1286
1307
  };
1287
1308
  }
1288
- const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) };
1289
- const shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, true) };
1290
- const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) };
1291
- const shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) };
1309
+ const mutableCollectionHandlers = { get: /*@__PURE__*/ createInstrumentationGetter(false, false) };
1310
+ const shallowCollectionHandlers = { get: /*@__PURE__*/ createInstrumentationGetter(false, true) };
1311
+ const readonlyCollectionHandlers = { get: /*@__PURE__*/ createInstrumentationGetter(true, false) };
1312
+ const shallowReadonlyCollectionHandlers = { get: /*@__PURE__*/ createInstrumentationGetter(true, true) };
1292
1313
  function checkIdentityKeys(target, has, key) {
1293
1314
  const rawKey = /* @__PURE__ */ toRaw(key);
1294
1315
  if (rawKey !== key && has.call(target, rawKey)) {
@@ -1313,7 +1334,7 @@ var Vue = (function() {
1313
1334
  default: return 0;
1314
1335
  }
1315
1336
  }
1316
- /* @__NO_SIDE_EFFECTS__ */
1337
+ /*@__NO_SIDE_EFFECTS__*/
1317
1338
  function reactive(target) {
1318
1339
  if (/* @__PURE__ */ isReadonly(target)) return target;
1319
1340
  return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
@@ -1348,7 +1369,7 @@ var Vue = (function() {
1348
1369
  * @param target - The source object.
1349
1370
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowreactive}
1350
1371
  */
1351
- /* @__NO_SIDE_EFFECTS__ */
1372
+ /*@__NO_SIDE_EFFECTS__*/
1352
1373
  function shallowReactive(target) {
1353
1374
  return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
1354
1375
  }
@@ -1381,7 +1402,7 @@ var Vue = (function() {
1381
1402
  * @param target - The source object.
1382
1403
  * @see {@link https://vuejs.org/api/reactivity-core.html#readonly}
1383
1404
  */
1384
- /* @__NO_SIDE_EFFECTS__ */
1405
+ /*@__NO_SIDE_EFFECTS__*/
1385
1406
  function readonly(target) {
1386
1407
  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
1387
1408
  }
@@ -1415,7 +1436,7 @@ var Vue = (function() {
1415
1436
  * @param target - The source object.
1416
1437
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowreadonly}
1417
1438
  */
1418
- /* @__NO_SIDE_EFFECTS__ */
1439
+ /*@__NO_SIDE_EFFECTS__*/
1419
1440
  function shallowReadonly(target) {
1420
1441
  return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
1421
1442
  }
@@ -1452,7 +1473,7 @@ var Vue = (function() {
1452
1473
  * @param value - The value to check.
1453
1474
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#isreactive}
1454
1475
  */
1455
- /* @__NO_SIDE_EFFECTS__ */
1476
+ /*@__NO_SIDE_EFFECTS__*/
1456
1477
  function isReactive(value) {
1457
1478
  if (/* @__PURE__ */ isReadonly(value)) return /* @__PURE__ */ isReactive(value["__v_raw"]);
1458
1479
  return !!(value && value["__v_isReactive"]);
@@ -1468,11 +1489,11 @@ var Vue = (function() {
1468
1489
  * @param value - The value to check.
1469
1490
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#isreadonly}
1470
1491
  */
1471
- /* @__NO_SIDE_EFFECTS__ */
1492
+ /*@__NO_SIDE_EFFECTS__*/
1472
1493
  function isReadonly(value) {
1473
1494
  return !!(value && value["__v_isReadonly"]);
1474
1495
  }
1475
- /* @__NO_SIDE_EFFECTS__ */
1496
+ /*@__NO_SIDE_EFFECTS__*/
1476
1497
  function isShallow(value) {
1477
1498
  return !!(value && value["__v_isShallow"]);
1478
1499
  }
@@ -1483,7 +1504,7 @@ var Vue = (function() {
1483
1504
  * @param value - The value to check.
1484
1505
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
1485
1506
  */
1486
- /* @__NO_SIDE_EFFECTS__ */
1507
+ /*@__NO_SIDE_EFFECTS__*/
1487
1508
  function isProxy(value) {
1488
1509
  return value ? !!value["__v_raw"] : false;
1489
1510
  }
@@ -1510,7 +1531,7 @@ var Vue = (function() {
1510
1531
  * @param observed - The object for which the "raw" value is requested.
1511
1532
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#toraw}
1512
1533
  */
1513
- /* @__NO_SIDE_EFFECTS__ */
1534
+ /*@__NO_SIDE_EFFECTS__*/
1514
1535
  function toRaw(observed) {
1515
1536
  const raw = observed && observed["__v_raw"];
1516
1537
  return raw ? /* @__PURE__ */ toRaw(raw) : observed;
@@ -1559,15 +1580,15 @@ var Vue = (function() {
1559
1580
  const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
1560
1581
  //#endregion
1561
1582
  //#region packages/reactivity/src/ref.ts
1562
- /* @__NO_SIDE_EFFECTS__ */
1583
+ /*@__NO_SIDE_EFFECTS__*/
1563
1584
  function isRef(r) {
1564
1585
  return r ? r["__v_isRef"] === true : false;
1565
1586
  }
1566
- /* @__NO_SIDE_EFFECTS__ */
1587
+ /*@__NO_SIDE_EFFECTS__*/
1567
1588
  function ref(value) {
1568
1589
  return createRef(value, toReactive);
1569
1590
  }
1570
- /* @__NO_SIDE_EFFECTS__ */
1591
+ /*@__NO_SIDE_EFFECTS__*/
1571
1592
  function shallowRef(value) {
1572
1593
  return createRef(value);
1573
1594
  }
@@ -1770,7 +1791,7 @@ var Vue = (function() {
1770
1791
  * @param object - Reactive object to be made into an object of linked refs.
1771
1792
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#torefs}
1772
1793
  */
1773
- /* @__NO_SIDE_EFFECTS__ */
1794
+ /*@__NO_SIDE_EFFECTS__*/
1774
1795
  function toRefs(object) {
1775
1796
  const ret = isArray(object) ? new Array(object.length) : {};
1776
1797
  for (const key in object) ret[key] = propertyToRef(object, key);
@@ -1821,7 +1842,7 @@ var Vue = (function() {
1821
1842
  return this._value = this._getter();
1822
1843
  }
1823
1844
  };
1824
- /* @__NO_SIDE_EFFECTS__ */
1845
+ /*@__NO_SIDE_EFFECTS__*/
1825
1846
  function toRef(source, key, defaultValue) {
1826
1847
  if (/* @__PURE__ */ isRef(source)) return source;
1827
1848
  else if (isFunction(source)) return new GetterRefImpl(source);
@@ -1887,10 +1908,12 @@ var Vue = (function() {
1887
1908
  get dirty() {
1888
1909
  const flags = this.flags;
1889
1910
  if (flags & 16) return true;
1890
- if (flags & 32) if (checkDirty(this.deps, this)) {
1891
- this.flags = flags | 16;
1892
- return true;
1893
- } else this.flags = flags & -33;
1911
+ if (flags & 32) {
1912
+ if (checkDirty(this.deps, this)) {
1913
+ this.flags = flags | 16;
1914
+ return true;
1915
+ } else this.flags = flags & -33;
1916
+ }
1894
1917
  return false;
1895
1918
  }
1896
1919
  };
@@ -2069,10 +2092,12 @@ var Vue = (function() {
2069
2092
  get _dirty() {
2070
2093
  const flags = this.flags;
2071
2094
  if (flags & 16) return true;
2072
- if (flags & 32) if (checkDirty(this.deps, this)) {
2073
- this.flags = flags | 16;
2074
- return true;
2075
- } else this.flags = flags & -33;
2095
+ if (flags & 32) {
2096
+ if (checkDirty(this.deps, this)) {
2097
+ this.flags = flags | 16;
2098
+ return true;
2099
+ } else this.flags = flags & -33;
2100
+ }
2076
2101
  return false;
2077
2102
  }
2078
2103
  /**
@@ -2133,7 +2158,7 @@ var Vue = (function() {
2133
2158
  }
2134
2159
  };
2135
2160
  setupOnTrigger(ComputedRefImpl);
2136
- /* @__NO_SIDE_EFFECTS__ */
2161
+ /*@__NO_SIDE_EFFECTS__*/
2137
2162
  function computed$1(getterOrOptions, debugOptions, isSSR = false) {
2138
2163
  let getter;
2139
2164
  let setter;
@@ -2211,25 +2236,26 @@ var Vue = (function() {
2211
2236
  else if (isFunction(s)) return call ? call(s, 2) : s();
2212
2237
  else warnInvalidSource(s, onWarn);
2213
2238
  });
2214
- } else if (isFunction(source)) if (cb) getter = call ? () => call(source, 2) : source;
2215
- else getter = () => {
2216
- if (this.cleanupsLength) {
2217
- const prevSub = setActiveSub();
2239
+ } else if (isFunction(source)) {
2240
+ if (cb) getter = call ? () => call(source, 2) : source;
2241
+ else getter = () => {
2242
+ if (this.cleanupsLength) {
2243
+ const prevSub = setActiveSub();
2244
+ try {
2245
+ cleanup(this);
2246
+ } finally {
2247
+ setActiveSub(prevSub);
2248
+ }
2249
+ }
2250
+ const currentEffect = activeWatcher;
2251
+ activeWatcher = this;
2218
2252
  try {
2219
- cleanup(this);
2253
+ return call ? call(source, 3, [this.boundCleanup]) : source(this.boundCleanup);
2220
2254
  } finally {
2221
- setActiveSub(prevSub);
2255
+ activeWatcher = currentEffect;
2222
2256
  }
2223
- }
2224
- const currentEffect = activeWatcher;
2225
- activeWatcher = this;
2226
- try {
2227
- return call ? call(source, 3, [this.boundCleanup]) : source(this.boundCleanup);
2228
- } finally {
2229
- activeWatcher = currentEffect;
2230
- }
2231
- };
2232
- else {
2257
+ };
2258
+ } else {
2233
2259
  getter = NOOP;
2234
2260
  warnInvalidSource(source, onWarn);
2235
2261
  }
@@ -2553,7 +2579,7 @@ var Vue = (function() {
2553
2579
  let jobsLength = 0;
2554
2580
  let flushIndex = 0;
2555
2581
  let postFlushIndex = 0;
2556
- const resolvedPromise = /* @__PURE__ */ Promise.resolve();
2582
+ const resolvedPromise = /*@__PURE__*/ Promise.resolve();
2557
2583
  const RECURSION_LIMIT = 100;
2558
2584
  function nextTick(fn) {
2559
2585
  const p = currentFlushPromise || resolvedPromise;
@@ -2592,6 +2618,7 @@ var Vue = (function() {
2592
2618
  flushJobs();
2593
2619
  } catch (e) {
2594
2620
  currentFlushPromise = null;
2621
+ if (jobsLength || postJobs.length) queueFlush();
2595
2622
  throw e;
2596
2623
  }
2597
2624
  };
@@ -2599,9 +2626,10 @@ var Vue = (function() {
2599
2626
  if (!currentFlushPromise) currentFlushPromise = resolvedPromise.then(doFlushJobs);
2600
2627
  }
2601
2628
  function queuePostFlushCb(jobs, id = Infinity) {
2602
- if (!isArray(jobs)) if (activePostJobs && id === -1) activePostJobs.splice(postFlushIndex, 0, jobs);
2603
- else queueJobWorker(jobs, id, postJobs, postJobs.length, 0);
2604
- else for (let i = 0; i < jobs.length; i++) queueJobWorker(jobs[i], id, postJobs, postJobs.length, 0);
2629
+ if (!isArray(jobs)) {
2630
+ if (activePostJobs && id === -1) activePostJobs.splice(postFlushIndex, 0, jobs);
2631
+ else queueJobWorker(jobs, id, postJobs, postJobs.length, 0);
2632
+ } else for (let i = 0; i < jobs.length; i++) queueJobWorker(jobs[i], id, postJobs, postJobs.length, 0);
2605
2633
  queueFlush();
2606
2634
  }
2607
2635
  function flushPreFlushCbs(instance, seen) {
@@ -2615,8 +2643,11 @@ var Vue = (function() {
2615
2643
  i--;
2616
2644
  jobsLength--;
2617
2645
  if (cb.flags & 2) cb.flags &= -2;
2618
- cb();
2619
- if (!(cb.flags & 2)) cb.flags &= -2;
2646
+ try {
2647
+ cb();
2648
+ } finally {
2649
+ if (!(cb.flags & 2)) cb.flags &= -2;
2650
+ }
2620
2651
  }
2621
2652
  }
2622
2653
  function flushPostFlushCbs(seen) {
@@ -2629,18 +2660,22 @@ var Vue = (function() {
2629
2660
  activePostJobs = postJobs;
2630
2661
  postJobs = [];
2631
2662
  seen = seen || /* @__PURE__ */ new Map();
2632
- while (postFlushIndex < activePostJobs.length) {
2633
- const cb = activePostJobs[postFlushIndex++];
2634
- if (checkRecursiveUpdates(seen, cb)) continue;
2635
- if (cb.flags & 2) cb.flags &= -2;
2636
- if (!(cb.flags & 4)) try {
2637
- cb();
2638
- } finally {
2639
- cb.flags &= -2;
2663
+ try {
2664
+ while (postFlushIndex < activePostJobs.length) {
2665
+ const cb = activePostJobs[postFlushIndex++];
2666
+ if (checkRecursiveUpdates(seen, cb)) continue;
2667
+ if (cb.flags & 2) cb.flags &= -2;
2668
+ if (!(cb.flags & 4)) try {
2669
+ cb();
2670
+ } finally {
2671
+ if (!(cb.flags & 2)) cb.flags &= -2;
2672
+ }
2640
2673
  }
2674
+ } finally {
2675
+ while (postFlushIndex < activePostJobs.length) activePostJobs[postFlushIndex++].flags &= -2;
2676
+ activePostJobs = null;
2677
+ postFlushIndex = 0;
2641
2678
  }
2642
- activePostJobs = null;
2643
- postFlushIndex = 0;
2644
2679
  }
2645
2680
  }
2646
2681
  let isFlushing = false;
@@ -2650,9 +2685,12 @@ var Vue = (function() {
2650
2685
  function flushOnAppMount(instance) {
2651
2686
  if (!isFlushing) {
2652
2687
  isFlushing = true;
2653
- flushPreFlushCbs(instance);
2654
- flushPostFlushCbs();
2655
- isFlushing = false;
2688
+ try {
2689
+ flushPreFlushCbs(instance);
2690
+ flushPostFlushCbs();
2691
+ } finally {
2692
+ isFlushing = false;
2693
+ }
2656
2694
  }
2657
2695
  }
2658
2696
  function flushJobs(seen) {
@@ -2682,8 +2720,8 @@ var Vue = (function() {
2682
2720
  jobsLength = 0;
2683
2721
  jobs.length = 0;
2684
2722
  flushPostFlushCbs(seen);
2685
- currentFlushPromise = null;
2686
2723
  if (jobsLength || postJobs.length) flushJobs(seen);
2724
+ else currentFlushPromise = null;
2687
2725
  }
2688
2726
  }
2689
2727
  function checkRecursiveUpdates(seen, fn) {
@@ -2714,6 +2752,19 @@ var Vue = (function() {
2714
2752
  rerender: tryWrap(rerender),
2715
2753
  reload: tryWrap(reload)
2716
2754
  };
2755
+ function runWithHmrUpdating(fn) {
2756
+ isHmrUpdating = true;
2757
+ let done = false;
2758
+ try {
2759
+ fn();
2760
+ done = true;
2761
+ } finally {
2762
+ if (done) nextTick(() => {
2763
+ isHmrUpdating = false;
2764
+ });
2765
+ else isHmrUpdating = false;
2766
+ }
2767
+ }
2717
2768
  const map = /* @__PURE__ */ new Map();
2718
2769
  function registerHMR(instance) {
2719
2770
  const id = instance.type.__hmrId;
@@ -2755,18 +2806,16 @@ var Vue = (function() {
2755
2806
  instance.render = newRender;
2756
2807
  normalizeClassComponent(instance.type).render = newRender;
2757
2808
  }
2758
- isHmrUpdating = true;
2759
- if (instance.vapor) {
2760
- if (!instance.isUnmounted) instance.hmrRerender();
2761
- } else {
2762
- const i = instance;
2763
- if (!(i.effect.flags & 1024)) {
2764
- i.renderCache = [];
2765
- i.effect.run();
2809
+ runWithHmrUpdating(() => {
2810
+ if (instance.vapor) {
2811
+ if (!instance.isUnmounted) instance.hmrRerender();
2812
+ } else {
2813
+ const i = instance;
2814
+ if (!(i.effect.flags & 1024)) {
2815
+ i.renderCache = [];
2816
+ i.effect.run();
2817
+ }
2766
2818
  }
2767
- }
2768
- nextTick(() => {
2769
- isHmrUpdating = false;
2770
2819
  });
2771
2820
  });
2772
2821
  }
@@ -2781,15 +2830,17 @@ var Vue = (function() {
2781
2830
  for (const instance of instances) if (instance.root && instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(instance.type);
2782
2831
  const dirtyInstances = new Set(instances);
2783
2832
  const rerenderedParents = /* @__PURE__ */ new Set();
2784
- for (const instance of instances) {
2785
- const parent = instance.parent;
2786
- if (parent) {
2787
- if (!hasDirtyAncestor(instance, dirtyInstances) && !rerenderedParents.has(parent)) {
2788
- rerenderedParents.add(parent);
2789
- parent.hmrRerender();
2790
- }
2791
- } else instance.hmrReload(newComp);
2792
- }
2833
+ runWithHmrUpdating(() => {
2834
+ for (const instance of instances) {
2835
+ const parent = instance.parent;
2836
+ if (parent) {
2837
+ if (!hasDirtyAncestor(instance, dirtyInstances) && !rerenderedParents.has(parent)) {
2838
+ rerenderedParents.add(parent);
2839
+ parent.hmrRerender();
2840
+ }
2841
+ } else instance.hmrReload(newComp);
2842
+ }
2843
+ });
2793
2844
  } else {
2794
2845
  const parentUpdates = /* @__PURE__ */ new Map();
2795
2846
  const dirtyInstanceSet = new Set(instances);
@@ -2823,21 +2874,22 @@ var Vue = (function() {
2823
2874
  }
2824
2875
  parentUpdates.forEach((updates, parent) => {
2825
2876
  queueJob(() => {
2826
- isHmrUpdating = true;
2827
- if (parent.vapor) parent.hmrRerender();
2828
- else {
2829
- const i = parent;
2830
- if (!(i.effect.flags & 1024)) {
2831
- i.renderCache = [];
2832
- i.effect.run();
2833
- }
2877
+ try {
2878
+ runWithHmrUpdating(() => {
2879
+ if (parent.vapor) parent.hmrRerender();
2880
+ else {
2881
+ const i = parent;
2882
+ if (!(i.effect.flags & 1024)) {
2883
+ i.renderCache = [];
2884
+ i.effect.run();
2885
+ }
2886
+ }
2887
+ });
2888
+ } finally {
2889
+ updates.forEach(([instance, dirtyInstances]) => {
2890
+ dirtyInstances.delete(instance);
2891
+ });
2834
2892
  }
2835
- nextTick(() => {
2836
- isHmrUpdating = false;
2837
- });
2838
- updates.forEach(([instance, dirtyInstances]) => {
2839
- dirtyInstances.delete(instance);
2840
- });
2841
2893
  });
2842
2894
  });
2843
2895
  }
@@ -2906,20 +2958,20 @@ var Vue = (function() {
2906
2958
  function devtoolsUnmountApp(app) {
2907
2959
  emit$2("app:unmount", app);
2908
2960
  }
2909
- const devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook("component:added");
2910
- const devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook("component:updated");
2911
- const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook("component:removed");
2961
+ const devtoolsComponentAdded = /*@__PURE__*/ createDevtoolsComponentHook("component:added");
2962
+ const devtoolsComponentUpdated = /*@__PURE__*/ createDevtoolsComponentHook("component:updated");
2963
+ const _devtoolsComponentRemoved = /*@__PURE__*/ createDevtoolsComponentHook("component:removed");
2912
2964
  const devtoolsComponentRemoved = (component) => {
2913
2965
  if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && !devtools$1.cleanupBuffer(component)) _devtoolsComponentRemoved(component);
2914
2966
  };
2915
- /* @__NO_SIDE_EFFECTS__ */
2967
+ /*@__NO_SIDE_EFFECTS__*/
2916
2968
  function createDevtoolsComponentHook(hook) {
2917
2969
  return (component) => {
2918
2970
  emit$2(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : void 0, component);
2919
2971
  };
2920
2972
  }
2921
- const devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook("perf:start");
2922
- const devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook("perf:end");
2973
+ const devtoolsPerfStart = /*@__PURE__*/ createDevtoolsPerformanceHook("perf:start");
2974
+ const devtoolsPerfEnd = /*@__PURE__*/ createDevtoolsPerformanceHook("perf:end");
2923
2975
  function createDevtoolsPerformanceHook(hook) {
2924
2976
  return (component, type, time) => {
2925
2977
  emit$2(hook, component.appContext.app, component.uid, component, type, time);
@@ -3148,7 +3200,7 @@ var Vue = (function() {
3148
3200
  validateCompatConfig(config);
3149
3201
  extend(globalCompatConfig, config);
3150
3202
  }
3151
- const seenConfigObjects = /* @__PURE__ */ new WeakSet();
3203
+ const seenConfigObjects = /*@__PURE__*/ new WeakSet();
3152
3204
  const warnedInvalidKeys = {};
3153
3205
  function validateCompatConfig(config, instance) {
3154
3206
  if (seenConfigObjects.has(config)) return;
@@ -3200,7 +3252,7 @@ var Vue = (function() {
3200
3252
  }
3201
3253
  //#endregion
3202
3254
  //#region packages/runtime-core/src/compat/instanceEventEmitter.ts
3203
- const eventRegistryMap = /* @__PURE__ */ new WeakMap();
3255
+ const eventRegistryMap = /*@__PURE__*/ new WeakMap();
3204
3256
  function getRegistry(instance) {
3205
3257
  let events = eventRegistryMap.get(instance);
3206
3258
  if (!events) eventRegistryMap.set(instance, events = Object.create(null));
@@ -3334,19 +3386,21 @@ var Vue = (function() {
3334
3386
  };
3335
3387
  function mapCompatDirectiveHook(name, dir, instance) {
3336
3388
  const mappedName = legacyDirectiveHookMap[name];
3337
- if (mappedName) if (isArray(mappedName)) {
3338
- const hook = [];
3339
- mappedName.forEach((mapped) => {
3340
- const mappedHook = dir[mapped];
3341
- if (mappedHook) {
3342
- softAssertCompatEnabled("CUSTOM_DIR", instance, mapped, name);
3343
- hook.push(mappedHook);
3344
- }
3345
- });
3346
- return hook.length ? hook : void 0;
3347
- } else {
3348
- if (dir[mappedName]) softAssertCompatEnabled("CUSTOM_DIR", instance, mappedName, name);
3349
- return dir[mappedName];
3389
+ if (mappedName) {
3390
+ if (isArray(mappedName)) {
3391
+ const hook = [];
3392
+ mappedName.forEach((mapped) => {
3393
+ const mappedHook = dir[mapped];
3394
+ if (mappedHook) {
3395
+ softAssertCompatEnabled("CUSTOM_DIR", instance, mapped, name);
3396
+ hook.push(mappedHook);
3397
+ }
3398
+ });
3399
+ return hook.length ? hook : void 0;
3400
+ } else {
3401
+ if (dir[mappedName]) softAssertCompatEnabled("CUSTOM_DIR", instance, mappedName, name);
3402
+ return dir[mappedName];
3403
+ }
3350
3404
  }
3351
3405
  }
3352
3406
  //#endregion
@@ -3531,15 +3585,16 @@ var Vue = (function() {
3531
3585
  const isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement;
3532
3586
  const resolveTarget = (props, select) => {
3533
3587
  const targetSelector = props && props.to;
3534
- if (isString(targetSelector)) if (!select) {
3535
- warn$1("Current renderer does not support string target for Teleports. (missing querySelector renderer option)");
3536
- return null;
3588
+ if (isString(targetSelector)) {
3589
+ if (!select) {
3590
+ warn$1("Current renderer does not support string target for Teleports. (missing querySelector renderer option)");
3591
+ return null;
3592
+ } else {
3593
+ const target = select(targetSelector);
3594
+ if (!target && !isTeleportDisabled(props)) warn$1(`Failed to locate Teleport target with selector "${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.`);
3595
+ return target;
3596
+ }
3537
3597
  } else {
3538
- const target = select(targetSelector);
3539
- if (!target && !isTeleportDisabled(props)) warn$1(`Failed to locate Teleport target with selector "${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.`);
3540
- return target;
3541
- }
3542
- else {
3543
3598
  if (!targetSelector && !isTeleportDisabled(props)) warn$1(`Invalid Teleport target: ${targetSelector}`);
3544
3599
  return targetSelector;
3545
3600
  }
@@ -3577,7 +3632,8 @@ var Vue = (function() {
3577
3632
  if (pendingMounts.get(vnode) !== mountJob) return;
3578
3633
  pendingMounts.delete(vnode);
3579
3634
  if (isTeleportDisabled(vnode.props)) {
3580
- mount(vnode, parentNode(vnode.el) || container, vnode.anchor);
3635
+ const mountContainer = parentNode(vnode.el) || container;
3636
+ mount(vnode, mountContainer, vnode.anchor);
3581
3637
  updateCssVars(vnode, true);
3582
3638
  }
3583
3639
  mountToTarget(vnode);
@@ -3686,15 +3742,17 @@ var Vue = (function() {
3686
3742
  const disabled = isTeleportDisabled(vnode.props);
3687
3743
  if (target) {
3688
3744
  const targetNode = target._lpa || target.firstChild;
3689
- if (vnode.shapeFlag & 16) if (disabled) {
3690
- hydrateDisabledTeleport(node, vnode);
3691
- hydrateAnchor(target, targetNode);
3692
- if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert, parentNode(node) === target ? node : null);
3693
- } else {
3694
- vnode.anchor = nextSibling(node);
3695
- hydrateAnchor(target, targetNode);
3696
- if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert);
3697
- hydrateChildren(targetNode && nextSibling(targetNode), vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
3745
+ if (vnode.shapeFlag & 16) {
3746
+ if (disabled) {
3747
+ hydrateDisabledTeleport(node, vnode);
3748
+ hydrateAnchor(target, targetNode);
3749
+ if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert, parentNode(node) === target ? node : null);
3750
+ } else {
3751
+ vnode.anchor = nextSibling(node);
3752
+ hydrateAnchor(target, targetNode);
3753
+ if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert);
3754
+ hydrateChildren(targetNode && nextSibling(targetNode), vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
3755
+ }
3698
3756
  }
3699
3757
  updateCssVars(vnode, disabled);
3700
3758
  } else if (disabled) {
@@ -3861,8 +3919,10 @@ var Vue = (function() {
3861
3919
  persisted,
3862
3920
  beforeEnter(el) {
3863
3921
  let hook = onBeforeEnter;
3864
- if (!state.isMounted) if (appear) hook = onBeforeAppear || onBeforeEnter;
3865
- else return;
3922
+ if (!state.isMounted) {
3923
+ if (appear) hook = onBeforeAppear || onBeforeEnter;
3924
+ else return;
3925
+ }
3866
3926
  if (el[leaveCbKey]) el[leaveCbKey](true);
3867
3927
  earlyRemove();
3868
3928
  callHook(hook, [el]);
@@ -3872,11 +3932,13 @@ var Vue = (function() {
3872
3932
  let hook = onEnter;
3873
3933
  let afterHook = onAfterEnter;
3874
3934
  let cancelHook = onEnterCancelled;
3875
- if (!state.isMounted) if (appear) {
3876
- hook = onAppear || onEnter;
3877
- afterHook = onAfterAppear || onAfterEnter;
3878
- cancelHook = onAppearCancelled || onEnterCancelled;
3879
- } else return;
3935
+ if (!state.isMounted) {
3936
+ if (appear) {
3937
+ hook = onAppear || onEnter;
3938
+ afterHook = onAfterAppear || onAfterEnter;
3939
+ cancelHook = onAppearCancelled || onEnterCancelled;
3940
+ } else return;
3941
+ }
3880
3942
  let called = false;
3881
3943
  el[enterCbKey$1] = (cancelled) => {
3882
3944
  if (called) return;
@@ -4042,9 +4104,9 @@ var Vue = (function() {
4042
4104
  }
4043
4105
  //#endregion
4044
4106
  //#region packages/runtime-core/src/apiDefineComponent.ts
4045
- /* @__NO_SIDE_EFFECTS__ */
4107
+ /*@__NO_SIDE_EFFECTS__*/
4046
4108
  function defineComponent(options, extraOptions) {
4047
- return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
4109
+ return isFunction(options) ? /*@__PURE__*/ (() => extend({ name: options.name }, extraOptions, { setup: options }))() : options;
4048
4110
  }
4049
4111
  //#endregion
4050
4112
  //#region packages/runtime-core/src/helpers/useId.ts
@@ -4141,15 +4203,16 @@ var Vue = (function() {
4141
4203
  if (rawRef.f) {
4142
4204
  const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
4143
4205
  if (isUnmount) isArray(existing) && remove(existing, refValue);
4144
- else if (!isArray(existing)) if (_isString) {
4145
- refs[ref] = [refValue];
4146
- if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
4147
- } else {
4148
- const newVal = [refValue];
4149
- if (canSetRef(ref, rawRef.k)) ref.value = newVal;
4150
- if (rawRef.k) refs[rawRef.k] = newVal;
4151
- }
4152
- else if (!existing.includes(refValue)) existing.push(refValue);
4206
+ else if (!isArray(existing)) {
4207
+ if (_isString) {
4208
+ refs[ref] = [refValue];
4209
+ if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
4210
+ } else {
4211
+ const newVal = [refValue];
4212
+ if (canSetRef(ref, rawRef.k)) ref.value = newVal;
4213
+ if (rawRef.k) refs[rawRef.k] = newVal;
4214
+ }
4215
+ } else if (!existing.includes(refValue)) existing.push(refValue);
4153
4216
  } else if (_isString) {
4154
4217
  refs[ref] = value;
4155
4218
  if (canSetSetupRef(ref)) setupState[ref] = value;
@@ -4201,7 +4264,18 @@ var Vue = (function() {
4201
4264
  hasLoggedMismatchError = true;
4202
4265
  };
4203
4266
  const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
4204
- const isMathMLContainer = (container) => container.namespaceURI.includes("MathML");
4267
+ const isMathMLContainer = (container) => {
4268
+ if (!container.namespaceURI.includes("MathML")) return false;
4269
+ if (container.tagName !== "annotation-xml") return true;
4270
+ const encoding = container.getAttribute("encoding");
4271
+ return !encoding || !encoding.includes("html");
4272
+ };
4273
+ /**
4274
+ * Resolve the element namespace a container's children should be created in.
4275
+ * The live DOM is the source of truth, so this also covers containers that are
4276
+ * only known at runtime (interop boundaries, teleport targets).
4277
+ * @internal
4278
+ */
4205
4279
  const getContainerType = (container) => {
4206
4280
  if (container.nodeType !== 1) return void 0;
4207
4281
  if (isSVGContainer(container)) return "svg";
@@ -4239,11 +4313,12 @@ var Vue = (function() {
4239
4313
  let nextNode = null;
4240
4314
  switch (type) {
4241
4315
  case Text:
4242
- if (domType !== 3) if (vnode.children === "") {
4243
- insert(vnode.el = createText(""), parentNode(node), node);
4244
- nextNode = node;
4245
- } else nextNode = onMismatch();
4246
- else {
4316
+ if (domType !== 3) {
4317
+ if (vnode.children === "") {
4318
+ insert(vnode.el = createText(""), parentNode(node), node);
4319
+ nextNode = node;
4320
+ } else nextNode = onMismatch();
4321
+ } else {
4247
4322
  if (node.data !== vnode.children) {
4248
4323
  warn$1(`Hydration text mismatch in`, node.parentNode, `\n - rendered on server: ${JSON.stringify(node.data)}\n - expected on client: ${JSON.stringify(vnode.children)}`);
4249
4324
  logMismatchError();
@@ -4280,11 +4355,12 @@ var Vue = (function() {
4280
4355
  else nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
4281
4356
  break;
4282
4357
  case VaporSlot:
4283
- nextNode = getVaporInterface(parentComponent, vnode).hydrateSlot(vnode, node, parentComponent, parentSuspense);
4358
+ nextNode = getVaporInterface(parentComponent, vnode).hydrateSlot(vnode, node, parentComponent, parentSuspense, slotScopeIds);
4284
4359
  break;
4285
- default: if (shapeFlag & 1) if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode$1(node)) nextNode = onMismatch();
4286
- else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
4287
- else if (shapeFlag & 6) {
4360
+ default: if (shapeFlag & 1) {
4361
+ if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode$1(node)) nextNode = onMismatch();
4362
+ else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
4363
+ } else if (shapeFlag & 6) {
4288
4364
  vnode.slotScopeIds = slotScopeIds;
4289
4365
  const container = parentNode(node);
4290
4366
  if (isFragmentStart) nextNode = locateClosingAnchor(node);
@@ -4306,19 +4382,20 @@ var Vue = (function() {
4306
4382
  } else {
4307
4383
  mountComponent(vnode, container, null, parentComponent, parentSuspense, getContainerType(container), optimized);
4308
4384
  const component = vnode.component;
4309
- if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved || component.asyncDep && !component.asyncResolved) {
4385
+ if (!component.subTree && (isAsyncWrapper(vnode) || component.asyncDep && !component.asyncResolved)) {
4310
4386
  let subTree;
4311
4387
  if (isFragmentStart) {
4312
- subTree = createVNode(Fragment);
4388
+ subTree = createVNode(Static);
4313
4389
  subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;
4314
4390
  } else subTree = node.nodeType === 3 ? createTextVNode("") : createVNode("div");
4315
4391
  subTree.el = node;
4316
4392
  component.subTree = subTree;
4317
4393
  }
4318
4394
  }
4319
- } else if (shapeFlag & 64) if (domType !== 8) nextNode = onMismatch();
4320
- else nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
4321
- else if (shapeFlag & 128) nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
4395
+ } else if (shapeFlag & 64) {
4396
+ if (domType !== 8) nextNode = onMismatch();
4397
+ else nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
4398
+ } else if (shapeFlag & 128) nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
4322
4399
  else warn$1("Invalid HostVNode type:", type, `(${typeof type})`);
4323
4400
  }
4324
4401
  if (ref != null) setRef(ref, null, parentSuspense, vnode);
@@ -4447,7 +4524,7 @@ var Vue = (function() {
4447
4524
  const container = parentNode(node);
4448
4525
  remove(node);
4449
4526
  patch(null, vnode, container, next, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
4450
- if (parentComponent) {
4527
+ if (parentComponent && parentComponent.vnode) {
4451
4528
  parentComponent.vnode.el = vnode.el;
4452
4529
  updateHOCHostEl(parentComponent, vnode.el);
4453
4530
  }
@@ -4459,8 +4536,10 @@ var Vue = (function() {
4459
4536
  node = nextSibling(node);
4460
4537
  if (node && isComment(node)) {
4461
4538
  if (node.data === open) match++;
4462
- if (node.data === close) if (match === 0) return nextSibling(node);
4463
- else match--;
4539
+ if (node.data === close) {
4540
+ if (match === 0) return nextSibling(node);
4541
+ else match--;
4542
+ }
4464
4543
  }
4465
4544
  }
4466
4545
  return node;
@@ -4470,7 +4549,7 @@ var Vue = (function() {
4470
4549
  if (parentNode) parentNode.replaceChild(newNode, oldNode);
4471
4550
  let parent = parentComponent;
4472
4551
  while (parent) {
4473
- if (parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
4552
+ if (parent.vnode && parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
4474
4553
  parent = parent.parent;
4475
4554
  }
4476
4555
  };
@@ -4482,7 +4561,7 @@ var Vue = (function() {
4482
4561
  /**
4483
4562
  * Dev only
4484
4563
  */
4485
- const resourceProps = /* @__PURE__ */ new Set([
4564
+ const resourceProps = /*@__PURE__*/ new Set([
4486
4565
  "src",
4487
4566
  "srcset",
4488
4567
  "href",
@@ -4724,7 +4803,7 @@ var Vue = (function() {
4724
4803
  //#endregion
4725
4804
  //#region packages/runtime-core/src/apiAsyncComponent.ts
4726
4805
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
4727
- /* @__NO_SIDE_EFFECTS__ */
4806
+ /*@__NO_SIDE_EFFECTS__*/
4728
4807
  function defineAsyncComponent(source) {
4729
4808
  const { load, getResolvedComp, setPendingRequest, source: { loadingComponent, errorComponent, delay, hydrate: hydrateStrategy, timeout, suspensible = true } } = createAsyncComponentContext(source);
4730
4809
  return /* @__PURE__ */ defineComponent({
@@ -4939,10 +5018,13 @@ var Vue = (function() {
4939
5018
  });
4940
5019
  let pendingCacheKey = null;
4941
5020
  const cacheSubtree = () => {
4942
- if (pendingCacheKey != null) if (isSuspense(keepAliveInstance.subTree.type)) queuePostRenderEffect(() => {
4943
- cache.set(pendingCacheKey, getInnerChild(keepAliveInstance.subTree));
4944
- }, void 0, keepAliveInstance.subTree.suspense);
4945
- else cache.set(pendingCacheKey, getInnerChild(keepAliveInstance.subTree));
5021
+ if (pendingCacheKey != null) {
5022
+ if (isSuspense(keepAliveInstance.subTree.type)) queuePostRenderEffect(() => {
5023
+ const vnode = getInnerChild(keepAliveInstance.subTree);
5024
+ if (vnode.component) cache.set(pendingCacheKey, vnode);
5025
+ }, void 0, keepAliveInstance.subTree.suspense);
5026
+ else cache.set(pendingCacheKey, getInnerChild(keepAliveInstance.subTree));
5027
+ }
4946
5028
  };
4947
5029
  onMounted(cacheSubtree);
4948
5030
  onUpdated(cacheSubtree);
@@ -5013,7 +5095,7 @@ var Vue = (function() {
5013
5095
  t.__isBuiltIn = true;
5014
5096
  return t;
5015
5097
  };
5016
- const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl);
5098
+ const KeepAlive = /*@__PURE__*/ decorate$2(KeepAliveImpl);
5017
5099
  function matches(pattern, name) {
5018
5100
  if (isArray(pattern)) return pattern.some((p) => matches(p, name));
5019
5101
  else if (isString(pattern)) return pattern.split(",").includes(name);
@@ -5229,16 +5311,17 @@ var Vue = (function() {
5229
5311
  }
5230
5312
  const l = arguments.length;
5231
5313
  const is2ndArgArrayChildren = isArray(propsOrChildren);
5232
- if (l === 2 || is2ndArgArrayChildren) if (isObject(propsOrChildren) && !is2ndArgArrayChildren) {
5233
- if (isVNode(propsOrChildren)) return convertLegacySlots(createVNode(type, null, [propsOrChildren]));
5234
- return convertLegacySlots(convertLegacyDirectives(createVNode(type, convertLegacyProps(propsOrChildren, type)), propsOrChildren));
5235
- } else return convertLegacySlots(createVNode(type, null, propsOrChildren));
5236
- else {
5314
+ if (l === 2 || is2ndArgArrayChildren) {
5315
+ if (isObject(propsOrChildren) && !is2ndArgArrayChildren) {
5316
+ if (isVNode(propsOrChildren)) return convertLegacySlots(createVNode(type, null, [propsOrChildren]));
5317
+ return convertLegacySlots(convertLegacyDirectives(createVNode(type, convertLegacyProps(propsOrChildren, type)), propsOrChildren));
5318
+ } else return convertLegacySlots(createVNode(type, null, propsOrChildren));
5319
+ } else {
5237
5320
  if (isVNode(children)) children = [children];
5238
5321
  return convertLegacySlots(convertLegacyDirectives(createVNode(type, convertLegacyProps(propsOrChildren, type), children), propsOrChildren));
5239
5322
  }
5240
5323
  }
5241
- const skipLegacyRootLevelProps = /* @__PURE__ */ makeMap("staticStyle,staticClass,directives,model,hook");
5324
+ const skipLegacyRootLevelProps = /*@__PURE__*/ makeMap("staticStyle,staticClass,directives,model,hook");
5242
5325
  function convertLegacyProps(legacyProps, type) {
5243
5326
  if (!legacyProps) return null;
5244
5327
  const converted = {};
@@ -5250,8 +5333,10 @@ var Vue = (function() {
5250
5333
  if (key === "nativeOn") handlerKey += `Native`;
5251
5334
  const existing = converted[handlerKey];
5252
5335
  const incoming = listeners[event];
5253
- if (existing !== incoming) if (existing) converted[handlerKey] = [].concat(existing, incoming);
5254
- else converted[handlerKey] = incoming;
5336
+ if (existing !== incoming) {
5337
+ if (existing) converted[handlerKey] = [].concat(existing, incoming);
5338
+ else converted[handlerKey] = incoming;
5339
+ }
5255
5340
  }
5256
5341
  } else if (!skipLegacyRootLevelProps(key)) converted[key] = legacyProps[key];
5257
5342
  if (legacyProps.staticClass) converted.class = normalizeClass([legacyProps.staticClass, converted.class]);
@@ -5350,7 +5435,7 @@ var Vue = (function() {
5350
5435
  const legacyFn = comp.render;
5351
5436
  const Func = (props, ctx) => {
5352
5437
  const instance = getCurrentInstance();
5353
- return legacyFn(compatH, {
5438
+ const legacyCtx = {
5354
5439
  props,
5355
5440
  children: instance.vnode.children || [],
5356
5441
  data: instance.vnode.props || {},
@@ -5370,7 +5455,8 @@ var Vue = (function() {
5370
5455
  }
5371
5456
  return {};
5372
5457
  }
5373
- });
5458
+ };
5459
+ return legacyFn(compatH, legacyCtx);
5374
5460
  };
5375
5461
  Func.props = comp.props;
5376
5462
  Func.displayName = comp.name;
@@ -5399,23 +5485,25 @@ var Vue = (function() {
5399
5485
  }
5400
5486
  ret = new Array(source.length);
5401
5487
  for (let i = 0, l = source.length; i < l; i++) ret[i] = renderItem(needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i], i, void 0, cached && cached[i]);
5402
- } else if (typeof source === "number") if (!Number.isInteger(source) || source < 0) {
5403
- warn$1(`The v-for range expects a positive integer value but got ${source}.`);
5404
- ret = [];
5405
- } else {
5406
- ret = new Array(source);
5407
- for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
5408
- }
5409
- else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
5410
- else {
5411
- const keys = Object.keys(source);
5412
- ret = new Array(keys.length);
5413
- for (let i = 0, l = keys.length; i < l; i++) {
5414
- const key = keys[i];
5415
- ret[i] = renderItem(source[key], key, i, cached && cached[i]);
5488
+ } else if (typeof source === "number") {
5489
+ if (!Number.isInteger(source) || source < 0) {
5490
+ warn$1(`The v-for range expects a positive integer value but got ${source}.`);
5491
+ ret = [];
5492
+ } else {
5493
+ ret = new Array(source);
5494
+ for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
5416
5495
  }
5417
- }
5418
- else ret = [];
5496
+ } else if (isObject(source)) {
5497
+ if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
5498
+ else {
5499
+ const keys = Object.keys(source);
5500
+ ret = new Array(keys.length);
5501
+ for (let i = 0, l = keys.length; i < l; i++) {
5502
+ const key = keys[i];
5503
+ ret[i] = renderItem(source[key], key, i, cached && cached[i]);
5504
+ }
5505
+ }
5506
+ } else ret = [];
5419
5507
  if (cache) cache[index] = ret;
5420
5508
  return ret;
5421
5509
  }
@@ -5440,14 +5528,27 @@ var Vue = (function() {
5440
5528
  //#endregion
5441
5529
  //#region packages/runtime-core/src/helpers/renderSlot.ts
5442
5530
  /**
5531
+ * Links a slot function to its raw vapor slot: a raw vapor slot carries
5532
+ * itself, and the wrapper the interop slots proxy hands out carries the raw
5533
+ * slot it wraps — one lookup answers both "is this a vapor slot" and
5534
+ * "which one". Internal to vapor interop.
5535
+ */
5536
+ const rawVaporSlotKey = Symbol(`rawVaporSlot`);
5537
+ /**
5538
+ * Marks a compiler-generated slot fallback as VDOM-rendered so the vapor
5539
+ * interop fallback chain renders it through the VDOM renderer. Internal to
5540
+ * vapor interop.
5541
+ */
5542
+ const vdomSlotFallbackKey = Symbol(`vdomSlotFallback`);
5543
+ /**
5443
5544
  * Compiler runtime helper for rendering `<slot/>`
5444
5545
  * @private
5445
5546
  */
5446
5547
  function renderSlot(slots, name, props, fallback, noSlotted, branchKey) {
5447
5548
  if (props == null) props = {};
5448
5549
  let slot = slots[name];
5449
- if (fallback) fallback.__vdom = true;
5450
- const vaporSlot = slot && (slot.__vs || (slot.__vapor ? slot : null));
5550
+ if (fallback) fallback[vdomSlotFallbackKey] = true;
5551
+ const vaporSlot = slot && slot[rawVaporSlotKey];
5451
5552
  if (vaporSlot) {
5452
5553
  const ret = (openBlock(), createBlock(VaporSlot, props));
5453
5554
  ret.vs = {
@@ -5555,12 +5656,14 @@ var Vue = (function() {
5555
5656
  function mapKeyToName(slots) {
5556
5657
  for (let i = 0; i < slots.length; i++) {
5557
5658
  const fn = slots[i];
5558
- if (fn) if (isArray(fn)) mapKeyToName(fn);
5559
- else fn.name = fn.key || "default";
5659
+ if (fn) {
5660
+ if (isArray(fn)) mapKeyToName(fn);
5661
+ else fn.name = fn.key || "default";
5662
+ }
5560
5663
  }
5561
5664
  return slots;
5562
5665
  }
5563
- const staticCacheMap = /* @__PURE__ */ new WeakMap();
5666
+ const staticCacheMap = /*@__PURE__*/ new WeakMap();
5564
5667
  function legacyRenderStatic(instance, index) {
5565
5668
  let cache = staticCacheMap.get(instance);
5566
5669
  if (!cache) staticCacheMap.set(instance, cache = []);
@@ -5693,11 +5796,38 @@ var Vue = (function() {
5693
5796
  if (isStatefulComponent(i)) return getComponentPublicInstance(i);
5694
5797
  return getPublicInstance(i.parent);
5695
5798
  };
5799
+ const resolveDevRootEl = (vnode) => {
5800
+ let found = false;
5801
+ while (true) {
5802
+ if (vnode.patchFlag > 0 && vnode.patchFlag & 2048) {
5803
+ const root = filterSingleRoot(vnode.children);
5804
+ if (!root) return;
5805
+ vnode = root;
5806
+ found = true;
5807
+ continue;
5808
+ }
5809
+ const component = vnode.component;
5810
+ if (component && component.subTree) {
5811
+ vnode = component.subTree;
5812
+ continue;
5813
+ }
5814
+ const suspense = vnode.suspense;
5815
+ if (suspense && suspense.activeBranch) {
5816
+ vnode = suspense.activeBranch;
5817
+ continue;
5818
+ }
5819
+ return found ? vnode.el : void 0;
5820
+ }
5821
+ };
5822
+ const getDevRootFragmentEl = (i) => {
5823
+ const el = i.subTree && resolveDevRootEl(i.subTree);
5824
+ return el === void 0 ? i.vnode.el : el;
5825
+ };
5696
5826
  let publicPropertiesMap;
5697
5827
  const getPublicPropertiesMap = () => {
5698
5828
  if (!publicPropertiesMap) publicPropertiesMap = extend(Object.create(null), {
5699
5829
  $: (i) => i,
5700
- $el: (i) => i.vnode.el,
5830
+ $el: (i) => getDevRootFragmentEl(i),
5701
5831
  $data: (i) => i.data,
5702
5832
  $props: (i) => /* @__PURE__ */ shallowReadonly(i.props),
5703
5833
  $attrs: (i) => /* @__PURE__ */ shallowReadonly(i.attrs),
@@ -5810,7 +5940,7 @@ var Vue = (function() {
5810
5940
  warn$1("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.");
5811
5941
  return Reflect.ownKeys(target);
5812
5942
  };
5813
- const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend({}, PublicInstanceProxyHandlers, {
5943
+ const RuntimeCompiledPublicInstanceProxyHandlers = /*@__PURE__*/ extend({}, PublicInstanceProxyHandlers, {
5814
5944
  get(target, key) {
5815
5945
  if (key === Symbol.unscopables) return;
5816
5946
  return PublicInstanceProxyHandlers.get(target, key, target);
@@ -5995,12 +6125,13 @@ var Vue = (function() {
5995
6125
  for (const key in defaults) {
5996
6126
  if (key.startsWith("__skip")) continue;
5997
6127
  let opt = props[key];
5998
- if (opt) if (isArray(opt) || isFunction(opt)) opt = props[key] = {
5999
- type: opt,
6000
- default: defaults[key]
6001
- };
6002
- else opt.default = defaults[key];
6003
- else if (opt === null) opt = props[key] = { default: defaults[key] };
6128
+ if (opt) {
6129
+ if (isArray(opt) || isFunction(opt)) opt = props[key] = {
6130
+ type: opt,
6131
+ default: defaults[key]
6132
+ };
6133
+ else opt.default = defaults[key];
6134
+ } else if (opt === null) opt = props[key] = { default: defaults[key] };
6004
6135
  else warn$1(`props default key "${key}" has no corresponding declaration.`);
6005
6136
  if (opt && defaults[`__skip_${key}`]) opt.skipFactory = true;
6006
6137
  }
@@ -6143,11 +6274,12 @@ var Vue = (function() {
6143
6274
  const opt = computedOptions[key];
6144
6275
  const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
6145
6276
  if (get === NOOP) warn$1(`Computed property "${key}" has no getter.`);
6277
+ const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => {
6278
+ warn$1(`Write operation failed: computed property "${key}" is readonly.`);
6279
+ };
6146
6280
  const c = computed({
6147
6281
  get,
6148
- set: !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => {
6149
- warn$1(`Write operation failed: computed property "${key}" is readonly.`);
6150
- }
6282
+ set
6151
6283
  });
6152
6284
  Object.defineProperty(ctx, key, {
6153
6285
  enumerable: true,
@@ -6206,9 +6338,10 @@ var Vue = (function() {
6206
6338
  for (const key in injectOptions) {
6207
6339
  const opt = injectOptions[key];
6208
6340
  let injected;
6209
- if (isObject(opt)) if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
6210
- else injected = inject(opt.from || key);
6211
- else injected = inject(opt);
6341
+ if (isObject(opt)) {
6342
+ if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
6343
+ else injected = inject(opt.from || key);
6344
+ } else injected = inject(opt);
6212
6345
  if (/* @__PURE__ */ isRef(injected)) Object.defineProperty(ctx, key, {
6213
6346
  enumerable: true,
6214
6347
  configurable: true,
@@ -6228,7 +6361,8 @@ var Vue = (function() {
6228
6361
  {
6229
6362
  const cur = getCurrentInstance();
6230
6363
  const instance = cur && getCurrentScope() === cur.scope ? cur : null;
6231
- if (isArray(getter()) && isCompatEnabled$1("WATCH_ARRAY", instance)) options.deep = true;
6364
+ const newValue = getter();
6365
+ if (isArray(newValue) && isCompatEnabled$1("WATCH_ARRAY", instance)) options.deep = true;
6232
6366
  const baseGetter = getter;
6233
6367
  getter = () => {
6234
6368
  const val = baseGetter();
@@ -6241,13 +6375,14 @@ var Vue = (function() {
6241
6375
  if (isFunction(handler)) watch(getter, handler, options);
6242
6376
  else warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
6243
6377
  } else if (isFunction(raw)) watch(getter, raw.bind(publicThis), options);
6244
- else if (isObject(raw)) if (isArray(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
6245
- else {
6246
- const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
6247
- if (isFunction(handler)) watch(getter, handler, extend(raw, options));
6248
- else warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
6249
- }
6250
- else warn$1(`Invalid watch option: "${key}"`, raw);
6378
+ else if (isObject(raw)) {
6379
+ if (isArray(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
6380
+ else {
6381
+ const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
6382
+ if (isFunction(handler)) watch(getter, handler, extend(raw, options));
6383
+ else warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
6384
+ }
6385
+ } else warn$1(`Invalid watch option: "${key}"`, raw);
6251
6386
  }
6252
6387
  /**
6253
6388
  * Resolve merged options and cache it on the component.
@@ -6261,12 +6396,13 @@ var Vue = (function() {
6261
6396
  const cached = cache.get(base);
6262
6397
  let resolved;
6263
6398
  if (cached) resolved = cached;
6264
- else if (!globalMixins.length && !mixins && !extendsOptions) if (isCompatEnabled$1("PRIVATE_APIS", instance)) {
6265
- resolved = extend({}, base);
6266
- resolved.parent = instance.parent && instance.parent.proxy;
6267
- resolved.propsData = instance.vnode.props;
6268
- } else resolved = base;
6269
- else {
6399
+ else if (!globalMixins.length && !mixins && !extendsOptions) {
6400
+ if (isCompatEnabled$1("PRIVATE_APIS", instance)) {
6401
+ resolved = extend({}, base);
6402
+ resolved.parent = instance.parent && instance.parent.proxy;
6403
+ resolved.propsData = instance.vnode.props;
6404
+ } else resolved = base;
6405
+ } else {
6270
6406
  resolved = {};
6271
6407
  if (globalMixins.length) globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true));
6272
6408
  mergeOptions(resolved, base, optionMergeStrategies);
@@ -6339,7 +6475,7 @@ var Vue = (function() {
6339
6475
  }
6340
6476
  function mergeEmitsOrPropsOptions(to, from) {
6341
6477
  if (to) {
6342
- if (isArray(to) && isArray(from)) return [...new Set([...to, ...from])];
6478
+ if (isArray(to) && isArray(from)) return [.../* @__PURE__ */ new Set([...to, ...from])];
6343
6479
  return extend(Object.create(null), normalizePropsOrEmits(to), normalizePropsOrEmits(from !== null && from !== void 0 ? from : {}));
6344
6480
  } else return from;
6345
6481
  }
@@ -6400,7 +6536,7 @@ var Vue = (function() {
6400
6536
  if (options.el) return vm.$mount(options.el);
6401
6537
  else return vm;
6402
6538
  }
6403
- Vue.version = `2.6.14-compat:3.6.0-rc.4`;
6539
+ Vue.version = `2.6.14-compat:3.6.0-rc.6`;
6404
6540
  Vue.config = singletonApp.config;
6405
6541
  Vue.use = (plugin, ...options) => {
6406
6542
  if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
@@ -6790,8 +6926,10 @@ var Vue = (function() {
6790
6926
  } else warn$1(`Cannot unmount an app that is not mounted.`);
6791
6927
  },
6792
6928
  provide(key, value) {
6793
- if (key in context.provides) if (hasOwn(context.provides, key)) warn$1(`App already provides property with key "${String(key)}". It will be overwritten with the new value.`);
6794
- else warn$1(`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`);
6929
+ if (key in context.provides) {
6930
+ if (hasOwn(context.provides, key)) warn$1(`App already provides property with key "${String(key)}". It will be overwritten with the new value.`);
6931
+ else warn$1(`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`);
6932
+ }
6795
6933
  context.provides[key] = value;
6796
6934
  return app;
6797
6935
  },
@@ -6941,12 +7079,14 @@ var Vue = (function() {
6941
7079
  if (instance.isUnmounted) return;
6942
7080
  {
6943
7081
  const { emitsOptions, propsOptions } = instance;
6944
- if (emitsOptions) if (!(event in emitsOptions) && !(event.startsWith("hook:") || event.startsWith(compatModelEventPrefix))) {
6945
- if (!propsOptions || !propsOptions[0] || !(toHandlerKey(camelize(event)) in propsOptions[0])) warn$1(`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.`);
6946
- } else {
6947
- const validator = emitsOptions[event];
6948
- if (isFunction(validator)) {
6949
- if (!validator(...rawArgs)) warn$1(`Invalid event arguments: event validation failed for event "${event}".`);
7082
+ if (emitsOptions) {
7083
+ if (!(event in emitsOptions) && !(event.startsWith("hook:") || event.startsWith(compatModelEventPrefix))) {
7084
+ if (!propsOptions || !propsOptions[0] || !(toHandlerKey(camelize(event)) in propsOptions[0])) warn$1(`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.`);
7085
+ } else {
7086
+ const validator = emitsOptions[event];
7087
+ if (isFunction(validator)) {
7088
+ if (!validator(...rawArgs)) warn$1(`Invalid event arguments: event validation failed for event "${event}".`);
7089
+ }
6950
7090
  }
6951
7091
  }
6952
7092
  }
@@ -6956,7 +7096,7 @@ var Vue = (function() {
6956
7096
  const modifiers = isCompatModelListener ? props.modelModifiers : isModelListener && getModelModifiers(props, event.slice(7), getter);
6957
7097
  if (modifiers) {
6958
7098
  if (modifiers.trim) args = rawArgs.map((a) => isString(a) ? a.trim() : a);
6959
- if (modifiers.number) args = rawArgs.map(looseToNumber);
7099
+ if (modifiers.number) args = args.map(looseToNumber);
6960
7100
  }
6961
7101
  devtoolsComponentEmit(instance, event, args);
6962
7102
  {
@@ -7151,10 +7291,12 @@ var Vue = (function() {
7151
7291
  for (let i = 0; i < children.length; i++) {
7152
7292
  const child = children[i];
7153
7293
  if (isVNode(child)) {
7154
- if (child.type !== Comment || child.children === "v-if") if (singleRoot) return;
7155
- else {
7156
- singleRoot = child;
7157
- if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) return filterSingleRoot(singleRoot.children);
7294
+ if (child.type !== Comment || child.children === "v-if") {
7295
+ if (singleRoot) return;
7296
+ else {
7297
+ singleRoot = child;
7298
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) return filterSingleRoot(singleRoot.children);
7299
+ }
7158
7300
  }
7159
7301
  } else return;
7160
7302
  }
@@ -7299,16 +7441,17 @@ var Vue = (function() {
7299
7441
  let key = propsToUpdate[i];
7300
7442
  if (isEmitListener(instance.emitsOptions, key)) continue;
7301
7443
  const value = rawProps[key];
7302
- if (options) if (hasOwn(attrs, key)) {
7303
- if (value !== attrs[key]) {
7304
- attrs[key] = value;
7305
- hasAttrsChanged = true;
7444
+ if (options) {
7445
+ if (hasOwn(attrs, key)) {
7446
+ if (value !== attrs[key]) {
7447
+ attrs[key] = value;
7448
+ hasAttrsChanged = true;
7449
+ }
7450
+ } else {
7451
+ const camelizedKey = camelize(key);
7452
+ props[camelizedKey] = resolvePropValue(options, camelizedKey, value, instance, baseResolveDefault);
7306
7453
  }
7307
7454
  } else {
7308
- const camelizedKey = camelize(key);
7309
- props[camelizedKey] = resolvePropValue(options, camelizedKey, value, instance, baseResolveDefault);
7310
- }
7311
- else {
7312
7455
  if (isOn(key) && key.endsWith("Native")) key = key.slice(0, -6);
7313
7456
  else if (shouldSkipAttr(key, instance)) continue;
7314
7457
  if (value !== attrs[key]) {
@@ -7321,9 +7464,11 @@ var Vue = (function() {
7321
7464
  } else {
7322
7465
  if (setFullProps(instance, rawProps, props, attrs)) hasAttrsChanged = true;
7323
7466
  let kebabKey;
7324
- for (const key in rawCurrentProps) if (!rawProps || !hasOwn(rawProps, key) && ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) if (options) {
7325
- if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, key, void 0, instance, baseResolveDefault, true);
7326
- } else delete props[key];
7467
+ for (const key in rawCurrentProps) if (!rawProps || !hasOwn(rawProps, key) && ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) {
7468
+ if (options) {
7469
+ if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, key, void 0, instance, baseResolveDefault, true);
7470
+ } else delete props[key];
7471
+ }
7327
7472
  if (attrs !== rawCurrentProps) {
7328
7473
  for (const key in attrs) if (!rawProps || !hasOwn(rawProps, key) && !hasOwn(rawProps, key + "Native")) {
7329
7474
  delete attrs[key];
@@ -7344,9 +7489,10 @@ var Vue = (function() {
7344
7489
  if (key === "inline-template") continue;
7345
7490
  const value = rawProps[key];
7346
7491
  let camelKey;
7347
- if (options && hasOwn(options, camelKey = camelize(key))) if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
7348
- else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
7349
- else if (!isEmitListener(instance.emitsOptions, key)) {
7492
+ if (options && hasOwn(options, camelKey = camelize(key))) {
7493
+ if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
7494
+ else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
7495
+ } else if (!isEmitListener(instance.emitsOptions, key)) {
7350
7496
  if (isOn(key) && key.endsWith("Native")) key = key.slice(0, -6);
7351
7497
  else if (shouldSkipAttr(key, instance)) continue;
7352
7498
  if (!(key in attrs) || value !== attrs[key]) {
@@ -7512,7 +7658,7 @@ var Vue = (function() {
7512
7658
  }
7513
7659
  if (validator && !validator(value, /* @__PURE__ */ shallowReadonly(resolvedProps))) warn$1("Invalid prop: custom validator check failed for prop \"" + key + "\".");
7514
7660
  }
7515
- const isSimpleType = /* @__PURE__ */ makeMap("String,Number,Boolean,Function,Symbol,BigInt");
7661
+ const isSimpleType = /*@__PURE__*/ makeMap("String,Number,Boolean,Function,Symbol,BigInt");
7516
7662
  /**
7517
7663
  * dev only
7518
7664
  */
@@ -7625,12 +7771,13 @@ var Vue = (function() {
7625
7771
  let deletionComparisonTarget = EMPTY_OBJ;
7626
7772
  if (vnode.shapeFlag & 32) {
7627
7773
  const type = children._;
7628
- if (type) if (isHmrUpdating) {
7629
- assignSlots(slots, children, optimized);
7630
- trigger(instance, "set", "$slots");
7631
- } else if (optimized && type === 1) needDeletionCheck = false;
7632
- else assignSlots(slots, children, optimized);
7633
- else {
7774
+ if (type) {
7775
+ if (isHmrUpdating) {
7776
+ assignSlots(slots, children, optimized);
7777
+ trigger(instance, "set", "$slots");
7778
+ } else if (optimized && type === 1) needDeletionCheck = false;
7779
+ else assignSlots(slots, children, optimized);
7780
+ } else {
7634
7781
  needDeletionCheck = !children.$stable;
7635
7782
  normalizeObjectSlots(children, slots, instance);
7636
7783
  }
@@ -7648,7 +7795,7 @@ var Vue = (function() {
7648
7795
  let supported;
7649
7796
  let perf;
7650
7797
  let cachedNow$1 = 0;
7651
- const p$1 = /* @__PURE__ */ Promise.resolve();
7798
+ const p$1 = /*@__PURE__*/ Promise.resolve();
7652
7799
  const getNow$1 = () => cachedNow$1 || (p$1.then(() => cachedNow$1 = 0), cachedNow$1 = isSupported() ? perf.now() : Date.now());
7653
7800
  /**
7654
7801
  * @internal
@@ -7745,7 +7892,7 @@ var Vue = (function() {
7745
7892
  processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
7746
7893
  break;
7747
7894
  case VaporSlot:
7748
- getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense);
7895
+ getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense, slotScopeIds);
7749
7896
  break;
7750
7897
  default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
7751
7898
  else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
@@ -7864,7 +8011,10 @@ var Vue = (function() {
7864
8011
  for (let i = 0; i < inheritedScopeIds.length; i++) hostSetScopeId(el, inheritedScopeIds[i]);
7865
8012
  };
7866
8013
  const mountChildren = (children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, start = 0) => {
7867
- for (let i = start; i < children.length; i++) patch(null, children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]), container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
8014
+ for (let i = start; i < children.length; i++) {
8015
+ const child = children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]);
8016
+ patch(null, child, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
8017
+ }
7868
8018
  };
7869
8019
  const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
7870
8020
  const el = n2.el = n1.el;
@@ -7876,6 +8026,7 @@ var Vue = (function() {
7876
8026
  let vnodeHook;
7877
8027
  parentComponent && toggleRecurse(parentComponent, false);
7878
8028
  if (vnodeHook = newProps.onVnodeBeforeUpdate) invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
8029
+ if (n2.ibu) n2.ibu();
7879
8030
  if (dirs) invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
7880
8031
  parentComponent && toggleRecurse(parentComponent, true);
7881
8032
  if (isHmrUpdating || dynamicChildren && (!n1.dynamicChildren || n1.dynamicChildren.length !== dynamicChildren.length)) {
@@ -7909,8 +8060,9 @@ var Vue = (function() {
7909
8060
  if (n1.children !== n2.children) hostSetElementText(el, n2.children);
7910
8061
  }
7911
8062
  } else if (!optimized && dynamicChildren == null) patchProps(el, oldProps, newProps, parentComponent, namespace);
7912
- if ((vnodeHook = newProps.onVnodeUpdated) || dirs) queuePostRenderEffect(() => {
8063
+ if ((vnodeHook = newProps.onVnodeUpdated) || dirs || n2.iu) queuePostRenderEffect(() => {
7913
8064
  vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
8065
+ n2.iu && n2.iu();
7914
8066
  dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated");
7915
8067
  }, void 0, parentSuspense);
7916
8068
  };
@@ -7918,7 +8070,8 @@ var Vue = (function() {
7918
8070
  for (let i = 0; i < newChildren.length; i++) {
7919
8071
  const oldVNode = oldChildren[i];
7920
8072
  const newVNode = newChildren[i];
7921
- patch(oldVNode, newVNode, oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 198) ? hostParentNode(oldVNode.el) : fallbackContainer, null, parentComponent, parentSuspense, namespace, slotScopeIds, true);
8073
+ const container = oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 198) ? hostParentNode(oldVNode.el) : fallbackContainer;
8074
+ patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, true);
7922
8075
  }
7923
8076
  };
7924
8077
  const patchProps = (el, oldProps, newProps, parentComponent, namespace) => {
@@ -7956,41 +8109,46 @@ var Vue = (function() {
7956
8109
  };
7957
8110
  const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
7958
8111
  n2.slotScopeIds = slotScopeIds;
7959
- if (n2.type.__vapor) if (n1 == null) if (n2.shapeFlag & 512) getVaporInterface(parentComponent, n2).activate(n2, container, anchor, parentComponent, parentSuspense);
7960
- else {
7961
- const vnodeBeforeMountHook = !isAsyncWrapper(n2) && n2.props && n2.props.onVnodeBeforeMount;
7962
- getVaporInterface(parentComponent, n2).mount(n2, container, anchor, parentComponent, parentSuspense, () => {
7963
- if (n2.dirs) {
7964
- invokeDirectiveHook(n2, null, parentComponent, "created");
7965
- invokeDirectiveHook(n2, null, parentComponent, "beforeMount");
8112
+ if (n2.type.__vapor) {
8113
+ if (n1 == null) {
8114
+ if (n2.shapeFlag & 512) getVaporInterface(parentComponent, n2).activate(n2, container, anchor, parentComponent, parentSuspense);
8115
+ else {
8116
+ const vnodeBeforeMountHook = !isAsyncWrapper(n2) && n2.props && n2.props.onVnodeBeforeMount;
8117
+ getVaporInterface(parentComponent, n2).mount(n2, container, anchor, parentComponent, parentSuspense, () => {
8118
+ if (n2.dirs) {
8119
+ invokeDirectiveHook(n2, null, parentComponent, "created");
8120
+ invokeDirectiveHook(n2, null, parentComponent, "beforeMount");
8121
+ }
8122
+ }, () => {
8123
+ if (vnodeBeforeMountHook) invokeVNodeHook(vnodeBeforeMountHook, parentComponent, n2);
8124
+ });
8125
+ if (n2.dirs) queuePostRenderEffect(() => invokeDirectiveHook(n2, null, parentComponent, "mounted"), void 0, parentSuspense);
8126
+ const vnodeMountedHook = !isAsyncWrapper(n2) && n2.props && n2.props.onVnodeMounted;
8127
+ if (vnodeMountedHook) {
8128
+ const scopedVNode = n2;
8129
+ queuePostRenderEffect(() => invokeVNodeHook(vnodeMountedHook, parentComponent, scopedVNode), void 0, parentSuspense);
8130
+ }
7966
8131
  }
7967
- }, () => {
7968
- if (vnodeBeforeMountHook) invokeVNodeHook(vnodeBeforeMountHook, parentComponent, n2);
7969
- });
7970
- if (n2.dirs) queuePostRenderEffect(() => invokeDirectiveHook(n2, null, parentComponent, "mounted"), void 0, parentSuspense);
7971
- const vnodeMountedHook = !isAsyncWrapper(n2) && n2.props && n2.props.onVnodeMounted;
7972
- if (vnodeMountedHook) {
7973
- const scopedVNode = n2;
7974
- queuePostRenderEffect(() => invokeVNodeHook(vnodeMountedHook, parentComponent, scopedVNode), void 0, parentSuspense);
8132
+ } else {
8133
+ const shouldUpdate = shouldUpdateComponent(n1, n2, optimized);
8134
+ getVaporInterface(parentComponent, n2).update(n1, n2, shouldUpdate, () => {
8135
+ if (n2.dirs) invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
8136
+ }, () => {
8137
+ const vnodeBeforeUpdateHook = n2.props && n2.props.onVnodeBeforeUpdate;
8138
+ if (vnodeBeforeUpdateHook) invokeVNodeHook(vnodeBeforeUpdateHook, parentComponent, n2, n1);
8139
+ if (n2.ibu) n2.ibu();
8140
+ });
8141
+ const vnodeUpdatedHook = n2.props && n2.props.onVnodeUpdated;
8142
+ if (shouldUpdate && (vnodeUpdatedHook || n2.dirs || n2.iu)) queuePostRenderEffect(() => {
8143
+ n2.dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated");
8144
+ vnodeUpdatedHook && invokeVNodeHook(vnodeUpdatedHook, parentComponent, n2, n1);
8145
+ n2.iu && n2.iu();
8146
+ }, void 0, parentSuspense);
7975
8147
  }
7976
- }
7977
- else {
7978
- const shouldUpdate = shouldUpdateComponent(n1, n2, optimized);
7979
- getVaporInterface(parentComponent, n2).update(n1, n2, shouldUpdate, () => {
7980
- if (n2.dirs) invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
7981
- }, () => {
7982
- const vnodeBeforeUpdateHook = n2.props && n2.props.onVnodeBeforeUpdate;
7983
- if (vnodeBeforeUpdateHook) invokeVNodeHook(vnodeBeforeUpdateHook, parentComponent, n2, n1);
7984
- });
7985
- const vnodeUpdatedHook = n2.props && n2.props.onVnodeUpdated;
7986
- if (shouldUpdate && (vnodeUpdatedHook || n2.dirs)) queuePostRenderEffect(() => {
7987
- n2.dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated");
7988
- vnodeUpdatedHook && invokeVNodeHook(vnodeUpdatedHook, parentComponent, n2, n1);
7989
- }, void 0, parentSuspense);
7990
- }
7991
- else if (n1 == null) if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
7992
- else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
7993
- else updateComponent(n1, n2, optimized);
8148
+ } else if (n1 == null) {
8149
+ if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
8150
+ else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
8151
+ } else updateComponent(n1, n2, optimized);
7994
8152
  };
7995
8153
  const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => {
7996
8154
  const compatMountInstance = initialVNode.isCompatRoot && initialVNode.component;
@@ -8034,16 +8192,17 @@ var Vue = (function() {
8034
8192
  };
8035
8193
  const updateComponent = (n1, n2, optimized) => {
8036
8194
  const instance = n2.component = n1.component;
8037
- if (shouldUpdateComponent(n1, n2, optimized)) if (instance.asyncDep && !instance.asyncResolved) {
8038
- pushWarningContext(n2);
8039
- updateComponentPreRender(instance, n2, optimized);
8040
- popWarningContext();
8041
- return;
8195
+ if (shouldUpdateComponent(n1, n2, optimized)) {
8196
+ if (instance.asyncDep && !instance.asyncResolved) {
8197
+ pushWarningContext(n2);
8198
+ updateComponentPreRender(instance, n2, optimized);
8199
+ popWarningContext();
8200
+ return;
8201
+ } else {
8202
+ instance.next = n2;
8203
+ instance.effect.run();
8204
+ }
8042
8205
  } else {
8043
- instance.next = n2;
8044
- instance.effect.run();
8045
- }
8046
- else {
8047
8206
  n2.el = n1.el;
8048
8207
  instance.vnode = n2;
8049
8208
  }
@@ -8146,6 +8305,7 @@ var Vue = (function() {
8146
8305
  } else next = vnode;
8147
8306
  if (bu) invokeArrayFns(bu);
8148
8307
  if (vnodeHook = next.props && next.props.onVnodeBeforeUpdate) invokeVNodeHook(vnodeHook, parent, next, vnode);
8308
+ if (next.ibu) next.ibu();
8149
8309
  if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS", instance)) instance.emit("hook:beforeUpdate");
8150
8310
  toggleRecurse(instance, true);
8151
8311
  startMeasure(instance, `render`);
@@ -8159,7 +8319,10 @@ var Vue = (function() {
8159
8319
  next.el = nextTree.el;
8160
8320
  if (originNext === null) updateHOCHostEl(instance, nextTree.el);
8161
8321
  if (u) queuePostRenderEffect(u, void 0, parentSuspense);
8162
- if (vnodeHook = next.props && next.props.onVnodeUpdated) queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), void 0, parentSuspense);
8322
+ if ((vnodeHook = next.props && next.props.onVnodeUpdated) || next.iu) queuePostRenderEffect(() => {
8323
+ vnodeHook && invokeVNodeHook(vnodeHook, parent, next, vnode);
8324
+ next.iu && next.iu();
8325
+ }, void 0, parentSuspense);
8163
8326
  if (isCompatEnabled$1("INSTANCE_EVENT_HOOKS", instance)) queuePostRenderEffect(() => instance.emit("hook:updated"), void 0, parentSuspense);
8164
8327
  devtoolsComponentUpdated(instance);
8165
8328
  popWarningContext();
@@ -8200,9 +8363,10 @@ var Vue = (function() {
8200
8363
  if (shapeFlag & 8) {
8201
8364
  if (prevShapeFlag & 16) unmountChildren(c1, parentComponent, parentSuspense);
8202
8365
  if (c2 !== c1) hostSetElementText(container, c2);
8203
- } else if (prevShapeFlag & 16) if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
8204
- else unmountChildren(c1, parentComponent, parentSuspense, true);
8205
- else {
8366
+ } else if (prevShapeFlag & 16) {
8367
+ if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
8368
+ else unmountChildren(c1, parentComponent, parentSuspense, true);
8369
+ } else {
8206
8370
  if (prevShapeFlag & 8) hostSetElementText(container, "");
8207
8371
  if (shapeFlag & 16) mountChildren(c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
8208
8372
  }
@@ -8301,8 +8465,10 @@ var Vue = (function() {
8301
8465
  const anchorVNode = c2[nextIndex + 1];
8302
8466
  const anchor = nextIndex + 1 < l2 ? anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode) : parentAnchor;
8303
8467
  if (newIndexToOldIndexMap[i] === 0) patch(null, nextChild, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
8304
- else if (moved) if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2, parentComponent);
8305
- else j--;
8468
+ else if (moved) {
8469
+ if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2, parentComponent);
8470
+ else j--;
8471
+ }
8306
8472
  }
8307
8473
  }
8308
8474
  };
@@ -8334,26 +8500,27 @@ var Vue = (function() {
8334
8500
  moveStaticNode(vnode, container, anchor);
8335
8501
  return;
8336
8502
  }
8337
- if (moveType !== 2 && shapeFlag & 1 && transition) if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
8338
- else {
8339
- const { leave, delayLeave, afterLeave } = transition;
8340
- const remove = () => {
8341
- if (vnode.ctx.isUnmounted) hostRemove(el);
8342
- else hostInsert(el, container, anchor);
8343
- };
8344
- const performLeave = () => {
8345
- const wasLeaving = el._isLeaving || !!el[leaveCbKey];
8346
- if (el._isLeaving) el[leaveCbKey](true);
8347
- if (transition.persisted && !wasLeaving) remove();
8348
- else leave(el, () => {
8349
- remove();
8350
- afterLeave && afterLeave();
8351
- });
8352
- };
8353
- if (delayLeave) delayLeave(el, remove, performLeave);
8354
- else performLeave();
8355
- }
8356
- else hostInsert(el, container, anchor);
8503
+ if (moveType !== 2 && shapeFlag & 1 && transition) {
8504
+ if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
8505
+ else {
8506
+ const { leave, delayLeave, afterLeave } = transition;
8507
+ const remove = () => {
8508
+ if (vnode.ctx.isUnmounted) hostRemove(el);
8509
+ else hostInsert(el, container, anchor);
8510
+ };
8511
+ const performLeave = () => {
8512
+ const wasLeaving = el._isLeaving || !!el[leaveCbKey];
8513
+ if (el._isLeaving) el[leaveCbKey](true);
8514
+ if (transition.persisted && !wasLeaving) remove();
8515
+ else leave(el, () => {
8516
+ remove();
8517
+ afterLeave && afterLeave();
8518
+ });
8519
+ };
8520
+ if (delayLeave) delayLeave(el, remove, performLeave);
8521
+ else performLeave();
8522
+ }
8523
+ } else hostInsert(el, container, anchor);
8357
8524
  };
8358
8525
  const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
8359
8526
  const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
@@ -8373,16 +8540,17 @@ var Vue = (function() {
8373
8540
  const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);
8374
8541
  let vnodeHook;
8375
8542
  if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeBeforeUnmount)) invokeVNodeHook(vnodeHook, parentComponent, vnode);
8376
- if (shapeFlag & 6) if (isVaporComponent(type)) {
8377
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount");
8378
- getVaporInterface(parentComponent, vnode).unmount(vnode, doRemove, parentSuspense);
8379
- if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || dirs) queuePostRenderEffect(() => {
8380
- dirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
8381
- vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
8382
- }, void 0, parentSuspense);
8383
- return;
8384
- } else unmountComponent(vnode.component, parentSuspense, doRemove);
8385
- else {
8543
+ if (shapeFlag & 6) {
8544
+ if (isVaporComponent(type)) {
8545
+ if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount");
8546
+ getVaporInterface(parentComponent, vnode).unmount(vnode, doRemove, parentSuspense);
8547
+ if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || dirs) queuePostRenderEffect(() => {
8548
+ dirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
8549
+ vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
8550
+ }, void 0, parentSuspense);
8551
+ return;
8552
+ } else unmountComponent(vnode.component, parentSuspense, doRemove);
8553
+ } else {
8386
8554
  if (shapeFlag & 128) {
8387
8555
  vnode.suspense.unmount(parentSuspense, doRemove);
8388
8556
  return;
@@ -8516,12 +8684,14 @@ var Vue = (function() {
8516
8684
  return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
8517
8685
  }
8518
8686
  function toggleRecurse({ effect, job, vapor }, allowed) {
8519
- if (!vapor) if (allowed) {
8520
- effect.flags |= 128;
8521
- job.flags |= 2;
8522
- } else {
8523
- effect.flags &= -129;
8524
- job.flags &= -3;
8687
+ if (!vapor) {
8688
+ if (allowed) {
8689
+ effect.flags |= 128;
8690
+ job.flags |= 2;
8691
+ } else {
8692
+ effect.flags &= -129;
8693
+ job.flags &= -3;
8694
+ }
8525
8695
  }
8526
8696
  }
8527
8697
  function needTransition(parentSuspense, transition) {
@@ -8561,8 +8731,10 @@ var Vue = (function() {
8561
8731
  }
8562
8732
  function locateNonHydratedAsyncRoot(instance) {
8563
8733
  const subComponent = instance.subTree && instance.subTree.component;
8564
- if (subComponent) if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
8565
- else return locateNonHydratedAsyncRoot(subComponent);
8734
+ if (subComponent) {
8735
+ if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
8736
+ else return locateNonHydratedAsyncRoot(subComponent);
8737
+ }
8566
8738
  }
8567
8739
  function invalidateMount(hooks) {
8568
8740
  if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 4;
@@ -8606,7 +8778,7 @@ var Vue = (function() {
8606
8778
  /**
8607
8779
  * shared between vdom and vapor
8608
8780
  */
8609
- function getInheritedScopeIds(vnode, parentComponent) {
8781
+ function getInheritedScopeIds(vnode, parentComponent, includeVaporRootIds = true) {
8610
8782
  const inheritedScopeIds = [];
8611
8783
  let currentParent = parentComponent;
8612
8784
  let currentVNode = vnode;
@@ -8622,6 +8794,8 @@ var Vue = (function() {
8622
8794
  currentParent = currentParent.parent;
8623
8795
  } else break;
8624
8796
  }
8797
+ const vaporScopeIds = includeVaporRootIds && currentVNode.vaporScopeIds;
8798
+ if (vaporScopeIds) inheritedScopeIds.push(...vaporScopeIds);
8625
8799
  return inheritedScopeIds;
8626
8800
  }
8627
8801
  function resolveAsyncComponentPlaceholder(anchorVnode) {
@@ -8681,7 +8855,7 @@ var Vue = (function() {
8681
8855
  patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized);
8682
8856
  if (suspense.deps <= 0) suspense.resolve();
8683
8857
  else if (isInFallback) {
8684
- if (!isHydrating) {
8858
+ if (!isHydrating && !suspense.isFallbackMountPending) {
8685
8859
  patch(activeBranch, newFallback, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
8686
8860
  setActiveBranch(suspense, newFallback);
8687
8861
  }
@@ -8702,7 +8876,7 @@ var Vue = (function() {
8702
8876
  if (isInFallback) {
8703
8877
  patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized);
8704
8878
  if (suspense.deps <= 0) suspense.resolve();
8705
- else {
8879
+ else if (!suspense.isFallbackMountPending) {
8706
8880
  patch(activeBranch, newFallback, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
8707
8881
  setActiveBranch(suspense, newFallback);
8708
8882
  }
@@ -8828,8 +9002,9 @@ var Vue = (function() {
8828
9002
  const mountFallback = () => {
8829
9003
  suspense.isFallbackMountPending = false;
8830
9004
  if (!suspense.isInFallback) return;
8831
- patch(null, fallbackVNode, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
8832
- setActiveBranch(suspense, fallbackVNode);
9005
+ const latestFallback = suspense.vnode.ssFallback;
9006
+ patch(null, latestFallback, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
9007
+ setActiveBranch(suspense, latestFallback);
8833
9008
  };
8834
9009
  const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in";
8835
9010
  if (delayEnter) {
@@ -8905,9 +9080,10 @@ var Vue = (function() {
8905
9080
  return s;
8906
9081
  }
8907
9082
  function queueEffectWithSuspense(fn, id, suspense) {
8908
- if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
8909
- else suspense.effects.push(fn);
8910
- else queuePostFlushCb(fn, id);
9083
+ if (suspense && suspense.pendingBranch) {
9084
+ if (isArray(fn)) suspense.effects.push(...fn);
9085
+ else suspense.effects.push(fn);
9086
+ } else queuePostFlushCb(fn, id);
8911
9087
  }
8912
9088
  function setActiveBranch(suspense, branch) {
8913
9089
  suspense.activeBranch = branch;
@@ -9143,8 +9319,10 @@ var Vue = (function() {
9143
9319
  if (isVNode(type)) {
9144
9320
  const cloned = cloneVNode(type, props, true);
9145
9321
  if (children) normalizeChildren(cloned, children);
9146
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
9147
- else currentBlock.push(cloned);
9322
+ if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) {
9323
+ if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
9324
+ else currentBlock.push(cloned);
9325
+ }
9148
9326
  cloned.patchFlag = -2;
9149
9327
  return cloned;
9150
9328
  }
@@ -9205,7 +9383,9 @@ var Vue = (function() {
9205
9383
  ce: vnode.ce,
9206
9384
  vi: vnode.vi,
9207
9385
  vs: cloneVaporSlotMeta(vnode),
9208
- vb: vnode.vb
9386
+ vb: vnode.vb,
9387
+ ibu: vnode.ibu,
9388
+ iu: vnode.iu
9209
9389
  };
9210
9390
  if (transition && cloneTransition) setTransitionHooks(cloned, transition.clone(cloned));
9211
9391
  defineLegacyVNodeProperties(cloned);
@@ -9269,25 +9449,28 @@ var Vue = (function() {
9269
9449
  const { shapeFlag } = vnode;
9270
9450
  if (children == null) children = null;
9271
9451
  else if (isArray(children)) type = 16;
9272
- else if (typeof children === "object") if (shapeFlag & 65) {
9273
- const slot = children.default;
9274
- if (slot) {
9275
- slot._c && (slot._d = false);
9276
- normalizeChildren(vnode, slot());
9277
- slot._c && (slot._d = true);
9278
- }
9279
- return;
9280
- } else {
9281
- type = 32;
9282
- const slotFlag = children._;
9283
- if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
9284
- else if (slotFlag === 3 && currentRenderingInstance) if (currentRenderingInstance.slots._ === 1) children._ = 1;
9285
- else {
9286
- children._ = 2;
9287
- vnode.patchFlag |= 1024;
9452
+ else if (typeof children === "object") {
9453
+ if (shapeFlag & 65) {
9454
+ const slot = children.default;
9455
+ if (slot) {
9456
+ slot._c && (slot._d = false);
9457
+ normalizeChildren(vnode, slot());
9458
+ slot._c && (slot._d = true);
9459
+ }
9460
+ return;
9461
+ } else {
9462
+ type = 32;
9463
+ const slotFlag = children._;
9464
+ if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
9465
+ else if (slotFlag === 3 && currentRenderingInstance) {
9466
+ if (currentRenderingInstance.slots._ === 1) children._ = 1;
9467
+ else {
9468
+ children._ = 2;
9469
+ vnode.patchFlag |= 1024;
9470
+ }
9471
+ }
9288
9472
  }
9289
- }
9290
- else if (isFunction(children)) {
9473
+ } else if (isFunction(children)) {
9291
9474
  if (shapeFlag & 65) {
9292
9475
  normalizeChildren(vnode, { default: children });
9293
9476
  return;
@@ -9396,7 +9579,7 @@ var Vue = (function() {
9396
9579
  };
9397
9580
  //#endregion
9398
9581
  //#region packages/runtime-core/src/component.ts
9399
- const emptyAppContext = /* @__PURE__ */ createAppContext();
9582
+ const emptyAppContext = /*@__PURE__*/ createAppContext();
9400
9583
  let uid = 0;
9401
9584
  function createComponentInstance(vnode, parent, suspense) {
9402
9585
  const type = vnode.type;
@@ -9597,10 +9780,12 @@ var Vue = (function() {
9597
9780
  restoreCurrentInstance(prevInstance);
9598
9781
  }
9599
9782
  }
9600
- if (!Component.render && instance.render === NOOP && !isSSR) if (!compile$1 && Component.template)
9783
+ if (!Component.render && instance.render === NOOP && !isSSR) {
9784
+ if (!compile$1 && Component.template)
9601
9785
  /* v8 ignore start */
9602
- warn$1("Component provided template option but runtime compilation is not supported in this build of Vue. Use \"vue.global.js\" instead.");
9603
- else warn$1(`Component is missing template or render function: `, Component);
9786
+ warn$1("Component provided template option but runtime compilation is not supported in this build of Vue. Use \"vue.global.js\" instead.");
9787
+ else warn$1(`Component is missing template or render function: `, Component);
9788
+ }
9604
9789
  }
9605
9790
  const attrsProxyHandlers = {
9606
9791
  get(target, key) {
@@ -9708,11 +9893,12 @@ var Vue = (function() {
9708
9893
  try {
9709
9894
  setBlockTracking(-1);
9710
9895
  const l = arguments.length;
9711
- if (l === 2) if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
9712
- if (isVNode(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
9713
- return createVNode(type, propsOrChildren);
9714
- } else return createVNode(type, null, propsOrChildren);
9715
- else {
9896
+ if (l === 2) {
9897
+ if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
9898
+ if (isVNode(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
9899
+ return createVNode(type, propsOrChildren);
9900
+ } else return createVNode(type, null, propsOrChildren);
9901
+ } else {
9716
9902
  if (l > 3) children = Array.prototype.slice.call(arguments, 2);
9717
9903
  else if (l === 3 && isVNode(children)) children = [children];
9718
9904
  return createVNode(type, propsOrChildren, children);
@@ -9904,7 +10090,7 @@ var Vue = (function() {
9904
10090
  }
9905
10091
  //#endregion
9906
10092
  //#region packages/runtime-core/src/index.ts
9907
- const version = "3.6.0-rc.4";
10093
+ const version = "3.6.0-rc.6";
9908
10094
  const warn = warn$1;
9909
10095
  /**
9910
10096
  * Runtime error messages. Only exposed in dev or esm builds.
@@ -9933,7 +10119,7 @@ var Vue = (function() {
9933
10119
  let policy = void 0;
9934
10120
  const tt = typeof window !== "undefined" && window.trustedTypes;
9935
10121
  if (tt) try {
9936
- policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val });
10122
+ policy = /*@__PURE__*/ tt.createPolicy("vue", { createHTML: (val) => val });
9937
10123
  } catch (e) {
9938
10124
  warn(`Error creating trusted types policy: ${e}`);
9939
10125
  }
@@ -9941,7 +10127,7 @@ var Vue = (function() {
9941
10127
  const svgNS = "http://www.w3.org/2000/svg";
9942
10128
  const mathmlNS = "http://www.w3.org/1998/Math/MathML";
9943
10129
  const doc = typeof document !== "undefined" ? document : null;
9944
- const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
10130
+ const templateContainer = doc && /*@__PURE__*/ doc.createElement("template");
9945
10131
  const nodeOps = {
9946
10132
  insert: (child, parent, anchor) => {
9947
10133
  parent.insertBefore(child, anchor || null);
@@ -10015,7 +10201,7 @@ var Vue = (function() {
10015
10201
  leaveActiveClass: String,
10016
10202
  leaveToClass: String
10017
10203
  };
10018
- const TransitionPropsValidators = /* @__PURE__ */ extend({}, BaseTransitionPropsValidators, DOMTransitionPropsValidators);
10204
+ const TransitionPropsValidators = /*@__PURE__*/ extend({}, BaseTransitionPropsValidators, DOMTransitionPropsValidators);
10019
10205
  /**
10020
10206
  * Wrap logic that attaches extra properties to Transition in a function
10021
10207
  * so that it can be annotated as pure
@@ -10030,7 +10216,7 @@ var Vue = (function() {
10030
10216
  * DOM Transition is a higher-order-component based on the platform-agnostic
10031
10217
  * base Transition component, with DOM-specific logic.
10032
10218
  */
10033
- const Transition = /* @__PURE__ */ decorate$1((props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots));
10219
+ const Transition = /*@__PURE__*/ decorate$1((props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots));
10034
10220
  /**
10035
10221
  * #3227 Incoming hooks may be merged into arrays when wrapping Transition
10036
10222
  * with custom HOCs.
@@ -10270,14 +10456,15 @@ var Vue = (function() {
10270
10456
  },
10271
10457
  updated(el, { value, oldValue }, { transition }) {
10272
10458
  if (!value === !oldValue) return;
10273
- if (transition) if (value) {
10274
- transition.beforeEnter(el);
10275
- setDisplay(el, true);
10276
- transition.enter(el);
10277
- } else transition.leave(el, () => {
10278
- setDisplay(el, false);
10279
- });
10280
- else setDisplay(el, value);
10459
+ if (transition) {
10460
+ if (value) {
10461
+ transition.beforeEnter(el);
10462
+ setDisplay(el, true);
10463
+ transition.enter(el);
10464
+ } else transition.leave(el, () => {
10465
+ setDisplay(el, false);
10466
+ });
10467
+ } else setDisplay(el, value);
10281
10468
  },
10282
10469
  beforeUnmount(el, { value }) {
10283
10470
  setDisplay(el, value);
@@ -10379,11 +10566,13 @@ var Vue = (function() {
10379
10566
  const isCssString = isString(next);
10380
10567
  let hasControlledDisplay = false;
10381
10568
  if (next && !isCssString) {
10382
- if (prev) if (!isString(prev)) {
10383
- for (const key in prev) if (next[key] == null) setStyle(style, key, "");
10384
- } else for (const prevStyle of prev.split(";")) {
10385
- const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
10386
- if (next[key] == null) setStyle(style, key, "");
10569
+ if (prev) {
10570
+ if (!isString(prev)) {
10571
+ for (const key in prev) if (next[key] == null) setStyle(style, key, "");
10572
+ } else for (const prevStyle of prev.split(";")) {
10573
+ const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
10574
+ if (next[key] == null) setStyle(style, key, "");
10575
+ }
10387
10576
  }
10388
10577
  for (const key in next) {
10389
10578
  if (key === "display") hasControlledDisplay = true;
@@ -10412,8 +10601,10 @@ var Vue = (function() {
10412
10601
  else {
10413
10602
  const val = rawVal == null ? "" : String(rawVal);
10414
10603
  if (semicolonRE.test(val)) warn(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
10415
- if (name.startsWith("--")) style.setProperty(name, val);
10416
- else {
10604
+ if (name.startsWith("--")) {
10605
+ if (importantRE.test(val)) style.setProperty(name, val.replace(importantRE, ""), "important");
10606
+ else style.setProperty(name, val);
10607
+ } else {
10417
10608
  const prefixed = autoPrefix(style, name);
10418
10609
  if (importantRE.test(val)) style.setProperty(hyphenate(prefixed), val.replace(importantRE, ""), "important");
10419
10610
  else style[prefixed] = val;
@@ -10450,15 +10641,16 @@ var Vue = (function() {
10450
10641
  //#region packages/runtime-dom/src/modules/attrs.ts
10451
10642
  const xlinkNS = "http://www.w3.org/1999/xlink";
10452
10643
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
10453
- if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
10454
- else el.setAttributeNS(xlinkNS, key, value);
10455
- else {
10644
+ if (isSVG && key.startsWith("xlink:")) {
10645
+ if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
10646
+ else el.setAttributeNS(xlinkNS, key, value);
10647
+ } else {
10456
10648
  if (compatCoerceAttr(el, key, value, instance)) return;
10457
10649
  if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
10458
10650
  else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value);
10459
10651
  }
10460
10652
  }
10461
- const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck");
10653
+ const isEnumeratedAttr = /*@__PURE__*/ makeMap("contenteditable,draggable,spellcheck");
10462
10654
  function compatCoerceAttr(el, key, value, instance = null) {
10463
10655
  if (isEnumeratedAttr(key)) {
10464
10656
  const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
@@ -10550,7 +10742,7 @@ var Vue = (function() {
10550
10742
  return [name[2] === ":" ? name.slice(3) : hyphenate(name.slice(2)), options];
10551
10743
  }
10552
10744
  let cachedNow = 0;
10553
- const p = /* @__PURE__ */ Promise.resolve();
10745
+ const p = /*@__PURE__*/ Promise.resolve();
10554
10746
  const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
10555
10747
  function createInvoker(initialValue, instance) {
10556
10748
  const invoker = (e) => {
@@ -10618,7 +10810,7 @@ var Vue = (function() {
10618
10810
  //#endregion
10619
10811
  //#region packages/runtime-dom/src/apiCustomElement.ts
10620
10812
  const REMOVAL = {};
10621
- /* @__NO_SIDE_EFFECTS__ */
10813
+ /*@__NO_SIDE_EFFECTS__*/
10622
10814
  function defineCustomElement(options, extraOptions, _createApp) {
10623
10815
  let Comp = /* @__PURE__ */ defineComponent(options, extraOptions);
10624
10816
  if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
@@ -10667,12 +10859,14 @@ var Vue = (function() {
10667
10859
  this._parent = parent;
10668
10860
  break;
10669
10861
  }
10670
- if (!this._instance) if (this._resolved) this._mountComponent(this._def);
10671
- else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => {
10672
- this._pendingResolve = void 0;
10673
- if (this.isConnected) return this._resolveDef();
10674
- });
10675
- else this._resolveDef();
10862
+ if (!this._instance) {
10863
+ if (this._resolved) this._mountComponent(this._def);
10864
+ else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => {
10865
+ this._pendingResolve = void 0;
10866
+ if (this.isConnected) return this._resolveDef();
10867
+ });
10868
+ else this._resolveDef();
10869
+ }
10676
10870
  }
10677
10871
  disconnectedCallback() {
10678
10872
  this._connected = false;
@@ -11055,7 +11249,7 @@ var Vue = (function() {
11055
11249
  };
11056
11250
  const TransitionGroup = /* @__PURE__ */ decorate({
11057
11251
  name: "TransitionGroup",
11058
- props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
11252
+ props: /*@__PURE__*/ extend({}, TransitionPropsValidators, {
11059
11253
  tag: String,
11060
11254
  moveClass: String
11061
11255
  }),
@@ -11337,19 +11531,39 @@ var Vue = (function() {
11337
11531
  el._modelValue = value;
11338
11532
  addEventListener(el, "change", () => {
11339
11533
  const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? looseToNumber(getValue(o)) : getValue(o));
11340
- (set || el[assignKey])(el.multiple ? isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]);
11341
- el._assigning = true;
11342
- nextTick(() => {
11343
- el._assigning = false;
11344
- });
11534
+ const multiple = el.multiple;
11535
+ const assignedValue = multiple ? isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0];
11536
+ const pending = el._pendingValue = [multiple, multiple ? isArray(assignedValue) ? selectedVal.slice() : selectedVal : assignedValue];
11537
+ try {
11538
+ (set || el[assignKey])(assignedValue);
11539
+ } finally {
11540
+ nextTick(() => {
11541
+ if (el._pendingValue === pending) el._pendingValue = void 0;
11542
+ });
11543
+ }
11345
11544
  });
11346
11545
  };
11546
+ function isSameSelectValue(value, assignedValue, multiple) {
11547
+ if (!multiple) return looseEqual(value, assignedValue);
11548
+ if (isArray(value)) return looseEqual(value, assignedValue);
11549
+ if (isSet(value)) {
11550
+ if (value.size !== assignedValue.length) return false;
11551
+ for (const item of assignedValue) if (!value.has(item)) return false;
11552
+ return true;
11553
+ }
11554
+ return false;
11555
+ }
11347
11556
  /**
11348
11557
  * @internal
11349
11558
  */
11350
11559
  const vModelSetSelected = (el, value) => {
11351
11560
  el._modelValue = value;
11352
- if (el._assigning) return;
11561
+ const pending = el._pendingValue;
11562
+ el._pendingValue = void 0;
11563
+ if (pending && pending[0] === el.multiple && isSameSelectValue(value, pending[1], pending[0])) return;
11564
+ setSelected(el, value);
11565
+ };
11566
+ function setSelected(el, value) {
11353
11567
  const isMultiple = el.multiple;
11354
11568
  const isArrayValue = isArray(value);
11355
11569
  if (isMultiple && !isArrayValue && !isSet(value)) {
@@ -11359,18 +11573,19 @@ var Vue = (function() {
11359
11573
  for (let i = 0, l = el.options.length; i < l; i++) {
11360
11574
  const option = el.options[i];
11361
11575
  const optionValue = getValue(option);
11362
- if (isMultiple) if (isArrayValue) {
11363
- const optionType = typeof optionValue;
11364
- if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
11365
- else option.selected = looseIndexOf(value, optionValue) > -1;
11366
- } else option.selected = value.has(optionValue);
11367
- else if (looseEqual(getValue(option), value)) {
11576
+ if (isMultiple) {
11577
+ if (isArrayValue) {
11578
+ const optionType = typeof optionValue;
11579
+ if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
11580
+ else option.selected = looseIndexOf(value, optionValue) > -1;
11581
+ } else option.selected = value.has(optionValue);
11582
+ } else if (looseEqual(getValue(option), value)) {
11368
11583
  if (el.selectedIndex !== i) el.selectedIndex = i;
11369
11584
  return;
11370
11585
  }
11371
11586
  }
11372
11587
  if (!isMultiple && el.selectedIndex !== -1) el.selectedIndex = -1;
11373
- };
11588
+ }
11374
11589
  /**
11375
11590
  * @internal retrieve raw value set via :value bindings
11376
11591
  */
@@ -11666,7 +11881,7 @@ var Vue = (function() {
11666
11881
  withModifiers: () => withModifiers,
11667
11882
  withScopeId: () => withScopeId
11668
11883
  });
11669
- const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
11884
+ const rendererOptions = /*@__PURE__*/ extend({ patchProp }, nodeOps);
11670
11885
  let renderer;
11671
11886
  let enabledHydration = false;
11672
11887
  function ensureRenderer() {
@@ -12217,13 +12432,14 @@ var Vue = (function() {
12217
12432
  }
12218
12433
  }
12219
12434
  stateInterpolationOpen(c) {
12220
- if (c === this.delimiterOpen[this.delimiterIndex]) if (this.delimiterIndex === this.delimiterOpen.length - 1) {
12221
- const start = this.index + 1 - this.delimiterOpen.length;
12222
- if (start > this.sectionStart) this.cbs.ontext(this.sectionStart, start);
12223
- this.state = 3;
12224
- this.sectionStart = start;
12225
- } else this.delimiterIndex++;
12226
- else if (this.inRCDATA) {
12435
+ if (c === this.delimiterOpen[this.delimiterIndex]) {
12436
+ if (this.delimiterIndex === this.delimiterOpen.length - 1) {
12437
+ const start = this.index + 1 - this.delimiterOpen.length;
12438
+ if (start > this.sectionStart) this.cbs.ontext(this.sectionStart, start);
12439
+ this.state = 3;
12440
+ this.sectionStart = start;
12441
+ } else this.delimiterIndex++;
12442
+ } else if (this.inRCDATA) {
12227
12443
  this.state = 32;
12228
12444
  this.stateInRCDATA(c);
12229
12445
  } else {
@@ -12239,13 +12455,14 @@ var Vue = (function() {
12239
12455
  }
12240
12456
  }
12241
12457
  stateInterpolationClose(c) {
12242
- if (c === this.delimiterClose[this.delimiterIndex]) if (this.delimiterIndex === this.delimiterClose.length - 1) {
12243
- this.cbs.oninterpolation(this.sectionStart, this.index + 1);
12244
- if (this.inRCDATA) this.state = 32;
12245
- else this.state = 1;
12246
- this.sectionStart = this.index + 1;
12247
- } else this.delimiterIndex++;
12248
- else {
12458
+ if (c === this.delimiterClose[this.delimiterIndex]) {
12459
+ if (this.delimiterIndex === this.delimiterClose.length - 1) {
12460
+ this.cbs.oninterpolation(this.sectionStart, this.index + 1);
12461
+ if (this.inRCDATA) this.state = 32;
12462
+ else this.state = 1;
12463
+ this.sectionStart = this.index + 1;
12464
+ } else this.delimiterIndex++;
12465
+ } else {
12249
12466
  this.state = 3;
12250
12467
  this.stateInterpolation(c);
12251
12468
  }
@@ -12360,9 +12577,10 @@ var Vue = (function() {
12360
12577
  this.sectionStart = this.index;
12361
12578
  if (this.mode === 0) this.state = 6;
12362
12579
  else if (this.inSFCRoot) this.state = 34;
12363
- else if (!this.inXML) if (c === 116) this.state = 30;
12364
- else this.state = c === 115 ? 29 : 6;
12365
- else this.state = 6;
12580
+ else if (!this.inXML) {
12581
+ if (c === 116) this.state = 30;
12582
+ else this.state = c === 115 ? 29 : 6;
12583
+ } else this.state = 6;
12366
12584
  } else if (c === 47) this.state = 8;
12367
12585
  else {
12368
12586
  this.state = 1;
@@ -12715,9 +12933,7 @@ var Vue = (function() {
12715
12933
  case 24:
12716
12934
  this.stateInProcessingInstruction(c);
12717
12935
  break;
12718
- case 33:
12719
- this.stateInEntity();
12720
- break;
12936
+ case 33: this.stateInEntity();
12721
12937
  }
12722
12938
  this.index++;
12723
12939
  }
@@ -12746,9 +12962,10 @@ var Vue = (function() {
12746
12962
  handleTrailingData() {
12747
12963
  const endIndex = this.buffer.length;
12748
12964
  if (this.sectionStart >= endIndex) return;
12749
- if (this.state === 28) if (this.currentSequence === Sequences.CdataEnd) this.cbs.oncdata(this.sectionStart, endIndex);
12750
- else this.cbs.oncomment(this.sectionStart, endIndex);
12751
- else if (this.state === 6 || this.state === 11 || this.state === 18 || this.state === 17 || this.state === 12 || this.state === 13 || this.state === 14 || this.state === 15 || this.state === 16 || this.state === 20 || this.state === 19 || this.state === 21 || this.state === 9) {} else this.cbs.ontext(this.sectionStart, endIndex);
12965
+ if (this.state === 28) {
12966
+ if (this.currentSequence === Sequences.CdataEnd) this.cbs.oncdata(this.sectionStart, endIndex);
12967
+ else this.cbs.oncomment(this.sectionStart, endIndex);
12968
+ } else if (this.state === 6 || this.state === 11 || this.state === 18 || this.state === 17 || this.state === 12 || this.state === 13 || this.state === 14 || this.state === 15 || this.state === 16 || this.state === 20 || this.state === 19 || this.state === 21 || this.state === 9) {} else this.cbs.ontext(this.sectionStart, endIndex);
12752
12969
  }
12753
12970
  emitCodePoint(cp, consumed) {}
12754
12971
  };
@@ -12950,12 +13167,10 @@ var Vue = (function() {
12950
13167
  if (!--currentOpenParensCount) state = stateStack.pop();
12951
13168
  }
12952
13169
  break;
12953
- case 3:
12954
- if (char === currentStringType) {
12955
- state = stateStack.pop();
12956
- currentStringType = null;
12957
- }
12958
- break;
13170
+ case 3: if (char === currentStringType) {
13171
+ state = stateStack.pop();
13172
+ currentStringType = null;
13173
+ }
12959
13174
  }
12960
13175
  }
12961
13176
  return !currentOpenBracketCount && !currentOpenParensCount;
@@ -13005,7 +13220,7 @@ var Vue = (function() {
13005
13220
  function isSlotOutlet(node) {
13006
13221
  return node.type === 1 && node.tagType === 2;
13007
13222
  }
13008
- const propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
13223
+ const propsHelperSet = /* @__PURE__ */ new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
13009
13224
  function getUnnormalizedProps(props, callPath = []) {
13010
13225
  if (props && !isString(props) && props.type === 14) {
13011
13226
  const callee = props.callee;
@@ -13048,9 +13263,10 @@ var Vue = (function() {
13048
13263
  propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [createObjectExpression([prop]), props]);
13049
13264
  if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) parentCall = callPath[callPath.length - 2];
13050
13265
  }
13051
- if (node.type === 13) if (parentCall) parentCall.arguments[0] = propsWithInjection;
13052
- else node.props = propsWithInjection;
13053
- else if (parentCall) parentCall.arguments[0] = propsWithInjection;
13266
+ if (node.type === 13) {
13267
+ if (parentCall) parentCall.arguments[0] = propsWithInjection;
13268
+ else node.props = propsWithInjection;
13269
+ } else if (parentCall) parentCall.arguments[0] = propsWithInjection;
13054
13270
  else node.arguments[2] = propsWithInjection;
13055
13271
  }
13056
13272
  function injectSlotKey(node, prop) {
@@ -13325,10 +13541,7 @@ var Vue = (function() {
13325
13541
  case 18:
13326
13542
  case 19:
13327
13543
  case 20:
13328
- case 21:
13329
- emitError(9, end);
13330
- break;
13331
- default: break;
13544
+ case 21: emitError(9, end);
13332
13545
  }
13333
13546
  for (let index = 0; index < stack.length; index++) {
13334
13547
  onCloseTag(stack[index], end - 1);
@@ -13478,7 +13691,7 @@ var Vue = (function() {
13478
13691
  while (currentInput.charCodeAt(i) !== c && i >= 0) i--;
13479
13692
  return i;
13480
13693
  }
13481
- const specialTemplateDir = new Set([
13694
+ const specialTemplateDir = /* @__PURE__ */ new Set([
13482
13695
  "if",
13483
13696
  "else",
13484
13697
  "else-if",
@@ -13514,16 +13727,18 @@ var Vue = (function() {
13514
13727
  let removedWhitespace = false;
13515
13728
  for (let i = 0; i < nodes.length; i++) {
13516
13729
  const node = nodes[i];
13517
- if (node.type === 2) if (!inPre) {
13518
- if (isAllWhitespace(node.content)) {
13519
- const prev = nodes[i - 1] && nodes[i - 1].type;
13520
- const next = nodes[i + 1] && nodes[i + 1].type;
13521
- if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) {
13522
- removedWhitespace = true;
13523
- nodes[i] = null;
13524
- } else node.content = " ";
13525
- } else if (shouldCondense) node.content = condense(node.content);
13526
- } else node.content = node.content.replace(windowsNewlineRE, "\n");
13730
+ if (node.type === 2) {
13731
+ if (!inPre) {
13732
+ if (isAllWhitespace(node.content)) {
13733
+ const prev = nodes[i - 1] && nodes[i - 1].type;
13734
+ const next = nodes[i + 1] && nodes[i + 1].type;
13735
+ if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) {
13736
+ removedWhitespace = true;
13737
+ nodes[i] = null;
13738
+ } else node.content = " ";
13739
+ } else if (shouldCondense) node.content = condense(node.content);
13740
+ } else node.content = node.content.replace(windowsNewlineRE, "\n");
13741
+ }
13527
13742
  }
13528
13743
  return removedWhitespace ? nodes.filter(Boolean) : nodes;
13529
13744
  }
@@ -13784,7 +13999,7 @@ var Vue = (function() {
13784
13999
  default: return 0;
13785
14000
  }
13786
14001
  }
13787
- const allowHoistedHelperSet = new Set([
14002
+ const allowHoistedHelperSet = /* @__PURE__ */ new Set([
13788
14003
  NORMALIZE_CLASS,
13789
14004
  NORMALIZE_STYLE,
13790
14005
  NORMALIZE_PROPS,
@@ -13942,7 +14157,7 @@ var Vue = (function() {
13942
14157
  traverseNode(root, context);
13943
14158
  if (options.hoistStatic) cacheStatic(root, context);
13944
14159
  if (!options.ssr) createRootCodegen(root, context);
13945
- root.helpers = new Set([...context.helpers.keys()]);
14160
+ root.helpers = /* @__PURE__ */ new Set([...context.helpers.keys()]);
13946
14161
  root.components = [...context.components];
13947
14162
  root.directives = [...context.directives];
13948
14163
  root.imports = context.imports;
@@ -13989,8 +14204,10 @@ var Vue = (function() {
13989
14204
  const exitFns = [];
13990
14205
  for (let i = 0; i < nodeTransforms.length; i++) {
13991
14206
  const onExit = nodeTransforms[i](node, context);
13992
- if (onExit) if (isArray(onExit)) exitFns.push(...onExit);
13993
- else exitFns.push(onExit);
14207
+ if (onExit) {
14208
+ if (isArray(onExit)) exitFns.push(...onExit);
14209
+ else exitFns.push(onExit);
14210
+ }
13994
14211
  if (!context.currentNode) return;
13995
14212
  else node = context.currentNode;
13996
14213
  }
@@ -14007,9 +14224,7 @@ var Vue = (function() {
14007
14224
  case 10:
14008
14225
  case 11:
14009
14226
  case 1:
14010
- case 0:
14011
- traverseChildren(node, context);
14012
- break;
14227
+ case 0: traverseChildren(node, context);
14013
14228
  }
14014
14229
  context.currentNode = node;
14015
14230
  let i = exitFns.length;
@@ -14205,10 +14420,12 @@ var Vue = (function() {
14205
14420
  if (isString(node)) push(node, -3);
14206
14421
  else if (isArray(node)) genNodeListAsArray(node, context);
14207
14422
  else genNode(node, context);
14208
- if (i < nodes.length - 1) if (multilines) {
14209
- comma && push(",");
14210
- newline();
14211
- } else comma && push(", ");
14423
+ if (i < nodes.length - 1) {
14424
+ if (multilines) {
14425
+ comma && push(",");
14426
+ newline();
14427
+ } else comma && push(", ");
14428
+ }
14212
14429
  }
14213
14430
  }
14214
14431
  function genNode(node, context) {
@@ -14320,8 +14537,10 @@ var Vue = (function() {
14320
14537
  const { push, helper, pure } = context;
14321
14538
  const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node;
14322
14539
  let patchFlagString;
14323
- if (patchFlag) if (patchFlag < 0) patchFlagString = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`;
14324
- else patchFlagString = patchFlag + ` /* ${Object.keys(PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => PatchFlagNames[n]).join(`, `)} */`;
14540
+ if (patchFlag) {
14541
+ if (patchFlag < 0) patchFlagString = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`;
14542
+ else patchFlagString = patchFlag + ` /* ${Object.keys(PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => PatchFlagNames[n]).join(`, `)} */`;
14543
+ }
14325
14544
  if (directives) push(helper(WITH_DIRECTIVES) + `(`);
14326
14545
  if (isBlock) push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);
14327
14546
  if (pure) push(PURE_ANNOTATION);
@@ -14590,16 +14809,17 @@ var Vue = (function() {
14590
14809
  const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2));
14591
14810
  const { children } = branch;
14592
14811
  const firstChild = children[0];
14593
- if (children.length !== 1 || firstChild.type !== 1) if (children.length === 1 && firstChild.type === 11) {
14594
- const vnodeCall = firstChild.codegenNode;
14595
- injectProp(vnodeCall, keyProperty, context);
14596
- return vnodeCall;
14812
+ if (children.length !== 1 || firstChild.type !== 1) {
14813
+ if (children.length === 1 && firstChild.type === 11) {
14814
+ const vnodeCall = firstChild.codegenNode;
14815
+ injectProp(vnodeCall, keyProperty, context);
14816
+ return vnodeCall;
14817
+ } else {
14818
+ let patchFlag = 64;
14819
+ if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) patchFlag |= 2048;
14820
+ return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag, void 0, void 0, true, false, false, branch.loc);
14821
+ }
14597
14822
  } else {
14598
- let patchFlag = 64;
14599
- if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) patchFlag |= 2048;
14600
- return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag, void 0, void 0, true, false, false, branch.loc);
14601
- }
14602
- else {
14603
14823
  const ret = firstChild.codegenNode;
14604
14824
  const vnodeCall = getMemoedVNodeCall(ret);
14605
14825
  if (vnodeCall.type === 13) convertToBlock(vnodeCall, context);
@@ -14620,9 +14840,10 @@ var Vue = (function() {
14620
14840
  return true;
14621
14841
  }
14622
14842
  function getParentCondition(node) {
14623
- while (true) if (node.type === 19) if (node.alternate.type === 19) node = node.alternate;
14624
- else return node;
14625
- else if (node.type === 20) node = node.value;
14843
+ while (true) if (node.type === 19) {
14844
+ if (node.alternate.type === 19) node = node.alternate;
14845
+ else return node;
14846
+ } else if (node.type === 20) node = node.value;
14626
14847
  }
14627
14848
  //#endregion
14628
14849
  //#region packages/compiler-core/src/transforms/vFor.ts
@@ -14661,10 +14882,12 @@ var Vue = (function() {
14661
14882
  childBlock = children[0].codegenNode;
14662
14883
  if (isTemplate && keyProperty) injectProp(childBlock, keyProperty, context);
14663
14884
  const shouldUseBlock = !isStableFragment || childBlock.isBlockRequired === true;
14664
- if (childBlock.isBlock !== shouldUseBlock) if (childBlock.isBlock) {
14665
- removeHelper(OPEN_BLOCK);
14666
- removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
14667
- } else removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));
14885
+ if (childBlock.isBlock !== shouldUseBlock) {
14886
+ if (childBlock.isBlock) {
14887
+ removeHelper(OPEN_BLOCK);
14888
+ removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
14889
+ } else removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));
14890
+ }
14668
14891
  childBlock.isBlock = shouldUseBlock;
14669
14892
  if (childBlock.isBlock) {
14670
14893
  helper(OPEN_BLOCK);
@@ -14847,8 +15070,10 @@ var Vue = (function() {
14847
15070
  return createObjectProperty(`default`, fn);
14848
15071
  };
14849
15072
  if (!hasTemplateSlots) slotsProperties.push(buildDefaultSlotProperty(void 0, children));
14850
- else if (implicitDefaultChildren.length && !implicitDefaultChildren.every(isWhitespaceText)) if (hasNamedDefaultSlot) context.onError(createCompilerError(39, implicitDefaultChildren[0].loc));
14851
- else slotsProperties.push(buildDefaultSlotProperty(void 0, implicitDefaultChildren));
15073
+ else if (implicitDefaultChildren.length && !implicitDefaultChildren.every(isWhitespaceText)) {
15074
+ if (hasNamedDefaultSlot) context.onError(createCompilerError(39, implicitDefaultChildren[0].loc));
15075
+ else slotsProperties.push(buildDefaultSlotProperty(void 0, implicitDefaultChildren));
15076
+ }
14852
15077
  }
14853
15078
  const slotFlag = hasDynamicSlots ? 2 : hasForwardedSlots(node.children) ? 3 : 1;
14854
15079
  let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`, createSimpleExpression(slotFlag + ` /* ${slotFlagsText[slotFlag]} */`, false))), loc);
@@ -14874,10 +15099,7 @@ var Vue = (function() {
14874
15099
  if (hasForwardedSlots(child.branches)) return true;
14875
15100
  break;
14876
15101
  case 10:
14877
- case 11:
14878
- if (hasForwardedSlots(child.children)) return true;
14879
- break;
14880
- default: break;
15102
+ case 11: if (hasForwardedSlots(child.children)) return true;
14881
15103
  }
14882
15104
  }
14883
15105
  return false;
@@ -15038,29 +15260,30 @@ var Vue = (function() {
15038
15260
  if (isVBind && isStaticArgOf(arg, "ref")) pushRefVForMarker();
15039
15261
  if (!arg && (isVBind || isVOn)) {
15040
15262
  hasDynamicKeys = true;
15041
- if (exp) if (isVBind) {
15042
- pushMergeArg();
15043
- if (mergeArgs.some((arg) => {
15044
- if (arg.type === 15) return arg.properties.some(({ key }) => {
15045
- if (key.type !== 4 || !key.isStatic) return true;
15046
- return key.content !== "class" && key.content !== "style" && !isOn(key.content);
15047
- });
15048
- else return true;
15049
- })) checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER", context, loc);
15050
- if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER", context)) {
15051
- mergeArgs.unshift(exp);
15052
- continue;
15053
- }
15054
- pushRefVForMarker();
15055
- pushMergeArg();
15056
- mergeArgs.push(exp);
15057
- } else pushMergeArg({
15058
- type: 14,
15059
- loc,
15060
- callee: context.helper(TO_HANDLERS),
15061
- arguments: isComponent ? [exp] : [exp, `true`]
15062
- });
15063
- else context.onError(createCompilerError(isVBind ? 34 : 35, loc));
15263
+ if (exp) {
15264
+ if (isVBind) {
15265
+ pushMergeArg();
15266
+ if (mergeArgs.some((arg) => {
15267
+ if (arg.type === 15) return arg.properties.some(({ key }) => {
15268
+ if (key.type !== 4 || !key.isStatic) return true;
15269
+ return key.content !== "class" && key.content !== "style" && !isOn(key.content);
15270
+ });
15271
+ else return true;
15272
+ })) checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER", context, loc);
15273
+ if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER", context)) {
15274
+ mergeArgs.unshift(exp);
15275
+ continue;
15276
+ }
15277
+ pushRefVForMarker();
15278
+ pushMergeArg();
15279
+ mergeArgs.push(exp);
15280
+ } else pushMergeArg({
15281
+ type: 14,
15282
+ loc,
15283
+ callee: context.helper(TO_HANDLERS),
15284
+ arguments: isComponent ? [exp] : [exp, `true`]
15285
+ });
15286
+ } else context.onError(createCompilerError(isVBind ? 34 : 35, loc));
15064
15287
  continue;
15065
15288
  }
15066
15289
  if (isVBind && modifiers.some((mod) => mod.content === "prop")) patchFlag |= 32;
@@ -15118,9 +15341,7 @@ var Vue = (function() {
15118
15341
  } else propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);
15119
15342
  break;
15120
15343
  case 14: break;
15121
- default:
15122
- propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [propsExpression])]);
15123
- break;
15344
+ default: propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [propsExpression])]);
15124
15345
  }
15125
15346
  return {
15126
15347
  props: propsExpression,
@@ -15226,10 +15447,12 @@ var Vue = (function() {
15226
15447
  for (let i = 0; i < node.props.length; i++) {
15227
15448
  const p = node.props[i];
15228
15449
  if (p.type === 6) {
15229
- if (p.value) if (p.name === "name") slotName = JSON.stringify(p.value.content);
15230
- else {
15231
- p.name = camelize(p.name);
15232
- nonNameProps.push(p);
15450
+ if (p.value) {
15451
+ if (p.name === "name") slotName = JSON.stringify(p.value.content);
15452
+ else {
15453
+ p.name = camelize(p.name);
15454
+ nonNameProps.push(p);
15455
+ }
15233
15456
  }
15234
15457
  } else if (p.name === "bind" && isStaticArgOf(p.arg, "name")) {
15235
15458
  if (p.exp) slotName = p.exp;
@@ -15255,17 +15478,18 @@ var Vue = (function() {
15255
15478
  const { loc, modifiers, arg } = dir;
15256
15479
  if (!dir.exp && !modifiers.length) context.onError(createCompilerError(35, loc));
15257
15480
  let eventName;
15258
- if (arg.type === 4) if (arg.isStatic) {
15259
- let rawName = arg.content;
15260
- if (rawName.startsWith("vnode")) context.onError(createCompilerError(52, arg.loc));
15261
- if (rawName.startsWith("vue:")) rawName = `vnode-${rawName.slice(4)}`;
15262
- eventName = createSimpleExpression(node.tagType !== 0 || rawName.startsWith("vnode") || !/[A-Z]/.test(rawName) ? toHandlerKey(camelize(rawName)) : `on:${rawName}`, true, arg.loc);
15263
- } else eventName = createCompoundExpression([
15264
- `${context.helperString(TO_HANDLER_KEY)}(`,
15265
- arg,
15266
- `)`
15267
- ]);
15268
- else {
15481
+ if (arg.type === 4) {
15482
+ if (arg.isStatic) {
15483
+ let rawName = arg.content;
15484
+ if (rawName.startsWith("vnode")) context.onError(createCompilerError(52, arg.loc));
15485
+ if (rawName.startsWith("vue:")) rawName = `vnode-${rawName.slice(4)}`;
15486
+ eventName = createSimpleExpression(node.tagType !== 0 || rawName.startsWith("vnode") || !/[A-Z]/.test(rawName) ? toHandlerKey(camelize(rawName)) : `on:${rawName}`, true, arg.loc);
15487
+ } else eventName = createCompoundExpression([
15488
+ `${context.helperString(TO_HANDLER_KEY)}(`,
15489
+ arg,
15490
+ `)`
15491
+ ]);
15492
+ } else {
15269
15493
  eventName = arg;
15270
15494
  eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);
15271
15495
  eventName.children.push(`)`);
@@ -15301,11 +15525,14 @@ var Vue = (function() {
15301
15525
  arg.children.unshift(`(`);
15302
15526
  arg.children.push(`) || ""`);
15303
15527
  } else if (!arg.isStatic) arg.content = arg.content ? `${arg.content} || ""` : `""`;
15304
- if (modifiers.some((mod) => mod.content === "camel")) if (arg.type === 4) if (arg.isStatic) arg.content = camelize(arg.content);
15305
- else arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
15306
- else {
15307
- arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
15308
- arg.children.push(`)`);
15528
+ if (modifiers.some((mod) => mod.content === "camel")) {
15529
+ if (arg.type === 4) {
15530
+ if (arg.isStatic) arg.content = camelize(arg.content);
15531
+ else arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
15532
+ } else {
15533
+ arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
15534
+ arg.children.push(`)`);
15535
+ }
15309
15536
  }
15310
15537
  if (!context.inSSR) {
15311
15538
  if (modifiers.some((mod) => mod.content === "prop")) injectPrefix(arg, ".");
@@ -15314,9 +15541,10 @@ var Vue = (function() {
15314
15541
  return { props: [createObjectProperty(arg, exp)] };
15315
15542
  };
15316
15543
  const injectPrefix = (arg, prefix) => {
15317
- if (arg.type === 4) if (arg.isStatic) arg.content = prefix + arg.content;
15318
- else arg.content = `\`${prefix}\${${arg.content}}\``;
15319
- else {
15544
+ if (arg.type === 4) {
15545
+ if (arg.isStatic) arg.content = prefix + arg.content;
15546
+ else arg.content = `\`${prefix}\${${arg.content}}\``;
15547
+ } else {
15320
15548
  arg.children.unshift(`'${prefix}' + (`);
15321
15549
  arg.children.push(`)`);
15322
15550
  }
@@ -15463,11 +15691,12 @@ var Vue = (function() {
15463
15691
  if (c === 96 && prev !== 92) inTemplateString = false;
15464
15692
  } else if (inRegex) {
15465
15693
  if (c === 47 && prev !== 92) inRegex = false;
15466
- } else if (c === 124 && exp.charCodeAt(i + 1) !== 124 && exp.charCodeAt(i - 1) !== 124 && !curly && !square && !paren) if (expression === void 0) {
15467
- lastFilterIndex = i + 1;
15468
- expression = exp.slice(0, i).trim();
15469
- } else pushFilter();
15470
- else {
15694
+ } else if (c === 124 && exp.charCodeAt(i + 1) !== 124 && exp.charCodeAt(i - 1) !== 124 && !curly && !square && !paren) {
15695
+ if (expression === void 0) {
15696
+ lastFilterIndex = i + 1;
15697
+ expression = exp.slice(0, i).trim();
15698
+ } else pushFilter();
15699
+ } else {
15471
15700
  switch (c) {
15472
15701
  case 34:
15473
15702
  inDouble = true;
@@ -15493,9 +15722,7 @@ var Vue = (function() {
15493
15722
  case 123:
15494
15723
  curly++;
15495
15724
  break;
15496
- case 125:
15497
- curly--;
15498
- break;
15725
+ case 125: curly--;
15499
15726
  }
15500
15727
  if (c === 47) {
15501
15728
  let j = i - 1;
@@ -15771,9 +15998,7 @@ var Vue = (function() {
15771
15998
  isInvalidType = true;
15772
15999
  context.onError(createDOMCompilerError(60, dir.loc));
15773
16000
  break;
15774
- default:
15775
- checkDuplicatedValue();
15776
- break;
16001
+ default: checkDuplicatedValue();
15777
16002
  }
15778
16003
  } else if (hasDynamicKeyVBind(node)) directiveToUse = V_MODEL_DYNAMIC;
15779
16004
  else checkDuplicatedValue();
@@ -15786,10 +16011,10 @@ var Vue = (function() {
15786
16011
  };
15787
16012
  //#endregion
15788
16013
  //#region packages/compiler-dom/src/transforms/vOn.ts
15789
- const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`);
15790
- const isNonKeyModifier = /* @__PURE__ */ makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
15791
- const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
15792
- const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
16014
+ const isEventOptionModifier = /*@__PURE__*/ makeMap(`passive,once,capture`);
16015
+ const isNonKeyModifier = /*@__PURE__*/ makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
16016
+ const maybeKeyModifier = /*@__PURE__*/ makeMap("left,right");
16017
+ const isKeyboardEvent = /*@__PURE__*/ makeMap(`onkeyup,onkeydown,onkeypress`);
15793
16018
  const resolveModifiers = (key, modifiers, context, loc) => {
15794
16019
  const keyModifiers = [];
15795
16020
  const nonKeyModifiers = [];
@@ -15808,13 +16033,15 @@ var Vue = (function() {
15808
16033
  else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
15809
16034
  else {
15810
16035
  const keyString = isString(key) ? key : isStaticExp(key) ? key.content : null;
15811
- if (maybeKeyModifier(modifier)) if (keyString) if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
15812
- else nonKeyModifiers.push(modifier);
15813
- else {
15814
- keyModifiers.push(modifier);
15815
- nonKeyModifiers.push(modifier);
15816
- }
15817
- else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
16036
+ if (maybeKeyModifier(modifier)) {
16037
+ if (keyString) {
16038
+ if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
16039
+ else nonKeyModifiers.push(modifier);
16040
+ } else {
16041
+ keyModifiers.push(modifier);
16042
+ nonKeyModifiers.push(modifier);
16043
+ }
16044
+ } else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
15818
16045
  else keyModifiers.push(modifier);
15819
16046
  }
15820
16047
  }
@@ -15929,7 +16156,7 @@ var Vue = (function() {
15929
16156
  }
15930
16157
  return true;
15931
16158
  }
15932
- const headings = new Set([
16159
+ const headings = /* @__PURE__ */ new Set([
15933
16160
  "h1",
15934
16161
  "h2",
15935
16162
  "h3",
@@ -15941,7 +16168,7 @@ var Vue = (function() {
15941
16168
  /**
15942
16169
  * maps element to set of elements that can be it's children, no other */
15943
16170
  const onlyValidChildren = {
15944
- head: new Set([
16171
+ head: /* @__PURE__ */ new Set([
15945
16172
  "base",
15946
16173
  "basefront",
15947
16174
  "bgsound",
@@ -15954,24 +16181,24 @@ var Vue = (function() {
15954
16181
  "script",
15955
16182
  "template"
15956
16183
  ]),
15957
- optgroup: new Set(["option"]),
15958
- select: new Set([
16184
+ optgroup: /* @__PURE__ */ new Set(["option"]),
16185
+ select: /* @__PURE__ */ new Set([
15959
16186
  "optgroup",
15960
16187
  "option",
15961
16188
  "hr"
15962
16189
  ]),
15963
- table: new Set([
16190
+ table: /* @__PURE__ */ new Set([
15964
16191
  "caption",
15965
16192
  "colgroup",
15966
16193
  "tbody",
15967
16194
  "tfoot",
15968
16195
  "thead"
15969
16196
  ]),
15970
- tr: new Set(["td", "th"]),
15971
- colgroup: new Set(["col"]),
15972
- tbody: new Set(["tr"]),
15973
- thead: new Set(["tr"]),
15974
- tfoot: new Set(["tr"]),
16197
+ tr: /* @__PURE__ */ new Set(["td", "th"]),
16198
+ colgroup: /* @__PURE__ */ new Set(["col"]),
16199
+ tbody: /* @__PURE__ */ new Set(["tr"]),
16200
+ thead: /* @__PURE__ */ new Set(["tr"]),
16201
+ tfoot: /* @__PURE__ */ new Set(["tr"]),
15975
16202
  script: emptySet,
15976
16203
  iframe: emptySet,
15977
16204
  option: emptySet,
@@ -15982,30 +16209,30 @@ var Vue = (function() {
15982
16209
  /** maps elements to set of elements which can be it's parent, no other */
15983
16210
  const onlyValidParents = {
15984
16211
  html: emptySet,
15985
- body: new Set(["html"]),
15986
- head: new Set(["html"]),
15987
- td: new Set(["tr"]),
15988
- colgroup: new Set(["table"]),
15989
- caption: new Set(["table"]),
15990
- tbody: new Set(["table"]),
15991
- tfoot: new Set(["table"]),
15992
- col: new Set(["colgroup"]),
15993
- th: new Set(["tr"]),
15994
- thead: new Set(["table"]),
15995
- tr: new Set([
16212
+ body: /* @__PURE__ */ new Set(["html"]),
16213
+ head: /* @__PURE__ */ new Set(["html"]),
16214
+ td: /* @__PURE__ */ new Set(["tr"]),
16215
+ colgroup: /* @__PURE__ */ new Set(["table"]),
16216
+ caption: /* @__PURE__ */ new Set(["table"]),
16217
+ tbody: /* @__PURE__ */ new Set(["table"]),
16218
+ tfoot: /* @__PURE__ */ new Set(["table"]),
16219
+ col: /* @__PURE__ */ new Set(["colgroup"]),
16220
+ th: /* @__PURE__ */ new Set(["tr"]),
16221
+ thead: /* @__PURE__ */ new Set(["table"]),
16222
+ tr: /* @__PURE__ */ new Set([
15996
16223
  "tbody",
15997
16224
  "thead",
15998
16225
  "tfoot"
15999
16226
  ]),
16000
- dd: new Set(["dl", "div"]),
16001
- dt: new Set(["dl", "div"]),
16002
- figcaption: new Set(["figure"]),
16003
- summary: new Set(["details"]),
16004
- area: new Set(["map"])
16227
+ dd: /* @__PURE__ */ new Set(["dl", "div"]),
16228
+ dt: /* @__PURE__ */ new Set(["dl", "div"]),
16229
+ figcaption: /* @__PURE__ */ new Set(["figure"]),
16230
+ summary: /* @__PURE__ */ new Set(["details"]),
16231
+ area: /* @__PURE__ */ new Set(["map"])
16005
16232
  };
16006
16233
  /** maps element to set of elements that can not be it's children, others can */
16007
16234
  const knownInvalidChildren = {
16008
- p: new Set([
16235
+ p: /* @__PURE__ */ new Set([
16009
16236
  "address",
16010
16237
  "article",
16011
16238
  "aside",
@@ -16040,7 +16267,7 @@ var Vue = (function() {
16040
16267
  "table",
16041
16268
  "ul"
16042
16269
  ]),
16043
- svg: new Set([
16270
+ svg: /* @__PURE__ */ new Set([
16044
16271
  "b",
16045
16272
  "blockquote",
16046
16273
  "br",
@@ -16081,12 +16308,12 @@ var Vue = (function() {
16081
16308
  };
16082
16309
  /** maps element to set of elements that can not be it's parent, others can */
16083
16310
  const knownInvalidParents = {
16084
- a: new Set(["a"]),
16085
- button: new Set(["button"]),
16086
- dd: new Set(["dd", "dt"]),
16087
- dt: new Set(["dd", "dt"]),
16088
- form: new Set(["form"]),
16089
- li: new Set(["li"]),
16311
+ a: /* @__PURE__ */ new Set(["a"]),
16312
+ button: /* @__PURE__ */ new Set(["button"]),
16313
+ dd: /* @__PURE__ */ new Set(["dd", "dt"]),
16314
+ dt: /* @__PURE__ */ new Set(["dd", "dt"]),
16315
+ form: /* @__PURE__ */ new Set(["form"]),
16316
+ li: /* @__PURE__ */ new Set(["li"]),
16090
16317
  h1: headings,
16091
16318
  h2: headings,
16092
16319
  h3: headings,
@@ -16129,10 +16356,12 @@ var Vue = (function() {
16129
16356
  //#region packages/vue-compat/src/index.ts
16130
16357
  const compileCache = Object.create(null);
16131
16358
  function compileToFunction(template, options) {
16132
- if (!isString(template)) if (template.nodeType) template = template.innerHTML;
16133
- else {
16134
- warn(`invalid template option: `, template);
16135
- return NOOP;
16359
+ if (!isString(template)) {
16360
+ if (template.nodeType) template = template.innerHTML;
16361
+ else {
16362
+ warn(`invalid template option: `, template);
16363
+ return NOOP;
16364
+ }
16136
16365
  }
16137
16366
  const key = genCacheKey(template, options);
16138
16367
  const cached = compileCache[key];