@harbor-design/proform 1.3.25 → 1.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1209 -858
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,8 +1,673 @@
1
- var Te = Object.defineProperty;
2
- var ze = (r, e, t) => e in r ? Te(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var u = (r, e, t) => (ze(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { ref as z, readonly as Pe, nextTick as S, isRef as q, watch as _, isReactive as U, toRaw as x, reactive as K, createVNode as m, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as He } from "vue";
5
- class o {
1
+ var Xt = Object.defineProperty;
2
+ var Zt = (t, e, r) => e in t ? Xt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var f = (t, e, r) => (Zt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import { ref as te, readonly as Ye, nextTick as M, isRef as J, watch as $, isReactive as Q, toRaw as z, reactive as ue, createVNode as _, mergeProps as X, withDirectives as Jt, vShow as Qt, createTextVNode as kt, isVNode as er, defineComponent as tr } from "vue";
5
+ var vt = typeof global == "object" && global && global.Object === Object && global, rr = typeof self == "object" && self && self.Object === Object && self, C = vt || rr || Function("return this")(), x = C.Symbol, _t = Object.prototype, nr = _t.hasOwnProperty, ir = _t.toString, Y = x ? x.toStringTag : void 0;
6
+ function sr(t) {
7
+ var e = nr.call(t, Y), r = t[Y];
8
+ try {
9
+ t[Y] = void 0;
10
+ var n = !0;
11
+ } catch {
12
+ }
13
+ var i = ir.call(t);
14
+ return n && (e ? t[Y] = r : delete t[Y]), i;
15
+ }
16
+ var or = Object.prototype, ar = or.toString;
17
+ function ur(t) {
18
+ return ar.call(t);
19
+ }
20
+ var lr = "[object Null]", cr = "[object Undefined]", Xe = x ? x.toStringTag : void 0;
21
+ function B(t) {
22
+ return t == null ? t === void 0 ? cr : lr : Xe && Xe in Object(t) ? sr(t) : ur(t);
23
+ }
24
+ function G(t) {
25
+ return t != null && typeof t == "object";
26
+ }
27
+ var fr = "[object Symbol]";
28
+ function ve(t) {
29
+ return typeof t == "symbol" || G(t) && B(t) == fr;
30
+ }
31
+ function dr(t, e) {
32
+ for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; )
33
+ i[r] = e(t[r], r, t);
34
+ return i;
35
+ }
36
+ var K = Array.isArray, pr = 1 / 0, Ze = x ? x.prototype : void 0, Je = Ze ? Ze.toString : void 0;
37
+ function Pt(t) {
38
+ if (typeof t == "string")
39
+ return t;
40
+ if (K(t))
41
+ return dr(t, Pt) + "";
42
+ if (ve(t))
43
+ return Je ? Je.call(t) : "";
44
+ var e = t + "";
45
+ return e == "0" && 1 / t == -pr ? "-0" : e;
46
+ }
47
+ function R(t) {
48
+ var e = typeof t;
49
+ return t != null && (e == "object" || e == "function");
50
+ }
51
+ var hr = "[object AsyncFunction]", mr = "[object Function]", gr = "[object GeneratorFunction]", br = "[object Proxy]";
52
+ function jt(t) {
53
+ if (!R(t))
54
+ return !1;
55
+ var e = B(t);
56
+ return e == mr || e == gr || e == hr || e == br;
57
+ }
58
+ var le = C["__core-js_shared__"], Qe = function() {
59
+ var t = /[^.]+$/.exec(le && le.keys && le.keys.IE_PROTO || "");
60
+ return t ? "Symbol(src)_1." + t : "";
61
+ }();
62
+ function yr(t) {
63
+ return !!Qe && Qe in t;
64
+ }
65
+ var vr = Function.prototype, _r = vr.toString;
66
+ function U(t) {
67
+ if (t != null) {
68
+ try {
69
+ return _r.call(t);
70
+ } catch {
71
+ }
72
+ try {
73
+ return t + "";
74
+ } catch {
75
+ }
76
+ }
77
+ return "";
78
+ }
79
+ var Pr = /[\\^$.*+?()[\]{}|]/g, jr = /^\[object .+?Constructor\]$/, $r = Function.prototype, Ir = Object.prototype, Cr = $r.toString, Tr = Ir.hasOwnProperty, Or = RegExp(
80
+ "^" + Cr.call(Tr).replace(Pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
81
+ );
82
+ function wr(t) {
83
+ if (!R(t) || yr(t))
84
+ return !1;
85
+ var e = jt(t) ? Or : jr;
86
+ return e.test(U(t));
87
+ }
88
+ function Sr(t, e) {
89
+ return t == null ? void 0 : t[e];
90
+ }
91
+ function V(t, e) {
92
+ var r = Sr(t, e);
93
+ return wr(r) ? r : void 0;
94
+ }
95
+ var de = V(C, "WeakMap"), ke = Object.create, xr = /* @__PURE__ */ function() {
96
+ function t() {
97
+ }
98
+ return function(e) {
99
+ if (!R(e))
100
+ return {};
101
+ if (ke)
102
+ return ke(e);
103
+ t.prototype = e;
104
+ var r = new t();
105
+ return t.prototype = void 0, r;
106
+ };
107
+ }();
108
+ function Er(t, e) {
109
+ var r = -1, n = t.length;
110
+ for (e || (e = Array(n)); ++r < n; )
111
+ e[r] = t[r];
112
+ return e;
113
+ }
114
+ var et = function() {
115
+ try {
116
+ var t = V(Object, "defineProperty");
117
+ return t({}, "", {}), t;
118
+ } catch {
119
+ }
120
+ }();
121
+ function Fr(t, e) {
122
+ for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
123
+ ;
124
+ return t;
125
+ }
126
+ var Mr = 9007199254740991, Rr = /^(?:0|[1-9]\d*)$/;
127
+ function $t(t, e) {
128
+ var r = typeof t;
129
+ return e = e ?? Mr, !!e && (r == "number" || r != "symbol" && Rr.test(t)) && t > -1 && t % 1 == 0 && t < e;
130
+ }
131
+ function It(t, e, r) {
132
+ e == "__proto__" && et ? et(t, e, {
133
+ configurable: !0,
134
+ enumerable: !0,
135
+ value: r,
136
+ writable: !0
137
+ }) : t[e] = r;
138
+ }
139
+ function Ct(t, e) {
140
+ return t === e || t !== t && e !== e;
141
+ }
142
+ var Nr = Object.prototype, Ur = Nr.hasOwnProperty;
143
+ function _e(t, e, r) {
144
+ var n = t[e];
145
+ (!(Ur.call(t, e) && Ct(n, r)) || r === void 0 && !(e in t)) && It(t, e, r);
146
+ }
147
+ function se(t, e, r, n) {
148
+ var i = !r;
149
+ r || (r = {});
150
+ for (var s = -1, o = e.length; ++s < o; ) {
151
+ var a = e[s], l = n ? n(r[a], t[a], a, r, t) : void 0;
152
+ l === void 0 && (l = t[a]), i ? It(r, a, l) : _e(r, a, l);
153
+ }
154
+ return r;
155
+ }
156
+ var Vr = 9007199254740991;
157
+ function Tt(t) {
158
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Vr;
159
+ }
160
+ function Ot(t) {
161
+ return t != null && Tt(t.length) && !jt(t);
162
+ }
163
+ var Ar = Object.prototype;
164
+ function Pe(t) {
165
+ var e = t && t.constructor, r = typeof e == "function" && e.prototype || Ar;
166
+ return t === r;
167
+ }
168
+ function Lr(t, e) {
169
+ for (var r = -1, n = Array(t); ++r < t; )
170
+ n[r] = e(r);
171
+ return n;
172
+ }
173
+ var qr = "[object Arguments]";
174
+ function tt(t) {
175
+ return G(t) && B(t) == qr;
176
+ }
177
+ var wt = Object.prototype, zr = wt.hasOwnProperty, Dr = wt.propertyIsEnumerable, Br = tt(/* @__PURE__ */ function() {
178
+ return arguments;
179
+ }()) ? tt : function(t) {
180
+ return G(t) && zr.call(t, "callee") && !Dr.call(t, "callee");
181
+ };
182
+ function Gr() {
183
+ return !1;
184
+ }
185
+ var St = typeof exports == "object" && exports && !exports.nodeType && exports, rt = St && typeof module == "object" && module && !module.nodeType && module, Kr = rt && rt.exports === St, nt = Kr ? C.Buffer : void 0, Hr = nt ? nt.isBuffer : void 0, xt = Hr || Gr, Wr = "[object Arguments]", Yr = "[object Array]", Xr = "[object Boolean]", Zr = "[object Date]", Jr = "[object Error]", Qr = "[object Function]", kr = "[object Map]", en = "[object Number]", tn = "[object Object]", rn = "[object RegExp]", nn = "[object Set]", sn = "[object String]", on = "[object WeakMap]", an = "[object ArrayBuffer]", un = "[object DataView]", ln = "[object Float32Array]", cn = "[object Float64Array]", fn = "[object Int8Array]", dn = "[object Int16Array]", pn = "[object Int32Array]", hn = "[object Uint8Array]", mn = "[object Uint8ClampedArray]", gn = "[object Uint16Array]", bn = "[object Uint32Array]", g = {};
186
+ g[ln] = g[cn] = g[fn] = g[dn] = g[pn] = g[hn] = g[mn] = g[gn] = g[bn] = !0;
187
+ g[Wr] = g[Yr] = g[an] = g[Xr] = g[un] = g[Zr] = g[Jr] = g[Qr] = g[kr] = g[en] = g[tn] = g[rn] = g[nn] = g[sn] = g[on] = !1;
188
+ function yn(t) {
189
+ return G(t) && Tt(t.length) && !!g[B(t)];
190
+ }
191
+ function je(t) {
192
+ return function(e) {
193
+ return t(e);
194
+ };
195
+ }
196
+ var Et = typeof exports == "object" && exports && !exports.nodeType && exports, Z = Et && typeof module == "object" && module && !module.nodeType && module, vn = Z && Z.exports === Et, ce = vn && vt.process, D = function() {
197
+ try {
198
+ var t = Z && Z.require && Z.require("util").types;
199
+ return t || ce && ce.binding && ce.binding("util");
200
+ } catch {
201
+ }
202
+ }(), it = D && D.isTypedArray, _n = it ? je(it) : yn, Pn = Object.prototype, jn = Pn.hasOwnProperty;
203
+ function Ft(t, e) {
204
+ var r = K(t), n = !r && Br(t), i = !r && !n && xt(t), s = !r && !n && !i && _n(t), o = r || n || i || s, a = o ? Lr(t.length, String) : [], l = a.length;
205
+ for (var c in t)
206
+ (e || jn.call(t, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
207
+ (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
208
+ i && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
209
+ s && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
210
+ $t(c, l))) && a.push(c);
211
+ return a;
212
+ }
213
+ function Mt(t, e) {
214
+ return function(r) {
215
+ return t(e(r));
216
+ };
217
+ }
218
+ var $n = Mt(Object.keys, Object), In = Object.prototype, Cn = In.hasOwnProperty;
219
+ function Tn(t) {
220
+ if (!Pe(t))
221
+ return $n(t);
222
+ var e = [];
223
+ for (var r in Object(t))
224
+ Cn.call(t, r) && r != "constructor" && e.push(r);
225
+ return e;
226
+ }
227
+ function $e(t) {
228
+ return Ot(t) ? Ft(t) : Tn(t);
229
+ }
230
+ function On(t) {
231
+ var e = [];
232
+ if (t != null)
233
+ for (var r in Object(t))
234
+ e.push(r);
235
+ return e;
236
+ }
237
+ var wn = Object.prototype, Sn = wn.hasOwnProperty;
238
+ function xn(t) {
239
+ if (!R(t))
240
+ return On(t);
241
+ var e = Pe(t), r = [];
242
+ for (var n in t)
243
+ n == "constructor" && (e || !Sn.call(t, n)) || r.push(n);
244
+ return r;
245
+ }
246
+ function Ie(t) {
247
+ return Ot(t) ? Ft(t, !0) : xn(t);
248
+ }
249
+ var En = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Fn = /^\w*$/;
250
+ function Mn(t, e) {
251
+ if (K(t))
252
+ return !1;
253
+ var r = typeof t;
254
+ return r == "number" || r == "symbol" || r == "boolean" || t == null || ve(t) ? !0 : Fn.test(t) || !En.test(t) || e != null && t in Object(e);
255
+ }
256
+ var k = V(Object, "create");
257
+ function Rn() {
258
+ this.__data__ = k ? k(null) : {}, this.size = 0;
259
+ }
260
+ function Nn(t) {
261
+ var e = this.has(t) && delete this.__data__[t];
262
+ return this.size -= e ? 1 : 0, e;
263
+ }
264
+ var Un = "__lodash_hash_undefined__", Vn = Object.prototype, An = Vn.hasOwnProperty;
265
+ function Ln(t) {
266
+ var e = this.__data__;
267
+ if (k) {
268
+ var r = e[t];
269
+ return r === Un ? void 0 : r;
270
+ }
271
+ return An.call(e, t) ? e[t] : void 0;
272
+ }
273
+ var qn = Object.prototype, zn = qn.hasOwnProperty;
274
+ function Dn(t) {
275
+ var e = this.__data__;
276
+ return k ? e[t] !== void 0 : zn.call(e, t);
277
+ }
278
+ var Bn = "__lodash_hash_undefined__";
279
+ function Gn(t, e) {
280
+ var r = this.__data__;
281
+ return this.size += this.has(t) ? 0 : 1, r[t] = k && e === void 0 ? Bn : e, this;
282
+ }
283
+ function N(t) {
284
+ var e = -1, r = t == null ? 0 : t.length;
285
+ for (this.clear(); ++e < r; ) {
286
+ var n = t[e];
287
+ this.set(n[0], n[1]);
288
+ }
289
+ }
290
+ N.prototype.clear = Rn;
291
+ N.prototype.delete = Nn;
292
+ N.prototype.get = Ln;
293
+ N.prototype.has = Dn;
294
+ N.prototype.set = Gn;
295
+ function Kn() {
296
+ this.__data__ = [], this.size = 0;
297
+ }
298
+ function oe(t, e) {
299
+ for (var r = t.length; r--; )
300
+ if (Ct(t[r][0], e))
301
+ return r;
302
+ return -1;
303
+ }
304
+ var Hn = Array.prototype, Wn = Hn.splice;
305
+ function Yn(t) {
306
+ var e = this.__data__, r = oe(e, t);
307
+ if (r < 0)
308
+ return !1;
309
+ var n = e.length - 1;
310
+ return r == n ? e.pop() : Wn.call(e, r, 1), --this.size, !0;
311
+ }
312
+ function Xn(t) {
313
+ var e = this.__data__, r = oe(e, t);
314
+ return r < 0 ? void 0 : e[r][1];
315
+ }
316
+ function Zn(t) {
317
+ return oe(this.__data__, t) > -1;
318
+ }
319
+ function Jn(t, e) {
320
+ var r = this.__data__, n = oe(r, t);
321
+ return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
322
+ }
323
+ function S(t) {
324
+ var e = -1, r = t == null ? 0 : t.length;
325
+ for (this.clear(); ++e < r; ) {
326
+ var n = t[e];
327
+ this.set(n[0], n[1]);
328
+ }
329
+ }
330
+ S.prototype.clear = Kn;
331
+ S.prototype.delete = Yn;
332
+ S.prototype.get = Xn;
333
+ S.prototype.has = Zn;
334
+ S.prototype.set = Jn;
335
+ var ee = V(C, "Map");
336
+ function Qn() {
337
+ this.size = 0, this.__data__ = {
338
+ hash: new N(),
339
+ map: new (ee || S)(),
340
+ string: new N()
341
+ };
342
+ }
343
+ function kn(t) {
344
+ var e = typeof t;
345
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
346
+ }
347
+ function ae(t, e) {
348
+ var r = t.__data__;
349
+ return kn(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
350
+ }
351
+ function ei(t) {
352
+ var e = ae(this, t).delete(t);
353
+ return this.size -= e ? 1 : 0, e;
354
+ }
355
+ function ti(t) {
356
+ return ae(this, t).get(t);
357
+ }
358
+ function ri(t) {
359
+ return ae(this, t).has(t);
360
+ }
361
+ function ni(t, e) {
362
+ var r = ae(this, t), n = r.size;
363
+ return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
364
+ }
365
+ function E(t) {
366
+ var e = -1, r = t == null ? 0 : t.length;
367
+ for (this.clear(); ++e < r; ) {
368
+ var n = t[e];
369
+ this.set(n[0], n[1]);
370
+ }
371
+ }
372
+ E.prototype.clear = Qn;
373
+ E.prototype.delete = ei;
374
+ E.prototype.get = ti;
375
+ E.prototype.has = ri;
376
+ E.prototype.set = ni;
377
+ var ii = "Expected a function";
378
+ function Ce(t, e) {
379
+ if (typeof t != "function" || e != null && typeof e != "function")
380
+ throw new TypeError(ii);
381
+ var r = function() {
382
+ var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache;
383
+ if (s.has(i))
384
+ return s.get(i);
385
+ var o = t.apply(this, n);
386
+ return r.cache = s.set(i, o) || s, o;
387
+ };
388
+ return r.cache = new (Ce.Cache || E)(), r;
389
+ }
390
+ Ce.Cache = E;
391
+ var si = 500;
392
+ function oi(t) {
393
+ var e = Ce(t, function(n) {
394
+ return r.size === si && r.clear(), n;
395
+ }), r = e.cache;
396
+ return e;
397
+ }
398
+ var ai = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ui = /\\(\\)?/g, li = oi(function(t) {
399
+ var e = [];
400
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace(ai, function(r, n, i, s) {
401
+ e.push(i ? s.replace(ui, "$1") : n || r);
402
+ }), e;
403
+ });
404
+ function ci(t) {
405
+ return t == null ? "" : Pt(t);
406
+ }
407
+ function Rt(t, e) {
408
+ return K(t) ? t : Mn(t, e) ? [t] : li(ci(t));
409
+ }
410
+ var fi = 1 / 0;
411
+ function Nt(t) {
412
+ if (typeof t == "string" || ve(t))
413
+ return t;
414
+ var e = t + "";
415
+ return e == "0" && 1 / t == -fi ? "-0" : e;
416
+ }
417
+ function di(t, e) {
418
+ e = Rt(e, t);
419
+ for (var r = 0, n = e.length; t != null && r < n; )
420
+ t = t[Nt(e[r++])];
421
+ return r && r == n ? t : void 0;
422
+ }
423
+ function re(t, e, r) {
424
+ var n = t == null ? void 0 : di(t, e);
425
+ return n === void 0 ? r : n;
426
+ }
427
+ function Ut(t, e) {
428
+ for (var r = -1, n = e.length, i = t.length; ++r < n; )
429
+ t[i + r] = e[r];
430
+ return t;
431
+ }
432
+ var pi = Mt(Object.getPrototypeOf, Object);
433
+ const Vt = pi;
434
+ function hi() {
435
+ this.__data__ = new S(), this.size = 0;
436
+ }
437
+ function mi(t) {
438
+ var e = this.__data__, r = e.delete(t);
439
+ return this.size = e.size, r;
440
+ }
441
+ function gi(t) {
442
+ return this.__data__.get(t);
443
+ }
444
+ function bi(t) {
445
+ return this.__data__.has(t);
446
+ }
447
+ var yi = 200;
448
+ function vi(t, e) {
449
+ var r = this.__data__;
450
+ if (r instanceof S) {
451
+ var n = r.__data__;
452
+ if (!ee || n.length < yi - 1)
453
+ return n.push([t, e]), this.size = ++r.size, this;
454
+ r = this.__data__ = new E(n);
455
+ }
456
+ return r.set(t, e), this.size = r.size, this;
457
+ }
458
+ function H(t) {
459
+ var e = this.__data__ = new S(t);
460
+ this.size = e.size;
461
+ }
462
+ H.prototype.clear = hi;
463
+ H.prototype.delete = mi;
464
+ H.prototype.get = gi;
465
+ H.prototype.has = bi;
466
+ H.prototype.set = vi;
467
+ function _i(t, e) {
468
+ return t && se(e, $e(e), t);
469
+ }
470
+ function Pi(t, e) {
471
+ return t && se(e, Ie(e), t);
472
+ }
473
+ var At = typeof exports == "object" && exports && !exports.nodeType && exports, st = At && typeof module == "object" && module && !module.nodeType && module, ji = st && st.exports === At, ot = ji ? C.Buffer : void 0, at = ot ? ot.allocUnsafe : void 0;
474
+ function $i(t, e) {
475
+ if (e)
476
+ return t.slice();
477
+ var r = t.length, n = at ? at(r) : new t.constructor(r);
478
+ return t.copy(n), n;
479
+ }
480
+ function Ii(t, e) {
481
+ for (var r = -1, n = t == null ? 0 : t.length, i = 0, s = []; ++r < n; ) {
482
+ var o = t[r];
483
+ e(o, r, t) && (s[i++] = o);
484
+ }
485
+ return s;
486
+ }
487
+ function Lt() {
488
+ return [];
489
+ }
490
+ var Ci = Object.prototype, Ti = Ci.propertyIsEnumerable, ut = Object.getOwnPropertySymbols, Te = ut ? function(t) {
491
+ return t == null ? [] : (t = Object(t), Ii(ut(t), function(e) {
492
+ return Ti.call(t, e);
493
+ }));
494
+ } : Lt;
495
+ function Oi(t, e) {
496
+ return se(t, Te(t), e);
497
+ }
498
+ var wi = Object.getOwnPropertySymbols, qt = wi ? function(t) {
499
+ for (var e = []; t; )
500
+ Ut(e, Te(t)), t = Vt(t);
501
+ return e;
502
+ } : Lt;
503
+ function Si(t, e) {
504
+ return se(t, qt(t), e);
505
+ }
506
+ function zt(t, e, r) {
507
+ var n = e(t);
508
+ return K(t) ? n : Ut(n, r(t));
509
+ }
510
+ function xi(t) {
511
+ return zt(t, $e, Te);
512
+ }
513
+ function Ei(t) {
514
+ return zt(t, Ie, qt);
515
+ }
516
+ var pe = V(C, "DataView"), he = V(C, "Promise"), me = V(C, "Set"), lt = "[object Map]", Fi = "[object Object]", ct = "[object Promise]", ft = "[object Set]", dt = "[object WeakMap]", pt = "[object DataView]", Mi = U(pe), Ri = U(ee), Ni = U(he), Ui = U(me), Vi = U(de), F = B;
517
+ (pe && F(new pe(new ArrayBuffer(1))) != pt || ee && F(new ee()) != lt || he && F(he.resolve()) != ct || me && F(new me()) != ft || de && F(new de()) != dt) && (F = function(t) {
518
+ var e = B(t), r = e == Fi ? t.constructor : void 0, n = r ? U(r) : "";
519
+ if (n)
520
+ switch (n) {
521
+ case Mi:
522
+ return pt;
523
+ case Ri:
524
+ return lt;
525
+ case Ni:
526
+ return ct;
527
+ case Ui:
528
+ return ft;
529
+ case Vi:
530
+ return dt;
531
+ }
532
+ return e;
533
+ });
534
+ const Oe = F;
535
+ var Ai = Object.prototype, Li = Ai.hasOwnProperty;
536
+ function qi(t) {
537
+ var e = t.length, r = new t.constructor(e);
538
+ return e && typeof t[0] == "string" && Li.call(t, "index") && (r.index = t.index, r.input = t.input), r;
539
+ }
540
+ var ht = C.Uint8Array;
541
+ function we(t) {
542
+ var e = new t.constructor(t.byteLength);
543
+ return new ht(e).set(new ht(t)), e;
544
+ }
545
+ function zi(t, e) {
546
+ var r = e ? we(t.buffer) : t.buffer;
547
+ return new t.constructor(r, t.byteOffset, t.byteLength);
548
+ }
549
+ var Di = /\w*$/;
550
+ function Bi(t) {
551
+ var e = new t.constructor(t.source, Di.exec(t));
552
+ return e.lastIndex = t.lastIndex, e;
553
+ }
554
+ var mt = x ? x.prototype : void 0, gt = mt ? mt.valueOf : void 0;
555
+ function Gi(t) {
556
+ return gt ? Object(gt.call(t)) : {};
557
+ }
558
+ function Ki(t, e) {
559
+ var r = e ? we(t.buffer) : t.buffer;
560
+ return new t.constructor(r, t.byteOffset, t.length);
561
+ }
562
+ var Hi = "[object Boolean]", Wi = "[object Date]", Yi = "[object Map]", Xi = "[object Number]", Zi = "[object RegExp]", Ji = "[object Set]", Qi = "[object String]", ki = "[object Symbol]", es = "[object ArrayBuffer]", ts = "[object DataView]", rs = "[object Float32Array]", ns = "[object Float64Array]", is = "[object Int8Array]", ss = "[object Int16Array]", os = "[object Int32Array]", as = "[object Uint8Array]", us = "[object Uint8ClampedArray]", ls = "[object Uint16Array]", cs = "[object Uint32Array]";
563
+ function fs(t, e, r) {
564
+ var n = t.constructor;
565
+ switch (e) {
566
+ case es:
567
+ return we(t);
568
+ case Hi:
569
+ case Wi:
570
+ return new n(+t);
571
+ case ts:
572
+ return zi(t, r);
573
+ case rs:
574
+ case ns:
575
+ case is:
576
+ case ss:
577
+ case os:
578
+ case as:
579
+ case us:
580
+ case ls:
581
+ case cs:
582
+ return Ki(t, r);
583
+ case Yi:
584
+ return new n();
585
+ case Xi:
586
+ case Qi:
587
+ return new n(t);
588
+ case Zi:
589
+ return Bi(t);
590
+ case Ji:
591
+ return new n();
592
+ case ki:
593
+ return Gi(t);
594
+ }
595
+ }
596
+ function ds(t) {
597
+ return typeof t.constructor == "function" && !Pe(t) ? xr(Vt(t)) : {};
598
+ }
599
+ var ps = "[object Map]";
600
+ function hs(t) {
601
+ return G(t) && Oe(t) == ps;
602
+ }
603
+ var bt = D && D.isMap, ms = bt ? je(bt) : hs, gs = "[object Set]";
604
+ function bs(t) {
605
+ return G(t) && Oe(t) == gs;
606
+ }
607
+ var yt = D && D.isSet, ys = yt ? je(yt) : bs, vs = 1, _s = 2, Ps = 4, Dt = "[object Arguments]", js = "[object Array]", $s = "[object Boolean]", Is = "[object Date]", Cs = "[object Error]", Bt = "[object Function]", Ts = "[object GeneratorFunction]", Os = "[object Map]", ws = "[object Number]", Gt = "[object Object]", Ss = "[object RegExp]", xs = "[object Set]", Es = "[object String]", Fs = "[object Symbol]", Ms = "[object WeakMap]", Rs = "[object ArrayBuffer]", Ns = "[object DataView]", Us = "[object Float32Array]", Vs = "[object Float64Array]", As = "[object Int8Array]", Ls = "[object Int16Array]", qs = "[object Int32Array]", zs = "[object Uint8Array]", Ds = "[object Uint8ClampedArray]", Bs = "[object Uint16Array]", Gs = "[object Uint32Array]", h = {};
608
+ h[Dt] = h[js] = h[Rs] = h[Ns] = h[$s] = h[Is] = h[Us] = h[Vs] = h[As] = h[Ls] = h[qs] = h[Os] = h[ws] = h[Gt] = h[Ss] = h[xs] = h[Es] = h[Fs] = h[zs] = h[Ds] = h[Bs] = h[Gs] = !0;
609
+ h[Cs] = h[Bt] = h[Ms] = !1;
610
+ function ne(t, e, r, n, i, s) {
611
+ var o, a = e & vs, l = e & _s, c = e & Ps;
612
+ if (r && (o = i ? r(t, n, i, s) : r(t)), o !== void 0)
613
+ return o;
614
+ if (!R(t))
615
+ return t;
616
+ var d = K(t);
617
+ if (d) {
618
+ if (o = qi(t), !a)
619
+ return Er(t, o);
620
+ } else {
621
+ var m = Oe(t), P = m == Bt || m == Ts;
622
+ if (xt(t))
623
+ return $i(t, a);
624
+ if (m == Gt || m == Dt || P && !i) {
625
+ if (o = l || P ? {} : ds(t), !a)
626
+ return l ? Si(t, Pi(o, t)) : Oi(t, _i(o, t));
627
+ } else {
628
+ if (!h[m])
629
+ return i ? t : {};
630
+ o = fs(t, m, a);
631
+ }
632
+ }
633
+ s || (s = new H());
634
+ var I = s.get(t);
635
+ if (I)
636
+ return I;
637
+ s.set(t, o), ys(t) ? t.forEach(function(v) {
638
+ o.add(ne(v, e, r, v, t, s));
639
+ }) : ms(t) && t.forEach(function(v, T) {
640
+ o.set(T, ne(v, e, r, T, t, s));
641
+ });
642
+ var j = c ? l ? Ei : xi : l ? Ie : $e, y = d ? void 0 : j(t);
643
+ return Fr(y || t, function(v, T) {
644
+ y && (T = v, v = t[T]), _e(o, T, ne(v, e, r, T, t, s));
645
+ }), o;
646
+ }
647
+ var Ks = 1, Hs = 4;
648
+ function A(t) {
649
+ return ne(t, Ks | Hs);
650
+ }
651
+ function Ws(t, e, r, n) {
652
+ if (!R(t))
653
+ return t;
654
+ e = Rt(e, t);
655
+ for (var i = -1, s = e.length, o = s - 1, a = t; a != null && ++i < s; ) {
656
+ var l = Nt(e[i]), c = r;
657
+ if (l === "__proto__" || l === "constructor" || l === "prototype")
658
+ return t;
659
+ if (i != o) {
660
+ var d = a[l];
661
+ c = n ? n(d, l, a) : void 0, c === void 0 && (c = R(d) ? d : $t(e[i + 1]) ? [] : {});
662
+ }
663
+ _e(a, l, c), a = a[l];
664
+ }
665
+ return t;
666
+ }
667
+ function ie(t, e, r) {
668
+ return t == null ? t : Ws(t, e, r);
669
+ }
670
+ class u {
6
671
  static typeChecker(e) {
7
672
  return {}.toString.call(e);
8
673
  }
@@ -50,17 +715,17 @@ class o {
50
715
  return !1;
51
716
  if (this.isObjectEmpty(e))
52
717
  return !0;
53
- for (const t in e) {
54
- if (t === "componentProps")
718
+ for (const r in e) {
719
+ if (r === "componentProps")
55
720
  return !1;
56
- if (e.hasOwnProperty(t) && this.isProcessInprogress(e[t]))
721
+ if (e.hasOwnProperty(r) && this.isProcessInprogress(e[r]))
57
722
  return !0;
58
723
  }
59
724
  } else if (this.isArray(e)) {
60
725
  if (this.isArrayEmpty(e))
61
726
  return !0;
62
- for (const t of e)
63
- if (this.isProcessInprogress(t))
727
+ for (const r of e)
728
+ if (this.isProcessInprogress(r))
64
729
  return !0;
65
730
  }
66
731
  return !1;
@@ -69,83 +734,83 @@ class o {
69
734
  return !!e.__proform_raw_object;
70
735
  }
71
736
  }
72
- function b(r, ...e) {
73
- return e.forEach((t) => {
74
- if (Array.isArray(t))
75
- Array.isArray(r) || (r = []), t.forEach((i, s) => {
76
- typeof i == "object" && i !== null ? r[s] = b(Array.isArray(i) ? [] : {}, i) : r[s] = i;
737
+ function b(t, ...e) {
738
+ return e.forEach((r) => {
739
+ if (Array.isArray(r))
740
+ Array.isArray(t) || (t = []), r.forEach((n, i) => {
741
+ typeof n == "object" && n !== null ? t[i] = b(Array.isArray(n) ? [] : {}, n) : t[i] = n;
77
742
  });
78
743
  else
79
- for (const i in t)
80
- t.hasOwnProperty(i) && (typeof t[i] == "object" && t[i] !== null ? r[i] = b(r[i] || {}, t[i]) : r[i] = t[i]);
81
- }), r;
744
+ for (const n in r)
745
+ r.hasOwnProperty(n) && (typeof r[n] == "object" && r[n] !== null ? t[n] = b(t[n] || {}, r[n]) : t[n] = r[n]);
746
+ }), t;
82
747
  }
83
- function P(r) {
748
+ function O(t) {
84
749
  const e = /* @__PURE__ */ new WeakMap();
85
- function t(i) {
86
- if (i === null || typeof i != "object")
87
- return i;
88
- if (i instanceof Date)
89
- return new Date(i);
90
- if (i instanceof RegExp)
91
- return new RegExp(i);
92
- if (i instanceof Map) {
93
- const n = /* @__PURE__ */ new Map();
94
- for (const [a, l] of i)
95
- n.set(t(a), t(l));
750
+ function r(n) {
751
+ if (n === null || typeof n != "object")
96
752
  return n;
753
+ if (n instanceof Date)
754
+ return new Date(n);
755
+ if (n instanceof RegExp)
756
+ return new RegExp(n);
757
+ if (n instanceof Map) {
758
+ const s = /* @__PURE__ */ new Map();
759
+ for (const [o, a] of n)
760
+ s.set(r(o), r(a));
761
+ return s;
97
762
  }
98
- if (i instanceof Set) {
99
- const n = /* @__PURE__ */ new Set();
100
- for (const a of i)
101
- n.add(t(a));
102
- return n;
763
+ if (n instanceof Set) {
764
+ const s = /* @__PURE__ */ new Set();
765
+ for (const o of n)
766
+ s.add(r(o));
767
+ return s;
103
768
  }
104
- if (e.has(i))
105
- return e.get(i);
106
- if (Array.isArray(i)) {
107
- const n = [];
108
- e.set(i, n);
109
- for (let a = 0; a < i.length; a++)
110
- n[a] = t(i[a]);
111
- return n;
769
+ if (e.has(n))
770
+ return e.get(n);
771
+ if (Array.isArray(n)) {
772
+ const s = [];
773
+ e.set(n, s);
774
+ for (let o = 0; o < n.length; o++)
775
+ s[o] = r(n[o]);
776
+ return s;
112
777
  }
113
- const s = Object.create(Object.getPrototypeOf(i));
114
- e.set(i, s);
115
- for (const n in i)
116
- i.hasOwnProperty(n) && (s[n] = t(i[n]));
117
- return s;
778
+ const i = Object.create(Object.getPrototypeOf(n));
779
+ e.set(n, i);
780
+ for (const s in n)
781
+ n.hasOwnProperty(s) && (i[s] = r(n[s]));
782
+ return i;
118
783
  }
119
- return t(r);
784
+ return r(t);
120
785
  }
121
- function Y(r, e) {
122
- return r.replace(/undefined/g, e);
786
+ function ge(t, e) {
787
+ return t.replace(/undefined/g, e);
123
788
  }
124
- class Ke {
789
+ class Ys {
125
790
  constructor(e) {
126
- u(this, "runtimeCore");
127
- u(this, "readonlyReactiveModel", z({}));
791
+ f(this, "runtimeCore");
792
+ f(this, "readonlyReactiveModel", te({}));
128
793
  this.formCustomization = e;
129
794
  }
130
795
  // happy path, 后续可以完善更多的 fallback 处理,fallback 处理是为了不卡住异步时的首次渲染做的优化
131
796
  cleanFallbackFields(e) {
132
- return e !== null && typeof e == "object" && (delete e.__yiwwhl_async_field_fallback, Object.values(e).forEach((t) => {
133
- this.cleanFallbackFields(t);
797
+ return e !== null && typeof e == "object" && (delete e.__yiwwhl_async_field_fallback, Object.values(e).forEach((r) => {
798
+ this.cleanFallbackFields(r);
134
799
  })), e;
135
800
  }
136
801
  setup(e) {
137
- return this.runtimeCore = e, this.readonlyReactiveModel.value = Pe(e.model.value), Object.assign(this.runtimeCore.native, this.formCustomization.native), Object.assign(this.runtimeCore.grid, this.formCustomization.grid), Object.assign(this.runtimeCore.runtime, this.formCustomization.runtime), this.formCustomization.ui && (this.runtimeCore.ui = this.formCustomization.ui), this.formCustomization;
802
+ return this.runtimeCore = e, this.readonlyReactiveModel.value = Ye(e.model.value), Object.assign(this.runtimeCore.native, this.formCustomization.native), Object.assign(this.runtimeCore.grid, this.formCustomization.grid), Object.assign(this.runtimeCore.runtime, this.formCustomization.runtime), this.formCustomization.ui && (this.runtimeCore.ui = this.formCustomization.ui), this.formCustomization;
138
803
  }
139
804
  submit() {
140
- var i;
141
- const e = (i = c.getPreset(this.runtimeCore.ui)) == null ? void 0 : i.adapter, t = C.adapters[c.getUI(this.runtimeCore.ui)];
142
- return (e == null ? void 0 : e.validateForm(this)) ?? (t == null ? void 0 : t.validateForm(this));
805
+ var n;
806
+ const e = (n = p.getPreset(this.runtimeCore.ui)) == null ? void 0 : n.adapter, r = w.adapters[p.getUI(this.runtimeCore.ui)];
807
+ return (e == null ? void 0 : e.validateForm(this)) ?? (r == null ? void 0 : r.validateForm(this));
143
808
  }
144
809
  hydrate(e) {
145
- S(() => {
810
+ M(() => {
146
811
  this.runtimeCore.hydrateEffect.trackEffect(
147
812
  () => {
148
- q(e) ? _(
813
+ J(e) ? $(
149
814
  () => e.value,
150
815
  () => {
151
816
  b(this.runtimeCore.model.value, e.value);
@@ -154,7 +819,7 @@ class Ke {
154
819
  deep: !0,
155
820
  immediate: !0
156
821
  }
157
- ) : U(e) ? _(
822
+ ) : Q(e) ? $(
158
823
  () => e,
159
824
  () => {
160
825
  b(this.runtimeCore.model.value, e);
@@ -172,45 +837,45 @@ class Ke {
172
837
  });
173
838
  }
174
839
  share(e) {
175
- S(() => {
176
- Object.keys(e).forEach((t) => {
177
- q(e[t]) ? _(
178
- () => e[t].value,
840
+ M(() => {
841
+ Object.keys(e).forEach((r) => {
842
+ J(e[r]) ? $(
843
+ () => e[r].value,
179
844
  () => {
180
- this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t].value : Object.assign(this.runtimeCore.shared, {
181
- [t]: e[t].value
845
+ this.runtimeCore.shared[r] ? this.runtimeCore.shared[r] = A(e[r].value) : b(this.runtimeCore.shared, {
846
+ [r]: A(e[r].value)
182
847
  });
183
848
  },
184
849
  {
185
850
  deep: !0,
186
851
  immediate: !0
187
852
  }
188
- ) : U(e[t]) ? _(
189
- () => e[t],
853
+ ) : Q(e[r]) ? $(
854
+ () => e[r],
190
855
  () => {
191
- this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t] : Object.assign(this.runtimeCore.shared, {
192
- [t]: e[t]
856
+ this.runtimeCore.shared[r] ? this.runtimeCore.shared[r] = A(e[r]) : b(this.runtimeCore.shared, {
857
+ [r]: A(e[r])
193
858
  });
194
859
  },
195
860
  {
196
861
  deep: !0,
197
862
  immediate: !0
198
863
  }
199
- ) : this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t] : Object.assign(this.runtimeCore.shared, {
200
- [t]: e[t]
864
+ ) : this.runtimeCore.shared[r] ? this.runtimeCore.shared[r] = A(e[r]) : b(this.runtimeCore.shared, {
865
+ [r]: A(e[r])
201
866
  });
202
867
  });
203
868
  });
204
869
  }
205
870
  subscribeModel(e) {
206
- S(() => {
207
- const t = _(
871
+ M(() => {
872
+ const r = $(
208
873
  () => this.readonlyReactiveModel.value,
209
- (i) => {
210
- e(i, {
874
+ (n) => {
875
+ e(n, {
211
876
  stopSubscribe() {
212
- S(() => {
213
- t();
877
+ M(() => {
878
+ r();
214
879
  });
215
880
  }
216
881
  });
@@ -224,17 +889,17 @@ class Ke {
224
889
  }
225
890
  resetModel() {
226
891
  var e;
227
- (e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = P(
892
+ (e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = O(
228
893
  this.runtimeCore.processor.stableModel
229
- ), this.readonlyReactiveModel.value = Pe(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
894
+ ), this.readonlyReactiveModel.value = Ye(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
230
895
  }
231
896
  }
232
- class Z {
897
+ class be {
233
898
  constructor() {
234
- u(this, "effects", /* @__PURE__ */ new Set());
235
- u(this, "tempClonedEffects", /* @__PURE__ */ new Set());
236
- u(this, "identifierMap", /* @__PURE__ */ new Map());
237
- u(this, "timer");
899
+ f(this, "effects", /* @__PURE__ */ new Set());
900
+ f(this, "tempClonedEffects", /* @__PURE__ */ new Set());
901
+ f(this, "identifierMap", /* @__PURE__ */ new Map());
902
+ f(this, "timer");
238
903
  }
239
904
  clearEffects() {
240
905
  this.effects.clear();
@@ -242,344 +907,30 @@ class Z {
242
907
  triggerEffects() {
243
908
  Array.from(this.effects).forEach((e) => e());
244
909
  }
245
- trackEffect(e, t = {
910
+ trackEffect(e, r = {
246
911
  lazy: !0
247
912
  }) {
248
- return !t.lazy && e(), t.identifier ? this.identifierMap.get(t.identifier) || (this.effects.add(e), this.identifierMap.set(t.identifier, !0)) : this.effects.add(e), () => this.effects.delete(e);
249
- }
250
- }
251
- var We = typeof global == "object" && global && global.Object === Object && global, Xe = typeof self == "object" && self && self.Object === Object && self, Q = We || Xe || Function("return this")(), E = Q.Symbol, Fe = Object.prototype, Ye = Fe.hasOwnProperty, Ze = Fe.toString, V = E ? E.toStringTag : void 0;
252
- function Je(r) {
253
- var e = Ye.call(r, V), t = r[V];
254
- try {
255
- r[V] = void 0;
256
- var i = !0;
257
- } catch {
258
- }
259
- var s = Ze.call(r);
260
- return i && (e ? r[V] = t : delete r[V]), s;
261
- }
262
- var Qe = Object.prototype, ke = Qe.toString;
263
- function Ae(r) {
264
- return ke.call(r);
265
- }
266
- var et = "[object Null]", tt = "[object Undefined]", Ce = E ? E.toStringTag : void 0;
267
- function we(r) {
268
- return r == null ? r === void 0 ? tt : et : Ce && Ce in Object(r) ? Je(r) : Ae(r);
269
- }
270
- function rt(r) {
271
- return r != null && typeof r == "object";
272
- }
273
- var it = "[object Symbol]";
274
- function k(r) {
275
- return typeof r == "symbol" || rt(r) && we(r) == it;
276
- }
277
- function st(r, e) {
278
- for (var t = -1, i = r == null ? 0 : r.length, s = Array(i); ++t < i; )
279
- s[t] = e(r[t], t, r);
280
- return s;
281
- }
282
- var A = Array.isArray, nt = 1 / 0, Ie = E ? E.prototype : void 0, Oe = Ie ? Ie.toString : void 0;
283
- function Me(r) {
284
- if (typeof r == "string")
285
- return r;
286
- if (A(r))
287
- return st(r, Me) + "";
288
- if (k(r))
289
- return Oe ? Oe.call(r) : "";
290
- var e = r + "";
291
- return e == "0" && 1 / r == -nt ? "-0" : e;
292
- }
293
- function G(r) {
294
- var e = typeof r;
295
- return r != null && (e == "object" || e == "function");
296
- }
297
- var ot = "[object AsyncFunction]", at = "[object Function]", lt = "[object GeneratorFunction]", ut = "[object Proxy]";
298
- function ft(r) {
299
- if (!G(r))
300
- return !1;
301
- var e = we(r);
302
- return e == at || e == lt || e == ot || e == ut;
303
- }
304
- var W = Q["__core-js_shared__"], Se = function() {
305
- var r = /[^.]+$/.exec(W && W.keys && W.keys.IE_PROTO || "");
306
- return r ? "Symbol(src)_1." + r : "";
307
- }();
308
- function ct(r) {
309
- return !!Se && Se in r;
310
- }
311
- var dt = Function.prototype, pt = dt.toString;
312
- function ht(r) {
313
- if (r != null) {
314
- try {
315
- return pt.call(r);
316
- } catch {
317
- }
318
- try {
319
- return r + "";
320
- } catch {
321
- }
913
+ return !r.lazy && e(), r.identifier ? this.identifierMap.get(r.identifier) || (this.effects.add(e), this.identifierMap.set(r.identifier, !0)) : this.effects.add(e), () => this.effects.delete(e);
322
914
  }
323
- return "";
324
- }
325
- var mt = /[\\^$.*+?()[\]{}|]/g, bt = /^\[object .+?Constructor\]$/, gt = Function.prototype, vt = Object.prototype, yt = gt.toString, _t = vt.hasOwnProperty, Pt = RegExp(
326
- "^" + yt.call(_t).replace(mt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
327
- );
328
- function Ct(r) {
329
- if (!G(r) || ct(r))
330
- return !1;
331
- var e = ft(r) ? Pt : bt;
332
- return e.test(ht(r));
333
- }
334
- function It(r, e) {
335
- return r == null ? void 0 : r[e];
336
- }
337
- function ee(r, e) {
338
- var t = It(r, e);
339
- return Ct(t) ? t : void 0;
340
- }
341
- var je = function() {
342
- try {
343
- var r = ee(Object, "defineProperty");
344
- return r({}, "", {}), r;
345
- } catch {
346
- }
347
- }(), Ot = 9007199254740991, St = /^(?:0|[1-9]\d*)$/;
348
- function jt(r, e) {
349
- var t = typeof r;
350
- return e = e ?? Ot, !!e && (t == "number" || t != "symbol" && St.test(r)) && r > -1 && r % 1 == 0 && r < e;
351
- }
352
- function Ft(r, e, t) {
353
- e == "__proto__" && je ? je(r, e, {
354
- configurable: !0,
355
- enumerable: !0,
356
- value: t,
357
- writable: !0
358
- }) : r[e] = t;
359
- }
360
- function xe(r, e) {
361
- return r === e || r !== r && e !== e;
362
- }
363
- var wt = Object.prototype, Mt = wt.hasOwnProperty;
364
- function xt(r, e, t) {
365
- var i = r[e];
366
- (!(Mt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && Ft(r, e, t);
367
- }
368
- var Et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
369
- function $t(r, e) {
370
- if (A(r))
371
- return !1;
372
- var t = typeof r;
373
- return t == "number" || t == "symbol" || t == "boolean" || r == null || k(r) ? !0 : Rt.test(r) || !Et.test(r) || e != null && r in Object(e);
374
- }
375
- var T = ee(Object, "create");
376
- function Vt() {
377
- this.__data__ = T ? T(null) : {}, this.size = 0;
378
- }
379
- function Nt(r) {
380
- var e = this.has(r) && delete this.__data__[r];
381
- return this.size -= e ? 1 : 0, e;
382
915
  }
383
- var qt = "__lodash_hash_undefined__", Ut = Object.prototype, Tt = Ut.hasOwnProperty;
384
- function zt(r) {
385
- var e = this.__data__;
386
- if (T) {
387
- var t = e[r];
388
- return t === qt ? void 0 : t;
389
- }
390
- return Tt.call(e, r) ? e[r] : void 0;
391
- }
392
- var Lt = Object.prototype, Dt = Lt.hasOwnProperty;
393
- function Gt(r) {
394
- var e = this.__data__;
395
- return T ? e[r] !== void 0 : Dt.call(e, r);
396
- }
397
- var Bt = "__lodash_hash_undefined__";
398
- function Ht(r, e) {
399
- var t = this.__data__;
400
- return this.size += this.has(r) ? 0 : 1, t[r] = T && e === void 0 ? Bt : e, this;
401
- }
402
- function j(r) {
403
- var e = -1, t = r == null ? 0 : r.length;
404
- for (this.clear(); ++e < t; ) {
405
- var i = r[e];
406
- this.set(i[0], i[1]);
407
- }
408
- }
409
- j.prototype.clear = Vt;
410
- j.prototype.delete = Nt;
411
- j.prototype.get = zt;
412
- j.prototype.has = Gt;
413
- j.prototype.set = Ht;
414
- function Kt() {
415
- this.__data__ = [], this.size = 0;
416
- }
417
- function B(r, e) {
418
- for (var t = r.length; t--; )
419
- if (xe(r[t][0], e))
420
- return t;
421
- return -1;
422
- }
423
- var Wt = Array.prototype, Xt = Wt.splice;
424
- function Yt(r) {
425
- var e = this.__data__, t = B(e, r);
426
- if (t < 0)
427
- return !1;
428
- var i = e.length - 1;
429
- return t == i ? e.pop() : Xt.call(e, t, 1), --this.size, !0;
430
- }
431
- function Zt(r) {
432
- var e = this.__data__, t = B(e, r);
433
- return t < 0 ? void 0 : e[t][1];
434
- }
435
- function Jt(r) {
436
- return B(this.__data__, r) > -1;
437
- }
438
- function Qt(r, e) {
439
- var t = this.__data__, i = B(t, r);
440
- return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
441
- }
442
- function R(r) {
443
- var e = -1, t = r == null ? 0 : r.length;
444
- for (this.clear(); ++e < t; ) {
445
- var i = r[e];
446
- this.set(i[0], i[1]);
447
- }
448
- }
449
- R.prototype.clear = Kt;
450
- R.prototype.delete = Yt;
451
- R.prototype.get = Zt;
452
- R.prototype.has = Jt;
453
- R.prototype.set = Qt;
454
- var kt = ee(Q, "Map");
455
- function At() {
456
- this.size = 0, this.__data__ = {
457
- hash: new j(),
458
- map: new (kt || R)(),
459
- string: new j()
460
- };
461
- }
462
- function er(r) {
463
- var e = typeof r;
464
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
465
- }
466
- function H(r, e) {
467
- var t = r.__data__;
468
- return er(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
469
- }
470
- function tr(r) {
471
- var e = H(this, r).delete(r);
472
- return this.size -= e ? 1 : 0, e;
473
- }
474
- function rr(r) {
475
- return H(this, r).get(r);
476
- }
477
- function ir(r) {
478
- return H(this, r).has(r);
479
- }
480
- function sr(r, e) {
481
- var t = H(this, r), i = t.size;
482
- return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
483
- }
484
- function F(r) {
485
- var e = -1, t = r == null ? 0 : r.length;
486
- for (this.clear(); ++e < t; ) {
487
- var i = r[e];
488
- this.set(i[0], i[1]);
489
- }
490
- }
491
- F.prototype.clear = At;
492
- F.prototype.delete = tr;
493
- F.prototype.get = rr;
494
- F.prototype.has = ir;
495
- F.prototype.set = sr;
496
- var nr = "Expected a function";
497
- function te(r, e) {
498
- if (typeof r != "function" || e != null && typeof e != "function")
499
- throw new TypeError(nr);
500
- var t = function() {
501
- var i = arguments, s = e ? e.apply(this, i) : i[0], n = t.cache;
502
- if (n.has(s))
503
- return n.get(s);
504
- var a = r.apply(this, i);
505
- return t.cache = n.set(s, a) || n, a;
506
- };
507
- return t.cache = new (te.Cache || F)(), t;
508
- }
509
- te.Cache = F;
510
- var or = 500;
511
- function ar(r) {
512
- var e = te(r, function(i) {
513
- return t.size === or && t.clear(), i;
514
- }), t = e.cache;
515
- return e;
516
- }
517
- var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /\\(\\)?/g, fr = ar(function(r) {
518
- var e = [];
519
- return r.charCodeAt(0) === 46 && e.push(""), r.replace(lr, function(t, i, s, n) {
520
- e.push(s ? n.replace(ur, "$1") : i || t);
521
- }), e;
522
- });
523
- function cr(r) {
524
- return r == null ? "" : Me(r);
525
- }
526
- function Ee(r, e) {
527
- return A(r) ? r : $t(r, e) ? [r] : fr(cr(r));
528
- }
529
- var dr = 1 / 0;
530
- function Re(r) {
531
- if (typeof r == "string" || k(r))
532
- return r;
533
- var e = r + "";
534
- return e == "0" && 1 / r == -dr ? "-0" : e;
535
- }
536
- function pr(r, e) {
537
- e = Ee(e, r);
538
- for (var t = 0, i = e.length; r != null && t < i; )
539
- r = r[Re(e[t++])];
540
- return t && t == i ? r : void 0;
541
- }
542
- function L(r, e, t) {
543
- var i = r == null ? void 0 : pr(r, e);
544
- return i === void 0 ? t : i;
545
- }
546
- function hr(r, e, t, i) {
547
- if (!G(r))
548
- return r;
549
- e = Ee(e, r);
550
- for (var s = -1, n = e.length, a = n - 1, l = r; l != null && ++s < n; ) {
551
- var f = Re(e[s]), d = t;
552
- if (f === "__proto__" || f === "constructor" || f === "prototype")
553
- return r;
554
- if (s != a) {
555
- var p = l[f];
556
- d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : jt(e[s + 1]) ? [] : {});
557
- }
558
- xt(l, f, d), l = l[f];
559
- }
560
- return r;
561
- }
562
- function D(r, e, t) {
563
- return r == null ? r : hr(r, e, t);
564
- }
565
- class mr {
916
+ class Xs {
566
917
  constructor(e) {
567
- u(this, "runtimeCore");
568
- u(this, "processedSchemas");
569
- u(this, "processedModel");
570
- u(this, "getRuntimeMeta");
571
- u(this, "stableSchemas", []);
572
- u(this, "stableModel", {});
573
- u(this, "schemaPreset", C.schemaPreset);
574
- u(this, "componentPropsPreset", C.componentPropsPreset);
575
- u(this, "stableUpdaterProcessProgress");
576
- u(this, "stableUpdaterTimes", 0);
577
- u(this, "schemaEffect", new Z());
578
- u(this, "defaultValueEffect", new Z());
579
- u(this, "defaultValueInprogressMap", /* @__PURE__ */ new Map());
580
- u(this, "baseDefaultValueFunctionsLength");
581
- u(this, "isModelInitialized", !0);
582
- this.runtimeCore = e, this.processedSchemas = e.schemas, this.processedModel = e.model, this.getRuntimeMeta = e.getRuntimeMeta.bind(e), _(
918
+ f(this, "runtimeCore");
919
+ f(this, "processedSchemas");
920
+ f(this, "processedModel");
921
+ f(this, "getRuntimeMeta");
922
+ f(this, "stableSchemas", []);
923
+ f(this, "stableModel", {});
924
+ f(this, "schemaPreset", w.schemaPreset);
925
+ f(this, "componentPropsPreset", w.componentPropsPreset);
926
+ f(this, "stableUpdaterProcessProgress");
927
+ f(this, "stableUpdaterTimes", 0);
928
+ f(this, "schemaEffect", new be());
929
+ f(this, "defaultValueEffect", new be());
930
+ f(this, "defaultValueInprogressMap", /* @__PURE__ */ new Map());
931
+ f(this, "baseDefaultValueFunctionsLength");
932
+ f(this, "isModelInitialized", !0);
933
+ this.runtimeCore = e, this.processedSchemas = e.schemas, this.processedModel = e.model, this.getRuntimeMeta = e.getRuntimeMeta.bind(e), $(
583
934
  () => this.processedModel.value,
584
935
  () => {
585
936
  this.schemaEffect.triggerEffects();
@@ -590,145 +941,145 @@ class mr {
590
941
  );
591
942
  }
592
943
  // 核心处理过程,接收一个初始的代理数据结构,由其衍生的有 parseSchema
593
- parse(e, t) {
594
- e.forEach((i, s) => {
595
- this.parseItem(i, s, t);
944
+ parse(e, r) {
945
+ e.forEach((n, i) => {
946
+ this.parseItem(n, i, r);
596
947
  });
597
948
  }
598
949
  // 初始化空数据结构,避免后续复杂的 if else
599
950
  initSchemas(e) {
600
- return e.map((t) => {
601
- const i = {};
602
- return t.children && (i.children = this.initSchemas(t.children)), i;
951
+ return e.map((r) => {
952
+ const n = {};
953
+ return r.children && (n.children = this.initSchemas(r.children)), n;
603
954
  });
604
955
  }
605
956
  countFunctionDefaultValues(e) {
606
- let t = 0;
607
- const i = /* @__PURE__ */ new Set();
608
- function s(n) {
609
- if (!i.has(n) && (Array.isArray(n) || n !== null && typeof n == "object")) {
610
- i.add(n);
611
- for (const a in n)
612
- n.hasOwnProperty(a) && (a === "defaultValue" && typeof n[a] == "function" && !n[a].toString().includes("[native code]") && t++, s(n[a]));
957
+ let r = 0;
958
+ const n = /* @__PURE__ */ new Set();
959
+ function i(s) {
960
+ if (!n.has(s) && (Array.isArray(s) || s !== null && typeof s == "object")) {
961
+ n.add(s);
962
+ for (const o in s)
963
+ s.hasOwnProperty(o) && (o === "defaultValue" && typeof s[o] == "function" && !s[o].toString().includes("[native code]") && r++, i(s[o]));
613
964
  }
614
965
  }
615
- return s(e), t;
966
+ return i(e), r;
616
967
  }
617
968
  // 派生过程,用于外部应用
618
- parseSchemas(e, t) {
619
- o.isArrayEmpty(this.processedSchemas.value) && (this.baseDefaultValueFunctionsLength = this.countFunctionDefaultValues(
620
- P(e)
621
- ), this.processedSchemas.value = this.initSchemas(e)), this.parse(e, t);
969
+ parseSchemas(e, r) {
970
+ u.isArrayEmpty(this.processedSchemas.value) && (this.baseDefaultValueFunctionsLength = this.countFunctionDefaultValues(
971
+ O(e)
972
+ ), this.processedSchemas.value = this.initSchemas(e)), this.parse(e, r);
622
973
  }
623
974
  parseStable(e) {
624
- const t = {};
625
- if (!o.isUndefined(e.stable))
626
- t[e.key] = this.parseStable(e.stable);
975
+ const r = {};
976
+ if (!u.isUndefined(e.stable))
977
+ r[e.key] = this.parseStable(e.stable);
627
978
  else
628
979
  return e;
629
- return t;
980
+ return r;
630
981
  }
631
982
  // 对于稳定初始化更新的抽象
632
983
  stableUpdater(e = []) {
633
984
  if (e.every(Boolean)) {
634
- const t = x(this.processedSchemas.value);
635
- !o.isProcessInprogress(t) && o.isObjectEmpty(this.stableModel) && (this.stableUpdaterProcessProgress || (this.stableUpdaterProcessProgress = Array.from({
636
- length: t.length
637
- }).fill(!1)), this.stableUpdaterProcessProgress[this.stableUpdaterTimes] = !0, this.stableUpdaterTimes++, this.modelProcessor(t));
985
+ const r = z(this.processedSchemas.value);
986
+ !u.isProcessInprogress(r) && u.isObjectEmpty(this.stableModel) && (this.stableUpdaterProcessProgress || (this.stableUpdaterProcessProgress = Array.from({
987
+ length: r.length
988
+ }).fill(!1)), this.stableUpdaterProcessProgress[this.stableUpdaterTimes] = !0, this.stableUpdaterTimes++, this.modelProcessor(r));
638
989
  }
639
990
  }
640
991
  // 核心单 schema 处理过程,接收一个对象键值对的数据结构
641
- parseItem(e, t, i) {
642
- const s = this, n = Array.from({
643
- length: Object.keys(e).filter((l) => l !== "children").length
992
+ parseItem(e, r, n) {
993
+ const i = this, s = Array.from({
994
+ length: Object.keys(e).filter((a) => a !== "children").length
644
995
  }).fill(!1);
645
- this.objectParser({ data: e, index: t, updater: a, parentMeta: i });
646
- function a(l) {
647
- const f = l.index, d = l.key, p = l.keyIndex;
648
- if (o.isUndefined(l.stable))
996
+ this.objectParser({ data: e, index: r, updater: o, parentMeta: n });
997
+ function o(a) {
998
+ const l = a.index, c = a.key, d = a.keyIndex;
999
+ if (u.isUndefined(a.stable))
649
1000
  return;
650
- const h = s.parseStable(l.stable), v = i == null ? void 0 : i.index, I = i == null ? void 0 : i.key;
651
- let y = h;
652
- if (o.isProcessInprogress(y) || (n[p] = !0), i) {
653
- const g = s.processedSchemas.value[v][I][f][d];
654
- g && o.isObject(g) && d !== "component" && (y = b(g, y)), s.processedSchemas.value[v][I][f][d] = y, s.stableUpdater(n);
1001
+ const m = i.parseStable(a.stable), P = n == null ? void 0 : n.index, I = n == null ? void 0 : n.key;
1002
+ let j = m;
1003
+ if (u.isProcessInprogress(j) || (s[d] = !0), n) {
1004
+ const y = i.processedSchemas.value[P][I][l][c];
1005
+ y && u.isObject(y) && c !== "component" && (j = b(y, j)), i.processedSchemas.value[P][I][l][c] = j, i.stableUpdater(s);
655
1006
  } else {
656
- const g = s.processedSchemas.value[f][d];
657
- g && o.isObject(g) && d !== "component" && (y = b(g, y)), s.processedSchemas.value[f][d] = y, s.stableUpdater(n);
1007
+ const y = i.processedSchemas.value[l][c];
1008
+ y && u.isObject(y) && c !== "component" && (j = b(y, j)), i.processedSchemas.value[l][c] = j, i.stableUpdater(s);
658
1009
  }
659
1010
  }
660
1011
  }
661
1012
  // 只做基本的对象 parser
662
1013
  objectParser(e) {
663
- const t = e.data;
664
- Object.keys(t).forEach((s, n) => {
665
- var a, l;
666
- if (s === "children")
667
- this.parseSchemas(t[s], {
1014
+ const r = e.data;
1015
+ Object.keys(r).forEach((i, s) => {
1016
+ var o, a;
1017
+ if (i === "children")
1018
+ this.parseSchemas(r[i], {
668
1019
  ...e,
669
- key: s,
670
- keyIndex: n
1020
+ key: i,
1021
+ keyIndex: s
671
1022
  });
672
1023
  else {
673
- const f = (d) => {
1024
+ const l = (c) => {
674
1025
  e.updater({
675
1026
  ...e,
676
- key: s,
677
- keyIndex: n,
678
- stable: d
1027
+ key: i,
1028
+ keyIndex: s,
1029
+ stable: c
679
1030
  });
680
1031
  };
681
- o.isFunction(t[s]) ? s !== "defaultValue" ? this.schemaEffect.trackEffect(
1032
+ u.isFunction(r[i]) ? i !== "defaultValue" ? this.schemaEffect.trackEffect(
682
1033
  () => {
683
- if (s === "component") {
684
- const d = t[s](this.getRuntimeMeta());
685
- this.promiseFieldParser(d, f, !1, {
1034
+ if (i === "component") {
1035
+ const c = r[i](this.getRuntimeMeta());
1036
+ this.promiseFieldParser(c, l, !1, {
686
1037
  rootIndex: e.index,
687
1038
  parentMeta: e.parentMeta
688
1039
  });
689
1040
  } else
690
- this.fieldParser(t[s], f, {
1041
+ this.fieldParser(r[i], l, {
691
1042
  rootIndex: e.index,
692
1043
  parentMeta: e.parentMeta
693
1044
  });
694
1045
  },
695
1046
  {
696
1047
  lazy: !1,
697
- identifier: `${(a = e.parentMeta) == null ? void 0 : a.key}${(l = e.parentMeta) == null ? void 0 : l.index}${e.index}${s}${n}`
1048
+ identifier: `${(o = e.parentMeta) == null ? void 0 : o.key}${(a = e.parentMeta) == null ? void 0 : a.index}${e.index}${i}${s}`
698
1049
  }
699
1050
  ) : this.defaultValueEffect.trackEffect(
700
1051
  () => {
701
- const d = this.schemaEffect.trackEffect(
1052
+ const c = this.schemaEffect.trackEffect(
702
1053
  () => {
703
- /\{\s*model\s*\}/.test(t[s].toString()) ? this.fieldParser(
704
- t[s],
705
- (p) => {
706
- if (!p)
707
- return f(p);
708
- this.defaultValueInprogressMap.set(t[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
1054
+ /\{\s*model\s*\}/.test(r[i].toString()) ? this.fieldParser(
1055
+ r[i],
1056
+ (d) => {
1057
+ if (!d)
1058
+ return l(d);
1059
+ this.defaultValueInprogressMap.set(r[i], d), !u.isProcessInprogress(d) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
709
1060
  this.defaultValueInprogressMap.values()
710
- ).every((h) => {
711
- var v;
712
- return !((v = h == null ? void 0 : h.includes) != null && v.call(h, "undefined"));
713
- }) ? (f(p), this.defaultValueEffect.clearEffects(), S(() => {
714
- d();
715
- })) : f(p);
1061
+ ).every((m) => {
1062
+ var P;
1063
+ return !((P = m == null ? void 0 : m.includes) != null && P.call(m, "undefined"));
1064
+ }) ? (l(d), this.defaultValueEffect.clearEffects(), M(() => {
1065
+ c();
1066
+ })) : l(d);
716
1067
  },
717
1068
  {
718
1069
  rootIndex: e.index,
719
1070
  parentMeta: e.parentMeta
720
1071
  }
721
1072
  ) : this.fieldParser(
722
- t[s],
723
- (p) => {
724
- this.defaultValueInprogressMap.set(t[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
1073
+ r[i],
1074
+ (d) => {
1075
+ this.defaultValueInprogressMap.set(r[i], d), !u.isProcessInprogress(d) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
725
1076
  this.defaultValueInprogressMap.values()
726
- ).every((h) => {
727
- var v;
728
- return !((v = h == null ? void 0 : h.includes) != null && v.call(h, "undefined"));
729
- }) ? (f(p), this.defaultValueEffect.clearEffects(), S(() => {
730
- d();
731
- })) : f(p);
1077
+ ).every((m) => {
1078
+ var P;
1079
+ return !((P = m == null ? void 0 : m.includes) != null && P.call(m, "undefined"));
1080
+ }) ? (l(d), this.defaultValueEffect.clearEffects(), M(() => {
1081
+ c();
1082
+ })) : l(d);
732
1083
  },
733
1084
  {
734
1085
  rootIndex: e.index,
@@ -744,183 +1095,183 @@ class mr {
744
1095
  {
745
1096
  lazy: !1
746
1097
  }
747
- ) : s === "component" || s === "slots" || s === "runtime" ? this.promiseFieldParser(t[s], f, !1, {
1098
+ ) : i === "component" || i === "slots" || i === "runtime" ? this.promiseFieldParser(r[i], l, !1, {
748
1099
  rootIndex: e.index,
749
1100
  parentMeta: e.parentMeta
750
- }) : this.fieldParser(t[s], f, {
1101
+ }) : this.fieldParser(r[i], l, {
751
1102
  rootIndex: e.index,
752
1103
  parentMeta: e.parentMeta
753
1104
  });
754
1105
  }
755
1106
  });
756
1107
  }
757
- promiseFieldParser(e, t, i, s) {
758
- o.isPromise(e) ? e.then((n) => {
759
- o.isString(n) && (n = Y(n, "")), i && o.isObject(n) && !o.isNativeObject(n) ? this.objectParser({
760
- data: n,
761
- updater: t,
762
- index: s.rootIndex,
763
- parentMeta: s.parentMeta
764
- }) : t(n);
765
- }) : (o.isString(e) && (e = Y(e, "")), i && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
1108
+ promiseFieldParser(e, r, n, i) {
1109
+ u.isPromise(e) ? e.then((s) => {
1110
+ u.isString(s) && (s = ge(s, "")), n && u.isObject(s) && !u.isNativeObject(s) ? this.objectParser({
1111
+ data: s,
1112
+ updater: r,
1113
+ index: i.rootIndex,
1114
+ parentMeta: i.parentMeta
1115
+ }) : r(s);
1116
+ }) : (u.isString(e) && (e = ge(e, "")), n && u.isObject(e) && !u.isNativeObject(e) ? this.objectParser({
766
1117
  data: e,
767
- updater: t,
768
- index: s.rootIndex,
769
- parentMeta: s.parentMeta
770
- }) : t(e));
1118
+ updater: r,
1119
+ index: i.rootIndex,
1120
+ parentMeta: i.parentMeta
1121
+ }) : r(e));
771
1122
  }
772
1123
  // 对任意对象中单个字段的 parse: 做基本处理
773
- fieldParser(e, t, i, s = !0) {
774
- if (o.isFunction(e))
1124
+ fieldParser(e, r, n, i = !0) {
1125
+ if (u.isFunction(e))
775
1126
  if (e.name.startsWith("__proform_raw_"))
776
- t(
777
- (...n) => e({
778
- rawArgs: n,
1127
+ r(
1128
+ (...s) => e({
1129
+ rawArgs: s,
779
1130
  ...this.getRuntimeMeta()
780
1131
  })
781
1132
  );
782
1133
  else if (e.name.startsWith("__proform_structured_path_parsing_mark_"))
783
- t(e);
1134
+ r(e);
784
1135
  else if (e.__proform_cached_result) {
785
- const n = e.__proform_cached_result;
786
- this.promiseFieldParser(n, t, s, i);
1136
+ const s = e.__proform_cached_result;
1137
+ this.promiseFieldParser(s, r, i, n);
787
1138
  } else {
788
- const n = e(this.getRuntimeMeta());
789
- e.name.startsWith("__proform_onetime_") && (e.__proform_cached_result = n), this.promiseFieldParser(n, t, s, i);
1139
+ const s = e(this.getRuntimeMeta());
1140
+ e.name.startsWith("__proform_onetime_") && (e.__proform_cached_result = s), this.promiseFieldParser(s, r, i, n);
790
1141
  }
791
1142
  else
792
- q(e) ? _(
1143
+ J(e) ? $(
793
1144
  () => e.value,
794
1145
  () => {
795
- o.isUndefined(e.value) || (s && o.isObject(e.value) && !o.isNativeObject(e.value) ? this.objectParser({
1146
+ u.isUndefined(e.value) || (i && u.isObject(e.value) && !u.isNativeObject(e.value) ? this.objectParser({
796
1147
  data: e.value,
797
- updater: t,
798
- index: i.rootIndex,
799
- parentMeta: i.parentMeta
800
- }) : t(e.value));
1148
+ updater: r,
1149
+ index: n.rootIndex,
1150
+ parentMeta: n.parentMeta
1151
+ }) : r(e.value));
801
1152
  },
802
1153
  {
803
1154
  immediate: !0,
804
1155
  deep: !0
805
1156
  }
806
- ) : U(e) ? _(
1157
+ ) : Q(e) ? $(
807
1158
  () => e,
808
1159
  () => {
809
- o.isUndefined(e) || (s && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
1160
+ u.isUndefined(e) || (i && u.isObject(e) && !u.isNativeObject(e) ? this.objectParser({
810
1161
  data: e,
811
- updater: t,
812
- index: i.rootIndex,
813
- parentMeta: i.parentMeta
814
- }) : t(e));
1162
+ updater: r,
1163
+ index: n.rootIndex,
1164
+ parentMeta: n.parentMeta
1165
+ }) : r(e));
815
1166
  },
816
1167
  {
817
1168
  immediate: !0,
818
1169
  deep: !0
819
1170
  }
820
- ) : s && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
1171
+ ) : i && u.isObject(e) && !u.isNativeObject(e) ? this.objectParser({
821
1172
  data: e,
822
- updater: t,
823
- index: i.rootIndex,
824
- parentMeta: i.parentMeta
825
- }) : t(e);
1173
+ updater: r,
1174
+ index: n.rootIndex,
1175
+ parentMeta: n.parentMeta
1176
+ }) : r(e);
826
1177
  }
827
1178
  modelProcessor(e) {
828
1179
  e.map(
829
- (t) => this.createModel(t, this.processedModel.value)
830
- ), o.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel = P(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects());
831
- }
832
- setModel(e, t, i) {
833
- o.isFunction(t) ? D(e, t(), i) : e[t] = i;
834
- }
835
- createModel(e, t) {
836
- if (o.isListSchema(e) && (t[e.field] || this.setModel(t, e.field, [{}]), e.children.forEach((i) => {
837
- this.createModel(i, t[e.field][0]);
838
- })), o.isGroupSchema(e) && e.children.forEach((i) => {
839
- this.createModel(i, t);
840
- }), o.isItemSchema(e))
1180
+ (r) => this.createModel(r, this.processedModel.value)
1181
+ ), u.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel = O(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects());
1182
+ }
1183
+ setModel(e, r, n) {
1184
+ u.isFunction(r) ? ie(e, r(), n) : e[r] = n;
1185
+ }
1186
+ createModel(e, r) {
1187
+ if (u.isListSchema(e) && (r[e.field] || this.setModel(r, e.field, [{}]), e.children.forEach((n) => {
1188
+ this.createModel(n, r[e.field][0]);
1189
+ })), u.isGroupSchema(e) && e.children.forEach((n) => {
1190
+ this.createModel(n, r);
1191
+ }), u.isItemSchema(e))
841
1192
  if ("defaultValue" in e)
842
- this.setModel(t, e.field, e.defaultValue);
1193
+ this.setModel(r, e.field, e.defaultValue);
843
1194
  else {
844
- if (o.isFunction(e.field) && L(t, e.field()))
1195
+ if (u.isFunction(e.field) && re(r, e.field()))
845
1196
  return;
846
- if (o.isString(e.field) && t[e.field])
1197
+ if (u.isString(e.field) && r[e.field])
847
1198
  return;
848
- this.setModel(t, e.field, void 0);
1199
+ this.setModel(r, e.field, void 0);
849
1200
  }
850
1201
  }
851
1202
  }
852
- class w {
1203
+ class L {
853
1204
  static getFormContainer({ ui: e } = {}) {
854
- return c.presets.uiPresets[e ?? c.presets.ui].container.Form;
1205
+ return p.presets.uiPresets[e ?? p.presets.ui].container.Form;
855
1206
  }
856
1207
  static getFormItemContainer({ ui: e } = {}) {
857
- return c.presets.uiPresets[e ?? c.presets.ui].container.FormItem;
1208
+ return p.presets.uiPresets[e ?? p.presets.ui].container.FormItem;
858
1209
  }
859
1210
  static getItemContainer({ ui: e } = {}) {
860
- return c.presets.uiPresets[e ?? c.presets.ui].container.Item;
1211
+ return p.presets.uiPresets[e ?? p.presets.ui].container.Item;
861
1212
  }
862
1213
  static getGroupContainer({ ui: e } = {}) {
863
- return c.presets.uiPresets[e ?? c.presets.ui].container.Group;
1214
+ return p.presets.uiPresets[e ?? p.presets.ui].container.Group;
864
1215
  }
865
1216
  static getListContainer({ ui: e } = {}) {
866
- return c.presets.uiPresets[e ?? c.presets.ui].container.List;
1217
+ return p.presets.uiPresets[e ?? p.presets.ui].container.List;
867
1218
  }
868
1219
  static getListItemContainer({ ui: e } = {}) {
869
- return c.presets.uiPresets[e ?? c.presets.ui].container.ListItem;
1220
+ return p.presets.uiPresets[e ?? p.presets.ui].container.ListItem;
870
1221
  }
871
1222
  }
872
- class br {
1223
+ class Zs {
873
1224
  constructor(e) {
874
1225
  this.ui = e;
875
1226
  }
876
1227
  getRuntimeNative() {
877
- var t;
878
- return (t = c.presets.uiPresets[this.ui]) == null ? void 0 : t.native;
1228
+ var r;
1229
+ return (r = p.presets.uiPresets[this.ui]) == null ? void 0 : r.native;
879
1230
  }
880
1231
  getRuntimeField(e) {
881
- var s;
882
- const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
883
- return (t == null ? void 0 : t.getRuntimeField(e)) ?? (i == null ? void 0 : i.getRuntimeField(e));
1232
+ var i;
1233
+ const r = (i = p.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, n = w.adapters[p.getUI(this.ui)];
1234
+ return (r == null ? void 0 : r.getRuntimeField(e)) ?? (n == null ? void 0 : n.getRuntimeField(e));
884
1235
  }
885
1236
  getRuntimeRequired(e) {
886
- var s;
887
- const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
888
- return (t == null ? void 0 : t.getRuntimeRequired(e)) ?? (i == null ? void 0 : i.getRuntimeRequired(e));
1237
+ var i;
1238
+ const r = (i = p.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, n = w.adapters[p.getUI(this.ui)];
1239
+ return (r == null ? void 0 : r.getRuntimeRequired(e)) ?? (n == null ? void 0 : n.getRuntimeRequired(e));
889
1240
  }
890
1241
  getFormModelPropName() {
891
- var i;
892
- const e = (i = c.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, t = C.adapters[c.getUI(this.ui)];
893
- return (e == null ? void 0 : e.getFormModelPropName()) ?? (t == null ? void 0 : t.getFormModelPropName());
1242
+ var n;
1243
+ const e = (n = p.presets.uiPresets[this.ui]) == null ? void 0 : n.adapter, r = w.adapters[p.getUI(this.ui)];
1244
+ return (e == null ? void 0 : e.getFormModelPropName()) ?? (r == null ? void 0 : r.getFormModelPropName());
894
1245
  }
895
1246
  formComponentRenderer(e) {
896
- var s;
897
- const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
898
- return (t == null ? void 0 : t.formComponentRenderer(e)) ?? (i == null ? void 0 : i.formComponentRenderer(e));
1247
+ var i;
1248
+ const r = (i = p.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, n = w.adapters[p.getUI(this.ui)];
1249
+ return (r == null ? void 0 : r.formComponentRenderer(e)) ?? (n == null ? void 0 : n.formComponentRenderer(e));
899
1250
  }
900
1251
  clearValidate(e) {
901
- var s;
902
- const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
903
- return (t == null ? void 0 : t.clearValidate(e)) ?? (i == null ? void 0 : i.clearValidate(e));
1252
+ var i;
1253
+ const r = (i = p.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, n = w.adapters[p.getUI(this.ui)];
1254
+ return (r == null ? void 0 : r.clearValidate(e)) ?? (n == null ? void 0 : n.clearValidate(e));
904
1255
  }
905
1256
  }
906
- function gr(r) {
907
- return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !Be(r);
1257
+ function Js(t) {
1258
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !er(t);
908
1259
  }
909
- class vr {
1260
+ class Qs {
910
1261
  constructor(e) {
911
- u(this, "schemas", z([]));
912
- u(this, "model", z({}));
913
- u(this, "processorBySchemaType", {
1262
+ f(this, "schemas", te([]));
1263
+ f(this, "model", te({}));
1264
+ f(this, "processorBySchemaType", {
914
1265
  item: this.runtimeItemProcessor.bind(this),
915
1266
  group: this.runtimeGroupProcessor.bind(this),
916
1267
  list: this.runtimeListProcessor.bind(this)
917
1268
  });
918
- u(this, "formRef", z(null));
919
- u(this, "hydrateEffect", new Z());
920
- u(this, "native", K({}));
921
- u(this, "grid", {});
922
- u(this, "runtime", {});
923
- u(this, "globalNativeFormOverride", K({
1269
+ f(this, "formRef", te(null));
1270
+ f(this, "hydrateEffect", new be());
1271
+ f(this, "native", ue({}));
1272
+ f(this, "grid", {});
1273
+ f(this, "runtime", {});
1274
+ f(this, "globalNativeFormOverride", ue({
924
1275
  props: {
925
1276
  Form: {},
926
1277
  FormItem: {}
@@ -930,450 +1281,450 @@ class vr {
930
1281
  FormItem: {}
931
1282
  }
932
1283
  }));
933
- u(this, "shared", K({}));
934
- this.setup = e, this.processor = new mr(this);
935
- const t = this.setup(this);
936
- if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new br(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), q(t.schemas))
937
- _(
1284
+ f(this, "shared", ue({}));
1285
+ this.setup = e, this.processor = new Xs(this);
1286
+ const r = this.setup(this);
1287
+ if (this.ui = r.ui ?? p.presets.ui, this.runtimeAdapter = new Zs(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), J(r.schemas))
1288
+ $(
938
1289
  // @ts-expect-error
939
- () => t.schemas.value,
1290
+ () => r.schemas.value,
940
1291
  () => {
941
- this.processor.parseSchemas(t.schemas.value);
1292
+ this.processor.parseSchemas(r.schemas.value);
942
1293
  },
943
1294
  {
944
1295
  deep: !0
945
1296
  }
946
1297
  );
947
- else if (U(t.schemas)) {
948
- const i = _(() => t.schemas, () => {
949
- this.processor.parseSchemas(t.schemas), S(() => {
950
- i();
1298
+ else if (Q(r.schemas)) {
1299
+ const n = $(() => r.schemas, () => {
1300
+ this.processor.parseSchemas(r.schemas), M(() => {
1301
+ n();
951
1302
  });
952
1303
  }, {
953
1304
  deep: !0
954
1305
  });
955
1306
  } else
956
- this.processor.parseSchemas(t.schemas);
1307
+ this.processor.parseSchemas(r.schemas);
957
1308
  }
958
1309
  getRuntimeMeta() {
959
1310
  return {
960
- model: x(P(this.model.value)),
1311
+ model: z(O(this.model.value)),
961
1312
  reactiveModel: this.model.value,
962
1313
  shared: this.shared,
963
1314
  // share 增加防抖,当开发者在过程中进行 share 时避免频繁触发爆栈
964
- share: (t) => {
965
- Object.keys(t).forEach((i) => {
966
- q(t[i]) ? _(() => t[i].value, () => {
1315
+ share: (r) => {
1316
+ Object.keys(r).forEach((n) => {
1317
+ J(r[n]) ? $(() => r[n].value, () => {
967
1318
  b(this.shared, {
968
- [i]: t[i].value
1319
+ [n]: r[n].value
969
1320
  });
970
1321
  }, {
971
1322
  deep: !0,
972
1323
  immediate: !0
973
- }) : U(t[i]) ? _(() => t[i], () => {
1324
+ }) : Q(r[n]) ? $(() => r[n], () => {
974
1325
  b(this.shared, {
975
- [i]: t[i]
1326
+ [n]: r[n]
976
1327
  });
977
1328
  }, {
978
1329
  deep: !0,
979
1330
  immediate: !0
980
1331
  }) : b(this.shared, {
981
- [i]: t[i]
1332
+ [n]: r[n]
982
1333
  });
983
1334
  });
984
1335
  }
985
1336
  };
986
1337
  }
987
- runtimeItemProcessor(e, t, i = this.model.value, s) {
988
- var ie, se, ne, oe, ae, le, ue, fe, ce, de, pe, he, me, be, ge, ve, ye;
989
- const n = x(e.component);
990
- if (!n)
1338
+ runtimeItemProcessor(e, r, n = this.model.value, i) {
1339
+ var xe, Ee, Fe, Me, Re, Ne, Ue, Ve, Ae, Le, qe, ze, De, Be, Ge, Ke, He;
1340
+ const s = z(e.component);
1341
+ if (!s)
991
1342
  return;
992
- (se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form && b(this.globalNativeFormOverride.props.Form, (oe = (ne = e.native) == null ? void 0 : ne.props) == null ? void 0 : oe.Form), (le = (ae = e.native) == null ? void 0 : ae.slots) != null && le.Form && b(this.globalNativeFormOverride.slots.Form, (fe = (ue = e.native) == null ? void 0 : ue.slots) == null ? void 0 : fe.Form);
993
- const a = b(P((de = (ce = this.native) == null ? void 0 : ce.slots) == null ? void 0 : de.FormItem) ?? {}, (he = (pe = e.native) == null ? void 0 : pe.slots) == null ? void 0 : he.FormItem), l = {
1343
+ (Ee = (xe = e.native) == null ? void 0 : xe.props) != null && Ee.Form && b(this.globalNativeFormOverride.props.Form, (Me = (Fe = e.native) == null ? void 0 : Fe.props) == null ? void 0 : Me.Form), (Ne = (Re = e.native) == null ? void 0 : Re.slots) != null && Ne.Form && b(this.globalNativeFormOverride.slots.Form, (Ve = (Ue = e.native) == null ? void 0 : Ue.slots) == null ? void 0 : Ve.Form);
1344
+ const o = b(O((Le = (Ae = this.native) == null ? void 0 : Ae.slots) == null ? void 0 : Le.FormItem) ?? {}, (ze = (qe = e.native) == null ? void 0 : qe.slots) == null ? void 0 : ze.FormItem), a = {
994
1345
  display: "grid",
995
1346
  gridColumn: "1 / -1",
996
1347
  ...e.grid
997
- }, f = b(P((be = (me = this.native) == null ? void 0 : me.props) == null ? void 0 : be.FormItem) ?? {}, (ve = (ge = e.native) == null ? void 0 : ge.props) == null ? void 0 : ve.FormItem), d = this.runtimeAdapter.getRuntimeField({
1348
+ }, l = b(O((Be = (De = this.native) == null ? void 0 : De.props) == null ? void 0 : Be.FormItem) ?? {}, (Ke = (Ge = e.native) == null ? void 0 : Ge.props) == null ? void 0 : Ke.FormItem), c = this.runtimeAdapter.getRuntimeField({
998
1349
  schema: e,
999
- parentSchema: s,
1000
- index: t
1001
- }), p = n.name, h = e.componentProps ?? {}, v = C.placeholderPresetByComponentName;
1002
- let I = e.placeholder, y = e.show;
1003
- y === void 0 && (y = !0);
1004
- let g = e.label ?? "", O;
1005
- if (e.runtime ? O = e.runtime : O = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(t) && !o.isObjectEmpty(O) && (g = Y((ye = O == null ? void 0 : O.customizeListItemLabel) == null ? void 0 : ye.call(O, e.label ?? "", t + 1), "")), !I) {
1006
- let $ = "请输入";
1007
- o.isUndefined(p) ? I = `${$}${g}` : /* @ts-expect-error */ v[p.toLowerCase()] ? ($ = // @ts-expect-error
1008
- v[p.toLowerCase()], I = `${$}${g}`) : (Object.keys(v).forEach((_e) => {
1009
- p.toLowerCase().includes(_e.toLowerCase()) && ($ = v[_e]);
1010
- }), I = `${$}${g}`);
1350
+ parentSchema: i,
1351
+ index: r
1352
+ }), d = s.name, m = e.componentProps ?? {}, P = w.placeholderPresetByComponentName;
1353
+ let I = e.placeholder, j = e.show;
1354
+ j === void 0 && (j = !0);
1355
+ let y = e.label ?? "", v;
1356
+ if (e.runtime ? v = e.runtime : v = (i == null ? void 0 : i.runtime) ?? this.runtime, !u.isUndefined(r) && !u.isObjectEmpty(v) && (y = ge((He = v == null ? void 0 : v.customizeListItemLabel) == null ? void 0 : He.call(v, e.label ?? "", r + 1), "")), !I) {
1357
+ let W = "请输入";
1358
+ u.isUndefined(d) ? I = `${W}${y}` : /* @ts-expect-error */ P[d.toLowerCase()] ? (W = // @ts-expect-error
1359
+ P[d.toLowerCase()], I = `${W}${y}`) : (Object.keys(P).forEach((We) => {
1360
+ d.toLowerCase().includes(We.toLowerCase()) && (W = P[We]);
1361
+ }), I = `${W}${y}`);
1011
1362
  }
1012
- const $e = this.runtimeAdapter.getRuntimeRequired({
1363
+ const T = this.runtimeAdapter.getRuntimeRequired({
1013
1364
  ...e,
1014
- label: g
1015
- }), Ve = w.getItemContainer(this), Ne = w.getFormItemContainer(this), qe = this, Ue = e.componentSlots;
1016
- return m("div", {
1017
- style: l
1018
- }, [m(Ve, {
1019
- show: y
1365
+ label: y
1366
+ }), Kt = L.getItemContainer(this), Ht = L.getFormItemContainer(this), Wt = this, Yt = e.componentSlots;
1367
+ return _("div", {
1368
+ style: a
1369
+ }, [_(Kt, {
1370
+ show: j
1020
1371
  }, {
1021
1372
  default() {
1022
- return y && m(Ne, N(f, {
1023
- label: `${g ? `${g}:` : ""}`
1024
- }, d, $e), {
1373
+ return j && _(Ht, X(l, {
1374
+ label: `${y ? `${y}:` : ""}`
1375
+ }, c, T), {
1025
1376
  default() {
1026
- return qe.runtimeAdapter.formComponentRenderer({
1027
- Component: n,
1377
+ return Wt.runtimeAdapter.formComponentRenderer({
1378
+ Component: s,
1028
1379
  schema: e,
1029
- baseModel: i,
1380
+ baseModel: n,
1030
1381
  placeholder: I,
1031
- componentSlots: Ue,
1032
- props: h
1382
+ componentSlots: Yt,
1383
+ props: m
1033
1384
  });
1034
1385
  },
1035
- ...a
1386
+ ...o
1036
1387
  });
1037
1388
  }
1038
1389
  })]);
1039
1390
  }
1040
1391
  runtimeGroupProcessor(e) {
1041
- let t;
1042
- const i = {
1392
+ let r;
1393
+ const n = {
1043
1394
  display: "grid",
1044
1395
  gridColumn: "1 / -1",
1045
1396
  ...e.grid
1046
- }, s = w.getGroupContainer(this);
1047
- let n = e.show;
1048
- return n === void 0 && (n = !0), m("div", {
1049
- style: i
1050
- }, [n && m(s, {
1397
+ }, i = L.getGroupContainer(this);
1398
+ let s = e.show;
1399
+ return s === void 0 && (s = !0), _("div", {
1400
+ style: n
1401
+ }, [s && _(i, {
1051
1402
  schema: e
1052
- }, gr(t = e.children.map((a) => this.runtimeItemProcessor(a))) ? t : {
1053
- default: () => [t]
1403
+ }, Js(r = e.children.map((o) => this.runtimeItemProcessor(o))) ? r : {
1404
+ default: () => [r]
1054
1405
  })]);
1055
1406
  }
1056
1407
  addListItem(e) {
1057
- var t, i;
1058
- if (!((t = this.processor.stableModel[e.field]) != null && t[0]))
1408
+ var r, n;
1409
+ if (!((r = this.processor.stableModel[e.field]) != null && r[0]))
1059
1410
  return Promise.reject({
1060
1411
  code: "0001",
1061
1412
  message: "异步默认值数据正在处理中,请您耐心等待... "
1062
1413
  });
1063
- (i = this.processor.stableModel[e.field]) != null && i[0] && this.model.value[e.field].push(P(this.processor.stableModel[e.field][0])), this.runtimeAdapter.clearValidate(this);
1414
+ (n = this.processor.stableModel[e.field]) != null && n[0] && this.model.value[e.field].push(O(this.processor.stableModel[e.field][0])), this.runtimeAdapter.clearValidate(this);
1064
1415
  }
1065
- deleteListItem(e, t) {
1066
- this.model.value[e.field].splice(t, 1), this.runtimeAdapter.clearValidate(this);
1416
+ deleteListItem(e, r) {
1417
+ this.model.value[e.field].splice(r, 1), this.runtimeAdapter.clearValidate(this);
1067
1418
  }
1068
1419
  runtimeListProcessor(e) {
1069
- const t = {
1420
+ const r = {
1070
1421
  display: "grid",
1071
1422
  gridColumn: "1 / -1",
1072
1423
  ...e.grid
1073
- }, i = this;
1074
- i.model.value[e.field] || (i.model.value[e.field] = [{}]);
1075
- let s = e.show;
1076
- s === void 0 && (s = !0);
1077
- const n = w.getListContainer(this), a = w.getListItemContainer(this);
1078
- return m("div", {
1079
- style: t
1080
- }, [s && m(n, {
1424
+ }, n = this;
1425
+ n.model.value[e.field] || (n.model.value[e.field] = [{}]);
1426
+ let i = e.show;
1427
+ i === void 0 && (i = !0);
1428
+ const s = L.getListContainer(this), o = L.getListItemContainer(this);
1429
+ return _("div", {
1430
+ style: r
1431
+ }, [i && _(s, {
1081
1432
  schema: e
1082
1433
  }, {
1083
1434
  default() {
1084
- return i.model.value[e.field].map((l, f) => m(a, null, {
1435
+ return n.model.value[e.field].map((a, l) => _(o, null, {
1085
1436
  default() {
1086
- return e.children.map((d) => i.runtimeItemProcessor(d, f, l, e));
1437
+ return e.children.map((c) => n.runtimeItemProcessor(c, l, a, e));
1087
1438
  },
1088
1439
  delete({
1089
- container: d
1440
+ container: c
1090
1441
  } = {}) {
1091
- var h;
1092
- const p = d ?? m("button", null, null);
1093
- return Le(m(p, {
1094
- onClick: () => i.deleteListItem(e, f)
1095
- }, null), [[De, ((h = i.model.value[e.field]) == null ? void 0 : h.length) > 1]]);
1442
+ var m;
1443
+ const d = c ?? _("button", null, null);
1444
+ return Jt(_(d, {
1445
+ onClick: () => n.deleteListItem(e, l)
1446
+ }, null), [[Qt, ((m = n.model.value[e.field]) == null ? void 0 : m.length) > 1]]);
1096
1447
  }
1097
1448
  }));
1098
1449
  },
1099
1450
  add({
1100
- container: l
1451
+ container: a
1101
1452
  } = {}) {
1102
- const f = l ?? m("button", null, [Ge("添加")]);
1103
- return m(f, {
1104
- onClick: () => i.addListItem(e)
1453
+ const l = a ?? _("button", null, [kt("添加")]);
1454
+ return _(l, {
1455
+ onClick: () => n.addListItem(e)
1105
1456
  }, null);
1106
1457
  }
1107
1458
  })]);
1108
1459
  }
1109
1460
  runtimeProcessor(e) {
1110
- return e.map((t) => (t.type || (t.type = "item"), this.processorBySchemaType[t.type](t)));
1461
+ return e.map((r) => (r.type || (r.type = "item"), this.processorBySchemaType[r.type](r)));
1111
1462
  }
1112
1463
  exec() {
1113
- var l, f, d, p;
1464
+ var a, l, c, d;
1114
1465
  const e = {
1115
1466
  display: "grid",
1116
1467
  gridColumn: "1 / -1",
1117
1468
  gridAutoColumns: "1fr",
1118
1469
  ...this.grid
1119
- }, t = this, i = b(this.globalNativeFormOverride.props.Form, P((f = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : f.Form) ?? {}), s = b(this.globalNativeFormOverride.slots.Form, P((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = w.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
1120
- return m(n, N(i, {
1470
+ }, r = this, n = b(this.globalNativeFormOverride.props.Form, O((l = (a = this.native) == null ? void 0 : a.props) == null ? void 0 : l.Form) ?? {}), i = b(this.globalNativeFormOverride.slots.Form, O((d = (c = this.native) == null ? void 0 : c.slots) == null ? void 0 : d.Form) ?? {}), s = L.getFormContainer(this), o = this.runtimeAdapter.getFormModelPropName();
1471
+ return _(s, X(n, {
1121
1472
  ref: this.formRef
1122
1473
  }, {
1123
- [a]: this.model.value
1474
+ [o]: this.model.value
1124
1475
  }), {
1125
1476
  default() {
1126
- return m("div", {
1477
+ return _("div", {
1127
1478
  style: e
1128
- }, [t.runtimeProcessor(t.schemas.value)]);
1479
+ }, [r.runtimeProcessor(r.schemas.value)]);
1129
1480
  },
1130
- ...s
1481
+ ...i
1131
1482
  });
1132
1483
  }
1133
1484
  }
1134
- class c {
1485
+ class p {
1135
1486
  static getPreset(e) {
1136
- var t, i, s;
1137
- return (i = (t = this.presets.uiPresets) == null ? void 0 : t[e]) != null && i.extend ? this.presets.uiPresets[(s = this.presets.uiPresets[e]) == null ? void 0 : s.extend] : this.presets.uiPresets[e];
1487
+ var r, n, i;
1488
+ return (n = (r = this.presets.uiPresets) == null ? void 0 : r[e]) != null && n.extend ? this.presets.uiPresets[(i = this.presets.uiPresets[e]) == null ? void 0 : i.extend] : this.presets.uiPresets[e];
1138
1489
  }
1139
1490
  static getUI(e) {
1140
- var t, i, s;
1141
- return (i = (t = this.presets.uiPresets) == null ? void 0 : t[e]) != null && i.extend ? (s = this.presets.uiPresets[e]) == null ? void 0 : s.extend : e;
1491
+ var r, n, i;
1492
+ return (n = (r = this.presets.uiPresets) == null ? void 0 : r[e]) != null && n.extend ? (i = this.presets.uiPresets[e]) == null ? void 0 : i.extend : e;
1142
1493
  }
1143
1494
  }
1144
- u(c, "presets");
1145
- function X({
1146
- parentSchema: r,
1495
+ f(p, "presets");
1496
+ function fe({
1497
+ parentSchema: t,
1147
1498
  schema: e,
1148
- index: t
1499
+ index: r
1149
1500
  }) {
1150
- return r ? `${r.field}.${t}.${e.field}` : e.field;
1501
+ return t ? `${t.field}.${r}.${e.field}` : e.field;
1151
1502
  }
1152
- const yr = {
1503
+ const ks = {
1153
1504
  ArcoVue: {
1154
- getRuntimeField(r) {
1155
- const e = X(r);
1156
- return o.isFunction(e) ? {
1505
+ getRuntimeField(t) {
1506
+ const e = fe(t);
1507
+ return u.isFunction(e) ? {
1157
1508
  field: e()
1158
1509
  } : {
1159
1510
  field: e
1160
1511
  };
1161
1512
  },
1162
- getRuntimeRequired(r) {
1513
+ getRuntimeRequired(t) {
1163
1514
  var e;
1164
- if (r.required)
1165
- if (!r.rules)
1166
- r.rules = [], r.rules.push({
1515
+ if (t.required)
1516
+ if (!t.rules)
1517
+ t.rules = [], t.rules.push({
1167
1518
  required: !0,
1168
- message: `${r.label}是必填项`
1519
+ message: `${t.label}是必填项`
1169
1520
  });
1170
1521
  else {
1171
- const t = r.rules.findIndex((i) => !o.isUndefined(i.required));
1172
- t !== -1 ? (r.rules[t].required = !0, r.rules[t].message = `${r.label}是必填项`) : r.rules.unshift({
1522
+ const r = t.rules.findIndex((n) => !u.isUndefined(n.required));
1523
+ r !== -1 ? (t.rules[r].required = !0, t.rules[r].message = `${t.label}是必填项`) : t.rules.unshift({
1173
1524
  required: !0,
1174
- message: `${r.label}是必填项`
1525
+ message: `${t.label}是必填项`
1175
1526
  });
1176
1527
  }
1177
- else if (r.rules) {
1178
- const t = (e = r.rules) == null ? void 0 : e.findIndex((i) => !!i.required);
1179
- t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
1528
+ else if (t.rules) {
1529
+ const r = (e = t.rules) == null ? void 0 : e.findIndex((n) => !!n.required);
1530
+ r !== -1 ? t.rules[r].required = !1 : t.rules.unshift({
1180
1531
  required: !0,
1181
- message: `${r.label}是必填项`
1532
+ message: `${t.label}是必填项`
1182
1533
  });
1183
1534
  }
1184
1535
  return {
1185
- rules: r.rules
1536
+ rules: t.rules
1186
1537
  };
1187
1538
  },
1188
1539
  getFormModelPropName() {
1189
1540
  return "model";
1190
1541
  },
1191
1542
  formComponentRenderer({
1192
- Component: r,
1543
+ Component: t,
1193
1544
  baseModel: e,
1194
- schema: t,
1195
- placeholder: i,
1196
- componentSlots: s,
1197
- props: n
1545
+ schema: r,
1546
+ placeholder: n,
1547
+ componentSlots: i,
1548
+ props: s
1198
1549
  }) {
1199
- let a;
1200
- return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], m(r, N({
1201
- modelValue: a,
1202
- "onUpdate:modelValue": (l) => {
1203
- o.isFunction(t.field) ? D(e, t.field(), l) : e[t.field] = l;
1550
+ let o;
1551
+ return u.isFunction(r.field) ? o = re(e, r.field()) : o = e[r.field], _(t, X({
1552
+ modelValue: o,
1553
+ "onUpdate:modelValue": (a) => {
1554
+ u.isFunction(r.field) ? ie(e, r.field(), a) : e[r.field] = a;
1204
1555
  },
1205
- placeholder: i
1206
- }, n), {
1207
- ...s
1556
+ placeholder: n
1557
+ }, s), {
1558
+ ...i
1208
1559
  });
1209
1560
  },
1210
- validateForm(r) {
1211
- return new Promise((e, t) => {
1212
- r.runtimeCore.formRef.value.validate((i) => i ? t(i) : e(r.cleanFallbackFields(x(r.runtimeCore.processor.processedModel.value))));
1561
+ validateForm(t) {
1562
+ return new Promise((e, r) => {
1563
+ t.runtimeCore.formRef.value.validate((n) => n ? r(n) : e(t.cleanFallbackFields(z(t.runtimeCore.processor.processedModel.value))));
1213
1564
  });
1214
1565
  },
1215
- clearValidate(r) {
1216
- var e, t;
1217
- (t = (e = r.formRef.value) == null ? void 0 : e.clearValidate) == null || t.call(e);
1566
+ clearValidate(t) {
1567
+ var e, r;
1568
+ (r = (e = t.formRef.value) == null ? void 0 : e.clearValidate) == null || r.call(e);
1218
1569
  }
1219
1570
  },
1220
1571
  NutUI: {
1221
- getRuntimeField(r) {
1222
- const e = X(r);
1223
- return o.isFunction(e) ? {
1572
+ getRuntimeField(t) {
1573
+ const e = fe(t);
1574
+ return u.isFunction(e) ? {
1224
1575
  prop: e()
1225
1576
  } : {
1226
1577
  prop: e
1227
1578
  };
1228
1579
  },
1229
- getRuntimeRequired(r) {
1580
+ getRuntimeRequired(t) {
1230
1581
  var e;
1231
- if (r.required)
1232
- if (!r.rules)
1233
- r.rules = [], r.rules.push({
1582
+ if (t.required)
1583
+ if (!t.rules)
1584
+ t.rules = [], t.rules.push({
1234
1585
  required: !0,
1235
- message: `${r.label}是必填项`
1586
+ message: `${t.label}是必填项`
1236
1587
  });
1237
1588
  else {
1238
- const t = r.rules.findIndex((i) => !o.isUndefined(i.required));
1239
- t !== -1 ? (r.rules[t].required = !0, r.rules[t].message = `${r.label}是必填项`) : r.rules.unshift({
1589
+ const r = t.rules.findIndex((n) => !u.isUndefined(n.required));
1590
+ r !== -1 ? (t.rules[r].required = !0, t.rules[r].message = `${t.label}是必填项`) : t.rules.unshift({
1240
1591
  required: !0,
1241
- message: `${r.label}是必填项`
1592
+ message: `${t.label}是必填项`
1242
1593
  });
1243
1594
  }
1244
- else if (r.rules) {
1245
- const t = (e = r.rules) == null ? void 0 : e.findIndex((i) => !!i.required);
1246
- t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
1595
+ else if (t.rules) {
1596
+ const r = (e = t.rules) == null ? void 0 : e.findIndex((n) => !!n.required);
1597
+ r !== -1 ? t.rules[r].required = !1 : t.rules.unshift({
1247
1598
  required: !0,
1248
- message: `${r.label}是必填项`
1599
+ message: `${t.label}是必填项`
1249
1600
  });
1250
1601
  }
1251
1602
  return {
1252
- rules: r.rules,
1253
- required: r.required
1603
+ rules: t.rules,
1604
+ required: t.required
1254
1605
  };
1255
1606
  },
1256
1607
  getFormModelPropName() {
1257
1608
  return "modelValue";
1258
1609
  },
1259
1610
  formComponentRenderer({
1260
- Component: r,
1611
+ Component: t,
1261
1612
  baseModel: e,
1262
- schema: t,
1263
- placeholder: i,
1264
- componentSlots: s,
1265
- props: n
1613
+ schema: r,
1614
+ placeholder: n,
1615
+ componentSlots: i,
1616
+ props: s
1266
1617
  }) {
1267
- let a;
1268
- return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], m(r, N({
1269
- modelValue: a,
1270
- "onUpdate:modelValue": (l) => {
1271
- o.isFunction(t.field) ? D(e, t.field(), l) : e[t.field] = l;
1618
+ let o;
1619
+ return u.isFunction(r.field) ? o = re(e, r.field()) : o = e[r.field], _(t, X({
1620
+ modelValue: o,
1621
+ "onUpdate:modelValue": (a) => {
1622
+ u.isFunction(r.field) ? ie(e, r.field(), a) : e[r.field] = a;
1272
1623
  },
1273
- placeholder: i
1274
- }, n), {
1275
- ...s
1624
+ placeholder: n
1625
+ }, s), {
1626
+ ...i
1276
1627
  });
1277
1628
  },
1278
- validateForm(r) {
1279
- return new Promise((e, t) => {
1280
- r.runtimeCore.formRef.value.validate().then(({
1281
- valid: i,
1282
- errors: s
1629
+ validateForm(t) {
1630
+ return new Promise((e, r) => {
1631
+ t.runtimeCore.formRef.value.validate().then(({
1632
+ valid: n,
1633
+ errors: i
1283
1634
  }) => {
1284
- i ? e(r.cleanFallbackFields(x(r.runtimeCore.processor.processedModel.value))) : t(s);
1635
+ n ? e(t.cleanFallbackFields(z(t.runtimeCore.processor.processedModel.value))) : r(i);
1285
1636
  });
1286
1637
  });
1287
1638
  },
1288
- clearValidate(r) {
1289
- var e, t;
1290
- (t = (e = r.formRef.value) == null ? void 0 : e.reset) == null || t.call(e);
1639
+ clearValidate(t) {
1640
+ var e, r;
1641
+ (r = (e = t.formRef.value) == null ? void 0 : e.reset) == null || r.call(e);
1291
1642
  }
1292
1643
  },
1293
1644
  NaiveUI: {
1294
- getRuntimeField(r) {
1295
- const e = X(r);
1296
- return o.isFunction(e) ? {
1645
+ getRuntimeField(t) {
1646
+ const e = fe(t);
1647
+ return u.isFunction(e) ? {
1297
1648
  path: e()
1298
1649
  } : {
1299
1650
  path: e
1300
1651
  };
1301
1652
  },
1302
- getRuntimeRequired(r) {
1653
+ getRuntimeRequired(t) {
1303
1654
  var e;
1304
- if (r.required)
1305
- if (!r.rules)
1306
- r.rules = [], r.rules.push({
1655
+ if (t.required)
1656
+ if (!t.rules)
1657
+ t.rules = [], t.rules.push({
1307
1658
  required: !0,
1308
- message: `${r.label}是必填项`,
1659
+ message: `${t.label}是必填项`,
1309
1660
  trigger: ["input", "blur"]
1310
1661
  });
1311
1662
  else {
1312
- const t = r.rules.findIndex((i) => !o.isUndefined(i.required));
1313
- t !== -1 ? (r.rules[t].required = !0, r.rules[t].message = `${r.label}是必填项`) : r.rules.unshift({
1663
+ const r = t.rules.findIndex((n) => !u.isUndefined(n.required));
1664
+ r !== -1 ? (t.rules[r].required = !0, t.rules[r].message = `${t.label}是必填项`) : t.rules.unshift({
1314
1665
  required: !0,
1315
- message: `${r.label}是必填项`,
1666
+ message: `${t.label}是必填项`,
1316
1667
  trigger: ["input", "blur"]
1317
1668
  });
1318
1669
  }
1319
- else if (r.rules) {
1320
- const t = (e = r.rules) == null ? void 0 : e.findIndex((i) => !!i.required);
1321
- t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
1670
+ else if (t.rules) {
1671
+ const r = (e = t.rules) == null ? void 0 : e.findIndex((n) => !!n.required);
1672
+ r !== -1 ? t.rules[r].required = !1 : t.rules.unshift({
1322
1673
  required: !0,
1323
- message: `${r.label}是必填项`,
1674
+ message: `${t.label}是必填项`,
1324
1675
  trigger: ["input", "blur"]
1325
1676
  });
1326
1677
  }
1327
1678
  return {
1328
- rule: r.rules
1679
+ rule: t.rules
1329
1680
  };
1330
1681
  },
1331
1682
  getFormModelPropName() {
1332
1683
  return "model";
1333
1684
  },
1334
1685
  formComponentRenderer({
1335
- Component: r,
1686
+ Component: t,
1336
1687
  baseModel: e,
1337
- schema: t,
1338
- placeholder: i,
1339
- componentSlots: s,
1340
- props: n
1688
+ schema: r,
1689
+ placeholder: n,
1690
+ componentSlots: i,
1691
+ props: s
1341
1692
  }) {
1342
- let a;
1343
- return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], m(r, N({
1344
- value: a,
1345
- "onUpdate:value": (l) => {
1346
- o.isFunction(t.field) ? D(e, t.field(), l) : e[t.field] = l;
1693
+ let o;
1694
+ return u.isFunction(r.field) ? o = re(e, r.field()) : o = e[r.field], _(t, X({
1695
+ value: o,
1696
+ "onUpdate:value": (a) => {
1697
+ u.isFunction(r.field) ? ie(e, r.field(), a) : e[r.field] = a;
1347
1698
  },
1348
- placeholder: i
1349
- }, n), {
1350
- ...s
1699
+ placeholder: n
1700
+ }, s), {
1701
+ ...i
1351
1702
  });
1352
1703
  },
1353
- validateForm(r) {
1354
- return new Promise((e, t) => {
1355
- r.runtimeCore.formRef.value.validate((i) => i ? t(i) : e(r.cleanFallbackFields(x(r.runtimeCore.processor.processedModel.value))));
1704
+ validateForm(t) {
1705
+ return new Promise((e, r) => {
1706
+ t.runtimeCore.formRef.value.validate((n) => n ? r(n) : e(t.cleanFallbackFields(z(t.runtimeCore.processor.processedModel.value))));
1356
1707
  });
1357
1708
  },
1358
- clearValidate(r) {
1359
- var e, t;
1360
- (t = (e = r.formRef.value) == null ? void 0 : e.restoreValidation) == null || t.call(e);
1709
+ clearValidate(t) {
1710
+ var e, r;
1711
+ (r = (e = t.formRef.value) == null ? void 0 : e.restoreValidation) == null || r.call(e);
1361
1712
  }
1362
1713
  }
1363
- }, M = class M {
1714
+ }, q = class q {
1364
1715
  static getPlaceholderPrefixPresetByComponentName() {
1365
1716
  const e = {
1366
1717
  请选择: ["select", "tree"],
1367
1718
  请输入: ["input"]
1368
- }, t = {};
1369
- for (const i in e)
1370
- e[i].forEach((s) => {
1371
- t[s] = i;
1719
+ }, r = {};
1720
+ for (const n in e)
1721
+ e[n].forEach((i) => {
1722
+ r[i] = n;
1372
1723
  });
1373
- return t;
1724
+ return r;
1374
1725
  }
1375
1726
  };
1376
- u(M, "schemaPreset", {
1727
+ f(q, "schemaPreset", {
1377
1728
  type: {
1378
1729
  defaultValue: "item"
1379
1730
  },
@@ -1419,32 +1770,32 @@ u(M, "schemaPreset", {
1419
1770
  runtime: {
1420
1771
  default: void 0
1421
1772
  }
1422
- }), u(M, "componentPropsPreset", {
1773
+ }), f(q, "componentPropsPreset", {
1423
1774
  options: {
1424
1775
  defaultValue: []
1425
1776
  }
1426
1777
  }), // 基于基本功能提出基本预设
1427
- u(M, "placeholderPresetByComponentName", M.getPlaceholderPrefixPresetByComponentName());
1428
- let J = M;
1429
- const C = {
1430
- ...J,
1778
+ f(q, "placeholderPresetByComponentName", q.getPlaceholderPrefixPresetByComponentName());
1779
+ let ye = q;
1780
+ const w = {
1781
+ ...ye,
1431
1782
  adapters: {
1432
- ...yr
1783
+ ...ks
1433
1784
  }
1434
- }, Cr = /* @__PURE__ */ He({
1785
+ }, ro = /* @__PURE__ */ tr({
1435
1786
  props: {
1436
1787
  setup: {
1437
1788
  type: Function,
1438
1789
  required: !0
1439
1790
  }
1440
1791
  },
1441
- setup(r) {
1442
- const e = new vr(r.setup);
1792
+ setup(t) {
1793
+ const e = new Qs(t.setup);
1443
1794
  return () => e.exec();
1444
1795
  }
1445
1796
  });
1446
- function Ir(r) {
1447
- const e = new Ke(r);
1797
+ function no(t) {
1798
+ const e = new Ys(t);
1448
1799
  return [
1449
1800
  e.setup.bind(e),
1450
1801
  {
@@ -1456,46 +1807,46 @@ function Ir(r) {
1456
1807
  }
1457
1808
  ];
1458
1809
  }
1459
- function Or(r) {
1460
- c.presets = r;
1810
+ function io(t) {
1811
+ p.presets = t;
1461
1812
  }
1462
- function re(r, e) {
1463
- return e === "native" && Object.defineProperty(r, "name", {
1464
- value: `__proform_raw_${r.name}`,
1813
+ function Se(t, e) {
1814
+ return e === "native" && Object.defineProperty(t, "name", {
1815
+ value: `__proform_raw_${t.name}`,
1465
1816
  writable: !0
1466
- }), e === "structured_path_parsing_mark" && Object.defineProperty(r, "name", {
1467
- value: `__proform_structured_path_parsing_mark_${r.name}`,
1817
+ }), e === "structured_path_parsing_mark" && Object.defineProperty(t, "name", {
1818
+ value: `__proform_structured_path_parsing_mark_${t.name}`,
1468
1819
  writable: !0
1469
- }), e === "onetime" && Object.defineProperty(r, "name", {
1470
- value: `__proform_onetime_${r.name}`,
1820
+ }), e === "onetime" && Object.defineProperty(t, "name", {
1821
+ value: `__proform_onetime_${t.name}`,
1471
1822
  writable: !0
1472
- }), r;
1823
+ }), t;
1473
1824
  }
1474
- function Sr(r) {
1475
- return re(r, "native");
1825
+ function so(t) {
1826
+ return Se(t, "native");
1476
1827
  }
1477
- function jr(r) {
1478
- return r.__proform_raw_object = !0, r;
1828
+ function oo(t) {
1829
+ return t.__proform_raw_object = !0, t;
1479
1830
  }
1480
- function Fr(r) {
1481
- return re(r, "onetime");
1831
+ function ao(t) {
1832
+ return Se(t, "onetime");
1482
1833
  }
1483
- function wr(r) {
1834
+ function uo(t) {
1484
1835
  function e() {
1485
- return r;
1836
+ return t;
1486
1837
  }
1487
- return re(
1838
+ return Se(
1488
1839
  e,
1489
1840
  "structured_path_parsing_mark"
1490
1841
  );
1491
1842
  }
1492
1843
  export {
1493
- Cr as ProForm,
1494
- Sr as markNativeFunction,
1495
- jr as markNativeObject,
1496
- Fr as markOnetimeFunction,
1497
- wr as markStructuredPathParsing,
1498
- Ir as useForm,
1499
- Or as useFormPresetConfigurer,
1500
- re as useModifiers
1844
+ ro as ProForm,
1845
+ so as markNativeFunction,
1846
+ oo as markNativeObject,
1847
+ ao as markOnetimeFunction,
1848
+ uo as markStructuredPathParsing,
1849
+ no as useForm,
1850
+ io as useFormPresetConfigurer,
1851
+ Se as useModifiers
1501
1852
  };