x-prop-tree 0.6.23 → 0.6.24

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/index.js CHANGED
@@ -1,55 +1,56 @@
1
- import { provide as Te, inject as Se, defineComponent as K, ref as B, computed as R, resolveComponent as V, createBlock as F, openBlock as w, unref as E, isRef as Fe, withCtx as J, createVNode as N, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as z, normalizeStyle as le, createElementVNode as q, createCommentVNode as I, renderSlot as jn, h, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as En, mergeProps as zt, watchEffect as mt, watch as xe, reactive as kn, onMounted as Nn, onBeforeUnmount as Bn } from "vue";
2
- import { useI18n as ue } from "vue-i18n";
3
- import { useViewStack as ut, useColor as we, eventBus as _e, useSystem as Rn } from "x-essential-lib";
4
- import { getPropDefault as k, pkgs as qt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
5
- import { globalState as Gn } from "x-state-lib";
6
- import { useDisplay as Kn } from "vuetify";
7
- var It = typeof global == "object" && global && global.Object === Object && global, zn = typeof self == "object" && self && self.Object === Object && self, Y = It || zn || Function("return this")(), se = Y.Symbol, Xt = Object.prototype, qn = Xt.hasOwnProperty, In = Xt.toString, Ce = se ? se.toStringTag : void 0;
8
- function Xn(e) {
9
- var t = qn.call(e, Ce), n = e[Ce];
1
+ import { provide as we, inject as Ae, defineComponent as G, ref as N, computed as F, resolveComponent as V, createBlock as B, openBlock as A, unref as w, isRef as Ve, withCtx as H, createVNode as k, createElementBlock as K, Fragment as He, renderList as zt, createTextVNode as ze, toDisplayString as Y, resolveDirective as ce, withDirectives as le, withModifiers as J, normalizeStyle as re, createElementVNode as z, createCommentVNode as X, renderSlot as Bn, h as _, mergeModels as Z, useModel as I, useId as ct, onUnmounted as ft, withKeys as Jt, mergeProps as dt, watchEffect as _t, watch as be, useTemplateRef as It, reactive as Fn, onMounted as Hn, onBeforeUnmount as Gn } from "vue";
2
+ import { useI18n as ie } from "vue-i18n";
3
+ import { useViewStack as Je, useColor as me, eventBus as $e, useSystem as Xt, injectDark as Kn, injectLocale as qn } from "x-essential-lib";
4
+ import { getPropDefault as R, pkgs as Zt, parsePixelStr as zn, parsePercentStr as Jn } from "x-runtime-lib";
5
+ import { globalState as In } from "x-state-lib";
6
+ import { useDisplay as Xn } from "vuetify";
7
+ import { XBlockly as Zn } from "x-block-lib";
8
+ var Wt = typeof global == "object" && global && global.Object === Object && global, Wn = typeof self == "object" && self && self.Object === Object && self, ee = Wt || Wn || Function("return this")(), ue = ee.Symbol, Yt = Object.prototype, Yn = Yt.hasOwnProperty, Qn = Yt.toString, Pe = ue ? ue.toStringTag : void 0;
9
+ function er(e) {
10
+ var t = Yn.call(e, Pe), n = e[Pe];
10
11
  try {
11
- e[Ce] = void 0;
12
+ e[Pe] = void 0;
12
13
  var r = !0;
13
14
  } catch {
14
15
  }
15
- var i = In.call(e);
16
- return r && (t ? e[Ce] = n : delete e[Ce]), i;
16
+ var l = Qn.call(e);
17
+ return r && (t ? e[Pe] = n : delete e[Pe]), l;
17
18
  }
18
- var Zn = Object.prototype, Jn = Zn.toString;
19
- function Wn(e) {
20
- return Jn.call(e);
19
+ var tr = Object.prototype, nr = tr.toString;
20
+ function rr(e) {
21
+ return nr.call(e);
21
22
  }
22
- var Yn = "[object Null]", Qn = "[object Undefined]", yt = se ? se.toStringTag : void 0;
23
- function Le(e) {
24
- return e == null ? e === void 0 ? Qn : Yn : yt && yt in Object(e) ? Xn(e) : Wn(e);
23
+ var or = "[object Null]", lr = "[object Undefined]", bt = ue ? ue.toStringTag : void 0;
24
+ function je(e) {
25
+ return e == null ? e === void 0 ? lr : or : bt && bt in Object(e) ? er(e) : rr(e);
25
26
  }
26
- function de(e) {
27
+ function pe(e) {
27
28
  return e != null && typeof e == "object";
28
29
  }
29
- var Me = Array.isArray;
30
- function qe(e) {
30
+ var Ue = Array.isArray;
31
+ function Ie(e) {
31
32
  var t = typeof e;
32
33
  return e != null && (t == "object" || t == "function");
33
34
  }
34
- var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object GeneratorFunction]", rr = "[object Proxy]";
35
- function Zt(e) {
36
- if (!qe(e))
35
+ var ir = "[object AsyncFunction]", sr = "[object Function]", ar = "[object GeneratorFunction]", ur = "[object Proxy]";
36
+ function Qt(e) {
37
+ if (!Ie(e))
37
38
  return !1;
38
- var t = Le(e);
39
- return t == tr || t == nr || t == er || t == rr;
39
+ var t = je(e);
40
+ return t == sr || t == ar || t == ir || t == ur;
40
41
  }
41
- var Qe = Y["__core-js_shared__"], gt = function() {
42
- var e = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
42
+ var tt = ee["__core-js_shared__"], $t = function() {
43
+ var e = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
43
44
  return e ? "Symbol(src)_1." + e : "";
44
45
  }();
45
- function or(e) {
46
- return !!gt && gt in e;
46
+ function cr(e) {
47
+ return !!$t && $t in e;
47
48
  }
48
- var ir = Function.prototype, lr = ir.toString;
49
- function ve(e) {
49
+ var fr = Function.prototype, dr = fr.toString;
50
+ function ge(e) {
50
51
  if (e != null) {
51
52
  try {
52
- return lr.call(e);
53
+ return dr.call(e);
53
54
  } catch {
54
55
  }
55
56
  try {
@@ -59,660 +60,660 @@ function ve(e) {
59
60
  }
60
61
  return "";
61
62
  }
62
- var sr = /[\\^$.*+?()[\]{}|]/g, ar = /^\[object .+?Constructor\]$/, ur = Function.prototype, cr = Object.prototype, fr = ur.toString, dr = cr.hasOwnProperty, pr = RegExp(
63
- "^" + fr.call(dr).replace(sr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
63
+ var pr = /[\\^$.*+?()[\]{}|]/g, vr = /^\[object .+?Constructor\]$/, mr = Function.prototype, gr = Object.prototype, yr = mr.toString, hr = gr.hasOwnProperty, _r = RegExp(
64
+ "^" + yr.call(hr).replace(pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
64
65
  );
65
- function vr(e) {
66
- if (!qe(e) || or(e))
66
+ function br(e) {
67
+ if (!Ie(e) || cr(e))
67
68
  return !1;
68
- var t = Zt(e) ? pr : ar;
69
- return t.test(ve(e));
69
+ var t = Qt(e) ? _r : vr;
70
+ return t.test(ge(e));
70
71
  }
71
- function mr(e, t) {
72
+ function $r(e, t) {
72
73
  return e == null ? void 0 : e[t];
73
74
  }
74
- function me(e, t) {
75
- var n = mr(e, t);
76
- return vr(n) ? n : void 0;
75
+ function ye(e, t) {
76
+ var n = $r(e, t);
77
+ return br(n) ? n : void 0;
77
78
  }
78
- var rt = me(Y, "WeakMap"), ht = Object.create, yr = /* @__PURE__ */ function() {
79
+ var lt = ye(ee, "WeakMap"), Tt = Object.create, Tr = /* @__PURE__ */ function() {
79
80
  function e() {
80
81
  }
81
82
  return function(t) {
82
- if (!qe(t))
83
+ if (!Ie(t))
83
84
  return {};
84
- if (ht)
85
- return ht(t);
85
+ if (Tt)
86
+ return Tt(t);
86
87
  e.prototype = t;
87
88
  var n = new e();
88
89
  return e.prototype = void 0, n;
89
90
  };
90
- }(), _t = function() {
91
+ }(), St = function() {
91
92
  try {
92
- var e = me(Object, "defineProperty");
93
+ var e = ye(Object, "defineProperty");
93
94
  return e({}, "", {}), e;
94
95
  } catch {
95
96
  }
96
97
  }();
97
- function gr(e, t) {
98
+ function Sr(e, t) {
98
99
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
99
100
  ;
100
101
  return e;
101
102
  }
102
- var hr = 9007199254740991, _r = /^(?:0|[1-9]\d*)$/;
103
- function br(e, t) {
103
+ var wr = 9007199254740991, Ar = /^(?:0|[1-9]\d*)$/;
104
+ function Cr(e, t) {
104
105
  var n = typeof e;
105
- return t = t ?? hr, !!t && (n == "number" || n != "symbol" && _r.test(e)) && e > -1 && e % 1 == 0 && e < t;
106
+ return t = t ?? wr, !!t && (n == "number" || n != "symbol" && Ar.test(e)) && e > -1 && e % 1 == 0 && e < t;
106
107
  }
107
- function $r(e, t, n) {
108
- t == "__proto__" && _t ? _t(e, t, {
108
+ function Pr(e, t, n) {
109
+ t == "__proto__" && St ? St(e, t, {
109
110
  configurable: !0,
110
111
  enumerable: !0,
111
112
  value: n,
112
113
  writable: !0
113
114
  }) : e[t] = n;
114
115
  }
115
- function ct(e, t) {
116
+ function pt(e, t) {
116
117
  return e === t || e !== e && t !== t;
117
118
  }
118
- var Tr = Object.prototype, Sr = Tr.hasOwnProperty;
119
- function wr(e, t, n) {
119
+ var xr = Object.prototype, Or = xr.hasOwnProperty;
120
+ function Vr(e, t, n) {
120
121
  var r = e[t];
121
- (!(Sr.call(e, t) && ct(r, n)) || n === void 0 && !(t in e)) && $r(e, t, n);
122
+ (!(Or.call(e, t) && pt(r, n)) || n === void 0 && !(t in e)) && Pr(e, t, n);
122
123
  }
123
- var Ar = 9007199254740991;
124
- function Jt(e) {
125
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ar;
124
+ var Ur = 9007199254740991;
125
+ function en(e) {
126
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ur;
126
127
  }
127
- function Cr(e) {
128
- return e != null && Jt(e.length) && !Zt(e);
128
+ function Mr(e) {
129
+ return e != null && en(e.length) && !Qt(e);
129
130
  }
130
- var Pr = Object.prototype;
131
- function Wt(e) {
132
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || Pr;
131
+ var Lr = Object.prototype;
132
+ function tn(e) {
133
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || Lr;
133
134
  return e === n;
134
135
  }
135
- function xr(e, t) {
136
+ function jr(e, t) {
136
137
  for (var n = -1, r = Array(e); ++n < e; )
137
138
  r[n] = t(n);
138
139
  return r;
139
140
  }
140
- var Or = "[object Arguments]";
141
- function bt(e) {
142
- return de(e) && Le(e) == Or;
141
+ var Dr = "[object Arguments]";
142
+ function wt(e) {
143
+ return pe(e) && je(e) == Dr;
143
144
  }
144
- var Yt = Object.prototype, Mr = Yt.hasOwnProperty, Vr = Yt.propertyIsEnumerable, Ur = bt(/* @__PURE__ */ function() {
145
+ var nn = Object.prototype, kr = nn.hasOwnProperty, Er = nn.propertyIsEnumerable, Nr = wt(/* @__PURE__ */ function() {
145
146
  return arguments;
146
- }()) ? bt : function(e) {
147
- return de(e) && Mr.call(e, "callee") && !Vr.call(e, "callee");
147
+ }()) ? wt : function(e) {
148
+ return pe(e) && kr.call(e, "callee") && !Er.call(e, "callee");
148
149
  };
149
- function Lr() {
150
+ function Rr() {
150
151
  return !1;
151
152
  }
152
- var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Qt && typeof module == "object" && module && !module.nodeType && module, Dr = $t && $t.exports === Qt, Tt = Dr ? Y.Buffer : void 0, jr = Tt ? Tt.isBuffer : void 0, Ge = jr || Lr, Er = "[object Arguments]", kr = "[object Array]", Nr = "[object Boolean]", Br = "[object Date]", Rr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", zr = "[object RegExp]", qr = "[object Set]", Ir = "[object String]", Xr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Jr = "[object DataView]", Wr = "[object Float32Array]", Yr = "[object Float64Array]", Qr = "[object Int8Array]", eo = "[object Int16Array]", to = "[object Int32Array]", no = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", io = "[object Uint32Array]", U = {};
153
- U[Wr] = U[Yr] = U[Qr] = U[eo] = U[to] = U[no] = U[ro] = U[oo] = U[io] = !0;
154
- U[Er] = U[kr] = U[Zr] = U[Nr] = U[Jr] = U[Br] = U[Rr] = U[Fr] = U[Hr] = U[Gr] = U[Kr] = U[zr] = U[qr] = U[Ir] = U[Xr] = !1;
155
- function lo(e) {
156
- return de(e) && Jt(e.length) && !!U[Le(e)];
153
+ var rn = typeof exports == "object" && exports && !exports.nodeType && exports, At = rn && typeof module == "object" && module && !module.nodeType && module, Br = At && At.exports === rn, Ct = Br ? ee.Buffer : void 0, Fr = Ct ? Ct.isBuffer : void 0, Ge = Fr || Rr, Hr = "[object Arguments]", Gr = "[object Array]", Kr = "[object Boolean]", qr = "[object Date]", zr = "[object Error]", Jr = "[object Function]", Ir = "[object Map]", Xr = "[object Number]", Zr = "[object Object]", Wr = "[object RegExp]", Yr = "[object Set]", Qr = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", no = "[object DataView]", ro = "[object Float32Array]", oo = "[object Float64Array]", lo = "[object Int8Array]", io = "[object Int16Array]", so = "[object Int32Array]", ao = "[object Uint8Array]", uo = "[object Uint8ClampedArray]", co = "[object Uint16Array]", fo = "[object Uint32Array]", L = {};
154
+ L[ro] = L[oo] = L[lo] = L[io] = L[so] = L[ao] = L[uo] = L[co] = L[fo] = !0;
155
+ L[Hr] = L[Gr] = L[to] = L[Kr] = L[no] = L[qr] = L[zr] = L[Jr] = L[Ir] = L[Xr] = L[Zr] = L[Wr] = L[Yr] = L[Qr] = L[eo] = !1;
156
+ function po(e) {
157
+ return pe(e) && en(e.length) && !!L[je(e)];
157
158
  }
158
- function ft(e) {
159
+ function vt(e) {
159
160
  return function(t) {
160
161
  return e(t);
161
162
  };
162
163
  }
163
- var en = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = en && typeof module == "object" && module && !module.nodeType && module, so = Oe && Oe.exports === en, et = so && It.process, $e = function() {
164
+ var on = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = on && typeof module == "object" && module && !module.nodeType && module, vo = Oe && Oe.exports === on, nt = vo && Wt.process, Se = function() {
164
165
  try {
165
166
  var e = Oe && Oe.require && Oe.require("util").types;
166
- return e || et && et.binding && et.binding("util");
167
+ return e || nt && nt.binding && nt.binding("util");
167
168
  } catch {
168
169
  }
169
- }(), St = $e && $e.isTypedArray, tn = St ? ft(St) : lo, ao = Object.prototype, uo = ao.hasOwnProperty;
170
- function co(e, t) {
171
- var n = Me(e), r = !n && Ur(e), i = !n && !r && Ge(e), o = !n && !r && !i && tn(e), l = n || r || i || o, a = l ? xr(e.length, String) : [], u = a.length;
170
+ }(), Pt = Se && Se.isTypedArray, ln = Pt ? vt(Pt) : po, mo = Object.prototype, go = mo.hasOwnProperty;
171
+ function yo(e, t) {
172
+ var n = Ue(e), r = !n && Nr(e), l = !n && !r && Ge(e), o = !n && !r && !l && ln(e), i = n || r || l || o, a = i ? jr(e.length, String) : [], u = a.length;
172
173
  for (var s in e)
173
- uo.call(e, s) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
174
+ go.call(e, s) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
174
175
  (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
175
- i && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
176
+ l && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
176
177
  o && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
177
- br(s, u))) && a.push(s);
178
+ Cr(s, u))) && a.push(s);
178
179
  return a;
179
180
  }
180
- function nn(e, t) {
181
+ function sn(e, t) {
181
182
  return function(n) {
182
183
  return e(t(n));
183
184
  };
184
185
  }
185
- var fo = nn(Object.keys, Object), po = Object.prototype, vo = po.hasOwnProperty;
186
- function mo(e) {
187
- if (!Wt(e))
188
- return fo(e);
186
+ var ho = sn(Object.keys, Object), _o = Object.prototype, bo = _o.hasOwnProperty;
187
+ function $o(e) {
188
+ if (!tn(e))
189
+ return ho(e);
189
190
  var t = [];
190
191
  for (var n in Object(e))
191
- vo.call(e, n) && n != "constructor" && t.push(n);
192
+ bo.call(e, n) && n != "constructor" && t.push(n);
192
193
  return t;
193
194
  }
194
- function yo(e) {
195
- return Cr(e) ? co(e) : mo(e);
195
+ function To(e) {
196
+ return Mr(e) ? yo(e) : $o(e);
196
197
  }
197
- var Ve = me(Object, "create");
198
- function go() {
199
- this.__data__ = Ve ? Ve(null) : {}, this.size = 0;
198
+ var Me = ye(Object, "create");
199
+ function So() {
200
+ this.__data__ = Me ? Me(null) : {}, this.size = 0;
200
201
  }
201
- function ho(e) {
202
+ function wo(e) {
202
203
  var t = this.has(e) && delete this.__data__[e];
203
204
  return this.size -= t ? 1 : 0, t;
204
205
  }
205
- var _o = "__lodash_hash_undefined__", bo = Object.prototype, $o = bo.hasOwnProperty;
206
- function To(e) {
206
+ var Ao = "__lodash_hash_undefined__", Co = Object.prototype, Po = Co.hasOwnProperty;
207
+ function xo(e) {
207
208
  var t = this.__data__;
208
- if (Ve) {
209
+ if (Me) {
209
210
  var n = t[e];
210
- return n === _o ? void 0 : n;
211
+ return n === Ao ? void 0 : n;
211
212
  }
212
- return $o.call(t, e) ? t[e] : void 0;
213
+ return Po.call(t, e) ? t[e] : void 0;
213
214
  }
214
- var So = Object.prototype, wo = So.hasOwnProperty;
215
- function Ao(e) {
215
+ var Oo = Object.prototype, Vo = Oo.hasOwnProperty;
216
+ function Uo(e) {
216
217
  var t = this.__data__;
217
- return Ve ? t[e] !== void 0 : wo.call(t, e);
218
+ return Me ? t[e] !== void 0 : Vo.call(t, e);
218
219
  }
219
- var Co = "__lodash_hash_undefined__";
220
- function Po(e, t) {
220
+ var Mo = "__lodash_hash_undefined__";
221
+ function Lo(e, t) {
221
222
  var n = this.__data__;
222
- return this.size += this.has(e) ? 0 : 1, n[e] = Ve && t === void 0 ? Co : t, this;
223
+ return this.size += this.has(e) ? 0 : 1, n[e] = Me && t === void 0 ? Mo : t, this;
223
224
  }
224
- function pe(e) {
225
+ function ve(e) {
225
226
  var t = -1, n = e == null ? 0 : e.length;
226
227
  for (this.clear(); ++t < n; ) {
227
228
  var r = e[t];
228
229
  this.set(r[0], r[1]);
229
230
  }
230
231
  }
231
- pe.prototype.clear = go;
232
- pe.prototype.delete = ho;
233
- pe.prototype.get = To;
234
- pe.prototype.has = Ao;
235
- pe.prototype.set = Po;
236
- function xo() {
232
+ ve.prototype.clear = So;
233
+ ve.prototype.delete = wo;
234
+ ve.prototype.get = xo;
235
+ ve.prototype.has = Uo;
236
+ ve.prototype.set = Lo;
237
+ function jo() {
237
238
  this.__data__ = [], this.size = 0;
238
239
  }
239
- function Ie(e, t) {
240
+ function Xe(e, t) {
240
241
  for (var n = e.length; n--; )
241
- if (ct(e[n][0], t))
242
+ if (pt(e[n][0], t))
242
243
  return n;
243
244
  return -1;
244
245
  }
245
- var Oo = Array.prototype, Mo = Oo.splice;
246
- function Vo(e) {
247
- var t = this.__data__, n = Ie(t, e);
246
+ var Do = Array.prototype, ko = Do.splice;
247
+ function Eo(e) {
248
+ var t = this.__data__, n = Xe(t, e);
248
249
  if (n < 0)
249
250
  return !1;
250
251
  var r = t.length - 1;
251
- return n == r ? t.pop() : Mo.call(t, n, 1), --this.size, !0;
252
+ return n == r ? t.pop() : ko.call(t, n, 1), --this.size, !0;
252
253
  }
253
- function Uo(e) {
254
- var t = this.__data__, n = Ie(t, e);
254
+ function No(e) {
255
+ var t = this.__data__, n = Xe(t, e);
255
256
  return n < 0 ? void 0 : t[n][1];
256
257
  }
257
- function Lo(e) {
258
- return Ie(this.__data__, e) > -1;
258
+ function Ro(e) {
259
+ return Xe(this.__data__, e) > -1;
259
260
  }
260
- function Do(e, t) {
261
- var n = this.__data__, r = Ie(n, e);
261
+ function Bo(e, t) {
262
+ var n = this.__data__, r = Xe(n, e);
262
263
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
263
264
  }
264
- function ie(e) {
265
+ function se(e) {
265
266
  var t = -1, n = e == null ? 0 : e.length;
266
267
  for (this.clear(); ++t < n; ) {
267
268
  var r = e[t];
268
269
  this.set(r[0], r[1]);
269
270
  }
270
271
  }
271
- ie.prototype.clear = xo;
272
- ie.prototype.delete = Vo;
273
- ie.prototype.get = Uo;
274
- ie.prototype.has = Lo;
275
- ie.prototype.set = Do;
276
- var Ue = me(Y, "Map");
277
- function jo() {
272
+ se.prototype.clear = jo;
273
+ se.prototype.delete = Eo;
274
+ se.prototype.get = No;
275
+ se.prototype.has = Ro;
276
+ se.prototype.set = Bo;
277
+ var Le = ye(ee, "Map");
278
+ function Fo() {
278
279
  this.size = 0, this.__data__ = {
279
- hash: new pe(),
280
- map: new (Ue || ie)(),
281
- string: new pe()
280
+ hash: new ve(),
281
+ map: new (Le || se)(),
282
+ string: new ve()
282
283
  };
283
284
  }
284
- function Eo(e) {
285
+ function Ho(e) {
285
286
  var t = typeof e;
286
287
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
287
288
  }
288
- function Xe(e, t) {
289
+ function Ze(e, t) {
289
290
  var n = e.__data__;
290
- return Eo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
291
+ return Ho(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
291
292
  }
292
- function ko(e) {
293
- var t = Xe(this, e).delete(e);
293
+ function Go(e) {
294
+ var t = Ze(this, e).delete(e);
294
295
  return this.size -= t ? 1 : 0, t;
295
296
  }
296
- function No(e) {
297
- return Xe(this, e).get(e);
297
+ function Ko(e) {
298
+ return Ze(this, e).get(e);
298
299
  }
299
- function Bo(e) {
300
- return Xe(this, e).has(e);
300
+ function qo(e) {
301
+ return Ze(this, e).has(e);
301
302
  }
302
- function Ro(e, t) {
303
- var n = Xe(this, e), r = n.size;
303
+ function zo(e, t) {
304
+ var n = Ze(this, e), r = n.size;
304
305
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
305
306
  }
306
- function ye(e) {
307
+ function he(e) {
307
308
  var t = -1, n = e == null ? 0 : e.length;
308
309
  for (this.clear(); ++t < n; ) {
309
310
  var r = e[t];
310
311
  this.set(r[0], r[1]);
311
312
  }
312
313
  }
313
- ye.prototype.clear = jo;
314
- ye.prototype.delete = ko;
315
- ye.prototype.get = No;
316
- ye.prototype.has = Bo;
317
- ye.prototype.set = Ro;
318
- function Fo(e, t) {
319
- for (var n = -1, r = t.length, i = e.length; ++n < r; )
320
- e[i + n] = t[n];
314
+ he.prototype.clear = Fo;
315
+ he.prototype.delete = Go;
316
+ he.prototype.get = Ko;
317
+ he.prototype.has = qo;
318
+ he.prototype.set = zo;
319
+ function Jo(e, t) {
320
+ for (var n = -1, r = t.length, l = e.length; ++n < r; )
321
+ e[l + n] = t[n];
321
322
  return e;
322
323
  }
323
- var Ho = nn(Object.getPrototypeOf, Object);
324
- function Go() {
325
- this.__data__ = new ie(), this.size = 0;
324
+ var Io = sn(Object.getPrototypeOf, Object);
325
+ function Xo() {
326
+ this.__data__ = new se(), this.size = 0;
326
327
  }
327
- function Ko(e) {
328
+ function Zo(e) {
328
329
  var t = this.__data__, n = t.delete(e);
329
330
  return this.size = t.size, n;
330
331
  }
331
- function zo(e) {
332
+ function Wo(e) {
332
333
  return this.__data__.get(e);
333
334
  }
334
- function qo(e) {
335
+ function Yo(e) {
335
336
  return this.__data__.has(e);
336
337
  }
337
- var Io = 200;
338
- function Xo(e, t) {
338
+ var Qo = 200;
339
+ function el(e, t) {
339
340
  var n = this.__data__;
340
- if (n instanceof ie) {
341
+ if (n instanceof se) {
341
342
  var r = n.__data__;
342
- if (!Ue || r.length < Io - 1)
343
+ if (!Le || r.length < Qo - 1)
343
344
  return r.push([e, t]), this.size = ++n.size, this;
344
- n = this.__data__ = new ye(r);
345
+ n = this.__data__ = new he(r);
345
346
  }
346
347
  return n.set(e, t), this.size = n.size, this;
347
348
  }
348
- function te(e) {
349
- var t = this.__data__ = new ie(e);
349
+ function oe(e) {
350
+ var t = this.__data__ = new se(e);
350
351
  this.size = t.size;
351
352
  }
352
- te.prototype.clear = Go;
353
- te.prototype.delete = Ko;
354
- te.prototype.get = zo;
355
- te.prototype.has = qo;
356
- te.prototype.set = Xo;
357
- var rn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = rn && typeof module == "object" && module && !module.nodeType && module, Zo = wt && wt.exports === rn, At = Zo ? Y.Buffer : void 0;
358
- At && At.allocUnsafe;
359
- function Jo(e, t) {
353
+ oe.prototype.clear = Xo;
354
+ oe.prototype.delete = Zo;
355
+ oe.prototype.get = Wo;
356
+ oe.prototype.has = Yo;
357
+ oe.prototype.set = el;
358
+ var an = typeof exports == "object" && exports && !exports.nodeType && exports, xt = an && typeof module == "object" && module && !module.nodeType && module, tl = xt && xt.exports === an, Ot = tl ? ee.Buffer : void 0;
359
+ Ot && Ot.allocUnsafe;
360
+ function nl(e, t) {
360
361
  return e.slice();
361
362
  }
362
- function Wo(e, t) {
363
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, o = []; ++n < r; ) {
364
- var l = e[n];
365
- t(l, n, e) && (o[i++] = l);
363
+ function rl(e, t) {
364
+ for (var n = -1, r = e == null ? 0 : e.length, l = 0, o = []; ++n < r; ) {
365
+ var i = e[n];
366
+ t(i, n, e) && (o[l++] = i);
366
367
  }
367
368
  return o;
368
369
  }
369
- function Yo() {
370
+ function ol() {
370
371
  return [];
371
372
  }
372
- var Qo = Object.prototype, ei = Qo.propertyIsEnumerable, Ct = Object.getOwnPropertySymbols, ti = Ct ? function(e) {
373
- return e == null ? [] : (e = Object(e), Wo(Ct(e), function(t) {
374
- return ei.call(e, t);
373
+ var ll = Object.prototype, il = ll.propertyIsEnumerable, Vt = Object.getOwnPropertySymbols, sl = Vt ? function(e) {
374
+ return e == null ? [] : (e = Object(e), rl(Vt(e), function(t) {
375
+ return il.call(e, t);
375
376
  }));
376
- } : Yo;
377
- function ni(e, t, n) {
377
+ } : ol;
378
+ function al(e, t, n) {
378
379
  var r = t(e);
379
- return Me(e) ? r : Fo(r, n(e));
380
+ return Ue(e) ? r : Jo(r, n(e));
380
381
  }
381
- function ot(e) {
382
- return ni(e, yo, ti);
382
+ function it(e) {
383
+ return al(e, To, sl);
383
384
  }
384
- var it = me(Y, "DataView"), lt = me(Y, "Promise"), st = me(Y, "Set"), Pt = "[object Map]", ri = "[object Object]", xt = "[object Promise]", Ot = "[object Set]", Mt = "[object WeakMap]", Vt = "[object DataView]", oi = ve(it), ii = ve(Ue), li = ve(lt), si = ve(st), ai = ve(rt), Z = Le;
385
- (it && Z(new it(new ArrayBuffer(1))) != Vt || Ue && Z(new Ue()) != Pt || lt && Z(lt.resolve()) != xt || st && Z(new st()) != Ot || rt && Z(new rt()) != Mt) && (Z = function(e) {
386
- var t = Le(e), n = t == ri ? e.constructor : void 0, r = n ? ve(n) : "";
385
+ var st = ye(ee, "DataView"), at = ye(ee, "Promise"), ut = ye(ee, "Set"), Ut = "[object Map]", ul = "[object Object]", Mt = "[object Promise]", Lt = "[object Set]", jt = "[object WeakMap]", Dt = "[object DataView]", cl = ge(st), fl = ge(Le), dl = ge(at), pl = ge(ut), vl = ge(lt), W = je;
386
+ (st && W(new st(new ArrayBuffer(1))) != Dt || Le && W(new Le()) != Ut || at && W(at.resolve()) != Mt || ut && W(new ut()) != Lt || lt && W(new lt()) != jt) && (W = function(e) {
387
+ var t = je(e), n = t == ul ? e.constructor : void 0, r = n ? ge(n) : "";
387
388
  if (r)
388
389
  switch (r) {
389
- case oi:
390
- return Vt;
391
- case ii:
392
- return Pt;
393
- case li:
394
- return xt;
395
- case si:
396
- return Ot;
397
- case ai:
390
+ case cl:
391
+ return Dt;
392
+ case fl:
393
+ return Ut;
394
+ case dl:
398
395
  return Mt;
396
+ case pl:
397
+ return Lt;
398
+ case vl:
399
+ return jt;
399
400
  }
400
401
  return t;
401
402
  });
402
- var ui = Object.prototype, ci = ui.hasOwnProperty;
403
- function fi(e) {
403
+ var ml = Object.prototype, gl = ml.hasOwnProperty;
404
+ function yl(e) {
404
405
  var t = e.length, n = new e.constructor(t);
405
- return t && typeof e[0] == "string" && ci.call(e, "index") && (n.index = e.index, n.input = e.input), n;
406
+ return t && typeof e[0] == "string" && gl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
406
407
  }
407
- var Ke = Y.Uint8Array;
408
- function dt(e) {
408
+ var Ke = ee.Uint8Array;
409
+ function mt(e) {
409
410
  var t = new e.constructor(e.byteLength);
410
411
  return new Ke(t).set(new Ke(e)), t;
411
412
  }
412
- function di(e, t) {
413
- var n = dt(e.buffer);
413
+ function hl(e, t) {
414
+ var n = mt(e.buffer);
414
415
  return new e.constructor(n, e.byteOffset, e.byteLength);
415
416
  }
416
- var pi = /\w*$/;
417
- function vi(e) {
418
- var t = new e.constructor(e.source, pi.exec(e));
417
+ var _l = /\w*$/;
418
+ function bl(e) {
419
+ var t = new e.constructor(e.source, _l.exec(e));
419
420
  return t.lastIndex = e.lastIndex, t;
420
421
  }
421
- var Ut = se ? se.prototype : void 0, Lt = Ut ? Ut.valueOf : void 0;
422
- function mi(e) {
423
- return Lt ? Object(Lt.call(e)) : {};
422
+ var kt = ue ? ue.prototype : void 0, Et = kt ? kt.valueOf : void 0;
423
+ function $l(e) {
424
+ return Et ? Object(Et.call(e)) : {};
424
425
  }
425
- function yi(e, t) {
426
- var n = dt(e.buffer);
426
+ function Tl(e, t) {
427
+ var n = mt(e.buffer);
427
428
  return new e.constructor(n, e.byteOffset, e.length);
428
429
  }
429
- var gi = "[object Boolean]", hi = "[object Date]", _i = "[object Map]", bi = "[object Number]", $i = "[object RegExp]", Ti = "[object Set]", Si = "[object String]", wi = "[object Symbol]", Ai = "[object ArrayBuffer]", Ci = "[object DataView]", Pi = "[object Float32Array]", xi = "[object Float64Array]", Oi = "[object Int8Array]", Mi = "[object Int16Array]", Vi = "[object Int32Array]", Ui = "[object Uint8Array]", Li = "[object Uint8ClampedArray]", Di = "[object Uint16Array]", ji = "[object Uint32Array]";
430
- function Ei(e, t, n) {
430
+ var Sl = "[object Boolean]", wl = "[object Date]", Al = "[object Map]", Cl = "[object Number]", Pl = "[object RegExp]", xl = "[object Set]", Ol = "[object String]", Vl = "[object Symbol]", Ul = "[object ArrayBuffer]", Ml = "[object DataView]", Ll = "[object Float32Array]", jl = "[object Float64Array]", Dl = "[object Int8Array]", kl = "[object Int16Array]", El = "[object Int32Array]", Nl = "[object Uint8Array]", Rl = "[object Uint8ClampedArray]", Bl = "[object Uint16Array]", Fl = "[object Uint32Array]";
431
+ function Hl(e, t, n) {
431
432
  var r = e.constructor;
432
433
  switch (t) {
433
- case Ai:
434
- return dt(e);
435
- case gi:
436
- case hi:
434
+ case Ul:
435
+ return mt(e);
436
+ case Sl:
437
+ case wl:
437
438
  return new r(+e);
438
- case Ci:
439
- return di(e);
440
- case Pi:
441
- case xi:
442
- case Oi:
443
- case Mi:
444
- case Vi:
445
- case Ui:
446
- case Li:
447
- case Di:
448
- case ji:
449
- return yi(e);
450
- case _i:
439
+ case Ml:
440
+ return hl(e);
441
+ case Ll:
442
+ case jl:
443
+ case Dl:
444
+ case kl:
445
+ case El:
446
+ case Nl:
447
+ case Rl:
448
+ case Bl:
449
+ case Fl:
450
+ return Tl(e);
451
+ case Al:
451
452
  return new r();
452
- case bi:
453
- case Si:
453
+ case Cl:
454
+ case Ol:
454
455
  return new r(e);
455
- case $i:
456
- return vi(e);
457
- case Ti:
456
+ case Pl:
457
+ return bl(e);
458
+ case xl:
458
459
  return new r();
459
- case wi:
460
- return mi(e);
460
+ case Vl:
461
+ return $l(e);
461
462
  }
462
463
  }
463
- function ki(e) {
464
- return typeof e.constructor == "function" && !Wt(e) ? yr(Ho(e)) : {};
464
+ function Gl(e) {
465
+ return typeof e.constructor == "function" && !tn(e) ? Tr(Io(e)) : {};
465
466
  }
466
- var Ni = "[object Map]";
467
- function Bi(e) {
468
- return de(e) && Z(e) == Ni;
467
+ var Kl = "[object Map]";
468
+ function ql(e) {
469
+ return pe(e) && W(e) == Kl;
469
470
  }
470
- var Dt = $e && $e.isMap, Ri = Dt ? ft(Dt) : Bi, Fi = "[object Set]";
471
- function Hi(e) {
472
- return de(e) && Z(e) == Fi;
471
+ var Nt = Se && Se.isMap, zl = Nt ? vt(Nt) : ql, Jl = "[object Set]";
472
+ function Il(e) {
473
+ return pe(e) && W(e) == Jl;
473
474
  }
474
- var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]", zi = "[object Boolean]", qi = "[object Date]", Ii = "[object Error]", ln = "[object Function]", Xi = "[object GeneratorFunction]", Zi = "[object Map]", Ji = "[object Number]", sn = "[object Object]", Wi = "[object RegExp]", Yi = "[object Set]", Qi = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", il = "[object Float64Array]", ll = "[object Int8Array]", sl = "[object Int16Array]", al = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", M = {};
475
- M[on] = M[Ki] = M[nl] = M[rl] = M[zi] = M[qi] = M[ol] = M[il] = M[ll] = M[sl] = M[al] = M[Zi] = M[Ji] = M[sn] = M[Wi] = M[Yi] = M[Qi] = M[el] = M[ul] = M[cl] = M[fl] = M[dl] = !0;
476
- M[Ii] = M[ln] = M[tl] = !1;
477
- function Re(e, t, n, r, i, o) {
478
- var l;
479
- if (l !== void 0)
480
- return l;
481
- if (!qe(e))
475
+ var Rt = Se && Se.isSet, Xl = Rt ? vt(Rt) : Il, un = "[object Arguments]", Zl = "[object Array]", Wl = "[object Boolean]", Yl = "[object Date]", Ql = "[object Error]", cn = "[object Function]", ei = "[object GeneratorFunction]", ti = "[object Map]", ni = "[object Number]", fn = "[object Object]", ri = "[object RegExp]", oi = "[object Set]", li = "[object String]", ii = "[object Symbol]", si = "[object WeakMap]", ai = "[object ArrayBuffer]", ui = "[object DataView]", ci = "[object Float32Array]", fi = "[object Float64Array]", di = "[object Int8Array]", pi = "[object Int16Array]", vi = "[object Int32Array]", mi = "[object Uint8Array]", gi = "[object Uint8ClampedArray]", yi = "[object Uint16Array]", hi = "[object Uint32Array]", M = {};
476
+ M[un] = M[Zl] = M[ai] = M[ui] = M[Wl] = M[Yl] = M[ci] = M[fi] = M[di] = M[pi] = M[vi] = M[ti] = M[ni] = M[fn] = M[ri] = M[oi] = M[li] = M[ii] = M[mi] = M[gi] = M[yi] = M[hi] = !0;
477
+ M[Ql] = M[cn] = M[si] = !1;
478
+ function Fe(e, t, n, r, l, o) {
479
+ var i;
480
+ if (i !== void 0)
481
+ return i;
482
+ if (!Ie(e))
482
483
  return e;
483
- var a = Me(e);
484
+ var a = Ue(e);
484
485
  if (a)
485
- l = fi(e);
486
+ i = yl(e);
486
487
  else {
487
- var u = Z(e), s = u == ln || u == Xi;
488
+ var u = W(e), s = u == cn || u == ei;
488
489
  if (Ge(e))
489
- return Jo(e);
490
- if (u == sn || u == on || s && !i)
491
- l = s ? {} : ki(e);
490
+ return nl(e);
491
+ if (u == fn || u == un || s && !l)
492
+ i = s ? {} : Gl(e);
492
493
  else {
493
494
  if (!M[u])
494
- return i ? e : {};
495
- l = Ei(e, u);
495
+ return l ? e : {};
496
+ i = Hl(e, u);
496
497
  }
497
498
  }
498
- o || (o = new te());
499
+ o || (o = new oe());
499
500
  var v = o.get(e);
500
501
  if (v)
501
502
  return v;
502
- o.set(e, l), Gi(e) ? e.forEach(function(p) {
503
- l.add(Re(p, t, n, p, e, o));
504
- }) : Ri(e) && e.forEach(function(p, _) {
505
- l.set(_, Re(p, t, n, _, e, o));
503
+ o.set(e, i), Xl(e) ? e.forEach(function(d) {
504
+ i.add(Fe(d, t, n, d, e, o));
505
+ }) : zl(e) && e.forEach(function(d, m) {
506
+ i.set(m, Fe(d, t, n, m, e, o));
506
507
  });
507
- var d = ot, f = a ? void 0 : d(e);
508
- return gr(f || e, function(p, _) {
509
- f && (_ = p, p = e[_]), wr(l, _, Re(p, t, n, _, e, o));
510
- }), l;
508
+ var c = it, f = a ? void 0 : c(e);
509
+ return Sr(f || e, function(d, m) {
510
+ f && (m = d, d = e[m]), Vr(i, m, Fe(d, t, n, m, e, o));
511
+ }), i;
511
512
  }
512
- var pl = 1, vl = 4;
513
- function an(e) {
514
- return Re(e, pl | vl);
513
+ var _i = 1, bi = 4;
514
+ function dn(e) {
515
+ return Fe(e, _i | bi);
515
516
  }
516
- var ml = "__lodash_hash_undefined__";
517
- function yl(e) {
518
- return this.__data__.set(e, ml), this;
517
+ var $i = "__lodash_hash_undefined__";
518
+ function Ti(e) {
519
+ return this.__data__.set(e, $i), this;
519
520
  }
520
- function gl(e) {
521
+ function Si(e) {
521
522
  return this.__data__.has(e);
522
523
  }
523
- function ze(e) {
524
+ function qe(e) {
524
525
  var t = -1, n = e == null ? 0 : e.length;
525
- for (this.__data__ = new ye(); ++t < n; )
526
+ for (this.__data__ = new he(); ++t < n; )
526
527
  this.add(e[t]);
527
528
  }
528
- ze.prototype.add = ze.prototype.push = yl;
529
- ze.prototype.has = gl;
530
- function hl(e, t) {
529
+ qe.prototype.add = qe.prototype.push = Ti;
530
+ qe.prototype.has = Si;
531
+ function wi(e, t) {
531
532
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
532
533
  if (t(e[n], n, e))
533
534
  return !0;
534
535
  return !1;
535
536
  }
536
- function _l(e, t) {
537
+ function Ai(e, t) {
537
538
  return e.has(t);
538
539
  }
539
- var bl = 1, $l = 2;
540
- function un(e, t, n, r, i, o) {
541
- var l = n & bl, a = e.length, u = t.length;
542
- if (a != u && !(l && u > a))
540
+ var Ci = 1, Pi = 2;
541
+ function pn(e, t, n, r, l, o) {
542
+ var i = n & Ci, a = e.length, u = t.length;
543
+ if (a != u && !(i && u > a))
543
544
  return !1;
544
545
  var s = o.get(e), v = o.get(t);
545
546
  if (s && v)
546
547
  return s == t && v == e;
547
- var d = -1, f = !0, p = n & $l ? new ze() : void 0;
548
- for (o.set(e, t), o.set(t, e); ++d < a; ) {
549
- var _ = e[d], A = t[d];
548
+ var c = -1, f = !0, d = n & Pi ? new qe() : void 0;
549
+ for (o.set(e, t), o.set(t, e); ++c < a; ) {
550
+ var m = e[c], C = t[c];
550
551
  if (r)
551
- var C = l ? r(A, _, d, t, e, o) : r(_, A, d, e, t, o);
552
- if (C !== void 0) {
553
- if (C)
552
+ var S = i ? r(C, m, c, t, e, o) : r(m, C, c, e, t, o);
553
+ if (S !== void 0) {
554
+ if (S)
554
555
  continue;
555
556
  f = !1;
556
557
  break;
557
558
  }
558
- if (p) {
559
- if (!hl(t, function(P, $) {
560
- if (!_l(p, $) && (_ === P || i(_, P, n, r, o)))
561
- return p.push($);
559
+ if (d) {
560
+ if (!wi(t, function(x, $) {
561
+ if (!Ai(d, $) && (m === x || l(m, x, n, r, o)))
562
+ return d.push($);
562
563
  })) {
563
564
  f = !1;
564
565
  break;
565
566
  }
566
- } else if (!(_ === A || i(_, A, n, r, o))) {
567
+ } else if (!(m === C || l(m, C, n, r, o))) {
567
568
  f = !1;
568
569
  break;
569
570
  }
570
571
  }
571
572
  return o.delete(e), o.delete(t), f;
572
573
  }
573
- function Tl(e) {
574
+ function xi(e) {
574
575
  var t = -1, n = Array(e.size);
575
- return e.forEach(function(r, i) {
576
- n[++t] = [i, r];
576
+ return e.forEach(function(r, l) {
577
+ n[++t] = [l, r];
577
578
  }), n;
578
579
  }
579
- function Sl(e) {
580
+ function Oi(e) {
580
581
  var t = -1, n = Array(e.size);
581
582
  return e.forEach(function(r) {
582
583
  n[++t] = r;
583
584
  }), n;
584
585
  }
585
- var wl = 1, Al = 2, Cl = "[object Boolean]", Pl = "[object Date]", xl = "[object Error]", Ol = "[object Map]", Ml = "[object Number]", Vl = "[object RegExp]", Ul = "[object Set]", Ll = "[object String]", Dl = "[object Symbol]", jl = "[object ArrayBuffer]", El = "[object DataView]", Et = se ? se.prototype : void 0, tt = Et ? Et.valueOf : void 0;
586
- function kl(e, t, n, r, i, o, l) {
586
+ var Vi = 1, Ui = 2, Mi = "[object Boolean]", Li = "[object Date]", ji = "[object Error]", Di = "[object Map]", ki = "[object Number]", Ei = "[object RegExp]", Ni = "[object Set]", Ri = "[object String]", Bi = "[object Symbol]", Fi = "[object ArrayBuffer]", Hi = "[object DataView]", Bt = ue ? ue.prototype : void 0, rt = Bt ? Bt.valueOf : void 0;
587
+ function Gi(e, t, n, r, l, o, i) {
587
588
  switch (n) {
588
- case El:
589
+ case Hi:
589
590
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
590
591
  return !1;
591
592
  e = e.buffer, t = t.buffer;
592
- case jl:
593
+ case Fi:
593
594
  return !(e.byteLength != t.byteLength || !o(new Ke(e), new Ke(t)));
594
- case Cl:
595
- case Pl:
596
- case Ml:
597
- return ct(+e, +t);
598
- case xl:
595
+ case Mi:
596
+ case Li:
597
+ case ki:
598
+ return pt(+e, +t);
599
+ case ji:
599
600
  return e.name == t.name && e.message == t.message;
600
- case Vl:
601
- case Ll:
601
+ case Ei:
602
+ case Ri:
602
603
  return e == t + "";
603
- case Ol:
604
- var a = Tl;
605
- case Ul:
606
- var u = r & wl;
607
- if (a || (a = Sl), e.size != t.size && !u)
604
+ case Di:
605
+ var a = xi;
606
+ case Ni:
607
+ var u = r & Vi;
608
+ if (a || (a = Oi), e.size != t.size && !u)
608
609
  return !1;
609
- var s = l.get(e);
610
+ var s = i.get(e);
610
611
  if (s)
611
612
  return s == t;
612
- r |= Al, l.set(e, t);
613
- var v = un(a(e), a(t), r, i, o, l);
614
- return l.delete(e), v;
615
- case Dl:
616
- if (tt)
617
- return tt.call(e) == tt.call(t);
613
+ r |= Ui, i.set(e, t);
614
+ var v = pn(a(e), a(t), r, l, o, i);
615
+ return i.delete(e), v;
616
+ case Bi:
617
+ if (rt)
618
+ return rt.call(e) == rt.call(t);
618
619
  }
619
620
  return !1;
620
621
  }
621
- var Nl = 1, Bl = Object.prototype, Rl = Bl.hasOwnProperty;
622
- function Fl(e, t, n, r, i, o) {
623
- var l = n & Nl, a = ot(e), u = a.length, s = ot(t), v = s.length;
624
- if (u != v && !l)
622
+ var Ki = 1, qi = Object.prototype, zi = qi.hasOwnProperty;
623
+ function Ji(e, t, n, r, l, o) {
624
+ var i = n & Ki, a = it(e), u = a.length, s = it(t), v = s.length;
625
+ if (u != v && !i)
625
626
  return !1;
626
- for (var d = u; d--; ) {
627
- var f = a[d];
628
- if (!(l ? f in t : Rl.call(t, f)))
627
+ for (var c = u; c--; ) {
628
+ var f = a[c];
629
+ if (!(i ? f in t : zi.call(t, f)))
629
630
  return !1;
630
631
  }
631
- var p = o.get(e), _ = o.get(t);
632
- if (p && _)
633
- return p == t && _ == e;
634
- var A = !0;
632
+ var d = o.get(e), m = o.get(t);
633
+ if (d && m)
634
+ return d == t && m == e;
635
+ var C = !0;
635
636
  o.set(e, t), o.set(t, e);
636
- for (var C = l; ++d < u; ) {
637
- f = a[d];
638
- var P = e[f], $ = t[f];
637
+ for (var S = i; ++c < u; ) {
638
+ f = a[c];
639
+ var x = e[f], $ = t[f];
639
640
  if (r)
640
- var x = l ? r($, P, f, t, e, o) : r(P, $, f, e, t, o);
641
- if (!(x === void 0 ? P === $ || i(P, $, n, r, o) : x)) {
642
- A = !1;
641
+ var b = i ? r($, x, f, t, e, o) : r(x, $, f, e, t, o);
642
+ if (!(b === void 0 ? x === $ || l(x, $, n, r, o) : b)) {
643
+ C = !1;
643
644
  break;
644
645
  }
645
- C || (C = f == "constructor");
646
+ S || (S = f == "constructor");
646
647
  }
647
- if (A && !C) {
648
- var T = e.constructor, L = t.constructor;
649
- T != L && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof L == "function" && L instanceof L) && (A = !1);
648
+ if (C && !S) {
649
+ var P = e.constructor, j = t.constructor;
650
+ P != j && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof j == "function" && j instanceof j) && (C = !1);
650
651
  }
651
- return o.delete(e), o.delete(t), A;
652
+ return o.delete(e), o.delete(t), C;
652
653
  }
653
- var Hl = 1, kt = "[object Arguments]", Nt = "[object Array]", ke = "[object Object]", Gl = Object.prototype, Bt = Gl.hasOwnProperty;
654
- function Kl(e, t, n, r, i, o) {
655
- var l = Me(e), a = Me(t), u = l ? Nt : Z(e), s = a ? Nt : Z(t);
656
- u = u == kt ? ke : u, s = s == kt ? ke : s;
657
- var v = u == ke, d = s == ke, f = u == s;
654
+ var Ii = 1, Ft = "[object Arguments]", Ht = "[object Array]", Ne = "[object Object]", Xi = Object.prototype, Gt = Xi.hasOwnProperty;
655
+ function Zi(e, t, n, r, l, o) {
656
+ var i = Ue(e), a = Ue(t), u = i ? Ht : W(e), s = a ? Ht : W(t);
657
+ u = u == Ft ? Ne : u, s = s == Ft ? Ne : s;
658
+ var v = u == Ne, c = s == Ne, f = u == s;
658
659
  if (f && Ge(e)) {
659
660
  if (!Ge(t))
660
661
  return !1;
661
- l = !0, v = !1;
662
+ i = !0, v = !1;
662
663
  }
663
664
  if (f && !v)
664
- return o || (o = new te()), l || tn(e) ? un(e, t, n, r, i, o) : kl(e, t, u, n, r, i, o);
665
- if (!(n & Hl)) {
666
- var p = v && Bt.call(e, "__wrapped__"), _ = d && Bt.call(t, "__wrapped__");
667
- if (p || _) {
668
- var A = p ? e.value() : e, C = _ ? t.value() : t;
669
- return o || (o = new te()), i(A, C, n, r, o);
665
+ return o || (o = new oe()), i || ln(e) ? pn(e, t, n, r, l, o) : Gi(e, t, u, n, r, l, o);
666
+ if (!(n & Ii)) {
667
+ var d = v && Gt.call(e, "__wrapped__"), m = c && Gt.call(t, "__wrapped__");
668
+ if (d || m) {
669
+ var C = d ? e.value() : e, S = m ? t.value() : t;
670
+ return o || (o = new oe()), l(C, S, n, r, o);
670
671
  }
671
672
  }
672
- return f ? (o || (o = new te()), Fl(e, t, n, r, i, o)) : !1;
673
+ return f ? (o || (o = new oe()), Ji(e, t, n, r, l, o)) : !1;
673
674
  }
674
- function cn(e, t, n, r, i) {
675
- return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Kl(e, t, n, r, cn, i);
675
+ function vn(e, t, n, r, l) {
676
+ return e === t ? !0 : e == null || t == null || !pe(e) && !pe(t) ? e !== e && t !== t : Zi(e, t, n, r, vn, l);
676
677
  }
677
- function Ze(e, t) {
678
- return cn(e, t);
678
+ function We(e, t) {
679
+ return vn(e, t);
679
680
  }
680
- function zl(e, t) {
681
+ function Wi(e, t) {
681
682
  const n = [];
682
683
  let r = [];
683
- e.forEach((l) => {
684
- l.type === 0 ? n.push(l) : l.type === 1 ? r.push(l) : console.assert(!1);
685
- }), n.sort((l, a) => l.position - a.position), r.sort((l, a) => l.position - a.position);
686
- const i = [];
687
- r.forEach((l) => {
688
- n.find((a) => a.id === l.group) || i.push(l.id);
689
- }), r = r.filter((l) => !i.find((a) => a === l.id));
684
+ e.forEach((i) => {
685
+ i.type === 0 ? n.push(i) : i.type === 1 ? r.push(i) : console.assert(!1);
686
+ }), n.sort((i, a) => i.position - a.position), r.sort((i, a) => i.position - a.position);
687
+ const l = [];
688
+ r.forEach((i) => {
689
+ n.find((a) => a.id === i.group) || l.push(i.id);
690
+ }), r = r.filter((i) => !l.find((a) => a === i.id));
690
691
  const o = [];
691
- return n.forEach((l) => {
692
+ return n.forEach((i) => {
692
693
  const a = [];
693
694
  r.forEach((u) => {
694
- u.group === l.id && (u.show = !l.collapse, a.push(u));
695
- }), l.count = a.length, l.count > 0 && (o.push(l), o.push(...a));
695
+ u.group === i.id && (u.show = !i.collapse, a.push(u));
696
+ }), i.count = a.length, i.count > 0 && (o.push(i), o.push(...a));
696
697
  }), o;
697
698
  }
698
- function fn(e, t) {
699
+ function mn(e, t) {
699
700
  return e.value.find((n) => n.id === t);
700
701
  }
701
- function ql(e, t, n) {
702
+ function Yi(e, t, n) {
702
703
  for (let r = 0; r < e.value.length; r++) {
703
- let i = e.value[r];
704
- if (i.id === t) {
705
- if (i.type !== 0) {
704
+ let l = e.value[r];
705
+ if (l.id === t) {
706
+ if (l.type !== 0) {
706
707
  console.assert(!1, "type must be 0");
707
708
  break;
708
709
  }
709
- for (i.collapse = n, r++; r < e.value.length && (i = e.value[r], i.type !== 0); r++)
710
- i.show = !n;
710
+ for (l.collapse = n, r++; r < e.value.length && (l = e.value[r], l.type !== 0); r++)
711
+ l.show = !n;
711
712
  break;
712
713
  }
713
714
  }
714
715
  }
715
- const Ne = (e, t) => {
716
+ const Re = (e, t) => {
716
717
  let n = { key: "", name: "", children: e };
717
718
  return t.forEach((r) => {
718
719
  if (typeof r != "number") {
@@ -724,10 +725,10 @@ const Ne = (e, t) => {
724
725
  console.assert(!1, `unpkgProp prop ui must be invalid keys=${t}`);
725
726
  return;
726
727
  }
727
- n = n.children.find((i) => i.key === r);
728
+ n = n.children.find((l) => l.key === r);
728
729
  }
729
730
  }), n;
730
- }, Pe = (e, t) => {
731
+ }, xe = (e, t) => {
731
732
  let n = e;
732
733
  return t.forEach((r) => {
733
734
  if (!n) {
@@ -736,56 +737,56 @@ const Ne = (e, t) => {
736
737
  }
737
738
  n = n[r];
738
739
  }), n;
739
- }, Rt = (e) => !(e instanceof Array), nt = (e) => e instanceof Array, Il = (e, t) => {
740
- const n = (r, i) => {
741
- if (r.ui !== i.ui || r.array !== i.array)
740
+ }, Kt = (e) => !(e instanceof Array), ot = (e) => e instanceof Array, Qi = (e, t) => {
741
+ const n = (r, l) => {
742
+ if (r.ui !== l.ui || r.array !== l.array)
742
743
  return !1;
743
- if (r.ui || i.ui)
744
+ if (r.ui || l.ui)
744
745
  return !0;
745
- if (r.children.length !== i.children.length)
746
+ if (r.children.length !== l.children.length)
746
747
  return !1;
747
748
  for (let o = 0; o < r.children.length; o++)
748
- if (!n(r.children[o], i.children[o]))
749
+ if (!n(r.children[o], l.children[o]))
749
750
  return !1;
750
751
  return !0;
751
752
  };
752
753
  return n(e, t);
753
- }, pt = (e) => !(e instanceof Array), Je = (e) => e instanceof Array, Xl = [
754
+ }, gt = (e) => !(e instanceof Array), Ye = (e) => e instanceof Array, es = [
754
755
  ["basic", "id"],
755
756
  ["basic", "name"]
756
- ], Zl = (e) => Xl.find((t) => Ze(e, t)), We = (e, t, n, r, i, o, l) => (e = an(e), o !== void 0 ? (e.push(o), l && e.push(t.key)) : e.push(t.key), Zl(e) ? (r.change = !1, r.change) : t.ui ? t.array && r.children && Je(r.children) ? Yl(
757
+ ], ts = (e) => es.find((t) => We(e, t)), Qe = (e, t, n, r, l, o, i) => (e = dn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), ts(e) ? (r.change = !1, r.change) : t.ui ? t.array && r.children && Ye(r.children) ? os(
757
758
  e,
758
759
  t,
759
760
  n,
760
761
  r,
761
- i,
762
+ l,
762
763
  o,
763
- l
764
- ) : Ql(t, n, r, o, l) : t.array ? Jl(
764
+ i
765
+ ) : ls(t, n, r, o, i) : t.array ? ns(
765
766
  e,
766
767
  t,
767
768
  n,
768
769
  r,
769
- i,
770
+ l,
770
771
  o,
771
- l
772
- ) : Wl(
772
+ i
773
+ ) : rs(
773
774
  e,
774
775
  t,
775
776
  n,
776
777
  r,
777
- i,
778
+ l,
778
779
  o,
779
- l
780
- )), Jl = (e, t, n, r, i, o, l) => {
780
+ i
781
+ )), ns = (e, t, n, r, l, o, i) => {
781
782
  if (t.ui)
782
783
  return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
783
784
  if (!t.array)
784
785
  return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
785
- if (!r.children || !Je(r.children))
786
+ if (!r.children || !Ye(r.children))
786
787
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
787
788
  let a;
788
- o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = k(t), i == null || i(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = k(t), i == null || i(e, n[t.key])), a = n[t.key]), r.change = !1;
789
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = R(t), l == null || l(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = R(t), l == null || l(e, n[t.key])), a = n[t.key]), r.change = !1;
789
790
  for (let u = 0; u < a.length; u++) {
790
791
  r.children.push({
791
792
  change: !1,
@@ -793,230 +794,230 @@ const Ne = (e, t) => {
793
794
  });
794
795
  const s = r.children[u];
795
796
  t.children.forEach((v) => {
796
- if (!s.children || !pt(s.children)) {
797
+ if (!s.children || !gt(s.children)) {
797
798
  console.assert(!1);
798
799
  return;
799
800
  }
800
801
  s.children[v.key] = {
801
802
  change: !1,
802
803
  children: v.array ? [] : {}
803
- }, We(
804
+ }, Qe(
804
805
  e,
805
806
  v,
806
807
  a[u],
807
808
  s.children[v.key],
808
- i,
809
+ l,
809
810
  u,
810
811
  !0
811
812
  ) && (s.change = !0), s.change && (r.change = !0);
812
813
  });
813
814
  }
814
- return r.change || (r.change = !Ze(a, k(t))), r.change;
815
- }, Wl = (e, t, n, r, i, o, l) => {
815
+ return r.change || (r.change = !We(a, R(t))), r.change;
816
+ }, rs = (e, t, n, r, l, o, i) => {
816
817
  if (t.ui)
817
818
  return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
818
819
  if (t.array)
819
820
  return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
820
- if (!r.children || !pt(r.children))
821
+ if (!r.children || !gt(r.children))
821
822
  return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
822
823
  let a;
823
- o !== void 0 && !l ? (n[o] || (n[o] = {}), a = n[o]) : (n[t.key] || (n[t.key] = {}), a = n[t.key]), r.change = !1;
824
+ o !== void 0 && !i ? (n[o] || (n[o] = {}), a = n[o]) : (n[t.key] || (n[t.key] = {}), a = n[t.key]), r.change = !1;
824
825
  for (let u = 0; u < t.children.length; u++) {
825
826
  const s = t.children[u];
826
827
  r.children[s.key] = {
827
828
  change: !1,
828
829
  children: s.array ? [] : {}
829
- }, We(e, s, a, r.children[s.key], i) && (r.change = !0);
830
+ }, Qe(e, s, a, r.children[s.key], l) && (r.change = !0);
830
831
  }
831
832
  return r.change;
832
- }, Yl = (e, t, n, r, i, o, l) => {
833
+ }, os = (e, t, n, r, l, o, i) => {
833
834
  if (!t.ui)
834
835
  return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
835
836
  if (!t.array)
836
837
  return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
837
- if (!r.children || !Je(r.children))
838
+ if (!r.children || !Ye(r.children))
838
839
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
839
840
  let a;
840
- o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = k(t), i == null || i(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = k(t), i == null || i(e, n[t.key])), a = n[t.key]), r.change = !1;
841
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = R(t), l == null || l(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = R(t), l == null || l(e, n[t.key])), a = n[t.key]), r.change = !1;
841
842
  for (let u = 0; u < a.length; u++)
842
843
  r.children[u] = {
843
844
  change: !1,
844
845
  children: {}
845
- }, We(e, t, a, r.children[u], i, u, !1) && (r.change = !0);
846
- return r.change || (r.change = !Ze(a, k(t))), r.change;
847
- }, Ql = (e, t, n, r, i) => {
846
+ }, Qe(e, t, a, r.children[u], l, u, !1) && (r.change = !0);
847
+ return r.change || (r.change = !We(a, R(t))), r.change;
848
+ }, ls = (e, t, n, r, l) => {
848
849
  if (!e.ui)
849
850
  return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
850
851
  let o;
851
- return r !== void 0 && !i ? o = t[r] : o = t[e.key], n.change = !Ze(o, k(e, !0)), n.change;
852
- }, Ft = (e, t, n, r) => {
852
+ return r !== void 0 && !l ? o = t[r] : o = t[e.key], n.change = !We(o, R(e, !0)), n.change;
853
+ }, qt = (e, t, n, r) => {
853
854
  if (t.length <= 0 || !n) {
854
855
  e.value = {};
855
856
  return;
856
857
  }
857
- const i = {};
858
+ const l = {};
858
859
  t.forEach((o) => {
859
- i[o.key] = {
860
+ l[o.key] = {
860
861
  change: !1,
861
862
  children: o.array ? [] : {}
862
- }, We([], o, n, i[o.key], r);
863
- }), e.value = i;
864
- }, be = (e, t) => {
863
+ }, Qe([], o, n, l[o.key], r);
864
+ }), e.value = l;
865
+ }, Te = (e, t) => {
865
866
  let n = { change: !1, children: e };
866
867
  return t.forEach((r) => {
867
868
  if (!n)
868
869
  return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
869
870
  if (!n.children)
870
871
  return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
871
- typeof r == "string" ? pt(n.children) && (n = n.children[r]) : Je(n.children) && (n = n.children[r]);
872
+ typeof r == "string" ? gt(n.children) && (n = n.children[r]) : Ye(n.children) && (n = n.children[r]);
872
873
  }), (n == null ? void 0 : n.change) ?? !1;
873
- }, dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol(), yn = Symbol(), gn = Symbol();
874
- function es(e) {
875
- Te(dn, e);
874
+ }, gn = Symbol(), yn = Symbol(), hn = Symbol(), _n = Symbol(), bn = Symbol(), $n = Symbol();
875
+ function is(e) {
876
+ we(gn, e);
876
877
  }
877
- function hn() {
878
- return Se(dn);
878
+ function yt() {
879
+ return Ae(gn);
879
880
  }
880
- function ts(e) {
881
- Te(pn, e);
881
+ function ss(e) {
882
+ we(yn, e);
882
883
  }
883
- function ns() {
884
- return Se(pn);
884
+ function as() {
885
+ return Ae(yn);
885
886
  }
886
- function rs(e) {
887
- Te(vn, e);
887
+ function us(e) {
888
+ we(hn, e);
888
889
  }
889
- function os() {
890
- return Se(vn);
890
+ function cs() {
891
+ return Ae(hn);
891
892
  }
892
- function is(e) {
893
- Te(mn, e);
893
+ function fs(e) {
894
+ we(_n, e);
894
895
  }
895
- function ls() {
896
- return Se(mn);
896
+ function ds() {
897
+ return Ae(_n);
897
898
  }
898
- function ss(e) {
899
- Te(yn, e);
899
+ function ps(e) {
900
+ we(bn, e);
900
901
  }
901
- function as() {
902
- return Se(yn);
902
+ function vs() {
903
+ return Ae(bn);
903
904
  }
904
- function us(e) {
905
- Te(gn, e);
905
+ function ms(e) {
906
+ we($n, e);
906
907
  }
907
- function _n() {
908
- return Se(gn);
908
+ function Tn() {
909
+ return Ae($n);
909
910
  }
910
- const cs = /* @__PURE__ */ K({
911
+ const gs = /* @__PURE__ */ G({
911
912
  __name: "menu",
912
913
  setup(e) {
913
- const { t } = ue(), n = ns(), r = os(), i = ls(), o = as(), l = B(0), a = B(0), u = B([]), s = R(() => [l.value, a.value]), v = (C) => {
914
- const P = () => !(u.value.length <= 0 || !be(i.value, u.value)), $ = () => {
915
- if (!P())
914
+ const { t } = ie(), n = as(), r = cs(), l = ds(), o = vs(), i = N(0), a = N(0), u = N([]), s = F(() => [i.value, a.value]), v = (S) => {
915
+ const x = () => !(u.value.length <= 0 || !Te(l.value, u.value)), $ = () => {
916
+ if (!x())
916
917
  return;
917
- const x = Ne(n.value, u.value);
918
- if (x)
919
- if (x.ui) {
920
- const T = Pe(r.value, u.value.slice(0, -1));
921
- if (!T)
918
+ const b = Re(n.value, u.value);
919
+ if (b)
920
+ if (b.ui) {
921
+ const P = xe(r.value, u.value.slice(0, -1));
922
+ if (!P)
922
923
  return;
923
- T[u.value.at(-1)] = k(x), o(u.value, T[u.value.at(-1)]);
924
- } else if (x.array) {
925
- const T = u.value.at(-1);
926
- if (T === void 0) {
924
+ P[u.value.at(-1)] = R(b), o(u.value, P[u.value.at(-1)]);
925
+ } else if (b.array) {
926
+ const P = u.value.at(-1);
927
+ if (P === void 0) {
927
928
  console.assert(!1, "invalid last key");
928
929
  return;
929
930
  }
930
- if (typeof T == "string") {
931
- const L = Pe(r.value, u.value.slice(0, -1));
932
- if (!L)
931
+ if (typeof P == "string") {
932
+ const j = xe(r.value, u.value.slice(0, -1));
933
+ if (!j)
933
934
  return;
934
- L[u.value.at(-1)] = k(x), o(u.value, L[u.value.at(-1)]);
935
+ j[u.value.at(-1)] = R(b), o(u.value, j[u.value.at(-1)]);
935
936
  } else {
936
- const L = Pe(r.value, u.value);
937
- if (!L)
937
+ const j = xe(r.value, u.value);
938
+ if (!j)
938
939
  return;
939
- x.children.forEach((W) => {
940
- L[W.key] = k(x), o([...u.value, W.key], L[W.key]);
940
+ b.children.forEach((Q) => {
941
+ j[Q.key] = R(b), o([...u.value, Q.key], j[Q.key]);
941
942
  });
942
943
  }
943
944
  } else {
944
- const T = Pe(r.value, u.value);
945
- if (!T)
945
+ const P = xe(r.value, u.value);
946
+ if (!P)
946
947
  return;
947
- x.children.forEach((L) => {
948
- T[L.key] = k(x), o([...u.value, L.key], T[L.key]);
948
+ b.children.forEach((j) => {
949
+ P[j.key] = R(b), o([...u.value, j.key], P[j.key]);
949
950
  });
950
951
  }
951
952
  };
952
- P() && C.push({
953
+ x() && S.push({
953
954
  title: t("x-prop-tree.reset"),
954
955
  func: $
955
956
  });
956
- }, d = (C) => {
957
- const P = () => {
958
- const $ = Ne(n.value, u.value), x = Pe(r.value, u.value);
959
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: $, object: x }));
957
+ }, c = (S) => {
958
+ const x = () => {
959
+ const $ = Re(n.value, u.value), b = xe(r.value, u.value);
960
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: $, object: b }));
960
961
  };
961
- C.push({
962
+ S.push({
962
963
  title: t("x-prop-tree.copy"),
963
- func: P
964
+ func: x
964
965
  });
965
- }, f = (C) => {
966
- const P = () => {
967
- const x = localStorage.getItem("propTreeCopy");
968
- if (!x)
966
+ }, f = (S) => {
967
+ const x = () => {
968
+ const b = localStorage.getItem("propTreeCopy");
969
+ if (!b)
969
970
  return !1;
970
971
  try {
971
- const { prop: T } = JSON.parse(x), L = Ne(n.value, u.value);
972
- return Il(T, L);
973
- } catch (T) {
974
- console.error(T);
972
+ const { prop: P } = JSON.parse(b), j = Re(n.value, u.value);
973
+ return Qi(P, j);
974
+ } catch (P) {
975
+ console.error(P);
975
976
  }
976
977
  return !1;
977
978
  }, $ = () => {
978
- if (!P())
979
+ if (!x())
979
980
  return;
980
- const x = localStorage.getItem("propTreeCopy");
981
- if (x)
981
+ const b = localStorage.getItem("propTreeCopy");
982
+ if (b)
982
983
  try {
983
- const { object: T } = JSON.parse(x), L = Ne(n.value, u.value);
984
- console.log(T, L);
985
- } catch (T) {
986
- console.error(T);
984
+ const { object: P } = JSON.parse(b), j = Re(n.value, u.value);
985
+ console.log(P, j);
986
+ } catch (P) {
987
+ console.error(P);
987
988
  }
988
989
  };
989
- P() && C.push({
990
+ x() && S.push({
990
991
  title: t("x-prop-tree.paste"),
991
992
  func: $
992
993
  });
993
- }, p = R(() => {
994
- const C = [];
995
- return v(C), d(C), f(C), C;
996
- }), _ = (C) => {
997
- l.value = C.x, a.value = C.y, u.value = C.keys;
998
- }, { open: A } = ut("propTreeMenu", _);
999
- return (C, P) => {
1000
- const $ = V("v-list-item-title"), x = V("v-list-item"), T = V("v-list"), L = V("v-menu");
1001
- return w(), F(L, {
1002
- modelValue: E(A),
1003
- "onUpdate:modelValue": P[0] || (P[0] = (W) => Fe(A) ? A.value = W : null),
994
+ }, d = F(() => {
995
+ const S = [];
996
+ return v(S), c(S), f(S), S;
997
+ }), m = (S) => {
998
+ i.value = S.x, a.value = S.y, u.value = S.keys;
999
+ }, { open: C } = Je("propTreeMenu", m);
1000
+ return (S, x) => {
1001
+ const $ = V("v-list-item-title"), b = V("v-list-item"), P = V("v-list"), j = V("v-menu");
1002
+ return A(), B(j, {
1003
+ modelValue: w(C),
1004
+ "onUpdate:modelValue": x[0] || (x[0] = (Q) => Ve(C) ? C.value = Q : null),
1004
1005
  "location-strategy": "connected",
1005
1006
  target: s.value,
1006
1007
  scrim: "transparent"
1007
1008
  }, {
1008
- default: J(() => [
1009
- N(T, null, {
1010
- default: J(() => [
1011
- (w(!0), H(He, null, Ht(p.value, (W, Ye) => (w(), F(x, {
1012
- key: Ye,
1009
+ default: H(() => [
1010
+ k(P, null, {
1011
+ default: H(() => [
1012
+ (A(!0), K(He, null, zt(d.value, (Q, et) => (A(), B(b, {
1013
+ key: et,
1013
1014
  link: "",
1014
- onClick: W.func
1015
+ onClick: Q.func
1015
1016
  }, {
1016
- default: J(() => [
1017
- N($, null, {
1018
- default: J(() => [
1019
- at(ne(W.title), 1)
1017
+ default: H(() => [
1018
+ k($, null, {
1019
+ default: H(() => [
1020
+ ze(Y(Q.title), 1)
1020
1021
  ]),
1021
1022
  _: 2
1022
1023
  }, 1024)
@@ -1032,8 +1033,8 @@ const cs = /* @__PURE__ */ K({
1032
1033
  };
1033
1034
  }
1034
1035
  });
1035
- var bn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", $n = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", fs = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ge = "M19,13H5V11H19V13Z", ds = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1036
- const Be = /* @__PURE__ */ K({
1036
+ var Sn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", wn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", An = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", _e = "M19,13H5V11H19V13Z", ys = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1037
+ const Be = /* @__PURE__ */ G({
1037
1038
  __name: "title",
1038
1039
  props: {
1039
1040
  title: {},
@@ -1044,166 +1045,166 @@ const Be = /* @__PURE__ */ K({
1044
1045
  },
1045
1046
  emits: ["collapse", "menu", "create", "delete"],
1046
1047
  setup(e, { emit: t }) {
1047
- const { backgroundColor2: n, highlightColor: r } = we(), i = t, o = B(!1), l = R(() => ({
1048
+ const { backgroundColor2: n, highlightColor: r } = me(), l = t, o = N(!1), i = F(() => ({
1048
1049
  background: o.value ? r.value : n.value,
1049
1050
  height: "36px",
1050
1051
  marginBottom: "1px",
1051
1052
  userSelect: "none"
1052
1053
  })), a = () => {
1053
- i("collapse", !e.collapse);
1054
+ l("collapse", !e.collapse);
1054
1055
  }, u = (s) => {
1055
- i("menu", s.clientX, s.clientY);
1056
+ l("menu", s.clientX, s.clientY);
1056
1057
  };
1057
1058
  return (s, v) => {
1058
- const d = V("v-icon"), f = V("v-spacer"), p = V("v-btn"), _ = ae("ripple");
1059
- return re((w(), H("div", {
1059
+ const c = V("v-icon"), f = V("v-spacer"), d = V("v-btn"), m = ce("ripple");
1060
+ return le((A(), K("div", {
1060
1061
  class: "d-flex align-center cursor-pointer",
1061
- style: le(l.value),
1062
+ style: re(i.value),
1062
1063
  onClick: a,
1063
- onContextmenu: z(u, ["prevent"]),
1064
- onMouseover: v[2] || (v[2] = (A) => o.value = !0),
1065
- onMouseout: v[3] || (v[3] = (A) => o.value = !1)
1064
+ onContextmenu: J(u, ["prevent"]),
1065
+ onMouseover: v[2] || (v[2] = (C) => o.value = !0),
1066
+ onMouseout: v[3] || (v[3] = (C) => o.value = !1)
1066
1067
  }, [
1067
- N(d, {
1068
+ k(c, {
1068
1069
  class: "mr-1",
1069
- icon: s.collapse ? E($n) : E(bn)
1070
+ icon: s.collapse ? w(wn) : w(Sn)
1070
1071
  }, null, 8, ["icon"]),
1071
- q("span", null, ne(s.title), 1),
1072
- N(f),
1073
- s.hasCreate ? (w(), F(p, {
1072
+ z("span", null, Y(s.title), 1),
1073
+ k(f),
1074
+ s.hasCreate ? (A(), B(d, {
1074
1075
  key: 0,
1075
1076
  class: "mx-3",
1076
1077
  variant: "text",
1077
1078
  density: "compact",
1078
- icon: E(ds),
1079
- onClick: v[0] || (v[0] = z((A) => i("create"), ["stop"]))
1080
- }, null, 8, ["icon"])) : I("", !0),
1081
- s.hasDelete ? (w(), F(p, {
1079
+ icon: w(ys),
1080
+ onClick: v[0] || (v[0] = J((C) => l("create"), ["stop"]))
1081
+ }, null, 8, ["icon"])) : X("", !0),
1082
+ s.hasDelete ? (A(), B(d, {
1082
1083
  key: 1,
1083
1084
  class: "mx-3",
1084
1085
  variant: "text",
1085
1086
  density: "compact",
1086
- icon: E(ge),
1087
- onClick: v[1] || (v[1] = z((A) => i("delete", s.index), ["stop"]))
1088
- }, null, 8, ["icon"])) : I("", !0)
1087
+ icon: w(_e),
1088
+ onClick: v[1] || (v[1] = J((C) => l("delete", s.index), ["stop"]))
1089
+ }, null, 8, ["icon"])) : X("", !0)
1089
1090
  ], 36)), [
1090
- [_]
1091
+ [m]
1091
1092
  ]);
1092
1093
  };
1093
1094
  }
1094
- }), ps = /* @__PURE__ */ K({
1095
+ }), hs = /* @__PURE__ */ G({
1095
1096
  __name: "entry",
1096
1097
  props: {
1097
1098
  minHeight: {}
1098
1099
  },
1099
1100
  emits: ["menu"],
1100
1101
  setup(e, { emit: t }) {
1101
- const { backgroundColor2: n, highlightColor: r } = we(), i = t, o = B(!1), l = R(() => ({
1102
+ const { backgroundColor2: n, highlightColor: r } = me(), l = t, o = N(!1), i = F(() => ({
1102
1103
  background: o.value ? r.value : n.value,
1103
1104
  minHeight: e.minHeight,
1104
1105
  paddingRight: "4px",
1105
1106
  marginBottom: "1px",
1106
1107
  userSelect: "none"
1107
1108
  })), a = (u) => {
1108
- i("menu", u.clientX, u.clientY);
1109
+ l("menu", u.clientX, u.clientY);
1109
1110
  };
1110
1111
  return (u, s) => {
1111
- const v = ae("ripple");
1112
- return re((w(), H("div", {
1112
+ const v = ce("ripple");
1113
+ return le((A(), K("div", {
1113
1114
  class: "d-flex justify-space-between align-center cursor-pointer",
1114
- style: le(l.value),
1115
- onContextmenu: z(a, ["prevent"]),
1116
- onMouseover: s[0] || (s[0] = (d) => o.value = !0),
1117
- onMouseout: s[1] || (s[1] = (d) => o.value = !1)
1115
+ style: re(i.value),
1116
+ onContextmenu: J(a, ["prevent"]),
1117
+ onMouseover: s[0] || (s[0] = (c) => o.value = !0),
1118
+ onMouseout: s[1] || (s[1] = (c) => o.value = !1)
1118
1119
  }, [
1119
- jn(u.$slots, "default")
1120
+ Bn(u.$slots, "default")
1120
1121
  ], 36)), [
1121
1122
  [v]
1122
1123
  ]);
1123
1124
  };
1124
1125
  }
1125
1126
  });
1126
- function vs(e, t, n) {
1127
- const { t: r } = ue();
1128
- return { renderProp: (o, l, a) => {
1127
+ function _s(e, t, n) {
1128
+ const { t: r } = ie();
1129
+ return { renderProp: (o, i, a) => {
1129
1130
  const u = o.at(-1);
1130
- let v = typeof u == "number" ? `[${u + 1}]` : r(l.name);
1131
- return be(e.value, o) && (v += " *"), h(
1132
- ps,
1131
+ let v = typeof u == "number" ? `[${u + 1}]` : r(i.name);
1132
+ return Te(e.value, o) && (v += " *"), _(
1133
+ hs,
1133
1134
  {
1134
1135
  minHeight: t.value,
1135
- onMenu: (d, f) => {
1136
- _e.emit("propTreeMenu", { x: d, y: f, keys: o });
1136
+ onMenu: (c, f) => {
1137
+ $e.emit("propTreeMenu", { x: c, y: f, keys: o });
1137
1138
  }
1138
1139
  },
1139
1140
  () => [
1140
- h("span", { class: "ml-1", innerHTML: v }),
1141
- h("div", { style: { width: n.value } }, a)
1141
+ _("span", { class: "ml-1", innerHTML: v }),
1142
+ _("div", { style: { width: n.value } }, a)
1142
1143
  ]
1143
1144
  );
1144
1145
  } };
1145
1146
  }
1146
- const ce = (e, t, n, r, i, o) => {
1147
- if (i !== void 0)
1147
+ const ae = (e, t, n, r, l, o) => {
1148
+ if (l !== void 0)
1148
1149
  if (o) {
1149
1150
  if (n[t.key] === void 0) {
1150
- const l = k(t);
1151
- l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
1151
+ const i = R(t);
1152
+ i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
1152
1153
  }
1153
1154
  return n[t.key];
1154
1155
  } else {
1155
- if (n[i] === void 0) {
1156
- const l = k(t, !0);
1157
- l !== void 0 && (n[i] = l, r(e, n[i]));
1156
+ if (n[l] === void 0) {
1157
+ const i = R(t, !0);
1158
+ i !== void 0 && (n[l] = i, r(e, n[l]));
1158
1159
  }
1159
- return n[i];
1160
+ return n[l];
1160
1161
  }
1161
1162
  else {
1162
1163
  if (n[t.key] === void 0) {
1163
- const l = k(t);
1164
- l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
1164
+ const i = R(t);
1165
+ i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
1165
1166
  }
1166
1167
  return n[t.key];
1167
1168
  }
1168
- }, he = (e, t, n, r, i, o, l) => {
1169
+ }, fe = (e, t, n, r, l, o, i) => {
1169
1170
  if (o !== void 0)
1170
- l ? r !== n[t.key] && (n[t.key] = r, i(e, n[t.key])) : r !== n[o] && (n[o] = r, i(e, n[o]));
1171
+ i ? r !== n[t.key] && (n[t.key] = r, l(e, n[t.key])) : r !== n[o] && (n[o] = r, l(e, n[o]));
1171
1172
  else {
1172
1173
  let a = r;
1173
- (t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "compSelect") && (r || (a = void 0)), a !== n[t.key] && (n[t.key] = a, i(e, n[t.key]));
1174
+ (t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "compSelect") && (r || (a = void 0)), a !== n[t.key] && (n[t.key] = a, l(e, n[t.key]));
1174
1175
  }
1175
1176
  };
1176
- function ms(e) {
1177
- return { renderUiDummy: (n, r, i, o, l) => {
1177
+ function bs(e) {
1178
+ return { renderUiDummy: (n, r, l, o, i) => {
1178
1179
  if (r.ui !== "dummy") {
1179
1180
  console.assert(!1, "renderUiDummy prop ui must be dummy");
1180
1181
  return;
1181
1182
  }
1182
- ce(n, r, i, e, o, l);
1183
+ ae(n, r, l, e, o, i);
1183
1184
  } };
1184
1185
  }
1185
- const ys = { class: "d-flex justify-space-between align-center" }, gs = /* @__PURE__ */ K({
1186
+ const $s = { class: "d-flex justify-space-between align-center" }, Ts = /* @__PURE__ */ G({
1186
1187
  __name: "strInput",
1187
- props: /* @__PURE__ */ X({
1188
+ props: /* @__PURE__ */ Z({
1188
1189
  hasDelete: { type: Boolean, default: !1 },
1189
1190
  readonly: { type: Boolean, default: !1 }
1190
1191
  }, {
1191
1192
  modelValue: { required: !0 },
1192
1193
  modelModifiers: {}
1193
1194
  }),
1194
- emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1195
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1195
1196
  setup(e, { emit: t }) {
1196
- const n = oe(e, "modelValue"), r = t;
1197
- return (i, o) => {
1198
- const l = V("v-text-field"), a = V("v-btn"), u = ae("ripple");
1199
- return w(), H("div", ys, [
1200
- re(N(l, {
1197
+ const n = I(e, "modelValue"), r = t;
1198
+ return (l, o) => {
1199
+ const i = V("v-text-field"), a = V("v-btn"), u = ce("ripple");
1200
+ return A(), K("div", $s, [
1201
+ le(k(i, {
1201
1202
  modelValue: n.value,
1202
1203
  "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
1203
1204
  density: "compact",
1204
1205
  "hide-details": "",
1205
1206
  "single-line": "",
1206
- readonly: i.readonly
1207
+ readonly: l.readonly
1207
1208
  }, null, 8, ["modelValue", "readonly"]), [
1208
1209
  [
1209
1210
  u,
@@ -1212,49 +1213,49 @@ const ys = { class: "d-flex justify-space-between align-center" }, gs = /* @__PU
1212
1213
  { stop: !0 }
1213
1214
  ]
1214
1215
  ]),
1215
- i.hasDelete ? (w(), F(a, {
1216
+ l.hasDelete ? (A(), B(a, {
1216
1217
  key: 0,
1217
1218
  class: "mx-2",
1218
1219
  variant: "text",
1219
1220
  density: "compact",
1220
- icon: E(ge),
1221
- onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
1222
- }, null, 8, ["icon"])) : I("", !0)
1221
+ icon: w(_e),
1222
+ onClick: o[1] || (o[1] = J((s) => r("delete"), ["stop"]))
1223
+ }, null, 8, ["icon"])) : X("", !0)
1223
1224
  ]);
1224
1225
  };
1225
1226
  }
1226
1227
  });
1227
- function hs(e) {
1228
- return { renderUiStrInput: (n, r, i, o, l) => r.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(gs, {
1229
- modelValue: r.static ? r.value : ce(
1228
+ function Ss(e) {
1229
+ return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Ts, {
1230
+ modelValue: r.static ? r.value : ae(
1230
1231
  n,
1231
1232
  r,
1232
- i,
1233
+ l,
1233
1234
  e,
1234
1235
  o,
1235
- l
1236
+ i
1236
1237
  ),
1237
1238
  "onUpdate:modelValue": (a) => {
1238
- r.static || he(
1239
+ r.static || fe(
1239
1240
  n,
1240
1241
  r,
1241
- i,
1242
+ l,
1242
1243
  a,
1243
1244
  e,
1244
1245
  o,
1245
- l
1246
+ i
1246
1247
  );
1247
1248
  },
1248
- hasDelete: o !== void 0 && !l,
1249
+ hasDelete: o !== void 0 && !i,
1249
1250
  onDelete: () => {
1250
- o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1251
+ o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1251
1252
  },
1252
1253
  readonly: r.static || r.readonly
1253
1254
  }) };
1254
1255
  }
1255
- const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PURE__ */ K({
1256
+ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PURE__ */ G({
1256
1257
  __name: "numInput",
1257
- props: /* @__PURE__ */ X({
1258
+ props: /* @__PURE__ */ Z({
1258
1259
  hasDelete: { type: Boolean, default: !1 },
1259
1260
  precision: { default: () => {
1260
1261
  } },
@@ -1266,24 +1267,24 @@ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PU
1266
1267
  modelValue: { required: !0 },
1267
1268
  modelModifiers: {}
1268
1269
  }),
1269
- emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1270
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1270
1271
  setup(e, { emit: t }) {
1271
- const n = oe(e, "modelValue"), r = t;
1272
- return (i, o) => {
1273
- const l = V("v-number-input"), a = V("v-btn"), u = ae("ripple");
1274
- return w(), H("div", _s, [
1275
- re(N(l, {
1272
+ const n = I(e, "modelValue"), r = t;
1273
+ return (l, o) => {
1274
+ const i = V("v-number-input"), a = V("v-btn"), u = ce("ripple");
1275
+ return A(), K("div", ws, [
1276
+ le(k(i, {
1276
1277
  modelValue: n.value,
1277
1278
  "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
1278
1279
  density: "compact",
1279
1280
  "control-variant": "stacked",
1280
- precision: i.precision,
1281
- min: i.min,
1282
- max: i.max,
1283
- step: i.step,
1281
+ precision: l.precision,
1282
+ min: l.min,
1283
+ max: l.max,
1284
+ step: l.step,
1284
1285
  "hide-details": "",
1285
1286
  "single-line": "",
1286
- readonly: i.readonly
1287
+ readonly: l.readonly
1287
1288
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
1288
1289
  [
1289
1290
  u,
@@ -1292,42 +1293,42 @@ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PU
1292
1293
  { stop: !0 }
1293
1294
  ]
1294
1295
  ]),
1295
- i.hasDelete ? (w(), F(a, {
1296
+ l.hasDelete ? (A(), B(a, {
1296
1297
  key: 0,
1297
1298
  class: "mx-2",
1298
1299
  variant: "text",
1299
1300
  density: "compact",
1300
- icon: E(ge),
1301
- onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
1302
- }, null, 8, ["icon"])) : I("", !0)
1301
+ icon: w(_e),
1302
+ onClick: o[1] || (o[1] = J((s) => r("delete"), ["stop"]))
1303
+ }, null, 8, ["icon"])) : X("", !0)
1303
1304
  ]);
1304
1305
  };
1305
1306
  }
1306
1307
  });
1307
- function $s(e) {
1308
- return { renderUiNumInput: (n, r, i, o, l) => r.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(bs, {
1309
- modelValue: ce(
1308
+ function Cs(e) {
1309
+ return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(As, {
1310
+ modelValue: ae(
1310
1311
  n,
1311
1312
  r,
1312
- i,
1313
+ l,
1313
1314
  e,
1314
1315
  o,
1315
- l
1316
+ i
1316
1317
  ),
1317
1318
  "onUpdate:modelValue": (a) => {
1318
- he(
1319
+ fe(
1319
1320
  n,
1320
1321
  r,
1321
- i,
1322
+ l,
1322
1323
  a,
1323
1324
  e,
1324
1325
  o,
1325
- l
1326
+ i
1326
1327
  );
1327
1328
  },
1328
- hasDelete: o !== void 0 && !l,
1329
+ hasDelete: o !== void 0 && !i,
1329
1330
  onDelete: () => {
1330
- o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1331
+ o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1331
1332
  },
1332
1333
  precision: r.precision,
1333
1334
  min: r.min,
@@ -1336,73 +1337,73 @@ function $s(e) {
1336
1337
  readonly: r.readonly
1337
1338
  }) };
1338
1339
  }
1339
- const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PURE__ */ K({
1340
+ const Ps = { class: "d-flex justify-space-between align-center" }, xs = /* @__PURE__ */ G({
1340
1341
  __name: "switch",
1341
- props: /* @__PURE__ */ X({
1342
+ props: /* @__PURE__ */ Z({
1342
1343
  hasDelete: { type: Boolean, default: !1 },
1343
1344
  readonly: { type: Boolean, default: !1 }
1344
1345
  }, {
1345
1346
  modelValue: { type: Boolean },
1346
1347
  modelModifiers: {}
1347
1348
  }),
1348
- emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1349
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1349
1350
  setup(e, { emit: t }) {
1350
- const n = oe(e, "modelValue"), r = t;
1351
- return (i, o) => {
1352
- const l = V("v-switch"), a = V("v-btn");
1353
- return w(), H("div", Ts, [
1354
- N(l, {
1351
+ const n = I(e, "modelValue"), r = t;
1352
+ return (l, o) => {
1353
+ const i = V("v-switch"), a = V("v-btn");
1354
+ return A(), K("div", Ps, [
1355
+ k(i, {
1355
1356
  modelValue: n.value,
1356
1357
  "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
1357
1358
  class: "ml-1",
1358
1359
  density: "compact",
1359
1360
  color: "primary",
1360
1361
  "hide-details": "",
1361
- readonly: i.readonly
1362
+ readonly: l.readonly
1362
1363
  }, null, 8, ["modelValue", "readonly"]),
1363
- i.hasDelete ? (w(), F(a, {
1364
+ l.hasDelete ? (A(), B(a, {
1364
1365
  key: 0,
1365
1366
  class: "mx-2",
1366
1367
  variant: "text",
1367
1368
  density: "compact",
1368
- icon: E(ge),
1369
- onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
1370
- }, null, 8, ["icon"])) : I("", !0)
1369
+ icon: w(_e),
1370
+ onClick: o[1] || (o[1] = J((u) => r("delete"), ["stop"]))
1371
+ }, null, 8, ["icon"])) : X("", !0)
1371
1372
  ]);
1372
1373
  };
1373
1374
  }
1374
1375
  });
1375
- function ws(e) {
1376
- return { renderUiSwitch: (n, r, i, o, l) => r.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(Ss, {
1377
- modelValue: ce(
1376
+ function Os(e) {
1377
+ return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(xs, {
1378
+ modelValue: ae(
1378
1379
  n,
1379
1380
  r,
1380
- i,
1381
+ l,
1381
1382
  e,
1382
1383
  o,
1383
- l
1384
+ i
1384
1385
  ) ?? !1,
1385
1386
  "onUpdate:modelValue": (a) => {
1386
- he(
1387
+ fe(
1387
1388
  n,
1388
1389
  r,
1389
- i,
1390
+ l,
1390
1391
  a,
1391
1392
  e,
1392
1393
  o,
1393
- l
1394
+ i
1394
1395
  );
1395
1396
  },
1396
- hasDelete: o !== void 0 && !l,
1397
+ hasDelete: o !== void 0 && !i,
1397
1398
  onDelete: () => {
1398
- o === void 0 || l || (i.splice(o, 1), e(n.slice(0, 1), i));
1399
+ o === void 0 || i || (l.splice(o, 1), e(n.slice(0, 1), l));
1399
1400
  },
1400
1401
  readonly: r.readonly
1401
1402
  }) };
1402
1403
  }
1403
- const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PURE__ */ K({
1404
+ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PURE__ */ G({
1404
1405
  __name: "select",
1405
- props: /* @__PURE__ */ X({
1406
+ props: /* @__PURE__ */ Z({
1406
1407
  hasDelete: { type: Boolean, default: !1 },
1407
1408
  readonly: { type: Boolean, default: !1 },
1408
1409
  items: {}
@@ -1410,76 +1411,76 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1410
1411
  modelValue: {},
1411
1412
  modelModifiers: {}
1412
1413
  }),
1413
- emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1414
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1414
1415
  setup(e, { emit: t }) {
1415
- const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = R(() => {
1416
+ const { t: n } = ie(), r = I(e, "modelValue"), l = t, o = yt(), i = F(() => {
1416
1417
  var u;
1417
1418
  const a = [];
1418
- return (u = qt[o.value]) == null || u.items[e.items].forEach(({ title: s, value: v }) => {
1419
+ return (u = Zt[o.value]) == null || u.items[e.items].forEach(({ title: s, value: v }) => {
1419
1420
  a.push({ title: n(s), value: v });
1420
1421
  }), a;
1421
1422
  });
1422
1423
  return (a, u) => {
1423
- const s = V("v-select"), v = V("v-btn"), d = ae("ripple");
1424
- return w(), H("div", As, [
1425
- re(N(s, {
1424
+ const s = V("v-select"), v = V("v-btn"), c = ce("ripple");
1425
+ return A(), K("div", Vs, [
1426
+ le(k(s, {
1426
1427
  modelValue: r.value,
1427
1428
  "onUpdate:modelValue": u[0] || (u[0] = (f) => r.value = f),
1428
1429
  density: "compact",
1429
- items: l.value,
1430
+ items: i.value,
1430
1431
  "hide-details": "",
1431
1432
  "single-line": "",
1432
1433
  readonly: a.readonly
1433
1434
  }, null, 8, ["modelValue", "items", "readonly"]), [
1434
1435
  [
1435
- d,
1436
+ c,
1436
1437
  void 0,
1437
1438
  void 0,
1438
1439
  { stop: !0 }
1439
1440
  ]
1440
1441
  ]),
1441
- a.hasDelete ? (w(), F(v, {
1442
+ a.hasDelete ? (A(), B(v, {
1442
1443
  key: 0,
1443
1444
  class: "mx-2",
1444
1445
  variant: "text",
1445
1446
  density: "compact",
1446
- icon: E(ge),
1447
- onClick: u[1] || (u[1] = z((f) => i("delete"), ["stop"]))
1448
- }, null, 8, ["icon"])) : I("", !0)
1447
+ icon: w(_e),
1448
+ onClick: u[1] || (u[1] = J((f) => l("delete"), ["stop"]))
1449
+ }, null, 8, ["icon"])) : X("", !0)
1449
1450
  ]);
1450
1451
  };
1451
1452
  }
1452
1453
  });
1453
- function Ps(e) {
1454
- return { renderUiSelect: (n, r, i, o, l) => r.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(Cs, {
1455
- modelValue: ce(
1454
+ function Ms(e) {
1455
+ return { renderUiSelect: (n, r, l, o, i) => r.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(Us, {
1456
+ modelValue: ae(
1456
1457
  n,
1457
1458
  r,
1458
- i,
1459
+ l,
1459
1460
  e,
1460
1461
  o,
1461
- l
1462
+ i
1462
1463
  ) ?? "",
1463
1464
  "onUpdate:modelValue": (a) => {
1464
- he(
1465
+ fe(
1465
1466
  n,
1466
1467
  r,
1467
- i,
1468
+ l,
1468
1469
  a,
1469
1470
  e,
1470
1471
  o,
1471
- l
1472
+ i
1472
1473
  );
1473
1474
  },
1474
- hasDelete: o !== void 0 && !l,
1475
+ hasDelete: o !== void 0 && !i,
1475
1476
  onDelete: () => {
1476
- o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1477
+ o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1477
1478
  },
1478
1479
  items: r.items,
1479
1480
  readonly: r.readonly
1480
1481
  }) };
1481
1482
  }
1482
- const xs = { class: "text-subtitle-2 ml-1" }, Os = { class: "text-caption text-grey ml-1" }, Ms = /* @__PURE__ */ K({
1483
+ const Ls = { class: "text-subtitle-2 ml-1" }, js = { class: "text-caption text-grey ml-1" }, Ds = /* @__PURE__ */ G({
1483
1484
  __name: "group",
1484
1485
  props: {
1485
1486
  id: {},
@@ -1489,33 +1490,33 @@ const xs = { class: "text-subtitle-2 ml-1" }, Os = { class: "text-caption text-g
1489
1490
  },
1490
1491
  emits: ["x-click"],
1491
1492
  setup(e, { emit: t }) {
1492
- const { backgroundColor2: n, highlightColor: r } = we(), i = e, o = t, l = B(!1), a = R(() => ({
1493
- background: l.value ? r.value : n.value,
1493
+ const { backgroundColor2: n, highlightColor: r } = me(), l = e, o = t, i = N(!1), a = F(() => ({
1494
+ background: i.value ? r.value : n.value,
1494
1495
  height: "30px",
1495
1496
  marginBottom: "1px",
1496
1497
  userSelect: "none"
1497
1498
  }));
1498
1499
  return (u, s) => {
1499
- const v = V("v-icon"), d = ae("ripple");
1500
- return re((w(), H("div", {
1500
+ const v = V("v-icon"), c = ce("ripple");
1501
+ return le((A(), K("div", {
1501
1502
  class: "d-flex align-center cursor-pointer",
1502
- style: le(a.value),
1503
- onClick: s[0] || (s[0] = (f) => o("x-click", i.id)),
1504
- onMouseover: s[1] || (s[1] = (f) => l.value = !0),
1505
- onMouseout: s[2] || (s[2] = (f) => l.value = !1)
1503
+ style: re(a.value),
1504
+ onClick: s[0] || (s[0] = (f) => o("x-click", l.id)),
1505
+ onMouseover: s[1] || (s[1] = (f) => i.value = !0),
1506
+ onMouseout: s[2] || (s[2] = (f) => i.value = !1)
1506
1507
  }, [
1507
- N(v, {
1508
- icon: i.collapse ? E($n) : E(bn),
1508
+ k(v, {
1509
+ icon: l.collapse ? w(wn) : w(Sn),
1509
1510
  size: "small"
1510
1511
  }, null, 8, ["icon"]),
1511
- q("span", xs, ne(i.title), 1),
1512
- q("span", Os, ne(i.count), 1)
1512
+ z("span", Ls, Y(l.title), 1),
1513
+ z("span", js, Y(l.count), 1)
1513
1514
  ], 36)), [
1514
- [d]
1515
+ [c]
1515
1516
  ]);
1516
1517
  };
1517
1518
  }
1518
- }), Vs = { class: "text-subtitle-1 ml-6" }, Us = /* @__PURE__ */ K({
1519
+ }), ks = { class: "text-subtitle-1 ml-6" }, Es = /* @__PURE__ */ G({
1519
1520
  __name: "item",
1520
1521
  props: {
1521
1522
  id: {},
@@ -1523,31 +1524,31 @@ const xs = { class: "text-subtitle-2 ml-1" }, Os = { class: "text-caption text-g
1523
1524
  },
1524
1525
  emits: ["x-click"],
1525
1526
  setup(e, { emit: t }) {
1526
- const { backgroundColor2: n, highlightColor: r } = we(), i = e, o = t, l = B(!1), a = R(() => ({
1527
- background: l.value ? r.value : n.value,
1527
+ const { backgroundColor2: n, highlightColor: r } = me(), l = e, o = t, i = N(!1), a = F(() => ({
1528
+ background: i.value ? r.value : n.value,
1528
1529
  height: "48px",
1529
1530
  marginBottom: "1px",
1530
1531
  userSelect: "none"
1531
1532
  }));
1532
1533
  return (u, s) => {
1533
- const v = ae("ripple");
1534
- return re((w(), H("div", {
1534
+ const v = ce("ripple");
1535
+ return le((A(), K("div", {
1535
1536
  class: "d-flex align-center cursor-pointer",
1536
- style: le(a.value),
1537
- onClick: s[0] || (s[0] = (d) => o("x-click", i.id)),
1538
- onMouseover: s[1] || (s[1] = (d) => l.value = !0),
1539
- onMouseout: s[2] || (s[2] = (d) => l.value = !1)
1537
+ style: re(a.value),
1538
+ onClick: s[0] || (s[0] = (c) => o("x-click", l.id)),
1539
+ onMouseover: s[1] || (s[1] = (c) => i.value = !0),
1540
+ onMouseout: s[2] || (s[2] = (c) => i.value = !1)
1540
1541
  }, [
1541
- q("span", Vs, ne(i.title), 1)
1542
+ z("span", ks, Y(l.title), 1)
1542
1543
  ], 36)), [
1543
1544
  [v]
1544
1545
  ]);
1545
1546
  };
1546
1547
  }
1547
- }), Ls = { key: 0 }, Ds = {
1548
+ }), Ns = { key: 0 }, Rs = {
1548
1549
  key: 1,
1549
1550
  class: "text-body-2 text-grey ml-3"
1550
- }, js = /* @__PURE__ */ K({
1551
+ }, Bs = /* @__PURE__ */ G({
1551
1552
  __name: "index",
1552
1553
  props: {
1553
1554
  modelValue: {},
@@ -1557,34 +1558,34 @@ const xs = { class: "text-subtitle-2 ml-1" }, Os = { class: "text-caption text-g
1557
1558
  },
1558
1559
  emits: ["update:modelValue", "update:open"],
1559
1560
  setup(e) {
1560
- const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), i = _n(), o = (a) => {
1561
- const u = fn(i, a);
1562
- u && ql(i, a, !u.collapse);
1563
- }, l = (a) => {
1564
- n.value = a, r.value = !1, _e.emit("refreshDepends");
1561
+ const { t } = ie(), n = I(e, "modelValue"), r = I(e, "open"), l = Tn(), o = (a) => {
1562
+ const u = mn(l, a);
1563
+ u && Yi(l, a, !u.collapse);
1564
+ }, i = (a) => {
1565
+ n.value = a, r.value = !1, $e.emit("refreshDepends");
1565
1566
  };
1566
- return (a, u) => E(i).length > 0 ? (w(), H("div", Ls, [
1567
- (w(!0), H(He, null, Ht(E(i), (s) => (w(), H(He, {
1567
+ return (a, u) => w(l).length > 0 ? (A(), K("div", Ns, [
1568
+ (A(!0), K(He, null, zt(w(l), (s) => (A(), K(He, {
1568
1569
  key: s.id
1569
1570
  }, [
1570
- s.type === 0 ? (w(), F(Ms, {
1571
+ s.type === 0 ? (A(), B(Ds, {
1571
1572
  key: 0,
1572
1573
  id: s.id,
1573
1574
  title: s.name,
1574
1575
  collapse: s.collapse,
1575
1576
  count: s.count ?? 0,
1576
1577
  onXClick: o
1577
- }, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
1578
- s.type === 1 && s.show ? (w(), F(Us, {
1578
+ }, null, 8, ["id", "title", "collapse", "count"])) : X("", !0),
1579
+ s.type === 1 && s.show ? (A(), B(Es, {
1579
1580
  key: 1,
1580
1581
  id: s.id,
1581
1582
  title: s.name,
1582
- onXClick: l
1583
- }, null, 8, ["id", "title"])) : I("", !0)
1583
+ onXClick: i
1584
+ }, null, 8, ["id", "title"])) : X("", !0)
1584
1585
  ], 64))), 128))
1585
- ])) : (w(), H("div", Ds, ne(E(t)("x-prop-tree.noComp")), 1));
1586
+ ])) : (A(), K("div", Rs, Y(w(t)("x-prop-tree.noComp")), 1));
1586
1587
  }
1587
- }), Es = { class: "text-subtitle-1 ml-3" }, ks = /* @__PURE__ */ K({
1588
+ }), Fs = { class: "text-subtitle-1 ml-3" }, Hs = /* @__PURE__ */ G({
1588
1589
  __name: "index",
1589
1590
  props: {
1590
1591
  modelValue: {},
@@ -1592,92 +1593,92 @@ const xs = { class: "text-subtitle-2 ml-1" }, Os = { class: "text-caption text-g
1592
1593
  },
1593
1594
  emits: ["update:modelValue"],
1594
1595
  setup(e) {
1595
- const { t } = ue(), n = Kn(), { sysBarAvail: r } = Rn(), { backgroundColor1: i } = we(), o = oe(e, "modelValue"), l = _n(), a = R(() => {
1596
+ const { t } = ie(), n = Xn(), { sysBarAvail: r } = Xt(), { backgroundColor1: l } = me(), o = I(e, "modelValue"), i = Tn(), a = F(() => {
1596
1597
  let f = "100%";
1597
1598
  return n.mdAndUp.value && (f = "400px"), {
1598
- background: i.value,
1599
+ background: l.value,
1599
1600
  width: f,
1600
1601
  height: "100%"
1601
1602
  };
1602
- }), u = R(() => {
1603
+ }), u = F(() => {
1603
1604
  let f = 48;
1604
1605
  return r.value && (f += 24), {
1605
1606
  position: "relative",
1606
1607
  height: `calc(100% - ${f}px)`
1607
1608
  };
1608
- }), s = R(() => ({
1609
+ }), s = F(() => ({
1609
1610
  height: "60px"
1610
- })), v = R(() => {
1611
+ })), v = F(() => {
1611
1612
  if (!o.value)
1612
1613
  return t("x-runtime-lib.notSet");
1613
- const f = fn(l, o.value);
1614
+ const f = mn(i, o.value);
1614
1615
  return f ? f.name : t("x-runtime-lib.compNotAvail");
1615
- }), { open: d } = ut(`propTreeCompSelectDlg${Gt()}`);
1616
- return Kt(() => {
1617
- d.value = !1;
1618
- }), (f, p) => {
1619
- const _ = V("v-btn"), A = V("v-sheet"), C = V("v-icon"), P = V("v-dialog");
1620
- return w(), F(P, {
1621
- modelValue: E(d),
1622
- "onUpdate:modelValue": p[5] || (p[5] = ($) => Fe(d) ? d.value = $ : null),
1616
+ }), { open: c } = Je(`propTreeCompSelectDlg${ct()}`);
1617
+ return ft(() => {
1618
+ c.value = !1;
1619
+ }), (f, d) => {
1620
+ const m = V("v-btn"), C = V("v-sheet"), S = V("v-icon"), x = V("v-dialog");
1621
+ return A(), B(x, {
1622
+ modelValue: w(c),
1623
+ "onUpdate:modelValue": d[5] || (d[5] = ($) => Ve(c) ? c.value = $ : null),
1623
1624
  transition: "scroll-x-reverse-transition",
1624
1625
  persistent: "",
1625
1626
  "no-click-animation": "",
1626
1627
  fullscreen: "",
1627
- onKeydown: p[6] || (p[6] = En(z(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1628
+ onKeydown: d[6] || (d[6] = Jt(J(($) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1628
1629
  }, {
1629
- activator: J(({ props: $ }) => [
1630
- N(_, zt($, {
1630
+ activator: H(({ props: $ }) => [
1631
+ k(m, dt($, {
1631
1632
  density: "comfortable",
1632
1633
  block: ""
1633
1634
  }), {
1634
- default: J(() => [
1635
- at(ne(v.value), 1)
1635
+ default: H(() => [
1636
+ ze(Y(v.value), 1)
1636
1637
  ]),
1637
1638
  _: 2
1638
1639
  }, 1040)
1639
1640
  ]),
1640
- default: J(() => [
1641
- q("div", {
1641
+ default: H(() => [
1642
+ z("div", {
1642
1643
  class: "w-100 h-100 d-flex flex-row-reverse",
1643
- onClick: p[3] || (p[3] = z(($) => d.value = !1, ["self"])),
1644
- onContextmenu: p[4] || (p[4] = z(($) => d.value = !1, ["self", "prevent"]))
1644
+ onClick: d[3] || (d[3] = J(($) => c.value = !1, ["self"])),
1645
+ onContextmenu: d[4] || (d[4] = J(($) => c.value = !1, ["self", "prevent"]))
1645
1646
  }, [
1646
- q("div", {
1647
+ z("div", {
1647
1648
  class: "elevation-2",
1648
- style: le(a.value)
1649
+ style: re(a.value)
1649
1650
  }, [
1650
- E(r) ? (w(), F(A, {
1651
+ w(r) ? (A(), B(C, {
1651
1652
  key: 0,
1652
1653
  color: "transparent",
1653
1654
  height: 24
1654
- })) : I("", !0),
1655
- N(A, {
1655
+ })) : X("", !0),
1656
+ k(C, {
1656
1657
  class: "d-flex align-center px-3",
1657
1658
  color: "transparent",
1658
1659
  height: 48
1659
1660
  }, {
1660
- default: J(() => [
1661
- N(C, {
1662
- icon: E(fs),
1663
- onClick: p[0] || (p[0] = ($) => d.value = !1)
1661
+ default: H(() => [
1662
+ k(S, {
1663
+ icon: w(An),
1664
+ onClick: d[0] || (d[0] = ($) => c.value = !1)
1664
1665
  }, null, 8, ["icon"]),
1665
- q("span", Es, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
1666
+ z("span", Fs, Y(w(t)("x-prop-tree.dlg.compSelect.title")), 1)
1666
1667
  ]),
1667
1668
  _: 1
1668
1669
  }),
1669
- q("div", {
1670
+ z("div", {
1670
1671
  class: "overflow-y-auto",
1671
- style: le(u.value)
1672
+ style: re(u.value)
1672
1673
  }, [
1673
- N(js, {
1674
+ k(Bs, {
1674
1675
  modelValue: o.value,
1675
- "onUpdate:modelValue": p[1] || (p[1] = ($) => o.value = $),
1676
- open: E(d),
1677
- "onUpdate:open": p[2] || (p[2] = ($) => Fe(d) ? d.value = $ : null)
1676
+ "onUpdate:modelValue": d[1] || (d[1] = ($) => o.value = $),
1677
+ open: w(c),
1678
+ "onUpdate:open": d[2] || (d[2] = ($) => Ve(c) ? c.value = $ : null)
1678
1679
  }, null, 8, ["modelValue", "open"]),
1679
- q("div", {
1680
- style: le(s.value)
1680
+ z("div", {
1681
+ style: re(s.value)
1681
1682
  }, null, 4)
1682
1683
  ], 4)
1683
1684
  ], 4)
@@ -1688,88 +1689,88 @@ const xs = { class: "text-subtitle-2 ml-1" }, Os = { class: "text-caption text-g
1688
1689
  };
1689
1690
  }
1690
1691
  });
1691
- function Ns(e) {
1692
- return { renderUiCompSelect: (n, r, i, o, l) => r.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(ks, {
1693
- modelValue: ce(
1692
+ function Gs(e) {
1693
+ return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Hs, {
1694
+ modelValue: ae(
1694
1695
  n,
1695
1696
  r,
1696
- i,
1697
+ l,
1697
1698
  e,
1698
1699
  o,
1699
- l
1700
+ i
1700
1701
  ),
1701
1702
  "onUpdate:modelValue": (a) => {
1702
- he(
1703
+ fe(
1703
1704
  n,
1704
1705
  r,
1705
- i,
1706
+ l,
1706
1707
  a,
1707
1708
  e,
1708
1709
  o,
1709
- l
1710
+ i
1710
1711
  );
1711
1712
  }
1712
1713
  }) };
1713
1714
  }
1714
- const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PURE__ */ K({
1715
+ const Ks = { class: "d-flex justify-space-between align-center" }, qs = /* @__PURE__ */ G({
1715
1716
  __name: "colorPicker",
1716
- props: /* @__PURE__ */ X({
1717
+ props: /* @__PURE__ */ Z({
1717
1718
  hasDelete: { type: Boolean, default: !1 },
1718
1719
  readonly: { type: Boolean, default: !1 }
1719
1720
  }, {
1720
1721
  modelValue: {},
1721
1722
  modelModifiers: {}
1722
1723
  }),
1723
- emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1724
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1724
1725
  setup(e, { emit: t }) {
1725
- const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = R(() => {
1726
+ const { t: n } = ie(), r = I(e, "modelValue"), l = t, o = F(() => {
1726
1727
  let u = "100%";
1727
1728
  return e.hasDelete && (u = "calc(100% - 37px)"), {
1728
1729
  width: u
1729
1730
  };
1730
- }), l = R(() => e.readonly), { open: a } = ut(`propTreeColorPickerMenu${Gt()}`);
1731
- return Kt(() => {
1731
+ }), i = F(() => e.readonly), { open: a } = Je(`propTreeColorPickerMenu${ct()}`);
1732
+ return ft(() => {
1732
1733
  a.value = !1;
1733
1734
  }), (u, s) => {
1734
- const v = V("v-btn"), d = V("v-color-picker"), f = V("v-menu");
1735
- return w(), F(f, {
1736
- modelValue: E(a),
1737
- "onUpdate:modelValue": s[2] || (s[2] = (p) => Fe(a) ? a.value = p : null),
1735
+ const v = V("v-btn"), c = V("v-color-picker"), f = V("v-menu");
1736
+ return A(), B(f, {
1737
+ modelValue: w(a),
1738
+ "onUpdate:modelValue": s[2] || (s[2] = (d) => Ve(a) ? a.value = d : null),
1738
1739
  "close-on-content-click": !1,
1739
1740
  scrim: "transparent"
1740
1741
  }, {
1741
- activator: J(({ props: p }) => [
1742
- q("div", Bs, [
1743
- q("div", {
1742
+ activator: H(({ props: d }) => [
1743
+ z("div", Ks, [
1744
+ z("div", {
1744
1745
  class: "flex-grow-1",
1745
- style: le(o.value)
1746
+ style: re(o.value)
1746
1747
  }, [
1747
- N(v, zt(p, {
1748
+ k(v, dt(d, {
1748
1749
  density: "comfortable",
1749
1750
  color: r.value,
1750
1751
  block: "",
1751
- disabled: l.value
1752
+ disabled: i.value
1752
1753
  }), {
1753
- default: J(() => [
1754
- at(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
1754
+ default: H(() => [
1755
+ ze(Y(r.value ? r.value : w(n)("x-runtime-lib.notSet")), 1)
1755
1756
  ]),
1756
1757
  _: 2
1757
1758
  }, 1040, ["color", "disabled"])
1758
1759
  ], 4),
1759
- u.hasDelete ? (w(), F(v, {
1760
+ u.hasDelete ? (A(), B(v, {
1760
1761
  key: 0,
1761
1762
  class: "mx-2",
1762
1763
  variant: "text",
1763
1764
  density: "compact",
1764
- icon: E(ge),
1765
- onClick: s[0] || (s[0] = z((_) => i("delete"), ["stop"]))
1766
- }, null, 8, ["icon"])) : I("", !0)
1765
+ icon: w(_e),
1766
+ onClick: s[0] || (s[0] = J((m) => l("delete"), ["stop"]))
1767
+ }, null, 8, ["icon"])) : X("", !0)
1767
1768
  ])
1768
1769
  ]),
1769
- default: J(() => [
1770
- N(d, {
1770
+ default: H(() => [
1771
+ k(c, {
1771
1772
  modelValue: r.value,
1772
- "onUpdate:modelValue": s[1] || (s[1] = (p) => r.value = p),
1773
+ "onUpdate:modelValue": s[1] || (s[1] = (d) => r.value = d),
1773
1774
  mode: "hexa",
1774
1775
  "show-swatches": "",
1775
1776
  "swatches-max-height": "150px"
@@ -1780,84 +1781,84 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
1780
1781
  };
1781
1782
  }
1782
1783
  });
1783
- function Fs(e) {
1784
- return { renderUiColorPicker: (n, r, i, o, l) => r.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(Rs, {
1785
- modelValue: ce(
1784
+ function zs(e) {
1785
+ return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(qs, {
1786
+ modelValue: ae(
1786
1787
  n,
1787
1788
  r,
1788
- i,
1789
+ l,
1789
1790
  e,
1790
1791
  o,
1791
- l
1792
+ i
1792
1793
  ),
1793
1794
  "onUpdate:modelValue": (a) => {
1794
- he(
1795
+ fe(
1795
1796
  n,
1796
1797
  r,
1797
- i,
1798
+ l,
1798
1799
  a,
1799
1800
  e,
1800
1801
  o,
1801
- l
1802
+ i
1802
1803
  );
1803
1804
  },
1804
- hasDelete: o !== void 0 && !l,
1805
+ hasDelete: o !== void 0 && !i,
1805
1806
  onDelete: () => {
1806
- o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1807
+ o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1807
1808
  },
1808
1809
  readonly: r.readonly
1809
1810
  }) };
1810
1811
  }
1811
- const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { class: "flex-grow-1" }, Ks = /* @__PURE__ */ K({
1812
+ const Js = { class: "d-flex justify-space-between align-center my-2" }, Is = { class: "flex-grow-1" }, Xs = /* @__PURE__ */ G({
1812
1813
  __name: "multiTypes",
1813
- props: /* @__PURE__ */ X({
1814
+ props: /* @__PURE__ */ Z({
1814
1815
  hasDelete: { type: Boolean, default: !1 },
1815
1816
  types: {}
1816
1817
  }, {
1817
1818
  modelValue: {},
1818
1819
  modelModifiers: {}
1819
1820
  }),
1820
- emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1821
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1821
1822
  setup(e, { emit: t }) {
1822
- const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = R(() => {
1823
+ const { t: n } = ie(), r = I(e, "modelValue"), l = t, o = yt(), i = F(() => {
1823
1824
  var f;
1824
- return (f = qt[o.value]) == null ? void 0 : f.types[e.types];
1825
- }), a = B(0), u = R(() => {
1826
- var p;
1825
+ return (f = Zt[o.value]) == null ? void 0 : f.types[e.types];
1826
+ }), a = N(0), u = F(() => {
1827
+ var d;
1827
1828
  const f = [];
1828
- return (p = l.value) == null || p.forEach(({ title: _ }, A) => {
1829
+ return (d = i.value) == null || d.forEach(({ title: m }, C) => {
1829
1830
  f.push({
1830
- title: n(_),
1831
- value: A
1831
+ title: n(m),
1832
+ value: C
1832
1833
  });
1833
1834
  }), f;
1834
1835
  });
1835
- mt(() => {
1836
+ _t(() => {
1836
1837
  var f;
1837
- (f = l.value) == null || f.some((p, _) => p.validator(r.value) ? (a.value = _, !0) : !1);
1838
+ (f = i.value) == null || f.some((d, m) => d.validator(r.value) ? (a.value = m, !0) : !1);
1838
1839
  });
1839
- const s = R(() => {
1840
+ const s = F(() => {
1840
1841
  var f;
1841
- return (f = l.value) == null ? void 0 : f[a.value];
1842
+ return (f = i.value) == null ? void 0 : f[a.value];
1842
1843
  }), v = () => {
1843
1844
  var f;
1844
1845
  r.value = (f = s.value) == null ? void 0 : f.default;
1845
- }, d = B(0);
1846
- return mt(() => {
1847
- var f, p;
1848
- ((f = s.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = Fn(r.value) : ((p = s.value) == null ? void 0 : p.ui) === "percentInput" && (d.value = Hn(r.value));
1849
- }), xe(d, (f) => {
1850
- var p, _;
1851
- ((p = s.value) == null ? void 0 : p.ui) === "pixelInput" ? r.value = f + "px" : ((_ = s.value) == null ? void 0 : _.ui) === "percentInput" && (r.value = f + "%");
1852
- }), (f, p) => {
1853
- var $, x;
1854
- const _ = V("v-select"), A = V("v-number-input"), C = V("v-btn"), P = ae("ripple");
1855
- return w(), H("div", Hs, [
1856
- q("div", Gs, [
1857
- re(N(_, {
1846
+ }, c = N(0);
1847
+ return _t(() => {
1848
+ var f, d;
1849
+ ((f = s.value) == null ? void 0 : f.ui) === "pixelInput" ? c.value = zn(r.value) : ((d = s.value) == null ? void 0 : d.ui) === "percentInput" && (c.value = Jn(r.value));
1850
+ }), be(c, (f) => {
1851
+ var d, m;
1852
+ ((d = s.value) == null ? void 0 : d.ui) === "pixelInput" ? r.value = f + "px" : ((m = s.value) == null ? void 0 : m.ui) === "percentInput" && (r.value = f + "%");
1853
+ }), (f, d) => {
1854
+ var $, b;
1855
+ const m = V("v-select"), C = V("v-number-input"), S = V("v-btn"), x = ce("ripple");
1856
+ return A(), K("div", Js, [
1857
+ z("div", Is, [
1858
+ le(k(m, {
1858
1859
  modelValue: a.value,
1859
1860
  "onUpdate:modelValue": [
1860
- p[0] || (p[0] = (T) => a.value = T),
1861
+ d[0] || (d[0] = (P) => a.value = P),
1861
1862
  v
1862
1863
  ],
1863
1864
  density: "compact",
@@ -1866,16 +1867,16 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1866
1867
  "single-line": ""
1867
1868
  }, null, 8, ["modelValue", "items"]), [
1868
1869
  [
1869
- P,
1870
+ x,
1870
1871
  void 0,
1871
1872
  void 0,
1872
1873
  { stop: !0 }
1873
1874
  ]
1874
1875
  ]),
1875
- (($ = s.value) == null ? void 0 : $.ui) === "pixelInput" || ((x = s.value) == null ? void 0 : x.ui) === "percentInput" ? re((w(), F(A, {
1876
+ (($ = s.value) == null ? void 0 : $.ui) === "pixelInput" || ((b = s.value) == null ? void 0 : b.ui) === "percentInput" ? le((A(), B(C, {
1876
1877
  key: 0,
1877
- modelValue: d.value,
1878
- "onUpdate:modelValue": p[1] || (p[1] = (T) => d.value = T),
1878
+ modelValue: c.value,
1879
+ "onUpdate:modelValue": d[1] || (d[1] = (P) => c.value = P),
1879
1880
  density: "compact",
1880
1881
  "control-variant": "stacked",
1881
1882
  precision: s.value.precision,
@@ -1886,54 +1887,208 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1886
1887
  "single-line": ""
1887
1888
  }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1888
1889
  [
1889
- P,
1890
+ x,
1890
1891
  void 0,
1891
1892
  void 0,
1892
1893
  { stop: !0 }
1893
1894
  ]
1894
- ]) : I("", !0)
1895
+ ]) : X("", !0)
1895
1896
  ]),
1896
- f.hasDelete ? (w(), F(C, {
1897
+ f.hasDelete ? (A(), B(S, {
1897
1898
  key: 0,
1898
1899
  class: "mx-2",
1899
1900
  variant: "text",
1900
1901
  density: "compact",
1901
- icon: E(ge),
1902
- onClick: p[2] || (p[2] = z((T) => i("delete"), ["stop"]))
1903
- }, null, 8, ["icon"])) : I("", !0)
1902
+ icon: w(_e),
1903
+ onClick: d[2] || (d[2] = J((P) => l("delete"), ["stop"]))
1904
+ }, null, 8, ["icon"])) : X("", !0)
1904
1905
  ]);
1905
1906
  };
1906
1907
  }
1907
1908
  });
1908
- function zs(e) {
1909
- return { renderUiMultiTypes: (n, r, i, o, l) => r.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(Ks, {
1910
- modelValue: ce(
1909
+ function Zs(e) {
1910
+ return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Xs, {
1911
+ modelValue: ae(
1911
1912
  n,
1912
1913
  r,
1913
- i,
1914
+ l,
1914
1915
  e,
1915
1916
  o,
1916
- l
1917
+ i
1917
1918
  ) ?? "",
1918
1919
  "onUpdate:modelValue": (a) => {
1919
- he(
1920
+ fe(
1920
1921
  n,
1921
1922
  r,
1922
- i,
1923
+ l,
1923
1924
  a,
1924
1925
  e,
1925
1926
  o,
1926
- l
1927
+ i
1927
1928
  );
1928
1929
  },
1929
- hasDelete: o !== void 0 && !l,
1930
+ hasDelete: o !== void 0 && !i,
1930
1931
  onDelete: () => {
1931
- o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1932
+ o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1932
1933
  },
1933
1934
  types: r.types
1934
1935
  }) };
1935
1936
  }
1936
- const qs = /* @__PURE__ */ K({
1937
+ const Ws = /* @__PURE__ */ G({
1938
+ __name: "editor",
1939
+ props: {
1940
+ modelValue: { required: !0 },
1941
+ modelModifiers: {},
1942
+ lock: { type: Boolean, required: !0 },
1943
+ lockModifiers: {},
1944
+ scale: { required: !0 },
1945
+ scaleModifiers: {}
1946
+ },
1947
+ emits: ["update:modelValue", "update:lock", "update:scale"],
1948
+ setup(e, { expose: t }) {
1949
+ const n = I(e, "modelValue"), r = I(e, "lock"), l = I(e, "scale");
1950
+ console.log(n);
1951
+ const o = Kn(), i = qn(), a = yt(), u = It("target"), s = () => {
1952
+ var c;
1953
+ (c = u.value) == null || c.load({});
1954
+ };
1955
+ return t({ close: () => {
1956
+ } }), (c, f) => (A(), B(w(Zn), {
1957
+ ref_key: "target",
1958
+ ref: u,
1959
+ lock: r.value,
1960
+ "onUpdate:lock": f[0] || (f[0] = (d) => r.value = d),
1961
+ scale: l.value,
1962
+ "onUpdate:scale": f[1] || (f[1] = (d) => l.value = d),
1963
+ type: "json",
1964
+ version: w(a),
1965
+ locale: w(i),
1966
+ dark: w(o),
1967
+ onReady: s
1968
+ }, null, 8, ["lock", "scale", "version", "locale", "dark"]));
1969
+ }
1970
+ }), Ys = { class: "text-subtitle-1" }, Qs = /* @__PURE__ */ G({
1971
+ __name: "index",
1972
+ props: {
1973
+ modelValue: { required: !0 },
1974
+ modelModifiers: {}
1975
+ },
1976
+ emits: ["update:modelValue"],
1977
+ setup(e) {
1978
+ const { t } = ie(), { sysBarAvail: n } = Xt(), { backgroundColor0: r, backgroundColor1: l, backgroundColor2: o } = me(), i = I(e, "modelValue"), a = N(!1), u = N(1), s = F(() => {
1979
+ let d = 48;
1980
+ return n.value && (d += 24), {
1981
+ position: "relative",
1982
+ background: l.value,
1983
+ height: `calc(100% - ${d}px)`
1984
+ };
1985
+ }), v = F(() => t("x-prop-tree.dlg.jsonObject.title")), { open: c } = Je(`propTreeJsonObjectDlg${ct()}`);
1986
+ ft(() => {
1987
+ c.value = !1;
1988
+ });
1989
+ const f = It("editor");
1990
+ return be(c, (d) => {
1991
+ var m;
1992
+ d || (m = f.value) == null || m.close();
1993
+ }), (d, m) => {
1994
+ const C = V("v-btn"), S = V("v-sheet"), x = V("v-spacer"), $ = V("v-dialog");
1995
+ return A(), B($, {
1996
+ modelValue: w(c),
1997
+ "onUpdate:modelValue": m[4] || (m[4] = (b) => Ve(c) ? c.value = b : null),
1998
+ transition: "dialog-bottom-transition",
1999
+ persistent: "",
2000
+ "no-click-animation": "",
2001
+ fullscreen: "",
2002
+ attach: "",
2003
+ onKeydown: m[5] || (m[5] = Jt(J((b) => c.value = !1, ["stop", "prevent"]), ["esc"]))
2004
+ }, {
2005
+ activator: H(({ props: b }) => [
2006
+ k(C, dt(b, {
2007
+ density: "comfortable",
2008
+ block: ""
2009
+ }), {
2010
+ default: H(() => [
2011
+ ze(Y(v.value), 1)
2012
+ ]),
2013
+ _: 2
2014
+ }, 1040)
2015
+ ]),
2016
+ default: H(() => [
2017
+ k(S, {
2018
+ color: w(r),
2019
+ width: "100%",
2020
+ height: "100%"
2021
+ }, {
2022
+ default: H(() => [
2023
+ w(n) ? (A(), B(S, {
2024
+ key: 0,
2025
+ color: w(o),
2026
+ height: 24
2027
+ }, null, 8, ["color"])) : X("", !0),
2028
+ k(S, {
2029
+ class: "d-flex align-center px-2",
2030
+ color: w(o),
2031
+ height: 48
2032
+ }, {
2033
+ default: H(() => [
2034
+ k(C, {
2035
+ variant: "text",
2036
+ density: "comfortable",
2037
+ icon: w(An),
2038
+ onClick: m[0] || (m[0] = (b) => c.value = !1)
2039
+ }, null, 8, ["icon"]),
2040
+ z("span", Ys, Y(w(t)("x-prop-tree.dlg.jsonObject.title")), 1),
2041
+ k(x)
2042
+ ]),
2043
+ _: 1
2044
+ }, 8, ["color"]),
2045
+ z("div", {
2046
+ style: re(s.value)
2047
+ }, [
2048
+ k(Ws, {
2049
+ ref_key: "editor",
2050
+ ref: f,
2051
+ modelValue: i.value,
2052
+ "onUpdate:modelValue": m[1] || (m[1] = (b) => i.value = b),
2053
+ lock: a.value,
2054
+ "onUpdate:lock": m[2] || (m[2] = (b) => a.value = b),
2055
+ scale: u.value,
2056
+ "onUpdate:scale": m[3] || (m[3] = (b) => u.value = b)
2057
+ }, null, 8, ["modelValue", "lock", "scale"])
2058
+ ], 4)
2059
+ ]),
2060
+ _: 1
2061
+ }, 8, ["color"])
2062
+ ]),
2063
+ _: 1
2064
+ }, 8, ["modelValue"]);
2065
+ };
2066
+ }
2067
+ });
2068
+ function ea(e) {
2069
+ return { renderUiJsonObject: (n, r, l, o, i) => r.ui !== "jsonObject" ? _("div", "renderUiJsonObject prop ui must be jsonObject") : _(Qs, {
2070
+ modelValue: ae(
2071
+ n,
2072
+ r,
2073
+ l,
2074
+ e,
2075
+ o,
2076
+ i
2077
+ ) ?? {},
2078
+ "onUpdate:modelValue": (a) => {
2079
+ fe(
2080
+ n,
2081
+ r,
2082
+ l,
2083
+ a,
2084
+ e,
2085
+ o,
2086
+ i
2087
+ );
2088
+ }
2089
+ }) };
2090
+ }
2091
+ const ta = /* @__PURE__ */ G({
1937
2092
  __name: "index",
1938
2093
  props: {
1939
2094
  unique: {},
@@ -1943,181 +2098,181 @@ const qs = /* @__PURE__ */ K({
1943
2098
  },
1944
2099
  emits: ["change"],
1945
2100
  setup(e, { emit: t }) {
1946
- const { t: n } = ue(), { backgroundColor1: r } = we(), i = e, o = t, l = B("20px"), a = B("56px"), u = B("200px"), s = kn({}), v = B({}), d = (y, c) => {
1947
- Ft(v, i.config, i.object), o("change", y, c);
2101
+ const { t: n } = ie(), { backgroundColor1: r } = me(), l = e, o = t, i = N("20px"), a = N("56px"), u = N("200px"), s = Fn({}), v = N({}), c = (y, p) => {
2102
+ qt(v, l.config, l.object), o("change", y, p);
1948
2103
  };
1949
- xe(
1950
- [() => i.config, () => i.object],
2104
+ be(
2105
+ [() => l.config, () => l.object],
1951
2106
  () => {
1952
- Ft(v, i.config, i.object, (y, c) => {
1953
- o("change", y, c);
2107
+ qt(v, l.config, l.object, (y, p) => {
2108
+ o("change", y, p);
1954
2109
  });
1955
2110
  },
1956
2111
  { immediate: !0 }
1957
2112
  );
1958
- const f = B(i.version);
1959
- es(f), xe(
1960
- () => i.version,
2113
+ const f = N(l.version);
2114
+ is(f), be(
2115
+ () => l.version,
1961
2116
  () => {
1962
- f.value = i.version;
2117
+ f.value = l.version;
1963
2118
  }
1964
2119
  );
1965
- const p = B(i.config);
1966
- ts(p), xe(
1967
- () => i.config,
2120
+ const d = N(l.config);
2121
+ ss(d), be(
2122
+ () => l.config,
1968
2123
  () => {
1969
- p.value = i.config;
2124
+ d.value = l.config;
1970
2125
  }
1971
2126
  );
1972
- const _ = B(i.object);
1973
- rs(_), xe(
1974
- () => i.object,
2127
+ const m = N(l.object);
2128
+ us(m), be(
2129
+ () => l.object,
1975
2130
  () => {
1976
- _.value = i.object;
2131
+ m.value = l.object;
1977
2132
  }
1978
- ), is(v), ss(d);
1979
- const A = B([]);
1980
- us(A);
1981
- const C = () => {
1982
- const { compGroups: y, comps: c } = Gn.app.activeApp, g = [];
1983
- y.forEach(({ id: m, name: b, position: O }) => {
1984
- const D = A.value.find((Q) => Q.id === m);
1985
- g.push({
1986
- id: m,
2133
+ ), fs(v), ps(c);
2134
+ const C = N([]);
2135
+ ms(C);
2136
+ const S = () => {
2137
+ const { compGroups: y, comps: p } = In.app.activeApp, h = [];
2138
+ y.forEach(({ id: g, name: T, position: U }) => {
2139
+ const D = C.value.find((te) => te.id === g);
2140
+ h.push({
2141
+ id: g,
1987
2142
  type: 0,
1988
- name: b,
1989
- position: O,
2143
+ name: T,
2144
+ position: U,
1990
2145
  collapse: (D == null ? void 0 : D.collapse) ?? !0
1991
2146
  });
1992
- }), c.forEach(({ id: m, groupid: b, name: O, position: D }) => {
1993
- g.push({ id: m, type: 1, name: O, position: D, group: b });
1994
- }), zl(g, !0), A.value = g;
2147
+ }), p.forEach(({ id: g, groupid: T, name: U, position: D }) => {
2148
+ h.push({ id: g, type: 1, name: U, position: D, group: T });
2149
+ }), Wi(h, !0), C.value = h;
1995
2150
  };
1996
- let P;
2151
+ let x;
1997
2152
  const $ = () => {
1998
- clearTimeout(P), P = window.setTimeout(() => {
1999
- C(), P && $();
2153
+ clearTimeout(x), x = window.setTimeout(() => {
2154
+ S(), x && $();
2000
2155
  }, 1e3);
2001
- }, x = () => {
2002
- clearTimeout(P), P = void 0;
2156
+ }, b = () => {
2157
+ clearTimeout(x), x = void 0;
2003
2158
  };
2004
- Nn(() => {
2159
+ Hn(() => {
2005
2160
  $();
2006
- }), Bn(() => {
2007
- x();
2161
+ }), Gn(() => {
2162
+ b();
2008
2163
  });
2009
- const { renderProp: T } = vs(v, a, u), { renderUiDummy: L } = ms(d), { renderUiStrInput: W } = hs(d), { renderUiNumInput: Ye } = $s(d), { renderUiSwitch: Tn } = ws(d), { renderUiSelect: Sn } = Ps(d), { renderUiColorPicker: wn } = Fs(d), { renderUiMultiTypes: An } = zs(d), { renderUiCompSelect: Cn } = Ns(d), De = (y, c, g, m, b, O) => (y = an(y), b !== void 0 ? (y.push(b), O && y.push(c.key)) : y.push(c.key), c.ui ? c.array && m ? On(y, c, g, m, b, O) : Mn(y, c, g, b, O) : c.array ? Pn(y, c, g, m, b, O) : xn(
2164
+ const { renderProp: P } = _s(v, a, u), { renderUiDummy: j } = bs(c), { renderUiStrInput: Q } = Ss(c), { renderUiNumInput: et } = Cs(c), { renderUiSwitch: Cn } = Os(c), { renderUiSelect: Pn } = Ms(c), { renderUiColorPicker: xn } = zs(c), { renderUiJsonObject: On } = ea(c), { renderUiMultiTypes: Vn } = Zs(c), { renderUiCompSelect: Un } = Gs(c), De = (y, p, h, g, T, U) => (y = dn(y), T !== void 0 ? (y.push(T), U && y.push(p.key)) : y.push(p.key), p.ui ? p.array && g ? jn(y, p, h, g, T, U) : Dn(y, p, h, T, U) : p.array ? Mn(y, p, h, g, T, U) : Ln(
2010
2165
  y,
2011
- c,
2166
+ p,
2167
+ h,
2012
2168
  g,
2013
- m,
2014
- b,
2015
- O
2016
- )), Pn = (y, c, g, m, b, O) => {
2017
- if (c.ui)
2018
- return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
2019
- if (!c.array)
2020
- return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
2021
- if (!m)
2022
- return console.assert(!1), h("div", "renderBranchArray branch must be valid");
2169
+ T,
2170
+ U
2171
+ )), Mn = (y, p, h, g, T, U) => {
2172
+ if (p.ui)
2173
+ return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
2174
+ if (!p.array)
2175
+ return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
2176
+ if (!g)
2177
+ return console.assert(!1), _("div", "renderBranchArray branch must be valid");
2023
2178
  let D;
2024
- b !== void 0 && !O ? (g[b] instanceof Array || (g[b] = k(c), d(y, g[c.key])), D = g[b]) : (g[c.key] instanceof Array || (g[c.key] = k(c), d(y, g[c.key])), D = g[c.key]);
2025
- let Q = n(c.name);
2026
- m.collapse && be(v.value, y) && (Q += " *");
2027
- const Ae = h(Be, {
2028
- title: Q,
2029
- collapse: m.collapse,
2179
+ T !== void 0 && !U ? (h[T] instanceof Array || (h[T] = R(p), c(y, h[p.key])), D = h[T]) : (h[p.key] instanceof Array || (h[p.key] = R(p), c(y, h[p.key])), D = h[p.key]);
2180
+ let te = n(p.name);
2181
+ g.collapse && Te(v.value, y) && (te += " *");
2182
+ const Ce = _(Be, {
2183
+ title: te,
2184
+ collapse: g.collapse,
2030
2185
  hasCreate: !0,
2031
- onCollapse: (S) => {
2032
- m.collapse = S;
2186
+ onCollapse: (O) => {
2187
+ g.collapse = O;
2033
2188
  },
2034
- onMenu: (S, j) => {
2035
- _e.emit("propTreeMenu", { x: S, y: j, keys: y });
2189
+ onMenu: (O, E) => {
2190
+ $e.emit("propTreeMenu", { x: O, y: E, keys: y });
2036
2191
  },
2037
2192
  onCreate: () => {
2038
- D.push({}), d(y, D);
2193
+ D.push({}), c(y, D);
2039
2194
  }
2040
- }), G = h(
2195
+ }), q = _(
2041
2196
  "div",
2042
2197
  {
2043
2198
  style: {
2044
- paddingLeft: l.value
2199
+ paddingLeft: i.value
2045
2200
  }
2046
2201
  },
2047
2202
  (() => {
2048
- const S = [];
2049
- for (let j = 0; j < D.length; j++) {
2050
- if (!nt(m.children)) {
2203
+ const O = [];
2204
+ for (let E = 0; E < D.length; E++) {
2205
+ if (!ot(g.children)) {
2051
2206
  console.assert(!1);
2052
2207
  break;
2053
2208
  }
2054
- m.children[j] || m.children.push({
2209
+ g.children[E] || g.children.push({
2055
2210
  collapse: !0,
2056
2211
  children: {}
2057
2212
  });
2058
- const je = [...y, j], Ee = m.children[j];
2059
- let vt = `[${j + 1}]`;
2060
- m.children[j].collapse && be(v.value, je) && (vt += " *");
2061
- const Un = h(Be, {
2062
- title: vt,
2063
- collapse: m.children[j].collapse,
2213
+ const ke = [...y, E], Ee = g.children[E];
2214
+ let ht = `[${E + 1}]`;
2215
+ g.children[E].collapse && Te(v.value, ke) && (ht += " *");
2216
+ const En = _(Be, {
2217
+ title: ht,
2218
+ collapse: g.children[E].collapse,
2064
2219
  hasDelete: !0,
2065
- index: j,
2066
- onCollapse: (ee) => {
2067
- if (!nt(m.children)) {
2220
+ index: E,
2221
+ onCollapse: (ne) => {
2222
+ if (!ot(g.children)) {
2068
2223
  console.assert(!1);
2069
2224
  return;
2070
2225
  }
2071
- m.children[j].collapse = ee;
2226
+ g.children[E].collapse = ne;
2072
2227
  },
2073
- onMenu: (ee, fe) => {
2074
- _e.emit("propTreeMenu", { x: ee, y: fe, keys: je });
2228
+ onMenu: (ne, de) => {
2229
+ $e.emit("propTreeMenu", { x: ne, y: de, keys: ke });
2075
2230
  },
2076
- onDelete: (ee) => {
2077
- if (!nt(m.children)) {
2231
+ onDelete: (ne) => {
2232
+ if (!ot(g.children)) {
2078
2233
  console.assert(!1);
2079
2234
  return;
2080
2235
  }
2081
- m.children.splice(ee, 1), D.splice(ee, 1), d(y, D);
2236
+ g.children.splice(ne, 1), D.splice(ne, 1), c(y, D);
2082
2237
  }
2083
2238
  });
2084
- S.push(Un);
2085
- const Ln = h(
2239
+ O.push(En);
2240
+ const Nn = _(
2086
2241
  "div",
2087
2242
  {
2088
2243
  style: {
2089
- paddingLeft: l.value
2244
+ paddingLeft: i.value
2090
2245
  }
2091
2246
  },
2092
2247
  (() => {
2093
- const ee = [];
2094
- return c.children.forEach((fe) => {
2095
- if (!Rt(Ee.children)) {
2248
+ const ne = [];
2249
+ return p.children.forEach((de) => {
2250
+ if (!Kt(Ee.children)) {
2096
2251
  console.assert(!1);
2097
2252
  return;
2098
2253
  }
2099
- Ee.children[fe.key] || (Ee.children[fe.key] = {
2254
+ Ee.children[de.key] || (Ee.children[de.key] = {
2100
2255
  collapse: !0,
2101
- children: fe.array ? [] : {}
2256
+ children: de.array ? [] : {}
2102
2257
  });
2103
- const Dn = De(
2258
+ const Rn = De(
2104
2259
  y,
2105
- fe,
2106
- D[j],
2107
- Ee.children[fe.key],
2108
- j,
2260
+ de,
2261
+ D[E],
2262
+ Ee.children[de.key],
2263
+ E,
2109
2264
  !0
2110
2265
  );
2111
- ee.push(Dn);
2112
- }), ee;
2266
+ ne.push(Rn);
2267
+ }), ne;
2113
2268
  })()
2114
2269
  );
2115
- m.children[j].collapse || S.push(Ln);
2270
+ g.children[E].collapse || O.push(Nn);
2116
2271
  }
2117
- return S;
2272
+ return O;
2118
2273
  })()
2119
2274
  );
2120
- return h(
2275
+ return _(
2121
2276
  "div",
2122
2277
  {
2123
2278
  style: {
@@ -2125,61 +2280,61 @@ const qs = /* @__PURE__ */ K({
2125
2280
  }
2126
2281
  },
2127
2282
  (() => {
2128
- const S = [];
2129
- return S.push(Ae), m.collapse || S.push(G), S;
2283
+ const O = [];
2284
+ return O.push(Ce), g.collapse || O.push(q), O;
2130
2285
  })()
2131
2286
  );
2132
- }, xn = (y, c, g, m, b, O) => {
2133
- if (c.ui)
2134
- return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
2135
- if (c.array)
2136
- return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
2137
- if (!m)
2138
- return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
2139
- let D = n(c.name);
2140
- m.collapse && be(v.value, y) && (D += " *");
2141
- const Q = h(Be, {
2287
+ }, Ln = (y, p, h, g, T, U) => {
2288
+ if (p.ui)
2289
+ return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2290
+ if (p.array)
2291
+ return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
2292
+ if (!g)
2293
+ return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2294
+ let D = n(p.name);
2295
+ g.collapse && Te(v.value, y) && (D += " *");
2296
+ const te = _(Be, {
2142
2297
  title: D,
2143
- collapse: m.collapse,
2144
- hasDelete: b !== void 0 && !O,
2145
- onCollapse: (G) => {
2146
- m.collapse = G;
2298
+ collapse: g.collapse,
2299
+ hasDelete: T !== void 0 && !U,
2300
+ onCollapse: (q) => {
2301
+ g.collapse = q;
2147
2302
  },
2148
- onMenu: (G, S) => {
2149
- _e.emit("propTreeMenu", { x: G, y: S, keys: y });
2303
+ onMenu: (q, O) => {
2304
+ $e.emit("propTreeMenu", { x: q, y: O, keys: y });
2150
2305
  },
2151
2306
  onDelete: () => {
2152
- b === void 0 || O || (g.splice(b, 1), d(y.slice(0, -1), g));
2307
+ T === void 0 || U || (h.splice(T, 1), c(y.slice(0, -1), h));
2153
2308
  }
2154
- }), Ae = h(
2309
+ }), Ce = _(
2155
2310
  "div",
2156
2311
  {
2157
2312
  style: {
2158
- paddingLeft: l.value
2313
+ paddingLeft: i.value
2159
2314
  }
2160
2315
  },
2161
2316
  (() => {
2162
- const G = [];
2163
- return c.children.forEach((S) => {
2164
- if (!Rt(m.children)) {
2317
+ const q = [];
2318
+ return p.children.forEach((O) => {
2319
+ if (!Kt(g.children)) {
2165
2320
  console.assert(!1);
2166
2321
  return;
2167
2322
  }
2168
- m.children[S.key] || (m.children[S.key] = {
2323
+ g.children[O.key] || (g.children[O.key] = {
2169
2324
  collapse: !0,
2170
- children: !S.ui && S.array ? [] : {}
2325
+ children: !O.ui && O.array ? [] : {}
2171
2326
  });
2172
- const j = De(
2327
+ const E = De(
2173
2328
  y,
2174
- S,
2175
- (typeof g[c.key] != "object" && (g[c.key] = {}, d(y, g[c.key])), g[c.key]),
2176
- m.children[S.key]
2329
+ O,
2330
+ (typeof h[p.key] != "object" && (h[p.key] = {}, c(y, h[p.key])), h[p.key]),
2331
+ g.children[O.key]
2177
2332
  );
2178
- G.push(j);
2179
- }), G;
2333
+ q.push(E);
2334
+ }), q;
2180
2335
  })()
2181
2336
  );
2182
- return h(
2337
+ return _(
2183
2338
  "div",
2184
2339
  {
2185
2340
  style: {
@@ -2187,51 +2342,51 @@ const qs = /* @__PURE__ */ K({
2187
2342
  }
2188
2343
  },
2189
2344
  (() => {
2190
- const G = [];
2191
- return G.push(Q), m.collapse || G.push(Ae), G;
2345
+ const q = [];
2346
+ return q.push(te), g.collapse || q.push(Ce), q;
2192
2347
  })()
2193
2348
  );
2194
- }, On = (y, c, g, m, b, O) => {
2195
- if (!c.ui)
2196
- return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
2197
- if (!c.array)
2198
- return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
2199
- if (!m)
2200
- return console.assert(!1), h("div", "renderLeafArray branch must be valid");
2349
+ }, jn = (y, p, h, g, T, U) => {
2350
+ if (!p.ui)
2351
+ return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2352
+ if (!p.array)
2353
+ return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
2354
+ if (!g)
2355
+ return console.assert(!1), _("div", "renderLeafArray branch must be valid");
2201
2356
  let D;
2202
- b !== void 0 && !O ? (g[b] instanceof Array || (g[b] = k(c), d(y, g[b])), D = g[b]) : (g[c.key] instanceof Array || (g[c.key] = k(c), d(y, g[c.key])), D = g[c.key]);
2203
- let Q = n(c.name);
2204
- m.collapse && be(v.value, y) && (Q += " *");
2205
- const Ae = h(Be, {
2206
- title: Q,
2207
- collapse: m.collapse,
2357
+ T !== void 0 && !U ? (h[T] instanceof Array || (h[T] = R(p), c(y, h[T])), D = h[T]) : (h[p.key] instanceof Array || (h[p.key] = R(p), c(y, h[p.key])), D = h[p.key]);
2358
+ let te = n(p.name);
2359
+ g.collapse && Te(v.value, y) && (te += " *");
2360
+ const Ce = _(Be, {
2361
+ title: te,
2362
+ collapse: g.collapse,
2208
2363
  hasCreate: !0,
2209
- onCollapse: (S) => {
2210
- m.collapse = S;
2364
+ onCollapse: (O) => {
2365
+ g.collapse = O;
2211
2366
  },
2212
- onMenu: (S, j) => {
2213
- _e.emit("propTreeMenu", { x: S, y: j, keys: y });
2367
+ onMenu: (O, E) => {
2368
+ $e.emit("propTreeMenu", { x: O, y: E, keys: y });
2214
2369
  },
2215
2370
  onCreate: () => {
2216
- D.push(k(c, !0)), d(y, D);
2371
+ D.push(R(p, !0)), c(y, D);
2217
2372
  }
2218
- }), G = h(
2373
+ }), q = _(
2219
2374
  "div",
2220
2375
  {
2221
2376
  style: {
2222
- paddingLeft: l.value
2377
+ paddingLeft: i.value
2223
2378
  }
2224
2379
  },
2225
2380
  (() => {
2226
- const S = [];
2227
- for (let j = 0; j < D.length; j++) {
2228
- const je = De(y, c, D, void 0, j, !1);
2229
- S.push(je);
2381
+ const O = [];
2382
+ for (let E = 0; E < D.length; E++) {
2383
+ const ke = De(y, p, D, void 0, E, !1);
2384
+ O.push(ke);
2230
2385
  }
2231
- return S;
2386
+ return O;
2232
2387
  })()
2233
2388
  );
2234
- return h(
2389
+ return _(
2235
2390
  "div",
2236
2391
  {
2237
2392
  style: {
@@ -2239,16 +2394,16 @@ const qs = /* @__PURE__ */ K({
2239
2394
  }
2240
2395
  },
2241
2396
  (() => {
2242
- const S = [];
2243
- return S.push(Ae), m.collapse || S.push(G), S;
2397
+ const O = [];
2398
+ return O.push(Ce), g.collapse || O.push(q), O;
2244
2399
  })()
2245
2400
  );
2246
- }, Mn = (y, c, g, m, b) => {
2247
- if (!c.ui)
2248
- return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
2249
- let O;
2250
- return c.ui === "dummy" ? O = L(y, c, g, m, b) : c.ui === "strInput" ? O = W(y, c, g, m, b) : c.ui === "numInput" ? O = Ye(y, c, g, m, b) : c.ui === "switch" ? O = Tn(y, c, g, m, b) : c.ui === "select" ? O = Sn(y, c, g, m, b) : c.ui === "colorPicker" ? O = wn(y, c, g, m, b) : c.ui === "multiTypes" ? O = An(y, c, g, m, b) : c.ui === "compSelect" ? O = Cn(y, c, g, m, b) : console.assert(!1, "renderLeafScalar not implemented"), O ? T(y, c, O) : h("div");
2251
- }, Vn = () => h(
2401
+ }, Dn = (y, p, h, g, T) => {
2402
+ if (!p.ui)
2403
+ return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
2404
+ let U;
2405
+ return p.ui === "dummy" ? U = j(y, p, h, g, T) : p.ui === "strInput" ? U = Q(y, p, h, g, T) : p.ui === "numInput" ? U = et(y, p, h, g, T) : p.ui === "switch" ? U = Cn(y, p, h, g, T) : p.ui === "select" ? U = Pn(y, p, h, g, T) : p.ui === "colorPicker" ? U = xn(y, p, h, g, T) : p.ui === "jsonObject" ? U = On(y, p, h, g, T) : p.ui === "multiTypes" ? U = Vn(y, p, h, g, T) : p.ui === "compSelect" ? U = Un(y, p, h, g, T) : console.assert(!1, "renderLeafScalar not implemented"), U ? P(y, p, U) : _("div");
2406
+ }, kn = () => _(
2252
2407
  "div",
2253
2408
  {
2254
2409
  class: "text-body-2",
@@ -2258,35 +2413,35 @@ const qs = /* @__PURE__ */ K({
2258
2413
  },
2259
2414
  (() => {
2260
2415
  const y = [];
2261
- if (i.unique && i.config.length > 0 && i.object) {
2262
- s[i.unique] || (s[i.unique] = {});
2263
- const c = s[i.unique];
2264
- i.config.forEach((g) => {
2265
- c[g.key] || (c[g.key] = {
2416
+ if (l.unique && l.config.length > 0 && l.object) {
2417
+ s[l.unique] || (s[l.unique] = {});
2418
+ const p = s[l.unique];
2419
+ l.config.forEach((h) => {
2420
+ p[h.key] || (p[h.key] = {
2266
2421
  collapse: !0,
2267
- children: !g.ui && g.array ? [] : {}
2422
+ children: !h.ui && h.array ? [] : {}
2268
2423
  });
2269
- const m = De([], g, i.object, c[g.key]);
2270
- y.push(m);
2424
+ const g = De([], h, l.object, p[h.key]);
2425
+ y.push(g);
2271
2426
  });
2272
2427
  }
2273
2428
  return y;
2274
2429
  })()
2275
2430
  );
2276
- return (y, c) => (w(), H(He, null, [
2277
- N(Vn),
2278
- N(cs, {
2279
- config: i.config,
2280
- object: i.object,
2431
+ return (y, p) => (A(), K(He, null, [
2432
+ k(kn),
2433
+ k(gs, {
2434
+ config: l.config,
2435
+ object: l.object,
2281
2436
  "prop-states": v.value
2282
2437
  }, null, 8, ["config", "object", "prop-states"])
2283
2438
  ], 64));
2284
2439
  }
2285
- }), Is = (e) => {
2286
- e.component("XPropTree", qs);
2287
- }, Xs = (e, t, n) => {
2440
+ }), na = (e) => {
2441
+ e.component("XPropTree", ta);
2442
+ }, ra = (e, t, n) => {
2288
2443
  const r = e[t];
2289
- return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((i, o) => {
2444
+ return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, o) => {
2290
2445
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
2291
2446
  o.bind(
2292
2447
  null,
@@ -2297,11 +2452,11 @@ const qs = /* @__PURE__ */ K({
2297
2452
  );
2298
2453
  });
2299
2454
  };
2300
- async function ta(e) {
2301
- return (await Xs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-g2bvdvq4.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-enket0x3.js") }), `./locales/${e}/index.ts`, 4)).default;
2455
+ async function fa(e) {
2456
+ return (await ra(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-hr18mfah.js") }), `./locales/${e}/index.ts`, 4)).default;
2302
2457
  }
2303
- const na = { install: Is };
2458
+ const da = { install: na };
2304
2459
  export {
2305
- na as default,
2306
- ta as loadLocaleMessagePropTree
2460
+ da as default,
2461
+ fa as loadLocaleMessagePropTree
2307
2462
  };