@pubinfo/devtools 2.2.0-beta.2 → 2.2.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{Navbar-CqbUKmrp.js → Navbar-3Cn9PFp9.js} +4 -3
- package/dist/client/assets/{PanelGrids-rTFcKhN6.js → PanelGrids-D-e1HMGu.js} +1 -1
- package/dist/client/assets/{SelectTabs-DgkHH3x0.js → SelectTabs-BVqh8LZU.js} +2 -2
- package/dist/client/assets/{component-BYrUuLxe.js → component-B7OC6axd.js} +3 -3
- package/dist/client/assets/{core-CrqZ8qrs.js → core-DiI9pThV.js} +1 -2
- package/dist/client/assets/css-Cjj0epyT.js +2 -0
- package/dist/client/assets/html-CFrcqZWa.js +2 -0
- package/dist/client/assets/{html-B5Ny8iin.js → html-DWiEGJDI.js} +2 -2
- package/dist/client/assets/{import-DKZiGsnA.js → import-C7KwSxxY.js} +3 -3
- package/dist/client/assets/index-BWYGlTlC.js +2528 -0
- package/dist/client/assets/{issue-5N1NVPuz.js → issue-BSGRP6QK.js} +3 -3
- package/dist/client/assets/javascript-BJm8fXxP.js +2 -0
- package/dist/client/assets/json-Brw1dQFm.js +2 -0
- package/dist/client/assets/{pages-CJAbU-aU.js → pages-CTRaZwAP.js} +5 -5
- package/dist/client/assets/preload-helper-DwCkpwrd.js +61 -0
- package/dist/client/assets/runtime-dom.esm-bundler-CEsf3eAe.js +719 -0
- package/dist/client/assets/{server-router-DJjewR1Y.js → server-router-C8joyG3R.js} +16 -15
- package/dist/client/assets/typescript-DIFxt4Fk.js +2 -0
- package/dist/client/assets/{vue-BvqQiUzU.js → vue-Aaycm_fY.js} +5 -5
- package/dist/client/assets/vue-router-CA-EVYVL.js +1907 -0
- package/dist/client/index.html +4 -1
- package/package.json +3 -3
- package/dist/client/assets/css-mRoPUXX2.js +0 -2
- package/dist/client/assets/html-g0uz4re7.js +0 -2
- package/dist/client/assets/index-gGaEqL_2.js +0 -5208
- package/dist/client/assets/javascript-yBXmlTMV.js +0 -2
- package/dist/client/assets/json-CDHOIUIc.js +0 -2
- package/dist/client/assets/typescript-jte7_wp4.js +0 -2
- /package/dist/client/assets/{_plugin-vue_export-helper-Ctigiz3_.js → _plugin-vue_export-helper-CQkuo_9D.js} +0 -0
- /package/dist/client/assets/{css-3PrNsnPt.js → css-Bovntqw-.js} +0 -0
- /package/dist/client/assets/{engine-oniguruma-C1mOz3PQ.js → engine-oniguruma-BRR1aDSJ.js} +0 -0
- /package/dist/client/assets/{fetch-Bz1BNH1Z.js → fetch-YItqmMVJ.js} +0 -0
- /package/dist/client/assets/{javascript-D9OtNJpI.js → javascript-DlyTQa1O.js} +0 -0
- /package/dist/client/assets/{json-DFv6u-UA.js → json-BxC7veKF.js} +0 -0
- /package/dist/client/assets/{typescript-C6a_X60d.js → typescript-DOns-J1e.js} +0 -0
- /package/dist/client/assets/{vitesse-dark-Dd6LUkEf.js → vitesse-dark-B-kHMmlr.js} +0 -0
- /package/dist/client/assets/{vitesse-light-LEkeIfQx.js → vitesse-light-BUD2Pvc-.js} +0 -0
- /package/dist/client/assets/{wasm-bCjRd0-o.js → wasm-DEqiGDhb.js} +0 -0
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
import { C as nextTick, Tt as toNumber, _t as isSymbol, at as extend, bt as looseToNumber, ct as invokeArrayFns, dt as isModelListener, f as createRenderer, ft as isObject, gt as isString, ht as isSpecialBooleanAttr, it as capitalize, lt as isArray, mt as isSet, n as BaseTransitionPropsValidators, o as callWithAsyncErrorHandling, ot as hyphenate, pt as isOn, rt as camelize, st as includeBooleanAttr, t as BaseTransition, ut as isFunction, vt as looseEqual, y as h, yt as looseIndexOf } from "./runtime-core.esm-bundler-CsZVtwV7.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.28/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
3
|
+
/**
|
|
4
|
+
* @vue/runtime-dom v3.5.28
|
|
5
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
|
+
* @license MIT
|
|
7
|
+
**/
|
|
8
|
+
var policy = void 0;
|
|
9
|
+
var tt = typeof window !== "undefined" && window.trustedTypes;
|
|
10
|
+
if (tt) try {
|
|
11
|
+
policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val });
|
|
12
|
+
} catch (e) {}
|
|
13
|
+
var unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val;
|
|
14
|
+
var svgNS = "http://www.w3.org/2000/svg";
|
|
15
|
+
var mathmlNS = "http://www.w3.org/1998/Math/MathML";
|
|
16
|
+
var doc = typeof document !== "undefined" ? document : null;
|
|
17
|
+
var templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
|
|
18
|
+
var nodeOps = {
|
|
19
|
+
insert: (child, parent, anchor) => {
|
|
20
|
+
parent.insertBefore(child, anchor || null);
|
|
21
|
+
},
|
|
22
|
+
remove: (child) => {
|
|
23
|
+
const parent = child.parentNode;
|
|
24
|
+
if (parent) parent.removeChild(child);
|
|
25
|
+
},
|
|
26
|
+
createElement: (tag, namespace, is, props) => {
|
|
27
|
+
const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag);
|
|
28
|
+
if (tag === "select" && props && props.multiple != null) el.setAttribute("multiple", props.multiple);
|
|
29
|
+
return el;
|
|
30
|
+
},
|
|
31
|
+
createText: (text) => doc.createTextNode(text),
|
|
32
|
+
createComment: (text) => doc.createComment(text),
|
|
33
|
+
setText: (node, text) => {
|
|
34
|
+
node.nodeValue = text;
|
|
35
|
+
},
|
|
36
|
+
setElementText: (el, text) => {
|
|
37
|
+
el.textContent = text;
|
|
38
|
+
},
|
|
39
|
+
parentNode: (node) => node.parentNode,
|
|
40
|
+
nextSibling: (node) => node.nextSibling,
|
|
41
|
+
querySelector: (selector) => doc.querySelector(selector),
|
|
42
|
+
setScopeId(el, id) {
|
|
43
|
+
el.setAttribute(id, "");
|
|
44
|
+
},
|
|
45
|
+
insertStaticContent(content, parent, anchor, namespace, start, end) {
|
|
46
|
+
const before = anchor ? anchor.previousSibling : parent.lastChild;
|
|
47
|
+
if (start && (start === end || start.nextSibling)) while (true) {
|
|
48
|
+
parent.insertBefore(start.cloneNode(true), anchor);
|
|
49
|
+
if (start === end || !(start = start.nextSibling)) break;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
templateContainer.innerHTML = unsafeToTrustedHTML(namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content);
|
|
53
|
+
const template = templateContainer.content;
|
|
54
|
+
if (namespace === "svg" || namespace === "mathml") {
|
|
55
|
+
const wrapper = template.firstChild;
|
|
56
|
+
while (wrapper.firstChild) template.appendChild(wrapper.firstChild);
|
|
57
|
+
template.removeChild(wrapper);
|
|
58
|
+
}
|
|
59
|
+
parent.insertBefore(template, anchor);
|
|
60
|
+
}
|
|
61
|
+
return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var TRANSITION = "transition";
|
|
65
|
+
var ANIMATION = "animation";
|
|
66
|
+
var vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
67
|
+
var DOMTransitionPropsValidators = {
|
|
68
|
+
name: String,
|
|
69
|
+
type: String,
|
|
70
|
+
css: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: true
|
|
73
|
+
},
|
|
74
|
+
duration: [
|
|
75
|
+
String,
|
|
76
|
+
Number,
|
|
77
|
+
Object
|
|
78
|
+
],
|
|
79
|
+
enterFromClass: String,
|
|
80
|
+
enterActiveClass: String,
|
|
81
|
+
enterToClass: String,
|
|
82
|
+
appearFromClass: String,
|
|
83
|
+
appearActiveClass: String,
|
|
84
|
+
appearToClass: String,
|
|
85
|
+
leaveFromClass: String,
|
|
86
|
+
leaveActiveClass: String,
|
|
87
|
+
leaveToClass: String
|
|
88
|
+
};
|
|
89
|
+
var TransitionPropsValidators = /* @__PURE__ */ extend({}, BaseTransitionPropsValidators, DOMTransitionPropsValidators);
|
|
90
|
+
var decorate$1 = (t) => {
|
|
91
|
+
t.displayName = "Transition";
|
|
92
|
+
t.props = TransitionPropsValidators;
|
|
93
|
+
return t;
|
|
94
|
+
};
|
|
95
|
+
var Transition = /* @__PURE__ */ decorate$1((props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots));
|
|
96
|
+
var callHook = (hook, args = []) => {
|
|
97
|
+
if (isArray(hook)) hook.forEach((h2) => h2(...args));
|
|
98
|
+
else if (hook) hook(...args);
|
|
99
|
+
};
|
|
100
|
+
var hasExplicitCallback = (hook) => {
|
|
101
|
+
return hook ? isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
|
|
102
|
+
};
|
|
103
|
+
function resolveTransitionProps(rawProps) {
|
|
104
|
+
const baseProps = {};
|
|
105
|
+
for (const key in rawProps) if (!(key in DOMTransitionPropsValidators)) baseProps[key] = rawProps[key];
|
|
106
|
+
if (rawProps.css === false) return baseProps;
|
|
107
|
+
const { name = "v", type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;
|
|
108
|
+
const durations = normalizeDuration(duration);
|
|
109
|
+
const enterDuration = durations && durations[0];
|
|
110
|
+
const leaveDuration = durations && durations[1];
|
|
111
|
+
const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;
|
|
112
|
+
const finishEnter = (el, isAppear, done, isCancelled) => {
|
|
113
|
+
el._enterCancelled = isCancelled;
|
|
114
|
+
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
115
|
+
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
116
|
+
done && done();
|
|
117
|
+
};
|
|
118
|
+
const finishLeave = (el, done) => {
|
|
119
|
+
el._isLeaving = false;
|
|
120
|
+
removeTransitionClass(el, leaveFromClass);
|
|
121
|
+
removeTransitionClass(el, leaveToClass);
|
|
122
|
+
removeTransitionClass(el, leaveActiveClass);
|
|
123
|
+
done && done();
|
|
124
|
+
};
|
|
125
|
+
const makeEnterHook = (isAppear) => {
|
|
126
|
+
return (el, done) => {
|
|
127
|
+
const hook = isAppear ? onAppear : onEnter;
|
|
128
|
+
const resolve = () => finishEnter(el, isAppear, done);
|
|
129
|
+
callHook(hook, [el, resolve]);
|
|
130
|
+
nextFrame(() => {
|
|
131
|
+
removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
|
|
132
|
+
addTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
133
|
+
if (!hasExplicitCallback(hook)) whenTransitionEnds(el, type, enterDuration, resolve);
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
return extend(baseProps, {
|
|
138
|
+
onBeforeEnter(el) {
|
|
139
|
+
callHook(onBeforeEnter, [el]);
|
|
140
|
+
addTransitionClass(el, enterFromClass);
|
|
141
|
+
addTransitionClass(el, enterActiveClass);
|
|
142
|
+
},
|
|
143
|
+
onBeforeAppear(el) {
|
|
144
|
+
callHook(onBeforeAppear, [el]);
|
|
145
|
+
addTransitionClass(el, appearFromClass);
|
|
146
|
+
addTransitionClass(el, appearActiveClass);
|
|
147
|
+
},
|
|
148
|
+
onEnter: makeEnterHook(false),
|
|
149
|
+
onAppear: makeEnterHook(true),
|
|
150
|
+
onLeave(el, done) {
|
|
151
|
+
el._isLeaving = true;
|
|
152
|
+
const resolve = () => finishLeave(el, done);
|
|
153
|
+
addTransitionClass(el, leaveFromClass);
|
|
154
|
+
if (!el._enterCancelled) {
|
|
155
|
+
forceReflow(el);
|
|
156
|
+
addTransitionClass(el, leaveActiveClass);
|
|
157
|
+
} else {
|
|
158
|
+
addTransitionClass(el, leaveActiveClass);
|
|
159
|
+
forceReflow(el);
|
|
160
|
+
}
|
|
161
|
+
nextFrame(() => {
|
|
162
|
+
if (!el._isLeaving) return;
|
|
163
|
+
removeTransitionClass(el, leaveFromClass);
|
|
164
|
+
addTransitionClass(el, leaveToClass);
|
|
165
|
+
if (!hasExplicitCallback(onLeave)) whenTransitionEnds(el, type, leaveDuration, resolve);
|
|
166
|
+
});
|
|
167
|
+
callHook(onLeave, [el, resolve]);
|
|
168
|
+
},
|
|
169
|
+
onEnterCancelled(el) {
|
|
170
|
+
finishEnter(el, false, void 0, true);
|
|
171
|
+
callHook(onEnterCancelled, [el]);
|
|
172
|
+
},
|
|
173
|
+
onAppearCancelled(el) {
|
|
174
|
+
finishEnter(el, true, void 0, true);
|
|
175
|
+
callHook(onAppearCancelled, [el]);
|
|
176
|
+
},
|
|
177
|
+
onLeaveCancelled(el) {
|
|
178
|
+
finishLeave(el);
|
|
179
|
+
callHook(onLeaveCancelled, [el]);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function normalizeDuration(duration) {
|
|
184
|
+
if (duration == null) return null;
|
|
185
|
+
else if (isObject(duration)) return [NumberOf(duration.enter), NumberOf(duration.leave)];
|
|
186
|
+
else {
|
|
187
|
+
const n = NumberOf(duration);
|
|
188
|
+
return [n, n];
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function NumberOf(val) {
|
|
192
|
+
return toNumber(val);
|
|
193
|
+
}
|
|
194
|
+
function addTransitionClass(el, cls) {
|
|
195
|
+
cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
|
|
196
|
+
(el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls);
|
|
197
|
+
}
|
|
198
|
+
function removeTransitionClass(el, cls) {
|
|
199
|
+
cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
|
|
200
|
+
const _vtc = el[vtcKey];
|
|
201
|
+
if (_vtc) {
|
|
202
|
+
_vtc.delete(cls);
|
|
203
|
+
if (!_vtc.size) el[vtcKey] = void 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function nextFrame(cb) {
|
|
207
|
+
requestAnimationFrame(() => {
|
|
208
|
+
requestAnimationFrame(cb);
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
var endId = 0;
|
|
212
|
+
function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
|
|
213
|
+
const id = el._endId = ++endId;
|
|
214
|
+
const resolveIfNotStale = () => {
|
|
215
|
+
if (id === el._endId) resolve();
|
|
216
|
+
};
|
|
217
|
+
if (explicitTimeout != null) return setTimeout(resolveIfNotStale, explicitTimeout);
|
|
218
|
+
const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
|
|
219
|
+
if (!type) return resolve();
|
|
220
|
+
const endEvent = type + "end";
|
|
221
|
+
let ended = 0;
|
|
222
|
+
const end = () => {
|
|
223
|
+
el.removeEventListener(endEvent, onEnd);
|
|
224
|
+
resolveIfNotStale();
|
|
225
|
+
};
|
|
226
|
+
const onEnd = (e) => {
|
|
227
|
+
if (e.target === el && ++ended >= propCount) end();
|
|
228
|
+
};
|
|
229
|
+
setTimeout(() => {
|
|
230
|
+
if (ended < propCount) end();
|
|
231
|
+
}, timeout + 1);
|
|
232
|
+
el.addEventListener(endEvent, onEnd);
|
|
233
|
+
}
|
|
234
|
+
function getTransitionInfo(el, expectedType) {
|
|
235
|
+
const styles = window.getComputedStyle(el);
|
|
236
|
+
const getStyleProperties = (key) => (styles[key] || "").split(", ");
|
|
237
|
+
const transitionDelays = getStyleProperties(`${TRANSITION}Delay`);
|
|
238
|
+
const transitionDurations = getStyleProperties(`${TRANSITION}Duration`);
|
|
239
|
+
const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
|
|
240
|
+
const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
|
|
241
|
+
const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
|
|
242
|
+
const animationTimeout = getTimeout(animationDelays, animationDurations);
|
|
243
|
+
let type = null;
|
|
244
|
+
let timeout = 0;
|
|
245
|
+
let propCount = 0;
|
|
246
|
+
if (expectedType === TRANSITION) {
|
|
247
|
+
if (transitionTimeout > 0) {
|
|
248
|
+
type = TRANSITION;
|
|
249
|
+
timeout = transitionTimeout;
|
|
250
|
+
propCount = transitionDurations.length;
|
|
251
|
+
}
|
|
252
|
+
} else if (expectedType === ANIMATION) {
|
|
253
|
+
if (animationTimeout > 0) {
|
|
254
|
+
type = ANIMATION;
|
|
255
|
+
timeout = animationTimeout;
|
|
256
|
+
propCount = animationDurations.length;
|
|
257
|
+
}
|
|
258
|
+
} else {
|
|
259
|
+
timeout = Math.max(transitionTimeout, animationTimeout);
|
|
260
|
+
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
|
|
261
|
+
propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
|
|
262
|
+
}
|
|
263
|
+
const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(getStyleProperties(`${TRANSITION}Property`).toString());
|
|
264
|
+
return {
|
|
265
|
+
type,
|
|
266
|
+
timeout,
|
|
267
|
+
propCount,
|
|
268
|
+
hasTransform
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
function getTimeout(delays, durations) {
|
|
272
|
+
while (delays.length < durations.length) delays = delays.concat(delays);
|
|
273
|
+
return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
|
|
274
|
+
}
|
|
275
|
+
function toMs(s) {
|
|
276
|
+
if (s === "auto") return 0;
|
|
277
|
+
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
278
|
+
}
|
|
279
|
+
function forceReflow(el) {
|
|
280
|
+
return (el ? el.ownerDocument : document).body.offsetHeight;
|
|
281
|
+
}
|
|
282
|
+
function patchClass(el, value, isSVG) {
|
|
283
|
+
const transitionClasses = el[vtcKey];
|
|
284
|
+
if (transitionClasses) value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
|
|
285
|
+
if (value == null) el.removeAttribute("class");
|
|
286
|
+
else if (isSVG) el.setAttribute("class", value);
|
|
287
|
+
else el.className = value;
|
|
288
|
+
}
|
|
289
|
+
var vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
290
|
+
var vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
291
|
+
var CSS_VAR_TEXT = /* @__PURE__ */ Symbol("");
|
|
292
|
+
var displayRE = /(?:^|;)\s*display\s*:/;
|
|
293
|
+
function patchStyle(el, prev, next) {
|
|
294
|
+
const style = el.style;
|
|
295
|
+
const isCssString = isString(next);
|
|
296
|
+
let hasControlledDisplay = false;
|
|
297
|
+
if (next && !isCssString) {
|
|
298
|
+
if (prev) if (!isString(prev)) {
|
|
299
|
+
for (const key in prev) if (next[key] == null) setStyle(style, key, "");
|
|
300
|
+
} else for (const prevStyle of prev.split(";")) {
|
|
301
|
+
const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
|
|
302
|
+
if (next[key] == null) setStyle(style, key, "");
|
|
303
|
+
}
|
|
304
|
+
for (const key in next) {
|
|
305
|
+
if (key === "display") hasControlledDisplay = true;
|
|
306
|
+
setStyle(style, key, next[key]);
|
|
307
|
+
}
|
|
308
|
+
} else if (isCssString) {
|
|
309
|
+
if (prev !== next) {
|
|
310
|
+
const cssVarText = style[CSS_VAR_TEXT];
|
|
311
|
+
if (cssVarText) next += ";" + cssVarText;
|
|
312
|
+
style.cssText = next;
|
|
313
|
+
hasControlledDisplay = displayRE.test(next);
|
|
314
|
+
}
|
|
315
|
+
} else if (prev) el.removeAttribute("style");
|
|
316
|
+
if (vShowOriginalDisplay in el) {
|
|
317
|
+
el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
|
|
318
|
+
if (el[vShowHidden]) style.display = "none";
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
var importantRE = /\s*!important$/;
|
|
322
|
+
function setStyle(style, name, val) {
|
|
323
|
+
if (isArray(val)) val.forEach((v) => setStyle(style, name, v));
|
|
324
|
+
else {
|
|
325
|
+
if (val == null) val = "";
|
|
326
|
+
if (name.startsWith("--")) style.setProperty(name, val);
|
|
327
|
+
else {
|
|
328
|
+
const prefixed = autoPrefix(style, name);
|
|
329
|
+
if (importantRE.test(val)) style.setProperty(hyphenate(prefixed), val.replace(importantRE, ""), "important");
|
|
330
|
+
else style[prefixed] = val;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
var prefixes = [
|
|
335
|
+
"Webkit",
|
|
336
|
+
"Moz",
|
|
337
|
+
"ms"
|
|
338
|
+
];
|
|
339
|
+
var prefixCache = {};
|
|
340
|
+
function autoPrefix(style, rawName) {
|
|
341
|
+
const cached = prefixCache[rawName];
|
|
342
|
+
if (cached) return cached;
|
|
343
|
+
let name = camelize(rawName);
|
|
344
|
+
if (name !== "filter" && name in style) return prefixCache[rawName] = name;
|
|
345
|
+
name = capitalize(name);
|
|
346
|
+
for (let i = 0; i < prefixes.length; i++) {
|
|
347
|
+
const prefixed = prefixes[i] + name;
|
|
348
|
+
if (prefixed in style) return prefixCache[rawName] = prefixed;
|
|
349
|
+
}
|
|
350
|
+
return rawName;
|
|
351
|
+
}
|
|
352
|
+
var xlinkNS = "http://www.w3.org/1999/xlink";
|
|
353
|
+
function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
|
|
354
|
+
if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
|
|
355
|
+
else el.setAttributeNS(xlinkNS, key, value);
|
|
356
|
+
else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
|
|
357
|
+
else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value);
|
|
358
|
+
}
|
|
359
|
+
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
360
|
+
if (key === "innerHTML" || key === "textContent") {
|
|
361
|
+
if (value != null) el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
const tag = el.tagName;
|
|
365
|
+
if (key === "value" && tag !== "PROGRESS" && !tag.includes("-")) {
|
|
366
|
+
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
367
|
+
const newValue = value == null ? el.type === "checkbox" ? "on" : "" : String(value);
|
|
368
|
+
if (oldValue !== newValue || !("_value" in el)) el.value = newValue;
|
|
369
|
+
if (value == null) el.removeAttribute(key);
|
|
370
|
+
el._value = value;
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
let needRemove = false;
|
|
374
|
+
if (value === "" || value == null) {
|
|
375
|
+
const type = typeof el[key];
|
|
376
|
+
if (type === "boolean") value = includeBooleanAttr(value);
|
|
377
|
+
else if (value == null && type === "string") {
|
|
378
|
+
value = "";
|
|
379
|
+
needRemove = true;
|
|
380
|
+
} else if (type === "number") {
|
|
381
|
+
value = 0;
|
|
382
|
+
needRemove = true;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
try {
|
|
386
|
+
el[key] = value;
|
|
387
|
+
} catch (e) {}
|
|
388
|
+
needRemove && el.removeAttribute(attrName || key);
|
|
389
|
+
}
|
|
390
|
+
function addEventListener(el, event, handler, options) {
|
|
391
|
+
el.addEventListener(event, handler, options);
|
|
392
|
+
}
|
|
393
|
+
function removeEventListener(el, event, handler, options) {
|
|
394
|
+
el.removeEventListener(event, handler, options);
|
|
395
|
+
}
|
|
396
|
+
var veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
397
|
+
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
398
|
+
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
399
|
+
const existingInvoker = invokers[rawName];
|
|
400
|
+
if (nextValue && existingInvoker) existingInvoker.value = nextValue;
|
|
401
|
+
else {
|
|
402
|
+
const [name, options] = parseName(rawName);
|
|
403
|
+
if (nextValue) addEventListener(el, name, invokers[rawName] = createInvoker(nextValue, instance), options);
|
|
404
|
+
else if (existingInvoker) {
|
|
405
|
+
removeEventListener(el, name, existingInvoker, options);
|
|
406
|
+
invokers[rawName] = void 0;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
var optionsModifierRE = /(?:Once|Passive|Capture)$/;
|
|
411
|
+
function parseName(name) {
|
|
412
|
+
let options;
|
|
413
|
+
if (optionsModifierRE.test(name)) {
|
|
414
|
+
options = {};
|
|
415
|
+
let m;
|
|
416
|
+
while (m = name.match(optionsModifierRE)) {
|
|
417
|
+
name = name.slice(0, name.length - m[0].length);
|
|
418
|
+
options[m[0].toLowerCase()] = true;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return [name[2] === ":" ? name.slice(3) : hyphenate(name.slice(2)), options];
|
|
422
|
+
}
|
|
423
|
+
var cachedNow = 0;
|
|
424
|
+
var p = /* @__PURE__ */ Promise.resolve();
|
|
425
|
+
var getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
|
|
426
|
+
function createInvoker(initialValue, instance) {
|
|
427
|
+
const invoker = (e) => {
|
|
428
|
+
if (!e._vts) e._vts = Date.now();
|
|
429
|
+
else if (e._vts <= invoker.attached) return;
|
|
430
|
+
callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5, [e]);
|
|
431
|
+
};
|
|
432
|
+
invoker.value = initialValue;
|
|
433
|
+
invoker.attached = getNow();
|
|
434
|
+
return invoker;
|
|
435
|
+
}
|
|
436
|
+
function patchStopImmediatePropagation(e, value) {
|
|
437
|
+
if (isArray(value)) {
|
|
438
|
+
const originalStop = e.stopImmediatePropagation;
|
|
439
|
+
e.stopImmediatePropagation = () => {
|
|
440
|
+
originalStop.call(e);
|
|
441
|
+
e._stopped = true;
|
|
442
|
+
};
|
|
443
|
+
return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
|
|
444
|
+
} else return value;
|
|
445
|
+
}
|
|
446
|
+
var isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
447
|
+
var patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
448
|
+
const isSVG = namespace === "svg";
|
|
449
|
+
if (key === "class") patchClass(el, nextValue, isSVG);
|
|
450
|
+
else if (key === "style") patchStyle(el, prevValue, nextValue);
|
|
451
|
+
else if (isOn(key)) {
|
|
452
|
+
if (!isModelListener(key)) patchEvent(el, key, prevValue, nextValue, parentComponent);
|
|
453
|
+
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
454
|
+
patchDOMProp(el, key, nextValue);
|
|
455
|
+
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
456
|
+
} else if (el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
457
|
+
else {
|
|
458
|
+
if (key === "true-value") el._trueValue = nextValue;
|
|
459
|
+
else if (key === "false-value") el._falseValue = nextValue;
|
|
460
|
+
patchAttr(el, key, nextValue, isSVG);
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
function shouldSetAsProp(el, key, value, isSVG) {
|
|
464
|
+
if (isSVG) {
|
|
465
|
+
if (key === "innerHTML" || key === "textContent") return true;
|
|
466
|
+
if (key in el && isNativeOn(key) && isFunction(value)) return true;
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
469
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") return false;
|
|
470
|
+
if (key === "sandbox" && el.tagName === "IFRAME") return false;
|
|
471
|
+
if (key === "form") return false;
|
|
472
|
+
if (key === "list" && el.tagName === "INPUT") return false;
|
|
473
|
+
if (key === "type" && el.tagName === "TEXTAREA") return false;
|
|
474
|
+
if (key === "width" || key === "height") {
|
|
475
|
+
const tag = el.tagName;
|
|
476
|
+
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") return false;
|
|
477
|
+
}
|
|
478
|
+
if (isNativeOn(key) && isString(value)) return false;
|
|
479
|
+
return key in el;
|
|
480
|
+
}
|
|
481
|
+
var getModelAssigner = (vnode) => {
|
|
482
|
+
const fn = vnode.props["onUpdate:modelValue"] || false;
|
|
483
|
+
return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn;
|
|
484
|
+
};
|
|
485
|
+
function onCompositionStart(e) {
|
|
486
|
+
e.target.composing = true;
|
|
487
|
+
}
|
|
488
|
+
function onCompositionEnd(e) {
|
|
489
|
+
const target = e.target;
|
|
490
|
+
if (target.composing) {
|
|
491
|
+
target.composing = false;
|
|
492
|
+
target.dispatchEvent(new Event("input"));
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
var assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
496
|
+
function castValue(value, trim, number) {
|
|
497
|
+
if (trim) value = value.trim();
|
|
498
|
+
if (number) value = looseToNumber(value);
|
|
499
|
+
return value;
|
|
500
|
+
}
|
|
501
|
+
var vModelText = {
|
|
502
|
+
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
503
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
504
|
+
const castToNumber = number || vnode.props && vnode.props.type === "number";
|
|
505
|
+
addEventListener(el, lazy ? "change" : "input", (e) => {
|
|
506
|
+
if (e.target.composing) return;
|
|
507
|
+
el[assignKey](castValue(el.value, trim, castToNumber));
|
|
508
|
+
});
|
|
509
|
+
if (trim || castToNumber) addEventListener(el, "change", () => {
|
|
510
|
+
el.value = castValue(el.value, trim, castToNumber);
|
|
511
|
+
});
|
|
512
|
+
if (!lazy) {
|
|
513
|
+
addEventListener(el, "compositionstart", onCompositionStart);
|
|
514
|
+
addEventListener(el, "compositionend", onCompositionEnd);
|
|
515
|
+
addEventListener(el, "change", onCompositionEnd);
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
mounted(el, { value }) {
|
|
519
|
+
el.value = value == null ? "" : value;
|
|
520
|
+
},
|
|
521
|
+
beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
|
|
522
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
523
|
+
if (el.composing) return;
|
|
524
|
+
const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value;
|
|
525
|
+
const newValue = value == null ? "" : value;
|
|
526
|
+
if (elValue === newValue) return;
|
|
527
|
+
if (document.activeElement === el && el.type !== "range") {
|
|
528
|
+
if (lazy && value === oldValue) return;
|
|
529
|
+
if (trim && el.value.trim() === newValue) return;
|
|
530
|
+
}
|
|
531
|
+
el.value = newValue;
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
var vModelCheckbox = {
|
|
535
|
+
deep: true,
|
|
536
|
+
created(el, _, vnode) {
|
|
537
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
538
|
+
addEventListener(el, "change", () => {
|
|
539
|
+
const modelValue = el._modelValue;
|
|
540
|
+
const elementValue = getValue(el);
|
|
541
|
+
const checked = el.checked;
|
|
542
|
+
const assign = el[assignKey];
|
|
543
|
+
if (isArray(modelValue)) {
|
|
544
|
+
const index = looseIndexOf(modelValue, elementValue);
|
|
545
|
+
const found = index !== -1;
|
|
546
|
+
if (checked && !found) assign(modelValue.concat(elementValue));
|
|
547
|
+
else if (!checked && found) {
|
|
548
|
+
const filtered = [...modelValue];
|
|
549
|
+
filtered.splice(index, 1);
|
|
550
|
+
assign(filtered);
|
|
551
|
+
}
|
|
552
|
+
} else if (isSet(modelValue)) {
|
|
553
|
+
const cloned = new Set(modelValue);
|
|
554
|
+
if (checked) cloned.add(elementValue);
|
|
555
|
+
else cloned.delete(elementValue);
|
|
556
|
+
assign(cloned);
|
|
557
|
+
} else assign(getCheckboxValue(el, checked));
|
|
558
|
+
});
|
|
559
|
+
},
|
|
560
|
+
mounted: setChecked,
|
|
561
|
+
beforeUpdate(el, binding, vnode) {
|
|
562
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
563
|
+
setChecked(el, binding, vnode);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
function setChecked(el, { value, oldValue }, vnode) {
|
|
567
|
+
el._modelValue = value;
|
|
568
|
+
let checked;
|
|
569
|
+
if (isArray(value)) checked = looseIndexOf(value, vnode.props.value) > -1;
|
|
570
|
+
else if (isSet(value)) checked = value.has(vnode.props.value);
|
|
571
|
+
else {
|
|
572
|
+
if (value === oldValue) return;
|
|
573
|
+
checked = looseEqual(value, getCheckboxValue(el, true));
|
|
574
|
+
}
|
|
575
|
+
if (el.checked !== checked) el.checked = checked;
|
|
576
|
+
}
|
|
577
|
+
var vModelRadio = {
|
|
578
|
+
created(el, { value }, vnode) {
|
|
579
|
+
el.checked = looseEqual(value, vnode.props.value);
|
|
580
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
581
|
+
addEventListener(el, "change", () => {
|
|
582
|
+
el[assignKey](getValue(el));
|
|
583
|
+
});
|
|
584
|
+
},
|
|
585
|
+
beforeUpdate(el, { value, oldValue }, vnode) {
|
|
586
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
587
|
+
if (value !== oldValue) el.checked = looseEqual(value, vnode.props.value);
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
var vModelSelect = {
|
|
591
|
+
deep: true,
|
|
592
|
+
created(el, { value, modifiers: { number } }, vnode) {
|
|
593
|
+
const isSetModel = isSet(value);
|
|
594
|
+
addEventListener(el, "change", () => {
|
|
595
|
+
const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? looseToNumber(getValue(o)) : getValue(o));
|
|
596
|
+
el[assignKey](el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0]);
|
|
597
|
+
el._assigning = true;
|
|
598
|
+
nextTick(() => {
|
|
599
|
+
el._assigning = false;
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
603
|
+
},
|
|
604
|
+
mounted(el, { value }) {
|
|
605
|
+
setSelected(el, value);
|
|
606
|
+
},
|
|
607
|
+
beforeUpdate(el, _binding, vnode) {
|
|
608
|
+
el[assignKey] = getModelAssigner(vnode);
|
|
609
|
+
},
|
|
610
|
+
updated(el, { value }) {
|
|
611
|
+
if (!el._assigning) setSelected(el, value);
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
function setSelected(el, value) {
|
|
615
|
+
const isMultiple = el.multiple;
|
|
616
|
+
const isArrayValue = isArray(value);
|
|
617
|
+
if (isMultiple && !isArrayValue && !isSet(value)) return;
|
|
618
|
+
for (let i = 0, l = el.options.length; i < l; i++) {
|
|
619
|
+
const option = el.options[i];
|
|
620
|
+
const optionValue = getValue(option);
|
|
621
|
+
if (isMultiple) if (isArrayValue) {
|
|
622
|
+
const optionType = typeof optionValue;
|
|
623
|
+
if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
|
|
624
|
+
else option.selected = looseIndexOf(value, optionValue) > -1;
|
|
625
|
+
} else option.selected = value.has(optionValue);
|
|
626
|
+
else if (looseEqual(getValue(option), value)) {
|
|
627
|
+
if (el.selectedIndex !== i) el.selectedIndex = i;
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
if (!isMultiple && el.selectedIndex !== -1) el.selectedIndex = -1;
|
|
632
|
+
}
|
|
633
|
+
function getValue(el) {
|
|
634
|
+
return "_value" in el ? el._value : el.value;
|
|
635
|
+
}
|
|
636
|
+
function getCheckboxValue(el, checked) {
|
|
637
|
+
const key = checked ? "_trueValue" : "_falseValue";
|
|
638
|
+
return key in el ? el[key] : checked;
|
|
639
|
+
}
|
|
640
|
+
var vModelDynamic = {
|
|
641
|
+
created(el, binding, vnode) {
|
|
642
|
+
callModelHook(el, binding, vnode, null, "created");
|
|
643
|
+
},
|
|
644
|
+
mounted(el, binding, vnode) {
|
|
645
|
+
callModelHook(el, binding, vnode, null, "mounted");
|
|
646
|
+
},
|
|
647
|
+
beforeUpdate(el, binding, vnode, prevVNode) {
|
|
648
|
+
callModelHook(el, binding, vnode, prevVNode, "beforeUpdate");
|
|
649
|
+
},
|
|
650
|
+
updated(el, binding, vnode, prevVNode) {
|
|
651
|
+
callModelHook(el, binding, vnode, prevVNode, "updated");
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
function resolveDynamicModel(tagName, type) {
|
|
655
|
+
switch (tagName) {
|
|
656
|
+
case "SELECT": return vModelSelect;
|
|
657
|
+
case "TEXTAREA": return vModelText;
|
|
658
|
+
default: switch (type) {
|
|
659
|
+
case "checkbox": return vModelCheckbox;
|
|
660
|
+
case "radio": return vModelRadio;
|
|
661
|
+
default: return vModelText;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
666
|
+
const fn = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type)[hook];
|
|
667
|
+
fn && fn(el, binding, vnode, prevVNode);
|
|
668
|
+
}
|
|
669
|
+
var keyNames = {
|
|
670
|
+
esc: "escape",
|
|
671
|
+
space: " ",
|
|
672
|
+
up: "arrow-up",
|
|
673
|
+
left: "arrow-left",
|
|
674
|
+
right: "arrow-right",
|
|
675
|
+
down: "arrow-down",
|
|
676
|
+
delete: "backspace"
|
|
677
|
+
};
|
|
678
|
+
var withKeys = (fn, modifiers) => {
|
|
679
|
+
const cache = fn._withKeys || (fn._withKeys = {});
|
|
680
|
+
const cacheKey = modifiers.join(".");
|
|
681
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
682
|
+
if (!("key" in event)) return;
|
|
683
|
+
const eventKey = hyphenate(event.key);
|
|
684
|
+
if (modifiers.some((k) => k === eventKey || keyNames[k] === eventKey)) return fn(event);
|
|
685
|
+
}));
|
|
686
|
+
};
|
|
687
|
+
var rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
688
|
+
var renderer;
|
|
689
|
+
function ensureRenderer() {
|
|
690
|
+
return renderer || (renderer = createRenderer(rendererOptions));
|
|
691
|
+
}
|
|
692
|
+
var createApp = ((...args) => {
|
|
693
|
+
const app = ensureRenderer().createApp(...args);
|
|
694
|
+
const { mount } = app;
|
|
695
|
+
app.mount = (containerOrSelector) => {
|
|
696
|
+
const container = normalizeContainer(containerOrSelector);
|
|
697
|
+
if (!container) return;
|
|
698
|
+
const component = app._component;
|
|
699
|
+
if (!isFunction(component) && !component.render && !component.template) component.template = container.innerHTML;
|
|
700
|
+
if (container.nodeType === 1) container.textContent = "";
|
|
701
|
+
const proxy = mount(container, false, resolveRootNamespace(container));
|
|
702
|
+
if (container instanceof Element) {
|
|
703
|
+
container.removeAttribute("v-cloak");
|
|
704
|
+
container.setAttribute("data-v-app", "");
|
|
705
|
+
}
|
|
706
|
+
return proxy;
|
|
707
|
+
};
|
|
708
|
+
return app;
|
|
709
|
+
});
|
|
710
|
+
function resolveRootNamespace(container) {
|
|
711
|
+
if (container instanceof SVGElement) return "svg";
|
|
712
|
+
if (typeof MathMLElement === "function" && container instanceof MathMLElement) return "mathml";
|
|
713
|
+
}
|
|
714
|
+
function normalizeContainer(container) {
|
|
715
|
+
if (isString(container)) return document.querySelector(container);
|
|
716
|
+
return container;
|
|
717
|
+
}
|
|
718
|
+
//#endregion
|
|
719
|
+
export { vModelRadio as a, withKeys as c, vModelDynamic as i, createApp as n, vModelSelect as o, vModelCheckbox as r, vModelText as s, Transition as t };
|