@vitejs/devtools 0.0.0-alpha.32 → 0.0.0-alpha.34
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.
- package/dist/{DockIcon-DC06YRV1.js → DockIcon-LqhTiyo7.js} +11 -14
- package/dist/DockStandalone-D15T7P8h.js +82 -0
- package/dist/FloatingElements-DiZY-fXn.js +988 -0
- package/dist/{ViewBuiltinLogs-BpU8wNYx.js → ViewBuiltinLogs-DAC3EpNy.js} +3 -5
- package/dist/{ViewBuiltinTerminals-1w0Jz6t0.js → ViewBuiltinTerminals-CaCzY10v.js} +5 -11
- package/dist/cli-commands-B8AbW52w.js +178 -0
- package/dist/cli-commands.js +3 -67
- package/dist/cli.js +3 -5
- package/dist/client/inject.js +40 -19
- package/dist/client/standalone/assets/DockStandalone-Be2ebLC6.js +8 -0
- package/dist/client/standalone/assets/ViewBuiltinLogs-gqCacjSC.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-BfkQ4Bsj.js → ViewBuiltinTerminals-EMrVQ_he.js} +2 -2
- package/dist/client/standalone/assets/_plugin-vue_export-helper-DdUndd8v.js +1 -0
- package/dist/client/standalone/assets/index-CkMgpkZF.css +1 -0
- package/dist/client/standalone/assets/index-xigFHEkA.js +4 -0
- package/dist/client/standalone/index.html +3 -2
- package/dist/client/webcomponents.d.ts +20329 -145
- package/dist/client/webcomponents.js +79 -985
- package/dist/config.js +2 -8
- package/dist/dirs.js +1 -3
- package/dist/{dist-B1eLoAag.js → dist-CnHQWaMb.js} +11 -50
- package/dist/{export-helper-DjM8b2QE.js → export-helper-DOmNQzh6.js} +1 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -3
- package/dist/plugins-tIIgS7bh.js +1911 -0
- package/dist/popup-CqYAUdYG.js +366 -0
- package/dist/utils--qjmgani.js +6 -0
- package/dist/{vue.runtime.esm-bundler-CHmRsJSH.js → vue.runtime.esm-bundler-Bou7Nbd4.js} +135 -115
- package/package.json +34 -16
- package/dist/client/standalone/assets/ViewBuiltinLogs-D_1j1vpl.js +0 -1
- package/dist/client/standalone/assets/index-DWcF5wcd.js +0 -2
- package/dist/client/standalone/assets/index-DzhHPm4X.css +0 -1
- package/dist/docks-BVWse3rL.js +0 -131
- package/dist/plugins-CM-4geJK.js +0 -3040
- package/dist/standalone-CfUW6ZhV.js +0 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.30/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
2
2
|
/**
|
|
3
|
-
* @vue/shared v3.5.
|
|
3
|
+
* @vue/shared v3.5.30
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
@@ -129,7 +129,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
129
129
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
130
130
|
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
131
131
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
132
|
-
|
|
132
|
+
specialBooleanAttrs + "";
|
|
133
133
|
function includeBooleanAttr(value) {
|
|
134
134
|
return !!value || value === "";
|
|
135
135
|
}
|
|
@@ -184,11 +184,10 @@ const stringifySymbol = (v, i = "") => {
|
|
|
184
184
|
var _a;
|
|
185
185
|
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
186
186
|
};
|
|
187
|
-
|
|
188
187
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.
|
|
188
|
+
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
190
189
|
/**
|
|
191
|
-
* @vue/reactivity v3.5.
|
|
190
|
+
* @vue/reactivity v3.5.30
|
|
192
191
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
193
192
|
* @license MIT
|
|
194
193
|
**/
|
|
@@ -867,16 +866,25 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
867
866
|
}
|
|
868
867
|
function reduce(self, method, fn, args) {
|
|
869
868
|
const arr = shallowReadArray(self);
|
|
869
|
+
const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
|
|
870
870
|
let wrappedFn = fn;
|
|
871
|
+
let wrapInitialAccumulator = false;
|
|
871
872
|
if (arr !== self) {
|
|
872
|
-
if (
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
873
|
+
if (needsWrap) {
|
|
874
|
+
wrapInitialAccumulator = args.length === 0;
|
|
875
|
+
wrappedFn = function(acc, item, index) {
|
|
876
|
+
if (wrapInitialAccumulator) {
|
|
877
|
+
wrapInitialAccumulator = false;
|
|
878
|
+
acc = toWrapped(self, acc);
|
|
879
|
+
}
|
|
880
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
881
|
+
};
|
|
882
|
+
} else if (fn.length > 3) wrappedFn = function(acc, item, index) {
|
|
876
883
|
return fn.call(this, acc, item, index, self);
|
|
877
884
|
};
|
|
878
885
|
}
|
|
879
|
-
|
|
886
|
+
const result = arr[method](wrappedFn, ...args);
|
|
887
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
880
888
|
}
|
|
881
889
|
function searchProxy(self, method, args) {
|
|
882
890
|
const arr = /* @__PURE__ */ toRaw(self);
|
|
@@ -1082,11 +1090,13 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1082
1090
|
clear: createReadonlyMethod("clear")
|
|
1083
1091
|
} : {
|
|
1084
1092
|
add(value) {
|
|
1085
|
-
if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
|
|
1086
1093
|
const target = /* @__PURE__ */ toRaw(this);
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1094
|
+
const proto = getProto(target);
|
|
1095
|
+
const rawValue = /* @__PURE__ */ toRaw(value);
|
|
1096
|
+
const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
|
|
1097
|
+
if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
|
|
1098
|
+
target.add(valueToAdd);
|
|
1099
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1090
1100
|
}
|
|
1091
1101
|
return this;
|
|
1092
1102
|
},
|
|
@@ -1612,11 +1622,10 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
1612
1622
|
}
|
|
1613
1623
|
return value;
|
|
1614
1624
|
}
|
|
1615
|
-
|
|
1616
1625
|
//#endregion
|
|
1617
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
1626
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
1618
1627
|
/**
|
|
1619
|
-
* @vue/runtime-core v3.5.
|
|
1628
|
+
* @vue/runtime-core v3.5.30
|
|
1620
1629
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1621
1630
|
* @license MIT
|
|
1622
1631
|
**/
|
|
@@ -1702,8 +1711,8 @@ function formatProp(key, value, raw) {
|
|
|
1702
1711
|
value = JSON.stringify(value);
|
|
1703
1712
|
return raw ? value : [`${key}=${value}`];
|
|
1704
1713
|
} else if (typeof value === "number" || typeof value === "boolean" || value == null) return raw ? value : [`${key}=${value}`];
|
|
1705
|
-
else if (isRef(value)) {
|
|
1706
|
-
value = formatProp(key, toRaw(value.value), true);
|
|
1714
|
+
else if (/* @__PURE__ */ isRef(value)) {
|
|
1715
|
+
value = formatProp(key, /* @__PURE__ */ toRaw(value.value), true);
|
|
1707
1716
|
return raw ? value : [
|
|
1708
1717
|
`${key}=Ref<`,
|
|
1709
1718
|
value,
|
|
@@ -1711,7 +1720,7 @@ function formatProp(key, value, raw) {
|
|
|
1711
1720
|
];
|
|
1712
1721
|
} else if (isFunction(value)) return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
|
|
1713
1722
|
else {
|
|
1714
|
-
value = toRaw(value);
|
|
1723
|
+
value = /* @__PURE__ */ toRaw(value);
|
|
1715
1724
|
return raw ? value : [`${key}=`, value];
|
|
1716
1725
|
}
|
|
1717
1726
|
}
|
|
@@ -2315,7 +2324,7 @@ function markAsyncBoundary(instance) {
|
|
|
2315
2324
|
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
2316
2325
|
function useTemplateRef(key) {
|
|
2317
2326
|
const i = getCurrentInstance();
|
|
2318
|
-
const r = shallowRef(null);
|
|
2327
|
+
const r = /* @__PURE__ */ shallowRef(null);
|
|
2319
2328
|
if (i) {
|
|
2320
2329
|
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
2321
2330
|
if (!!(process.env.NODE_ENV !== "production") && isTemplateRefKey(refs, key)) warn$1(`useTemplateRef('${key}') already exists.`);
|
|
@@ -2325,7 +2334,7 @@ function useTemplateRef(key) {
|
|
|
2325
2334
|
set: (val) => r.value = val
|
|
2326
2335
|
});
|
|
2327
2336
|
} else if (!!(process.env.NODE_ENV !== "production")) warn$1(`useTemplateRef() is called when there is no active component instance to be associated with.`);
|
|
2328
|
-
const ret = !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
|
|
2337
|
+
const ret = !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ readonly(r) : r;
|
|
2329
2338
|
if (!!(process.env.NODE_ENV !== "production")) knownTemplateRefs.add(ret);
|
|
2330
2339
|
return ret;
|
|
2331
2340
|
}
|
|
@@ -2353,10 +2362,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2353
2362
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
2354
2363
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
2355
2364
|
const setupState = owner.setupState;
|
|
2356
|
-
const rawSetupState = toRaw(setupState);
|
|
2365
|
+
const rawSetupState = /* @__PURE__ */ toRaw(setupState);
|
|
2357
2366
|
const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
|
|
2358
2367
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2359
|
-
if (hasOwn(rawSetupState, key) &&
|
|
2368
|
+
if (hasOwn(rawSetupState, key) && !/* @__PURE__ */ isRef(rawSetupState[key])) warn$1(`Template ref "${key}" used on a non-ref value. It will not work in the production build.`);
|
|
2360
2369
|
if (knownTemplateRefs.has(rawSetupState[key])) return false;
|
|
2361
2370
|
}
|
|
2362
2371
|
if (isTemplateRefKey(refs, key)) return false;
|
|
@@ -2372,7 +2381,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2372
2381
|
if (isString(oldRef)) {
|
|
2373
2382
|
refs[oldRef] = null;
|
|
2374
2383
|
if (canSetSetupRef(oldRef)) setupState[oldRef] = null;
|
|
2375
|
-
} else if (isRef(oldRef)) {
|
|
2384
|
+
} else if (/* @__PURE__ */ isRef(oldRef)) {
|
|
2376
2385
|
const oldRawRefAtom = oldRawRef;
|
|
2377
2386
|
if (canSetRef(oldRef, oldRawRefAtom.k)) oldRef.value = null;
|
|
2378
2387
|
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
@@ -2381,7 +2390,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2381
2390
|
if (isFunction(ref)) callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
2382
2391
|
else {
|
|
2383
2392
|
const _isString = isString(ref);
|
|
2384
|
-
const _isRef = isRef(ref);
|
|
2393
|
+
const _isRef = /* @__PURE__ */ isRef(ref);
|
|
2385
2394
|
if (_isString || _isRef) {
|
|
2386
2395
|
const doSet = () => {
|
|
2387
2396
|
if (rawRef.f) {
|
|
@@ -2427,8 +2436,8 @@ function invalidatePendingSetRef(rawRef) {
|
|
|
2427
2436
|
}
|
|
2428
2437
|
}
|
|
2429
2438
|
const isComment = (node) => node.nodeType === 8;
|
|
2430
|
-
|
|
2431
|
-
|
|
2439
|
+
getGlobalThis().requestIdleCallback;
|
|
2440
|
+
getGlobalThis().cancelIdleCallback;
|
|
2432
2441
|
function forEachElement(node, cb) {
|
|
2433
2442
|
if (isComment(node) && node.data === "[") {
|
|
2434
2443
|
let depth = 1;
|
|
@@ -2514,9 +2523,9 @@ function defineAsyncComponent(source) {
|
|
|
2514
2523
|
onError(err);
|
|
2515
2524
|
return () => errorComponent ? createVNode(errorComponent, { error: err }) : null;
|
|
2516
2525
|
});
|
|
2517
|
-
const loaded = ref(false);
|
|
2518
|
-
const error = ref();
|
|
2519
|
-
const delayed = ref(!!delay);
|
|
2526
|
+
const loaded = /* @__PURE__ */ ref(false);
|
|
2527
|
+
const error = /* @__PURE__ */ ref();
|
|
2528
|
+
const delayed = /* @__PURE__ */ ref(!!delay);
|
|
2520
2529
|
if (delay) setTimeout(() => {
|
|
2521
2530
|
delayed.value = false;
|
|
2522
2531
|
}, delay);
|
|
@@ -2618,21 +2627,24 @@ function renderList(source, renderItem, cache, index) {
|
|
|
2618
2627
|
const cached = cache && cache[index];
|
|
2619
2628
|
const sourceIsArray = isArray(source);
|
|
2620
2629
|
if (sourceIsArray || isString(source)) {
|
|
2621
|
-
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
2630
|
+
const sourceIsReactiveArray = sourceIsArray && /* @__PURE__ */ isReactive(source);
|
|
2622
2631
|
let needsWrap = false;
|
|
2623
2632
|
let isReadonlySource = false;
|
|
2624
2633
|
if (sourceIsReactiveArray) {
|
|
2625
|
-
needsWrap =
|
|
2626
|
-
isReadonlySource = isReadonly(source);
|
|
2634
|
+
needsWrap = !/* @__PURE__ */ isShallow(source);
|
|
2635
|
+
isReadonlySource = /* @__PURE__ */ isReadonly(source);
|
|
2627
2636
|
source = shallowReadArray(source);
|
|
2628
2637
|
}
|
|
2629
2638
|
ret = new Array(source.length);
|
|
2630
2639
|
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]);
|
|
2631
|
-
} else if (typeof source === "number") {
|
|
2632
|
-
|
|
2640
|
+
} else if (typeof source === "number") if (!!(process.env.NODE_ENV !== "production") && (!Number.isInteger(source) || source < 0)) {
|
|
2641
|
+
warn$1(`The v-for range expects a positive integer value but got ${source}.`);
|
|
2642
|
+
ret = [];
|
|
2643
|
+
} else {
|
|
2633
2644
|
ret = new Array(source);
|
|
2634
2645
|
for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
2635
|
-
}
|
|
2646
|
+
}
|
|
2647
|
+
else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
|
|
2636
2648
|
else {
|
|
2637
2649
|
const keys = Object.keys(source);
|
|
2638
2650
|
ret = new Array(keys.length);
|
|
@@ -2682,10 +2694,10 @@ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create
|
|
|
2682
2694
|
$: (i) => i,
|
|
2683
2695
|
$el: (i) => i.vnode.el,
|
|
2684
2696
|
$data: (i) => i.data,
|
|
2685
|
-
$props: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.props) : i.props,
|
|
2686
|
-
$attrs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.attrs) : i.attrs,
|
|
2687
|
-
$slots: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots,
|
|
2688
|
-
$refs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.refs) : i.refs,
|
|
2697
|
+
$props: (i) => !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(i.props) : i.props,
|
|
2698
|
+
$attrs: (i) => !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(i.attrs) : i.attrs,
|
|
2699
|
+
$slots: (i) => !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(i.slots) : i.slots,
|
|
2700
|
+
$refs: (i) => !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(i.refs) : i.refs,
|
|
2689
2701
|
$parent: (i) => getPublicInstance(i.parent),
|
|
2690
2702
|
$root: (i) => getPublicInstance(i.root),
|
|
2691
2703
|
$host: (i) => i.ce,
|
|
@@ -2814,7 +2826,7 @@ function exposePropsOnRenderContext(instance) {
|
|
|
2814
2826
|
}
|
|
2815
2827
|
function exposeSetupStateOnRenderContext(instance) {
|
|
2816
2828
|
const { ctx, setupState } = instance;
|
|
2817
|
-
Object.keys(toRaw(setupState)).forEach((key) => {
|
|
2829
|
+
Object.keys(/* @__PURE__ */ toRaw(setupState)).forEach((key) => {
|
|
2818
2830
|
if (!setupState.__isScriptSetup) {
|
|
2819
2831
|
if (isReservedPrefix(key[0])) {
|
|
2820
2832
|
warn$1(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);
|
|
@@ -2872,7 +2884,7 @@ function applyOptions(instance) {
|
|
|
2872
2884
|
if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) warn$1(`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`);
|
|
2873
2885
|
if (!isObject(data)) process.env.NODE_ENV !== "production" && warn$1(`data() should return an object.`);
|
|
2874
2886
|
else {
|
|
2875
|
-
instance.data = reactive(data);
|
|
2887
|
+
instance.data = /* @__PURE__ */ reactive(data);
|
|
2876
2888
|
if (!!(process.env.NODE_ENV !== "production")) for (const key in data) {
|
|
2877
2889
|
checkDuplicateProperties("Data", key);
|
|
2878
2890
|
if (!isReservedPrefix(key[0])) Object.defineProperty(ctx, key, {
|
|
@@ -2953,7 +2965,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
|
|
|
2953
2965
|
if (isObject(opt)) if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
|
|
2954
2966
|
else injected = inject(opt.from || key);
|
|
2955
2967
|
else injected = inject(opt);
|
|
2956
|
-
if (isRef(injected)) Object.defineProperty(ctx, key, {
|
|
2968
|
+
if (/* @__PURE__ */ isRef(injected)) Object.defineProperty(ctx, key, {
|
|
2957
2969
|
enumerable: true,
|
|
2958
2970
|
configurable: true,
|
|
2959
2971
|
get: () => injected.value,
|
|
@@ -3303,15 +3315,15 @@ function renderComponentRoot(instance) {
|
|
|
3303
3315
|
warn$1(`Property '${String(key)}' was accessed via 'this'. Avoid using 'this' in templates.`);
|
|
3304
3316
|
return Reflect.get(target, key, receiver);
|
|
3305
3317
|
} }) : proxyToUse;
|
|
3306
|
-
result = normalizeVNode(render.call(thisProxy, proxyToUse, renderCache, !!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props, setupState, data, ctx));
|
|
3318
|
+
result = normalizeVNode(render.call(thisProxy, proxyToUse, renderCache, !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(props) : props, setupState, data, ctx));
|
|
3307
3319
|
fallthroughAttrs = attrs;
|
|
3308
3320
|
} else {
|
|
3309
3321
|
const render2 = Component;
|
|
3310
3322
|
if (!!(process.env.NODE_ENV !== "production") && attrs === props) markAttrsAccessed();
|
|
3311
|
-
result = normalizeVNode(render2.length > 1 ? render2(!!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props, !!(process.env.NODE_ENV !== "production") ? {
|
|
3323
|
+
result = normalizeVNode(render2.length > 1 ? render2(!!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(props) : props, !!(process.env.NODE_ENV !== "production") ? {
|
|
3312
3324
|
get attrs() {
|
|
3313
3325
|
markAttrsAccessed();
|
|
3314
|
-
return shallowReadonly(attrs);
|
|
3326
|
+
return /* @__PURE__ */ shallowReadonly(attrs);
|
|
3315
3327
|
},
|
|
3316
3328
|
slots,
|
|
3317
3329
|
emit
|
|
@@ -3319,7 +3331,7 @@ function renderComponentRoot(instance) {
|
|
|
3319
3331
|
attrs,
|
|
3320
3332
|
slots,
|
|
3321
3333
|
emit
|
|
3322
|
-
}) : render2(!!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props, null));
|
|
3334
|
+
}) : render2(!!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(props) : props, null));
|
|
3323
3335
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
3324
3336
|
}
|
|
3325
3337
|
} catch (err) {
|
|
@@ -3474,7 +3486,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
|
3474
3486
|
setFullProps(instance, rawProps, props, attrs);
|
|
3475
3487
|
for (const key in instance.propsOptions[0]) if (!(key in props)) props[key] = void 0;
|
|
3476
3488
|
if (!!(process.env.NODE_ENV !== "production")) validateProps(rawProps || {}, props, instance);
|
|
3477
|
-
if (isStateful) instance.props = isSSR ? props : shallowReactive(props);
|
|
3489
|
+
if (isStateful) instance.props = isSSR ? props : /* @__PURE__ */ shallowReactive(props);
|
|
3478
3490
|
else if (!instance.type.props) instance.props = attrs;
|
|
3479
3491
|
else instance.props = props;
|
|
3480
3492
|
instance.attrs = attrs;
|
|
@@ -3487,7 +3499,7 @@ function isInHmrContext(instance) {
|
|
|
3487
3499
|
}
|
|
3488
3500
|
function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
3489
3501
|
const { props, attrs, vnode: { patchFlag } } = instance;
|
|
3490
|
-
const rawCurrentProps = toRaw(props);
|
|
3502
|
+
const rawCurrentProps = /* @__PURE__ */ toRaw(props);
|
|
3491
3503
|
const [options] = instance.propsOptions;
|
|
3492
3504
|
let hasAttrsChanged = false;
|
|
3493
3505
|
if (!(!!(process.env.NODE_ENV !== "production") && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)) {
|
|
@@ -3546,7 +3558,7 @@ function setFullProps(instance, rawProps, props, attrs) {
|
|
|
3546
3558
|
}
|
|
3547
3559
|
}
|
|
3548
3560
|
if (needCastKeys) {
|
|
3549
|
-
const rawCurrentProps = toRaw(props);
|
|
3561
|
+
const rawCurrentProps = /* @__PURE__ */ toRaw(props);
|
|
3550
3562
|
const castValues = rawCastValues || EMPTY_OBJ;
|
|
3551
3563
|
for (let i = 0; i < needCastKeys.length; i++) {
|
|
3552
3564
|
const key = needCastKeys[i];
|
|
@@ -3649,13 +3661,13 @@ function getType(ctor) {
|
|
|
3649
3661
|
return "";
|
|
3650
3662
|
}
|
|
3651
3663
|
function validateProps(rawProps, props, instance) {
|
|
3652
|
-
const resolvedValues = toRaw(props);
|
|
3664
|
+
const resolvedValues = /* @__PURE__ */ toRaw(props);
|
|
3653
3665
|
const options = instance.propsOptions[0];
|
|
3654
3666
|
const camelizePropsKey = Object.keys(rawProps).map((key) => camelize(key));
|
|
3655
3667
|
for (const key in options) {
|
|
3656
3668
|
let opt = options[key];
|
|
3657
3669
|
if (opt == null) continue;
|
|
3658
|
-
validateProp(key, resolvedValues[key], opt, !!(process.env.NODE_ENV !== "production") ? shallowReadonly(resolvedValues) : resolvedValues, !camelizePropsKey.includes(key));
|
|
3670
|
+
validateProp(key, resolvedValues[key], opt, !!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(resolvedValues) : resolvedValues, !camelizePropsKey.includes(key));
|
|
3659
3671
|
}
|
|
3660
3672
|
}
|
|
3661
3673
|
function validateProp(name, value, prop, props, isAbsent) {
|
|
@@ -4142,7 +4154,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4142
4154
|
if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
|
|
4143
4155
|
else hydrateSubTree();
|
|
4144
4156
|
} else {
|
|
4145
|
-
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
|
|
4157
|
+
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type, instance.parent ? instance.parent.type : void 0);
|
|
4146
4158
|
if (!!(process.env.NODE_ENV !== "production")) startMeasure(instance, `render`);
|
|
4147
4159
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
4148
4160
|
if (!!(process.env.NODE_ENV !== "production")) endMeasure(instance, `render`);
|
|
@@ -4953,14 +4965,13 @@ function isSameVNodeType(n1, n2) {
|
|
|
4953
4965
|
}
|
|
4954
4966
|
return n1.type === n2.type && n1.key === n2.key;
|
|
4955
4967
|
}
|
|
4956
|
-
let vnodeArgsTransformer;
|
|
4957
4968
|
const createVNodeWithArgsTransform = (...args) => {
|
|
4958
|
-
return _createVNode(...
|
|
4969
|
+
return _createVNode(...args);
|
|
4959
4970
|
};
|
|
4960
4971
|
const normalizeKey = ({ key }) => key != null ? key : null;
|
|
4961
4972
|
const normalizeRef = ({ ref, ref_key, ref_for }) => {
|
|
4962
4973
|
if (typeof ref === "number") ref = "" + ref;
|
|
4963
|
-
return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? {
|
|
4974
|
+
return ref != null ? isString(ref) || /* @__PURE__ */ isRef(ref) || isFunction(ref) ? {
|
|
4964
4975
|
i: currentRenderingInstance,
|
|
4965
4976
|
r: ref,
|
|
4966
4977
|
k: ref_key,
|
|
@@ -5025,13 +5036,13 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
5025
5036
|
let { class: klass, style } = props;
|
|
5026
5037
|
if (klass && !isString(klass)) props.class = normalizeClass(klass);
|
|
5027
5038
|
if (isObject(style)) {
|
|
5028
|
-
if (isProxy(style) && !isArray(style)) style = extend({}, style);
|
|
5039
|
+
if (/* @__PURE__ */ isProxy(style) && !isArray(style)) style = extend({}, style);
|
|
5029
5040
|
props.style = normalizeStyle(style);
|
|
5030
5041
|
}
|
|
5031
5042
|
}
|
|
5032
5043
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
5033
|
-
if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
|
|
5034
|
-
type = toRaw(type);
|
|
5044
|
+
if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && /* @__PURE__ */ isProxy(type)) {
|
|
5045
|
+
type = /* @__PURE__ */ toRaw(type);
|
|
5035
5046
|
warn$1(`Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`, `
|
|
5036
5047
|
Component that was made reactive: `, type);
|
|
5037
5048
|
}
|
|
@@ -5039,7 +5050,7 @@ Component that was made reactive: `, type);
|
|
|
5039
5050
|
}
|
|
5040
5051
|
function guardReactiveProps(props) {
|
|
5041
5052
|
if (!props) return null;
|
|
5042
|
-
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
5053
|
+
return /* @__PURE__ */ isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
5043
5054
|
}
|
|
5044
5055
|
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
5045
5056
|
const { props, ref, patchFlag, children, transition } = vnode;
|
|
@@ -5307,7 +5318,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
5307
5318
|
pauseTracking();
|
|
5308
5319
|
const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null;
|
|
5309
5320
|
const reset = setCurrentInstance(instance);
|
|
5310
|
-
const setupResult = callWithErrorHandling(setup, instance, 0, [!!(process.env.NODE_ENV !== "production") ? shallowReadonly(instance.props) : instance.props, setupContext]);
|
|
5321
|
+
const setupResult = callWithErrorHandling(setup, instance, 0, [!!(process.env.NODE_ENV !== "production") ? /* @__PURE__ */ shallowReadonly(instance.props) : instance.props, setupContext]);
|
|
5311
5322
|
const isAsyncSetup = isPromise(setupResult);
|
|
5312
5323
|
resetTracking();
|
|
5313
5324
|
reset();
|
|
@@ -5337,29 +5348,10 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
5337
5348
|
} else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) warn$1(`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`);
|
|
5338
5349
|
finishComponentSetup(instance, isSSR);
|
|
5339
5350
|
}
|
|
5340
|
-
|
|
5341
|
-
let installWithProxy;
|
|
5342
|
-
const isRuntimeOnly = () => !compile;
|
|
5351
|
+
const isRuntimeOnly = () => true;
|
|
5343
5352
|
function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
5344
5353
|
const Component = instance.type;
|
|
5345
|
-
if (!instance.render)
|
|
5346
|
-
if (!isSSR && compile && !Component.render) {
|
|
5347
|
-
const template = Component.template || __VUE_OPTIONS_API__ && resolveMergedOptions(instance).template;
|
|
5348
|
-
if (template) {
|
|
5349
|
-
if (!!(process.env.NODE_ENV !== "production")) startMeasure(instance, `compile`);
|
|
5350
|
-
const { isCustomElement, compilerOptions } = instance.appContext.config;
|
|
5351
|
-
const { delimiters, compilerOptions: componentCompilerOptions } = Component;
|
|
5352
|
-
const finalCompilerOptions = extend(extend({
|
|
5353
|
-
isCustomElement,
|
|
5354
|
-
delimiters
|
|
5355
|
-
}, compilerOptions), componentCompilerOptions);
|
|
5356
|
-
Component.render = compile(template, finalCompilerOptions);
|
|
5357
|
-
if (!!(process.env.NODE_ENV !== "production")) endMeasure(instance, `compile`);
|
|
5358
|
-
}
|
|
5359
|
-
}
|
|
5360
|
-
instance.render = Component.render || NOOP;
|
|
5361
|
-
if (installWithProxy) installWithProxy(instance);
|
|
5362
|
-
}
|
|
5354
|
+
if (!instance.render) instance.render = Component.render || NOOP;
|
|
5363
5355
|
if (__VUE_OPTIONS_API__ && true) {
|
|
5364
5356
|
const reset = setCurrentInstance(instance);
|
|
5365
5357
|
pauseTracking();
|
|
@@ -5370,7 +5362,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
5370
5362
|
reset();
|
|
5371
5363
|
}
|
|
5372
5364
|
}
|
|
5373
|
-
if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) if (
|
|
5365
|
+
if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) if (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\".");
|
|
5374
5366
|
else warn$1(`Component is missing template or render function: `, Component);
|
|
5375
5367
|
}
|
|
5376
5368
|
const attrsProxyHandlers = !!(process.env.NODE_ENV !== "production") ? {
|
|
@@ -5405,7 +5397,7 @@ function createSetupContext(instance) {
|
|
|
5405
5397
|
let exposedType = typeof exposed;
|
|
5406
5398
|
if (exposedType === "object") {
|
|
5407
5399
|
if (isArray(exposed)) exposedType = "array";
|
|
5408
|
-
else if (isRef(exposed)) exposedType = "ref";
|
|
5400
|
+
else if (/* @__PURE__ */ isRef(exposed)) exposedType = "ref";
|
|
5409
5401
|
}
|
|
5410
5402
|
if (exposedType !== "object") warn$1(`expose() should be passed a plain object, received ${exposedType}.`);
|
|
5411
5403
|
}
|
|
@@ -5469,7 +5461,7 @@ function isClassComponent(value) {
|
|
|
5469
5461
|
return isFunction(value) && "__vccOpts" in value;
|
|
5470
5462
|
}
|
|
5471
5463
|
const computed = (getterOrOptions, debugOptions) => {
|
|
5472
|
-
const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
5464
|
+
const c = /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
5473
5465
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5474
5466
|
const i = getCurrentInstance();
|
|
5475
5467
|
if (i && i.appContext.config.warnRecursiveComputed) c._warnRecursive = true;
|
|
@@ -5508,7 +5500,7 @@ function initCustomFormatter() {
|
|
|
5508
5500
|
vueStyle,
|
|
5509
5501
|
`VueInstance`
|
|
5510
5502
|
];
|
|
5511
|
-
else if (isRef(obj)) {
|
|
5503
|
+
else if (/* @__PURE__ */ isRef(obj)) {
|
|
5512
5504
|
pauseTracking();
|
|
5513
5505
|
const value = obj.value;
|
|
5514
5506
|
resetTracking();
|
|
@@ -5524,25 +5516,25 @@ function initCustomFormatter() {
|
|
|
5524
5516
|
formatValue(value),
|
|
5525
5517
|
`>`
|
|
5526
5518
|
];
|
|
5527
|
-
} else if (isReactive(obj)) return [
|
|
5519
|
+
} else if (/* @__PURE__ */ isReactive(obj)) return [
|
|
5528
5520
|
"div",
|
|
5529
5521
|
{},
|
|
5530
5522
|
[
|
|
5531
5523
|
"span",
|
|
5532
5524
|
vueStyle,
|
|
5533
|
-
isShallow(obj) ? "ShallowReactive" : "Reactive"
|
|
5525
|
+
/* @__PURE__ */ isShallow(obj) ? "ShallowReactive" : "Reactive"
|
|
5534
5526
|
],
|
|
5535
5527
|
"<",
|
|
5536
5528
|
formatValue(obj),
|
|
5537
|
-
`>${isReadonly(obj) ? ` (readonly)` : ``}`
|
|
5529
|
+
`>${/* @__PURE__ */ isReadonly(obj) ? ` (readonly)` : ``}`
|
|
5538
5530
|
];
|
|
5539
|
-
else if (isReadonly(obj)) return [
|
|
5531
|
+
else if (/* @__PURE__ */ isReadonly(obj)) return [
|
|
5540
5532
|
"div",
|
|
5541
5533
|
{},
|
|
5542
5534
|
[
|
|
5543
5535
|
"span",
|
|
5544
5536
|
vueStyle,
|
|
5545
|
-
isShallow(obj) ? "ShallowReadonly" : "Readonly"
|
|
5537
|
+
/* @__PURE__ */ isShallow(obj) ? "ShallowReadonly" : "Readonly"
|
|
5546
5538
|
],
|
|
5547
5539
|
"<",
|
|
5548
5540
|
formatValue(obj),
|
|
@@ -5563,9 +5555,9 @@ function initCustomFormatter() {
|
|
|
5563
5555
|
};
|
|
5564
5556
|
function formatInstance(instance) {
|
|
5565
5557
|
const blocks = [];
|
|
5566
|
-
if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", toRaw(instance.props)));
|
|
5558
|
+
if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", /* @__PURE__ */ toRaw(instance.props)));
|
|
5567
5559
|
if (instance.setupState !== EMPTY_OBJ) blocks.push(createInstanceBlock("setup", instance.setupState));
|
|
5568
|
-
if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", toRaw(instance.data)));
|
|
5560
|
+
if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", /* @__PURE__ */ toRaw(instance.data)));
|
|
5569
5561
|
const computed = extractKeys(instance, "computed");
|
|
5570
5562
|
if (computed) blocks.push(createInstanceBlock("computed", computed));
|
|
5571
5563
|
const injected = extractKeys(instance, "inject");
|
|
@@ -5627,7 +5619,7 @@ function initCustomFormatter() {
|
|
|
5627
5619
|
keywordStyle,
|
|
5628
5620
|
v
|
|
5629
5621
|
];
|
|
5630
|
-
else if (isObject(v)) return ["object", { object: asRaw ? toRaw(v) : v }];
|
|
5622
|
+
else if (isObject(v)) return ["object", { object: asRaw ? /* @__PURE__ */ toRaw(v) : v }];
|
|
5631
5623
|
else return [
|
|
5632
5624
|
"span",
|
|
5633
5625
|
stringStyle,
|
|
@@ -5648,22 +5640,21 @@ function initCustomFormatter() {
|
|
|
5648
5640
|
if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) return true;
|
|
5649
5641
|
}
|
|
5650
5642
|
function genRefFlag(v) {
|
|
5651
|
-
if (isShallow(v)) return `ShallowRef`;
|
|
5643
|
+
if (/* @__PURE__ */ isShallow(v)) return `ShallowRef`;
|
|
5652
5644
|
if (v.effect) return `ComputedRef`;
|
|
5653
5645
|
return `Ref`;
|
|
5654
5646
|
}
|
|
5655
5647
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
5656
5648
|
else window.devtoolsFormatters = [formatter];
|
|
5657
5649
|
}
|
|
5658
|
-
const version = "3.5.
|
|
5650
|
+
const version = "3.5.30";
|
|
5659
5651
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5652
|
+
process.env.NODE_ENV;
|
|
5653
|
+
process.env.NODE_ENV;
|
|
5663
5654
|
//#endregion
|
|
5664
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.
|
|
5655
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.30/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
5665
5656
|
/**
|
|
5666
|
-
* @vue/runtime-dom v3.5.
|
|
5657
|
+
* @vue/runtime-dom v3.5.30
|
|
5667
5658
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5668
5659
|
* @license MIT
|
|
5669
5660
|
**/
|
|
@@ -5941,7 +5932,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
5941
5932
|
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
5942
5933
|
patchDOMProp(el, key, nextValue);
|
|
5943
5934
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
5944
|
-
} else if (el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
5935
|
+
} else if (el._isVueCE && (shouldSetAsPropForVueCE(el, key) || el._def.__asyncLoader && (/[A-Z]/.test(key) || !isString(nextValue)))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
5945
5936
|
else {
|
|
5946
5937
|
if (key === "true-value") el._trueValue = nextValue;
|
|
5947
5938
|
else if (key === "false-value") el._falseValue = nextValue;
|
|
@@ -5966,10 +5957,16 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
5966
5957
|
if (isNativeOn(key) && isString(value)) return false;
|
|
5967
5958
|
return key in el;
|
|
5968
5959
|
}
|
|
5960
|
+
function shouldSetAsPropForVueCE(el, key) {
|
|
5961
|
+
const props = el._def.props;
|
|
5962
|
+
if (!props) return false;
|
|
5963
|
+
const camelKey = camelize(key);
|
|
5964
|
+
return Array.isArray(props) ? props.some((prop) => camelize(prop) === camelKey) : Object.keys(props).some((prop) => camelize(prop) === camelKey);
|
|
5965
|
+
}
|
|
5969
5966
|
const REMOVAL = {};
|
|
5970
5967
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5971
5968
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
5972
|
-
let Comp = defineComponent(options, extraOptions);
|
|
5969
|
+
let Comp = /* @__PURE__ */ defineComponent(options, extraOptions);
|
|
5973
5970
|
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
|
|
5974
5971
|
class VueCustomElement extends VueElement {
|
|
5975
5972
|
constructor(initialProps) {
|
|
@@ -6005,6 +6002,7 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6005
6002
|
this._dirty = false;
|
|
6006
6003
|
this._numberProps = null;
|
|
6007
6004
|
this._styleChildren = /* @__PURE__ */ new WeakSet();
|
|
6005
|
+
this._styleAnchors = /* @__PURE__ */ new WeakMap();
|
|
6008
6006
|
this._ob = null;
|
|
6009
6007
|
if (this.shadowRoot && _createApp !== createApp) this._root = this.shadowRoot;
|
|
6010
6008
|
else {
|
|
@@ -6020,7 +6018,7 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6020
6018
|
if (!this.shadowRoot && !this._resolved) this._parseSlots();
|
|
6021
6019
|
this._connected = true;
|
|
6022
6020
|
let parent = this;
|
|
6023
|
-
while (parent = parent && (parent.parentNode || parent.host)) if (parent instanceof VueElement) {
|
|
6021
|
+
while (parent = parent && (parent.assignedSlot || parent.parentNode || parent.host)) if (parent instanceof VueElement) {
|
|
6024
6022
|
this._parent = parent;
|
|
6025
6023
|
break;
|
|
6026
6024
|
}
|
|
@@ -6176,6 +6174,7 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6176
6174
|
this._styles.forEach((s) => this._root.removeChild(s));
|
|
6177
6175
|
this._styles.length = 0;
|
|
6178
6176
|
}
|
|
6177
|
+
this._styleAnchors.delete(this._def);
|
|
6179
6178
|
this._applyStyles(newStyles);
|
|
6180
6179
|
this._instance = null;
|
|
6181
6180
|
this._update();
|
|
@@ -6191,18 +6190,26 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6191
6190
|
};
|
|
6192
6191
|
return vnode;
|
|
6193
6192
|
}
|
|
6194
|
-
_applyStyles(styles, owner) {
|
|
6193
|
+
_applyStyles(styles, owner, parentComp) {
|
|
6195
6194
|
if (!styles) return;
|
|
6196
6195
|
if (owner) {
|
|
6197
6196
|
if (owner === this._def || this._styleChildren.has(owner)) return;
|
|
6198
6197
|
this._styleChildren.add(owner);
|
|
6199
6198
|
}
|
|
6200
6199
|
const nonce = this._nonce;
|
|
6200
|
+
const root = this.shadowRoot;
|
|
6201
|
+
const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
|
|
6202
|
+
let last = null;
|
|
6201
6203
|
for (let i = styles.length - 1; i >= 0; i--) {
|
|
6202
6204
|
const s = document.createElement("style");
|
|
6203
6205
|
if (nonce) s.setAttribute("nonce", nonce);
|
|
6204
6206
|
s.textContent = styles[i];
|
|
6205
|
-
|
|
6207
|
+
root.insertBefore(s, last || insertionAnchor);
|
|
6208
|
+
last = s;
|
|
6209
|
+
if (i === 0) {
|
|
6210
|
+
if (!parentComp) this._styleAnchors.set(this._def, s);
|
|
6211
|
+
if (owner) this._styleAnchors.set(owner, s);
|
|
6212
|
+
}
|
|
6206
6213
|
if (!!(process.env.NODE_ENV !== "production")) if (owner) {
|
|
6207
6214
|
if (owner.__hmrId) {
|
|
6208
6215
|
if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map();
|
|
@@ -6213,6 +6220,20 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6213
6220
|
} else (this._styles || (this._styles = [])).push(s);
|
|
6214
6221
|
}
|
|
6215
6222
|
}
|
|
6223
|
+
_getStyleAnchor(comp) {
|
|
6224
|
+
if (!comp) return null;
|
|
6225
|
+
const anchor = this._styleAnchors.get(comp);
|
|
6226
|
+
if (anchor && anchor.parentNode === this.shadowRoot) return anchor;
|
|
6227
|
+
if (anchor) this._styleAnchors.delete(comp);
|
|
6228
|
+
return null;
|
|
6229
|
+
}
|
|
6230
|
+
_getRootStyleInsertionAnchor(root) {
|
|
6231
|
+
for (let i = 0; i < root.childNodes.length; i++) {
|
|
6232
|
+
const node = root.childNodes[i];
|
|
6233
|
+
if (!(node instanceof HTMLStyleElement)) return node;
|
|
6234
|
+
}
|
|
6235
|
+
return null;
|
|
6236
|
+
}
|
|
6216
6237
|
/**
|
|
6217
6238
|
* Only called when shadowRoot is false
|
|
6218
6239
|
*/
|
|
@@ -6266,8 +6287,8 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6266
6287
|
/**
|
|
6267
6288
|
* @internal
|
|
6268
6289
|
*/
|
|
6269
|
-
_injectChildStyle(comp) {
|
|
6270
|
-
this._applyStyles(comp.styles, comp);
|
|
6290
|
+
_injectChildStyle(comp, parentComp) {
|
|
6291
|
+
this._applyStyles(comp.styles, comp, parentComp);
|
|
6271
6292
|
}
|
|
6272
6293
|
/**
|
|
6273
6294
|
* @internal
|
|
@@ -6295,6 +6316,7 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6295
6316
|
_removeChildStyle(comp) {
|
|
6296
6317
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6297
6318
|
this._styleChildren.delete(comp);
|
|
6319
|
+
this._styleAnchors.delete(comp);
|
|
6298
6320
|
if (this._childStyles && comp.__hmrId) {
|
|
6299
6321
|
const oldStyles = this._childStyles.get(comp.__hmrId);
|
|
6300
6322
|
if (oldStyles) {
|
|
@@ -6430,11 +6452,10 @@ function normalizeContainer(container) {
|
|
|
6430
6452
|
if (!!(process.env.NODE_ENV !== "production") && window.ShadowRoot && container instanceof window.ShadowRoot && container.mode === "closed") warn(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
|
|
6431
6453
|
return container;
|
|
6432
6454
|
}
|
|
6433
|
-
|
|
6434
6455
|
//#endregion
|
|
6435
|
-
//#region ../../node_modules/.pnpm/vue@3.5.
|
|
6456
|
+
//#region ../../node_modules/.pnpm/vue@3.5.30_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
6436
6457
|
/**
|
|
6437
|
-
* vue v3.5.
|
|
6458
|
+
* vue v3.5.30
|
|
6438
6459
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6439
6460
|
* @license MIT
|
|
6440
6461
|
**/
|
|
@@ -6442,6 +6463,5 @@ function initDev() {
|
|
|
6442
6463
|
initCustomFormatter();
|
|
6443
6464
|
}
|
|
6444
6465
|
if (!!(process.env.NODE_ENV !== "production")) initDev();
|
|
6445
|
-
|
|
6446
6466
|
//#endregion
|
|
6447
|
-
export { withCtx as A, toRef as B, onUnmounted as C, useTemplateRef as D, renderSlot as E, onScopeDispose as F, normalizeStyle as G, toValue as H, reactive as I, toDisplayString as K, readonly as L, customRef as M, getCurrentScope as N, watch as O, markRaw as P, ref as R, onMounted as S, renderList as T, unref as U, toRefs as V, normalizeClass as W, getCurrentInstance as _, Fragment as a, inject as b, createBaseVNode as c, createElementBlock as d, createStaticVNode as f, defineComponent as g, defineAsyncComponent as h, withModifiers as i, withDirectives as j, watchEffect as k, createBlock as l, createVNode as m, vShow as n, Suspense as o, createTextVNode as p, withKeys as r, computed as s, defineCustomElement as t, createCommentVNode as u, h as v, openBlock as w, nextTick as x, hasInjectionContext as y, shallowRef as z };
|
|
6467
|
+
export { withCtx as A, toRef as B, onUnmounted as C, useTemplateRef as D, renderSlot as E, onScopeDispose as F, normalizeStyle as G, toValue as H, reactive as I, toDisplayString as K, readonly as L, customRef as M, getCurrentScope as N, watch as O, markRaw as P, ref as R, onMounted as S, renderList as T, unref as U, toRefs as V, normalizeClass as W, getCurrentInstance as _, Fragment as a, inject as b, createBaseVNode as c, createElementBlock as d, createStaticVNode as f, defineComponent as g, defineAsyncComponent as h, withModifiers as i, withDirectives as j, watchEffect as k, createBlock as l, createVNode as m, vShow as n, Suspense as o, createTextVNode as p, withKeys as r, computed as s, defineCustomElement as t, createCommentVNode as u, h as v, openBlock as w, nextTick as x, hasInjectionContext as y, shallowRef as z };
|