@maizzle/framework 6.1.0 → 6.1.2

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.
Files changed (63) hide show
  1. package/dist/build.js +2 -1
  2. package/dist/build.js.map +1 -1
  3. package/dist/config/index.js.map +1 -1
  4. package/dist/plugins/postcss/mergeMediaQueries.js +2 -1
  5. package/dist/plugins/postcss/mergeMediaQueries.js.map +1 -1
  6. package/dist/plugins/postcss/resolveMaizzleImports.js.map +1 -1
  7. package/dist/render/buildTemplate.js +4 -2
  8. package/dist/render/buildTemplate.js.map +1 -1
  9. package/dist/render/createRenderer.d.ts +7 -0
  10. package/dist/render/createRenderer.d.ts.map +1 -1
  11. package/dist/render/createRenderer.js +46 -3
  12. package/dist/render/createRenderer.js.map +1 -1
  13. package/dist/serve.js +19 -10
  14. package/dist/serve.js.map +1 -1
  15. package/dist/server/compatibility.js +2 -1
  16. package/dist/server/compatibility.js.map +1 -1
  17. package/dist/server/linter.js +2 -1
  18. package/dist/server/linter.js.map +1 -1
  19. package/dist/server/sfc-utils.js.map +1 -1
  20. package/dist/server/ui/.vite/deps/@lucide_vue.js +6845 -6285
  21. package/dist/server/ui/.vite/deps/@lucide_vue.js.map +1 -1
  22. package/dist/server/ui/.vite/deps/@vueuse_core.js +2 -6
  23. package/dist/server/ui/.vite/deps/@vueuse_core.js.map +1 -1
  24. package/dist/server/ui/.vite/deps/@vueuse_shared.js +1 -1
  25. package/dist/server/ui/.vite/deps/@vueuse_shared.js.map +1 -1
  26. package/dist/server/ui/.vite/deps/_metadata.json +15 -15
  27. package/dist/server/ui/.vite/deps/culori.js +8 -6
  28. package/dist/server/ui/.vite/deps/culori.js.map +1 -1
  29. package/dist/server/ui/.vite/deps/reka-ui.js +63 -73
  30. package/dist/server/ui/.vite/deps/reka-ui.js.map +1 -1
  31. package/dist/server/ui/.vite/deps/tailwind-merge.js.map +1 -1
  32. package/dist/server/ui/.vite/deps/vue-router.js +5 -13
  33. package/dist/server/ui/.vite/deps/vue-router.js.map +1 -1
  34. package/dist/server/ui/.vite/deps/vue.js +1 -1
  35. package/dist/server/ui/.vite/deps/{vue.runtime.esm-bundler-BHD3r-bP.js → vue.runtime.esm-bundler-S54atuNJ.js} +323 -259
  36. package/dist/server/ui/.vite/deps/{vue.runtime.esm-bundler-BHD3r-bP.js.map → vue.runtime.esm-bundler-S54atuNJ.js.map} +1 -1
  37. package/dist/transformers/format.js +2 -1
  38. package/dist/transformers/format.js.map +1 -1
  39. package/dist/transformers/index.d.ts +1 -1
  40. package/dist/transformers/index.d.ts.map +1 -1
  41. package/dist/transformers/index.js +4 -4
  42. package/dist/transformers/index.js.map +1 -1
  43. package/dist/transformers/inlineCss.js +3 -2
  44. package/dist/transformers/inlineCss.js.map +1 -1
  45. package/dist/transformers/inlineLink.js +2 -1
  46. package/dist/transformers/inlineLink.js.map +1 -1
  47. package/dist/transformers/minify.js +2 -1
  48. package/dist/transformers/minify.js.map +1 -1
  49. package/dist/transformers/tailwindComponent.d.ts +1 -1
  50. package/dist/transformers/tailwindComponent.d.ts.map +1 -1
  51. package/dist/transformers/tailwindComponent.js +26 -7
  52. package/dist/transformers/tailwindComponent.js.map +1 -1
  53. package/dist/transformers/tailwindcss.d.ts +10 -3
  54. package/dist/transformers/tailwindcss.d.ts.map +1 -1
  55. package/dist/transformers/tailwindcss.js +30 -14
  56. package/dist/transformers/tailwindcss.js.map +1 -1
  57. package/dist/transformers/urlQuery.js +2 -1
  58. package/dist/transformers/urlQuery.js.map +1 -1
  59. package/dist/types/config.d.ts +11 -0
  60. package/dist/types/config.d.ts.map +1 -1
  61. package/dist/utils/cssBox.js +2 -6
  62. package/dist/utils/cssBox.js.map +1 -1
  63. package/package.json +2 -2
@@ -260,12 +260,14 @@ var EffectScope = class {
260
260
  this._isPaused = false;
261
261
  this._warnOnRun = true;
262
262
  this.__v_skip = true;
263
- if (!detached && activeEffectScope) if (activeEffectScope.active) {
264
- this.parent = activeEffectScope;
265
- this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
266
- } else {
267
- this._active = false;
268
- this._warnOnRun = false;
263
+ if (!detached && activeEffectScope) {
264
+ if (activeEffectScope.active) {
265
+ this.parent = activeEffectScope;
266
+ this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
267
+ } else {
268
+ this._active = false;
269
+ this._warnOnRun = false;
270
+ }
269
271
  }
270
272
  }
271
273
  get active() {
@@ -400,8 +402,10 @@ var ReactiveEffect = class {
400
402
  */
401
403
  this.cleanup = void 0;
402
404
  this.scheduler = void 0;
403
- if (activeEffectScope) if (activeEffectScope.active) activeEffectScope.effects.push(this);
404
- else this.flags &= -2;
405
+ if (activeEffectScope) {
406
+ if (activeEffectScope.active) activeEffectScope.effects.push(this);
407
+ else this.flags &= -2;
408
+ }
405
409
  }
406
410
  pause() {
407
411
  this.flags |= 64;
@@ -801,9 +805,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
801
805
  if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
802
806
  }
803
807
  break;
804
- case "set":
805
- if (isMap(target)) run(depsMap.get(ITERATE_KEY));
806
- break;
808
+ case "set": if (isMap(target)) run(depsMap.get(ITERATE_KEY));
807
809
  }
808
810
  }
