x-prop-tree 0.5.6 → 0.5.8
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/components/index.d.ts +4 -1
- package/dist/components/propTree/index.vue.d.ts +1 -1
- package/dist/components/propTree/utils/branch.d.ts +15 -0
- package/dist/components/propTree/utils/index.d.ts +2 -0
- package/dist/components/propTree/utils/propState.d.ts +15 -0
- package/dist/i18n/index.d.ts +1 -5
- package/dist/i18n/instance.d.ts +5 -0
- package/dist/i18n/locales/en/index.d.ts +9 -0
- package/dist/i18n/locales/zhHans/index.d.ts +9 -0
- package/dist/i18n-en-g17k76yy.js +11 -0
- package/dist/i18n-zhHans-f1nv26or.js +11 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1057 -936
- package/package.json +5 -6
- package/dist/components/propTree/utils.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useColor as
|
|
4
|
-
import {
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
var t =
|
|
1
|
+
import { defineComponent as H, ref as R, computed as Y, resolveDirective as fe, withDirectives as k, openBlock as C, createElementBlock as W, normalizeStyle as Ie, withModifiers as j, renderSlot as Tn, resolveComponent as P, createBlock as U, unref as N, isRef as xt, withCtx as K, createVNode as M, Fragment as Nt, renderList as $n, createTextVNode as Je, toDisplayString as xe, createElementVNode as Ee, createCommentVNode as Z, mergeModels as F, useModel as de, mergeProps as Ft, watch as qe, watchEffect as bn, reactive as An, h as _ } from "vue";
|
|
2
|
+
import { useI18n as Qe } from "vue-i18n";
|
|
3
|
+
import { useColor as ke, eventBus as Bt, useViewStack as Rt } from "x-essential-lib";
|
|
4
|
+
import { getPropDefault as L, parsePixelStr as wn, parsePercentStr as Sn } from "x-runtime-lib";
|
|
5
|
+
var Ht = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self, G = Ht || Pn || Function("return this")(), J = G.Symbol, jt = Object.prototype, On = jt.hasOwnProperty, Cn = jt.toString, me = J ? J.toStringTag : void 0;
|
|
6
|
+
function Vn(e) {
|
|
7
|
+
var t = On.call(e, me), n = e[me];
|
|
8
8
|
try {
|
|
9
|
-
e[
|
|
10
|
-
var
|
|
9
|
+
e[me] = void 0;
|
|
10
|
+
var r = !0;
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
return
|
|
13
|
+
var s = Cn.call(e);
|
|
14
|
+
return r && (t ? e[me] = n : delete e[me]), s;
|
|
15
15
|
}
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
return
|
|
16
|
+
var En = Object.prototype, Dn = En.toString;
|
|
17
|
+
function Ln(e) {
|
|
18
|
+
return Dn.call(e);
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
return e == null ? e === void 0 ?
|
|
20
|
+
var Mn = "[object Null]", Un = "[object Undefined]", st = J ? J.toStringTag : void 0;
|
|
21
|
+
function Te(e) {
|
|
22
|
+
return e == null ? e === void 0 ? Un : Mn : st && st in Object(e) ? Vn(e) : Ln(e);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function ee(e) {
|
|
25
25
|
return e != null && typeof e == "object";
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
function
|
|
27
|
+
var ye = Array.isArray;
|
|
28
|
+
function $e(e) {
|
|
29
29
|
var t = typeof e;
|
|
30
30
|
return e != null && (t == "object" || t == "function");
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
32
|
+
var xn = "[object AsyncFunction]", Nn = "[object Function]", Fn = "[object GeneratorFunction]", Bn = "[object Proxy]";
|
|
33
|
+
function Gt(e) {
|
|
34
|
+
if (!$e(e))
|
|
35
35
|
return !1;
|
|
36
|
-
var t =
|
|
37
|
-
return t ==
|
|
36
|
+
var t = Te(e);
|
|
37
|
+
return t == Nn || t == Fn || t == xn || t == Bn;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
var e = /[^.]+$/.exec(
|
|
39
|
+
var je = G["__core-js_shared__"], ut = function() {
|
|
40
|
+
var e = /[^.]+$/.exec(je && je.keys && je.keys.IE_PROTO || "");
|
|
41
41
|
return e ? "Symbol(src)_1." + e : "";
|
|
42
42
|
}();
|
|
43
|
-
function
|
|
44
|
-
return !!
|
|
43
|
+
function Rn(e) {
|
|
44
|
+
return !!ut && ut in e;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var Hn = Function.prototype, jn = Hn.toString;
|
|
47
|
+
function ne(e) {
|
|
48
48
|
if (e != null) {
|
|
49
49
|
try {
|
|
50
|
-
return
|
|
50
|
+
return jn.call(e);
|
|
51
51
|
} catch {
|
|
52
52
|
}
|
|
53
53
|
try {
|
|
@@ -57,754 +57,754 @@ function ee(e) {
|
|
|
57
57
|
}
|
|
58
58
|
return "";
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
"^" +
|
|
60
|
+
var Gn = /[\\^$.*+?()[\]{}|]/g, zn = /^\[object .+?Constructor\]$/, qn = Function.prototype, Kn = Object.prototype, Xn = qn.toString, Yn = Kn.hasOwnProperty, Zn = RegExp(
|
|
61
|
+
"^" + Xn.call(Yn).replace(Gn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
62
62
|
);
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
63
|
+
function Wn(e) {
|
|
64
|
+
if (!$e(e) || Rn(e))
|
|
65
65
|
return !1;
|
|
66
|
-
var t =
|
|
67
|
-
return t.test(
|
|
66
|
+
var t = Gt(e) ? Zn : zn;
|
|
67
|
+
return t.test(ne(e));
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function In(e, t) {
|
|
70
70
|
return e == null ? void 0 : e[t];
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var n =
|
|
74
|
-
return
|
|
72
|
+
function re(e, t) {
|
|
73
|
+
var n = In(e, t);
|
|
74
|
+
return Wn(n) ? n : void 0;
|
|
75
75
|
}
|
|
76
|
-
var
|
|
76
|
+
var Ke = re(G, "WeakMap"), ct = Object.create, Jn = /* @__PURE__ */ function() {
|
|
77
77
|
function e() {
|
|
78
78
|
}
|
|
79
79
|
return function(t) {
|
|
80
|
-
if (
|
|
80
|
+
if (!$e(t))
|
|
81
81
|
return {};
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
82
|
+
if (ct)
|
|
83
|
+
return ct(t);
|
|
84
84
|
e.prototype = t;
|
|
85
85
|
var n = new e();
|
|
86
86
|
return e.prototype = void 0, n;
|
|
87
87
|
};
|
|
88
88
|
}();
|
|
89
|
-
function
|
|
90
|
-
var n = -1,
|
|
91
|
-
for (t || (t = Array(
|
|
89
|
+
function Qn(e, t) {
|
|
90
|
+
var n = -1, r = e.length;
|
|
91
|
+
for (t || (t = Array(r)); ++n < r; )
|
|
92
92
|
t[n] = e[n];
|
|
93
93
|
return t;
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var ft = function() {
|
|
96
96
|
try {
|
|
97
|
-
var e =
|
|
97
|
+
var e = re(Object, "defineProperty");
|
|
98
98
|
return e({}, "", {}), e;
|
|
99
99
|
} catch {
|
|
100
100
|
}
|
|
101
101
|
}();
|
|
102
|
-
function
|
|
103
|
-
for (var n = -1,
|
|
102
|
+
function kn(e, t) {
|
|
103
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
104
104
|
;
|
|
105
105
|
return e;
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
107
|
+
var er = 9007199254740991, tr = /^(?:0|[1-9]\d*)$/;
|
|
108
|
+
function nr(e, t) {
|
|
109
109
|
var n = typeof e;
|
|
110
|
-
return t = t ??
|
|
110
|
+
return t = t ?? er, !!t && (n == "number" || n != "symbol" && tr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
t == "__proto__" &&
|
|
112
|
+
function zt(e, t, n) {
|
|
113
|
+
t == "__proto__" && ft ? ft(e, t, {
|
|
114
114
|
configurable: !0,
|
|
115
115
|
enumerable: !0,
|
|
116
116
|
value: n,
|
|
117
117
|
writable: !0
|
|
118
118
|
}) : e[t] = n;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function et(e, t) {
|
|
121
121
|
return e === t || e !== e && t !== t;
|
|
122
122
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
var
|
|
126
|
-
(!(
|
|
123
|
+
var rr = Object.prototype, ir = rr.hasOwnProperty;
|
|
124
|
+
function qt(e, t, n) {
|
|
125
|
+
var r = e[t];
|
|
126
|
+
(!(ir.call(e, t) && et(r, n)) || n === void 0 && !(t in e)) && zt(e, t, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
var
|
|
128
|
+
function Ne(e, t, n, r) {
|
|
129
|
+
var s = !n;
|
|
130
130
|
n || (n = {});
|
|
131
|
-
for (var
|
|
132
|
-
var
|
|
133
|
-
|
|
131
|
+
for (var l = -1, d = t.length; ++l < d; ) {
|
|
132
|
+
var f = t[l], p = void 0;
|
|
133
|
+
p === void 0 && (p = e[f]), s ? zt(n, f, p) : qt(n, f, p);
|
|
134
134
|
}
|
|
135
135
|
return n;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
139
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
137
|
+
var lr = 9007199254740991;
|
|
138
|
+
function Kt(e) {
|
|
139
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= lr;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return e != null &&
|
|
141
|
+
function Xt(e) {
|
|
142
|
+
return e != null && Kt(e.length) && !Gt(e);
|
|
143
143
|
}
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
144
|
+
var ar = Object.prototype;
|
|
145
|
+
function tt(e) {
|
|
146
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || ar;
|
|
147
147
|
return e === n;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
for (var n = -1,
|
|
151
|
-
|
|
152
|
-
return
|
|
149
|
+
function or(e, t) {
|
|
150
|
+
for (var n = -1, r = Array(e); ++n < e; )
|
|
151
|
+
r[n] = t(n);
|
|
152
|
+
return r;
|
|
153
153
|
}
|
|
154
|
-
var
|
|
155
|
-
function
|
|
156
|
-
return
|
|
154
|
+
var sr = "[object Arguments]";
|
|
155
|
+
function dt(e) {
|
|
156
|
+
return ee(e) && Te(e) == sr;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var Yt = Object.prototype, ur = Yt.hasOwnProperty, cr = Yt.propertyIsEnumerable, fr = dt(/* @__PURE__ */ function() {
|
|
159
159
|
return arguments;
|
|
160
|
-
}()) ?
|
|
161
|
-
return
|
|
160
|
+
}()) ? dt : function(e) {
|
|
161
|
+
return ee(e) && ur.call(e, "callee") && !cr.call(e, "callee");
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function dr() {
|
|
164
164
|
return !1;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
167
|
-
S[
|
|
168
|
-
S[
|
|
169
|
-
function
|
|
170
|
-
return
|
|
166
|
+
var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, pt = Zt && typeof module == "object" && module && !module.nodeType && module, pr = pt && pt.exports === Zt, vt = pr ? G.Buffer : void 0, vr = vt ? vt.isBuffer : void 0, De = vr || dr, mr = "[object Arguments]", gr = "[object Array]", yr = "[object Boolean]", _r = "[object Date]", hr = "[object Error]", Tr = "[object Function]", $r = "[object Map]", br = "[object Number]", Ar = "[object Object]", wr = "[object RegExp]", Sr = "[object Set]", Pr = "[object String]", Or = "[object WeakMap]", Cr = "[object ArrayBuffer]", Vr = "[object DataView]", Er = "[object Float32Array]", Dr = "[object Float64Array]", Lr = "[object Int8Array]", Mr = "[object Int16Array]", Ur = "[object Int32Array]", xr = "[object Uint8Array]", Nr = "[object Uint8ClampedArray]", Fr = "[object Uint16Array]", Br = "[object Uint32Array]", S = {};
|
|
167
|
+
S[Er] = S[Dr] = S[Lr] = S[Mr] = S[Ur] = S[xr] = S[Nr] = S[Fr] = S[Br] = !0;
|
|
168
|
+
S[mr] = S[gr] = S[Cr] = S[yr] = S[Vr] = S[_r] = S[hr] = S[Tr] = S[$r] = S[br] = S[Ar] = S[wr] = S[Sr] = S[Pr] = S[Or] = !1;
|
|
169
|
+
function Rr(e) {
|
|
170
|
+
return ee(e) && Kt(e.length) && !!S[Te(e)];
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function nt(e) {
|
|
173
173
|
return function(t) {
|
|
174
174
|
return e(t);
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var Wt = typeof exports == "object" && exports && !exports.nodeType && exports, ge = Wt && typeof module == "object" && module && !module.nodeType && module, Hr = ge && ge.exports === Wt, Ge = Hr && Ht.process, ce = function() {
|
|
178
178
|
try {
|
|
179
|
-
var e =
|
|
180
|
-
return e ||
|
|
179
|
+
var e = ge && ge.require && ge.require("util").types;
|
|
180
|
+
return e || Ge && Ge.binding && Ge.binding("util");
|
|
181
181
|
} catch {
|
|
182
182
|
}
|
|
183
|
-
}(),
|
|
184
|
-
function
|
|
185
|
-
var n =
|
|
186
|
-
for (var
|
|
187
|
-
(t ||
|
|
188
|
-
(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
return
|
|
193
|
-
}
|
|
194
|
-
function
|
|
183
|
+
}(), mt = ce && ce.isTypedArray, It = mt ? nt(mt) : Rr, jr = Object.prototype, Gr = jr.hasOwnProperty;
|
|
184
|
+
function Jt(e, t) {
|
|
185
|
+
var n = ye(e), r = !n && fr(e), s = !n && !r && De(e), l = !n && !r && !s && It(e), d = n || r || s || l, f = d ? or(e.length, String) : [], p = f.length;
|
|
186
|
+
for (var c in e)
|
|
187
|
+
(t || Gr.call(e, c)) && !(d && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
188
|
+
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
189
|
+
s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
190
|
+
l && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
191
|
+
nr(c, p))) && f.push(c);
|
|
192
|
+
return f;
|
|
193
|
+
}
|
|
194
|
+
function Qt(e, t) {
|
|
195
195
|
return function(n) {
|
|
196
196
|
return e(t(n));
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
201
|
-
if (!
|
|
202
|
-
return
|
|
199
|
+
var zr = Qt(Object.keys, Object), qr = Object.prototype, Kr = qr.hasOwnProperty;
|
|
200
|
+
function Xr(e) {
|
|
201
|
+
if (!tt(e))
|
|
202
|
+
return zr(e);
|
|
203
203
|
var t = [];
|
|
204
204
|
for (var n in Object(e))
|
|
205
|
-
|
|
205
|
+
Kr.call(e, n) && n != "constructor" && t.push(n);
|
|
206
206
|
return t;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
208
|
+
function rt(e) {
|
|
209
|
+
return Xt(e) ? Jt(e) : Xr(e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Yr(e) {
|
|
212
212
|
var t = [];
|
|
213
213
|
if (e != null)
|
|
214
214
|
for (var n in Object(e))
|
|
215
215
|
t.push(n);
|
|
216
216
|
return t;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
222
|
-
var t =
|
|
223
|
-
for (var
|
|
224
|
-
|
|
218
|
+
var Zr = Object.prototype, Wr = Zr.hasOwnProperty;
|
|
219
|
+
function Ir(e) {
|
|
220
|
+
if (!$e(e))
|
|
221
|
+
return Yr(e);
|
|
222
|
+
var t = tt(e), n = [];
|
|
223
|
+
for (var r in e)
|
|
224
|
+
r == "constructor" && (t || !Wr.call(e, r)) || n.push(r);
|
|
225
225
|
return n;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
227
|
+
function it(e) {
|
|
228
|
+
return Xt(e) ? Jt(e, !0) : Ir(e);
|
|
229
229
|
}
|
|
230
|
-
var
|
|
231
|
-
function
|
|
232
|
-
this.__data__ =
|
|
230
|
+
var _e = re(Object, "create");
|
|
231
|
+
function Jr() {
|
|
232
|
+
this.__data__ = _e ? _e(null) : {}, this.size = 0;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Qr(e) {
|
|
235
235
|
var t = this.has(e) && delete this.__data__[e];
|
|
236
236
|
return this.size -= t ? 1 : 0, t;
|
|
237
237
|
}
|
|
238
|
-
var
|
|
239
|
-
function
|
|
238
|
+
var kr = "__lodash_hash_undefined__", ei = Object.prototype, ti = ei.hasOwnProperty;
|
|
239
|
+
function ni(e) {
|
|
240
240
|
var t = this.__data__;
|
|
241
|
-
if (
|
|
241
|
+
if (_e) {
|
|
242
242
|
var n = t[e];
|
|
243
|
-
return n ===
|
|
243
|
+
return n === kr ? void 0 : n;
|
|
244
244
|
}
|
|
245
|
-
return
|
|
245
|
+
return ti.call(t, e) ? t[e] : void 0;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
248
|
-
function
|
|
247
|
+
var ri = Object.prototype, ii = ri.hasOwnProperty;
|
|
248
|
+
function li(e) {
|
|
249
249
|
var t = this.__data__;
|
|
250
|
-
return
|
|
250
|
+
return _e ? t[e] !== void 0 : ii.call(t, e);
|
|
251
251
|
}
|
|
252
|
-
var
|
|
253
|
-
function
|
|
252
|
+
var ai = "__lodash_hash_undefined__";
|
|
253
|
+
function oi(e, t) {
|
|
254
254
|
var n = this.__data__;
|
|
255
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
255
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = _e && t === void 0 ? ai : t, this;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function te(e) {
|
|
258
258
|
var t = -1, n = e == null ? 0 : e.length;
|
|
259
259
|
for (this.clear(); ++t < n; ) {
|
|
260
|
-
var
|
|
261
|
-
this.set(
|
|
260
|
+
var r = e[t];
|
|
261
|
+
this.set(r[0], r[1]);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
function
|
|
264
|
+
te.prototype.clear = Jr;
|
|
265
|
+
te.prototype.delete = Qr;
|
|
266
|
+
te.prototype.get = ni;
|
|
267
|
+
te.prototype.has = li;
|
|
268
|
+
te.prototype.set = oi;
|
|
269
|
+
function si() {
|
|
270
270
|
this.__data__ = [], this.size = 0;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Fe(e, t) {
|
|
273
273
|
for (var n = e.length; n--; )
|
|
274
|
-
if (
|
|
274
|
+
if (et(e[n][0], t))
|
|
275
275
|
return n;
|
|
276
276
|
return -1;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
var t = this.__data__, n =
|
|
278
|
+
var ui = Array.prototype, ci = ui.splice;
|
|
279
|
+
function fi(e) {
|
|
280
|
+
var t = this.__data__, n = Fe(t, e);
|
|
281
281
|
if (n < 0)
|
|
282
282
|
return !1;
|
|
283
|
-
var
|
|
284
|
-
return n ==
|
|
283
|
+
var r = t.length - 1;
|
|
284
|
+
return n == r ? t.pop() : ci.call(t, n, 1), --this.size, !0;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
var t = this.__data__, n =
|
|
286
|
+
function di(e) {
|
|
287
|
+
var t = this.__data__, n = Fe(t, e);
|
|
288
288
|
return n < 0 ? void 0 : t[n][1];
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
function pi(e) {
|
|
291
|
+
return Fe(this.__data__, e) > -1;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
var n = this.__data__,
|
|
295
|
-
return
|
|
293
|
+
function vi(e, t) {
|
|
294
|
+
var n = this.__data__, r = Fe(n, e);
|
|
295
|
+
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function I(e) {
|
|
298
298
|
var t = -1, n = e == null ? 0 : e.length;
|
|
299
299
|
for (this.clear(); ++t < n; ) {
|
|
300
|
-
var
|
|
301
|
-
this.set(
|
|
300
|
+
var r = e[t];
|
|
301
|
+
this.set(r[0], r[1]);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var
|
|
310
|
-
function
|
|
304
|
+
I.prototype.clear = si;
|
|
305
|
+
I.prototype.delete = fi;
|
|
306
|
+
I.prototype.get = di;
|
|
307
|
+
I.prototype.has = pi;
|
|
308
|
+
I.prototype.set = vi;
|
|
309
|
+
var he = re(G, "Map");
|
|
310
|
+
function mi() {
|
|
311
311
|
this.size = 0, this.__data__ = {
|
|
312
|
-
hash: new
|
|
313
|
-
map: new (
|
|
314
|
-
string: new
|
|
312
|
+
hash: new te(),
|
|
313
|
+
map: new (he || I)(),
|
|
314
|
+
string: new te()
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function gi(e) {
|
|
318
318
|
var t = typeof e;
|
|
319
319
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Be(e, t) {
|
|
322
322
|
var n = e.__data__;
|
|
323
|
-
return
|
|
323
|
+
return gi(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
var t =
|
|
325
|
+
function yi(e) {
|
|
326
|
+
var t = Be(this, e).delete(e);
|
|
327
327
|
return this.size -= t ? 1 : 0, t;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
329
|
+
function _i(e) {
|
|
330
|
+
return Be(this, e).get(e);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
return
|
|
332
|
+
function hi(e) {
|
|
333
|
+
return Be(this, e).has(e);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
var n =
|
|
337
|
-
return n.set(e, t), this.size += n.size ==
|
|
335
|
+
function Ti(e, t) {
|
|
336
|
+
var n = Be(this, e), r = n.size;
|
|
337
|
+
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function ie(e) {
|
|
340
340
|
var t = -1, n = e == null ? 0 : e.length;
|
|
341
341
|
for (this.clear(); ++t < n; ) {
|
|
342
|
-
var
|
|
343
|
-
this.set(
|
|
342
|
+
var r = e[t];
|
|
343
|
+
this.set(r[0], r[1]);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
function
|
|
352
|
-
for (var n = -1,
|
|
353
|
-
e[
|
|
346
|
+
ie.prototype.clear = mi;
|
|
347
|
+
ie.prototype.delete = yi;
|
|
348
|
+
ie.prototype.get = _i;
|
|
349
|
+
ie.prototype.has = hi;
|
|
350
|
+
ie.prototype.set = Ti;
|
|
351
|
+
function kt(e, t) {
|
|
352
|
+
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
353
|
+
e[s + n] = t[n];
|
|
354
354
|
return e;
|
|
355
355
|
}
|
|
356
|
-
var
|
|
357
|
-
function
|
|
358
|
-
this.__data__ = new
|
|
356
|
+
var en = Qt(Object.getPrototypeOf, Object);
|
|
357
|
+
function $i() {
|
|
358
|
+
this.__data__ = new I(), this.size = 0;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function bi(e) {
|
|
361
361
|
var t = this.__data__, n = t.delete(e);
|
|
362
362
|
return this.size = t.size, n;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ai(e) {
|
|
365
365
|
return this.__data__.get(e);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function wi(e) {
|
|
368
368
|
return this.__data__.has(e);
|
|
369
369
|
}
|
|
370
|
-
var
|
|
371
|
-
function
|
|
370
|
+
var Si = 200;
|
|
371
|
+
function Pi(e, t) {
|
|
372
372
|
var n = this.__data__;
|
|
373
|
-
if (n instanceof
|
|
374
|
-
var
|
|
375
|
-
if (!
|
|
376
|
-
return
|
|
377
|
-
n = this.__data__ = new
|
|
373
|
+
if (n instanceof I) {
|
|
374
|
+
var r = n.__data__;
|
|
375
|
+
if (!he || r.length < Si - 1)
|
|
376
|
+
return r.push([e, t]), this.size = ++n.size, this;
|
|
377
|
+
n = this.__data__ = new ie(r);
|
|
378
378
|
}
|
|
379
379
|
return n.set(e, t), this.size = n.size, this;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
var t = this.__data__ = new
|
|
381
|
+
function X(e) {
|
|
382
|
+
var t = this.__data__ = new I(e);
|
|
383
383
|
this.size = t.size;
|
|
384
384
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
function
|
|
391
|
-
return e &&
|
|
385
|
+
X.prototype.clear = $i;
|
|
386
|
+
X.prototype.delete = bi;
|
|
387
|
+
X.prototype.get = Ai;
|
|
388
|
+
X.prototype.has = wi;
|
|
389
|
+
X.prototype.set = Pi;
|
|
390
|
+
function Oi(e, t) {
|
|
391
|
+
return e && Ne(t, rt(t), e);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
return e &&
|
|
393
|
+
function Ci(e, t) {
|
|
394
|
+
return e && Ne(t, it(t), e);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
396
|
+
var tn = typeof exports == "object" && exports && !exports.nodeType && exports, gt = tn && typeof module == "object" && module && !module.nodeType && module, Vi = gt && gt.exports === tn, yt = Vi ? G.Buffer : void 0, _t = yt ? yt.allocUnsafe : void 0;
|
|
397
|
+
function Ei(e, t) {
|
|
398
398
|
if (t)
|
|
399
399
|
return e.slice();
|
|
400
|
-
var n = e.length,
|
|
401
|
-
return e.copy(
|
|
400
|
+
var n = e.length, r = _t ? _t(n) : new e.constructor(n);
|
|
401
|
+
return e.copy(r), r;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
for (var n = -1,
|
|
403
|
+
function Di(e, t) {
|
|
404
|
+
for (var n = -1, r = e == null ? 0 : e.length, s = 0, l = []; ++n < r; ) {
|
|
405
405
|
var d = e[n];
|
|
406
|
-
t(d, n, e) && (s
|
|
406
|
+
t(d, n, e) && (l[s++] = d);
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return l;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function nn() {
|
|
411
411
|
return [];
|
|
412
412
|
}
|
|
413
|
-
var
|
|
414
|
-
return e == null ? [] : (e = Object(e),
|
|
415
|
-
return
|
|
413
|
+
var Li = Object.prototype, Mi = Li.propertyIsEnumerable, ht = Object.getOwnPropertySymbols, lt = ht ? function(e) {
|
|
414
|
+
return e == null ? [] : (e = Object(e), Di(ht(e), function(t) {
|
|
415
|
+
return Mi.call(e, t);
|
|
416
416
|
}));
|
|
417
|
-
} :
|
|
418
|
-
function
|
|
419
|
-
return
|
|
417
|
+
} : nn;
|
|
418
|
+
function Ui(e, t) {
|
|
419
|
+
return Ne(e, lt(e), t);
|
|
420
420
|
}
|
|
421
|
-
var
|
|
421
|
+
var xi = Object.getOwnPropertySymbols, rn = xi ? function(e) {
|
|
422
422
|
for (var t = []; e; )
|
|
423
|
-
|
|
423
|
+
kt(t, lt(e)), e = en(e);
|
|
424
424
|
return t;
|
|
425
|
-
} :
|
|
426
|
-
function
|
|
427
|
-
return
|
|
428
|
-
}
|
|
429
|
-
function
|
|
430
|
-
var
|
|
431
|
-
return
|
|
432
|
-
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
435
|
-
}
|
|
436
|
-
function
|
|
437
|
-
return
|
|
438
|
-
}
|
|
439
|
-
var
|
|
440
|
-
(
|
|
441
|
-
var t =
|
|
442
|
-
if (
|
|
443
|
-
switch (
|
|
444
|
-
case
|
|
445
|
-
return
|
|
446
|
-
case
|
|
447
|
-
return
|
|
448
|
-
case
|
|
449
|
-
return
|
|
450
|
-
case
|
|
451
|
-
return
|
|
452
|
-
case
|
|
453
|
-
return
|
|
425
|
+
} : nn;
|
|
426
|
+
function Ni(e, t) {
|
|
427
|
+
return Ne(e, rn(e), t);
|
|
428
|
+
}
|
|
429
|
+
function ln(e, t, n) {
|
|
430
|
+
var r = t(e);
|
|
431
|
+
return ye(e) ? r : kt(r, n(e));
|
|
432
|
+
}
|
|
433
|
+
function Xe(e) {
|
|
434
|
+
return ln(e, rt, lt);
|
|
435
|
+
}
|
|
436
|
+
function Fi(e) {
|
|
437
|
+
return ln(e, it, rn);
|
|
438
|
+
}
|
|
439
|
+
var Ye = re(G, "DataView"), Ze = re(G, "Promise"), We = re(G, "Set"), Tt = "[object Map]", Bi = "[object Object]", $t = "[object Promise]", bt = "[object Set]", At = "[object WeakMap]", wt = "[object DataView]", Ri = ne(Ye), Hi = ne(he), ji = ne(Ze), Gi = ne(We), zi = ne(Ke), B = Te;
|
|
440
|
+
(Ye && B(new Ye(new ArrayBuffer(1))) != wt || he && B(new he()) != Tt || Ze && B(Ze.resolve()) != $t || We && B(new We()) != bt || Ke && B(new Ke()) != At) && (B = function(e) {
|
|
441
|
+
var t = Te(e), n = t == Bi ? e.constructor : void 0, r = n ? ne(n) : "";
|
|
442
|
+
if (r)
|
|
443
|
+
switch (r) {
|
|
444
|
+
case Ri:
|
|
445
|
+
return wt;
|
|
446
|
+
case Hi:
|
|
447
|
+
return Tt;
|
|
448
|
+
case ji:
|
|
449
|
+
return $t;
|
|
450
|
+
case Gi:
|
|
451
|
+
return bt;
|
|
452
|
+
case zi:
|
|
453
|
+
return At;
|
|
454
454
|
}
|
|
455
455
|
return t;
|
|
456
456
|
});
|
|
457
|
-
var
|
|
458
|
-
function
|
|
457
|
+
var qi = Object.prototype, Ki = qi.hasOwnProperty;
|
|
458
|
+
function Xi(e) {
|
|
459
459
|
var t = e.length, n = new e.constructor(t);
|
|
460
|
-
return t && typeof e[0] == "string" &&
|
|
460
|
+
return t && typeof e[0] == "string" && Ki.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
462
|
+
var Le = G.Uint8Array;
|
|
463
|
+
function at(e) {
|
|
464
464
|
var t = new e.constructor(e.byteLength);
|
|
465
|
-
return new
|
|
465
|
+
return new Le(t).set(new Le(e)), t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
var n = t ?
|
|
467
|
+
function Yi(e, t) {
|
|
468
|
+
var n = t ? at(e.buffer) : e.buffer;
|
|
469
469
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
473
|
-
var t = new e.constructor(e.source,
|
|
471
|
+
var Zi = /\w*$/;
|
|
472
|
+
function Wi(e) {
|
|
473
|
+
var t = new e.constructor(e.source, Zi.exec(e));
|
|
474
474
|
return t.lastIndex = e.lastIndex, t;
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
478
|
-
return
|
|
476
|
+
var St = J ? J.prototype : void 0, Pt = St ? St.valueOf : void 0;
|
|
477
|
+
function Ii(e) {
|
|
478
|
+
return Pt ? Object(Pt.call(e)) : {};
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
var n = t ?
|
|
480
|
+
function Ji(e, t) {
|
|
481
|
+
var n = t ? at(e.buffer) : e.buffer;
|
|
482
482
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
function
|
|
486
|
-
var
|
|
484
|
+
var Qi = "[object Boolean]", ki = "[object Date]", el = "[object Map]", tl = "[object Number]", nl = "[object RegExp]", rl = "[object Set]", il = "[object String]", ll = "[object Symbol]", al = "[object ArrayBuffer]", ol = "[object DataView]", sl = "[object Float32Array]", ul = "[object Float64Array]", cl = "[object Int8Array]", fl = "[object Int16Array]", dl = "[object Int32Array]", pl = "[object Uint8Array]", vl = "[object Uint8ClampedArray]", ml = "[object Uint16Array]", gl = "[object Uint32Array]";
|
|
485
|
+
function yl(e, t, n) {
|
|
486
|
+
var r = e.constructor;
|
|
487
487
|
switch (t) {
|
|
488
|
-
case
|
|
489
|
-
return
|
|
490
|
-
case
|
|
491
|
-
case
|
|
492
|
-
return new
|
|
493
|
-
case
|
|
494
|
-
return
|
|
495
|
-
case
|
|
496
|
-
case
|
|
497
|
-
case
|
|
498
|
-
case
|
|
499
|
-
case
|
|
500
|
-
case
|
|
501
|
-
case
|
|
502
|
-
case
|
|
503
|
-
case
|
|
504
|
-
return
|
|
505
|
-
case
|
|
506
|
-
return new
|
|
507
|
-
case
|
|
508
|
-
case
|
|
509
|
-
return new
|
|
510
|
-
case
|
|
511
|
-
return
|
|
512
|
-
case
|
|
513
|
-
return new
|
|
514
|
-
case
|
|
515
|
-
return
|
|
488
|
+
case al:
|
|
489
|
+
return at(e);
|
|
490
|
+
case Qi:
|
|
491
|
+
case ki:
|
|
492
|
+
return new r(+e);
|
|
493
|
+
case ol:
|
|
494
|
+
return Yi(e, n);
|
|
495
|
+
case sl:
|
|
496
|
+
case ul:
|
|
497
|
+
case cl:
|
|
498
|
+
case fl:
|
|
499
|
+
case dl:
|
|
500
|
+
case pl:
|
|
501
|
+
case vl:
|
|
502
|
+
case ml:
|
|
503
|
+
case gl:
|
|
504
|
+
return Ji(e, n);
|
|
505
|
+
case el:
|
|
506
|
+
return new r();
|
|
507
|
+
case tl:
|
|
508
|
+
case il:
|
|
509
|
+
return new r(e);
|
|
510
|
+
case nl:
|
|
511
|
+
return Wi(e);
|
|
512
|
+
case rl:
|
|
513
|
+
return new r();
|
|
514
|
+
case ll:
|
|
515
|
+
return Ii(e);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return typeof e.constructor == "function" && !
|
|
518
|
+
function _l(e) {
|
|
519
|
+
return typeof e.constructor == "function" && !tt(e) ? Jn(en(e)) : {};
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
function
|
|
523
|
-
return
|
|
521
|
+
var hl = "[object Map]";
|
|
522
|
+
function Tl(e) {
|
|
523
|
+
return ee(e) && B(e) == hl;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
526
|
-
function
|
|
527
|
-
return
|
|
525
|
+
var Ot = ce && ce.isMap, $l = Ot ? nt(Ot) : Tl, bl = "[object Set]";
|
|
526
|
+
function Al(e) {
|
|
527
|
+
return ee(e) && B(e) == bl;
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
function
|
|
533
|
-
var d,
|
|
529
|
+
var Ct = ce && ce.isSet, wl = Ct ? nt(Ct) : Al, Sl = 1, Pl = 2, Ol = 4, an = "[object Arguments]", Cl = "[object Array]", Vl = "[object Boolean]", El = "[object Date]", Dl = "[object Error]", on = "[object Function]", Ll = "[object GeneratorFunction]", Ml = "[object Map]", Ul = "[object Number]", sn = "[object Object]", xl = "[object RegExp]", Nl = "[object Set]", Fl = "[object String]", Bl = "[object Symbol]", Rl = "[object WeakMap]", Hl = "[object ArrayBuffer]", jl = "[object DataView]", Gl = "[object Float32Array]", zl = "[object Float64Array]", ql = "[object Int8Array]", Kl = "[object Int16Array]", Xl = "[object Int32Array]", Yl = "[object Uint8Array]", Zl = "[object Uint8ClampedArray]", Wl = "[object Uint16Array]", Il = "[object Uint32Array]", A = {};
|
|
530
|
+
A[an] = A[Cl] = A[Hl] = A[jl] = A[Vl] = A[El] = A[Gl] = A[zl] = A[ql] = A[Kl] = A[Xl] = A[Ml] = A[Ul] = A[sn] = A[xl] = A[Nl] = A[Fl] = A[Bl] = A[Yl] = A[Zl] = A[Wl] = A[Il] = !0;
|
|
531
|
+
A[Dl] = A[on] = A[Rl] = !1;
|
|
532
|
+
function Ve(e, t, n, r, s, l) {
|
|
533
|
+
var d, f = t & Sl, p = t & Pl, c = t & Ol;
|
|
534
534
|
if (d !== void 0)
|
|
535
535
|
return d;
|
|
536
|
-
if (
|
|
536
|
+
if (!$e(e))
|
|
537
537
|
return e;
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
540
|
-
if (d =
|
|
541
|
-
return
|
|
538
|
+
var g = ye(e);
|
|
539
|
+
if (g) {
|
|
540
|
+
if (d = Xi(e), !f)
|
|
541
|
+
return Qn(e, d);
|
|
542
542
|
} else {
|
|
543
|
-
var
|
|
544
|
-
if (
|
|
545
|
-
return
|
|
546
|
-
if (
|
|
547
|
-
if (d =
|
|
548
|
-
return
|
|
543
|
+
var h = B(e), y = h == on || h == Ll;
|
|
544
|
+
if (De(e))
|
|
545
|
+
return Ei(e, f);
|
|
546
|
+
if (h == sn || h == an || y && !s) {
|
|
547
|
+
if (d = p || y ? {} : _l(e), !f)
|
|
548
|
+
return p ? Ni(e, Ci(d, e)) : Ui(e, Oi(d, e));
|
|
549
549
|
} else {
|
|
550
|
-
if (!
|
|
551
|
-
return
|
|
552
|
-
d =
|
|
550
|
+
if (!A[h])
|
|
551
|
+
return s ? e : {};
|
|
552
|
+
d = yl(e, h, f);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
|
|
556
|
-
var
|
|
557
|
-
if (
|
|
558
|
-
return
|
|
559
|
-
|
|
560
|
-
d.add(
|
|
561
|
-
}) :
|
|
562
|
-
d.set(
|
|
555
|
+
l || (l = new X());
|
|
556
|
+
var T = l.get(e);
|
|
557
|
+
if (T)
|
|
558
|
+
return T;
|
|
559
|
+
l.set(e, d), wl(e) ? e.forEach(function(V) {
|
|
560
|
+
d.add(Ve(V, t, n, V, e, l));
|
|
561
|
+
}) : $l(e) && e.forEach(function(V, D) {
|
|
562
|
+
d.set(D, Ve(V, t, n, D, e, l));
|
|
563
563
|
});
|
|
564
|
-
var
|
|
565
|
-
return
|
|
566
|
-
|
|
564
|
+
var $ = c ? p ? Fi : Xe : p ? it : rt, b = g ? void 0 : $(e);
|
|
565
|
+
return kn(b || e, function(V, D) {
|
|
566
|
+
b && (D = V, V = e[D]), qt(d, D, Ve(V, t, n, D, e, l));
|
|
567
567
|
}), d;
|
|
568
568
|
}
|
|
569
|
-
var
|
|
570
|
-
function
|
|
571
|
-
return
|
|
569
|
+
var Jl = 1, Ql = 4;
|
|
570
|
+
function un(e) {
|
|
571
|
+
return Ve(e, Jl | Ql);
|
|
572
572
|
}
|
|
573
|
-
var
|
|
574
|
-
function
|
|
575
|
-
return this.__data__.set(e,
|
|
573
|
+
var kl = "__lodash_hash_undefined__";
|
|
574
|
+
function ea(e) {
|
|
575
|
+
return this.__data__.set(e, kl), this;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function ta(e) {
|
|
578
578
|
return this.__data__.has(e);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Me(e) {
|
|
581
581
|
var t = -1, n = e == null ? 0 : e.length;
|
|
582
|
-
for (this.__data__ = new
|
|
582
|
+
for (this.__data__ = new ie(); ++t < n; )
|
|
583
583
|
this.add(e[t]);
|
|
584
584
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
function
|
|
588
|
-
for (var n = -1,
|
|
585
|
+
Me.prototype.add = Me.prototype.push = ea;
|
|
586
|
+
Me.prototype.has = ta;
|
|
587
|
+
function na(e, t) {
|
|
588
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
589
589
|
if (t(e[n], n, e))
|
|
590
590
|
return !0;
|
|
591
591
|
return !1;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function ra(e, t) {
|
|
594
594
|
return e.has(t);
|
|
595
595
|
}
|
|
596
|
-
var
|
|
597
|
-
function
|
|
598
|
-
var d = n &
|
|
599
|
-
if (
|
|
596
|
+
var ia = 1, la = 2;
|
|
597
|
+
function cn(e, t, n, r, s, l) {
|
|
598
|
+
var d = n & ia, f = e.length, p = t.length;
|
|
599
|
+
if (f != p && !(d && p > f))
|
|
600
600
|
return !1;
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
var
|
|
605
|
-
for (
|
|
606
|
-
var
|
|
607
|
-
if (
|
|
608
|
-
var V = d ?
|
|
601
|
+
var c = l.get(e), g = l.get(t);
|
|
602
|
+
if (c && g)
|
|
603
|
+
return c == t && g == e;
|
|
604
|
+
var h = -1, y = !0, T = n & la ? new Me() : void 0;
|
|
605
|
+
for (l.set(e, t), l.set(t, e); ++h < f; ) {
|
|
606
|
+
var $ = e[h], b = t[h];
|
|
607
|
+
if (r)
|
|
608
|
+
var V = d ? r(b, $, h, t, e, l) : r($, b, h, e, t, l);
|
|
609
609
|
if (V !== void 0) {
|
|
610
610
|
if (V)
|
|
611
611
|
continue;
|
|
612
|
-
|
|
612
|
+
y = !1;
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
|
-
if (
|
|
616
|
-
if (!
|
|
617
|
-
if (!
|
|
618
|
-
return
|
|
615
|
+
if (T) {
|
|
616
|
+
if (!na(t, function(D, z) {
|
|
617
|
+
if (!ra(T, z) && ($ === D || s($, D, n, r, l)))
|
|
618
|
+
return T.push(z);
|
|
619
619
|
})) {
|
|
620
|
-
|
|
620
|
+
y = !1;
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
623
|
-
} else if (!(
|
|
624
|
-
|
|
623
|
+
} else if (!($ === b || s($, b, n, r, l))) {
|
|
624
|
+
y = !1;
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return l.delete(e), l.delete(t), y;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function aa(e) {
|
|
631
631
|
var t = -1, n = Array(e.size);
|
|
632
|
-
return e.forEach(function(
|
|
633
|
-
n[++t] = [
|
|
632
|
+
return e.forEach(function(r, s) {
|
|
633
|
+
n[++t] = [s, r];
|
|
634
634
|
}), n;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function oa(e) {
|
|
637
637
|
var t = -1, n = Array(e.size);
|
|
638
|
-
return e.forEach(function(
|
|
639
|
-
n[++t] =
|
|
638
|
+
return e.forEach(function(r) {
|
|
639
|
+
n[++t] = r;
|
|
640
640
|
}), n;
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var sa = 1, ua = 2, ca = "[object Boolean]", fa = "[object Date]", da = "[object Error]", pa = "[object Map]", va = "[object Number]", ma = "[object RegExp]", ga = "[object Set]", ya = "[object String]", _a = "[object Symbol]", ha = "[object ArrayBuffer]", Ta = "[object DataView]", Vt = J ? J.prototype : void 0, ze = Vt ? Vt.valueOf : void 0;
|
|
643
|
+
function $a(e, t, n, r, s, l, d) {
|
|
644
644
|
switch (n) {
|
|
645
|
-
case
|
|
645
|
+
case Ta:
|
|
646
646
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
647
647
|
return !1;
|
|
648
648
|
e = e.buffer, t = t.buffer;
|
|
649
|
-
case
|
|
650
|
-
return !(e.byteLength != t.byteLength || !
|
|
651
|
-
case
|
|
652
|
-
case
|
|
653
|
-
case
|
|
654
|
-
return
|
|
655
|
-
case
|
|
649
|
+
case ha:
|
|
650
|
+
return !(e.byteLength != t.byteLength || !l(new Le(e), new Le(t)));
|
|
651
|
+
case ca:
|
|
652
|
+
case fa:
|
|
653
|
+
case va:
|
|
654
|
+
return et(+e, +t);
|
|
655
|
+
case da:
|
|
656
656
|
return e.name == t.name && e.message == t.message;
|
|
657
|
-
case
|
|
658
|
-
case
|
|
657
|
+
case ma:
|
|
658
|
+
case ya:
|
|
659
659
|
return e == t + "";
|
|
660
|
-
case
|
|
661
|
-
var
|
|
662
|
-
case
|
|
663
|
-
var
|
|
664
|
-
if (
|
|
660
|
+
case pa:
|
|
661
|
+
var f = aa;
|
|
662
|
+
case ga:
|
|
663
|
+
var p = r & sa;
|
|
664
|
+
if (f || (f = oa), e.size != t.size && !p)
|
|
665
665
|
return !1;
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
669
|
-
|
|
670
|
-
var
|
|
671
|
-
return d.delete(e),
|
|
672
|
-
case
|
|
673
|
-
if (
|
|
674
|
-
return
|
|
666
|
+
var c = d.get(e);
|
|
667
|
+
if (c)
|
|
668
|
+
return c == t;
|
|
669
|
+
r |= ua, d.set(e, t);
|
|
670
|
+
var g = cn(f(e), f(t), r, s, l, d);
|
|
671
|
+
return d.delete(e), g;
|
|
672
|
+
case _a:
|
|
673
|
+
if (ze)
|
|
674
|
+
return ze.call(e) == ze.call(t);
|
|
675
675
|
}
|
|
676
676
|
return !1;
|
|
677
677
|
}
|
|
678
|
-
var
|
|
679
|
-
function
|
|
680
|
-
var d = n &
|
|
681
|
-
if (
|
|
678
|
+
var ba = 1, Aa = Object.prototype, wa = Aa.hasOwnProperty;
|
|
679
|
+
function Sa(e, t, n, r, s, l) {
|
|
680
|
+
var d = n & ba, f = Xe(e), p = f.length, c = Xe(t), g = c.length;
|
|
681
|
+
if (p != g && !d)
|
|
682
682
|
return !1;
|
|
683
|
-
for (var
|
|
684
|
-
var
|
|
685
|
-
if (!(d ?
|
|
683
|
+
for (var h = p; h--; ) {
|
|
684
|
+
var y = f[h];
|
|
685
|
+
if (!(d ? y in t : wa.call(t, y)))
|
|
686
686
|
return !1;
|
|
687
687
|
}
|
|
688
|
-
var
|
|
689
|
-
if (
|
|
690
|
-
return
|
|
691
|
-
var
|
|
692
|
-
|
|
693
|
-
for (var V = d; ++
|
|
694
|
-
|
|
695
|
-
var
|
|
696
|
-
if (
|
|
697
|
-
var
|
|
698
|
-
if (!(
|
|
699
|
-
|
|
688
|
+
var T = l.get(e), $ = l.get(t);
|
|
689
|
+
if (T && $)
|
|
690
|
+
return T == t && $ == e;
|
|
691
|
+
var b = !0;
|
|
692
|
+
l.set(e, t), l.set(t, e);
|
|
693
|
+
for (var V = d; ++h < p; ) {
|
|
694
|
+
y = f[h];
|
|
695
|
+
var D = e[y], z = t[y];
|
|
696
|
+
if (r)
|
|
697
|
+
var be = d ? r(z, D, y, t, e, l) : r(D, z, y, e, t, l);
|
|
698
|
+
if (!(be === void 0 ? D === z || s(D, z, n, r, l) : be)) {
|
|
699
|
+
b = !1;
|
|
700
700
|
break;
|
|
701
701
|
}
|
|
702
|
-
V || (V =
|
|
702
|
+
V || (V = y == "constructor");
|
|
703
703
|
}
|
|
704
|
-
if (
|
|
704
|
+
if (b && !V) {
|
|
705
705
|
var ae = e.constructor, oe = t.constructor;
|
|
706
|
-
ae != oe && "constructor" in e && "constructor" in t && !(typeof ae == "function" && ae instanceof ae && typeof oe == "function" && oe instanceof oe) && (
|
|
706
|
+
ae != oe && "constructor" in e && "constructor" in t && !(typeof ae == "function" && ae instanceof ae && typeof oe == "function" && oe instanceof oe) && (b = !1);
|
|
707
707
|
}
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
var
|
|
711
|
-
function
|
|
712
|
-
var d =
|
|
713
|
-
|
|
714
|
-
var
|
|
715
|
-
if (
|
|
716
|
-
if (!
|
|
708
|
+
return l.delete(e), l.delete(t), b;
|
|
709
|
+
}
|
|
710
|
+
var Pa = 1, Et = "[object Arguments]", Dt = "[object Array]", Pe = "[object Object]", Oa = Object.prototype, Lt = Oa.hasOwnProperty;
|
|
711
|
+
function Ca(e, t, n, r, s, l) {
|
|
712
|
+
var d = ye(e), f = ye(t), p = d ? Dt : B(e), c = f ? Dt : B(t);
|
|
713
|
+
p = p == Et ? Pe : p, c = c == Et ? Pe : c;
|
|
714
|
+
var g = p == Pe, h = c == Pe, y = p == c;
|
|
715
|
+
if (y && De(e)) {
|
|
716
|
+
if (!De(t))
|
|
717
717
|
return !1;
|
|
718
|
-
d = !0,
|
|
718
|
+
d = !0, g = !1;
|
|
719
719
|
}
|
|
720
|
-
if (
|
|
721
|
-
return
|
|
722
|
-
if (!(n &
|
|
723
|
-
var
|
|
724
|
-
if (
|
|
725
|
-
var
|
|
726
|
-
return
|
|
720
|
+
if (y && !g)
|
|
721
|
+
return l || (l = new X()), d || It(e) ? cn(e, t, n, r, s, l) : $a(e, t, p, n, r, s, l);
|
|
722
|
+
if (!(n & Pa)) {
|
|
723
|
+
var T = g && Lt.call(e, "__wrapped__"), $ = h && Lt.call(t, "__wrapped__");
|
|
724
|
+
if (T || $) {
|
|
725
|
+
var b = T ? e.value() : e, V = $ ? t.value() : t;
|
|
726
|
+
return l || (l = new X()), s(b, V, n, r, l);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return y ? (l || (l = new X()), Sa(e, t, n, r, s, l)) : !1;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
return e === t ? !0 : e == null || t == null || !
|
|
731
|
+
function fn(e, t, n, r, s) {
|
|
732
|
+
return e === t ? !0 : e == null || t == null || !ee(e) && !ee(t) ? e !== e && t !== t : Ca(e, t, n, r, fn, s);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
734
|
+
function Re(e, t) {
|
|
735
|
+
return fn(e, t);
|
|
736
736
|
}
|
|
737
|
-
const
|
|
737
|
+
const Va = /* @__PURE__ */ H({
|
|
738
738
|
__name: "entry",
|
|
739
739
|
props: {
|
|
740
740
|
minHeight: {}
|
|
741
741
|
},
|
|
742
742
|
setup(e) {
|
|
743
|
-
const { backgroundColor2: t, highlightColor: n } =
|
|
744
|
-
background:
|
|
743
|
+
const { backgroundColor2: t, highlightColor: n } = ke(), r = R(!1), s = Y(() => ({
|
|
744
|
+
background: r.value ? n.value : t.value,
|
|
745
745
|
minHeight: e.minHeight,
|
|
746
746
|
paddingRight: "4px",
|
|
747
747
|
marginBottom: "1px",
|
|
748
748
|
userSelect: "none"
|
|
749
|
-
})),
|
|
750
|
-
|
|
749
|
+
})), l = (d) => {
|
|
750
|
+
Bt.emit("propTreeMenu", {
|
|
751
751
|
x: d.clientX,
|
|
752
752
|
y: d.clientY
|
|
753
753
|
});
|
|
754
754
|
};
|
|
755
|
-
return (d,
|
|
756
|
-
const
|
|
757
|
-
return k((
|
|
755
|
+
return (d, f) => {
|
|
756
|
+
const p = fe("ripple");
|
|
757
|
+
return k((C(), W("div", {
|
|
758
758
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
759
|
-
style:
|
|
760
|
-
onContextmenu:
|
|
761
|
-
onMouseover:
|
|
762
|
-
onMouseout:
|
|
759
|
+
style: Ie(s.value),
|
|
760
|
+
onContextmenu: j(l, ["prevent"]),
|
|
761
|
+
onMouseover: f[0] || (f[0] = (c) => r.value = !0),
|
|
762
|
+
onMouseout: f[1] || (f[1] = (c) => r.value = !1)
|
|
763
763
|
}, [
|
|
764
|
-
|
|
764
|
+
Tn(d.$slots, "default")
|
|
765
765
|
], 36)), [
|
|
766
|
-
[
|
|
766
|
+
[p]
|
|
767
767
|
]);
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
|
-
}),
|
|
770
|
+
}), Ea = /* @__PURE__ */ H({
|
|
771
771
|
__name: "menu",
|
|
772
772
|
setup(e) {
|
|
773
|
-
const { t } =
|
|
774
|
-
const
|
|
773
|
+
const { t } = Qe(), n = R(0), r = R(0), s = Y(() => [n.value, r.value]), l = (c) => {
|
|
774
|
+
const g = () => {
|
|
775
775
|
console.log("reset");
|
|
776
776
|
};
|
|
777
|
-
|
|
777
|
+
c.push({
|
|
778
778
|
title: t("x-prop-tree.reset"),
|
|
779
|
-
func:
|
|
779
|
+
func: g
|
|
780
780
|
});
|
|
781
|
-
}, d =
|
|
782
|
-
const
|
|
783
|
-
return
|
|
784
|
-
}),
|
|
785
|
-
n.value =
|
|
786
|
-
}, { open:
|
|
787
|
-
return (
|
|
788
|
-
const
|
|
789
|
-
return
|
|
790
|
-
modelValue:
|
|
791
|
-
"onUpdate:modelValue":
|
|
781
|
+
}, d = Y(() => {
|
|
782
|
+
const c = [];
|
|
783
|
+
return l(c), c;
|
|
784
|
+
}), f = (c) => {
|
|
785
|
+
n.value = c.x, r.value = c.y;
|
|
786
|
+
}, { open: p } = Rt("propTreeMenu", f);
|
|
787
|
+
return (c, g) => {
|
|
788
|
+
const h = P("v-list-item-title"), y = P("v-list-item"), T = P("v-list"), $ = P("v-menu");
|
|
789
|
+
return C(), U($, {
|
|
790
|
+
modelValue: N(p),
|
|
791
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => xt(p) ? p.value = b : null),
|
|
792
792
|
"location-strategy": "connected",
|
|
793
|
-
target:
|
|
793
|
+
target: s.value,
|
|
794
794
|
scrim: "transparent"
|
|
795
795
|
}, {
|
|
796
|
-
default:
|
|
797
|
-
|
|
798
|
-
default:
|
|
799
|
-
(
|
|
796
|
+
default: K(() => [
|
|
797
|
+
M(T, null, {
|
|
798
|
+
default: K(() => [
|
|
799
|
+
(C(!0), W(Nt, null, $n(d.value, (b, V) => (C(), U(y, {
|
|
800
800
|
key: V,
|
|
801
801
|
link: "",
|
|
802
|
-
onClick:
|
|
802
|
+
onClick: b.func
|
|
803
803
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
806
|
-
default:
|
|
807
|
-
|
|
804
|
+
default: K(() => [
|
|
805
|
+
M(h, null, {
|
|
806
|
+
default: K(() => [
|
|
807
|
+
Je(xe(b.title), 1)
|
|
808
808
|
]),
|
|
809
809
|
_: 2
|
|
810
810
|
}, 1024)
|
|
@@ -820,8 +820,8 @@ const $i = /* @__PURE__ */ B({
|
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
|
-
var
|
|
824
|
-
const
|
|
823
|
+
var Da = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", La = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", le = "M19,13H5V11H19V13Z", Ma = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
824
|
+
const Oe = /* @__PURE__ */ H({
|
|
825
825
|
__name: "title",
|
|
826
826
|
props: {
|
|
827
827
|
title: {},
|
|
@@ -832,103 +832,214 @@ const $e = /* @__PURE__ */ B({
|
|
|
832
832
|
},
|
|
833
833
|
emits: ["collapse", "create", "delete"],
|
|
834
834
|
setup(e, { emit: t }) {
|
|
835
|
-
const { backgroundColor2: n, highlightColor:
|
|
836
|
-
background:
|
|
835
|
+
const { backgroundColor2: n, highlightColor: r } = ke(), s = t, l = R(!1), d = Y(() => ({
|
|
836
|
+
background: l.value ? r.value : n.value,
|
|
837
837
|
height: "36px",
|
|
838
838
|
marginBottom: "1px",
|
|
839
839
|
userSelect: "none"
|
|
840
|
-
})),
|
|
841
|
-
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
x:
|
|
845
|
-
y:
|
|
840
|
+
})), f = () => {
|
|
841
|
+
s("collapse", !e.collapse);
|
|
842
|
+
}, p = (c) => {
|
|
843
|
+
Bt.emit("propTreeMenu", {
|
|
844
|
+
x: c.clientX,
|
|
845
|
+
y: c.clientY
|
|
846
846
|
});
|
|
847
847
|
};
|
|
848
|
-
return (
|
|
849
|
-
const
|
|
850
|
-
return k((
|
|
848
|
+
return (c, g) => {
|
|
849
|
+
const h = P("v-icon"), y = P("v-spacer"), T = fe("ripple");
|
|
850
|
+
return k((C(), W("div", {
|
|
851
851
|
class: "d-flex align-center cursor-pointer",
|
|
852
|
-
style:
|
|
853
|
-
onClick:
|
|
854
|
-
onContextmenu:
|
|
855
|
-
onMouseover:
|
|
856
|
-
onMouseout:
|
|
852
|
+
style: Ie(d.value),
|
|
853
|
+
onClick: f,
|
|
854
|
+
onContextmenu: j(p, ["prevent"]),
|
|
855
|
+
onMouseover: g[2] || (g[2] = ($) => l.value = !0),
|
|
856
|
+
onMouseout: g[3] || (g[3] = ($) => l.value = !1)
|
|
857
857
|
}, [
|
|
858
|
-
|
|
858
|
+
M(h, {
|
|
859
859
|
class: "mr-1",
|
|
860
|
-
icon:
|
|
860
|
+
icon: c.collapse ? N(La) : N(Da)
|
|
861
861
|
}, null, 8, ["icon"]),
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
862
|
+
Ee("span", null, xe(c.title), 1),
|
|
863
|
+
M(y),
|
|
864
|
+
c.hasCreate ? (C(), U(h, {
|
|
865
865
|
key: 0,
|
|
866
866
|
class: "mx-3",
|
|
867
|
-
icon:
|
|
868
|
-
onClick:
|
|
869
|
-
}, null, 8, ["icon"])) :
|
|
870
|
-
|
|
867
|
+
icon: N(Ma),
|
|
868
|
+
onClick: g[0] || (g[0] = j(($) => s("create"), ["stop"]))
|
|
869
|
+
}, null, 8, ["icon"])) : Z("", !0),
|
|
870
|
+
c.hasDelete ? (C(), U(h, {
|
|
871
871
|
key: 1,
|
|
872
872
|
class: "mx-3",
|
|
873
|
-
icon:
|
|
874
|
-
onClick:
|
|
875
|
-
}, null, 8, ["icon"])) :
|
|
873
|
+
icon: N(le),
|
|
874
|
+
onClick: g[1] || (g[1] = j(($) => s("delete", c.index), ["stop"]))
|
|
875
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
876
876
|
], 36)), [
|
|
877
|
-
[
|
|
877
|
+
[T]
|
|
878
878
|
]);
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
881
|
+
}), Mt = (e) => !(e instanceof Array), Ce = (e) => e instanceof Array, ot = (e) => !(e instanceof Array), Ue = (e) => e instanceof Array, Ua = [
|
|
882
|
+
["basic", "id"],
|
|
883
|
+
["basic", "name"]
|
|
884
|
+
], xa = (e) => Ua.find((t) => Re(e, t)), He = (e, t, n, r, s, l, d) => (e = un(e), l !== void 0 ? (e.push(l), d && e.push(t.key)) : e.push(t.key), xa(e) ? (r.change = !1, r.change) : t.ui ? t.array && l === void 0 ? Ba(
|
|
885
|
+
e,
|
|
886
|
+
t,
|
|
887
|
+
n,
|
|
888
|
+
r,
|
|
889
|
+
s,
|
|
890
|
+
l,
|
|
891
|
+
d
|
|
892
|
+
) : Ra(t, n, r, l, d) : t.array ? Na(
|
|
893
|
+
e,
|
|
894
|
+
t,
|
|
895
|
+
n,
|
|
896
|
+
r,
|
|
897
|
+
s,
|
|
898
|
+
l,
|
|
899
|
+
d
|
|
900
|
+
) : Fa(
|
|
901
|
+
e,
|
|
902
|
+
t,
|
|
903
|
+
n,
|
|
904
|
+
r,
|
|
905
|
+
s,
|
|
906
|
+
l,
|
|
907
|
+
d
|
|
908
|
+
)), Na = (e, t, n, r, s, l, d) => {
|
|
909
|
+
if (t.ui)
|
|
910
|
+
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
911
|
+
if (!t.array)
|
|
912
|
+
return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
|
|
913
|
+
if (!Ue(r.children))
|
|
914
|
+
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
915
|
+
let f;
|
|
916
|
+
l !== void 0 && !d ? (n[l] instanceof Array || (n[l] = L(t), s == null || s(e, n[l])), f = n[l]) : (n[t.key] instanceof Array || (n[t.key] = L(t), s == null || s(e, n[t.key])), f = n[t.key]), r.change = !1;
|
|
917
|
+
for (let p = 0; p < f.length; p++)
|
|
918
|
+
r.children.push({
|
|
919
|
+
change: !1,
|
|
920
|
+
children: {}
|
|
921
|
+
}), t.children.forEach((c) => {
|
|
922
|
+
if (!Ue(r.children)) {
|
|
923
|
+
console.assert(!1);
|
|
924
|
+
return;
|
|
925
|
+
}
|
|
926
|
+
const g = r.children[p];
|
|
927
|
+
if (!ot(g.children)) {
|
|
928
|
+
console.assert(!1);
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
931
|
+
g.children[c.key] = {
|
|
932
|
+
change: !1,
|
|
933
|
+
children: c.array ? [] : {}
|
|
934
|
+
}, He(
|
|
935
|
+
e,
|
|
936
|
+
c,
|
|
937
|
+
f[p],
|
|
938
|
+
g.children[c.key],
|
|
939
|
+
s,
|
|
940
|
+
p,
|
|
941
|
+
!0
|
|
942
|
+
) && (g.change = !0), g.change && (r.change = !0);
|
|
943
|
+
});
|
|
944
|
+
return r.change || (r.change = !Re(f, L(t))), r.change;
|
|
945
|
+
}, Fa = (e, t, n, r, s, l, d) => {
|
|
946
|
+
if (t.ui)
|
|
947
|
+
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
948
|
+
if (t.array)
|
|
949
|
+
return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
|
|
950
|
+
if (!ot(r.children))
|
|
951
|
+
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
952
|
+
let f;
|
|
953
|
+
l !== void 0 && !d ? (n[l] || (n[l] = {}), f = n[l]) : (n[t.key] || (n[t.key] = {}), f = n[t.key]), r.change = !1;
|
|
954
|
+
for (let p = 0; p < t.children.length; p++) {
|
|
955
|
+
const c = t.children[p];
|
|
956
|
+
r.children[c.key] = {
|
|
957
|
+
change: !1,
|
|
958
|
+
children: c.array ? [] : {}
|
|
959
|
+
}, He(e, c, f, r.children[c.key], s) && (r.change = !0);
|
|
960
|
+
}
|
|
961
|
+
return r.change;
|
|
962
|
+
}, Ba = (e, t, n, r, s, l, d) => {
|
|
963
|
+
if (!t.ui)
|
|
964
|
+
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
965
|
+
if (!t.array)
|
|
966
|
+
return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
|
|
967
|
+
if (!Ue(r.children))
|
|
968
|
+
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
969
|
+
let f;
|
|
970
|
+
l !== void 0 && !d ? (n[l] instanceof Array || (n[l] = L(t), s == null || s(e, n[l])), f = n[l]) : (n[t.key] instanceof Array || (n[t.key] = L(t), s == null || s(e, n[t.key])), f = n[t.key]), r.change = !1;
|
|
971
|
+
for (let p = 0; p < f.length; p++)
|
|
972
|
+
r.children[p] = {
|
|
973
|
+
change: !1,
|
|
974
|
+
children: {}
|
|
975
|
+
}, He(e, t, f, r.children[p], s, p, !1) && (r.change = !0);
|
|
976
|
+
return r.change || (r.change = !Re(f, L(t))), r.change;
|
|
977
|
+
}, Ra = (e, t, n, r, s) => {
|
|
978
|
+
if (!e.ui)
|
|
979
|
+
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
980
|
+
let l;
|
|
981
|
+
return r !== void 0 && !s ? l = t[r] : l = t[e.key], n.change = !Re(l, L(e, !0)), n.change;
|
|
982
|
+
}, Ut = (e, t, n) => {
|
|
983
|
+
if (e.length <= 0 || !t)
|
|
984
|
+
return {};
|
|
985
|
+
const r = {};
|
|
986
|
+
return e.forEach((s) => {
|
|
987
|
+
r[s.key] = {
|
|
988
|
+
change: !1,
|
|
989
|
+
children: s.array ? [] : {}
|
|
990
|
+
}, He([], s, t, r[s.key], n);
|
|
991
|
+
}), r;
|
|
992
|
+
}, Ha = { class: "d-flex justify-space-between align-center" }, ja = /* @__PURE__ */ H({
|
|
882
993
|
__name: "colorPicker",
|
|
883
|
-
props: /* @__PURE__ */
|
|
994
|
+
props: /* @__PURE__ */ F({
|
|
884
995
|
hasDelete: { type: Boolean, default: !1 },
|
|
885
996
|
readonly: { type: Boolean, default: !1 }
|
|
886
997
|
}, {
|
|
887
998
|
modelValue: {},
|
|
888
999
|
modelModifiers: {}
|
|
889
1000
|
}),
|
|
890
|
-
emits: /* @__PURE__ */
|
|
1001
|
+
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
891
1002
|
setup(e, { emit: t }) {
|
|
892
|
-
const n =
|
|
893
|
-
let
|
|
894
|
-
return e.hasDelete && (
|
|
895
|
-
width:
|
|
1003
|
+
const n = de(e, "modelValue"), r = t, s = Y(() => {
|
|
1004
|
+
let f = "100%";
|
|
1005
|
+
return e.hasDelete && (f = "calc(100% - 37px)"), {
|
|
1006
|
+
width: f
|
|
896
1007
|
};
|
|
897
|
-
}),
|
|
898
|
-
return (
|
|
899
|
-
const
|
|
900
|
-
return
|
|
901
|
-
activator:
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
style:
|
|
1008
|
+
}), l = Y(() => e.readonly), d = R("hexa");
|
|
1009
|
+
return (f, p) => {
|
|
1010
|
+
const c = P("v-btn"), g = P("v-icon"), h = P("v-color-picker"), y = P("v-menu");
|
|
1011
|
+
return C(), U(y, { "close-on-content-click": !1 }, {
|
|
1012
|
+
activator: K(({ props: T }) => [
|
|
1013
|
+
Ee("div", Ha, [
|
|
1014
|
+
Ee("div", {
|
|
1015
|
+
style: Ie(s.value)
|
|
905
1016
|
}, [
|
|
906
|
-
|
|
1017
|
+
M(c, Ft(T, {
|
|
907
1018
|
density: "comfortable",
|
|
908
1019
|
color: n.value,
|
|
909
1020
|
block: "",
|
|
910
|
-
disabled:
|
|
1021
|
+
disabled: l.value
|
|
911
1022
|
}), {
|
|
912
|
-
default:
|
|
913
|
-
|
|
1023
|
+
default: K(() => [
|
|
1024
|
+
Je(xe(n.value), 1)
|
|
914
1025
|
]),
|
|
915
1026
|
_: 2
|
|
916
1027
|
}, 1040, ["color", "disabled"])
|
|
917
1028
|
], 4),
|
|
918
|
-
|
|
1029
|
+
f.hasDelete ? (C(), U(g, {
|
|
919
1030
|
key: 0,
|
|
920
1031
|
class: "mx-2",
|
|
921
|
-
icon:
|
|
922
|
-
onClick:
|
|
923
|
-
}, null, 8, ["icon"])) :
|
|
1032
|
+
icon: N(le),
|
|
1033
|
+
onClick: p[0] || (p[0] = j(($) => r("delete"), ["stop"]))
|
|
1034
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
924
1035
|
])
|
|
925
1036
|
]),
|
|
926
|
-
default:
|
|
927
|
-
|
|
1037
|
+
default: K(() => [
|
|
1038
|
+
M(h, {
|
|
928
1039
|
modelValue: n.value,
|
|
929
|
-
"onUpdate:modelValue":
|
|
1040
|
+
"onUpdate:modelValue": p[1] || (p[1] = (T) => n.value = T),
|
|
930
1041
|
mode: d.value,
|
|
931
|
-
"onUpdate:mode":
|
|
1042
|
+
"onUpdate:mode": p[2] || (p[2] = (T) => d.value = T),
|
|
932
1043
|
"show-swatches": "",
|
|
933
1044
|
"swatches-max-height": "150px"
|
|
934
1045
|
}, null, 8, ["modelValue", "mode"])
|
|
@@ -937,24 +1048,24 @@ const $e = /* @__PURE__ */ B({
|
|
|
937
1048
|
});
|
|
938
1049
|
};
|
|
939
1050
|
}
|
|
940
|
-
}),
|
|
1051
|
+
}), Ga = /* @__PURE__ */ H({
|
|
941
1052
|
__name: "compSelect",
|
|
942
1053
|
setup(e) {
|
|
943
|
-
const t =
|
|
944
|
-
}, { open:
|
|
945
|
-
return (
|
|
946
|
-
const d =
|
|
947
|
-
return
|
|
948
|
-
modelValue:
|
|
949
|
-
"onUpdate:modelValue":
|
|
1054
|
+
const t = Y(() => "<n/a>"), n = () => {
|
|
1055
|
+
}, { open: r } = Rt("compSelectDlg", n);
|
|
1056
|
+
return (s, l) => {
|
|
1057
|
+
const d = P("v-btn"), f = P("v-dialog");
|
|
1058
|
+
return C(), U(f, {
|
|
1059
|
+
modelValue: N(r),
|
|
1060
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => xt(r) ? r.value = p : null)
|
|
950
1061
|
}, {
|
|
951
|
-
activator:
|
|
952
|
-
|
|
1062
|
+
activator: K(({ props: p }) => [
|
|
1063
|
+
M(d, Ft(p, {
|
|
953
1064
|
density: "comfortable",
|
|
954
1065
|
block: ""
|
|
955
1066
|
}), {
|
|
956
|
-
default:
|
|
957
|
-
|
|
1067
|
+
default: K(() => [
|
|
1068
|
+
Je(xe(t.value), 1)
|
|
958
1069
|
]),
|
|
959
1070
|
_: 2
|
|
960
1071
|
}, 1040)
|
|
@@ -963,88 +1074,88 @@ const $e = /* @__PURE__ */ B({
|
|
|
963
1074
|
}, 8, ["modelValue"]);
|
|
964
1075
|
};
|
|
965
1076
|
}
|
|
966
|
-
}),
|
|
1077
|
+
}), za = { class: "d-flex justify-space-between align-center my-2" }, qa = /* @__PURE__ */ H({
|
|
967
1078
|
__name: "multiTypes",
|
|
968
|
-
props: /* @__PURE__ */
|
|
1079
|
+
props: /* @__PURE__ */ F({
|
|
969
1080
|
hasDelete: { type: Boolean, default: !1 },
|
|
970
1081
|
types: {}
|
|
971
1082
|
}, {
|
|
972
1083
|
modelValue: { default: "" },
|
|
973
1084
|
modelModifiers: {}
|
|
974
1085
|
}),
|
|
975
|
-
emits: /* @__PURE__ */
|
|
1086
|
+
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
976
1087
|
setup(e, { emit: t }) {
|
|
977
|
-
const { t: n } =
|
|
978
|
-
const
|
|
979
|
-
return e.types.forEach((
|
|
980
|
-
|
|
981
|
-
title: n(
|
|
982
|
-
value:
|
|
1088
|
+
const { t: n } = Qe(), r = de(e, "modelValue"), s = t, l = R(0), d = Y(() => {
|
|
1089
|
+
const c = [];
|
|
1090
|
+
return e.types.forEach((g, h) => {
|
|
1091
|
+
c.push({
|
|
1092
|
+
title: n(g.name),
|
|
1093
|
+
value: h
|
|
983
1094
|
});
|
|
984
|
-
}),
|
|
1095
|
+
}), c;
|
|
985
1096
|
});
|
|
986
|
-
e.types.some((
|
|
987
|
-
const
|
|
988
|
-
|
|
989
|
-
|
|
1097
|
+
e.types.some((c, g) => c.validator(r.value) ? (l.value = g, !0) : !1);
|
|
1098
|
+
const f = Y(() => e.types[l.value]);
|
|
1099
|
+
qe(f, (c) => {
|
|
1100
|
+
r.value = c.default;
|
|
990
1101
|
});
|
|
991
|
-
const
|
|
992
|
-
return
|
|
993
|
-
|
|
994
|
-
}),
|
|
995
|
-
|
|
996
|
-
}), (
|
|
997
|
-
const
|
|
998
|
-
return
|
|
999
|
-
|
|
1000
|
-
k(
|
|
1001
|
-
modelValue:
|
|
1002
|
-
"onUpdate:modelValue":
|
|
1102
|
+
const p = R(0);
|
|
1103
|
+
return bn(() => {
|
|
1104
|
+
f.value.ui === "pixelInput" ? p.value = wn(r.value) : f.value.ui === "percentInput" && (p.value = Sn(r.value));
|
|
1105
|
+
}), qe(p, (c) => {
|
|
1106
|
+
f.value.ui === "pixelInput" ? r.value = c + "px" : f.value.ui === "percentInput" && (r.value = c + "%");
|
|
1107
|
+
}), (c, g) => {
|
|
1108
|
+
const h = P("v-select"), y = P("v-number-input"), T = P("v-icon"), $ = fe("ripple");
|
|
1109
|
+
return C(), W("div", za, [
|
|
1110
|
+
Ee("div", null, [
|
|
1111
|
+
k(M(h, {
|
|
1112
|
+
modelValue: l.value,
|
|
1113
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
|
|
1003
1114
|
density: "compact",
|
|
1004
1115
|
items: d.value,
|
|
1005
1116
|
"hide-details": "",
|
|
1006
1117
|
"single-line": ""
|
|
1007
1118
|
}, null, 8, ["modelValue", "items"]), [
|
|
1008
1119
|
[
|
|
1009
|
-
|
|
1120
|
+
$,
|
|
1010
1121
|
void 0,
|
|
1011
1122
|
void 0,
|
|
1012
1123
|
{ stop: !0 }
|
|
1013
1124
|
]
|
|
1014
1125
|
]),
|
|
1015
|
-
|
|
1126
|
+
f.value.ui === "pixelInput" || f.value.ui === "percentInput" ? k((C(), U(y, {
|
|
1016
1127
|
key: 0,
|
|
1017
|
-
modelValue:
|
|
1018
|
-
"onUpdate:modelValue":
|
|
1128
|
+
modelValue: p.value,
|
|
1129
|
+
"onUpdate:modelValue": g[1] || (g[1] = (b) => p.value = b),
|
|
1019
1130
|
density: "compact",
|
|
1020
1131
|
"control-variant": "stacked",
|
|
1021
|
-
precision:
|
|
1022
|
-
min:
|
|
1023
|
-
max:
|
|
1024
|
-
step:
|
|
1132
|
+
precision: f.value.precision,
|
|
1133
|
+
min: f.value.min,
|
|
1134
|
+
max: f.value.max,
|
|
1135
|
+
step: f.value.step,
|
|
1025
1136
|
"hide-details": "",
|
|
1026
1137
|
"single-line": ""
|
|
1027
1138
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1028
1139
|
[
|
|
1029
|
-
|
|
1140
|
+
$,
|
|
1030
1141
|
void 0,
|
|
1031
1142
|
void 0,
|
|
1032
1143
|
{ stop: !0 }
|
|
1033
1144
|
]
|
|
1034
|
-
]) :
|
|
1145
|
+
]) : Z("", !0)
|
|
1035
1146
|
]),
|
|
1036
|
-
|
|
1147
|
+
c.hasDelete ? (C(), U(T, {
|
|
1037
1148
|
key: 0,
|
|
1038
1149
|
class: "mx-2",
|
|
1039
|
-
icon:
|
|
1040
|
-
onClick:
|
|
1041
|
-
}, null, 8, ["icon"])) :
|
|
1150
|
+
icon: N(le),
|
|
1151
|
+
onClick: g[2] || (g[2] = j((b) => s("delete"), ["stop"]))
|
|
1152
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
1042
1153
|
]);
|
|
1043
1154
|
};
|
|
1044
1155
|
}
|
|
1045
|
-
}),
|
|
1156
|
+
}), Ka = { class: "d-flex justify-space-between align-center" }, Xa = /* @__PURE__ */ H({
|
|
1046
1157
|
__name: "numInput",
|
|
1047
|
-
props: /* @__PURE__ */
|
|
1158
|
+
props: /* @__PURE__ */ F({
|
|
1048
1159
|
hasDelete: { type: Boolean, default: !1 },
|
|
1049
1160
|
precision: { default: 4 },
|
|
1050
1161
|
min: { default: () => -1 / 0 },
|
|
@@ -1055,44 +1166,44 @@ const $e = /* @__PURE__ */ B({
|
|
|
1055
1166
|
modelValue: {},
|
|
1056
1167
|
modelModifiers: {}
|
|
1057
1168
|
}),
|
|
1058
|
-
emits: /* @__PURE__ */
|
|
1169
|
+
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
1059
1170
|
setup(e, { emit: t }) {
|
|
1060
|
-
const n =
|
|
1061
|
-
return (
|
|
1062
|
-
const d =
|
|
1063
|
-
return
|
|
1064
|
-
k(
|
|
1171
|
+
const n = de(e, "modelValue"), r = t;
|
|
1172
|
+
return (s, l) => {
|
|
1173
|
+
const d = P("v-number-input"), f = P("v-icon"), p = fe("ripple");
|
|
1174
|
+
return C(), W("div", Ka, [
|
|
1175
|
+
k(M(d, {
|
|
1065
1176
|
modelValue: n.value,
|
|
1066
|
-
"onUpdate:modelValue":
|
|
1177
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
1067
1178
|
density: "compact",
|
|
1068
1179
|
"control-variant": "stacked",
|
|
1069
|
-
precision:
|
|
1070
|
-
min:
|
|
1071
|
-
max:
|
|
1072
|
-
step:
|
|
1180
|
+
precision: s.precision,
|
|
1181
|
+
min: s.min,
|
|
1182
|
+
max: s.max,
|
|
1183
|
+
step: s.step,
|
|
1073
1184
|
"hide-details": "",
|
|
1074
1185
|
"single-line": "",
|
|
1075
|
-
readonly:
|
|
1186
|
+
readonly: s.readonly
|
|
1076
1187
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
1077
1188
|
[
|
|
1078
|
-
|
|
1189
|
+
p,
|
|
1079
1190
|
void 0,
|
|
1080
1191
|
void 0,
|
|
1081
1192
|
{ stop: !0 }
|
|
1082
1193
|
]
|
|
1083
1194
|
]),
|
|
1084
|
-
|
|
1195
|
+
s.hasDelete ? (C(), U(f, {
|
|
1085
1196
|
key: 0,
|
|
1086
1197
|
class: "mx-2",
|
|
1087
|
-
icon:
|
|
1088
|
-
onClick:
|
|
1089
|
-
}, null, 8, ["icon"])) :
|
|
1198
|
+
icon: N(le),
|
|
1199
|
+
onClick: l[1] || (l[1] = j((c) => r("delete"), ["stop"]))
|
|
1200
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
1090
1201
|
]);
|
|
1091
1202
|
};
|
|
1092
1203
|
}
|
|
1093
|
-
}),
|
|
1204
|
+
}), Ya = { class: "d-flex justify-space-between align-center" }, Za = /* @__PURE__ */ H({
|
|
1094
1205
|
__name: "select",
|
|
1095
|
-
props: /* @__PURE__ */
|
|
1206
|
+
props: /* @__PURE__ */ F({
|
|
1096
1207
|
hasDelete: { type: Boolean, default: !1 },
|
|
1097
1208
|
readonly: { type: Boolean, default: !1 },
|
|
1098
1209
|
items: {}
|
|
@@ -1100,110 +1211,110 @@ const $e = /* @__PURE__ */ B({
|
|
|
1100
1211
|
modelValue: {},
|
|
1101
1212
|
modelModifiers: {}
|
|
1102
1213
|
}),
|
|
1103
|
-
emits: /* @__PURE__ */
|
|
1214
|
+
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
1104
1215
|
setup(e, { emit: t }) {
|
|
1105
|
-
const n =
|
|
1106
|
-
return (
|
|
1107
|
-
const d =
|
|
1108
|
-
return
|
|
1109
|
-
k(
|
|
1216
|
+
const n = de(e, "modelValue"), r = t;
|
|
1217
|
+
return (s, l) => {
|
|
1218
|
+
const d = P("v-select"), f = P("v-icon"), p = fe("ripple");
|
|
1219
|
+
return C(), W("div", Ya, [
|
|
1220
|
+
k(M(d, {
|
|
1110
1221
|
modelValue: n.value,
|
|
1111
|
-
"onUpdate:modelValue":
|
|
1222
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
1112
1223
|
density: "compact",
|
|
1113
|
-
items:
|
|
1224
|
+
items: s.items,
|
|
1114
1225
|
"hide-details": "",
|
|
1115
1226
|
"single-line": "",
|
|
1116
|
-
readonly:
|
|
1227
|
+
readonly: s.readonly
|
|
1117
1228
|
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
1118
1229
|
[
|
|
1119
|
-
|
|
1230
|
+
p,
|
|
1120
1231
|
void 0,
|
|
1121
1232
|
void 0,
|
|
1122
1233
|
{ stop: !0 }
|
|
1123
1234
|
]
|
|
1124
1235
|
]),
|
|
1125
|
-
|
|
1236
|
+
s.hasDelete ? (C(), U(f, {
|
|
1126
1237
|
key: 0,
|
|
1127
1238
|
class: "mx-2",
|
|
1128
|
-
icon:
|
|
1129
|
-
onClick:
|
|
1130
|
-
}, null, 8, ["icon"])) :
|
|
1239
|
+
icon: N(le),
|
|
1240
|
+
onClick: l[1] || (l[1] = j((c) => r("delete"), ["stop"]))
|
|
1241
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
1131
1242
|
]);
|
|
1132
1243
|
};
|
|
1133
1244
|
}
|
|
1134
|
-
}),
|
|
1245
|
+
}), Wa = { class: "d-flex justify-space-between align-center" }, Ia = /* @__PURE__ */ H({
|
|
1135
1246
|
__name: "strInput",
|
|
1136
|
-
props: /* @__PURE__ */
|
|
1247
|
+
props: /* @__PURE__ */ F({
|
|
1137
1248
|
hasDelete: { type: Boolean, default: !1 },
|
|
1138
1249
|
readonly: { type: Boolean, default: !1 }
|
|
1139
1250
|
}, {
|
|
1140
1251
|
modelValue: {},
|
|
1141
1252
|
modelModifiers: {}
|
|
1142
1253
|
}),
|
|
1143
|
-
emits: /* @__PURE__ */
|
|
1254
|
+
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
1144
1255
|
setup(e, { emit: t }) {
|
|
1145
|
-
const n =
|
|
1146
|
-
return (
|
|
1147
|
-
const d =
|
|
1148
|
-
return
|
|
1149
|
-
k(
|
|
1256
|
+
const n = de(e, "modelValue"), r = t;
|
|
1257
|
+
return (s, l) => {
|
|
1258
|
+
const d = P("v-text-field"), f = P("v-icon"), p = fe("ripple");
|
|
1259
|
+
return C(), W("div", Wa, [
|
|
1260
|
+
k(M(d, {
|
|
1150
1261
|
modelValue: n.value,
|
|
1151
|
-
"onUpdate:modelValue":
|
|
1262
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
1152
1263
|
density: "compact",
|
|
1153
1264
|
"hide-details": "",
|
|
1154
1265
|
"single-line": "",
|
|
1155
|
-
readonly:
|
|
1266
|
+
readonly: s.readonly
|
|
1156
1267
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
1157
1268
|
[
|
|
1158
|
-
|
|
1269
|
+
p,
|
|
1159
1270
|
void 0,
|
|
1160
1271
|
void 0,
|
|
1161
1272
|
{ stop: !0 }
|
|
1162
1273
|
]
|
|
1163
1274
|
]),
|
|
1164
|
-
|
|
1275
|
+
s.hasDelete ? (C(), U(f, {
|
|
1165
1276
|
key: 0,
|
|
1166
1277
|
class: "mx-2",
|
|
1167
|
-
icon:
|
|
1168
|
-
onClick:
|
|
1169
|
-
}, null, 8, ["icon"])) :
|
|
1278
|
+
icon: N(le),
|
|
1279
|
+
onClick: l[1] || (l[1] = j((c) => r("delete"), ["stop"]))
|
|
1280
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
1170
1281
|
]);
|
|
1171
1282
|
};
|
|
1172
1283
|
}
|
|
1173
|
-
}),
|
|
1284
|
+
}), Ja = { class: "d-flex justify-space-between align-center" }, Qa = /* @__PURE__ */ H({
|
|
1174
1285
|
__name: "switch",
|
|
1175
|
-
props: /* @__PURE__ */
|
|
1286
|
+
props: /* @__PURE__ */ F({
|
|
1176
1287
|
hasDelete: { type: Boolean, default: !1 },
|
|
1177
1288
|
readonly: { type: Boolean, default: !1 }
|
|
1178
1289
|
}, {
|
|
1179
1290
|
modelValue: { type: Boolean },
|
|
1180
1291
|
modelModifiers: {}
|
|
1181
1292
|
}),
|
|
1182
|
-
emits: /* @__PURE__ */
|
|
1293
|
+
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
1183
1294
|
setup(e, { emit: t }) {
|
|
1184
|
-
const n =
|
|
1185
|
-
return (
|
|
1186
|
-
const d =
|
|
1187
|
-
return
|
|
1188
|
-
|
|
1295
|
+
const n = de(e, "modelValue"), r = t;
|
|
1296
|
+
return (s, l) => {
|
|
1297
|
+
const d = P("v-switch"), f = P("v-icon");
|
|
1298
|
+
return C(), W("div", Ja, [
|
|
1299
|
+
M(d, {
|
|
1189
1300
|
modelValue: n.value,
|
|
1190
|
-
"onUpdate:modelValue":
|
|
1301
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p),
|
|
1191
1302
|
class: "ml-1",
|
|
1192
1303
|
density: "compact",
|
|
1193
1304
|
color: "primary",
|
|
1194
1305
|
"hide-details": "",
|
|
1195
|
-
readonly:
|
|
1306
|
+
readonly: s.readonly
|
|
1196
1307
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1197
|
-
|
|
1308
|
+
s.hasDelete ? (C(), U(f, {
|
|
1198
1309
|
key: 0,
|
|
1199
1310
|
class: "mx-2",
|
|
1200
|
-
icon:
|
|
1201
|
-
onClick:
|
|
1202
|
-
}, null, 8, ["icon"])) :
|
|
1311
|
+
icon: N(le),
|
|
1312
|
+
onClick: l[1] || (l[1] = j((p) => r("delete"), ["stop"]))
|
|
1313
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
1203
1314
|
]);
|
|
1204
1315
|
};
|
|
1205
1316
|
}
|
|
1206
|
-
}),
|
|
1317
|
+
}), ka = /* @__PURE__ */ H({
|
|
1207
1318
|
__name: "index",
|
|
1208
1319
|
props: {
|
|
1209
1320
|
unique: {},
|
|
@@ -1212,178 +1323,160 @@ const $e = /* @__PURE__ */ B({
|
|
|
1212
1323
|
},
|
|
1213
1324
|
emits: ["change"],
|
|
1214
1325
|
setup(e, { emit: t }) {
|
|
1215
|
-
const { t: n } =
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
if (!f.config || !f.object) {
|
|
1219
|
-
$.value = {};
|
|
1220
|
-
return;
|
|
1221
|
-
}
|
|
1222
|
-
const u = (a, i, c, g) => {
|
|
1223
|
-
if (a = At(a), a.push(i.key), i.ui) {
|
|
1224
|
-
if (Te(a, ["basic", "id"]) || Te(a, ["basic", "name"]))
|
|
1225
|
-
return !1;
|
|
1226
|
-
let D = !Te(j(i), c[i.key]);
|
|
1227
|
-
return g.change = D, D;
|
|
1228
|
-
} else if (i.array) {
|
|
1229
|
-
let D = !Te(j(i), c[i.key]);
|
|
1230
|
-
return g.change = D, D;
|
|
1231
|
-
} else {
|
|
1232
|
-
c[i.key] || (c[i.key] = {});
|
|
1233
|
-
let D = !1;
|
|
1234
|
-
return i.children.forEach((b) => {
|
|
1235
|
-
const O = {
|
|
1236
|
-
change: !1,
|
|
1237
|
-
children: {}
|
|
1238
|
-
};
|
|
1239
|
-
g.children[b.key] = O, u(a, b, c[i.key], O) && (D = !0);
|
|
1240
|
-
}), g.change = D, D;
|
|
1241
|
-
}
|
|
1242
|
-
}, r = {};
|
|
1243
|
-
f.config.forEach((a) => {
|
|
1244
|
-
const i = {
|
|
1245
|
-
change: !1,
|
|
1246
|
-
children: {}
|
|
1247
|
-
};
|
|
1248
|
-
r[a.key] = i, u([], a, f.object, i);
|
|
1249
|
-
}), $.value = r;
|
|
1250
|
-
};
|
|
1251
|
-
Fe(
|
|
1252
|
-
[() => f.config, () => f.object],
|
|
1326
|
+
const { t: n } = Qe(), { backgroundColor1: r } = ke(), s = e, l = t, d = R("20px"), f = R("56px"), p = R("200px"), c = An({}), g = R({});
|
|
1327
|
+
qe(
|
|
1328
|
+
[() => s.config, () => s.object],
|
|
1253
1329
|
() => {
|
|
1254
|
-
|
|
1330
|
+
g.value = Ut(
|
|
1331
|
+
s.config,
|
|
1332
|
+
s.object,
|
|
1333
|
+
(u, i) => {
|
|
1334
|
+
l("change", u, i);
|
|
1335
|
+
}
|
|
1336
|
+
);
|
|
1255
1337
|
},
|
|
1256
1338
|
{ immediate: !0 }
|
|
1257
1339
|
);
|
|
1258
|
-
const
|
|
1259
|
-
let
|
|
1260
|
-
return u.forEach((
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1340
|
+
const h = (u) => {
|
|
1341
|
+
let i, o = g.value;
|
|
1342
|
+
return u.forEach((a) => {
|
|
1343
|
+
let v;
|
|
1344
|
+
if (typeof a == "string" ? ot(o) && (v = o[a]) : Ue(o) && (v = o[a]), !v)
|
|
1345
|
+
return console.assert(!1, `isPropChanged unpkg failed keys=${u}`), !1;
|
|
1346
|
+
i = v, o = v.children;
|
|
1347
|
+
}), (i == null ? void 0 : i.change) ?? !1;
|
|
1348
|
+
}, y = (u, i) => {
|
|
1349
|
+
g.value = Ut(s.config, s.object), l("change", u, i);
|
|
1350
|
+
}, T = (u, i, o) => {
|
|
1351
|
+
let a = n(i.name);
|
|
1352
|
+
return h(u) && (a += " *"), _(
|
|
1353
|
+
Va,
|
|
1269
1354
|
{
|
|
1270
|
-
minHeight:
|
|
1355
|
+
minHeight: f.value
|
|
1271
1356
|
},
|
|
1272
1357
|
() => [
|
|
1273
|
-
|
|
1274
|
-
|
|
1358
|
+
_("span", { class: "ml-1", innerHTML: a }),
|
|
1359
|
+
_("div", { style: { width: p.value } }, o)
|
|
1275
1360
|
]
|
|
1276
1361
|
);
|
|
1277
|
-
},
|
|
1278
|
-
if (
|
|
1279
|
-
return console.assert(!1),
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1362
|
+
}, $ = (u, i, o, a, v) => {
|
|
1363
|
+
if (i.ui !== "dummy")
|
|
1364
|
+
return console.assert(!1), _("div", "renderUiDummy prop ui must be dummy");
|
|
1365
|
+
if (a !== void 0 && !v) {
|
|
1366
|
+
const m = L(i, !0);
|
|
1367
|
+
typeof o[a] != typeof m && (o[a] = m, y(u, o[a]));
|
|
1368
|
+
} else {
|
|
1369
|
+
const m = L(i);
|
|
1370
|
+
typeof o[i.key] != typeof m && (o[i.key] = m, y(u, o[i.key]));
|
|
1371
|
+
}
|
|
1372
|
+
}, b = (u, i, o, a, v) => i.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Ia, {
|
|
1373
|
+
modelValue: i.static ? i.value : se(u, i, o, a, v),
|
|
1374
|
+
"onUpdate:modelValue": (m) => {
|
|
1375
|
+
i.static || ue(u, i, o, m, a, v);
|
|
1285
1376
|
},
|
|
1286
|
-
hasDelete:
|
|
1377
|
+
hasDelete: a !== void 0 && !v,
|
|
1287
1378
|
onDelete: () => {
|
|
1288
|
-
|
|
1379
|
+
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1289
1380
|
},
|
|
1290
|
-
readonly:
|
|
1291
|
-
}),
|
|
1292
|
-
modelValue:
|
|
1293
|
-
"onUpdate:modelValue": (
|
|
1294
|
-
|
|
1381
|
+
readonly: i.static || i.readonly
|
|
1382
|
+
}), V = (u, i, o, a, v) => i.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(Xa, {
|
|
1383
|
+
modelValue: se(u, i, o, a, v),
|
|
1384
|
+
"onUpdate:modelValue": (m) => {
|
|
1385
|
+
ue(u, i, o, m, a, v);
|
|
1295
1386
|
},
|
|
1296
|
-
hasDelete:
|
|
1387
|
+
hasDelete: a !== void 0 && !v,
|
|
1297
1388
|
onDelete: () => {
|
|
1298
|
-
|
|
1389
|
+
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1299
1390
|
},
|
|
1300
|
-
readonly:
|
|
1301
|
-
}),
|
|
1302
|
-
modelValue:
|
|
1303
|
-
"onUpdate:modelValue": (
|
|
1304
|
-
|
|
1391
|
+
readonly: i.readonly
|
|
1392
|
+
}), D = (u, i, o, a, v) => i.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(Qa, {
|
|
1393
|
+
modelValue: se(u, i, o, a, v),
|
|
1394
|
+
"onUpdate:modelValue": (m) => {
|
|
1395
|
+
ue(u, i, o, m, a, v);
|
|
1305
1396
|
},
|
|
1306
|
-
hasDelete:
|
|
1397
|
+
hasDelete: a !== void 0 && !v,
|
|
1307
1398
|
onDelete: () => {
|
|
1308
|
-
|
|
1399
|
+
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, 1), o));
|
|
1309
1400
|
},
|
|
1310
|
-
readonly:
|
|
1311
|
-
}),
|
|
1312
|
-
modelValue:
|
|
1313
|
-
"onUpdate:modelValue": (
|
|
1314
|
-
|
|
1401
|
+
readonly: i.readonly
|
|
1402
|
+
}), z = (u, i, o, a, v) => i.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(Za, {
|
|
1403
|
+
modelValue: se(u, i, o, a, v),
|
|
1404
|
+
"onUpdate:modelValue": (m) => {
|
|
1405
|
+
ue(u, i, o, m, a, v);
|
|
1315
1406
|
},
|
|
1316
|
-
hasDelete:
|
|
1407
|
+
hasDelete: a !== void 0 && !v,
|
|
1317
1408
|
onDelete: () => {
|
|
1318
|
-
|
|
1409
|
+
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1319
1410
|
},
|
|
1320
1411
|
items: (() => {
|
|
1321
|
-
const
|
|
1322
|
-
return
|
|
1323
|
-
|
|
1324
|
-
title: n(
|
|
1325
|
-
value:
|
|
1412
|
+
const m = [];
|
|
1413
|
+
return i.items.forEach(({ title: O, value: q }) => {
|
|
1414
|
+
m.push({
|
|
1415
|
+
title: n(O),
|
|
1416
|
+
value: q
|
|
1326
1417
|
});
|
|
1327
|
-
}),
|
|
1418
|
+
}), m;
|
|
1328
1419
|
})(),
|
|
1329
|
-
readonly:
|
|
1330
|
-
}),
|
|
1331
|
-
modelValue:
|
|
1332
|
-
"onUpdate:modelValue": (
|
|
1333
|
-
|
|
1420
|
+
readonly: i.readonly
|
|
1421
|
+
}), be = (u, i, o, a, v) => i.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(ja, {
|
|
1422
|
+
modelValue: se(u, i, o, a, v),
|
|
1423
|
+
"onUpdate:modelValue": (m) => {
|
|
1424
|
+
ue(u, i, o, m, a, v);
|
|
1334
1425
|
},
|
|
1335
|
-
hasDelete:
|
|
1426
|
+
hasDelete: a !== void 0 && !v,
|
|
1336
1427
|
onDelete: () => {
|
|
1337
|
-
|
|
1428
|
+
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1338
1429
|
},
|
|
1339
|
-
readonly:
|
|
1340
|
-
}),
|
|
1341
|
-
modelValue:
|
|
1342
|
-
"onUpdate:modelValue": (
|
|
1343
|
-
|
|
1430
|
+
readonly: i.readonly
|
|
1431
|
+
}), ae = (u, i, o, a, v) => i.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(qa, {
|
|
1432
|
+
modelValue: se(u, i, o, a, v),
|
|
1433
|
+
"onUpdate:modelValue": (m) => {
|
|
1434
|
+
ue(u, i, o, m, a, v);
|
|
1344
1435
|
},
|
|
1345
|
-
hasDelete:
|
|
1436
|
+
hasDelete: a !== void 0 && !v,
|
|
1346
1437
|
onDelete: () => {
|
|
1347
|
-
|
|
1438
|
+
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1348
1439
|
},
|
|
1349
|
-
types:
|
|
1350
|
-
}),
|
|
1351
|
-
|
|
1440
|
+
types: i.types
|
|
1441
|
+
}), oe = (u, i, o, a, v) => i.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(u, i, o, a, v), _(Ga, {})), se = (u, i, o, a, v) => {
|
|
1442
|
+
const m = L(i, !0);
|
|
1443
|
+
return a !== void 0 && !v ? (typeof o[a] != typeof m && (o[a] = m, y(u, o[a])), o[a]) : (typeof o[i.key] != typeof m && (o[i.key] = m, y(u, o[i.key])), o[i.key]);
|
|
1444
|
+
}, ue = (u, i, o, a, v, m) => {
|
|
1445
|
+
const O = L(i, !0);
|
|
1446
|
+
if (typeof a != typeof O) {
|
|
1352
1447
|
console.assert(!1);
|
|
1353
1448
|
return;
|
|
1354
1449
|
}
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
a
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
title: c,
|
|
1378
|
-
collapse: i.collapse,
|
|
1450
|
+
v !== void 0 && !m ? a !== o[v] && (o[v] = a, y(u, o[v])) : a !== o[i.key] && (o[i.key] = a, y(u, o[i.key]));
|
|
1451
|
+
}, Ae = (u, i, o, a, v, m) => (u = un(u), v !== void 0 ? (u.push(v), m && u.push(i.key)) : u.push(i.key), i.ui ? i.array && v === void 0 ? vn(u, i, o, a, v, m) : mn(u, i, o, v, m) : i.array ? dn(u, i, o, a, v, m) : pn(
|
|
1452
|
+
u,
|
|
1453
|
+
i,
|
|
1454
|
+
o,
|
|
1455
|
+
a,
|
|
1456
|
+
v,
|
|
1457
|
+
m
|
|
1458
|
+
)), dn = (u, i, o, a, v, m) => {
|
|
1459
|
+
if (i.ui)
|
|
1460
|
+
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
1461
|
+
if (!i.array)
|
|
1462
|
+
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
1463
|
+
if (!a)
|
|
1464
|
+
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
1465
|
+
let O;
|
|
1466
|
+
v !== void 0 && !m ? (o[v] instanceof Array || (o[v] = L(i), y(u, o[i.key])), O = o[v]) : (o[i.key] instanceof Array || (o[i.key] = L(i), y(u, o[i.key])), O = o[i.key]);
|
|
1467
|
+
let q = n(i.name);
|
|
1468
|
+
a.collapse && h(u) && (q += " *");
|
|
1469
|
+
const pe = _(Oe, {
|
|
1470
|
+
title: q,
|
|
1471
|
+
collapse: a.collapse,
|
|
1379
1472
|
hasCreate: !0,
|
|
1380
|
-
onCollapse: (
|
|
1381
|
-
|
|
1473
|
+
onCollapse: (w) => {
|
|
1474
|
+
a.collapse = w;
|
|
1382
1475
|
},
|
|
1383
1476
|
onCreate: () => {
|
|
1384
|
-
|
|
1477
|
+
O.push({}), y(u, O);
|
|
1385
1478
|
}
|
|
1386
|
-
}),
|
|
1479
|
+
}), x = _(
|
|
1387
1480
|
"div",
|
|
1388
1481
|
{
|
|
1389
1482
|
style: {
|
|
@@ -1391,44 +1484,40 @@ const $e = /* @__PURE__ */ B({
|
|
|
1391
1484
|
}
|
|
1392
1485
|
},
|
|
1393
1486
|
(() => {
|
|
1394
|
-
const
|
|
1395
|
-
for (let
|
|
1396
|
-
if (!
|
|
1487
|
+
const w = [];
|
|
1488
|
+
for (let E = 0; E < O.length; E++) {
|
|
1489
|
+
if (!Ce(a.children)) {
|
|
1397
1490
|
console.assert(!1);
|
|
1398
1491
|
break;
|
|
1399
1492
|
}
|
|
1400
|
-
|
|
1493
|
+
a.children[E] || a.children.push({
|
|
1401
1494
|
collapse: !0,
|
|
1402
1495
|
children: {}
|
|
1403
1496
|
});
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1497
|
+
let we = n("x-prop-tree.entry");
|
|
1498
|
+
a.children[E].collapse && h([...u, E]) && (we += " *");
|
|
1499
|
+
const yn = _(Oe, {
|
|
1500
|
+
title: we,
|
|
1501
|
+
collapse: a.children[E].collapse,
|
|
1407
1502
|
hasDelete: !0,
|
|
1408
|
-
index:
|
|
1409
|
-
onCollapse: (
|
|
1410
|
-
if (!(
|
|
1411
|
-
console.assert(
|
|
1412
|
-
!1,
|
|
1413
|
-
"renderBranchArray dir children must be Array"
|
|
1414
|
-
);
|
|
1503
|
+
index: E,
|
|
1504
|
+
onCollapse: (Q) => {
|
|
1505
|
+
if (!Ce(a.children)) {
|
|
1506
|
+
console.assert(!1);
|
|
1415
1507
|
return;
|
|
1416
1508
|
}
|
|
1417
|
-
|
|
1509
|
+
a.children[E].collapse = Q;
|
|
1418
1510
|
},
|
|
1419
|
-
onDelete: (
|
|
1420
|
-
if (!(
|
|
1421
|
-
console.assert(
|
|
1422
|
-
!1,
|
|
1423
|
-
"renderBranchArray dir children must be Array"
|
|
1424
|
-
);
|
|
1511
|
+
onDelete: (Q) => {
|
|
1512
|
+
if (!Ce(a.children)) {
|
|
1513
|
+
console.assert(!1);
|
|
1425
1514
|
return;
|
|
1426
1515
|
}
|
|
1427
|
-
|
|
1516
|
+
a.children.splice(Q, 1), O.splice(Q, 1), y(u, O);
|
|
1428
1517
|
}
|
|
1429
1518
|
});
|
|
1430
|
-
|
|
1431
|
-
const
|
|
1519
|
+
w.push(yn);
|
|
1520
|
+
const _n = _(
|
|
1432
1521
|
"div",
|
|
1433
1522
|
{
|
|
1434
1523
|
style: {
|
|
@@ -1436,27 +1525,39 @@ const $e = /* @__PURE__ */ B({
|
|
|
1436
1525
|
}
|
|
1437
1526
|
},
|
|
1438
1527
|
(() => {
|
|
1439
|
-
const
|
|
1440
|
-
return
|
|
1441
|
-
if (!
|
|
1528
|
+
const Q = [];
|
|
1529
|
+
return i.children.forEach((ve) => {
|
|
1530
|
+
if (!Ce(a.children)) {
|
|
1531
|
+
console.assert(!1);
|
|
1442
1532
|
return;
|
|
1443
|
-
|
|
1533
|
+
}
|
|
1534
|
+
const Se = a.children[E];
|
|
1535
|
+
if (!Mt(Se.children)) {
|
|
1536
|
+
console.assert(!1);
|
|
1537
|
+
return;
|
|
1538
|
+
}
|
|
1539
|
+
Se.children[ve.key] || (Se.children[ve.key] = {
|
|
1540
|
+
collapse: !0,
|
|
1541
|
+
children: ve.array ? [] : {}
|
|
1542
|
+
});
|
|
1543
|
+
const hn = Ae(
|
|
1444
1544
|
u,
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1545
|
+
ve,
|
|
1546
|
+
O[E],
|
|
1547
|
+
Se.children[ve.key],
|
|
1548
|
+
E,
|
|
1549
|
+
!0
|
|
1449
1550
|
);
|
|
1450
|
-
|
|
1451
|
-
}),
|
|
1551
|
+
Q.push(hn);
|
|
1552
|
+
}), Q;
|
|
1452
1553
|
})()
|
|
1453
1554
|
);
|
|
1454
|
-
|
|
1555
|
+
a.children[E].collapse || w.push(_n);
|
|
1455
1556
|
}
|
|
1456
|
-
return
|
|
1557
|
+
return w;
|
|
1457
1558
|
})()
|
|
1458
1559
|
);
|
|
1459
|
-
return
|
|
1560
|
+
return _(
|
|
1460
1561
|
"div",
|
|
1461
1562
|
{
|
|
1462
1563
|
style: {
|
|
@@ -1464,24 +1565,30 @@ const $e = /* @__PURE__ */ B({
|
|
|
1464
1565
|
}
|
|
1465
1566
|
},
|
|
1466
1567
|
(() => {
|
|
1467
|
-
const
|
|
1468
|
-
return
|
|
1568
|
+
const w = [];
|
|
1569
|
+
return w.push(pe), a.collapse || w.push(x), w;
|
|
1469
1570
|
})()
|
|
1470
1571
|
);
|
|
1471
|
-
},
|
|
1472
|
-
if (
|
|
1473
|
-
return console.assert(!1),
|
|
1474
|
-
if (
|
|
1475
|
-
return console.assert(!1),
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1572
|
+
}, pn = (u, i, o, a, v, m) => {
|
|
1573
|
+
if (i.ui)
|
|
1574
|
+
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
1575
|
+
if (i.array)
|
|
1576
|
+
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
1577
|
+
if (!a)
|
|
1578
|
+
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
1579
|
+
let O = n(i.name);
|
|
1580
|
+
a.collapse && h(u) && (O += " *");
|
|
1581
|
+
const q = _(Oe, {
|
|
1582
|
+
title: O,
|
|
1583
|
+
collapse: a.collapse,
|
|
1584
|
+
onCollapse: (x) => {
|
|
1585
|
+
a.collapse = x;
|
|
1586
|
+
},
|
|
1587
|
+
hasDelete: v !== void 0 && !m,
|
|
1588
|
+
onDelete: () => {
|
|
1589
|
+
v === void 0 || m || (o.splice(v, 1), y(u.slice(0, -1), o));
|
|
1483
1590
|
}
|
|
1484
|
-
}),
|
|
1591
|
+
}), pe = _(
|
|
1485
1592
|
"div",
|
|
1486
1593
|
{
|
|
1487
1594
|
style: {
|
|
@@ -1489,30 +1596,27 @@ const $e = /* @__PURE__ */ B({
|
|
|
1489
1596
|
}
|
|
1490
1597
|
},
|
|
1491
1598
|
(() => {
|
|
1492
|
-
const
|
|
1493
|
-
return
|
|
1494
|
-
if (!
|
|
1599
|
+
const x = [];
|
|
1600
|
+
return i.children.forEach((w) => {
|
|
1601
|
+
if (!Mt(a.children)) {
|
|
1495
1602
|
console.assert(!1);
|
|
1496
1603
|
return;
|
|
1497
1604
|
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
const fe = et(
|
|
1605
|
+
a.children[w.key] || (a.children[w.key] = {
|
|
1606
|
+
collapse: !0,
|
|
1607
|
+
children: !w.ui && w.array ? [] : {}
|
|
1608
|
+
});
|
|
1609
|
+
const E = Ae(
|
|
1506
1610
|
u,
|
|
1507
|
-
|
|
1508
|
-
(typeof
|
|
1509
|
-
|
|
1611
|
+
w,
|
|
1612
|
+
(typeof o[i.key] != "object" && (o[i.key] = {}, y(u, o[i.key])), o[i.key]),
|
|
1613
|
+
a.children[w.key]
|
|
1510
1614
|
);
|
|
1511
|
-
|
|
1512
|
-
}),
|
|
1615
|
+
x.push(E);
|
|
1616
|
+
}), x;
|
|
1513
1617
|
})()
|
|
1514
1618
|
);
|
|
1515
|
-
return
|
|
1619
|
+
return _(
|
|
1516
1620
|
"div",
|
|
1517
1621
|
{
|
|
1518
1622
|
style: {
|
|
@@ -1520,29 +1624,32 @@ const $e = /* @__PURE__ */ B({
|
|
|
1520
1624
|
}
|
|
1521
1625
|
},
|
|
1522
1626
|
(() => {
|
|
1523
|
-
const
|
|
1524
|
-
return
|
|
1627
|
+
const x = [];
|
|
1628
|
+
return x.push(q), a.collapse || x.push(pe), x;
|
|
1525
1629
|
})()
|
|
1526
1630
|
);
|
|
1527
|
-
},
|
|
1528
|
-
if (!
|
|
1529
|
-
return console.assert(!1),
|
|
1530
|
-
if (!
|
|
1531
|
-
return console.assert(!1),
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1631
|
+
}, vn = (u, i, o, a, v, m) => {
|
|
1632
|
+
if (!i.ui)
|
|
1633
|
+
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
1634
|
+
if (!i.array)
|
|
1635
|
+
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
1636
|
+
if (!a)
|
|
1637
|
+
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
1638
|
+
let O;
|
|
1639
|
+
v !== void 0 && !m ? (o[v] instanceof Array || (o[v] = L(i), y(u, o[v])), O = o[v]) : (o[i.key] instanceof Array || (o[i.key] = L(i), y(u, o[i.key])), O = o[i.key]);
|
|
1640
|
+
let q = n(i.name);
|
|
1641
|
+
a.collapse && h(u) && (q += " *");
|
|
1642
|
+
const pe = _(Oe, {
|
|
1643
|
+
title: q,
|
|
1644
|
+
collapse: a.collapse,
|
|
1538
1645
|
hasCreate: !0,
|
|
1539
|
-
onCollapse: (
|
|
1540
|
-
|
|
1646
|
+
onCollapse: (w) => {
|
|
1647
|
+
a.collapse = w;
|
|
1541
1648
|
},
|
|
1542
1649
|
onCreate: () => {
|
|
1543
|
-
|
|
1650
|
+
O.push(L(i, !0)), y(u, O);
|
|
1544
1651
|
}
|
|
1545
|
-
}),
|
|
1652
|
+
}), x = _(
|
|
1546
1653
|
"div",
|
|
1547
1654
|
{
|
|
1548
1655
|
style: {
|
|
@@ -1550,15 +1657,15 @@ const $e = /* @__PURE__ */ B({
|
|
|
1550
1657
|
}
|
|
1551
1658
|
},
|
|
1552
1659
|
(() => {
|
|
1553
|
-
const
|
|
1554
|
-
for (let
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1660
|
+
const w = [];
|
|
1661
|
+
for (let E = 0; E < O.length; E++) {
|
|
1662
|
+
const we = Ae(u, i, O, void 0, E, !1);
|
|
1663
|
+
w.push(we);
|
|
1557
1664
|
}
|
|
1558
|
-
return
|
|
1665
|
+
return w;
|
|
1559
1666
|
})()
|
|
1560
1667
|
);
|
|
1561
|
-
return
|
|
1668
|
+
return _(
|
|
1562
1669
|
"div",
|
|
1563
1670
|
{
|
|
1564
1671
|
style: {
|
|
@@ -1566,51 +1673,65 @@ const $e = /* @__PURE__ */ B({
|
|
|
1566
1673
|
}
|
|
1567
1674
|
},
|
|
1568
1675
|
(() => {
|
|
1569
|
-
const
|
|
1570
|
-
return
|
|
1676
|
+
const w = [];
|
|
1677
|
+
return w.push(pe), a.collapse || w.push(x), w;
|
|
1571
1678
|
})()
|
|
1572
1679
|
);
|
|
1573
|
-
},
|
|
1574
|
-
if (!
|
|
1575
|
-
return console.assert(!1),
|
|
1576
|
-
let
|
|
1577
|
-
return
|
|
1578
|
-
},
|
|
1680
|
+
}, mn = (u, i, o, a, v) => {
|
|
1681
|
+
if (!i.ui)
|
|
1682
|
+
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
1683
|
+
let m;
|
|
1684
|
+
return i.ui === "dummy" ? m = $(u, i, o, a, v) : i.ui === "strInput" ? m = b(u, i, o, a, v) : i.ui === "numInput" ? m = V(u, i, o, a, v) : i.ui === "switch" ? m = D(u, i, o, a, v) : i.ui === "select" ? m = z(u, i, o, a, v) : i.ui === "colorPicker" ? m = be(u, i, o, a, v) : i.ui === "multiTypes" ? m = ae(u, i, o, a, v) : i.ui === "compSelect" ? m = oe(u, i, o, a, v) : console.assert(!1, "renderLeafScalar not implemented"), T(u, i, m ? [m] : []);
|
|
1685
|
+
}, gn = () => _(
|
|
1579
1686
|
"div",
|
|
1580
1687
|
{
|
|
1581
1688
|
class: "text-body-2",
|
|
1582
1689
|
style: {
|
|
1583
|
-
background:
|
|
1690
|
+
background: r.value
|
|
1584
1691
|
}
|
|
1585
1692
|
},
|
|
1586
1693
|
(() => {
|
|
1587
1694
|
const u = [];
|
|
1588
|
-
if (
|
|
1589
|
-
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
}
|
|
1599
|
-
const i = et([], a, f.object, r[a.key]);
|
|
1600
|
-
u.push(i);
|
|
1695
|
+
if (s.unique && s.config.length > 0 && s.object) {
|
|
1696
|
+
c[s.unique] || (c[s.unique] = {});
|
|
1697
|
+
const i = c[s.unique];
|
|
1698
|
+
s.config.forEach((o) => {
|
|
1699
|
+
i[o.key] || (i[o.key] = {
|
|
1700
|
+
collapse: !0,
|
|
1701
|
+
children: !o.ui && o.array ? [] : {}
|
|
1702
|
+
});
|
|
1703
|
+
const a = Ae([], o, s.object, i[o.key]);
|
|
1704
|
+
u.push(a);
|
|
1601
1705
|
});
|
|
1602
1706
|
}
|
|
1603
1707
|
return u;
|
|
1604
1708
|
})()
|
|
1605
1709
|
);
|
|
1606
|
-
return (u,
|
|
1607
|
-
|
|
1608
|
-
|
|
1710
|
+
return (u, i) => (C(), W(Nt, null, [
|
|
1711
|
+
M(gn),
|
|
1712
|
+
M(Ea)
|
|
1609
1713
|
], 64));
|
|
1610
1714
|
}
|
|
1611
|
-
}),
|
|
1612
|
-
e.component("XPropTree",
|
|
1613
|
-
},
|
|
1715
|
+
}), eo = (e) => {
|
|
1716
|
+
e.component("XPropTree", ka);
|
|
1717
|
+
}, to = (e, t, n) => {
|
|
1718
|
+
const r = e[t];
|
|
1719
|
+
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((s, l) => {
|
|
1720
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1721
|
+
l.bind(
|
|
1722
|
+
null,
|
|
1723
|
+
new Error(
|
|
1724
|
+
"Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
|
|
1725
|
+
)
|
|
1726
|
+
)
|
|
1727
|
+
);
|
|
1728
|
+
});
|
|
1729
|
+
};
|
|
1730
|
+
async function ao(e) {
|
|
1731
|
+
return (await to(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-g17k76yy.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-f1nv26or.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
1732
|
+
}
|
|
1733
|
+
const oo = { install: eo };
|
|
1614
1734
|
export {
|
|
1615
|
-
|
|
1735
|
+
oo as default,
|
|
1736
|
+
ao as loadLocaleMessagePropTree
|
|
1616
1737
|
};
|