@oomol-lab/open-flow 0.1.0-beta.1 → 0.1.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/DesignerIcon-DjgOMYI5.js +2065 -0
- package/dist/browser/{createResourceDialog-DXQz0thK.js → createResourceDialog-DNBueSYZ.js} +161 -160
- package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/dist-CP0883sY.js +4 -0
- package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
- package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
- package/dist/browser/{esm-DGQbgYoJ.js → esm-yhVU_KbQ.js} +5 -6
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +6 -3
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +509 -209
- package/dist/browser/flow-change.d.ts +113 -9
- package/dist/browser/flow-change.js +323 -96
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-B2ttnaj9.js +12265 -0
- package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-DDidwd8h.js} +728 -719
- package/dist/browser/{flowWorkspace-DwyxAOBH.js → flowWorkspace-Dr8-Hut9.js} +40821 -42895
- package/dist/browser/{getPseudoElementBounds-ESJExRFX.js → getPseudoElementBounds-5LArT6Xc.js} +1827 -2322
- package/dist/browser/icons-KIOgjHpD.js +730 -0
- package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-DUfLdnUt.js} +1 -1
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
- package/dist/browser/waitNotificationInputs-BPulOxYt.js +26 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +3 -1
- package/dist/browser/workbench.js +1136 -1038
- package/dist/browser/{workbenchSelect-B2s1HV-Y.js → workbenchSelect-CbXrdwxW.js} +479 -478
- package/dist/common/control-api-conformance.d.ts +1 -0
- package/dist/common/control-api-conformance.js +126 -47
- package/dist/common/control-api-errors.d.ts +12 -0
- package/dist/common/control-api.d.ts +60 -15
- package/dist/common/control-api.js +225 -101
- package/dist/common/flow-encoding.js +24 -8
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +1 -0
- package/dist/common/flow-semantics.js +3464 -1113
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/provider-triggers.js +4 -1
- package/dist/common/run-events.js +2 -1
- package/dist/common/run-lifecycle.d.ts +17 -2
- package/dist/common/run-lifecycle.js +53 -2
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +27 -0
- package/dist/common/scheduler.d.ts +65 -4
- package/dist/common/scheduler.js +420 -146
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/browser/diagnostics-BGoGFvHA.js +0 -9237
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-DDidwd8h.js}
RENAMED
|
@@ -1,130 +1,131 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
2
|
import { a, c as o, f as s, i as c, n as l, r as u, t as d, u as f } from "./dist-C46JByB-.js";
|
|
3
3
|
import { o as p, r as m } from "./languages-DgJehE1g.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { a as h, c as g, i as _, n as v, o as y, r as b, t as x } from "./dist-CP0883sY.js";
|
|
5
|
+
//#region ../../node_modules/.bun/@wopjs+disposable@0.1.24/node_modules/@wopjs/disposable/dist/index.mjs
|
|
6
|
+
var S = (e) => !!(e && e.constructor && e.call && e.apply), C = (e) => S(e) || S(e?.dispose);
|
|
7
|
+
function w(e) {
|
|
7
8
|
try {
|
|
8
|
-
e && (
|
|
9
|
+
e && (S(e.dispose) ? e.dispose() : S(e) && e());
|
|
9
10
|
} catch (e) {
|
|
10
11
|
console.error(e);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
var
|
|
14
|
-
function
|
|
14
|
+
var T = (e) => C(e) && S(e.abortable);
|
|
15
|
+
function E() {
|
|
15
16
|
let e;
|
|
16
17
|
function t() {
|
|
17
|
-
e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(
|
|
18
|
+
e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(w));
|
|
18
19
|
}
|
|
19
|
-
return t.dispose = t, t.keys =
|
|
20
|
+
return t.dispose = t, t.keys = k, t.size = N, t.has = O, t.set = M, t.make = A, t.remove = j, t.flush = D, t;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
22
|
+
function D(e) {
|
|
23
|
+
w(e == null ? this : this.remove(e));
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function O(e) {
|
|
25
26
|
return !!this._disposables_?.has(e);
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function k() {
|
|
28
29
|
return (this._disposables_ || []).keys();
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function A(e, t) {
|
|
31
32
|
let n = t();
|
|
32
33
|
if (n) return this.set(e, n);
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function j(e) {
|
|
35
36
|
let t = this._disposables_?.get(e);
|
|
36
37
|
if (t) return this._disposables_?.delete(e), t;
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
return this.flush(e),
|
|
39
|
+
function M(e, t) {
|
|
40
|
+
return this.flush(e), T(t) && t.abortable(() => this.remove(e)), (this._disposables_ ??= /* @__PURE__ */ new Map()).set(e, t), t;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function N() {
|
|
42
43
|
return this._disposables_?.size || 0;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function P(e) {
|
|
45
46
|
function t() {
|
|
46
47
|
let { current: e } = t;
|
|
47
|
-
e && (t.current = null,
|
|
48
|
+
e && (t.current = null, w(e));
|
|
48
49
|
}
|
|
49
|
-
return t.current = e, t.dispose = t, t.is =
|
|
50
|
+
return t.current = e, t.dispose = t, t.is = ee, t.set = ne, t.make = F, t.remove = te, t.flush = t, t;
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function ee(e) {
|
|
52
53
|
return Object.is(this.current, e);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function F(e) {
|
|
55
56
|
let t = e();
|
|
56
57
|
if (t) return this.set(t);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function te() {
|
|
59
60
|
let e = !!this.current;
|
|
60
61
|
return this.current = null, e;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
return (!e || !this.is(e)) && (this.flush(), this.current = e,
|
|
63
|
+
function ne(e) {
|
|
64
|
+
return (!e || !this.is(e)) && (this.flush(), this.current = e, T(e) && e.abortable(() => {
|
|
64
65
|
this.is(e) && this.remove();
|
|
65
66
|
})), e;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function I(e) {
|
|
68
69
|
let t;
|
|
69
70
|
function n() {
|
|
70
|
-
t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(
|
|
71
|
+
t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(w));
|
|
71
72
|
}
|
|
72
|
-
return n.dispose = n, n.size =
|
|
73
|
+
return n.dispose = n, n.size = le, n.has = oe, n.add = ie, n.make = se, n.remove = ce, n.flush = ae, e && n.add(e), n;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
-
this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e),
|
|
75
|
+
function re(e) {
|
|
76
|
+
this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e), T(e) && e.abortable(ce.bind(this, e)));
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
return Array.isArray(e) ? e.forEach(
|
|
78
|
+
function ie(e) {
|
|
79
|
+
return Array.isArray(e) ? e.forEach(re, this) : re.call(this, e), e;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
81
|
+
function ae(e) {
|
|
82
|
+
w(e ? this.remove(e) && e : this);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function oe(e) {
|
|
84
85
|
return !!this._disposables_?.has(e);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function se(e) {
|
|
87
88
|
let t = e();
|
|
88
89
|
return t && this.add(t);
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function ce(e) {
|
|
91
92
|
return !!this._disposables_?.delete(e);
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function le() {
|
|
94
95
|
return this._disposables_?.size || 0;
|
|
95
96
|
}
|
|
96
97
|
//#endregion
|
|
97
98
|
//#region ../../node_modules/.bun/@wopjs+event@0.1.5/node_modules/@wopjs/event/dist/index.mjs
|
|
98
|
-
var
|
|
99
|
+
var ue = /* @__PURE__ */ Symbol.for("send"), de = (e, t) => {
|
|
99
100
|
try {
|
|
100
101
|
e(t);
|
|
101
102
|
} catch (e) {
|
|
102
103
|
console.error(e);
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
|
-
function
|
|
106
|
-
if (process.env.NODE_ENV !== "production" && this.a && (console.error(/* @__PURE__ */ Error("[@wopjs/event:dev] Cannot send. Already disposed.")), console.error(this.a)), this._m) for (let t of this._l)
|
|
107
|
-
else this._l &&
|
|
106
|
+
function fe(e) {
|
|
107
|
+
if (process.env.NODE_ENV !== "production" && this.a && (console.error(/* @__PURE__ */ Error("[@wopjs/event:dev] Cannot send. Already disposed.")), console.error(this.a)), this._m) for (let t of this._l) de(t, e);
|
|
108
|
+
else this._l && de(this._l, e);
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function pe() {
|
|
110
111
|
return this._l ? this._m ? this._l.size : 1 : 0;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function me(e) {
|
|
113
114
|
return this._l ? this._m ? this._l.add(e) : (this._l = /* @__PURE__ */ new Set([this._l, e]), this._m = !0) : this._l = e, () => this.off(e);
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function he(e) {
|
|
116
117
|
let t = !1;
|
|
117
118
|
return e ? this._m ? t = this._l.delete(e) : (t = this._l === e) && (this._l = null) : (t = this.size() > 0) && (this._l = null, this._m = !1), t;
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function ge() {
|
|
120
121
|
process.env.NODE_ENV !== "production" && (this.a = /* @__PURE__ */ Error("[@wopjs/event:dev] Disposed at:")), this.off();
|
|
121
122
|
}
|
|
122
|
-
var
|
|
123
|
+
var _e = () => {
|
|
123
124
|
function e(t) {
|
|
124
125
|
return e.on(t);
|
|
125
126
|
}
|
|
126
|
-
return e.size =
|
|
127
|
-
},
|
|
127
|
+
return e.size = pe, e.on = me, e.off = he, e.dispose = ge, e[ue] = fe, e;
|
|
128
|
+
}, ve = (e, t) => e?.[ue]?.(t), ye = /* @__PURE__ */ Symbol.for("$NONE$ "), be = /* @__PURE__ */ Symbol.for("$TSUR_SPECIES$ "), xe = 1, Se = 2, L = class e {
|
|
128
129
|
static Ok(t) {
|
|
129
130
|
return Object.freeze(new e(t, !0));
|
|
130
131
|
}
|
|
@@ -149,12 +150,12 @@ var xe = () => {
|
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
static isResult(e) {
|
|
152
|
-
return !!e && e[
|
|
153
|
+
return !!e && e[be] === Se;
|
|
153
154
|
}
|
|
154
155
|
static isSame(t, n) {
|
|
155
156
|
return e.isResult(t) && e.isResult(n) ? Object.is(t._value, n._value) : !1;
|
|
156
157
|
}
|
|
157
|
-
[
|
|
158
|
+
[be] = Se;
|
|
158
159
|
_value;
|
|
159
160
|
_ok;
|
|
160
161
|
constructor(e, t) {
|
|
@@ -200,13 +201,13 @@ var xe = () => {
|
|
|
200
201
|
return this._ok ? this : e.Err(t.call(n, this._value));
|
|
201
202
|
}
|
|
202
203
|
transpose() {
|
|
203
|
-
return this._ok ?
|
|
204
|
+
return this._ok ? Te.isOption(this._value) ? this._value.map(e.Ok) : Te.Some(this) : Te.None;
|
|
204
205
|
}
|
|
205
206
|
ok() {
|
|
206
|
-
return this._ok ?
|
|
207
|
+
return this._ok ? Te.Some(this._value) : Te.None;
|
|
207
208
|
}
|
|
208
209
|
err() {
|
|
209
|
-
return this._ok ?
|
|
210
|
+
return this._ok ? Te.None : Te.Some(this._value);
|
|
210
211
|
}
|
|
211
212
|
unwrap(e = "called `Result.unwrap()` on an `Err`") {
|
|
212
213
|
if (this._ok) return this._value;
|
|
@@ -234,16 +235,16 @@ var xe = () => {
|
|
|
234
235
|
toString() {
|
|
235
236
|
return `${this._ok ? "Ok" : "Err"}(${this._value})`;
|
|
236
237
|
}
|
|
237
|
-
},
|
|
238
|
+
}, Ce = L.Ok, we = L.Err, Te = class e {
|
|
238
239
|
static Some(t) {
|
|
239
240
|
return Object.freeze(new e(t));
|
|
240
241
|
}
|
|
241
|
-
static None = /* @__PURE__ */ e.Some(
|
|
242
|
+
static None = /* @__PURE__ */ e.Some(ye);
|
|
242
243
|
static from(t, n, r) {
|
|
243
244
|
return (n ? n.call(r, t) : t) ? e.Some(t) : e.None;
|
|
244
245
|
}
|
|
245
246
|
static isOption(e) {
|
|
246
|
-
return !!e && e[
|
|
247
|
+
return !!e && e[be] === xe;
|
|
247
248
|
}
|
|
248
249
|
static isSame(t, n) {
|
|
249
250
|
return e.isOption(t) && e.isOption(n) ? Object.is(t._value, n._value) : !1;
|
|
@@ -251,7 +252,7 @@ var xe = () => {
|
|
|
251
252
|
static unwrapOr(t) {
|
|
252
253
|
return e.isOption(t) ? t.unwrapOr() : t;
|
|
253
254
|
}
|
|
254
|
-
[
|
|
255
|
+
[be] = xe;
|
|
255
256
|
_value;
|
|
256
257
|
constructor(e) {
|
|
257
258
|
this._value = e;
|
|
@@ -260,10 +261,10 @@ var xe = () => {
|
|
|
260
261
|
this.isSome() && (yield this._value);
|
|
261
262
|
}
|
|
262
263
|
isSome() {
|
|
263
|
-
return this._value !==
|
|
264
|
+
return this._value !== ye;
|
|
264
265
|
}
|
|
265
266
|
isNone() {
|
|
266
|
-
return this._value ===
|
|
267
|
+
return this._value === ye;
|
|
267
268
|
}
|
|
268
269
|
isSomeAnd(e, t) {
|
|
269
270
|
return this.isSome() && e.call(t, this._value);
|
|
@@ -305,13 +306,13 @@ var xe = () => {
|
|
|
305
306
|
return this.isSome() ? e.Some(t.call(n, this._value)) : e.None;
|
|
306
307
|
}
|
|
307
308
|
transpose() {
|
|
308
|
-
return this.isSome() ?
|
|
309
|
+
return this.isSome() ? L.isResult(this._value) ? this._value.map(e.Some) : L.Ok(this) : L.Ok(e.None);
|
|
309
310
|
}
|
|
310
311
|
okOr(e) {
|
|
311
|
-
return this.isSome() ?
|
|
312
|
+
return this.isSome() ? L.Ok(this._value) : L.Err(e);
|
|
312
313
|
}
|
|
313
314
|
okOrElse(e, t) {
|
|
314
|
-
return this.isSome() ?
|
|
315
|
+
return this.isSome() ? L.Ok(this._value) : L.Err(e.call(t));
|
|
315
316
|
}
|
|
316
317
|
unwrap(e = "called `Option.unwrap()` on a `None` value") {
|
|
317
318
|
if (this.isSome()) return this._value;
|
|
@@ -331,91 +332,91 @@ var xe = () => {
|
|
|
331
332
|
}
|
|
332
333
|
};
|
|
333
334
|
Array.isArray;
|
|
334
|
-
var
|
|
335
|
+
var Ee = (e) => !!e && e.constructor === Object, De = (e) => {
|
|
335
336
|
try {
|
|
336
337
|
return Number(e) === e;
|
|
337
338
|
} catch {
|
|
338
339
|
return !1;
|
|
339
340
|
}
|
|
340
|
-
},
|
|
341
|
+
}, Oe = (e) => Object.prototype.toString.call(e) === "[object Date]", ke = (e, t) => {
|
|
341
342
|
if (Object.is(e, t)) return !0;
|
|
342
343
|
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
343
344
|
if (e instanceof RegExp && t instanceof RegExp) return e.toString() === t.toString();
|
|
344
345
|
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
345
346
|
let n = Reflect.ownKeys(e), r = Reflect.ownKeys(t);
|
|
346
347
|
if (n.length !== r.length) return !1;
|
|
347
|
-
for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !
|
|
348
|
+
for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !ke(e[n[r]], t[n[r]])) return !1;
|
|
348
349
|
return !0;
|
|
349
|
-
},
|
|
350
|
-
function
|
|
350
|
+
}, Ae = (e) => e === "__proto__", je = (e, t, n) => t + e * (n - t), Me = (e) => e;
|
|
351
|
+
function Ne(e, t) {
|
|
351
352
|
let n = e.findIndex(t);
|
|
352
353
|
return n >= 0 ? n : e.length;
|
|
353
354
|
}
|
|
354
|
-
var
|
|
355
|
+
var R = /*#__PURE__*/ Object.freeze({ equal: ke }), Pe = {
|
|
355
356
|
true: "True",
|
|
356
357
|
false: "False"
|
|
357
358
|
};
|
|
358
|
-
function
|
|
359
|
-
var
|
|
360
|
-
function
|
|
359
|
+
function Fe() {}
|
|
360
|
+
var Ie = 2147483647;
|
|
361
|
+
function Le(e, t, n) {
|
|
361
362
|
return e < t ? t : e > n ? n : e;
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
+
function Re(e) {
|
|
364
365
|
return typeof e == "function";
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
+
function ze(e) {
|
|
367
368
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
+
function z(e) {
|
|
370
371
|
return Array.isArray(e) ? e : void 0;
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
-
return e.some(
|
|
373
|
+
function B(e) {
|
|
374
|
+
return e.some(y) ? e : void 0;
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function Be(e) {
|
|
376
377
|
return e?.[e.length - 1];
|
|
377
378
|
}
|
|
378
|
-
function
|
|
379
|
+
function Ve(e) {
|
|
379
380
|
return e.filter((e) => e != null);
|
|
380
381
|
}
|
|
381
|
-
var
|
|
382
|
-
function
|
|
382
|
+
var He = Symbol("Negative");
|
|
383
|
+
function Ue(e, t, n) {
|
|
383
384
|
let r = [];
|
|
384
385
|
for (let i = 0; i < e.length; i++) {
|
|
385
386
|
let a = t.call(n, e[i], i);
|
|
386
|
-
a !==
|
|
387
|
+
a !== He && r.push(a);
|
|
387
388
|
}
|
|
388
389
|
return r;
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
391
|
+
function We(e) {
|
|
392
|
+
return _(e) ? e : {};
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
394
|
+
function V(e) {
|
|
395
|
+
if (_(e)) return e;
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
-
if (
|
|
398
|
-
for (let t of Object.values(e)) if (
|
|
397
|
+
function Ge(e) {
|
|
398
|
+
if (_(e)) {
|
|
399
|
+
for (let t of Object.values(e)) if (b(t)) return e;
|
|
399
400
|
}
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
if (
|
|
402
|
+
function Ke(e, t) {
|
|
403
|
+
if (_(e)) {
|
|
403
404
|
let n = !1, r = {};
|
|
404
405
|
for (let [i, a] of Object.entries(e)) t(a) && (n = !0, r[i] = a);
|
|
405
406
|
if (n) return r;
|
|
406
407
|
}
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
+
function qe(e) {
|
|
409
410
|
return e === !0;
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function Je(e) {
|
|
412
413
|
return e === !0 || void 0;
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
-
return
|
|
415
|
+
function Ye(e) {
|
|
416
|
+
return Ke(e, qe);
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
if (
|
|
418
|
+
function Xe(e) {
|
|
419
|
+
if (h(e)) return e;
|
|
419
420
|
if (e == null) return "";
|
|
420
421
|
try {
|
|
421
422
|
return JSON.stringify(e);
|
|
@@ -427,7 +428,7 @@ function $e(e) {
|
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
|
-
function
|
|
431
|
+
function Ze(e) {
|
|
431
432
|
if (e === void 0) return "undefined";
|
|
432
433
|
try {
|
|
433
434
|
return JSON.stringify(e);
|
|
@@ -439,29 +440,29 @@ function et(e) {
|
|
|
439
440
|
}
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
-
return
|
|
443
|
+
function H(e) {
|
|
444
|
+
return h(e) ? e : void 0;
|
|
444
445
|
}
|
|
445
|
-
function
|
|
446
|
-
return e &&
|
|
446
|
+
function Qe(e) {
|
|
447
|
+
return e && h(e) ? e : void 0;
|
|
447
448
|
}
|
|
448
|
-
function
|
|
449
|
+
function $e(e, t) {
|
|
449
450
|
let n = Number(e);
|
|
450
451
|
return Number.isFinite(n) ? t ? Math.floor(n) : n : 0;
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
-
return
|
|
453
|
+
function U(e) {
|
|
454
|
+
return De(e) ? e : void 0;
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
-
return
|
|
456
|
+
function et(e) {
|
|
457
|
+
return De(e) && e > 0;
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
-
return
|
|
459
|
+
function tt(e) {
|
|
460
|
+
return v(e) ? e : !1;
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
-
return
|
|
462
|
+
function nt(e) {
|
|
463
|
+
return v(e) ? e : void 0;
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function rt(e, t) {
|
|
465
466
|
let n = 0;
|
|
466
467
|
for (let r of t) if (r.startsWith(e)) {
|
|
467
468
|
if (r === e) {
|
|
@@ -473,7 +474,7 @@ function U(e, t) {
|
|
|
473
474
|
}
|
|
474
475
|
return n === 0 ? e : `${e}${n + 1}`;
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
+
function it(e, t, n = Object.is) {
|
|
477
478
|
return (r) => {
|
|
478
479
|
n(e.value?.[t], r) || e.set({
|
|
479
480
|
...e.value,
|
|
@@ -489,64 +490,64 @@ function W(e, t, n = Object.is) {
|
|
|
489
490
|
});
|
|
490
491
|
};
|
|
491
492
|
}
|
|
492
|
-
function
|
|
493
|
+
function at(e, t, n) {
|
|
493
494
|
for (let n = 0; n < t.length; n++) e = e ? e[t[n]] : void 0;
|
|
494
495
|
return e === void 0 ? n : e;
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function ot(e) {
|
|
497
498
|
try {
|
|
498
|
-
return
|
|
499
|
+
return Ce(JSON.parse(e));
|
|
499
500
|
} catch (e) {
|
|
500
|
-
return
|
|
501
|
+
return we(e + "");
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
|
-
function
|
|
504
|
+
function st(e) {
|
|
504
505
|
try {
|
|
505
506
|
return JSON.stringify(e, null, 2);
|
|
506
507
|
} catch (e) {
|
|
507
508
|
return console.warn(e), "{}";
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
+
function ct(e) {
|
|
511
512
|
return !!e && (e.startsWith("self::") || e.startsWith("./") || e.startsWith("../"));
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
+
function lt(e) {
|
|
514
515
|
return e ? () => e.set(!e.value) : void 0;
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function ut(e) {
|
|
517
518
|
return !!e && e.startsWith("%") && e.endsWith("%") && e.length > 2;
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
-
return
|
|
520
|
+
function dt(e) {
|
|
521
|
+
return ut(e) ? e.slice(1, -1) : void 0;
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
-
return
|
|
523
|
+
function ft(e) {
|
|
524
|
+
return ut(e) ? void 0 : e;
|
|
524
525
|
}
|
|
525
|
-
var
|
|
526
|
-
function
|
|
527
|
-
let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0,
|
|
528
|
-
if (n && !
|
|
526
|
+
var pt = 64;
|
|
527
|
+
function mt(e, t) {
|
|
528
|
+
let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0, pt).replace(/-+$/, "");
|
|
529
|
+
if (n && !Ae(n)) {
|
|
529
530
|
let e = n, r = 1;
|
|
530
531
|
for (; t[e] != null;) e = `${n}${r++}`;
|
|
531
532
|
return e;
|
|
532
533
|
}
|
|
533
534
|
for (let e = 1;; e++) if (n = `key${e}`, t[n] == null) return n;
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
-
|
|
536
|
+
function ht(e, t) {
|
|
537
|
+
Ae(e) && (e = "_" + e);
|
|
537
538
|
let n = e, r = 1;
|
|
538
539
|
for (; t[n] != null;) n = `${e}${r++}`;
|
|
539
540
|
return n;
|
|
540
541
|
}
|
|
541
|
-
function
|
|
542
|
+
function gt(e) {
|
|
542
543
|
return /^[\x09\x0A\x0D\x20-\x7E]+$/.test(e);
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
+
function _t(e, t) {
|
|
545
546
|
return Object.hasOwn(e, t) ? e[t] : void 0;
|
|
546
547
|
}
|
|
547
548
|
//#endregion
|
|
548
549
|
//#region ../../node_modules/.bun/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js
|
|
549
|
-
var
|
|
550
|
+
var vt = /* @__PURE__ */ i(((e, t) => {
|
|
550
551
|
(function(n, r) {
|
|
551
552
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
552
553
|
})(e, (function() {
|
|
@@ -840,7 +841,7 @@ var bt = /* @__PURE__ */ i(((e, t) => {
|
|
|
840
841
|
return w(1e3 * e);
|
|
841
842
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
842
843
|
}));
|
|
843
|
-
})),
|
|
844
|
+
})), yt = /* @__PURE__ */ i(((e, t) => {
|
|
844
845
|
(function(n, r) {
|
|
845
846
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
|
|
846
847
|
})(e, (function() {
|
|
@@ -996,7 +997,7 @@ var bt = /* @__PURE__ */ i(((e, t) => {
|
|
|
996
997
|
};
|
|
997
998
|
};
|
|
998
999
|
}));
|
|
999
|
-
})),
|
|
1000
|
+
})), bt = /* @__PURE__ */ i(((e, t) => {
|
|
1000
1001
|
(function(n, r) {
|
|
1001
1002
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_localeData = r();
|
|
1002
1003
|
})(e, (function() {
|
|
@@ -1090,7 +1091,7 @@ var bt = /* @__PURE__ */ i(((e, t) => {
|
|
|
1090
1091
|
};
|
|
1091
1092
|
};
|
|
1092
1093
|
}));
|
|
1093
|
-
})),
|
|
1094
|
+
})), xt = /* @__PURE__ */ i(((e, t) => {
|
|
1094
1095
|
(function(n, r) {
|
|
1095
1096
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_weekday = r();
|
|
1096
1097
|
})(e, (function() {
|
|
@@ -1101,52 +1102,52 @@ var bt = /* @__PURE__ */ i(((e, t) => {
|
|
|
1101
1102
|
};
|
|
1102
1103
|
};
|
|
1103
1104
|
}));
|
|
1104
|
-
})),
|
|
1105
|
-
|
|
1106
|
-
var
|
|
1105
|
+
})), St = /* @__PURE__ */ n(vt(), 1), Ct = /* @__PURE__ */ n(yt(), 1), wt = /* @__PURE__ */ n(bt(), 1), Tt = /* @__PURE__ */ n(xt(), 1);
|
|
1106
|
+
St.default.extend(Tt.default), St.default.extend(wt.default), St.default.extend(Ct.default);
|
|
1107
|
+
var Et = [
|
|
1107
1108
|
"date",
|
|
1108
1109
|
"time",
|
|
1109
1110
|
"date-time"
|
|
1110
1111
|
];
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1112
|
+
function Dt(e) {
|
|
1113
|
+
return Et.includes(e);
|
|
1113
1114
|
}
|
|
1114
|
-
function
|
|
1115
|
-
let t = (0,
|
|
1115
|
+
function Ot(e) {
|
|
1116
|
+
let t = (0, St.default)(e);
|
|
1116
1117
|
return t.isValid() ? t.toDate() : /* @__PURE__ */ new Date();
|
|
1117
1118
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
1119
|
+
function kt(e) {
|
|
1120
|
+
return Et.includes(e) ? e : At;
|
|
1120
1121
|
}
|
|
1121
|
-
var
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1122
|
+
var At = "date-time", jt = /*#__PURE__*/ Et.map((e) => ({ value: e }));
|
|
1123
|
+
function Mt(e) {
|
|
1124
|
+
return jt.find((t) => t.value === e);
|
|
1124
1125
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return (0,
|
|
1126
|
+
function Nt(e, t = At) {
|
|
1127
|
+
return (0, St.default)(e).format(Pt(t));
|
|
1127
1128
|
}
|
|
1128
|
-
function
|
|
1129
|
+
function Pt(e) {
|
|
1129
1130
|
switch (e) {
|
|
1130
1131
|
case "date": return "YYYY-MM-DD";
|
|
1131
1132
|
case "time": return "HH:mm:ssZ";
|
|
1132
1133
|
case "date-time": return "YYYY-MM-DDTHH:mm:ssZ";
|
|
1133
1134
|
}
|
|
1134
1135
|
}
|
|
1135
|
-
var
|
|
1136
|
+
var Ft = [
|
|
1136
1137
|
"RGB",
|
|
1137
1138
|
"HSV",
|
|
1138
1139
|
"HEX",
|
|
1139
1140
|
"HEX8"
|
|
1140
1141
|
];
|
|
1141
|
-
function
|
|
1142
|
-
return
|
|
1142
|
+
function It(e) {
|
|
1143
|
+
return Ft.includes(e);
|
|
1143
1144
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1145
|
+
function Lt(e) {
|
|
1146
|
+
return It(e) ? e : "HEX";
|
|
1146
1147
|
}
|
|
1147
|
-
var
|
|
1148
|
-
function
|
|
1149
|
-
return
|
|
1148
|
+
var Rt = /*#__PURE__*/ Ft.map((e) => ({ value: e }));
|
|
1149
|
+
function zt(e) {
|
|
1150
|
+
return Rt.find((t) => t.value === e);
|
|
1150
1151
|
}
|
|
1151
1152
|
//#endregion
|
|
1152
1153
|
//#region src/designer/browser/jsonSchema/preset.ts
|
|
@@ -1231,12 +1232,17 @@ var G = {
|
|
|
1231
1232
|
value: "binary",
|
|
1232
1233
|
label: "Binary"
|
|
1233
1234
|
},
|
|
1235
|
+
literal: {
|
|
1236
|
+
icon: "i-carbon:code",
|
|
1237
|
+
value: "literal",
|
|
1238
|
+
label: "Literal"
|
|
1239
|
+
},
|
|
1234
1240
|
null: {
|
|
1235
1241
|
icon: "i-carbon:null-sign",
|
|
1236
1242
|
value: "null",
|
|
1237
1243
|
label: "Null"
|
|
1238
1244
|
}
|
|
1239
|
-
},
|
|
1245
|
+
}, Bt = (e) => Object.hasOwn(G, e), Vt = {
|
|
1240
1246
|
close: "i-codicon:close",
|
|
1241
1247
|
gotoFile: "i-codicon:go-to-file",
|
|
1242
1248
|
objectAdd: "i-carbon:add-alt",
|
|
@@ -1244,13 +1250,13 @@ var G = {
|
|
|
1244
1250
|
package: "i-codicon:package",
|
|
1245
1251
|
settings: "i-codicon:gear",
|
|
1246
1252
|
tool: "i-codicon:symbol-property"
|
|
1247
|
-
},
|
|
1253
|
+
}, Ht = (e) => Bt(e) ? G[e].icon : Vt[e], Ut = (e) => Ht(J(e)), Wt = (e, t) => {
|
|
1248
1254
|
let n = G[t];
|
|
1249
1255
|
return {
|
|
1250
1256
|
...n,
|
|
1251
1257
|
label: e(`preset.${n.value}`)
|
|
1252
1258
|
};
|
|
1253
|
-
},
|
|
1259
|
+
}, Gt = (e, t) => Ue([
|
|
1254
1260
|
G.string,
|
|
1255
1261
|
G.number,
|
|
1256
1262
|
G.boolean,
|
|
@@ -1280,11 +1286,11 @@ var G = {
|
|
|
1280
1286
|
]
|
|
1281
1287
|
}
|
|
1282
1288
|
], (n) => {
|
|
1283
|
-
if (
|
|
1284
|
-
let r =
|
|
1289
|
+
if (Kt(n)) {
|
|
1290
|
+
let r = Ue(n.options, (n) => t(n.value) ? {
|
|
1285
1291
|
...n,
|
|
1286
1292
|
label: e(`preset.${n.value}`)
|
|
1287
|
-
} :
|
|
1293
|
+
} : He);
|
|
1288
1294
|
if (r.length > 0) return {
|
|
1289
1295
|
...n,
|
|
1290
1296
|
label: e(`preset.${n.label}`),
|
|
@@ -1294,9 +1300,10 @@ var G = {
|
|
|
1294
1300
|
...n,
|
|
1295
1301
|
label: e(`preset.${n.value}`)
|
|
1296
1302
|
};
|
|
1297
|
-
return
|
|
1298
|
-
}),
|
|
1299
|
-
binary: { contentMediaType:
|
|
1303
|
+
return He;
|
|
1304
|
+
}), Kt = (e) => "options" in e, qt = "ui:widget", K = "ui:options", Jt = { binary: "oomol/bin" }, Yt = {
|
|
1305
|
+
binary: { contentMediaType: Jt.binary },
|
|
1306
|
+
literal: {},
|
|
1300
1307
|
any: {},
|
|
1301
1308
|
null: { type: "null" },
|
|
1302
1309
|
boolean: { type: "boolean" },
|
|
@@ -1309,12 +1316,12 @@ var G = {
|
|
|
1309
1316
|
},
|
|
1310
1317
|
color: {
|
|
1311
1318
|
type: "string",
|
|
1312
|
-
[
|
|
1319
|
+
[qt]: "color",
|
|
1313
1320
|
[K]: { colorType: "HEX" }
|
|
1314
1321
|
},
|
|
1315
1322
|
text: {
|
|
1316
1323
|
type: "string",
|
|
1317
|
-
[
|
|
1324
|
+
[qt]: "text"
|
|
1318
1325
|
},
|
|
1319
1326
|
select: {
|
|
1320
1327
|
enum: [],
|
|
@@ -1351,9 +1358,9 @@ var G = {
|
|
|
1351
1358
|
[K]: { labels: [] }
|
|
1352
1359
|
}
|
|
1353
1360
|
};
|
|
1354
|
-
function
|
|
1355
|
-
let n = structuredClone(
|
|
1356
|
-
return t &&
|
|
1361
|
+
function Xt(e, t) {
|
|
1362
|
+
let n = structuredClone(Yt[e]);
|
|
1363
|
+
return t && sn(n, t), n;
|
|
1357
1364
|
}
|
|
1358
1365
|
function q(e) {
|
|
1359
1366
|
if (e && e.length > 0) {
|
|
@@ -1363,11 +1370,11 @@ function q(e) {
|
|
|
1363
1370
|
let e = n.json_schema;
|
|
1364
1371
|
e && (t = e);
|
|
1365
1372
|
}
|
|
1366
|
-
return t ||
|
|
1373
|
+
return t || Xt("any");
|
|
1367
1374
|
}
|
|
1368
|
-
return
|
|
1375
|
+
return Xt("any");
|
|
1369
1376
|
}
|
|
1370
|
-
var
|
|
1377
|
+
var Zt = {
|
|
1371
1378
|
null: null,
|
|
1372
1379
|
boolean: !1,
|
|
1373
1380
|
integer: 0,
|
|
@@ -1375,11 +1382,11 @@ var $t = {
|
|
|
1375
1382
|
string: "",
|
|
1376
1383
|
color: "#7d7fe9",
|
|
1377
1384
|
select: (e) => {
|
|
1378
|
-
let t =
|
|
1385
|
+
let t = ze(e?.enum)?.[0];
|
|
1379
1386
|
return t === void 0 ? null : t;
|
|
1380
1387
|
},
|
|
1381
1388
|
multiSelect: [],
|
|
1382
|
-
date: (e) =>
|
|
1389
|
+
date: (e) => Nt(/* @__PURE__ */ new Date(), kt(e?.format)),
|
|
1383
1390
|
text: "",
|
|
1384
1391
|
any: void 0,
|
|
1385
1392
|
object: {},
|
|
@@ -1387,22 +1394,24 @@ var $t = {
|
|
|
1387
1394
|
anyOf: void 0,
|
|
1388
1395
|
allOf: void 0,
|
|
1389
1396
|
oneOf: void 0,
|
|
1390
|
-
binary: void 0
|
|
1397
|
+
binary: void 0,
|
|
1398
|
+
literal: (e) => e?.const
|
|
1391
1399
|
};
|
|
1392
|
-
function
|
|
1393
|
-
let n =
|
|
1394
|
-
return
|
|
1400
|
+
function Qt(e, t) {
|
|
1401
|
+
let n = Zt[e];
|
|
1402
|
+
return Re(n) ? n(t) : n;
|
|
1395
1403
|
}
|
|
1396
1404
|
function J(e) {
|
|
1397
1405
|
let t = e;
|
|
1398
1406
|
if (!t) return "any";
|
|
1399
1407
|
switch (t.contentMediaType) {
|
|
1400
|
-
case
|
|
1408
|
+
case Yt.binary.contentMediaType: return "binary";
|
|
1401
1409
|
}
|
|
1402
|
-
if (t["ui:widget"] &&
|
|
1410
|
+
if (t["ui:widget"] && Bt(t["ui:widget"])) return t[qt];
|
|
1403
1411
|
if (t.anyOf) return "anyOf";
|
|
1404
1412
|
if (t.oneOf) return "oneOf";
|
|
1405
1413
|
if (t.allOf) return "any";
|
|
1414
|
+
if (Object.hasOwn(t, "const")) return "literal";
|
|
1406
1415
|
if (t.enum) return "select";
|
|
1407
1416
|
switch (t.type) {
|
|
1408
1417
|
case "null":
|
|
@@ -1411,20 +1420,20 @@ function J(e) {
|
|
|
1411
1420
|
case "number":
|
|
1412
1421
|
case "object": return t.type;
|
|
1413
1422
|
case "array": return t.uniqueItems ? "multiSelect" : "array";
|
|
1414
|
-
case "string": return
|
|
1423
|
+
case "string": return Dt(t.format) ? "date" : "string";
|
|
1415
1424
|
default: return "any";
|
|
1416
1425
|
}
|
|
1417
1426
|
}
|
|
1418
|
-
function
|
|
1427
|
+
function $t(e) {
|
|
1419
1428
|
return e == "any";
|
|
1420
1429
|
}
|
|
1421
|
-
function
|
|
1430
|
+
function en(e) {
|
|
1422
1431
|
return e == "any" || e == "anyOf" || e == "oneOf" || e == "allOf";
|
|
1423
1432
|
}
|
|
1424
|
-
function
|
|
1425
|
-
return !
|
|
1433
|
+
function tn(e) {
|
|
1434
|
+
return !en(e) && e !== "binary";
|
|
1426
1435
|
}
|
|
1427
|
-
function
|
|
1436
|
+
function nn(e) {
|
|
1428
1437
|
switch (e) {
|
|
1429
1438
|
case "string":
|
|
1430
1439
|
case "text":
|
|
@@ -1439,12 +1448,12 @@ function an(e) {
|
|
|
1439
1448
|
case "array": return "array";
|
|
1440
1449
|
}
|
|
1441
1450
|
}
|
|
1442
|
-
function
|
|
1451
|
+
function rn(e) {
|
|
1443
1452
|
if (e === null) return "null";
|
|
1444
1453
|
let t = typeof e;
|
|
1445
1454
|
return t === "object" && Array.isArray(e) ? "array" : t;
|
|
1446
1455
|
}
|
|
1447
|
-
function
|
|
1456
|
+
function an(e) {
|
|
1448
1457
|
switch (e) {
|
|
1449
1458
|
case "string":
|
|
1450
1459
|
case "number":
|
|
@@ -1455,7 +1464,7 @@ function sn(e) {
|
|
|
1455
1464
|
default: return "any";
|
|
1456
1465
|
}
|
|
1457
1466
|
}
|
|
1458
|
-
function
|
|
1467
|
+
function on(e) {
|
|
1459
1468
|
let t = J(e);
|
|
1460
1469
|
if (t === "anyOf" || t === "oneOf" || t === "allOf") return (e[t]?.length ?? 0) || 1;
|
|
1461
1470
|
if (t === "string") return 4;
|
|
@@ -1463,76 +1472,76 @@ function cn(e) {
|
|
|
1463
1472
|
if (t === "color" || t === "date") return 1;
|
|
1464
1473
|
if (t === "integer" || t === "number") return 5;
|
|
1465
1474
|
if (t === "object") {
|
|
1466
|
-
let t =
|
|
1475
|
+
let t = V(e.properties);
|
|
1467
1476
|
return (t ? Object.keys(t).length : 1) + 1;
|
|
1468
1477
|
}
|
|
1469
1478
|
if (t === "select") {
|
|
1470
|
-
let t =
|
|
1479
|
+
let t = z(e.enum)?.length ?? 0;
|
|
1471
1480
|
return t ? t * 2 : 1;
|
|
1472
1481
|
}
|
|
1473
1482
|
if (t === "multiSelect") {
|
|
1474
|
-
let t =
|
|
1483
|
+
let t = z(V(e.items)?.enum)?.length ?? 0;
|
|
1475
1484
|
return t ? t * 2 : 1;
|
|
1476
1485
|
}
|
|
1477
1486
|
return 0;
|
|
1478
1487
|
}
|
|
1479
|
-
function
|
|
1480
|
-
let n =
|
|
1481
|
-
n &&
|
|
1488
|
+
function sn(e, t) {
|
|
1489
|
+
let n = cn(t);
|
|
1490
|
+
n && dn(e, n);
|
|
1482
1491
|
}
|
|
1483
|
-
function
|
|
1492
|
+
function cn(e) {
|
|
1484
1493
|
switch (J(e)) {
|
|
1485
|
-
case "select": return
|
|
1486
|
-
case "multiSelect": return
|
|
1494
|
+
case "select": return ln(e.enum, e[K]?.labels);
|
|
1495
|
+
case "multiSelect": return ln(V(e.items)?.enum, e[K]?.labels);
|
|
1487
1496
|
}
|
|
1488
1497
|
}
|
|
1489
|
-
function
|
|
1490
|
-
if (
|
|
1498
|
+
function ln(e, t) {
|
|
1499
|
+
if (un(e) && e.length > 0) return {
|
|
1491
1500
|
enum: e,
|
|
1492
|
-
labels:
|
|
1501
|
+
labels: un(t) ? t : void 0
|
|
1493
1502
|
};
|
|
1494
1503
|
}
|
|
1495
|
-
function
|
|
1496
|
-
return
|
|
1504
|
+
function un(e) {
|
|
1505
|
+
return x(e);
|
|
1497
1506
|
}
|
|
1498
|
-
function
|
|
1507
|
+
function dn(e, t) {
|
|
1499
1508
|
switch (J(e)) {
|
|
1500
1509
|
case "select":
|
|
1501
1510
|
e.enum = t.enum, e[K] = {
|
|
1502
|
-
...
|
|
1511
|
+
...V(e[K]),
|
|
1503
1512
|
labels: t.labels ?? []
|
|
1504
1513
|
};
|
|
1505
1514
|
break;
|
|
1506
1515
|
case "multiSelect": e.items = {
|
|
1507
|
-
...
|
|
1516
|
+
...V(e.items),
|
|
1508
1517
|
enum: t.enum
|
|
1509
1518
|
}, e[K] = {
|
|
1510
|
-
...
|
|
1519
|
+
...V(e[K]),
|
|
1511
1520
|
labels: t.labels ?? []
|
|
1512
1521
|
};
|
|
1513
1522
|
}
|
|
1514
1523
|
}
|
|
1515
1524
|
//#endregion
|
|
1516
1525
|
//#region src/base/common/type.ts
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1526
|
+
function fn(e) {
|
|
1527
|
+
return _(e);
|
|
1519
1528
|
}
|
|
1520
1529
|
//#endregion
|
|
1521
1530
|
//#region src/designer/browser/llm/widget.ts
|
|
1522
|
-
function
|
|
1523
|
-
if (!
|
|
1531
|
+
function pn(e) {
|
|
1532
|
+
if (!fn(e)) return;
|
|
1524
1533
|
let t = e["ui:widget"];
|
|
1525
1534
|
if (t == "llm/messages") return "llm/messages";
|
|
1526
1535
|
if (t == "llm/model") return "llm/model";
|
|
1527
1536
|
}
|
|
1528
|
-
function
|
|
1529
|
-
if (!
|
|
1537
|
+
function mn(e) {
|
|
1538
|
+
if (!fn(e)) return;
|
|
1530
1539
|
let t = e["ui:options"];
|
|
1531
|
-
if (
|
|
1540
|
+
if (fn(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
|
|
1532
1541
|
}
|
|
1533
1542
|
//#endregion
|
|
1534
1543
|
//#region src/localization/common/localization.ts
|
|
1535
|
-
function
|
|
1544
|
+
function hn(e, t) {
|
|
1536
1545
|
let n = [];
|
|
1537
1546
|
for (let r of p(t)) {
|
|
1538
1547
|
let t = e[r];
|
|
@@ -1542,23 +1551,23 @@ function _n(e, t) {
|
|
|
1542
1551
|
}
|
|
1543
1552
|
//#endregion
|
|
1544
1553
|
//#region src/designer/browser/stores/designer/l10n.ts
|
|
1545
|
-
function
|
|
1554
|
+
function gn(e) {
|
|
1546
1555
|
return e === "en" ? "zh-CN" : "en";
|
|
1547
1556
|
}
|
|
1548
|
-
function
|
|
1549
|
-
return n &&
|
|
1557
|
+
function _n(e, t, n) {
|
|
1558
|
+
return n && gt(n) ? e.en : hn(e, t)[0] ?? e.en;
|
|
1550
1559
|
}
|
|
1551
|
-
function
|
|
1560
|
+
function vn(e, t, n, r, i) {
|
|
1552
1561
|
let a = n(t);
|
|
1553
|
-
for (let t of
|
|
1554
|
-
let e =
|
|
1562
|
+
for (let t of hn(e, a)) {
|
|
1563
|
+
let e = _t(n(t), r);
|
|
1555
1564
|
if (e) return e;
|
|
1556
1565
|
}
|
|
1557
1566
|
return i ?? r;
|
|
1558
1567
|
}
|
|
1559
1568
|
//#endregion
|
|
1560
1569
|
//#region ../../node_modules/.bun/@wopjs+weak-cache@0.1.5/node_modules/@wopjs/weak-cache/dist/index.mjs
|
|
1561
|
-
var
|
|
1570
|
+
var yn = /* @__PURE__ */ new WeakMap(), bn = (e) => e === null || typeof e != "object" && typeof e != "function" ? e : (yn.has(e) ? yn : yn.set(e, Symbol())).get(e), xn = class {
|
|
1562
1571
|
get size() {
|
|
1563
1572
|
return this._r.size;
|
|
1564
1573
|
}
|
|
@@ -1578,7 +1587,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1578
1587
|
this._r.clear();
|
|
1579
1588
|
}
|
|
1580
1589
|
delete(e) {
|
|
1581
|
-
let t =
|
|
1590
|
+
let t = bn(e), n = this._r.get(t);
|
|
1582
1591
|
return n ? (this._g.unregister(n), this._r.delete(t)) : !1;
|
|
1583
1592
|
}
|
|
1584
1593
|
dispose() {
|
|
@@ -1589,13 +1598,13 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1589
1598
|
return n || this.set(e, n = t()), n;
|
|
1590
1599
|
}
|
|
1591
1600
|
get(e) {
|
|
1592
|
-
return this._r.get(
|
|
1601
|
+
return this._r.get(bn(e))?.deref();
|
|
1593
1602
|
}
|
|
1594
1603
|
has(e) {
|
|
1595
1604
|
return this.get(e) !== void 0;
|
|
1596
1605
|
}
|
|
1597
1606
|
set(e, t) {
|
|
1598
|
-
let n =
|
|
1607
|
+
let n = bn(e), r = new WeakRef(t);
|
|
1599
1608
|
return this._r.set(n, r), this._g.register(t, n, r), Object.is(n, e) || this._g.register(e, n, r), this;
|
|
1600
1609
|
}
|
|
1601
1610
|
*values() {
|
|
@@ -1604,10 +1613,10 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1604
1613
|
t && (yield t);
|
|
1605
1614
|
}
|
|
1606
1615
|
}
|
|
1607
|
-
},
|
|
1616
|
+
}, Sn = /* @__PURE__ */ new WeakMap(), Cn = new xn(), wn = class e {
|
|
1608
1617
|
static get(t) {
|
|
1609
|
-
let n = Array.isArray(t) ?
|
|
1610
|
-
return
|
|
1618
|
+
let n = Array.isArray(t) ? Sn.get(t) ?? Sn.set(t, Xe(t) || "[]").get(t) : t == null ? "[]" : Xe([t]);
|
|
1619
|
+
return Cn.get(n) || Cn.set(n, new e(n, t)).get(n);
|
|
1611
1620
|
}
|
|
1612
1621
|
static fromKey(t) {
|
|
1613
1622
|
return e.get(JSON.parse(t));
|
|
@@ -1641,7 +1650,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1641
1650
|
toJSON() {
|
|
1642
1651
|
return this.path;
|
|
1643
1652
|
}
|
|
1644
|
-
},
|
|
1653
|
+
}, Tn = /* @__PURE__ */ i(((e) => {
|
|
1645
1654
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
1646
1655
|
var t = class {};
|
|
1647
1656
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -1746,9 +1755,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1746
1755
|
return new r(e.toString());
|
|
1747
1756
|
}
|
|
1748
1757
|
e.regexpCode = g;
|
|
1749
|
-
})),
|
|
1758
|
+
})), En = /* @__PURE__ */ i(((e) => {
|
|
1750
1759
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
1751
|
-
var t =
|
|
1760
|
+
var t = Tn(), n = class extends Error {
|
|
1752
1761
|
constructor(e) {
|
|
1753
1762
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
1754
1763
|
}
|
|
@@ -1859,7 +1868,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1859
1868
|
};
|
|
1860
1869
|
})), Y = /* @__PURE__ */ i(((e) => {
|
|
1861
1870
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
1862
|
-
var t =
|
|
1871
|
+
var t = Tn(), n = En(), r = Tn();
|
|
1863
1872
|
Object.defineProperty(e, "_", {
|
|
1864
1873
|
enumerable: !0,
|
|
1865
1874
|
get: function() {
|
|
@@ -1901,7 +1910,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
1901
1910
|
return r.Name;
|
|
1902
1911
|
}
|
|
1903
1912
|
});
|
|
1904
|
-
var i =
|
|
1913
|
+
var i = En();
|
|
1905
1914
|
Object.defineProperty(e, "Scope", {
|
|
1906
1915
|
enumerable: !0,
|
|
1907
1916
|
get: function() {
|
|
@@ -2353,28 +2362,28 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2353
2362
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
2354
2363
|
}
|
|
2355
2364
|
function j(e) {
|
|
2356
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
2365
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${te(e)}`;
|
|
2357
2366
|
}
|
|
2358
2367
|
e.not = j;
|
|
2359
|
-
var M =
|
|
2360
|
-
function
|
|
2368
|
+
var M = F(e.operators.AND);
|
|
2369
|
+
function N(...e) {
|
|
2361
2370
|
return e.reduce(M);
|
|
2362
2371
|
}
|
|
2363
|
-
e.and =
|
|
2364
|
-
var
|
|
2365
|
-
function
|
|
2366
|
-
return e.reduce(
|
|
2372
|
+
e.and = N;
|
|
2373
|
+
var P = F(e.operators.OR);
|
|
2374
|
+
function ee(...e) {
|
|
2375
|
+
return e.reduce(P);
|
|
2367
2376
|
}
|
|
2368
|
-
e.or =
|
|
2369
|
-
function
|
|
2370
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${
|
|
2377
|
+
e.or = ee;
|
|
2378
|
+
function F(e) {
|
|
2379
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${te(n)} ${e} ${te(r)}`;
|
|
2371
2380
|
}
|
|
2372
|
-
function
|
|
2381
|
+
function te(e) {
|
|
2373
2382
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
2374
2383
|
}
|
|
2375
2384
|
})), X = /* @__PURE__ */ i(((e) => {
|
|
2376
2385
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
2377
|
-
var t = Y(), n =
|
|
2386
|
+
var t = Y(), n = Tn();
|
|
2378
2387
|
function r(e) {
|
|
2379
2388
|
let t = {};
|
|
2380
2389
|
for (let n of e) t[n] = !0;
|
|
@@ -2518,7 +2527,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2518
2527
|
jsonLen: new t.Name("jsonLen"),
|
|
2519
2528
|
jsonPart: new t.Name("jsonPart")
|
|
2520
2529
|
};
|
|
2521
|
-
})),
|
|
2530
|
+
})), Dn = /* @__PURE__ */ i(((e) => {
|
|
2522
2531
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
2523
2532
|
var t = Y(), n = X(), r = Z();
|
|
2524
2533
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
@@ -2582,9 +2591,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2582
2591
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
2583
2592
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
2584
2593
|
}
|
|
2585
|
-
})),
|
|
2594
|
+
})), On = /* @__PURE__ */ i(((e) => {
|
|
2586
2595
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
2587
|
-
var t =
|
|
2596
|
+
var t = Dn(), n = Y(), r = Z(), i = { message: "boolean schema is false" };
|
|
2588
2597
|
function a(e) {
|
|
2589
2598
|
let { gen: t, schema: i, validateName: a } = e;
|
|
2590
2599
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -2608,7 +2617,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2608
2617
|
};
|
|
2609
2618
|
(0, t.reportError)(o, i, void 0, n);
|
|
2610
2619
|
}
|
|
2611
|
-
})),
|
|
2620
|
+
})), kn = /* @__PURE__ */ i(((e) => {
|
|
2612
2621
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
2613
2622
|
var t = /* @__PURE__ */ new Set([
|
|
2614
2623
|
"string",
|
|
@@ -2662,7 +2671,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2662
2671
|
};
|
|
2663
2672
|
}
|
|
2664
2673
|
e.getRules = r;
|
|
2665
|
-
})),
|
|
2674
|
+
})), An = /* @__PURE__ */ i(((e) => {
|
|
2666
2675
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
2667
2676
|
function t({ schema: e, self: t }, r) {
|
|
2668
2677
|
let i = t.RULES.types[r];
|
|
@@ -2677,9 +2686,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2677
2686
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
2678
2687
|
}
|
|
2679
2688
|
e.shouldUseRule = r;
|
|
2680
|
-
})),
|
|
2689
|
+
})), jn = /* @__PURE__ */ i(((e) => {
|
|
2681
2690
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
2682
|
-
var t =
|
|
2691
|
+
var t = kn(), n = An(), r = Dn(), i = Y(), a = X(), o;
|
|
2683
2692
|
(function(e) {
|
|
2684
2693
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
2685
2694
|
})(o || (e.DataType = o = {}));
|
|
@@ -2814,7 +2823,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2814
2823
|
it: e
|
|
2815
2824
|
};
|
|
2816
2825
|
}
|
|
2817
|
-
})),
|
|
2826
|
+
})), Mn = /* @__PURE__ */ i(((e) => {
|
|
2818
2827
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
2819
2828
|
var t = Y(), n = X();
|
|
2820
2829
|
function r(e, t) {
|
|
@@ -2938,9 +2947,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
2938
2947
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
2939
2948
|
}
|
|
2940
2949
|
e.validateUnion = v;
|
|
2941
|
-
})),
|
|
2950
|
+
})), Nn = /* @__PURE__ */ i(((e) => {
|
|
2942
2951
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
2943
|
-
var t = Y(), n = Z(), r = Q(), i =
|
|
2952
|
+
var t = Y(), n = Z(), r = Q(), i = Dn();
|
|
2944
2953
|
function a(e, n) {
|
|
2945
2954
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
2946
2955
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -3019,7 +3028,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3019
3028
|
}
|
|
3020
3029
|
}
|
|
3021
3030
|
e.validateKeywordUsage = f;
|
|
3022
|
-
})),
|
|
3031
|
+
})), Pn = /* @__PURE__ */ i(((e) => {
|
|
3023
3032
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
3024
3033
|
var t = Y(), n = X();
|
|
3025
3034
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
@@ -3065,7 +3074,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3065
3074
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
3066
3075
|
}
|
|
3067
3076
|
e.extendSubschemaMode = a;
|
|
3068
|
-
})),
|
|
3077
|
+
})), Fn = /* @__PURE__ */ i(((e, t) => {
|
|
3069
3078
|
t.exports = function e(t, n) {
|
|
3070
3079
|
if (t === n) return !0;
|
|
3071
3080
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -3089,7 +3098,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3089
3098
|
}
|
|
3090
3099
|
return t !== t && n !== n;
|
|
3091
3100
|
};
|
|
3092
|
-
})),
|
|
3101
|
+
})), In = /* @__PURE__ */ i(((e, t) => {
|
|
3093
3102
|
var n = t.exports = function(e, t, n) {
|
|
3094
3103
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
3095
3104
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -3152,9 +3161,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3152
3161
|
function i(e) {
|
|
3153
3162
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
3154
3163
|
}
|
|
3155
|
-
})),
|
|
3164
|
+
})), Ln = /* @__PURE__ */ i(((e) => {
|
|
3156
3165
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
3157
|
-
var t = X(), n =
|
|
3166
|
+
var t = X(), n = Fn(), r = In(), i = /* @__PURE__ */ new Set([
|
|
3158
3167
|
"type",
|
|
3159
3168
|
"format",
|
|
3160
3169
|
"pattern",
|
|
@@ -3243,9 +3252,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3243
3252
|
}
|
|
3244
3253
|
}
|
|
3245
3254
|
e.getSchemaRefs = h;
|
|
3246
|
-
})),
|
|
3255
|
+
})), Rn = /* @__PURE__ */ i(((e) => {
|
|
3247
3256
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
3248
|
-
var t =
|
|
3257
|
+
var t = On(), n = jn(), r = An(), i = jn(), a = Mn(), o = Nn(), s = Pn(), c = Y(), l = Z(), u = Ln(), d = X(), f = Dn();
|
|
3249
3258
|
function p(e) {
|
|
3250
3259
|
if (S(e) && (w(e), x(e))) {
|
|
3251
3260
|
_(e);
|
|
@@ -3308,9 +3317,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3308
3317
|
(0, d.checkUnknownRules)(e), E(e);
|
|
3309
3318
|
}
|
|
3310
3319
|
function T(e, t) {
|
|
3311
|
-
if (e.opts.jtd) return
|
|
3320
|
+
if (e.opts.jtd) return N(e, [], !1, t);
|
|
3312
3321
|
let r = (0, n.getSchemaTypes)(e.schema);
|
|
3313
|
-
|
|
3322
|
+
N(e, r, !(0, n.coerceAndCheckDataType)(e, r), t);
|
|
3314
3323
|
}
|
|
3315
3324
|
function E(e) {
|
|
3316
3325
|
let { schema: t, errSchemaPath: n, opts: r, self: i } = e;
|
|
@@ -3342,71 +3351,71 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3342
3351
|
function M({ gen: e, evaluated: t, props: n, items: r }) {
|
|
3343
3352
|
n instanceof c.Name && e.assign((0, c._)`${t}.props`, n), r instanceof c.Name && e.assign((0, c._)`${t}.items`, r);
|
|
3344
3353
|
}
|
|
3345
|
-
function
|
|
3354
|
+
function N(e, t, n, a) {
|
|
3346
3355
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
3347
3356
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
3348
|
-
o.block(() =>
|
|
3357
|
+
o.block(() => se(e, "$ref", h.all.$ref.definition));
|
|
3349
3358
|
return;
|
|
3350
3359
|
}
|
|
3351
|
-
p.jtd ||
|
|
3360
|
+
p.jtd || ee(e, t), o.block(() => {
|
|
3352
3361
|
for (let e of h.rules) g(e);
|
|
3353
3362
|
g(h.post);
|
|
3354
3363
|
});
|
|
3355
3364
|
function g(d) {
|
|
3356
|
-
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)),
|
|
3365
|
+
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), P(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : P(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
|
|
3357
3366
|
}
|
|
3358
3367
|
}
|
|
3359
|
-
function
|
|
3368
|
+
function P(e, t) {
|
|
3360
3369
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
3361
3370
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
3362
|
-
for (let n of t.rules) (0, r.shouldUseRule)(i, n) &&
|
|
3371
|
+
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && se(e, n.keyword, n.definition, t.type);
|
|
3363
3372
|
});
|
|
3364
3373
|
}
|
|
3365
|
-
function
|
|
3366
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
3374
|
+
function ee(e, t) {
|
|
3375
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (F(e, t), e.opts.allowUnionTypes || te(e, t), ne(e, e.dataTypes));
|
|
3367
3376
|
}
|
|
3368
|
-
function
|
|
3377
|
+
function F(e, t) {
|
|
3369
3378
|
if (t.length) {
|
|
3370
3379
|
if (!e.dataTypes.length) {
|
|
3371
3380
|
e.dataTypes = t;
|
|
3372
3381
|
return;
|
|
3373
3382
|
}
|
|
3374
3383
|
t.forEach((t) => {
|
|
3375
|
-
|
|
3376
|
-
}),
|
|
3384
|
+
re(e.dataTypes, t) || ae(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
3385
|
+
}), ie(e, t);
|
|
3377
3386
|
}
|
|
3378
3387
|
}
|
|
3379
|
-
function
|
|
3380
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
3388
|
+
function te(e, t) {
|
|
3389
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && ae(e, "use allowUnionTypes to allow union type keyword");
|
|
3381
3390
|
}
|
|
3382
|
-
function
|
|
3391
|
+
function ne(e, t) {
|
|
3383
3392
|
let n = e.self.RULES.all;
|
|
3384
3393
|
for (let i in n) {
|
|
3385
3394
|
let a = n[i];
|
|
3386
3395
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
3387
3396
|
let { type: n } = a.definition;
|
|
3388
|
-
n.length && !n.some((e) =>
|
|
3397
|
+
n.length && !n.some((e) => I(t, e)) && ae(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
3389
3398
|
}
|
|
3390
3399
|
}
|
|
3391
3400
|
}
|
|
3392
|
-
function
|
|
3401
|
+
function I(e, t) {
|
|
3393
3402
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
3394
3403
|
}
|
|
3395
|
-
function
|
|
3404
|
+
function re(e, t) {
|
|
3396
3405
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
3397
3406
|
}
|
|
3398
|
-
function
|
|
3407
|
+
function ie(e, t) {
|
|
3399
3408
|
let n = [];
|
|
3400
|
-
for (let r of e.dataTypes)
|
|
3409
|
+
for (let r of e.dataTypes) re(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
3401
3410
|
e.dataTypes = n;
|
|
3402
3411
|
}
|
|
3403
|
-
function
|
|
3412
|
+
function ae(e, t) {
|
|
3404
3413
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
3405
3414
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
3406
3415
|
}
|
|
3407
|
-
var
|
|
3416
|
+
var oe = class {
|
|
3408
3417
|
constructor(e, t, n) {
|
|
3409
|
-
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema",
|
|
3418
|
+
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", ue(this.$data, e));
|
|
3410
3419
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
|
|
3411
3420
|
("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
|
|
3412
3421
|
}
|
|
@@ -3504,20 +3513,20 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3504
3513
|
if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
|
|
3505
3514
|
}
|
|
3506
3515
|
};
|
|
3507
|
-
e.KeywordCxt =
|
|
3508
|
-
function
|
|
3509
|
-
let i = new
|
|
3516
|
+
e.KeywordCxt = oe;
|
|
3517
|
+
function se(e, t, n, r) {
|
|
3518
|
+
let i = new oe(e, n, t);
|
|
3510
3519
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
|
|
3511
3520
|
}
|
|
3512
|
-
var
|
|
3513
|
-
function
|
|
3521
|
+
var ce = /^\/(?:[^~]|~0|~1)*$/, le = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
3522
|
+
function ue(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
3514
3523
|
let i, a;
|
|
3515
3524
|
if (e === "") return l.default.rootData;
|
|
3516
3525
|
if (e[0] === "/") {
|
|
3517
|
-
if (!
|
|
3526
|
+
if (!ce.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3518
3527
|
i = e, a = l.default.rootData;
|
|
3519
3528
|
} else {
|
|
3520
|
-
let o =
|
|
3529
|
+
let o = le.exec(e);
|
|
3521
3530
|
if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3522
3531
|
let s = +o[1];
|
|
3523
3532
|
if (i = o[2], i === "#") {
|
|
@@ -3534,24 +3543,24 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3534
3543
|
return `Cannot access ${e} ${n} levels up, current level is ${t}`;
|
|
3535
3544
|
}
|
|
3536
3545
|
}
|
|
3537
|
-
e.getData =
|
|
3538
|
-
})),
|
|
3546
|
+
e.getData = ue;
|
|
3547
|
+
})), zn = /* @__PURE__ */ i(((e) => {
|
|
3539
3548
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
3540
3549
|
constructor(e) {
|
|
3541
3550
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
3542
3551
|
}
|
|
3543
3552
|
};
|
|
3544
|
-
})),
|
|
3553
|
+
})), Bn = /* @__PURE__ */ i(((e) => {
|
|
3545
3554
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3546
|
-
var t =
|
|
3555
|
+
var t = Ln();
|
|
3547
3556
|
e.default = class extends Error {
|
|
3548
3557
|
constructor(e, n, r, i) {
|
|
3549
3558
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
3550
3559
|
}
|
|
3551
3560
|
};
|
|
3552
|
-
})),
|
|
3561
|
+
})), Vn = /* @__PURE__ */ i(((e) => {
|
|
3553
3562
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
3554
|
-
var t = Y(), n =
|
|
3563
|
+
var t = Y(), n = zn(), r = Z(), i = Ln(), a = X(), o = Rn(), s = class {
|
|
3555
3564
|
constructor(e) {
|
|
3556
3565
|
this.refs = {}, this.dynamicAnchors = {};
|
|
3557
3566
|
let t;
|
|
@@ -3710,27 +3719,27 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3710
3719
|
baseId: t
|
|
3711
3720
|
}), o.schema !== o.root.schema) return o;
|
|
3712
3721
|
}
|
|
3713
|
-
})),
|
|
3714
|
-
$id: () =>
|
|
3722
|
+
})), Hn = /* @__PURE__ */ r({
|
|
3723
|
+
$id: () => Un,
|
|
3715
3724
|
additionalProperties: () => !1,
|
|
3716
|
-
default: () =>
|
|
3717
|
-
description: () =>
|
|
3718
|
-
properties: () =>
|
|
3719
|
-
required: () =>
|
|
3720
|
-
type: () =>
|
|
3721
|
-
}), Gn, Kn, qn, Jn, Yn
|
|
3722
|
-
|
|
3725
|
+
default: () => Jn,
|
|
3726
|
+
description: () => Wn,
|
|
3727
|
+
properties: () => qn,
|
|
3728
|
+
required: () => Kn,
|
|
3729
|
+
type: () => Gn
|
|
3730
|
+
}), Un, Wn, Gn, Kn, qn, Jn, Yn = t((() => {
|
|
3731
|
+
Un = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Wn = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Gn = "object", Kn = ["$data"], qn = { $data: {
|
|
3723
3732
|
type: "string",
|
|
3724
3733
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
3725
|
-
} },
|
|
3726
|
-
$id:
|
|
3727
|
-
description:
|
|
3728
|
-
type:
|
|
3729
|
-
required:
|
|
3730
|
-
properties:
|
|
3734
|
+
} }, Jn = {
|
|
3735
|
+
$id: Un,
|
|
3736
|
+
description: Wn,
|
|
3737
|
+
type: Gn,
|
|
3738
|
+
required: Kn,
|
|
3739
|
+
properties: qn,
|
|
3731
3740
|
additionalProperties: !1
|
|
3732
3741
|
};
|
|
3733
|
-
})),
|
|
3742
|
+
})), Xn = /* @__PURE__ */ i(((e, t) => {
|
|
3734
3743
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = Array(256);
|
|
3735
3744
|
{
|
|
3736
3745
|
let e = "0123456789ABCDEF";
|
|
@@ -3937,7 +3946,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
3937
3946
|
if (o(r)) t += r;
|
|
3938
3947
|
else {
|
|
3939
3948
|
let i = e.charCodeAt(n);
|
|
3940
|
-
if (i < 128) t +=
|
|
3949
|
+
if (i < 128) t += N(i) ? r : l[i];
|
|
3941
3950
|
else if (i < 55296 || i > 57343) t += u(i);
|
|
3942
3951
|
else if (i <= 56319 && n + 1 < e.length) {
|
|
3943
3952
|
let r = e.charCodeAt(n + 1);
|
|
@@ -4004,10 +4013,10 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4004
4013
|
function M(e) {
|
|
4005
4014
|
return k(e, s);
|
|
4006
4015
|
}
|
|
4007
|
-
function
|
|
4016
|
+
function N(e) {
|
|
4008
4017
|
return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 42 || e === 43 || e === 45 || e === 46 || e === 47 || e === 64 || e === 95;
|
|
4009
4018
|
}
|
|
4010
|
-
function
|
|
4019
|
+
function P(e) {
|
|
4011
4020
|
let t = "";
|
|
4012
4021
|
for (let n = 0; n < e.length; n++) {
|
|
4013
4022
|
let r = e[n];
|
|
@@ -4022,7 +4031,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4022
4031
|
if (s(r)) t += r;
|
|
4023
4032
|
else {
|
|
4024
4033
|
let i = e.charCodeAt(n);
|
|
4025
|
-
if (i < 128) t +=
|
|
4034
|
+
if (i < 128) t += N(i) ? r : l[i];
|
|
4026
4035
|
else if (i < 55296 || i > 57343) t += u(i);
|
|
4027
4036
|
else if (i <= 56319 && n + 1 < e.length) {
|
|
4028
4037
|
let r = e.charCodeAt(n + 1);
|
|
@@ -4032,7 +4041,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4032
4041
|
}
|
|
4033
4042
|
return t;
|
|
4034
4043
|
}
|
|
4035
|
-
function
|
|
4044
|
+
function ee(e) {
|
|
4036
4045
|
let t = "";
|
|
4037
4046
|
for (let n = 0; n < e.length; n++) {
|
|
4038
4047
|
if (e[n] === "%" && n + 2 < e.length) {
|
|
@@ -4046,7 +4055,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4046
4055
|
}
|
|
4047
4056
|
return t;
|
|
4048
4057
|
}
|
|
4049
|
-
function
|
|
4058
|
+
function F(e) {
|
|
4050
4059
|
let t = [];
|
|
4051
4060
|
if (e.userinfo !== void 0 && (t.push(A(e.userinfo)), t.push("@")), e.host !== void 0) {
|
|
4052
4061
|
let n = e.host;
|
|
@@ -4060,24 +4069,24 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4060
4069
|
}
|
|
4061
4070
|
t.exports = {
|
|
4062
4071
|
nonSimpleDomain: h,
|
|
4063
|
-
recomposeAuthority:
|
|
4072
|
+
recomposeAuthority: F,
|
|
4064
4073
|
reescapeHostDelimiters: T,
|
|
4065
4074
|
normalizePercentEncoding: E,
|
|
4066
4075
|
normalizePathEncoding: D,
|
|
4067
4076
|
serializePathEncoding: O,
|
|
4068
|
-
normalizeQueryFragmentEncoding:
|
|
4077
|
+
normalizeQueryFragmentEncoding: P,
|
|
4069
4078
|
encodeUserinfo: A,
|
|
4070
4079
|
encodeQuery: j,
|
|
4071
4080
|
encodeFragment: M,
|
|
4072
|
-
escapePreservingEscapes:
|
|
4081
|
+
escapePreservingEscapes: ee,
|
|
4073
4082
|
removeDotSegments: x,
|
|
4074
4083
|
isIPv4: r,
|
|
4075
4084
|
isUUID: n,
|
|
4076
4085
|
normalizeIPv6: y,
|
|
4077
4086
|
stringArrayToHexStripped: d
|
|
4078
4087
|
};
|
|
4079
|
-
})),
|
|
4080
|
-
var { isUUID: n } =
|
|
4088
|
+
})), Zn = /* @__PURE__ */ i(((e, t) => {
|
|
4089
|
+
var { isUUID: n } = Xn(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
4081
4090
|
"http",
|
|
4082
4091
|
"https",
|
|
4083
4092
|
"ws",
|
|
@@ -4182,15 +4191,15 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4182
4191
|
isValidSchemeName: a,
|
|
4183
4192
|
getSchemeHandler: y
|
|
4184
4193
|
};
|
|
4185
|
-
})),
|
|
4186
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } =
|
|
4194
|
+
})), Qn = /* @__PURE__ */ i(((e, t) => {
|
|
4195
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = Xn(), { SCHEMES: m, getSchemeHandler: h } = Zn(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
4187
4196
|
function v(e) {
|
|
4188
4197
|
let t = unescape(String(e));
|
|
4189
4198
|
if (!g.test(t)) throw TypeError(_);
|
|
4190
4199
|
return t;
|
|
4191
4200
|
}
|
|
4192
4201
|
function y(e, t) {
|
|
4193
|
-
return typeof e == "string" ? e =
|
|
4202
|
+
return typeof e == "string" ? e = N(e, t) : typeof e == "object" && (e = M(C(e, t), t)), e;
|
|
4194
4203
|
}
|
|
4195
4204
|
function b(e, t, r) {
|
|
4196
4205
|
let i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, { parsed: a, malformedAuthorityOrPort: o, malformedPercentEncoding: s, malformedSchemeSpecific: c, malformedHost: l, malformedScheme: u } = j(e, i), { parsed: d, malformedAuthorityOrPort: p, malformedPercentEncoding: m, malformedSchemeSpecific: g, malformedHost: _, malformedScheme: v } = j(t, i);
|
|
@@ -4206,7 +4215,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4206
4215
|
return i || (e = M(C(e, n), n), t = M(C(t, n), n)), n ||= {}, !n.tolerant && t.scheme ? (a.scheme = t.scheme, a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.path ? (t.path[0] === "/" ? a.path = r(t.path) : (a.path = (e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? "/" + t.path : e.path ? e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : t.path, a.path = r(a.path)), a.query = t.query) : (a.path = e.path, a.query = t.query === void 0 ? e.query : t.query), a.userinfo = e.userinfo, a.host = e.host, a.port = e.port), a.scheme = e.scheme), a.fragment = t.fragment, a;
|
|
4207
4216
|
}
|
|
4208
4217
|
function S(e, t, n) {
|
|
4209
|
-
let r =
|
|
4218
|
+
let r = ee(e, n), i = ee(t, n);
|
|
4210
4219
|
return r !== void 0 && i !== void 0 && r === i;
|
|
4211
4220
|
}
|
|
4212
4221
|
function C(e, t) {
|
|
@@ -4312,10 +4321,10 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4312
4321
|
function M(e, t) {
|
|
4313
4322
|
return j(e, t).parsed;
|
|
4314
4323
|
}
|
|
4315
|
-
function
|
|
4316
|
-
return
|
|
4324
|
+
function N(e, t) {
|
|
4325
|
+
return P(e, t).normalized;
|
|
4317
4326
|
}
|
|
4318
|
-
function
|
|
4327
|
+
function P(e, t) {
|
|
4319
4328
|
let { parsed: n, malformedAuthorityOrPort: r, malformedPercentEncoding: i, malformedSchemeSpecific: a, malformedHost: o, malformedScheme: s } = j(e, t);
|
|
4320
4329
|
return {
|
|
4321
4330
|
normalized: r || i || a || o || s ? e : C(n, t),
|
|
@@ -4326,7 +4335,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4326
4335
|
malformedScheme: s
|
|
4327
4336
|
};
|
|
4328
4337
|
}
|
|
4329
|
-
function
|
|
4338
|
+
function ee(e, t) {
|
|
4330
4339
|
if (typeof e != "string" && typeof e != "object") return;
|
|
4331
4340
|
let n;
|
|
4332
4341
|
try {
|
|
@@ -4334,10 +4343,10 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4334
4343
|
} catch {
|
|
4335
4344
|
return;
|
|
4336
4345
|
}
|
|
4337
|
-
let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } =
|
|
4346
|
+
let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } = P(n, t);
|
|
4338
4347
|
return i || a || o || s || c ? void 0 : r;
|
|
4339
4348
|
}
|
|
4340
|
-
var
|
|
4349
|
+
var F = {
|
|
4341
4350
|
SCHEMES: m,
|
|
4342
4351
|
normalize: y,
|
|
4343
4352
|
resolve: b,
|
|
@@ -4346,14 +4355,14 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4346
4355
|
serialize: C,
|
|
4347
4356
|
parse: M
|
|
4348
4357
|
};
|
|
4349
|
-
t.exports =
|
|
4350
|
-
})),
|
|
4358
|
+
t.exports = F, t.exports.default = F, t.exports.fastUri = F;
|
|
4359
|
+
})), $n = /* @__PURE__ */ i(((e) => {
|
|
4351
4360
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4352
|
-
var t =
|
|
4361
|
+
var t = Qn();
|
|
4353
4362
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
4354
|
-
})),
|
|
4363
|
+
})), er = /* @__PURE__ */ i(((t) => {
|
|
4355
4364
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
|
|
4356
|
-
var n =
|
|
4365
|
+
var n = Rn();
|
|
4357
4366
|
Object.defineProperty(t, "KeywordCxt", {
|
|
4358
4367
|
enumerable: !0,
|
|
4359
4368
|
get: function() {
|
|
@@ -4392,7 +4401,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4392
4401
|
return r.CodeGen;
|
|
4393
4402
|
}
|
|
4394
4403
|
});
|
|
4395
|
-
var i =
|
|
4404
|
+
var i = zn(), a = Bn(), o = kn(), s = Vn(), c = Y(), l = Ln(), u = jn(), d = X(), f = (Yn(), e(Hn).default), p = $n(), m = (e, t) => new RegExp(e, t);
|
|
4396
4405
|
m.code = "new RegExp";
|
|
4397
4406
|
var h = [
|
|
4398
4407
|
"removeAdditional",
|
|
@@ -4608,7 +4617,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4608
4617
|
if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
|
|
4609
4618
|
} else throw Error("invalid addKeywords parameters");
|
|
4610
4619
|
if (j.call(this, n, t), !t) return (0, d.eachItem)(n, (e) => M.call(this, e)), this;
|
|
4611
|
-
|
|
4620
|
+
P.call(this, t);
|
|
4612
4621
|
let r = {
|
|
4613
4622
|
...t,
|
|
4614
4623
|
type: (0, u.getJSONTypes)(t.type),
|
|
@@ -4645,7 +4654,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4645
4654
|
let t = n[e];
|
|
4646
4655
|
if (typeof t != "object") continue;
|
|
4647
4656
|
let { $data: r } = t.definition, a = i[e];
|
|
4648
|
-
r && a && (i[e] =
|
|
4657
|
+
r && a && (i[e] = F(a));
|
|
4649
4658
|
}
|
|
4650
4659
|
}
|
|
4651
4660
|
return e;
|
|
@@ -4766,30 +4775,30 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4766
4775
|
schemaType: (0, u.getJSONTypes)(t.schemaType)
|
|
4767
4776
|
}
|
|
4768
4777
|
};
|
|
4769
|
-
t.before ?
|
|
4778
|
+
t.before ? N.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
|
|
4770
4779
|
}
|
|
4771
|
-
function
|
|
4780
|
+
function N(e, t, n) {
|
|
4772
4781
|
let r = e.rules.findIndex((e) => e.keyword === n);
|
|
4773
4782
|
r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
|
|
4774
4783
|
}
|
|
4775
|
-
function
|
|
4784
|
+
function P(e) {
|
|
4776
4785
|
let { metaSchema: t } = e;
|
|
4777
|
-
t !== void 0 && (e.$data && this.opts.$data && (t =
|
|
4786
|
+
t !== void 0 && (e.$data && this.opts.$data && (t = F(t)), e.validateSchema = this.compile(t, !0));
|
|
4778
4787
|
}
|
|
4779
|
-
var
|
|
4780
|
-
function
|
|
4781
|
-
return { anyOf: [e,
|
|
4788
|
+
var ee = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
|
4789
|
+
function F(e) {
|
|
4790
|
+
return { anyOf: [e, ee] };
|
|
4782
4791
|
}
|
|
4783
|
-
})),
|
|
4792
|
+
})), tr = /* @__PURE__ */ i(((e) => {
|
|
4784
4793
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
4785
4794
|
keyword: "id",
|
|
4786
4795
|
code() {
|
|
4787
4796
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
4788
4797
|
}
|
|
4789
4798
|
};
|
|
4790
|
-
})),
|
|
4799
|
+
})), nr = /* @__PURE__ */ i(((e) => {
|
|
4791
4800
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
4792
|
-
var t =
|
|
4801
|
+
var t = Bn(), n = Q(), r = Y(), i = Z(), a = Vn(), o = X(), s = {
|
|
4793
4802
|
keyword: "$ref",
|
|
4794
4803
|
schemaType: "string",
|
|
4795
4804
|
code(e) {
|
|
@@ -4866,9 +4875,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4866
4875
|
}
|
|
4867
4876
|
}
|
|
4868
4877
|
e.callRef = l, e.default = s;
|
|
4869
|
-
})),
|
|
4878
|
+
})), rr = /* @__PURE__ */ i(((e) => {
|
|
4870
4879
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4871
|
-
var t =
|
|
4880
|
+
var t = tr(), n = nr();
|
|
4872
4881
|
e.default = [
|
|
4873
4882
|
"$schema",
|
|
4874
4883
|
"$id",
|
|
@@ -4879,7 +4888,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4879
4888
|
t.default,
|
|
4880
4889
|
n.default
|
|
4881
4890
|
];
|
|
4882
|
-
})),
|
|
4891
|
+
})), ir = /* @__PURE__ */ i(((e) => {
|
|
4883
4892
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4884
4893
|
var t = Y(), n = t.operators, r = {
|
|
4885
4894
|
maximum: {
|
|
@@ -4917,7 +4926,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4917
4926
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
4918
4927
|
}
|
|
4919
4928
|
};
|
|
4920
|
-
})),
|
|
4929
|
+
})), ar = /* @__PURE__ */ i(((e) => {
|
|
4921
4930
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4922
4931
|
var t = Y();
|
|
4923
4932
|
e.default = {
|
|
@@ -4934,7 +4943,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4934
4943
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
4935
4944
|
}
|
|
4936
4945
|
};
|
|
4937
|
-
})),
|
|
4946
|
+
})), or = /* @__PURE__ */ i(((e) => {
|
|
4938
4947
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4939
4948
|
function t(e) {
|
|
4940
4949
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -4942,9 +4951,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4942
4951
|
return n;
|
|
4943
4952
|
}
|
|
4944
4953
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
4945
|
-
})),
|
|
4954
|
+
})), sr = /* @__PURE__ */ i(((e) => {
|
|
4946
4955
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4947
|
-
var t = Y(), n = X(), r =
|
|
4956
|
+
var t = Y(), n = X(), r = or();
|
|
4948
4957
|
e.default = {
|
|
4949
4958
|
keyword: ["maxLength", "minLength"],
|
|
4950
4959
|
type: "string",
|
|
@@ -4962,7 +4971,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4962
4971
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
4963
4972
|
}
|
|
4964
4973
|
};
|
|
4965
|
-
})),
|
|
4974
|
+
})), cr = /* @__PURE__ */ i(((e) => {
|
|
4966
4975
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4967
4976
|
var t = Q(), n = X(), r = Y();
|
|
4968
4977
|
e.default = {
|
|
@@ -4985,7 +4994,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
4985
4994
|
}
|
|
4986
4995
|
}
|
|
4987
4996
|
};
|
|
4988
|
-
})),
|
|
4997
|
+
})), lr = /* @__PURE__ */ i(((e) => {
|
|
4989
4998
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4990
4999
|
var t = Y();
|
|
4991
5000
|
e.default = {
|
|
@@ -5005,7 +5014,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5005
5014
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
5006
5015
|
}
|
|
5007
5016
|
};
|
|
5008
|
-
})),
|
|
5017
|
+
})), ur = /* @__PURE__ */ i(((e) => {
|
|
5009
5018
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5010
5019
|
var t = Q(), n = Y(), r = X();
|
|
5011
5020
|
e.default = {
|
|
@@ -5053,7 +5062,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5053
5062
|
}
|
|
5054
5063
|
}
|
|
5055
5064
|
};
|
|
5056
|
-
})),
|
|
5065
|
+
})), dr = /* @__PURE__ */ i(((e) => {
|
|
5057
5066
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5058
5067
|
var t = Y();
|
|
5059
5068
|
e.default = {
|
|
@@ -5073,13 +5082,13 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5073
5082
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
5074
5083
|
}
|
|
5075
5084
|
};
|
|
5076
|
-
})),
|
|
5085
|
+
})), fr = /* @__PURE__ */ i(((e) => {
|
|
5077
5086
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5078
|
-
var t =
|
|
5087
|
+
var t = Fn();
|
|
5079
5088
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
5080
|
-
})),
|
|
5089
|
+
})), pr = /* @__PURE__ */ i(((e) => {
|
|
5081
5090
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5082
|
-
var t =
|
|
5091
|
+
var t = jn(), n = Y(), r = X(), i = fr();
|
|
5083
5092
|
e.default = {
|
|
5084
5093
|
keyword: "uniqueItems",
|
|
5085
5094
|
type: "array",
|
|
@@ -5120,9 +5129,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5120
5129
|
}
|
|
5121
5130
|
}
|
|
5122
5131
|
};
|
|
5123
|
-
})),
|
|
5132
|
+
})), mr = /* @__PURE__ */ i(((e) => {
|
|
5124
5133
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5125
|
-
var t = Y(), n = X(), r =
|
|
5134
|
+
var t = Y(), n = X(), r = fr();
|
|
5126
5135
|
e.default = {
|
|
5127
5136
|
keyword: "const",
|
|
5128
5137
|
$data: !0,
|
|
@@ -5135,9 +5144,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5135
5144
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
5136
5145
|
}
|
|
5137
5146
|
};
|
|
5138
|
-
})),
|
|
5147
|
+
})), hr = /* @__PURE__ */ i(((e) => {
|
|
5139
5148
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5140
|
-
var t = Y(), n = X(), r =
|
|
5149
|
+
var t = Y(), n = X(), r = fr();
|
|
5141
5150
|
e.default = {
|
|
5142
5151
|
keyword: "enum",
|
|
5143
5152
|
schemaType: "array",
|
|
@@ -5167,9 +5176,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5167
5176
|
}
|
|
5168
5177
|
}
|
|
5169
5178
|
};
|
|
5170
|
-
})),
|
|
5179
|
+
})), gr = /* @__PURE__ */ i(((e) => {
|
|
5171
5180
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5172
|
-
var t =
|
|
5181
|
+
var t = ir(), n = ar(), r = sr(), i = cr(), a = lr(), o = ur(), s = dr(), c = pr(), l = mr(), u = hr();
|
|
5173
5182
|
e.default = [
|
|
5174
5183
|
t.default,
|
|
5175
5184
|
n.default,
|
|
@@ -5190,7 +5199,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5190
5199
|
l.default,
|
|
5191
5200
|
u.default
|
|
5192
5201
|
];
|
|
5193
|
-
})),
|
|
5202
|
+
})), _r = /* @__PURE__ */ i(((e) => {
|
|
5194
5203
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
5195
5204
|
var t = Y(), n = X(), r = {
|
|
5196
5205
|
keyword: "additionalItems",
|
|
@@ -5230,7 +5239,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5230
5239
|
}
|
|
5231
5240
|
}
|
|
5232
5241
|
e.validateAdditionalItems = i, e.default = r;
|
|
5233
|
-
})),
|
|
5242
|
+
})), vr = /* @__PURE__ */ i(((e) => {
|
|
5234
5243
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
5235
5244
|
var t = Y(), n = X(), r = Q(), i = {
|
|
5236
5245
|
keyword: "items",
|
|
@@ -5267,9 +5276,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5267
5276
|
}
|
|
5268
5277
|
}
|
|
5269
5278
|
e.validateTuple = a, e.default = i;
|
|
5270
|
-
})),
|
|
5279
|
+
})), yr = /* @__PURE__ */ i(((e) => {
|
|
5271
5280
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5272
|
-
var t =
|
|
5281
|
+
var t = vr();
|
|
5273
5282
|
e.default = {
|
|
5274
5283
|
keyword: "prefixItems",
|
|
5275
5284
|
type: "array",
|
|
@@ -5277,9 +5286,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5277
5286
|
before: "uniqueItems",
|
|
5278
5287
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
5279
5288
|
};
|
|
5280
|
-
})),
|
|
5289
|
+
})), br = /* @__PURE__ */ i(((e) => {
|
|
5281
5290
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5282
|
-
var t = Y(), n = X(), r = Q(), i =
|
|
5291
|
+
var t = Y(), n = X(), r = Q(), i = _r();
|
|
5283
5292
|
e.default = {
|
|
5284
5293
|
keyword: "items",
|
|
5285
5294
|
type: "array",
|
|
@@ -5294,7 +5303,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5294
5303
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
5295
5304
|
}
|
|
5296
5305
|
};
|
|
5297
|
-
})),
|
|
5306
|
+
})), xr = /* @__PURE__ */ i(((e) => {
|
|
5298
5307
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5299
5308
|
var t = Y(), n = X();
|
|
5300
5309
|
e.default = {
|
|
@@ -5349,7 +5358,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5349
5358
|
}
|
|
5350
5359
|
}
|
|
5351
5360
|
};
|
|
5352
|
-
})),
|
|
5361
|
+
})), Sr = /* @__PURE__ */ i(((e) => {
|
|
5353
5362
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
5354
5363
|
var t = Y(), n = X(), r = Q();
|
|
5355
5364
|
e.error = {
|
|
@@ -5410,7 +5419,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5410
5419
|
}, () => i.var(c, !0)), e.ok(c));
|
|
5411
5420
|
}
|
|
5412
5421
|
e.validateSchemaDeps = s, e.default = i;
|
|
5413
|
-
})),
|
|
5422
|
+
})), Cr = /* @__PURE__ */ i(((e) => {
|
|
5414
5423
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5415
5424
|
var t = Y(), n = X();
|
|
5416
5425
|
e.default = {
|
|
@@ -5438,7 +5447,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5438
5447
|
}), e.ok(s);
|
|
5439
5448
|
}
|
|
5440
5449
|
};
|
|
5441
|
-
})),
|
|
5450
|
+
})), wr = /* @__PURE__ */ i(((e) => {
|
|
5442
5451
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5443
5452
|
var t = Q(), n = Y(), r = Z(), i = X();
|
|
5444
5453
|
e.default = {
|
|
@@ -5505,9 +5514,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5505
5514
|
}
|
|
5506
5515
|
}
|
|
5507
5516
|
};
|
|
5508
|
-
})),
|
|
5517
|
+
})), Tr = /* @__PURE__ */ i(((e) => {
|
|
5509
5518
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5510
|
-
var t =
|
|
5519
|
+
var t = Rn(), n = Q(), r = X(), i = wr();
|
|
5511
5520
|
e.default = {
|
|
5512
5521
|
keyword: "properties",
|
|
5513
5522
|
type: "object",
|
|
@@ -5534,7 +5543,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5534
5543
|
}
|
|
5535
5544
|
}
|
|
5536
5545
|
};
|
|
5537
|
-
})),
|
|
5546
|
+
})), Er = /* @__PURE__ */ i(((e) => {
|
|
5538
5547
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5539
5548
|
var t = Q(), n = Y(), r = X(), i = X();
|
|
5540
5549
|
e.default = {
|
|
@@ -5569,7 +5578,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5569
5578
|
}
|
|
5570
5579
|
}
|
|
5571
5580
|
};
|
|
5572
|
-
})),
|
|
5581
|
+
})), Dr = /* @__PURE__ */ i(((e) => {
|
|
5573
5582
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5574
5583
|
var t = X();
|
|
5575
5584
|
e.default = {
|
|
@@ -5592,7 +5601,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5592
5601
|
},
|
|
5593
5602
|
error: { message: "must NOT be valid" }
|
|
5594
5603
|
};
|
|
5595
|
-
})),
|
|
5604
|
+
})), Or = /* @__PURE__ */ i(((e) => {
|
|
5596
5605
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
5597
5606
|
keyword: "anyOf",
|
|
5598
5607
|
schemaType: "array",
|
|
@@ -5600,7 +5609,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5600
5609
|
code: Q().validateUnion,
|
|
5601
5610
|
error: { message: "must match a schema in anyOf" }
|
|
5602
5611
|
};
|
|
5603
|
-
})),
|
|
5612
|
+
})), kr = /* @__PURE__ */ i(((e) => {
|
|
5604
5613
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5605
5614
|
var t = Y(), n = X();
|
|
5606
5615
|
e.default = {
|
|
@@ -5632,7 +5641,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5632
5641
|
}
|
|
5633
5642
|
}
|
|
5634
5643
|
};
|
|
5635
|
-
})),
|
|
5644
|
+
})), Ar = /* @__PURE__ */ i(((e) => {
|
|
5636
5645
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5637
5646
|
var t = X();
|
|
5638
5647
|
e.default = {
|
|
@@ -5653,7 +5662,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5653
5662
|
});
|
|
5654
5663
|
}
|
|
5655
5664
|
};
|
|
5656
|
-
})),
|
|
5665
|
+
})), jr = /* @__PURE__ */ i(((e) => {
|
|
5657
5666
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5658
5667
|
var t = Y(), n = X(), r = {
|
|
5659
5668
|
keyword: "if",
|
|
@@ -5696,7 +5705,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5696
5705
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
5697
5706
|
}
|
|
5698
5707
|
e.default = r;
|
|
5699
|
-
})),
|
|
5708
|
+
})), Mr = /* @__PURE__ */ i(((e) => {
|
|
5700
5709
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5701
5710
|
var t = X();
|
|
5702
5711
|
e.default = {
|
|
@@ -5706,9 +5715,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5706
5715
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
5707
5716
|
}
|
|
5708
5717
|
};
|
|
5709
|
-
})),
|
|
5718
|
+
})), Nr = /* @__PURE__ */ i(((e) => {
|
|
5710
5719
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5711
|
-
var t =
|
|
5720
|
+
var t = _r(), n = yr(), r = vr(), i = br(), a = xr(), o = Sr(), s = Cr(), c = wr(), l = Tr(), u = Er(), d = Dr(), f = Or(), p = kr(), m = Ar(), h = jr(), g = Mr();
|
|
5712
5721
|
function _(e = !1) {
|
|
5713
5722
|
let _ = [
|
|
5714
5723
|
d.default,
|
|
@@ -5726,7 +5735,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5726
5735
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
5727
5736
|
}
|
|
5728
5737
|
e.default = _;
|
|
5729
|
-
})),
|
|
5738
|
+
})), Pr = /* @__PURE__ */ i(((e) => {
|
|
5730
5739
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5731
5740
|
var t = Y();
|
|
5732
5741
|
e.default = {
|
|
@@ -5801,9 +5810,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5801
5810
|
}
|
|
5802
5811
|
}
|
|
5803
5812
|
};
|
|
5804
|
-
})),
|
|
5805
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
5806
|
-
})),
|
|
5813
|
+
})), Fr = /* @__PURE__ */ i(((e) => {
|
|
5814
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Pr().default];
|
|
5815
|
+
})), Ir = /* @__PURE__ */ i(((e) => {
|
|
5807
5816
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
5808
5817
|
"title",
|
|
5809
5818
|
"description",
|
|
@@ -5817,9 +5826,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5817
5826
|
"contentEncoding",
|
|
5818
5827
|
"contentSchema"
|
|
5819
5828
|
];
|
|
5820
|
-
})),
|
|
5829
|
+
})), Lr = /* @__PURE__ */ i(((e) => {
|
|
5821
5830
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5822
|
-
var t =
|
|
5831
|
+
var t = rr(), n = gr(), r = Nr(), i = Fr(), a = Ir();
|
|
5823
5832
|
e.default = [
|
|
5824
5833
|
t.default,
|
|
5825
5834
|
n.default,
|
|
@@ -5828,15 +5837,15 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5828
5837
|
a.metadataVocabulary,
|
|
5829
5838
|
a.contentVocabulary
|
|
5830
5839
|
];
|
|
5831
|
-
})),
|
|
5840
|
+
})), Rr = /* @__PURE__ */ i(((e) => {
|
|
5832
5841
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
5833
5842
|
var t;
|
|
5834
5843
|
(function(e) {
|
|
5835
5844
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
5836
5845
|
})(t || (e.DiscrError = t = {}));
|
|
5837
|
-
})),
|
|
5846
|
+
})), zr = /* @__PURE__ */ i(((e) => {
|
|
5838
5847
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5839
|
-
var t = Y(), n =
|
|
5848
|
+
var t = Y(), n = Rr(), r = Vn(), i = Bn(), a = X();
|
|
5840
5849
|
e.default = {
|
|
5841
5850
|
keyword: "discriminator",
|
|
5842
5851
|
type: "object",
|
|
@@ -5904,16 +5913,16 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5904
5913
|
}
|
|
5905
5914
|
}
|
|
5906
5915
|
};
|
|
5907
|
-
})),
|
|
5908
|
-
$id: () =>
|
|
5909
|
-
$schema: () =>
|
|
5910
|
-
default: () =>
|
|
5911
|
-
definitions: () =>
|
|
5912
|
-
properties: () =>
|
|
5913
|
-
title: () =>
|
|
5914
|
-
type: () =>
|
|
5915
|
-
}), Ur, Wr, Gr, Kr, qr, Jr
|
|
5916
|
-
|
|
5916
|
+
})), Br = /* @__PURE__ */ r({
|
|
5917
|
+
$id: () => Hr,
|
|
5918
|
+
$schema: () => Vr,
|
|
5919
|
+
default: () => qr,
|
|
5920
|
+
definitions: () => Wr,
|
|
5921
|
+
properties: () => Kr,
|
|
5922
|
+
title: () => Ur,
|
|
5923
|
+
type: () => Gr
|
|
5924
|
+
}), Vr, Hr, Ur, Wr, Gr, Kr, qr, Jr = t((() => {
|
|
5925
|
+
Vr = "http://json-schema.org/draft-07/schema#", Hr = "http://json-schema.org/draft-07/schema#", Ur = "Core schema meta-schema", Wr = {
|
|
5917
5926
|
schemaArray: {
|
|
5918
5927
|
type: "array",
|
|
5919
5928
|
minItems: 1,
|
|
@@ -5939,7 +5948,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
5939
5948
|
uniqueItems: !0,
|
|
5940
5949
|
default: []
|
|
5941
5950
|
}
|
|
5942
|
-
},
|
|
5951
|
+
}, Gr = ["object", "boolean"], Kr = {
|
|
5943
5952
|
$id: {
|
|
5944
5953
|
type: "string",
|
|
5945
5954
|
format: "uri-reference"
|
|
@@ -6038,18 +6047,18 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6038
6047
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
6039
6048
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
6040
6049
|
not: { $ref: "#" }
|
|
6041
|
-
},
|
|
6042
|
-
$schema:
|
|
6043
|
-
$id:
|
|
6044
|
-
title:
|
|
6045
|
-
definitions:
|
|
6046
|
-
type:
|
|
6047
|
-
properties:
|
|
6050
|
+
}, qr = {
|
|
6051
|
+
$schema: Vr,
|
|
6052
|
+
$id: Hr,
|
|
6053
|
+
title: Ur,
|
|
6054
|
+
definitions: Wr,
|
|
6055
|
+
type: Gr,
|
|
6056
|
+
properties: Kr,
|
|
6048
6057
|
default: !0
|
|
6049
6058
|
};
|
|
6050
|
-
})),
|
|
6059
|
+
})), Yr = /* @__PURE__ */ i(((t, n) => {
|
|
6051
6060
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
6052
|
-
var r =
|
|
6061
|
+
var r = er(), i = Lr(), a = zr(), o = (Jr(), e(Br).default), s = ["/properties"], c = "http://json-schema.org/draft-07/schema", l = class extends r.default {
|
|
6053
6062
|
_addVocabularies() {
|
|
6054
6063
|
super._addVocabularies(), i.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(a.default);
|
|
6055
6064
|
}
|
|
@@ -6063,7 +6072,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6063
6072
|
}
|
|
6064
6073
|
};
|
|
6065
6074
|
t.Ajv = l, n.exports = t = l, n.exports.Ajv = l, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = l;
|
|
6066
|
-
var u =
|
|
6075
|
+
var u = Rn();
|
|
6067
6076
|
Object.defineProperty(t, "KeywordCxt", {
|
|
6068
6077
|
enumerable: !0,
|
|
6069
6078
|
get: function() {
|
|
@@ -6102,21 +6111,21 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6102
6111
|
return d.CodeGen;
|
|
6103
6112
|
}
|
|
6104
6113
|
});
|
|
6105
|
-
var f =
|
|
6114
|
+
var f = zn();
|
|
6106
6115
|
Object.defineProperty(t, "ValidationError", {
|
|
6107
6116
|
enumerable: !0,
|
|
6108
6117
|
get: function() {
|
|
6109
6118
|
return f.default;
|
|
6110
6119
|
}
|
|
6111
6120
|
});
|
|
6112
|
-
var p =
|
|
6121
|
+
var p = Bn();
|
|
6113
6122
|
Object.defineProperty(t, "MissingRefError", {
|
|
6114
6123
|
enumerable: !0,
|
|
6115
6124
|
get: function() {
|
|
6116
6125
|
return p.default;
|
|
6117
6126
|
}
|
|
6118
6127
|
});
|
|
6119
|
-
})),
|
|
6128
|
+
})), Xr = /* @__PURE__ */ i(((e) => {
|
|
6120
6129
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
6121
6130
|
function t(e, t) {
|
|
6122
6131
|
return {
|
|
@@ -6268,9 +6277,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6268
6277
|
return !1;
|
|
6269
6278
|
}
|
|
6270
6279
|
}
|
|
6271
|
-
})),
|
|
6280
|
+
})), Zr = /* @__PURE__ */ i(((e) => {
|
|
6272
6281
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
6273
|
-
var t =
|
|
6282
|
+
var t = Yr(), n = Y(), r = n.operators, i = {
|
|
6274
6283
|
formatMaximum: {
|
|
6275
6284
|
okStr: "<=",
|
|
6276
6285
|
ok: r.LTE,
|
|
@@ -6330,9 +6339,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6330
6339
|
},
|
|
6331
6340
|
dependencies: ["format"]
|
|
6332
6341
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
6333
|
-
})),
|
|
6342
|
+
})), Qr = /* @__PURE__ */ i(((e, t) => {
|
|
6334
6343
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6335
|
-
var n =
|
|
6344
|
+
var n = Xr(), r = Zr(), i = Y(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
6336
6345
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
6337
6346
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
6338
6347
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -6348,7 +6357,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6348
6357
|
for (let r of t) e.addFormat(r, n[r]);
|
|
6349
6358
|
}
|
|
6350
6359
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
6351
|
-
})),
|
|
6360
|
+
})), $r = /* @__PURE__ */ i(((e, t) => {
|
|
6352
6361
|
t.exports = function(e) {
|
|
6353
6362
|
if (e && e.length) for (let r of e) {
|
|
6354
6363
|
let e;
|
|
@@ -6494,7 +6503,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6494
6503
|
r.message = e;
|
|
6495
6504
|
}
|
|
6496
6505
|
};
|
|
6497
|
-
})),
|
|
6506
|
+
})), ei = /* @__PURE__ */ i(((e, t) => {
|
|
6498
6507
|
t.exports = function(e) {
|
|
6499
6508
|
if (e && e.length) for (let r of e) {
|
|
6500
6509
|
let e;
|
|
@@ -6640,7 +6649,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6640
6649
|
r.message = e;
|
|
6641
6650
|
}
|
|
6642
6651
|
};
|
|
6643
|
-
})),
|
|
6652
|
+
})), ti = /* @__PURE__ */ i(((e, t) => {
|
|
6644
6653
|
t.exports = function(e) {
|
|
6645
6654
|
if (e && e.length) for (let r of e) {
|
|
6646
6655
|
let e;
|
|
@@ -6786,7 +6795,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6786
6795
|
r.message = e;
|
|
6787
6796
|
}
|
|
6788
6797
|
};
|
|
6789
|
-
})),
|
|
6798
|
+
})), ni = /* @__PURE__ */ i(((e, t) => {
|
|
6790
6799
|
t.exports = function(e) {
|
|
6791
6800
|
if (e && e.length) for (let r of e) {
|
|
6792
6801
|
let e;
|
|
@@ -6932,7 +6941,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
6932
6941
|
r.message = e;
|
|
6933
6942
|
}
|
|
6934
6943
|
};
|
|
6935
|
-
})),
|
|
6944
|
+
})), ri = /* @__PURE__ */ i(((e, t) => {
|
|
6936
6945
|
t.exports = function(e) {
|
|
6937
6946
|
if (e && e.length) for (let r of e) {
|
|
6938
6947
|
let e;
|
|
@@ -7078,7 +7087,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
7078
7087
|
r.message = e;
|
|
7079
7088
|
}
|
|
7080
7089
|
};
|
|
7081
|
-
})),
|
|
7090
|
+
})), ii = /* @__PURE__ */ i(((e, t) => {
|
|
7082
7091
|
t.exports = function(e) {
|
|
7083
7092
|
if (e && e.length) for (let r of e) {
|
|
7084
7093
|
let e;
|
|
@@ -7224,7 +7233,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
7224
7233
|
r.message = e;
|
|
7225
7234
|
}
|
|
7226
7235
|
};
|
|
7227
|
-
})),
|
|
7236
|
+
})), ai = /* @__PURE__ */ i(((e, t) => {
|
|
7228
7237
|
t.exports = function(e) {
|
|
7229
7238
|
if (e && e.length) for (let r of e) {
|
|
7230
7239
|
let e;
|
|
@@ -7370,57 +7379,57 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
|
|
|
7370
7379
|
r.message = e;
|
|
7371
7380
|
}
|
|
7372
7381
|
};
|
|
7373
|
-
})),
|
|
7374
|
-
en:
|
|
7375
|
-
"zh-CN":
|
|
7376
|
-
"zh-TW":
|
|
7377
|
-
ja:
|
|
7378
|
-
ko:
|
|
7379
|
-
ru:
|
|
7380
|
-
fr:
|
|
7382
|
+
})), oi = /* @__PURE__ */ n(Yr(), 1), si = /* @__PURE__ */ n(Qr(), 1), ci = /* @__PURE__ */ n($r(), 1), li = /* @__PURE__ */ n(ei(), 1), ui = /* @__PURE__ */ n(ti(), 1), di = /* @__PURE__ */ n(ni(), 1), fi = /* @__PURE__ */ n(ri(), 1), pi = /* @__PURE__ */ n(ii(), 1), mi = /* @__PURE__ */ n(ai(), 1), hi = {
|
|
7383
|
+
en: ci.default,
|
|
7384
|
+
"zh-CN": mi.default,
|
|
7385
|
+
"zh-TW": pi.default,
|
|
7386
|
+
ja: ui.default,
|
|
7387
|
+
ko: di.default,
|
|
7388
|
+
ru: fi.default,
|
|
7389
|
+
fr: li.default
|
|
7381
7390
|
};
|
|
7382
|
-
function
|
|
7383
|
-
return
|
|
7391
|
+
function gi(e) {
|
|
7392
|
+
return hi[m([e])];
|
|
7384
7393
|
}
|
|
7385
|
-
function
|
|
7386
|
-
|
|
7394
|
+
function _i(e, t) {
|
|
7395
|
+
gi(e)(t);
|
|
7387
7396
|
}
|
|
7388
7397
|
//#endregion
|
|
7389
7398
|
//#region src/designer/browser/validate/validator.ts
|
|
7390
|
-
function
|
|
7391
|
-
let t = new
|
|
7399
|
+
function vi(e) {
|
|
7400
|
+
let t = new oi.default({
|
|
7392
7401
|
allErrors: !0,
|
|
7393
7402
|
verbose: !0,
|
|
7394
7403
|
strict: !1,
|
|
7395
7404
|
addUsedSchema: !1,
|
|
7396
7405
|
...e
|
|
7397
7406
|
});
|
|
7398
|
-
return (0,
|
|
7407
|
+
return (0, si.default)(t), t;
|
|
7399
7408
|
}
|
|
7400
|
-
var
|
|
7401
|
-
function
|
|
7409
|
+
var yi = /*#__PURE__*/ vi();
|
|
7410
|
+
function bi(e) {
|
|
7402
7411
|
if (!e) return [void 0, void 0];
|
|
7403
7412
|
try {
|
|
7404
|
-
return [
|
|
7413
|
+
return [yi.compile(e), void 0];
|
|
7405
7414
|
} catch (e) {
|
|
7406
7415
|
return [void 0, e];
|
|
7407
7416
|
}
|
|
7408
7417
|
}
|
|
7409
|
-
function
|
|
7410
|
-
return !e || e(t) ? [] : (
|
|
7418
|
+
function xi(e, t, n) {
|
|
7419
|
+
return !e || e(t) ? [] : (_i(n, e.errors), e.errors);
|
|
7411
7420
|
}
|
|
7412
7421
|
//#endregion
|
|
7413
7422
|
//#region src/designer/browser/stores/schemaEditor/simpleWidget.store.ts
|
|
7414
|
-
var
|
|
7423
|
+
var Si = class {
|
|
7415
7424
|
constructor(e, t, n) {
|
|
7416
|
-
this.path = e, this.schema$ = t, this.context = n, this.dispose =
|
|
7425
|
+
this.path = e, this.schema$ = t, this.context = n, this.dispose = I(), this.widgetType$ = this.dispose.add(a(this.schema$, J));
|
|
7417
7426
|
}
|
|
7418
7427
|
get expanded$() {
|
|
7419
7428
|
return this.expandedCache$ ??= this.dispose.add(this.context.deriveExpanded$(this.path));
|
|
7420
7429
|
}
|
|
7421
7430
|
configureNumber() {
|
|
7422
|
-
this.numberConfigurationSlot ||= this.dispose.add(
|
|
7423
|
-
let e =
|
|
7431
|
+
this.numberConfigurationSlot ||= this.dispose.add(P());
|
|
7432
|
+
let e = I(), t = e.add(this.deriveUiOptions$("step", U)), n = e.add(this.deriveSchema$("minimum", U)), r = e.add(this.deriveSchema$("maximum", U)), i = e.add(this.deriveSchema$("exclusiveMinimum", U)), a = e.add(this.deriveSchema$("exclusiveMaximum", U));
|
|
7424
7433
|
return this.numberConfigurationSlot.set(e), {
|
|
7425
7434
|
step$: t,
|
|
7426
7435
|
minimum$: n,
|
|
@@ -7430,14 +7439,14 @@ var wi = class {
|
|
|
7430
7439
|
};
|
|
7431
7440
|
}
|
|
7432
7441
|
configureColor() {
|
|
7433
|
-
return this.colorConfigurationSlot ||= this.dispose.add(
|
|
7442
|
+
return this.colorConfigurationSlot ||= this.dispose.add(P()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => It(e) ? e : void 0)) };
|
|
7434
7443
|
}
|
|
7435
7444
|
configureDate() {
|
|
7436
|
-
return this.dateConfigurationSlot ||= this.dispose.add(
|
|
7445
|
+
return this.dateConfigurationSlot ||= this.dispose.add(P()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => Dt(e) ? e : void 0)) };
|
|
7437
7446
|
}
|
|
7438
7447
|
configureString() {
|
|
7439
|
-
this.stringConfigurationSlot ||= this.dispose.add(
|
|
7440
|
-
let e =
|
|
7448
|
+
this.stringConfigurationSlot ||= this.dispose.add(P());
|
|
7449
|
+
let e = I(), t = e.add(this.deriveSchema$("format", H)), n = e.add(this.deriveSchema$("pattern", H)), r = e.add(this.deriveSchema$("minLength", U)), i = e.add(this.deriveSchema$("maxLength", U));
|
|
7441
7450
|
return this.stringConfigurationSlot.set(e), {
|
|
7442
7451
|
format$: t,
|
|
7443
7452
|
pattern$: n,
|
|
@@ -7446,15 +7455,15 @@ var wi = class {
|
|
|
7446
7455
|
};
|
|
7447
7456
|
}
|
|
7448
7457
|
configureArray() {
|
|
7449
|
-
this.arrayConfigurationSlot ||= this.dispose.add(
|
|
7450
|
-
let e =
|
|
7458
|
+
this.arrayConfigurationSlot ||= this.dispose.add(P());
|
|
7459
|
+
let e = I(), t = e.add(this.deriveSchema$("minItems", U)), n = e.add(this.deriveSchema$("maxItems", U));
|
|
7451
7460
|
return this.arrayConfigurationSlot.set(e), {
|
|
7452
7461
|
minItems$: t,
|
|
7453
7462
|
maxItems$: n
|
|
7454
7463
|
};
|
|
7455
7464
|
}
|
|
7456
7465
|
configureObject() {
|
|
7457
|
-
return this.objectConfigurationSlot ||= this.dispose.add(
|
|
7466
|
+
return this.objectConfigurationSlot ||= this.dispose.add(P()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", nt)) };
|
|
7458
7467
|
}
|
|
7459
7468
|
isSelect() {
|
|
7460
7469
|
return !1;
|
|
@@ -7472,11 +7481,11 @@ var wi = class {
|
|
|
7472
7481
|
return !1;
|
|
7473
7482
|
}
|
|
7474
7483
|
deriveSchema$(e, t, n) {
|
|
7475
|
-
return l(a(this.schema$, (n) => t(
|
|
7484
|
+
return l(a(this.schema$, (n) => t(V(n)?.[e]), n), W(this.schema$, e));
|
|
7476
7485
|
}
|
|
7477
7486
|
deriveUiOptions$(e, t, n) {
|
|
7478
|
-
return l(a(this.schema$, (n) => t(
|
|
7479
|
-
let n =
|
|
7487
|
+
return l(a(this.schema$, (n) => t(V(V(n)?.[K])?.[e]), n), (t) => {
|
|
7488
|
+
let n = V(this.schema$.value), r = V(n?.[K]);
|
|
7480
7489
|
if (Object.is(t, r?.[e])) return;
|
|
7481
7490
|
let i = {
|
|
7482
7491
|
...r,
|
|
@@ -7484,11 +7493,11 @@ var wi = class {
|
|
|
7484
7493
|
};
|
|
7485
7494
|
f(this.schema$, n && {
|
|
7486
7495
|
...n,
|
|
7487
|
-
"ui:options":
|
|
7496
|
+
"ui:options": Ge(i)
|
|
7488
7497
|
});
|
|
7489
7498
|
});
|
|
7490
7499
|
}
|
|
7491
|
-
},
|
|
7500
|
+
}, Ci = class extends Si {
|
|
7492
7501
|
constructor(e, t, n) {
|
|
7493
7502
|
super(e, t, n), this.conditions$ = this.dispose.add(this.deriveConditions$());
|
|
7494
7503
|
}
|
|
@@ -7496,29 +7505,29 @@ var wi = class {
|
|
|
7496
7505
|
return !0;
|
|
7497
7506
|
}
|
|
7498
7507
|
addCondition(e) {
|
|
7499
|
-
let t = { ...
|
|
7508
|
+
let t = { ...V(this.schema$.value) }, n = J(t), r = z(t[n])?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
7500
7509
|
for (; a.length < r.length;) a.push("");
|
|
7501
|
-
a.splice(e + 1, 0, ""), i.labels =
|
|
7510
|
+
a.splice(e + 1, 0, ""), i.labels = B(a), r.splice(e + 1, 0, q()), t[n] = r, t[K] = i, this.schema$.set(t);
|
|
7502
7511
|
}
|
|
7503
7512
|
removeCondition(e) {
|
|
7504
|
-
let t = { ...
|
|
7513
|
+
let t = { ...V(this.schema$.value) }, n = J(t), r = z(t[n])?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
7505
7514
|
for (; a.length < r.length;) a.push("");
|
|
7506
|
-
a.splice(e, 1), i.labels =
|
|
7515
|
+
a.splice(e, 1), i.labels = B(a), r.splice(e, 1), t[n] = r, t[K] = i, this.schema$.set(t);
|
|
7507
7516
|
}
|
|
7508
7517
|
deriveConditions$() {
|
|
7509
7518
|
let e = [];
|
|
7510
7519
|
return a(this.schema$, (t) => {
|
|
7511
|
-
let n =
|
|
7512
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7520
|
+
let n = z(V(t)?.[J(t)])?.length ?? 0, r = e.slice(0, n);
|
|
7521
|
+
for (let e = r.length; e < n; e++) r[e] = new wi(e, this, this.context);
|
|
7513
7522
|
for (let t = r.length; t < e.length; t++) e[t]?.dispose();
|
|
7514
7523
|
return e = r, r;
|
|
7515
7524
|
});
|
|
7516
7525
|
}
|
|
7517
7526
|
deriveConditionSchema$(e, t = "anyOf") {
|
|
7518
|
-
return l(a(this.schema$, (t) =>
|
|
7519
|
-
let r =
|
|
7527
|
+
return l(a(this.schema$, (t) => z(V(t)?.[J(t)])?.[e]), (n) => {
|
|
7528
|
+
let r = V(this.schema$.value), i = J(r);
|
|
7520
7529
|
i !== "allOf" && i !== "anyOf" && i !== "oneOf" && (i = t);
|
|
7521
|
-
let a =
|
|
7530
|
+
let a = z(r?.[i]);
|
|
7522
7531
|
if (!Object.is(a?.[e], n)) {
|
|
7523
7532
|
let t = a?.slice() ?? [];
|
|
7524
7533
|
t[e] = n, this.schema$.set({
|
|
@@ -7529,32 +7538,32 @@ var wi = class {
|
|
|
7529
7538
|
});
|
|
7530
7539
|
}
|
|
7531
7540
|
deriveLabel$(e) {
|
|
7532
|
-
return l(a(this.schema$, (t) =>
|
|
7533
|
-
let n =
|
|
7541
|
+
return l(a(this.schema$, (t) => H(z(V(V(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7542
|
+
let n = V(this.schema$.value), r = V(n?.[K]), i = z(r?.labels);
|
|
7534
7543
|
if (!Object.is(i?.[e], t)) {
|
|
7535
7544
|
let a = i?.slice() ?? [];
|
|
7536
7545
|
a[e] = t, this.schema$.set({
|
|
7537
7546
|
...n,
|
|
7538
7547
|
[K]: {
|
|
7539
7548
|
...r,
|
|
7540
|
-
labels:
|
|
7549
|
+
labels: B(a)
|
|
7541
7550
|
}
|
|
7542
7551
|
});
|
|
7543
7552
|
}
|
|
7544
7553
|
});
|
|
7545
7554
|
}
|
|
7546
|
-
},
|
|
7555
|
+
}, wi = class {
|
|
7547
7556
|
constructor(e, t, n) {
|
|
7548
|
-
this.dispose =
|
|
7557
|
+
this.dispose = I(), this.index = e, this.path = t.path.append(e), this.context = n, this.label$ = this.dispose.add(t.deriveLabel$(e)), this.schema$ = this.dispose.add(t.deriveConditionSchema$(e)), this.widget$ = this.dispose.add(Pi(this.path, this.schema$, n));
|
|
7549
7558
|
}
|
|
7550
|
-
},
|
|
7559
|
+
}, Ti = class extends Si {
|
|
7551
7560
|
constructor(e, t, n) {
|
|
7552
|
-
super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e,
|
|
7561
|
+
super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e, R)), this.itemsWidget$ = this.dispose.add(Pi(this.path.append("items"), this.itemsSchema$, n));
|
|
7553
7562
|
}
|
|
7554
7563
|
isArray() {
|
|
7555
7564
|
return !0;
|
|
7556
7565
|
}
|
|
7557
|
-
},
|
|
7566
|
+
}, Ei = /*#__PURE__*/ new Set([
|
|
7558
7567
|
"string",
|
|
7559
7568
|
"integer",
|
|
7560
7569
|
"number",
|
|
@@ -7565,7 +7574,7 @@ var wi = class {
|
|
|
7565
7574
|
"array",
|
|
7566
7575
|
"object",
|
|
7567
7576
|
"anyOf"
|
|
7568
|
-
]),
|
|
7577
|
+
]), Di = (e) => [
|
|
7569
7578
|
{
|
|
7570
7579
|
label: e("schemaEditor.stringFormat.email"),
|
|
7571
7580
|
value: "email"
|
|
@@ -7579,13 +7588,13 @@ var wi = class {
|
|
|
7579
7588
|
value: ""
|
|
7580
7589
|
}
|
|
7581
7590
|
];
|
|
7582
|
-
function
|
|
7591
|
+
function Oi(e, t) {
|
|
7583
7592
|
let n = e || "";
|
|
7584
|
-
return
|
|
7593
|
+
return Di(t).find((e) => e.value === n);
|
|
7585
7594
|
}
|
|
7586
7595
|
//#endregion
|
|
7587
7596
|
//#region src/designer/browser/stores/schemaEditor/selectWidget.store.ts
|
|
7588
|
-
var
|
|
7597
|
+
var ki = class extends Si {
|
|
7589
7598
|
constructor(e, t, n) {
|
|
7590
7599
|
super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
|
|
7591
7600
|
for (let e of this.items$.value) e.dispose();
|
|
@@ -7595,27 +7604,27 @@ var ji = class extends wi {
|
|
|
7595
7604
|
return !0;
|
|
7596
7605
|
}
|
|
7597
7606
|
addItem(e) {
|
|
7598
|
-
let t = { ...
|
|
7607
|
+
let t = { ...V(this.schema$.value) }, n = z(t.enum)?.slice() ?? [], r = { ...V(t[K]) }, i = z(r.labels)?.slice() ?? [];
|
|
7599
7608
|
for (; i.length < n.length;) i.push("");
|
|
7600
|
-
i.splice(e + 1, 0, ""), r.labels =
|
|
7609
|
+
i.splice(e + 1, 0, ""), r.labels = B(i), n.splice(e + 1, 0, ""), t.enum = n, t[K] = r, this.schema$.set(t);
|
|
7601
7610
|
}
|
|
7602
7611
|
removeItem(e) {
|
|
7603
|
-
let t = { ...
|
|
7612
|
+
let t = { ...V(this.schema$.value) }, n = z(t.enum)?.slice() ?? [], r = { ...V(t[K]) }, i = z(r.labels)?.slice() ?? [];
|
|
7604
7613
|
for (; i.length < n.length;) i.push("");
|
|
7605
|
-
i.splice(e, 1), r.labels =
|
|
7614
|
+
i.splice(e, 1), r.labels = B(i), n.splice(e, 1), t.enum = n, t[K] = r, this.schema$.set(t);
|
|
7606
7615
|
}
|
|
7607
7616
|
deriveItems() {
|
|
7608
7617
|
let e = [];
|
|
7609
7618
|
return a(this.schema$, (t) => {
|
|
7610
|
-
let n =
|
|
7611
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7619
|
+
let n = z(V(t)?.enum)?.length ?? 0, r = e.slice(0, n);
|
|
7620
|
+
for (let e = r.length; e < n; e++) r[e] = new Ai(e, this, this.context);
|
|
7612
7621
|
for (let t = r.length; t < e.length; t++) e[t]?.dispose();
|
|
7613
7622
|
return e = r, r;
|
|
7614
7623
|
});
|
|
7615
7624
|
}
|
|
7616
7625
|
deriveValue$(e) {
|
|
7617
|
-
return l(a(this.schema$, (t) =>
|
|
7618
|
-
let n =
|
|
7626
|
+
return l(a(this.schema$, (t) => z(V(t)?.enum)?.[e]), (t) => {
|
|
7627
|
+
let n = V(this.schema$.value), r = z(n?.enum);
|
|
7619
7628
|
if (!Object.is(r?.[e], t)) {
|
|
7620
7629
|
let i = r?.slice() ?? [];
|
|
7621
7630
|
i[e] = t, this.schema$.set({
|
|
@@ -7626,25 +7635,25 @@ var ji = class extends wi {
|
|
|
7626
7635
|
});
|
|
7627
7636
|
}
|
|
7628
7637
|
deriveLabel$(e) {
|
|
7629
|
-
return l(a(this.schema$, (t) =>
|
|
7630
|
-
let n =
|
|
7638
|
+
return l(a(this.schema$, (t) => H(z(V(V(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7639
|
+
let n = V(this.schema$.value), r = V(n?.[K]), i = z(r?.labels);
|
|
7631
7640
|
if (!Object.is(i?.[e], t)) {
|
|
7632
7641
|
let a = i?.slice() ?? [];
|
|
7633
7642
|
a[e] = t, this.schema$.set({
|
|
7634
7643
|
...n,
|
|
7635
7644
|
[K]: {
|
|
7636
7645
|
...r,
|
|
7637
|
-
labels:
|
|
7646
|
+
labels: B(a)
|
|
7638
7647
|
}
|
|
7639
7648
|
});
|
|
7640
7649
|
}
|
|
7641
7650
|
});
|
|
7642
7651
|
}
|
|
7643
|
-
},
|
|
7652
|
+
}, Ai = class {
|
|
7644
7653
|
constructor(e, t, n) {
|
|
7645
|
-
this.index = e, this.selectStore = t, this.context = n, this.dispose =
|
|
7654
|
+
this.index = e, this.selectStore = t, this.context = n, this.dispose = I(), this.value$ = this.dispose.add(this.selectStore.deriveValue$(e)), this.label$ = this.dispose.add(this.selectStore.deriveLabel$(e));
|
|
7646
7655
|
}
|
|
7647
|
-
},
|
|
7656
|
+
}, ji = class extends Si {
|
|
7648
7657
|
constructor(e, t, n) {
|
|
7649
7658
|
super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
|
|
7650
7659
|
for (let e of this.items$.value) e.dispose();
|
|
@@ -7654,30 +7663,30 @@ var ji = class extends wi {
|
|
|
7654
7663
|
return !0;
|
|
7655
7664
|
}
|
|
7656
7665
|
addItem(e) {
|
|
7657
|
-
let t = { ...
|
|
7666
|
+
let t = { ...V(this.schema$.value) }, n = { ...V(t.items) }, r = z(n.enum)?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
7658
7667
|
for (; a.length < r.length;) a.push("");
|
|
7659
|
-
a.splice(e + 1, 0, ""), i.labels =
|
|
7668
|
+
a.splice(e + 1, 0, ""), i.labels = B(a), r.splice(e + 1, 0, ""), n.enum = r, t.items = n, t[K] = i, this.schema$.set(t);
|
|
7660
7669
|
}
|
|
7661
7670
|
removeItem(e) {
|
|
7662
|
-
let t = { ...
|
|
7671
|
+
let t = { ...V(this.schema$.value) }, n = { ...V(t.items) }, r = z(n.enum)?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
7663
7672
|
for (; a.length < r.length;) a.push("");
|
|
7664
|
-
a.splice(e, 1), i.labels =
|
|
7673
|
+
a.splice(e, 1), i.labels = B(a), r.splice(e, 1), n.enum = r, t.items = n, t[K] = i, this.schema$.set(t);
|
|
7665
7674
|
}
|
|
7666
7675
|
deriveItems() {
|
|
7667
7676
|
let e = [];
|
|
7668
7677
|
return a(this.schema$, (t) => {
|
|
7669
|
-
let n =
|
|
7670
|
-
for (let e = i.length; e < r; e++) i[e] = new
|
|
7678
|
+
let n = V(t)?.items, r = z(V(n)?.enum)?.length ?? 0, i = e.slice(0, r);
|
|
7679
|
+
for (let e = i.length; e < r; e++) i[e] = new Ai(e, this, this.context);
|
|
7671
7680
|
for (let t = i.length; t < e.length; t++) e[t].dispose();
|
|
7672
7681
|
return e = i, i;
|
|
7673
7682
|
});
|
|
7674
7683
|
}
|
|
7675
7684
|
deriveValue$(e) {
|
|
7676
7685
|
return l(a(this.schema$, (t) => {
|
|
7677
|
-
let n =
|
|
7678
|
-
return
|
|
7686
|
+
let n = V(t)?.items;
|
|
7687
|
+
return z(V(n)?.enum)?.[e];
|
|
7679
7688
|
}), (t) => {
|
|
7680
|
-
let n =
|
|
7689
|
+
let n = V(this.schema$.value), r = V(n?.items), i = z(r?.enum);
|
|
7681
7690
|
if (!Object.is(i?.[e], t)) {
|
|
7682
7691
|
let a = i?.slice() ?? [];
|
|
7683
7692
|
a[e] = t, this.schema$.set({
|
|
@@ -7691,21 +7700,21 @@ var ji = class extends wi {
|
|
|
7691
7700
|
});
|
|
7692
7701
|
}
|
|
7693
7702
|
deriveLabel$(e) {
|
|
7694
|
-
return l(a(this.schema$, (t) =>
|
|
7695
|
-
let n =
|
|
7703
|
+
return l(a(this.schema$, (t) => H(z(V(V(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7704
|
+
let n = V(this.schema$.value), r = V(n?.[K]), i = z(r?.labels);
|
|
7696
7705
|
if (!Object.is(i?.[e], t)) {
|
|
7697
7706
|
let a = i?.slice() ?? [];
|
|
7698
7707
|
a[e] = t, this.schema$.set({
|
|
7699
7708
|
...n,
|
|
7700
7709
|
[K]: {
|
|
7701
7710
|
...r,
|
|
7702
|
-
labels:
|
|
7711
|
+
labels: B(a)
|
|
7703
7712
|
}
|
|
7704
7713
|
});
|
|
7705
7714
|
}
|
|
7706
7715
|
});
|
|
7707
7716
|
}
|
|
7708
|
-
},
|
|
7717
|
+
}, Mi = class extends Si {
|
|
7709
7718
|
constructor(e, t, n) {
|
|
7710
7719
|
super(e, t, n), this.fields$ = this.dispose.add(this.deriveFields$());
|
|
7711
7720
|
}
|
|
@@ -7717,9 +7726,9 @@ var ji = class extends wi {
|
|
|
7717
7726
|
console.error(/* @__PURE__ */ Error("User can't add object field"));
|
|
7718
7727
|
return;
|
|
7719
7728
|
}
|
|
7720
|
-
let t =
|
|
7729
|
+
let t = V(this.schema$.value), n = V(t?.properties);
|
|
7721
7730
|
if (n) {
|
|
7722
|
-
let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a =
|
|
7731
|
+
let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a = rt("field", r.map(([e]) => e)), o = i > 0 ? r[i - 1][1] : null;
|
|
7723
7732
|
r.splice(i, 0, [a, o || q()]), this.schema$.set({
|
|
7724
7733
|
...t,
|
|
7725
7734
|
properties: Object.fromEntries(r)
|
|
@@ -7730,7 +7739,7 @@ var ji = class extends wi {
|
|
|
7730
7739
|
});
|
|
7731
7740
|
}
|
|
7732
7741
|
renameField(e, t) {
|
|
7733
|
-
let n =
|
|
7742
|
+
let n = V(this.schema$.value), r = V(n?.properties);
|
|
7734
7743
|
if (r) {
|
|
7735
7744
|
let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
|
|
7736
7745
|
a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
|
|
@@ -7740,7 +7749,7 @@ var ji = class extends wi {
|
|
|
7740
7749
|
}
|
|
7741
7750
|
}
|
|
7742
7751
|
removeField(e) {
|
|
7743
|
-
let t =
|
|
7752
|
+
let t = V(this.schema$.value), n = V(t?.properties);
|
|
7744
7753
|
if (n) {
|
|
7745
7754
|
let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
|
|
7746
7755
|
i >= 0 && (r.splice(i, 1), this.schema$.set({
|
|
@@ -7752,44 +7761,44 @@ var ji = class extends wi {
|
|
|
7752
7761
|
deriveFields$() {
|
|
7753
7762
|
let e, t = [];
|
|
7754
7763
|
return a(this.schema$, (n) => {
|
|
7755
|
-
let r =
|
|
7764
|
+
let r = V(n?.properties);
|
|
7756
7765
|
if (e === r) return t;
|
|
7757
7766
|
e = r;
|
|
7758
|
-
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new
|
|
7767
|
+
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Ni(e, this, this.context)) : [];
|
|
7759
7768
|
for (let e of t) r?.[e.name] || e.dispose();
|
|
7760
7769
|
return t = i, i;
|
|
7761
7770
|
}, { equal: d });
|
|
7762
7771
|
}
|
|
7763
|
-
},
|
|
7772
|
+
}, Ni = class {
|
|
7764
7773
|
constructor(e, t, n) {
|
|
7765
|
-
this.dispose =
|
|
7766
|
-
let r =
|
|
7774
|
+
this.dispose = I(), this.name = e, this.context = n, this.path = t.path.append(e), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => t?.properties?.[e]), (n) => {
|
|
7775
|
+
let r = V(t.schema$.value);
|
|
7767
7776
|
t.schema$.set({
|
|
7768
7777
|
...r,
|
|
7769
7778
|
properties: {
|
|
7770
|
-
...
|
|
7779
|
+
...V(r?.properties),
|
|
7771
7780
|
[e]: n
|
|
7772
7781
|
}
|
|
7773
7782
|
});
|
|
7774
|
-
})), this.widget$ = this.dispose.add(
|
|
7783
|
+
})), this.widget$ = this.dispose.add(Pi(this.path, this.schema$, n));
|
|
7775
7784
|
}
|
|
7776
|
-
},
|
|
7777
|
-
let r =
|
|
7785
|
+
}, Pi = (e, t, n) => {
|
|
7786
|
+
let r = P(), i = a(t, J), o = a(i, (i) => {
|
|
7778
7787
|
let a;
|
|
7779
|
-
return a = i === "select" ? new
|
|
7788
|
+
return a = i === "select" ? new ki(e, t, n) : i === "multiSelect" ? new ji(e, t, n) : i === "array" ? new Ti(e, t, n) : i === "object" ? new Mi(e, t, n) : i === "anyOf" ? new Ci(e, t, n) : new Si(e, t, n), r.set(a);
|
|
7780
7789
|
}), s = o.dispose, c = i.reaction((t) => {
|
|
7781
|
-
|
|
7790
|
+
Ei.has(t) && n.expand(e);
|
|
7782
7791
|
});
|
|
7783
7792
|
return o.dispose = () => {
|
|
7784
7793
|
c(), s.call(o), r.dispose();
|
|
7785
7794
|
}, o;
|
|
7786
|
-
},
|
|
7795
|
+
}, Fi = class {
|
|
7787
7796
|
constructor(e, t, n, r) {
|
|
7788
7797
|
this.schema$ = t, this.expanded$ = n, this.createSchemaEditor = r, this.role = e.role, this.inout = e.inout, this.enableAny = e.enableAny ?? !0, this.restrict$ = e.restrict$;
|
|
7789
7798
|
}
|
|
7790
7799
|
deriveExpanded$(e) {
|
|
7791
7800
|
return l(a(this.expanded$, (t) => t?.[e.key] ?? !1), (t) => {
|
|
7792
|
-
let n =
|
|
7801
|
+
let n = V(this.expanded$.value);
|
|
7793
7802
|
if (t) n?.[e.key] || this.expanded$.set({
|
|
7794
7803
|
...n,
|
|
7795
7804
|
[e.key]: !0
|
|
@@ -7812,21 +7821,21 @@ var ji = class extends wi {
|
|
|
7812
7821
|
get canEditValue() {
|
|
7813
7822
|
return this.role === "author" || this.role === "user";
|
|
7814
7823
|
}
|
|
7815
|
-
},
|
|
7824
|
+
}, Ii = class {
|
|
7816
7825
|
constructor(e, t, n, r, i, a) {
|
|
7817
|
-
this.dispose =
|
|
7826
|
+
this.dispose = I(), this.path = wn.get(), this.name = e, this.description$ = t, this.displayDescription$ = n, this.context = a, this.schema$ = a.schema$, this.nullable$ = r, this.kind$ = i, this.widget$ = this.dispose.add(Pi(this.path, this.schema$, a));
|
|
7818
7827
|
}
|
|
7819
|
-
},
|
|
7820
|
-
function
|
|
7821
|
-
return
|
|
7828
|
+
}, Li = "primitive";
|
|
7829
|
+
function Ri(e) {
|
|
7830
|
+
return H(e?.contentMediaType) === Jt.binary ? "bin" : Li;
|
|
7822
7831
|
}
|
|
7823
7832
|
//#endregion
|
|
7824
7833
|
//#region src/designer/browser/stores/nodeHandle/simpleWidget.store.ts
|
|
7825
|
-
var
|
|
7834
|
+
var zi = class {
|
|
7826
7835
|
constructor(e, t, n, r, i) {
|
|
7827
|
-
if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose =
|
|
7836
|
+
if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose = I(), this.description$ = this.dispose.add(this.deriveDescription$(this.schema$)), this.descCollapsed$ = this.dispose.add(s(!this.description$.value)), this.schemaWidgetType$ = this.dispose.add(a(this.schema$, J)), this.overrideWidgetType$ = this.dispose.add(a(this.overrideSchema$, (e) => J(e?.schema))), this.widgetType$ = this.dispose.add(u([this.schemaWidgetType$, this.overrideWidgetType$], ([e, t]) => $t(e) ? t : e)), this.hasSubpanel$ = this.dispose.add(c((e) => {
|
|
7828
7837
|
let t = this.context.restrict$ != null && e(this.context.restrict$) != null;
|
|
7829
|
-
return
|
|
7838
|
+
return Bi(this.context, e(this.widgetType$), e(this.schema$), t);
|
|
7830
7839
|
})), r) {
|
|
7831
7840
|
let e = {};
|
|
7832
7841
|
this.dispose.add([r.subscribe((t) => {
|
|
@@ -7852,33 +7861,33 @@ var Vi = class {
|
|
|
7852
7861
|
return !1;
|
|
7853
7862
|
}
|
|
7854
7863
|
deriveDescription$(e) {
|
|
7855
|
-
return l(a(e, (e) => V(
|
|
7856
|
-
|
|
7864
|
+
return l(a(e, (e) => H(V(e)?.description)), (t) => {
|
|
7865
|
+
_(e.value) && e.set({
|
|
7857
7866
|
...e.value,
|
|
7858
7867
|
description: t
|
|
7859
7868
|
});
|
|
7860
7869
|
});
|
|
7861
7870
|
}
|
|
7862
7871
|
};
|
|
7863
|
-
function
|
|
7864
|
-
let i =
|
|
7872
|
+
function Bi(e, t, n, r) {
|
|
7873
|
+
let i = V(n), a = J(i);
|
|
7865
7874
|
if (t == "object") {
|
|
7866
7875
|
if (!r && e.canEditSchema || a == "any") return !0;
|
|
7867
|
-
let t =
|
|
7876
|
+
let t = V(i?.properties), n = t != null && Object.keys(t).length > 0;
|
|
7868
7877
|
return e.inout == "in" ? n || i?.additionalProperties !== !1 : n;
|
|
7869
7878
|
}
|
|
7870
7879
|
return e.inout == "in" && (t == "text" || t == "array" || i?.anyOf != null || i?.allOf != null || i?.oneOf != null);
|
|
7871
7880
|
}
|
|
7872
7881
|
//#endregion
|
|
7873
7882
|
//#region src/designer/browser/stores/nodeHandle/anyOfWidget.store.ts
|
|
7874
|
-
var
|
|
7883
|
+
var Vi = class extends zi {
|
|
7875
7884
|
constructor(e, t, n, r, i) {
|
|
7876
|
-
super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) =>
|
|
7885
|
+
super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => U(V(V(e)?.[K])?.selected)), (e) => {
|
|
7877
7886
|
e ? f(this.overrideSchema$, {
|
|
7878
|
-
...
|
|
7887
|
+
...V(this.overrideSchema$.value),
|
|
7879
7888
|
path: this.path,
|
|
7880
7889
|
[K]: {
|
|
7881
|
-
...
|
|
7890
|
+
...V(V(this.overrideSchema$.value)?.[K]),
|
|
7882
7891
|
selected: e
|
|
7883
7892
|
}
|
|
7884
7893
|
}) : f(this.overrideSchema$, void 0);
|
|
@@ -7886,16 +7895,16 @@ var Ui = class extends Vi {
|
|
|
7886
7895
|
this.schemaWidgetType$,
|
|
7887
7896
|
this.schema$,
|
|
7888
7897
|
this.selected$
|
|
7889
|
-
], ([e, t, n]) =>
|
|
7890
|
-
let t =
|
|
7898
|
+
], ([e, t, n]) => z(V(t)?.[e])?.[n || 0]), (e) => {
|
|
7899
|
+
let t = z(V(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
|
|
7891
7900
|
f(this.schema$, {
|
|
7892
|
-
...
|
|
7901
|
+
...V(this.schema$.value),
|
|
7893
7902
|
[this.schemaWidgetType$.value]: t.toSpliced(this.selected$.value || 0, 1, e)
|
|
7894
7903
|
});
|
|
7895
7904
|
}));
|
|
7896
|
-
let o = this.dispose.add(
|
|
7905
|
+
let o = this.dispose.add(P()), s;
|
|
7897
7906
|
if (this.condition$ = this.dispose.add(u([this.selected$, this.selectedSchema$], ([e = 0, t]) => {
|
|
7898
|
-
if (t) return s?.selected === e ? s : (s = new
|
|
7907
|
+
if (t) return s?.selected === e ? s : (s = new Hi(e, this.selectedSchema$, this, this.context), o.set(s));
|
|
7899
7908
|
})), r) {
|
|
7900
7909
|
let e = {};
|
|
7901
7910
|
this.dispose.add([r.subscribe((t) => {
|
|
@@ -7908,13 +7917,13 @@ var Ui = class extends Vi {
|
|
|
7908
7917
|
isAnyOf() {
|
|
7909
7918
|
return !0;
|
|
7910
7919
|
}
|
|
7911
|
-
},
|
|
7920
|
+
}, Hi = class {
|
|
7912
7921
|
constructor(e, t, n, r) {
|
|
7913
|
-
this.dispose =
|
|
7922
|
+
this.dispose = I(), this.selected = e, this.schema$ = t, this.context = r, this.value$ = n.value$, this.overrideSchema$ = n.overrideSchema$, this.widget$ = this.dispose.add(qi(n.path, this.schema$, r, this.value$, this.overrideSchema$));
|
|
7914
7923
|
}
|
|
7915
|
-
},
|
|
7924
|
+
}, Ui = class extends zi {
|
|
7916
7925
|
constructor(e, t, n, r, i) {
|
|
7917
|
-
super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) =>
|
|
7926
|
+
super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) => V(e)?.items), W(t, "items"))), this.itemsWidgetType$ = this.dispose.add(a(this.itemsSchema$, (e) => J(e))), r && (this.items$ = this.dispose.add(this.deriveItems(r)), this.dispose.add(() => {
|
|
7918
7927
|
for (let e of this.items$.value) e.dispose();
|
|
7919
7928
|
}));
|
|
7920
7929
|
}
|
|
@@ -7923,7 +7932,7 @@ var Ui = class extends Vi {
|
|
|
7923
7932
|
}
|
|
7924
7933
|
addItem(e) {
|
|
7925
7934
|
if (this.value$) {
|
|
7926
|
-
let t =
|
|
7935
|
+
let t = z(this.value$.value), n = Qt(J(this.itemsSchema$.value));
|
|
7927
7936
|
if (t) {
|
|
7928
7937
|
this.context.duplicateSchemaOverrideItem(this.path.append(e));
|
|
7929
7938
|
let r = t.toSpliced(e + 1, 0, n);
|
|
@@ -7933,7 +7942,7 @@ var Ui = class extends Vi {
|
|
|
7933
7942
|
}
|
|
7934
7943
|
removeItem(e) {
|
|
7935
7944
|
if (this.context.removeSchemaOverrideItem(this.path.append(e)), this.value$) {
|
|
7936
|
-
let t =
|
|
7945
|
+
let t = z(this.value$.value);
|
|
7937
7946
|
f(this.value$, t ? t.toSpliced(e, 1) : []);
|
|
7938
7947
|
}
|
|
7939
7948
|
}
|
|
@@ -7941,27 +7950,27 @@ var Ui = class extends Vi {
|
|
|
7941
7950
|
let t = [];
|
|
7942
7951
|
return a(e, (e) => {
|
|
7943
7952
|
let n = Array.isArray(e) ? e.length : 0, r = t.slice(0, n);
|
|
7944
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7953
|
+
for (let e = r.length; e < n; e++) r[e] = new Wi(e, this, this.context);
|
|
7945
7954
|
for (let e = r.length; e < t.length; e++) t[e]?.dispose();
|
|
7946
7955
|
return t = r, r;
|
|
7947
7956
|
});
|
|
7948
7957
|
}
|
|
7949
|
-
},
|
|
7958
|
+
}, Wi = class {
|
|
7950
7959
|
constructor(e, t, n) {
|
|
7951
|
-
this.dispose =
|
|
7960
|
+
this.dispose = I(), this.index = e, this.context = n, this.path = t.path.append(e);
|
|
7952
7961
|
let r = t.value$;
|
|
7953
|
-
r && (this.value$ = this.dispose.add(l(a(r, (t) =>
|
|
7954
|
-
let n =
|
|
7962
|
+
r && (this.value$ = this.dispose.add(l(a(r, (t) => z(t)?.[e]), (t) => {
|
|
7963
|
+
let n = z(r.value);
|
|
7955
7964
|
if (!Object.is(n?.[e], t)) {
|
|
7956
7965
|
let i = n?.slice() ?? [];
|
|
7957
7966
|
i[e] = t, r.set(i);
|
|
7958
7967
|
}
|
|
7959
|
-
}))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(
|
|
7968
|
+
}))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(qi(this.path, this.schema$, n, this.value$, this.overrideSchema$));
|
|
7960
7969
|
}
|
|
7961
|
-
},
|
|
7970
|
+
}, Gi = class extends zi {
|
|
7962
7971
|
constructor(e, t, n, r, i) {
|
|
7963
7972
|
super(e, t, n, r, i), this.allowsUntypedFields$ = this.dispose.add(a(this.schema$, (e) => {
|
|
7964
|
-
let t =
|
|
7973
|
+
let t = V(e);
|
|
7965
7974
|
return J(e) == "object" && t?.additionalProperties !== !1;
|
|
7966
7975
|
})), this.fixedFields$ = this.dispose.add(this.deriveFixedFields$()), this.overrideFields$ = this.dispose.add(this.deriveOverrideFields$()), this.untypedFields$ = r == null ? void 0 : this.dispose.add(this.deriveUntypedFields$(r)), this.fieldNames$ = this.dispose.add(this.untypedFields$ ? u([
|
|
7967
7976
|
this.fixedFields$,
|
|
@@ -7985,7 +7994,7 @@ var Ui = class extends Vi {
|
|
|
7985
7994
|
console.error(/* @__PURE__ */ Error("User can't add fixed field"));
|
|
7986
7995
|
return;
|
|
7987
7996
|
}
|
|
7988
|
-
let t =
|
|
7997
|
+
let t = V(this.schema$.value), n = V(t?.properties), r = rt("field", this.fieldNames$.value);
|
|
7989
7998
|
if (n) {
|
|
7990
7999
|
let i = Object.keys(n), a = {}, o;
|
|
7991
8000
|
for (let t = 0; t < e; t++) o = a[i[t]] = n[i[t]];
|
|
@@ -8000,7 +8009,7 @@ var Ui = class extends Vi {
|
|
|
8000
8009
|
properties: { [r]: q() }
|
|
8001
8010
|
});
|
|
8002
8011
|
if (this.value$) {
|
|
8003
|
-
let e =
|
|
8012
|
+
let e = V(this.value$.value);
|
|
8004
8013
|
e ? this.value$.set({
|
|
8005
8014
|
...e,
|
|
8006
8015
|
[r]: void 0
|
|
@@ -8008,12 +8017,12 @@ var Ui = class extends Vi {
|
|
|
8008
8017
|
}
|
|
8009
8018
|
}
|
|
8010
8019
|
addOverrideField(e) {
|
|
8011
|
-
let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n =
|
|
8020
|
+
let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = rt("field", this.fieldNames$.value);
|
|
8012
8021
|
if (this.context.addSchemaOverrideItem({
|
|
8013
8022
|
path: this.path.append(n),
|
|
8014
8023
|
schema: t?.schema$.value || q()
|
|
8015
8024
|
}, e), this.value$) {
|
|
8016
|
-
let e =
|
|
8025
|
+
let e = V(this.value$.value);
|
|
8017
8026
|
e ? this.value$.set({
|
|
8018
8027
|
...e,
|
|
8019
8028
|
[n]: void 0
|
|
@@ -8022,7 +8031,7 @@ var Ui = class extends Vi {
|
|
|
8022
8031
|
}
|
|
8023
8032
|
addUntypedField() {
|
|
8024
8033
|
if (this.value$ == null) return;
|
|
8025
|
-
let e =
|
|
8034
|
+
let e = V(this.value$.value) ?? {}, t = rt("field", this.fieldNames$.value);
|
|
8026
8035
|
this.value$.set({
|
|
8027
8036
|
...e,
|
|
8028
8037
|
[t]: void 0
|
|
@@ -8032,7 +8041,7 @@ var Ui = class extends Vi {
|
|
|
8032
8041
|
this.context.role === "author" && e === "fixed" && !this.context.restrict$?.value ? this.addFixedField(t + 1) : e === "untyped" ? this.addUntypedField() : this.addOverrideField(e === "override" ? t + 1 : 0);
|
|
8033
8042
|
}
|
|
8034
8043
|
renameField(e, t) {
|
|
8035
|
-
let n =
|
|
8044
|
+
let n = V(this.schema$.value), r = V(n?.properties);
|
|
8036
8045
|
if (r) {
|
|
8037
8046
|
let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
|
|
8038
8047
|
a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
|
|
@@ -8049,7 +8058,7 @@ var Ui = class extends Vi {
|
|
|
8049
8058
|
}));
|
|
8050
8059
|
}
|
|
8051
8060
|
if (this.value$) {
|
|
8052
|
-
let n =
|
|
8061
|
+
let n = V(this.value$.value);
|
|
8053
8062
|
if (n) {
|
|
8054
8063
|
let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
|
|
8055
8064
|
i >= 0 && (r[i] = [t, r[i][1]], this.value$.set(Object.fromEntries(r)));
|
|
@@ -8062,7 +8071,7 @@ var Ui = class extends Vi {
|
|
|
8062
8071
|
}
|
|
8063
8072
|
}
|
|
8064
8073
|
removeField(e) {
|
|
8065
|
-
let t =
|
|
8074
|
+
let t = V(this.schema$.value), n = t?.properties;
|
|
8066
8075
|
if (n) {
|
|
8067
8076
|
let r = Object.entries(n), i = r.findIndex((t) => t[0] === e);
|
|
8068
8077
|
i >= 0 && this.schema$.set({
|
|
@@ -8071,7 +8080,7 @@ var Ui = class extends Vi {
|
|
|
8071
8080
|
});
|
|
8072
8081
|
}
|
|
8073
8082
|
this.context.removeSchemaOverrideItem(this.path.append(e));
|
|
8074
|
-
let r =
|
|
8083
|
+
let r = V(this.value$?.value);
|
|
8075
8084
|
if (r) {
|
|
8076
8085
|
let t = { ...r };
|
|
8077
8086
|
delete t[e], this.value$?.set(t);
|
|
@@ -8088,10 +8097,10 @@ var Ui = class extends Vi {
|
|
|
8088
8097
|
deriveFixedFields$() {
|
|
8089
8098
|
let e, t = [];
|
|
8090
8099
|
return a(this.schema$, (n) => {
|
|
8091
|
-
let r =
|
|
8100
|
+
let r = V(n?.properties);
|
|
8092
8101
|
if (e === r) return t;
|
|
8093
8102
|
e = r;
|
|
8094
|
-
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new
|
|
8103
|
+
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Ki(e, this, this.context)) : [];
|
|
8095
8104
|
for (let e of t) r?.[e.name] || e.dispose();
|
|
8096
8105
|
return t = i, i;
|
|
8097
8106
|
}, { equal: d });
|
|
@@ -8101,10 +8110,10 @@ var Ui = class extends Vi {
|
|
|
8101
8110
|
return u([this.context.schemaOverrides$, this.schema$], ([t, n]) => {
|
|
8102
8111
|
let r = [];
|
|
8103
8112
|
if (t) {
|
|
8104
|
-
let i =
|
|
8113
|
+
let i = V(V(n)?.properties);
|
|
8105
8114
|
for (let n of t) if (this.path.matchChild(n.path)) {
|
|
8106
8115
|
let t = n.path.last();
|
|
8107
|
-
|
|
8116
|
+
h(t) && !i?.[t] && r.push(e?.find((e) => e.name === t) ?? new Ki(t, this, this.context, "override"));
|
|
8108
8117
|
}
|
|
8109
8118
|
}
|
|
8110
8119
|
if (e) for (let t of e) r.some((e) => e.name === t.name) || t.dispose();
|
|
@@ -8118,33 +8127,33 @@ var Ui = class extends Vi {
|
|
|
8118
8127
|
this.schema$,
|
|
8119
8128
|
this.context.schemaOverrides$
|
|
8120
8129
|
], ([e, n, r]) => {
|
|
8121
|
-
let i =
|
|
8130
|
+
let i = V(n), a = V(i?.properties), o = /* @__PURE__ */ new Set();
|
|
8122
8131
|
for (let e of r ?? []) {
|
|
8123
8132
|
if (!this.path.matchChild(e.path)) continue;
|
|
8124
8133
|
let t = e.path.last();
|
|
8125
|
-
|
|
8134
|
+
h(t) && o.add(t);
|
|
8126
8135
|
}
|
|
8127
|
-
let s = i?.additionalProperties === !1 ? void 0 :
|
|
8136
|
+
let s = i?.additionalProperties === !1 ? void 0 : V(e), c = s == null ? [] : Object.keys(s).filter((e) => a?.[e] == null && !o.has(e)).map((e) => t.find((t) => t.name === e) ?? new Ki(e, this, this.context, "untyped"));
|
|
8128
8137
|
for (let e of t) c.some((t) => t.name === e.name) || e.dispose();
|
|
8129
8138
|
return t = c, c;
|
|
8130
8139
|
}, { equal: d });
|
|
8131
8140
|
}
|
|
8132
|
-
},
|
|
8141
|
+
}, Ki = class {
|
|
8133
8142
|
constructor(e, t, n, r = "fixed") {
|
|
8134
|
-
this.dispose =
|
|
8143
|
+
this.dispose = I(), this.name = e, this.context = n, this.path = t.path.append(e), t.value$ && (this.value$ = this.dispose.add(l(a(t.value$, (t) => V(t)?.[e]), (n) => t.setField(e, n)))), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => {
|
|
8135
8144
|
let n = t;
|
|
8136
8145
|
return r === "untyped" ? n?.additionalProperties === !0 ? void 0 : n?.additionalProperties : n?.properties?.[e];
|
|
8137
8146
|
}), (n) => {
|
|
8138
8147
|
if (r === "untyped") return;
|
|
8139
|
-
let i =
|
|
8148
|
+
let i = V(t.schema$.value);
|
|
8140
8149
|
t.schema$.set({
|
|
8141
8150
|
...i,
|
|
8142
8151
|
properties: {
|
|
8143
|
-
...
|
|
8152
|
+
...V(i?.properties),
|
|
8144
8153
|
[e]: n
|
|
8145
8154
|
}
|
|
8146
8155
|
});
|
|
8147
|
-
})), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(
|
|
8156
|
+
})), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(qi(this.path, this.schema$, n, this.value$, this.overrideSchema$));
|
|
8148
8157
|
}
|
|
8149
8158
|
setSchema(e, t) {
|
|
8150
8159
|
if (e === "fixed") this.schema$.set(t);
|
|
@@ -8156,15 +8165,15 @@ var Ui = class extends Vi {
|
|
|
8156
8165
|
schema: t
|
|
8157
8166
|
});
|
|
8158
8167
|
}
|
|
8159
|
-
|
|
8168
|
+
V(t)?.type === "null" && this.value$?.set(null);
|
|
8160
8169
|
}
|
|
8161
|
-
},
|
|
8162
|
-
let o =
|
|
8170
|
+
}, qi = (e, t, n, r, i) => {
|
|
8171
|
+
let o = P(), s = u([t, i], ([e, t]) => {
|
|
8163
8172
|
let n = J(e), r = J(t?.schema);
|
|
8164
8173
|
return n === "any" ? r : n;
|
|
8165
8174
|
}), c = a(s, (a) => {
|
|
8166
8175
|
let s;
|
|
8167
|
-
return s = a === "anyOf" ? new
|
|
8176
|
+
return s = a === "anyOf" ? new Vi(e, t, n, r, i) : a === "object" ? new Gi(e, t, n, r, i) : a === "array" ? new Ui(e, t, n, r, i) : new zi(e, t, n, r, i), o.set(s);
|
|
8168
8177
|
}), l = c.dispose;
|
|
8169
8178
|
return c.dispose = () => {
|
|
8170
8179
|
l.call(c), s.dispose(), o.dispose();
|
|
@@ -8174,20 +8183,20 @@ var Ui = class extends Vi {
|
|
|
8174
8183
|
return t instanceof e;
|
|
8175
8184
|
}
|
|
8176
8185
|
constructor(e, t, n, r, i, o, d, f, p, m) {
|
|
8177
|
-
if (this.dispose =
|
|
8186
|
+
if (this.dispose = I(), this.name = e, this.context = p, this.path = wn.get(), this.value$ = m, this.schema$ = p.schema$, this.restrict$ = p.restrict$, this.restrict$ && this.dispose.add(this.restrict$), this.schemaKind$ = i, this.description$ = t, this.displayDescription$ = n, this.reference$ = o, this.nullable$ = d, this.showSettings$ = f, this.restrict$) {
|
|
8178
8187
|
let e = this.schema$;
|
|
8179
8188
|
this.schema$ = this.dispose.add(l(u([e, this.restrict$], ([e, t]) => t ? t.json_schema : e), (t) => this.restrict$?.value || e.set(t)));
|
|
8180
8189
|
let t = this.nullable$;
|
|
8181
|
-
this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ?
|
|
8190
|
+
this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ? tt(t.nullable) : e), (e) => this.restrict$?.value || t.set(e)));
|
|
8182
8191
|
let n = this.schemaKind$;
|
|
8183
8192
|
this.schemaKind$ = this.dispose.add(l(u([n, this.restrict$], ([e, t]) => t ? t.kind : e), (e) => this.restrict$?.value || n.set(e)));
|
|
8184
8193
|
}
|
|
8185
|
-
if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$,
|
|
8194
|
+
if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$, Ri)), this.lang$ = r, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(qi(this.path, this.schema$, p, this.value$, this.overrideSchema$)), this.dispose.add(this.context.onRequestOpenSchemaEditor(() => this.showSettings$.set(!this.showSettings$.value))), this.value$) {
|
|
8186
8195
|
let e;
|
|
8187
8196
|
this.dispose.add(this.schema$.subscribe((t) => {
|
|
8188
8197
|
e != null && cancelIdleCallback(e), e = requestIdleCallback(() => {
|
|
8189
8198
|
e = void 0;
|
|
8190
|
-
let [n, r] =
|
|
8199
|
+
let [n, r] = bi(t);
|
|
8191
8200
|
this.error$.set(r && {
|
|
8192
8201
|
type: "validationError",
|
|
8193
8202
|
message: r + ""
|
|
@@ -8195,18 +8204,18 @@ var Ui = class extends Vi {
|
|
|
8195
8204
|
});
|
|
8196
8205
|
})), this.dispose.add(() => {
|
|
8197
8206
|
e != null && cancelIdleCallback(e);
|
|
8198
|
-
}), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(
|
|
8207
|
+
}), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(en(J(e(this.schema$))) && en(J(e(this.overrideSchema$)?.schema)) && rn(e(this.value$)) === "array")).subscribe((e) => {
|
|
8199
8208
|
e && this.overrideSchema$.set({
|
|
8200
8209
|
...this.overrideSchema$.value,
|
|
8201
8210
|
path: this.path,
|
|
8202
|
-
schema:
|
|
8211
|
+
schema: Xt("array")
|
|
8203
8212
|
});
|
|
8204
8213
|
}));
|
|
8205
8214
|
}
|
|
8206
8215
|
}
|
|
8207
8216
|
get schemaRowStore() {
|
|
8208
8217
|
if (this.schemaRowStoreCache) return this.schemaRowStoreCache;
|
|
8209
|
-
let e = new
|
|
8218
|
+
let e = new Fi(this.context, this.schema$, s(on(this.schema$.value) <= 3 ? { "[]": !0 } : void 0), this.context.createSchemaEditor), t = new Ii(this.name, this.description$, this.displayDescription$, this.nullable$, this.schemaKind$, e);
|
|
8210
8219
|
return this.schemaRowStoreCache = this.dispose.add(t);
|
|
8211
8220
|
}
|
|
8212
8221
|
validate(e) {
|
|
@@ -8220,7 +8229,7 @@ var Ui = class extends Vi {
|
|
|
8220
8229
|
this.error$.set(void 0);
|
|
8221
8230
|
return;
|
|
8222
8231
|
}
|
|
8223
|
-
let t = J(this.schema$.value), n =
|
|
8232
|
+
let t = J(this.schema$.value), n = nn(t), r = rn(e);
|
|
8224
8233
|
if (n ? n !== r : e === void 0) {
|
|
8225
8234
|
this.error$.set({ type: "typeError" });
|
|
8226
8235
|
return;
|
|
@@ -8232,16 +8241,16 @@ var Ui = class extends Vi {
|
|
|
8232
8241
|
});
|
|
8233
8242
|
return;
|
|
8234
8243
|
}
|
|
8235
|
-
let i =
|
|
8244
|
+
let i = xi(this.validateFn, this.value$.value, this.lang$.value);
|
|
8236
8245
|
i && i.length > 0 ? this.error$.set({
|
|
8237
8246
|
type: "validationError",
|
|
8238
|
-
message:
|
|
8247
|
+
message: yi.errorsText(i)
|
|
8239
8248
|
}) : this.error$.set(void 0);
|
|
8240
8249
|
}
|
|
8241
8250
|
}
|
|
8242
|
-
},
|
|
8251
|
+
}, Ji = class {
|
|
8243
8252
|
constructor(e, t, n, r, i, o, s) {
|
|
8244
|
-
this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/
|
|
8253
|
+
this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/ _e(), this.role = e.role, this.inout = e.inout, this.handlePosition = e.handlePosition, this.enableAny = e.enableAny ?? !0, this.additional = e.additional ?? !1, this.enableSchemaDesc = this.additional && this.inout === "out", this.userLocales = e.userLocales, this.restrict$ = e.restrict && a(e.restrict, (e) => V(e));
|
|
8245
8254
|
}
|
|
8246
8255
|
get canEditSchema() {
|
|
8247
8256
|
return this.role === "author";
|
|
@@ -8253,7 +8262,7 @@ var Ui = class extends Vi {
|
|
|
8253
8262
|
return !0;
|
|
8254
8263
|
}
|
|
8255
8264
|
requestOpenSchemaEditor() {
|
|
8256
|
-
|
|
8265
|
+
ve(this.onRequestOpenSchemaEditor);
|
|
8257
8266
|
}
|
|
8258
8267
|
coalesceSchemaOverrideItems(e) {
|
|
8259
8268
|
let t = this.schemaOverrides$.value;
|
|
@@ -8267,7 +8276,7 @@ var Ui = class extends Vi {
|
|
|
8267
8276
|
if (t) {
|
|
8268
8277
|
let n = {};
|
|
8269
8278
|
for (let r in t) {
|
|
8270
|
-
let i =
|
|
8279
|
+
let i = wn.fromKey(r);
|
|
8271
8280
|
i.equals(e) || i.isInside(e) || (n[r] = t[r]);
|
|
8272
8281
|
}
|
|
8273
8282
|
Object.keys(n).length < Object.keys(t).length && this.collapsed$.set(n);
|
|
@@ -8283,7 +8292,7 @@ var Ui = class extends Vi {
|
|
|
8283
8292
|
return;
|
|
8284
8293
|
}
|
|
8285
8294
|
let n = this.schemaOverrides$.value, r = -1;
|
|
8286
|
-
if (
|
|
8295
|
+
if (De(t)) {
|
|
8287
8296
|
let i = 0;
|
|
8288
8297
|
for (let a = 0; a < n.length; a++) if (n[a].path.length === e.path.length && (i++, i >= t)) {
|
|
8289
8298
|
r = t === 0 ? a : a + 1;
|
|
@@ -8353,38 +8362,38 @@ var Ui = class extends Vi {
|
|
|
8353
8362
|
});
|
|
8354
8363
|
}
|
|
8355
8364
|
deriveCollapsed$(e) {
|
|
8356
|
-
return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1),
|
|
8365
|
+
return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), it(this.collapsed$, e.key));
|
|
8357
8366
|
}
|
|
8358
8367
|
deriveHeight$(e) {
|
|
8359
|
-
return l(a(this.height$, (t) => t?.[e.key]),
|
|
8368
|
+
return l(a(this.height$, (t) => t?.[e.key]), it(this.height$, e.key));
|
|
8360
8369
|
}
|
|
8361
8370
|
};
|
|
8362
8371
|
//#endregion
|
|
8363
8372
|
//#region src/designer/browser/stores/node/constants.ts
|
|
8364
|
-
function
|
|
8373
|
+
function Yi(e, t) {
|
|
8365
8374
|
return e.handle == null ? t.handle == null && e.group === t.group : e.handle === t.handle;
|
|
8366
8375
|
}
|
|
8367
|
-
function
|
|
8376
|
+
function Xi(e) {
|
|
8368
8377
|
return e.handle != null;
|
|
8369
8378
|
}
|
|
8370
|
-
function
|
|
8379
|
+
function Zi(e) {
|
|
8371
8380
|
return e.handle == null;
|
|
8372
8381
|
}
|
|
8373
|
-
var
|
|
8382
|
+
var Qi = /* @__PURE__ */ function(e) {
|
|
8374
8383
|
return e.ErrorNode = "error_node", e.InputNode = "input_node", e.OutputNode = "output_node", e.TaskNode = "task_node", e.SubflowNode = "subflow_node", e.ValueNode = "value_node", e.ConditionNode = "condition_node", e.CommentNode = "comment_node", e.TriggerNode = "trigger_node", e;
|
|
8375
|
-
}({}),
|
|
8384
|
+
}({}), $i = (e) => e == "task_node" || e == "value_node" || e == "subflow_node" || e == "condition_node" || e == "trigger_node" || e == "error_node", ea = (e) => e == "input_node" || e == "output_node", ta = /* @__PURE__ */ function(e) {
|
|
8376
8385
|
return e.Idle = "idle", e.Waiting = "waiting", e.Running = "running", e.Success = "success", e.Error = "error", e;
|
|
8377
|
-
}({}),
|
|
8386
|
+
}({}), na = "oo-designer-fitting-view", ra = "input", ia = "output";
|
|
8378
8387
|
//#endregion
|
|
8379
8388
|
//#region src/designer/browser/stores/node/nodeSection/cloneLocales.ts
|
|
8380
|
-
function
|
|
8389
|
+
function aa(e, t, n) {
|
|
8381
8390
|
if (!e) return e;
|
|
8382
|
-
let r =
|
|
8391
|
+
let r = dt(e);
|
|
8383
8392
|
if (!r || t && n && t === n) return e;
|
|
8384
8393
|
if (!t || !n) return;
|
|
8385
8394
|
let i = t.en.value, a = t["zh-CN"].value;
|
|
8386
8395
|
if (!i[r] && !a[r]) return;
|
|
8387
|
-
let o =
|
|
8396
|
+
let o = ht(ht(r, n.en.value), n["zh-CN"].value);
|
|
8388
8397
|
if (i[r]) {
|
|
8389
8398
|
let e = n.en;
|
|
8390
8399
|
e.set({
|
|
@@ -8403,60 +8412,60 @@ function sa(e, t, n) {
|
|
|
8403
8412
|
}
|
|
8404
8413
|
//#endregion
|
|
8405
8414
|
//#region src/designer/browser/stores/node/nodeSection/constants.ts
|
|
8406
|
-
var
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
],
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
],
|
|
8415
|
+
var oa = "inputs", sa = "outputs", ca = "value", la = "preview", ua = "scriptlet", da = "subflowInput", fa = "subflowOutput", pa = "conditions", ma = "trigger", ha = [da, fa], ga = [oa, fa], _a = [
|
|
8416
|
+
sa,
|
|
8417
|
+
ca,
|
|
8418
|
+
da,
|
|
8419
|
+
pa
|
|
8420
|
+
], va = [
|
|
8421
|
+
sa,
|
|
8422
|
+
ca,
|
|
8423
|
+
da,
|
|
8424
|
+
pa
|
|
8425
|
+
], ya = [oa, fa];
|
|
8417
8426
|
//#endregion
|
|
8418
8427
|
//#region src/designer/browser/stores/node/nodeSection/parse.ts
|
|
8419
|
-
function
|
|
8420
|
-
if (
|
|
8421
|
-
for (let t of Object.values(e)) if (
|
|
8422
|
-
if (!
|
|
8423
|
-
for (let e of Object.values(t)) if (
|
|
8428
|
+
function ba(e) {
|
|
8429
|
+
if (_(e)) {
|
|
8430
|
+
for (let t of Object.values(e)) if (b(t)) {
|
|
8431
|
+
if (!_(t)) return;
|
|
8432
|
+
for (let e of Object.values(t)) if (b(e) && !v(e)) return;
|
|
8424
8433
|
}
|
|
8425
8434
|
return e;
|
|
8426
8435
|
}
|
|
8427
8436
|
}
|
|
8428
|
-
function
|
|
8429
|
-
if (
|
|
8430
|
-
for (let t of Object.values(e)) if (
|
|
8431
|
-
if (!
|
|
8432
|
-
for (let e of Object.values(t)) if (
|
|
8437
|
+
function xa(e) {
|
|
8438
|
+
if (_(e)) {
|
|
8439
|
+
for (let t of Object.values(e)) if (b(t)) {
|
|
8440
|
+
if (!_(t)) return;
|
|
8441
|
+
for (let e of Object.values(t)) if (b(e) && typeof e != "number") return;
|
|
8433
8442
|
}
|
|
8434
8443
|
return e;
|
|
8435
8444
|
}
|
|
8436
8445
|
}
|
|
8437
|
-
function
|
|
8446
|
+
function Sa(e) {
|
|
8438
8447
|
return e ? !!(e.from_flow && e.from_flow.length > 0 || e.from_node && e.from_node.length > 0) : !1;
|
|
8439
8448
|
}
|
|
8440
8449
|
//#endregion
|
|
8441
8450
|
//#region src/designer/browser/stores/node/nodeSection/inputSection.store.ts
|
|
8442
|
-
var
|
|
8451
|
+
var Ca = class {
|
|
8443
8452
|
static {
|
|
8444
|
-
this.TYPE =
|
|
8453
|
+
this.TYPE = oa;
|
|
8445
8454
|
}
|
|
8446
8455
|
static is(e) {
|
|
8447
|
-
return e.type ===
|
|
8456
|
+
return e.type === oa;
|
|
8448
8457
|
}
|
|
8449
8458
|
constructor(e) {
|
|
8450
|
-
this.type =
|
|
8451
|
-
let t = this.dispose.add(s(
|
|
8459
|
+
this.type = oa, this.dispose = I(), this.onDidHandleIndexChange = this.dispose.add(_e()), this.onDidHandleRename = this.dispose.add(_e()), this.onDidHandleDelete = this.dispose.add(_e()), this.role = e.role, this.userLocales = e.userLocales;
|
|
8460
|
+
let t = this.dispose.add(s(ba(e.initialUIState?.collapsed))), n = this.dispose.add(s(xa(e.initialUIState?.height))), r = this.dispose.add(s(Ye(e.initialUIState?.groupCollapsed)));
|
|
8452
8461
|
this.uiState$ = this.dispose.add(u([
|
|
8453
8462
|
t,
|
|
8454
8463
|
n,
|
|
8455
8464
|
r
|
|
8456
|
-
], ([e, t, n]) =>
|
|
8457
|
-
collapsed:
|
|
8458
|
-
height:
|
|
8459
|
-
groupCollapsed:
|
|
8465
|
+
], ([e, t, n]) => Ge({
|
|
8466
|
+
collapsed: Ge(e),
|
|
8467
|
+
height: Ge(t),
|
|
8468
|
+
groupCollapsed: Ye(n)
|
|
8460
8469
|
}))), this.$$ = {
|
|
8461
8470
|
collapsed: t,
|
|
8462
8471
|
height: n,
|
|
@@ -8466,7 +8475,7 @@ var Ta = class {
|
|
|
8466
8475
|
additionalInputDefs: e.additionalInputDefs && this.dispose.add(e.additionalInputDefs.ref(!0)),
|
|
8467
8476
|
showSettings: this.dispose.add(e.showSettings.ref(!0))
|
|
8468
8477
|
};
|
|
8469
|
-
let i = this.dispose.add(this.deriveConnectedHandles$(this.$$.handleInputsFrom)), a = this.dispose.add(this.deriveHandles$(t, n, e, i)), l = this.dispose.add(c((e) => e(a).filter((t) => !$.is(t) ||
|
|
8478
|
+
let i = this.dispose.add(this.deriveConnectedHandles$(this.$$.handleInputsFrom)), a = this.dispose.add(this.deriveHandles$(t, n, e, i)), l = this.dispose.add(c((e) => e(a).filter((t) => !$.is(t) || pn(e(t.schema$)) == null), { equal: d })), f = this.dispose.add(c((e) => e(a).filter((t) => $.is(t) && pn(e(t.schema$)) != null), { equal: d }));
|
|
8470
8479
|
this.$ = {
|
|
8471
8480
|
collapsed: t,
|
|
8472
8481
|
height: n,
|
|
@@ -8485,19 +8494,19 @@ var Ta = class {
|
|
|
8485
8494
|
}
|
|
8486
8495
|
setupHandleIndexChangeEvent() {
|
|
8487
8496
|
let e = this.dispose.add(c((e) => {
|
|
8488
|
-
let t = e(this.$.inputHandleDefs)?.map((e) =>
|
|
8497
|
+
let t = e(this.$.inputHandleDefs)?.map((e) => Zi(e) ? `g:${e.group}` : `h:${e.handle}`), n = e(this.$.additionalInputDefs)?.map((e) => `h:${e.handle}`);
|
|
8489
8498
|
return (t && n ? [...t, ...n] : t || n) ?? [];
|
|
8490
8499
|
}, { equal: d }));
|
|
8491
|
-
this.dispose.add(e.reaction(
|
|
8500
|
+
this.dispose.add(e.reaction(ve.bind(null, this.onDidHandleIndexChange)));
|
|
8492
8501
|
}
|
|
8493
8502
|
findGroupForWriting(e) {
|
|
8494
8503
|
let t = this.getInputHandleDefs$(), n = t?.value;
|
|
8495
|
-
return n ? [n.findIndex((t) =>
|
|
8504
|
+
return n ? [n.findIndex((t) => Zi(t) && t.group === e), t] : [-1, t];
|
|
8496
8505
|
}
|
|
8497
8506
|
addGroup(e) {
|
|
8498
8507
|
let [t, n] = this.findHandleForWriting(e), r = n?.value;
|
|
8499
8508
|
if (r && t >= 0) {
|
|
8500
|
-
let e = r.slice(), i = e.splice(t, 1), a =
|
|
8509
|
+
let e = r.slice(), i = e.splice(t, 1), a = rt("Group", this.$.allGroupNames.value).trim();
|
|
8501
8510
|
e.splice(999, 0, { group: a }, ...i), n.set(e);
|
|
8502
8511
|
}
|
|
8503
8512
|
}
|
|
@@ -8560,20 +8569,20 @@ var Ta = class {
|
|
|
8560
8569
|
return this.getInputHandleDefs$() != null;
|
|
8561
8570
|
}
|
|
8562
8571
|
getInputHandleDefs$() {
|
|
8563
|
-
return
|
|
8572
|
+
return Je(this.role === "author") && this.$$.inputHandleDefs;
|
|
8564
8573
|
}
|
|
8565
8574
|
getAdditionalInputDefs$() {
|
|
8566
8575
|
return this.$.additionalInputs?.value ? this.$$.additionalInputDefs : void 0;
|
|
8567
8576
|
}
|
|
8568
8577
|
findHandleForWriting(e) {
|
|
8569
8578
|
let t = typeof e == "string" ? { handle: e } : e, n, r = this.getInputHandleDefs$();
|
|
8570
|
-
if (n = r?.value?.findIndex((e) =>
|
|
8579
|
+
if (n = r?.value?.findIndex((e) => Yi(e, t)), n != null && n >= 0) return [
|
|
8571
8580
|
n,
|
|
8572
8581
|
r,
|
|
8573
8582
|
!1
|
|
8574
8583
|
];
|
|
8575
8584
|
let i = this.getAdditionalInputDefs$();
|
|
8576
|
-
return n = i?.value?.findIndex((e) =>
|
|
8585
|
+
return n = i?.value?.findIndex((e) => Yi(e, t)), n != null && n >= 0 ? [
|
|
8577
8586
|
n,
|
|
8578
8587
|
i,
|
|
8579
8588
|
!0
|
|
@@ -8591,10 +8600,10 @@ var Ta = class {
|
|
|
8591
8600
|
let t = e ? this.getAdditionalInputDefs$() : this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
|
|
8592
8601
|
if (t) {
|
|
8593
8602
|
let e = this.$.allHandleNames.value, n = t.value, r = {
|
|
8594
|
-
handle:
|
|
8603
|
+
handle: rt("input", e),
|
|
8595
8604
|
json_schema: q(n)
|
|
8596
8605
|
};
|
|
8597
|
-
t.set(n ? n.toSpliced(
|
|
8606
|
+
t.set(n ? n.toSpliced(Ne(n, Zi), 0, r) : [r]);
|
|
8598
8607
|
}
|
|
8599
8608
|
}
|
|
8600
8609
|
renameHandle(e, t) {
|
|
@@ -8616,7 +8625,7 @@ var Ta = class {
|
|
|
8616
8625
|
}), r.set(i.toSpliced(n, 1, {
|
|
8617
8626
|
...i[n],
|
|
8618
8627
|
handle: t
|
|
8619
|
-
})),
|
|
8628
|
+
})), ve(this.onDidHandleRename, [e, t]);
|
|
8620
8629
|
}
|
|
8621
8630
|
return !0;
|
|
8622
8631
|
}
|
|
@@ -8628,15 +8637,15 @@ var Ta = class {
|
|
|
8628
8637
|
let t = i.findIndex((t) => t.handle === e);
|
|
8629
8638
|
t >= 0 && this.$$.handleInputsFrom.set(i.toSpliced(t, 1));
|
|
8630
8639
|
}
|
|
8631
|
-
this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)),
|
|
8640
|
+
this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)), ve(this.onDidHandleDelete, e);
|
|
8632
8641
|
}
|
|
8633
8642
|
}
|
|
8634
8643
|
moveHandle(e, t) {
|
|
8635
8644
|
let [n, r] = this.findHandleForWriting(e), i = r?.value;
|
|
8636
8645
|
if (i && n >= 0) {
|
|
8637
8646
|
let e = i[n];
|
|
8638
|
-
if (
|
|
8639
|
-
let n = i.filter((e) => !
|
|
8647
|
+
if (Xi(e) && pn(e.json_schema) != null) {
|
|
8648
|
+
let n = i.filter((e) => !Xi(e) || pn(e.json_schema) == null), a = i.filter((e) => Xi(e) && pn(e.json_schema) != null), o = a.findIndex((t) => t.handle == e.handle);
|
|
8640
8649
|
if (o >= 0) {
|
|
8641
8650
|
let e = a.splice(o, 1);
|
|
8642
8651
|
a.splice(t, 0, ...e), r.set(n.concat(a));
|
|
@@ -8654,7 +8663,7 @@ var Ta = class {
|
|
|
8654
8663
|
if (r >= 0) {
|
|
8655
8664
|
let e = {
|
|
8656
8665
|
...n[r],
|
|
8657
|
-
description:
|
|
8666
|
+
description: ft(t.description),
|
|
8658
8667
|
json_schema: t.json_schema,
|
|
8659
8668
|
kind: t.kind,
|
|
8660
8669
|
nullable: t.nullable
|
|
@@ -8670,14 +8679,14 @@ var Ta = class {
|
|
|
8670
8679
|
let r = this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
|
|
8671
8680
|
if (r) {
|
|
8672
8681
|
let i = this.$.allHandleNames.value, a = {
|
|
8673
|
-
handle: i.includes(t.name) ?
|
|
8682
|
+
handle: i.includes(t.name) ? rt("input", i) : t.name,
|
|
8674
8683
|
json_schema: t.schema$?.value,
|
|
8675
8684
|
kind: t.schemaKind$?.value,
|
|
8676
8685
|
nullable: t.nullable$?.value,
|
|
8677
|
-
description:
|
|
8686
|
+
description: aa(t.description$.value, t.context.userLocales, this.userLocales),
|
|
8678
8687
|
value: t.value$?.value
|
|
8679
8688
|
};
|
|
8680
|
-
if (
|
|
8689
|
+
if (b(a.value) && this.$$.handleInputsFrom) {
|
|
8681
8690
|
let e = this.$$.handleInputsFrom.value;
|
|
8682
8691
|
e ? this.$$.handleInputsFrom.set([...e, {
|
|
8683
8692
|
handle: a.handle,
|
|
@@ -8689,14 +8698,14 @@ var Ta = class {
|
|
|
8689
8698
|
}
|
|
8690
8699
|
let o = r.value;
|
|
8691
8700
|
if (o) {
|
|
8692
|
-
let t = e ? o.findIndex((t) =>
|
|
8701
|
+
let t = e ? o.findIndex((t) => Yi(t, e)) : -1;
|
|
8693
8702
|
t >= 0 ? r.set(o.toSpliced(t + 1, 0, a)) : r.set(n ? [a, ...o] : [...o, a]);
|
|
8694
8703
|
} else r.set([a]);
|
|
8695
8704
|
return a.handle;
|
|
8696
8705
|
}
|
|
8697
8706
|
}
|
|
8698
8707
|
deriveHandleIndices$(e) {
|
|
8699
|
-
if (e) return a(e, (e) => e &&
|
|
8708
|
+
if (e) return a(e, (e) => e && Ue(e, (e) => Zi(e) ? { group: e.group } : { handle: e.handle }), R);
|
|
8700
8709
|
}
|
|
8701
8710
|
deriveHandles$(e, t, n, r) {
|
|
8702
8711
|
let i = this.deriveHandleIndices$(n.inputHandleDefs), o = n.boundHandles, s, f = c((u) => {
|
|
@@ -8712,7 +8721,7 @@ var Ta = class {
|
|
|
8712
8721
|
d.push(f);
|
|
8713
8722
|
continue;
|
|
8714
8723
|
}
|
|
8715
|
-
let p = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), { schema$: m, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, p), C = l(a(e, (e) => e?.[u],
|
|
8724
|
+
let p = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), { schema$: m, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, p), C = l(a(e, (e) => e?.[u], R), it(e, u)), w = l(a(t, (e) => e?.[u], R), it(t, u)), T = new Ji({
|
|
8716
8725
|
role: n.role,
|
|
8717
8726
|
inout: "in",
|
|
8718
8727
|
userLocales: n.userLocales
|
|
@@ -8743,7 +8752,7 @@ var Ta = class {
|
|
|
8743
8752
|
s.push(u);
|
|
8744
8753
|
continue;
|
|
8745
8754
|
}
|
|
8746
|
-
let d = n.role === "user" ? "author" : n.role, f = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), { schema$: p, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, f), C = l(a(e, (e) => e?.[i],
|
|
8755
|
+
let d = n.role === "user" ? "author" : n.role, f = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), { schema$: p, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, f), C = l(a(e, (e) => e?.[i], R), it(e, i)), w = l(a(t, (e) => e?.[i], R), it(t, i)), T = new Ji({
|
|
8747
8756
|
role: d,
|
|
8748
8757
|
inout: "in",
|
|
8749
8758
|
additional: !0,
|
|
@@ -8778,13 +8787,13 @@ var Ta = class {
|
|
|
8778
8787
|
} else i.set([e]);
|
|
8779
8788
|
}
|
|
8780
8789
|
}), f = l(a(d, (e) => e?.description), W(d, "description")), p = c((e) => {
|
|
8781
|
-
let t = e(f), i =
|
|
8782
|
-
return i != null && r ?
|
|
8783
|
-
}), m = l(a(d, (e) => e?.json_schema,
|
|
8790
|
+
let t = e(f), i = dt(t);
|
|
8791
|
+
return i != null && r ? vn(r, n, e, i, t) : t;
|
|
8792
|
+
}), m = l(a(d, (e) => e?.json_schema, R), W(d, "json_schema")), h = l(a(d, (e) => tt(e?.nullable)), W(d, "nullable")), g = l(a(d, (e) => e?.kind), W(d, "kind")), _ = a(d, (e) => e?.value), v = l(a(e, (e) => e?.scope === "input" && e.handle === s), (t) => e.set(t ? {
|
|
8784
8793
|
scope: "input",
|
|
8785
8794
|
handle: s
|
|
8786
|
-
} : void 0)),
|
|
8787
|
-
|
|
8795
|
+
} : void 0)), y;
|
|
8796
|
+
y = t ? l(a(t, (e) => e?.find((e) => e.handle === s)?.schema_overrides?.map((e) => Object.assign({}, e, { path: wn.get(e.path) })), R), (e) => {
|
|
8788
8797
|
let n = e?.map((e) => ({
|
|
8789
8798
|
...e,
|
|
8790
8799
|
path: e.path.toJSON()
|
|
@@ -8802,7 +8811,7 @@ var Ta = class {
|
|
|
8802
8811
|
}]);
|
|
8803
8812
|
}) : l(a(d, (e) => e?.schema_overrides?.map((e) => ({
|
|
8804
8813
|
...e,
|
|
8805
|
-
path:
|
|
8814
|
+
path: wn.get(e.path)
|
|
8806
8815
|
}))), (e) => {
|
|
8807
8816
|
if (d.value) {
|
|
8808
8817
|
let t = e?.map((e) => ({
|
|
@@ -8818,8 +8827,8 @@ var Ta = class {
|
|
|
8818
8827
|
let x;
|
|
8819
8828
|
return x = t ? l(c((e) => {
|
|
8820
8829
|
let n = e(t)?.find((e) => e.handle === s)?.value;
|
|
8821
|
-
return n === void 0 ? e(
|
|
8822
|
-
},
|
|
8830
|
+
return n === void 0 ? e(_) : n;
|
|
8831
|
+
}, R), (e) => {
|
|
8823
8832
|
if (!d.value || u.value) return;
|
|
8824
8833
|
let n = t.value;
|
|
8825
8834
|
if (n) {
|
|
@@ -8829,33 +8838,33 @@ var Ta = class {
|
|
|
8829
8838
|
handle: s,
|
|
8830
8839
|
value: e
|
|
8831
8840
|
}));
|
|
8832
|
-
} else
|
|
8841
|
+
} else b(e) && t.set([{
|
|
8833
8842
|
handle: s,
|
|
8834
8843
|
value: e
|
|
8835
8844
|
}]);
|
|
8836
|
-
}) : l(a(d, (e) => e?.value,
|
|
8845
|
+
}) : l(a(d, (e) => e?.value, R), W(d, "value")), {
|
|
8837
8846
|
schema$: m,
|
|
8838
|
-
defaultValue$:
|
|
8847
|
+
defaultValue$: _,
|
|
8839
8848
|
description$: f,
|
|
8840
8849
|
displayDescription$: p,
|
|
8841
|
-
kind$:
|
|
8842
|
-
nullable$:
|
|
8843
|
-
showSettings$:
|
|
8844
|
-
schemaOverrides$:
|
|
8850
|
+
kind$: g,
|
|
8851
|
+
nullable$: h,
|
|
8852
|
+
showSettings$: v,
|
|
8853
|
+
schemaOverrides$: y,
|
|
8845
8854
|
value$: x
|
|
8846
8855
|
};
|
|
8847
8856
|
}
|
|
8848
8857
|
deriveAllHandleNames$(e) {
|
|
8849
8858
|
return c((t) => {
|
|
8850
|
-
let n = t(e.inputHandleDefs)?.filter(
|
|
8859
|
+
let n = t(e.inputHandleDefs)?.filter(Xi).map((e) => e.handle), r = t(e.additionalInputDefs)?.map((e) => e.handle);
|
|
8851
8860
|
return (n || []).concat(r || []);
|
|
8852
8861
|
}, { equal: d });
|
|
8853
8862
|
}
|
|
8854
8863
|
deriveAllGroupNames$(e) {
|
|
8855
|
-
return a(e.inputHandleDefs, (e) => e?.filter(
|
|
8864
|
+
return a(e.inputHandleDefs, (e) => e?.filter(Zi).map((e) => e.group) || [], { equal: d });
|
|
8856
8865
|
}
|
|
8857
8866
|
deriveConnectedHandles$(e) {
|
|
8858
|
-
return e ? a(e, (e) => !e || e.length === 0 ?
|
|
8867
|
+
return e ? a(e, (e) => !e || e.length === 0 ? wa : e.reduce((e, t) => (Sa(t) && e.add(t.handle), e), /* @__PURE__ */ new Set())) : s(wa);
|
|
8859
8868
|
}
|
|
8860
8869
|
deriveIsEmpty$(e) {
|
|
8861
8870
|
return c((t) => {
|
|
@@ -8866,12 +8875,12 @@ var Ta = class {
|
|
|
8866
8875
|
return !t(e.inputHandleDefs)?.length && !r;
|
|
8867
8876
|
});
|
|
8868
8877
|
}
|
|
8869
|
-
},
|
|
8878
|
+
}, wa = /*#__PURE__*/ new Set(), Ta = class {
|
|
8870
8879
|
#e;
|
|
8871
8880
|
constructor(e, t) {
|
|
8872
8881
|
this.#e = s(void 0), this.inputValues$ = this.#e;
|
|
8873
8882
|
let n = s(void 0);
|
|
8874
|
-
this.section = new
|
|
8883
|
+
this.section = new Ca({
|
|
8875
8884
|
createSchemaEditor: () => void 0,
|
|
8876
8885
|
handleInputsFrom: this.#e,
|
|
8877
8886
|
inputHandleDefs: e,
|
|
@@ -8901,7 +8910,7 @@ var Ta = class {
|
|
|
8901
8910
|
return t;
|
|
8902
8911
|
}
|
|
8903
8912
|
replaceValues(e) {
|
|
8904
|
-
let t =
|
|
8913
|
+
let t = g(e);
|
|
8905
8914
|
if (t == null) return !1;
|
|
8906
8915
|
let n = new Set(this.section.$.allHandleNames.value), r = [];
|
|
8907
8916
|
for (let [e, i] of Object.entries(t)) {
|
|
@@ -8913,21 +8922,21 @@ var Ta = class {
|
|
|
8913
8922
|
}
|
|
8914
8923
|
return this.#e.set(r.length == 0 ? void 0 : r), !0;
|
|
8915
8924
|
}
|
|
8916
|
-
},
|
|
8917
|
-
FlowRunInputEditorStore: () =>
|
|
8918
|
-
flowRunInputEditorState: () =>
|
|
8919
|
-
}),
|
|
8925
|
+
}, Ea = /* @__PURE__ */ r({
|
|
8926
|
+
FlowRunInputEditorStore: () => Oa,
|
|
8927
|
+
flowRunInputEditorState: () => ka
|
|
8928
|
+
}), Da = /* @__PURE__ */ new WeakMap(), Oa = class {
|
|
8920
8929
|
constructor(e, t) {
|
|
8921
8930
|
let n = s(e.map((e) => ({
|
|
8922
8931
|
...e.description == null ? {} : { description: e.description },
|
|
8923
8932
|
handle: e.handle,
|
|
8924
8933
|
json_schema: e.jsonSchema,
|
|
8925
8934
|
nullable: e.nullable
|
|
8926
|
-
}))), r = new
|
|
8935
|
+
}))), r = new Ta(n, t);
|
|
8927
8936
|
this.valid$ = c((t) => {
|
|
8928
8937
|
let n = new Set((t(r.inputValues$) ?? []).flatMap((e) => e.value === void 0 ? [] : [e.handle]));
|
|
8929
8938
|
return e.every((e) => n.has(e.handle)) && !t(r.section.hasError$);
|
|
8930
|
-
}),
|
|
8939
|
+
}), Da.set(this, {
|
|
8931
8940
|
definitions: e,
|
|
8932
8941
|
definitions$: n,
|
|
8933
8942
|
inputs: r,
|
|
@@ -8936,20 +8945,20 @@ var Ta = class {
|
|
|
8936
8945
|
});
|
|
8937
8946
|
}
|
|
8938
8947
|
dispose() {
|
|
8939
|
-
let e =
|
|
8948
|
+
let e = ka(this);
|
|
8940
8949
|
this.valid$.dispose(), e.inputs.dispose(), e.definitions$.dispose(), e.panelWidth$.dispose();
|
|
8941
8950
|
}
|
|
8942
8951
|
values() {
|
|
8943
|
-
return
|
|
8952
|
+
return ka(this).inputs.values();
|
|
8944
8953
|
}
|
|
8945
8954
|
replaceValues(e) {
|
|
8946
|
-
return
|
|
8955
|
+
return ka(this).inputs.replaceValues(e);
|
|
8947
8956
|
}
|
|
8948
8957
|
};
|
|
8949
|
-
function
|
|
8950
|
-
let t =
|
|
8958
|
+
function ka(e) {
|
|
8959
|
+
let t = Da.get(e);
|
|
8951
8960
|
if (t == null) throw Error("Flow Run input editor store is unavailable.");
|
|
8952
8961
|
return t;
|
|
8953
8962
|
}
|
|
8954
8963
|
//#endregion
|
|
8955
|
-
export {
|
|
8964
|
+
export { q as $, Qe as $t, $i as A, Ve as At, Di as B, Ze as Bt, na as C, Ne as Ct, ia as D, Xe as Dt, Qi as E, We as Et, Li as F, ht as Ft, gn as G, Be as Gt, _i as H, Re as Ht, Ri as I, mt as It, pn as J, it as Jt, _n as K, je as Kt, Ii as L, _t as Lt, Yi as M, R as Mt, Ji as N, Ue as Nt, Zi as O, tt as Ot, $ as P, H as Pt, Xt as Q, Ge as Qt, Fi as R, Me as Rt, aa as S, He as St, ta as T, $e as Tt, Yr as U, et as Ut, Ei as V, Ae as Vt, wn as W, ct as Wt, fn as X, z as Xt, mn as Y, st as Yt, nn as Z, nt as Zt, ua as _, E as _n, jt as _t, Sa as a, dt as an, tn as at, ma as b, Mt as bt, pa as c, ot as cn, Wt as ct, va as d, ke as dn, K as dt, ft as en, Qt as et, sa as f, De as fn, Gt as ft, ya as g, ve as gn, Rt as gt, _a as h, _e as hn, kt as ht, Ca as i, Je as in, an as it, ea as j, at as jt, Xi as k, Le as kt, oa as l, W as ln, on as lt, ha as m, Te as mn, Ot as mt, ka as n, V as nn, Ut as nt, ba as o, lt as on, en as ot, la as p, Ee as pn, Lt as pt, vn as q, Fe as qt, Ea as r, Ye as rn, rn as rt, xa as s, Pe as sn, Bt as st, Oa as t, U as tn, Ht as tt, ga as u, Oe as un, J as ut, da as v, I as vn, Nt as vt, ra as w, ze as wt, ca as x, Ie as xt, fa as y, w as yn, zt as yt, Oi as z, rt as zt };
|