809
811
  }
@@ -1042,12 +1044,14 @@ var MutableReactiveHandler = class extends BaseReactiveHandler {
1042
1044
  oldValue = /* @__PURE__ */ toRaw(oldValue);
1043
1045
  value = /* @__PURE__ */ toRaw(value);
1044
1046
  }
1045
- if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) if (isOldValueReadonly) {
1046
- warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target[key]);
1047
- return true;
1048
- } else {
1049
- oldValue.value = value;
1050
- return true;
1047
+ if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
1048
+ if (isOldValueReadonly) {
1049
+ warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target[key]);
1050
+ return true;
1051
+ } else {
1052
+ oldValue.value = value;
1053
+ return true;
1054
+ }
1051
1055
  }
1052
1056
  }
1053
1057
  const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);
@@ -1620,25 +1624,26 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1620
1624
  else if (isFunction(s)) return call ? call(s, 2) : s();
1621
1625
  else warnInvalidSource(s);
1622
1626
  });
1623
- } else if (isFunction(source)) if (cb) getter = call ? () => call(source, 2) : source;
1624
- else getter = () => {
1625
- if (cleanup) {
1626
- pauseTracking();
1627
+ } else if (isFunction(source)) {
1628
+ if (cb) getter = call ? () => call(source, 2) : source;
1629
+ else getter = () => {
1630
+ if (cleanup) {
1631
+ pauseTracking();
1632
+ try {
1633
+ cleanup();
1634
+ } finally {
1635
+ resetTracking();
1636
+ }
1637
+ }
1638
+ const currentEffect = activeWatcher;
1639
+ activeWatcher = effect;
1627
1640
  try {
1628
- cleanup();
1641
+ return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
1629
1642
  } finally {
1630
- resetTracking();
1643
+ activeWatcher = currentEffect;
1631
1644
  }
1632
- }
1633
- const currentEffect = activeWatcher;
1634
- activeWatcher = effect;
1635
- try {
1636
- return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
1637
- } finally {
1638
- activeWatcher = currentEffect;
1639
- }
1640
- };
1641
- else {
1645
+ };
1646
+ } else {
1642
1647
  getter = NOOP;
1643
1648
  warnInvalidSource(source);
1644
1649
  }
@@ -1697,9 +1702,10 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1697
1702
  };
1698
1703
  effect.onTrack = options.onTrack;
1699
1704
  effect.onTrigger = options.onTrigger;
1700
- if (cb) if (immediate) job(true);
1701
- else oldValue = effect.run();
1702
- else if (scheduler) scheduler(job.bind(null, true), true);
1705
+ if (cb) {
1706
+ if (immediate) job(true);
1707
+ else oldValue = effect.run();
1708
+ } else if (scheduler) scheduler(job.bind(null, true), true);
1703
1709
  else effect.run();
1704
1710
  watchHandle.pause = effect.pause.bind(effect);
1705
1711
  watchHandle.resume = effect.resume.bind(effect);
@@ -2456,15 +2462,16 @@ var isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instan
2456
2462
  var isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement;
2457
2463
  var resolveTarget = (props, select) => {
2458
2464
  const targetSelector = props && props.to;
2459
- if (isString(targetSelector)) if (!select) {
2460
- warn$1(`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`);
2461
- return null;
2465
+ if (isString(targetSelector)) {
2466
+ if (!select) {
2467
+ warn$1(`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`);
2468
+ return null;
2469
+ } else {
2470
+ const target = select(targetSelector);
2471
+ 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.`);
2472
+ return target;
2473
+ }
2462
2474
  } else {
2463
- const target = select(targetSelector);
2464
- 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.`);
2465
- return target;
2466
- }
2467
- else {
2468
2475
  if (!targetSelector && !isTeleportDisabled(props)) warn$1(`Invalid Teleport target: ${targetSelector}`);
2469
2476
  return targetSelector;
2470
2477
  }
@@ -2614,15 +2621,17 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
2614
2621
  const disabled = isTeleportDisabled(vnode.props);
2615
2622
  if (target) {
2616
2623
  const targetNode = target._lpa || target.firstChild;
2617
- if (vnode.shapeFlag & 16) if (disabled) {
2618
- hydrateDisabledTeleport(node, vnode);
2619
- hydrateAnchor(target, targetNode);
2620
- if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert, parentNode(node) === target ? node : null);
2621
- } else {
2622
- vnode.anchor = nextSibling(node);
2623
- hydrateAnchor(target, targetNode);
2624
- if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert);
2625
- hydrateChildren(targetNode && nextSibling(targetNode), vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
2624
+ if (vnode.shapeFlag & 16) {
2625
+ if (disabled) {
2626
+ hydrateDisabledTeleport(node, vnode);
2627
+ hydrateAnchor(target, targetNode);
2628
+ if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert, parentNode(node) === target ? node : null);
2629
+ } else {
2630
+ vnode.anchor = nextSibling(node);
2631
+ hydrateAnchor(target, targetNode);
2632
+ if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert);
2633
+ hydrateChildren(targetNode && nextSibling(targetNode), vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
2634
+ }
2626
2635
  }
2627
2636
  updateCssVars(vnode, disabled);
2628
2637
  } else if (disabled) {
@@ -2798,8 +2807,10 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2798
2807
  persisted,
2799
2808
  beforeEnter(el) {
2800
2809
  let hook = onBeforeEnter;
2801
- if (!state.isMounted) if (appear) hook = onBeforeAppear || onBeforeEnter;
2802
- else return;
2810
+ if (!state.isMounted) {
2811
+ if (appear) hook = onBeforeAppear || onBeforeEnter;
2812
+ else return;
2813
+ }
2803
2814
  if (el[leaveCbKey]) el[leaveCbKey](true);
2804
2815
  const leavingVNode = leavingVNodesCache[key];
2805
2816
  if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) leavingVNode.el[leaveCbKey]();
@@ -2810,11 +2821,13 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2810
2821
  let hook = onEnter;
2811
2822
  let afterHook = onAfterEnter;
2812
2823
  let cancelHook = onEnterCancelled;
2813
- if (!state.isMounted) if (appear) {
2814
- hook = onAppear || onEnter;
2815
- afterHook = onAfterAppear || onAfterEnter;
2816
- cancelHook = onAppearCancelled || onEnterCancelled;
2817
- } else return;
2824
+ if (!state.isMounted) {
2825
+ if (appear) {
2826
+ hook = onAppear || onEnter;
2827
+ afterHook = onAfterAppear || onAfterEnter;
2828
+ cancelHook = onAppearCancelled || onEnterCancelled;
2829
+ } else return;
2830
+ }
2818
2831
  let called = false;
2819
2832
  el[enterCbKey$1] = (cancelled) => {
2820
2833
  if (called) return;
@@ -2988,15 +3001,16 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2988
3001
  if (rawRef.f) {
2989
3002
  const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
2990
3003
  if (isUnmount) isArray(existing) && remove(existing, refValue);
2991
- else if (!isArray(existing)) if (_isString) {
2992
- refs[ref] = [refValue];
2993
- if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
2994
- } else {
2995
- const newVal = [refValue];
2996
- if (canSetRef(ref, rawRef.k)) ref.value = newVal;
2997
- if (rawRef.k) refs[rawRef.k] = newVal;
2998
- }
2999
- else if (!existing.includes(refValue)) existing.push(refValue);
3004
+ else if (!isArray(existing)) {
3005
+ if (_isString) {
3006
+ refs[ref] = [refValue];
3007
+ if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
3008
+ } else {
3009
+ const newVal = [refValue];
3010
+ if (canSetRef(ref, rawRef.k)) ref.value = newVal;
3011
+ if (rawRef.k) refs[rawRef.k] = newVal;
3012
+ }
3013
+ } else if (!existing.includes(refValue)) existing.push(refValue);
3000
3014
  } else if (_isString) {
3001
3015
  refs[ref] = value;
3002
3016
  if (canSetSetupRef(ref)) setupState[ref] = value;
@@ -3071,11 +3085,12 @@ function createHydrationFunctions(rendererInternals) {
3071
3085
  let nextNode = null;
3072
3086
  switch (type) {
3073
3087
  case Text:
3074
- if (domType !== 3) if (vnode.children === "") {
3075
- insert(vnode.el = createText(""), parentNode(node), node);
3076
- nextNode = node;
3077
- } else nextNode = onMismatch();
3078
- else {
3088
+ if (domType !== 3) {
3089
+ if (vnode.children === "") {
3090
+ insert(vnode.el = createText(""), parentNode(node), node);
3091
+ nextNode = node;
3092
+ } else nextNode = onMismatch();
3093
+ } else {
3079
3094
  if (node.data !== vnode.children) {
3080
3095
  warn$1(`Hydration text mismatch in`, node.parentNode, `
3081
3096
  - rendered on server: ${JSON.stringify(node.data)}
@@ -3113,9 +3128,10 @@ function createHydrationFunctions(rendererInternals) {
3113
3128
  if (!isFragmentStart) nextNode = onMismatch();
3114
3129
  else nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
3115
3130
  break;
3116
- default: if (shapeFlag & 1) if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) nextNode = onMismatch();
3117
- else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
3118
- else if (shapeFlag & 6) {
3131
+ default: if (shapeFlag & 1) {
3132
+ if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) nextNode = onMismatch();
3133
+ else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
3134
+ } else if (shapeFlag & 6) {
3119
3135
  vnode.slotScopeIds = slotScopeIds;
3120
3136
  const container = parentNode(node);
3121
3137
  if (isFragmentStart) nextNode = locateClosingAnchor(node);
@@ -3131,9 +3147,10 @@ function createHydrationFunctions(rendererInternals) {
3131
3147
  subTree.el = node;
3132
3148
  vnode.component.subTree = subTree;
3133
3149
  }
3134
- } else if (shapeFlag & 64) if (domType !== 8) nextNode = onMismatch();
3135
- else nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
3136
- else if (shapeFlag & 128) nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
3150
+ } else if (shapeFlag & 64) {
3151
+ if (domType !== 8) nextNode = onMismatch();
3152
+ else nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
3153
+ } else if (shapeFlag & 128) nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
3137
3154
  else warn$1("Invalid HostVNode type:", type, `(${typeof type})`);
3138
3155
  }
3139
3156
  if (ref != null) setRef(ref, null, parentSuspense, vnode);
@@ -3277,8 +3294,10 @@ Server rendered element contains fewer child nodes than client vdom.`);
3277
3294
  node = nextSibling(node);
3278
3295
  if (node && isComment(node)) {
3279
3296
  if (node.data === open) match++;
3280
- if (node.data === close) if (match === 0) return nextSibling(node);
3281
- else match--;
3297
+ if (node.data === close) {
3298
+ if (match === 0) return nextSibling(node);
3299
+ else match--;
3300
+ }
3282
3301
  }
3283
3302
  }
3284
3303
  return node;
@@ -3700,10 +3719,12 @@ var KeepAlive = {
3700
3719
  });
3701
3720
  let pendingCacheKey = null;
3702
3721
  const cacheSubtree = () => {
3703
- if (pendingCacheKey != null) if (isSuspense(instance.subTree.type)) queuePostRenderEffect(() => {
3704
- cache.set(pendingCacheKey, getInnerChild(instance.subTree));
3705
- }, instance.subTree.suspense);
3706
- else cache.set(pendingCacheKey, getInnerChild(instance.subTree));
3722
+ if (pendingCacheKey != null) {
3723
+ if (isSuspense(instance.subTree.type)) queuePostRenderEffect(() => {
3724
+ cache.set(pendingCacheKey, getInnerChild(instance.subTree));
3725
+ }, instance.subTree.suspense);
3726
+ else cache.set(pendingCacheKey, getInnerChild(instance.subTree));
3727
+ }
3707
3728
  };
3708
3729
  onMounted(cacheSubtree);
3709
3730
  onUpdated(cacheSubtree);
@@ -3896,23 +3917,25 @@ function renderList(source, renderItem, cache, index) {
3896
3917
  }
3897
3918
  ret = new Array(source.length);
3898
3919
  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]);
3899
- } else if (typeof source === "number") if (!Number.isInteger(source) || source < 0) {
3900
- warn$1(`The v-for range expects a positive integer value but got ${source}.`);
3901
- ret = [];
3902
- } else {
3903
- ret = new Array(source);
3904
- for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
3905
- }
3906
- else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
3907
- else {
3908
- const keys = Object.keys(source);
3909
- ret = new Array(keys.length);
3910
- for (let i = 0, l = keys.length; i < l; i++) {
3911
- const key = keys[i];
3912
- ret[i] = renderItem(source[key], key, i, cached && cached[i]);
3920
+ } else if (typeof source === "number") {
3921
+ if (!Number.isInteger(source) || source < 0) {
3922
+ warn$1(`The v-for range expects a positive integer value but got ${source}.`);
3923
+ ret = [];
3924
+ } else {
3925
+ ret = new Array(source);
3926
+ for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
3913
3927
  }
3914
- }
3915
- else ret = [];
3928
+ } else if (isObject(source)) {
3929
+ if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
3930
+ else {
3931
+ const keys = Object.keys(source);
3932
+ ret = new Array(keys.length);
3933
+ for (let i = 0, l = keys.length; i < l; i++) {
3934
+ const key = keys[i];
3935
+ ret[i] = renderItem(source[key], key, i, cached && cached[i]);
3936
+ }
3937
+ }
3938
+ } else ret = [];
3916
3939
  if (cache) cache[index] = ret;
3917
3940
  return ret;
3918
3941
  }
@@ -4186,12 +4209,13 @@ function mergeDefaults(raw, defaults) {
4186
4209
  for (const key in defaults) {
4187
4210
  if (key.startsWith("__skip")) continue;
4188
4211
  let opt = props[key];
4189
- if (opt) if (isArray(opt) || isFunction(opt)) opt = props[key] = {
4190
- type: opt,
4191
- default: defaults[key]
4192
- };
4193
- else opt.default = defaults[key];
4194
- else if (opt === null) opt = props[key] = { default: defaults[key] };
4212
+ if (opt) {
4213
+ if (isArray(opt) || isFunction(opt)) opt = props[key] = {
4214
+ type: opt,
4215
+ default: defaults[key]
4216
+ };
4217
+ else opt.default = defaults[key];
4218
+ } else if (opt === null) opt = props[key] = { default: defaults[key] };
4195
4219
  else warn$1(`props default key "${key}" has no corresponding declaration.`);
4196
4220
  if (opt && defaults[`__skip_${key}`]) opt.skipFactory = true;
4197
4221
  }
@@ -4353,9 +4377,10 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
4353
4377
  for (const key in injectOptions) {
4354
4378
  const opt = injectOptions[key];
4355
4379
  let injected;
4356
- if (isObject(opt)) if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
4357
- else injected = inject(opt.from || key);
4358
- else injected = inject(opt);
4380
+ if (isObject(opt)) {
4381
+ if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
4382
+ else injected = inject(opt.from || key);
4383
+ } else injected = inject(opt);
4359
4384
  if (/* @__PURE__ */ isRef(injected)) Object.defineProperty(ctx, key, {
4360
4385
  enumerable: true,
4361
4386
  configurable: true,
@@ -4376,13 +4401,14 @@ function createWatcher(raw, ctx, publicThis, key) {
4376
4401
  if (isFunction(handler)) watch(getter, handler);
4377
4402
  else warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
4378
4403
  } else if (isFunction(raw)) watch(getter, raw.bind(publicThis));
4379
- else if (isObject(raw)) if (isArray(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
4380
- else {
4381
- const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
4382
- if (isFunction(handler)) watch(getter, handler, raw);
4383
- else warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
4384
- }
4385
- else warn$1(`Invalid watch option: "${key}"`, raw);
4404
+ else if (isObject(raw)) {
4405
+ if (isArray(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
4406
+ else {
4407
+ const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
4408
+ if (isFunction(handler)) watch(getter, handler, raw);
4409
+ else warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
4410
+ }
4411
+ } else warn$1(`Invalid watch option: "${key}"`, raw);
4386
4412
  }
4387
4413
  function resolveMergedOptions(instance) {
4388
4414
  const base = instance.type;
@@ -4533,9 +4559,10 @@ function createAppAPI(render, hydrate) {
4533
4559
  return app;
4534
4560
  },
4535
4561
  mixin(mixin) {
4536
- if (__VUE_OPTIONS_API__) if (!context.mixins.includes(mixin)) context.mixins.push(mixin);
4537
- else warn$1("Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : ""));
4538
- else warn$1("Mixins are only available in builds supporting Options API");
4562
+ if (__VUE_OPTIONS_API__) {
4563
+ if (!context.mixins.includes(mixin)) context.mixins.push(mixin);
4564
+ else warn$1("Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : ""));
4565
+ } else warn$1("Mixins are only available in builds supporting Options API");
4539
4566
  return app;
4540
4567
  },
4541
4568
  component(name, component) {
@@ -4590,8 +4617,10 @@ If you want to remount the same app, move your app creation logic into a factory
4590
4617
  } else warn$1(`Cannot unmount an app that is not mounted.`);
4591
4618
  },
4592
4619
  provide(key, value) {
4593
- 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.`);
4594
- else warn$1(`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`);
4620
+ if (key in context.provides) {
4621
+ if (hasOwn(context.provides, key)) warn$1(`App already provides property with key "${String(key)}". It will be overwritten with the new value.`);
4622
+ else warn$1(`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`);
4623
+ }
4595
4624
  context.provides[key] = value;
4596
4625
  return app;
4597
4626
  },
@@ -4674,12 +4703,14 @@ function emit(instance, event, ...rawArgs) {
4674
4703
  const props = instance.vnode.props || EMPTY_OBJ;
4675
4704
  {
4676
4705
  const { emitsOptions, propsOptions: [propsOptions] } = instance;
4677
- if (emitsOptions) if (!(event in emitsOptions) && true) {
4678
- if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) warn$1(`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.`);
4679
- } else {
4680
- const validator = emitsOptions[event];
4681
- if (isFunction(validator)) {
4682
- if (!validator(...rawArgs)) warn$1(`Invalid event arguments: event validation failed for event "${event}".`);
4706
+ if (emitsOptions) {
4707
+ if (!(event in emitsOptions) && true) {
4708
+ if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) warn$1(`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.`);
4709
+ } else {
4710
+ const validator = emitsOptions[event];
4711
+ if (isFunction(validator)) {
4712
+ if (!validator(...rawArgs)) warn$1(`Invalid event arguments: event validation failed for event "${event}".`);
4713
+ }
4683
4714
  }
4684
4715
  }
4685
4716
  }
@@ -4840,10 +4871,12 @@ function filterSingleRoot(children, recurse = true) {
4840
4871
  for (let i = 0; i < children.length; i++) {
4841
4872
  const child = children[i];
4842
4873
  if (isVNode(child)) {
4843
- if (child.type !== Comment || child.children === "v-if") if (singleRoot) return;
4844
- else {
4845
- singleRoot = child;
4846
- if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) return filterSingleRoot(singleRoot.children);
4874
+ if (child.type !== Comment || child.children === "v-if") {
4875
+ if (singleRoot) return;
4876
+ else {
4877
+ singleRoot = child;
4878
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) return filterSingleRoot(singleRoot.children);
4879
+ }
4847
4880
  }
4848
4881
  } else return;
4849
4882
  }
@@ -4953,16 +4986,17 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4953
4986
  let key = propsToUpdate[i];
4954
4987
  if (isEmitListener(instance.emitsOptions, key)) continue;
4955
4988
  const value = rawProps[key];
4956
- if (options) if (hasOwn(attrs, key)) {
4957
- if (value !== attrs[key]) {
4958
- attrs[key] = value;
4959
- hasAttrsChanged = true;
4989
+ if (options) {
4990
+ if (hasOwn(attrs, key)) {
4991
+ if (value !== attrs[key]) {
4992
+ attrs[key] = value;
4993
+ hasAttrsChanged = true;
4994
+ }
4995
+ } else {
4996
+ const camelizedKey = camelize(key);
4997
+ props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false);
4960
4998
  }
4961
- } else {
4962
- const camelizedKey = camelize(key);
4963
- props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false);
4964
- }
4965
- else if (value !== attrs[key]) {
4999
+ } else if (value !== attrs[key]) {
4966
5000
  attrs[key] = value;
4967
5001
  hasAttrsChanged = true;
4968
5002
  }
@@ -4971,9 +5005,11 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4971
5005
  } else {
4972
5006
  if (setFullProps(instance, rawProps, props, attrs)) hasAttrsChanged = true;
4973
5007
  let kebabKey;
4974
- for (const key in rawCurrentProps) if (!rawProps || !hasOwn(rawProps, key) && ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) if (options) {
4975
- if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, rawCurrentProps, key, void 0, instance, true);
4976
- } else delete props[key];
5008
+ for (const key in rawCurrentProps) if (!rawProps || !hasOwn(rawProps, key) && ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) {
5009
+ if (options) {
5010
+ if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, rawCurrentProps, key, void 0, instance, true);
5011
+ } else delete props[key];
5012
+ }
4977
5013
  if (attrs !== rawCurrentProps) {
4978
5014
  for (const key in attrs) if (!rawProps || !hasOwn(rawProps, key) && true) {
4979
5015
  delete attrs[key];
@@ -4992,9 +5028,10 @@ function setFullProps(instance, rawProps, props, attrs) {
4992
5028
  if (isReservedProp(key)) continue;
4993
5029
  const value = rawProps[key];
4994
5030
  let camelKey;
4995
- if (options && hasOwn(options, camelKey = camelize(key))) if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
4996
- else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
4997
- else if (!isEmitListener(instance.emitsOptions, key)) {
5031
+ if (options && hasOwn(options, camelKey = camelize(key))) {
5032
+ if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
5033
+ else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
5034
+ } else if (!isEmitListener(instance.emitsOptions, key)) {
4998
5035
  if (!(key in attrs) || value !== attrs[key]) {
4999
5036
  attrs[key] = value;
5000
5037
  hasAttrsChanged = true;
@@ -5233,12 +5270,13 @@ var updateSlots = (instance, children, optimized) => {
5233
5270
  let deletionComparisonTarget = EMPTY_OBJ;
5234
5271
  if (vnode.shapeFlag & 32) {
5235
5272
  const type = children._;
5236
- if (type) if (isHmrUpdating) {
5237
- assignSlots(slots, children, optimized);
5238
- trigger(instance, "set", "$slots");
5239
- } else if (optimized && type === 1) needDeletionCheck = false;
5240
- else assignSlots(slots, children, optimized);
5241
- else {
5273
+ if (type) {
5274
+ if (isHmrUpdating) {
5275
+ assignSlots(slots, children, optimized);
5276
+ trigger(instance, "set", "$slots");
5277
+ } else if (optimized && type === 1) needDeletionCheck = false;
5278
+ else assignSlots(slots, children, optimized);
5279
+ } else {
5242
5280
  needDeletionCheck = !children.$stable;
5243
5281
  normalizeObjectSlots(children, slots);
5244
5282
  }
@@ -5547,9 +5585,10 @@ function baseCreateRenderer(options, createHydrationFns) {
5547
5585
  };
5548
5586
  const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
5549
5587
  n2.slotScopeIds = slotScopeIds;
5550
- if (n1 == null) if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
5551
- else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
5552
- else updateComponent(n1, n2, optimized);
5588
+ if (n1 == null) {
5589
+ if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
5590
+ else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
5591
+ } else updateComponent(n1, n2, optimized);
5553
5592
  };
5554
5593
  const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => {
5555
5594
  const instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense);
@@ -5574,16 +5613,17 @@ function baseCreateRenderer(options, createHydrationFns) {
5574
5613
  };
5575
5614
  const updateComponent = (n1, n2, optimized) => {
5576
5615
  const instance = n2.component = n1.component;
5577
- if (shouldUpdateComponent(n1, n2, optimized)) if (instance.asyncDep && !instance.asyncResolved) {
5578
- pushWarningContext(n2);
5579
- updateComponentPreRender(instance, n2, optimized);
5580
- popWarningContext();
5581
- return;
5616
+ if (shouldUpdateComponent(n1, n2, optimized)) {
5617
+ if (instance.asyncDep && !instance.asyncResolved) {
5618
+ pushWarningContext(n2);
5619
+ updateComponentPreRender(instance, n2, optimized);
5620
+ popWarningContext();
5621
+ return;
5622
+ } else {
5623
+ instance.next = n2;
5624
+ instance.update();
5625
+ }
5582
5626
  } else {
5583
- instance.next = n2;
5584
- instance.update();
5585
- }
5586
- else {
5587
5627
  n2.el = n1.el;
5588
5628
  instance.vnode = n2;
5589
5629
  }
@@ -5714,9 +5754,10 @@ function baseCreateRenderer(options, createHydrationFns) {
5714
5754
  if (shapeFlag & 8) {
5715
5755
  if (prevShapeFlag & 16) unmountChildren(c1, parentComponent, parentSuspense);
5716
5756
  if (c2 !== c1) hostSetElementText(container, c2);
5717
- } else if (prevShapeFlag & 16) if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
5718
- else unmountChildren(c1, parentComponent, parentSuspense, true);
5719
- else {
5757
+ } else if (prevShapeFlag & 16) {
5758
+ if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
5759
+ else unmountChildren(c1, parentComponent, parentSuspense, true);
5760
+ } else {
5720
5761
  if (prevShapeFlag & 8) hostSetElementText(container, "");
5721
5762
  if (shapeFlag & 16) mountChildren(c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
5722
5763
  }
@@ -5815,8 +5856,10 @@ function baseCreateRenderer(options, createHydrationFns) {
5815
5856
  const anchorVNode = c2[nextIndex + 1];
5816
5857
  const anchor = nextIndex + 1 < l2 ? anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode) : parentAnchor;
5817
5858
  if (newIndexToOldIndexMap[i] === 0) patch(null, nextChild, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
5818
- else if (moved) if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2);
5819
- else j--;
5859
+ else if (moved) {
5860
+ if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2);
5861
+ else j--;
5862
+ }
5820
5863
  }
5821
5864
  }
5822
5865
  };
@@ -5844,31 +5887,33 @@ function baseCreateRenderer(options, createHydrationFns) {
5844
5887
  moveStaticNode(vnode, container, anchor);
5845
5888
  return;
5846
5889
  }
5847
- if (moveType !== 2 && shapeFlag & 1 && transition) if (moveType === 0) if (transition.persisted && !el[leaveCbKey]) hostInsert(el, container, anchor);
5848
- else {
5849
- transition.beforeEnter(el);
5850
- hostInsert(el, container, anchor);
5851
- queuePostRenderEffect(() => transition.enter(el), parentSuspense);
5852
- }
5853
- else {
5854
- const { leave, delayLeave, afterLeave } = transition;
5855
- const remove2 = () => {
5856
- if (vnode.ctx.isUnmounted) hostRemove(el);
5857
- else hostInsert(el, container, anchor);
5858
- };
5859
- const performLeave = () => {
5860
- const wasLeaving = el._isLeaving || !!el[leaveCbKey];
5861
- if (el._isLeaving) el[leaveCbKey](true);
5862
- if (transition.persisted && !wasLeaving) remove2();
5863
- else leave(el, () => {
5864
- remove2();
5865
- afterLeave && afterLeave();
5866
- });
5867
- };
5868
- if (delayLeave) delayLeave(el, remove2, performLeave);
5869
- else performLeave();
5870
- }
5871
- else hostInsert(el, container, anchor);
5890
+ if (moveType !== 2 && shapeFlag & 1 && transition) {
5891
+ if (moveType === 0) {
5892
+ if (transition.persisted && !el[leaveCbKey]) hostInsert(el, container, anchor);
5893
+ else {
5894
+ transition.beforeEnter(el);
5895
+ hostInsert(el, container, anchor);
5896
+ queuePostRenderEffect(() => transition.enter(el), parentSuspense);
5897
+ }
5898
+ } else {
5899
+ const { leave, delayLeave, afterLeave } = transition;
5900
+ const remove2 = () => {
5901
+ if (vnode.ctx.isUnmounted) hostRemove(el);
5902
+ else hostInsert(el, container, anchor);
5903
+ };
5904
+ const performLeave = () => {
5905
+ const wasLeaving = el._isLeaving || !!el[leaveCbKey];
5906
+ if (el._isLeaving) el[leaveCbKey](true);
5907
+ if (transition.persisted && !wasLeaving) remove2();
5908
+ else leave(el, () => {
5909
+ remove2();
5910
+ afterLeave && afterLeave();
5911
+ });
5912
+ };
5913
+ if (delayLeave) delayLeave(el, remove2, performLeave);
5914
+ else performLeave();
5915
+ }
5916
+ } else hostInsert(el, container, anchor);
5872
5917
  };
5873
5918
  const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
5874
5919
  const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
@@ -6078,8 +6123,10 @@ function getSequence(arr) {
6078
6123
  }
6079
6124
  function locateNonHydratedAsyncRoot(instance) {
6080
6125
  const subComponent = instance.subTree.component;
6081
- if (subComponent) if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
6082
- else return locateNonHydratedAsyncRoot(subComponent);
6126
+ if (subComponent) {
6127
+ if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
6128
+ else return locateNonHydratedAsyncRoot(subComponent);
6129
+ }
6083
6130
  }
6084
6131
  function invalidateMount(hooks) {
6085
6132
  if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 8;
@@ -6369,9 +6416,10 @@ function normalizeSuspenseSlot(s) {
6369
6416
  return s;
6370
6417
  }
6371
6418
  function queueEffectWithSuspense(fn, suspense) {
6372
- if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
6373
- else suspense.effects.push(fn);
6374
- else queuePostFlushCb(fn);
6419
+ if (suspense && suspense.pendingBranch) {
6420
+ if (isArray(fn)) suspense.effects.push(...fn);
6421
+ else suspense.effects.push(fn);
6422
+ } else queuePostFlushCb(fn);
6375
6423
  }
6376
6424
  function setActiveBranch(suspense, branch) {
6377
6425
  suspense.activeBranch = branch;
@@ -6499,8 +6547,10 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
6499
6547
  if (isVNode(type)) {
6500
6548
  const cloned = cloneVNode(type, props, true);
6501
6549
  if (children) normalizeChildren(cloned, children);
6502
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
6503
- else currentBlock.push(cloned);
6550
+ if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) {
6551
+ if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
6552
+ else currentBlock.push(cloned);
6553
+ }
6504
6554
  cloned.patchFlag = -2;
6505
6555
  return cloned;
6506
6556
  }
@@ -6593,25 +6643,28 @@ function normalizeChildren(vnode, children) {
6593
6643
  const { shapeFlag } = vnode;
6594
6644
  if (children == null) children = null;
6595
6645
  else if (isArray(children)) type = 16;
6596
- else if (typeof children === "object") if (shapeFlag & 65) {
6597
- const slot = children.default;
6598
- if (slot) {
6599
- slot._c && (slot._d = false);
6600
- normalizeChildren(vnode, slot());
6601
- slot._c && (slot._d = true);
6602
- }
6603
- return;
6604
- } else {
6605
- type = 32;
6606
- const slotFlag = children._;
6607
- if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
6608
- else if (slotFlag === 3 && currentRenderingInstance) if (currentRenderingInstance.slots._ === 1) children._ = 1;
6609
- else {
6610
- children._ = 2;
6611
- vnode.patchFlag |= 1024;
6646
+ else if (typeof children === "object") {
6647
+ if (shapeFlag & 65) {
6648
+ const slot = children.default;
6649
+ if (slot) {
6650
+ slot._c && (slot._d = false);
6651
+ normalizeChildren(vnode, slot());
6652
+ slot._c && (slot._d = true);
6653
+ }
6654
+ return;
6655
+ } else {
6656
+ type = 32;
6657
+ const slotFlag = children._;
6658
+ if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
6659
+ else if (slotFlag === 3 && currentRenderingInstance) {
6660
+ if (currentRenderingInstance.slots._ === 1) children._ = 1;
6661
+ else {
6662
+ children._ = 2;
6663
+ vnode.patchFlag |= 1024;
6664
+ }
6665
+ }
6612
6666
  }
6613
- }
6614
- else if (isFunction(children)) {
6667
+ } else if (isFunction(children)) {
6615
6668
  if (shapeFlag & 65) {
6616
6669
  normalizeChildren(vnode, { default: children });
6617
6670
  return;
@@ -6814,9 +6867,10 @@ function setupStatefulComponent(instance, isSSR) {
6814
6867
  } else finishComponentSetup(instance, isSSR);
6815
6868
  }
6816
6869
  function handleSetupResult(instance, setupResult, isSSR) {
6817
- if (isFunction(setupResult)) if (instance.type.__ssrInlineRender) instance.ssrRender = setupResult;
6818
- else instance.render = setupResult;
6819
- else if (isObject(setupResult)) {
6870
+ if (isFunction(setupResult)) {
6871
+ if (instance.type.__ssrInlineRender) instance.ssrRender = setupResult;
6872
+ else instance.render = setupResult;
6873
+ } else if (isObject(setupResult)) {
6820
6874
  if (isVNode(setupResult)) warn$1(`setup() should not return VNodes directly - return a render function instead.`);
6821
6875
  instance.devtoolsRawSetupState = setupResult;
6822
6876
  instance.setupState = proxyRefs(setupResult);
@@ -6863,8 +6917,10 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
6863
6917
  reset();
6864
6918
  }
6865
6919
  }
6866
- if (!Component.render && instance.render === NOOP && !isSSR) if (!compile$1 && Component.template) warn$1("Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".");
6867
- else warn$1(`Component is missing template or render function: `, Component);
6920
+ if (!Component.render && instance.render === NOOP && !isSSR) {
6921
+ if (!compile$1 && Component.template) warn$1("Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".");
6922
+ else warn$1(`Component is missing template or render function: `, Component);
6923
+ }
6868
6924
  }
6869
6925
  var attrsProxyHandlers = {
6870
6926
  get(target, key) {
@@ -6963,11 +7019,12 @@ function h(type, propsOrChildren, children) {
6963
7019
  try {
6964
7020
  setBlockTracking(-1);
6965
7021
  const l = arguments.length;
6966
- if (l === 2) if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
6967
- if (isVNode(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
6968
- return createVNode(type, propsOrChildren);
6969
- } else return createVNode(type, null, propsOrChildren);
6970
- else {
7022
+ if (l === 2) {
7023
+ if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
7024
+ if (isVNode(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
7025
+ return createVNode(type, propsOrChildren);
7026
+ } else return createVNode(type, null, propsOrChildren);
7027
+ } else {
6971
7028
  if (l > 3) children = Array.prototype.slice.call(arguments, 2);
6972
7029
  else if (l === 3 && isVNode(children)) children = [children];
6973
7030
  return createVNode(type, propsOrChildren, children);
@@ -7479,14 +7536,15 @@ var vShow = {
7479
7536
  },
7480
7537
  updated(el, { value, oldValue }, { transition }) {
7481
7538
  if (!value === !oldValue) return;
7482
- if (transition) if (value) {
7483
- transition.beforeEnter(el);
7484
- setDisplay(el, true);
7485
- transition.enter(el);
7486
- } else transition.leave(el, () => {
7487
- setDisplay(el, false);
7488
- });
7489
- else setDisplay(el, value);
7539
+ if (transition) {
7540
+ if (value) {
7541
+ transition.beforeEnter(el);
7542
+ setDisplay(el, true);
7543
+ transition.enter(el);
7544
+ } else transition.leave(el, () => {
7545
+ setDisplay(el, false);
7546
+ });
7547
+ } else setDisplay(el, value);
7490
7548
  },
7491
7549
  beforeUnmount(el, { value }) {
7492
7550
  setDisplay(el, value);
@@ -7566,11 +7624,13 @@ function patchStyle(el, prev, next) {
7566
7624
  const isCssString = isString(next);
7567
7625
  let hasControlledDisplay = false;
7568
7626
  if (next && !isCssString) {
7569
- if (prev) if (!isString(prev)) {
7570
- for (const key in prev) if (next[key] == null) setStyle(style, key, "");
7571
- } else for (const prevStyle of prev.split(";")) {
7572
- const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
7573
- if (next[key] == null) setStyle(style, key, "");
7627
+ if (prev) {
7628
+ if (!isString(prev)) {
7629
+ for (const key in prev) if (next[key] == null) setStyle(style, key, "");
7630
+ } else for (const prevStyle of prev.split(";")) {
7631
+ const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
7632
+ if (next[key] == null) setStyle(style, key, "");
7633
+ }
7574
7634
  }
7575
7635
  for (const key in next) {
7576
7636
  if (key === "display") hasControlledDisplay = true;
@@ -7630,9 +7690,10 @@ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
7630
7690
  }
7631
7691
  var xlinkNS = "http://www.w3.org/1999/xlink";
7632
7692
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
7633
- if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
7634
- else el.setAttributeNS(xlinkNS, key, value);
7635
- else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
7693
+ if (isSVG && key.startsWith("xlink:")) {
7694
+ if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
7695
+ else el.setAttributeNS(xlinkNS, key, value);
7696
+ } else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
7636
7697
  else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value);
7637
7698
  }
7638
7699
  function patchDOMProp(el, key, value, parentComponent, attrName) {
@@ -7836,12 +7897,14 @@ var VueElement = class VueElement extends BaseClass {
7836
7897
  this._parent = parent;
7837
7898
  break;
7838
7899
  }
7839
- if (!this._instance) if (this._resolved) this._mount(this._def);
7840
- else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => {
7841
- this._pendingResolve = void 0;
7842
- this._resolveDef();
7843
- });
7844
- else this._resolveDef();
7900
+ if (!this._instance) {
7901
+ if (this._resolved) this._mount(this._def);
7902
+ else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => {
7903
+ this._pendingResolve = void 0;
7904
+ this._resolveDef();
7905
+ });
7906
+ else this._resolveDef();
7907
+ }
7845
7908
  }
7846
7909
  _setParent(parent = this._parent) {
7847
7910
  if (parent) {
@@ -8437,12 +8500,13 @@ function setSelected(el, value) {
8437
8500
  for (let i = 0, l = el.options.length; i < l; i++) {
8438
8501
  const option = el.options[i];
8439
8502
  const optionValue = getValue(option);
8440
- if (isMultiple) if (isArrayValue) {
8441
- const optionType = typeof optionValue;
8442
- if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
8443
- else option.selected = looseIndexOf(value, optionValue) > -1;
8444
- } else option.selected = value.has(optionValue);
8445
- else if (looseEqual(getValue(option), value)) {
8503
+ if (isMultiple) {
8504
+ if (isArrayValue) {
8505
+ const optionType = typeof optionValue;
8506
+ if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
8507
+ else option.selected = looseIndexOf(value, optionValue) > -1;
8508
+ } else option.selected = value.has(optionValue);
8509
+ } else if (looseEqual(getValue(option), value)) {
8446
8510
  if (el.selectedIndex !== i) el.selectedIndex = i;
8447
8511
  return;
8448
8512
  }