@rippling/pebble-sdui-mobile 0.17.0 → 0.19.0
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/catalogs/custom-apps/action-params.d.ts +7 -0
- package/dist/catalogs/custom-apps/actions.d.ts +3 -1
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-events.d.ts +1 -0
- package/dist/catalogs/custom-apps/component-props.d.ts +66 -7
- package/dist/catalogs/custom-apps/components.d.ts +17 -16
- package/dist/catalogs/custom-apps/function-params.d.ts +4 -0
- package/dist/catalogs/custom-apps/functions.d.ts +9 -1
- package/dist/catalogs/custom-apps/index.cjs +6 -5
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +7 -7
- package/dist/catalogs/custom-apps/index.js +909 -612
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/core/component-utils.cjs +1 -1
- package/dist/core/component-utils.cjs.map +1 -1
- package/dist/core/component-utils.d.ts +16 -2
- package/dist/core/component-utils.js +4 -4
- package/dist/core/component-utils.js.map +1 -1
- package/dist/core/spec.cjs +1 -1
- package/dist/core/spec.cjs.map +1 -1
- package/dist/core/spec.d.ts +1 -0
- package/dist/core/spec.js +63 -56
- package/dist/core/spec.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +54 -0
- package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +30 -4
- package/dist/docs/typescript/mobile/catalogs/custom-apps/computed-functions.md +32 -0
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +33 -2
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +126 -12
- package/package.json +1 -1
|
@@ -1,44 +1,54 @@
|
|
|
1
1
|
import { buildNode as P } from "../../core/component-utils.js";
|
|
2
|
-
import { buildAction as
|
|
2
|
+
import { buildAction as ve } from "../../core/action-utils.js";
|
|
3
3
|
import { createCatalogSchemaValidator as Yo } from "../../core/catalog-validation.js";
|
|
4
4
|
import { renderComponentMarkdown as Zo } from "../../core/component-markdown.js";
|
|
5
5
|
import { renderElementTree as Xo } from "../../core/spec.js";
|
|
6
|
-
const uu = (e) => P("ActionCard", e), fu = (e) => P("
|
|
6
|
+
const uu = (e) => P("ActionCard", e), fu = (e) => P("ActionSheet", e), hu = (e) => P("Anchor", e), mu = (e) => P("Animation", e), gu = (e) => P("Avatar", e), yu = (e) => P("AvatarStack", e), bu = (e) => P("Badge", e), $u = (e) => P("Button", e), vu = (e) => P("Card", e), Su = (e) => P("Checkbox", e), wu = (e) => P("CheckboxGroup", e), ku = (e) => P("Chip", e), Ou = (e) => P("Country", e), Cu = (e) => P("Currency", e), Pu = (e) => P("Date", e), _u = (e) => P("DateRange", e), Vu = (e) => P("DateTimePicker", e), Du = (e) => P("Divider", e), Fu = (e) => P("Email", e), ju = (e) => P("ExpansionPanel", e), Ru = (e) => P("FileViewerButton", e), Tu = (e) => P("FileViewerPressable", e), Iu = (e) => P("FloatingButton", e), Eu = (e) => P("Form", e), xu = (e) => P("Group", e), Au = (e) => P("Hidden", e), Nu = (e) => P("HStack", e), zu = (e) => P("Icon", e), Mu = (e) => P("Image", e), Lu = (e) => P("InputText", e), Bu = (e) => P("Label", e), qu = (e) => P("List", e), Hu = (e) => P("ListItem", e), Wu = (e) => P("ModalSheet", e), Uu = (e) => P("Notice", e), Gu = (e) => P("Number", e), Ku = (e) => P("ObjectFooter", e), Ju = (e) => P("ObjectItem", e), Yu = (e) => P("ObjectListView", e), Zu = (e) => P("ObjectListViewCard", e), Xu = (e) => P("PageCondensedFooter", e), Qu = (e) => P("PageCondensedHeader", e), ef = (e) => P("PageContent", e), tf = (e) => P("PageFilterHeader", e), rf = (e) => P("PageFooter", e), of = (e) => P("PageHeader", e), nf = (e) => P("PageModalActionHeader", e), sf = (e) => P("Password", e), af = (e) => P("Percentage", e), lf = (e) => P("Phone", e), df = (e) => P("Pressable", e), cf = (e) => P("ProgressIndicator", e), pf = (e) => P("Radio", e), uf = (e) => P("RadioGroup", e), ff = (e) => P("Search", e), hf = (e) => P("SectionHeader", e), mf = (e) => P("Select", e), gf = (e) => P("SelectChips", e), yf = (e) => P("Signature", e), bf = (e) => P("Sin", e), $f = (e) => P("Slider", e), vf = (e) => P("SliderRange", e), Sf = (e) => P("SnackBar", e), wf = (e) => P("Spacer", e), kf = (e) => P("Spinner", e), Of = (e) => P("Ssn", e), Cf = (e) => P("Status", e), Pf = (e) => P("StatusBar", e), _f = (e) => P("Switch", e), Vf = (e) => P("Tabs", e), Df = (e) => P("Text", e), Ff = (e) => P("Textarea", e), jf = (e) => P("Time", e), Rf = (e) => P("TimeRange", e), Tf = (e) => P("Tip", e), If = (e) => P("VStack", e), Ef = (e) => P("Widget", e), xf = (e) => P("WorkEmail", e), Af = (e, t) => ve("copyToClipboard", e, t), Nf = (e, t) => ve("goBack", e, t), zf = (e, t) => ve("linking_openURL", e, t), Mf = (e, t) => ve("navigate", e, t), Lf = (e, t) => ve(
|
|
7
|
+
"openChatAssistantWithMessage",
|
|
8
|
+
e,
|
|
9
|
+
t
|
|
10
|
+
), Bf = (e, t) => ve("push", e, t), qf = (e, t) => ve("setState", e, t), Hf = (e, t) => ve("triggerApi", e, t), Wf = (e) => ({
|
|
7
11
|
$computed: "currency_format",
|
|
8
12
|
args: e
|
|
9
|
-
}),
|
|
13
|
+
}), Uf = (e) => ({
|
|
10
14
|
$computed: "currency_getCurrencyCodeByCountryCode",
|
|
11
15
|
args: e
|
|
12
|
-
}),
|
|
16
|
+
}), Gf = (e) => ({
|
|
13
17
|
$computed: "currency_getCurrencyNameByCode",
|
|
14
18
|
args: e
|
|
15
|
-
}),
|
|
19
|
+
}), Kf = (e) => ({
|
|
16
20
|
$computed: "currency_getCurrencySymbol",
|
|
17
21
|
args: e
|
|
18
|
-
}),
|
|
22
|
+
}), Jf = (e) => ({
|
|
19
23
|
$computed: "currency_isConvertableToCurrency",
|
|
20
24
|
args: e
|
|
21
|
-
}),
|
|
25
|
+
}), Yf = (e) => ({
|
|
22
26
|
$computed: "currency_toMoney",
|
|
23
27
|
args: e
|
|
24
|
-
}),
|
|
28
|
+
}), Zf = (e) => ({
|
|
25
29
|
$computed: "dateTime_add",
|
|
26
30
|
args: e
|
|
27
|
-
}),
|
|
31
|
+
}), Xf = (e) => ({
|
|
28
32
|
$computed: "dateTime_format",
|
|
29
33
|
args: e
|
|
34
|
+
}), Qf = (e) => ({
|
|
35
|
+
$computed: "platform_isAndroid",
|
|
36
|
+
args: e
|
|
37
|
+
}), eh = (e) => ({
|
|
38
|
+
$computed: "platform_isIOS",
|
|
39
|
+
args: e
|
|
30
40
|
});
|
|
31
|
-
var tr = { exports: {} }, qi = {}, oe = {},
|
|
41
|
+
var tr = { exports: {} }, qi = {}, oe = {}, Ae = {}, nt = {}, E = {}, ot = {};
|
|
32
42
|
(function(e) {
|
|
33
43
|
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;
|
|
34
44
|
class t {
|
|
35
45
|
}
|
|
36
46
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
37
47
|
class r extends t {
|
|
38
|
-
constructor(
|
|
39
|
-
if (super(), !e.IDENTIFIER.test(
|
|
48
|
+
constructor($) {
|
|
49
|
+
if (super(), !e.IDENTIFIER.test($))
|
|
40
50
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
41
|
-
this.str =
|
|
51
|
+
this.str = $;
|
|
42
52
|
}
|
|
43
53
|
toString() {
|
|
44
54
|
return this.str;
|
|
@@ -52,8 +62,8 @@ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, ot = {};
|
|
|
52
62
|
}
|
|
53
63
|
e.Name = r;
|
|
54
64
|
class i extends t {
|
|
55
|
-
constructor(
|
|
56
|
-
super(), this._items = typeof
|
|
65
|
+
constructor($) {
|
|
66
|
+
super(), this._items = typeof $ == "string" ? [$] : $;
|
|
57
67
|
}
|
|
58
68
|
toString() {
|
|
59
69
|
return this.str;
|
|
@@ -61,89 +71,89 @@ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, ot = {};
|
|
|
61
71
|
emptyStr() {
|
|
62
72
|
if (this._items.length > 1)
|
|
63
73
|
return !1;
|
|
64
|
-
const
|
|
65
|
-
return
|
|
74
|
+
const $ = this._items[0];
|
|
75
|
+
return $ === "" || $ === '""';
|
|
66
76
|
}
|
|
67
77
|
get str() {
|
|
68
|
-
var
|
|
69
|
-
return (
|
|
78
|
+
var $;
|
|
79
|
+
return ($ = this._str) !== null && $ !== void 0 ? $ : this._str = this._items.reduce((C, D) => `${C}${D}`, "");
|
|
70
80
|
}
|
|
71
81
|
get names() {
|
|
72
|
-
var
|
|
73
|
-
return (
|
|
82
|
+
var $;
|
|
83
|
+
return ($ = this._names) !== null && $ !== void 0 ? $ : this._names = this._items.reduce((C, D) => (D instanceof r && (C[D.str] = (C[D.str] || 0) + 1), C), {});
|
|
74
84
|
}
|
|
75
85
|
}
|
|
76
86
|
e._Code = i, e.nil = new i("");
|
|
77
|
-
function o(u,
|
|
87
|
+
function o(u, ...$) {
|
|
78
88
|
const C = [u[0]];
|
|
79
89
|
let D = 0;
|
|
80
|
-
for (; D <
|
|
81
|
-
l(C,
|
|
90
|
+
for (; D < $.length; )
|
|
91
|
+
l(C, $[D]), C.push(u[++D]);
|
|
82
92
|
return new i(C);
|
|
83
93
|
}
|
|
84
94
|
e._ = o;
|
|
85
95
|
const n = new i("+");
|
|
86
|
-
function a(u,
|
|
87
|
-
const C = [
|
|
96
|
+
function a(u, ...$) {
|
|
97
|
+
const C = [w(u[0])];
|
|
88
98
|
let D = 0;
|
|
89
|
-
for (; D <
|
|
90
|
-
C.push(n), l(C,
|
|
99
|
+
for (; D < $.length; )
|
|
100
|
+
C.push(n), l(C, $[D]), C.push(n, w(u[++D]));
|
|
91
101
|
return d(C), new i(C);
|
|
92
102
|
}
|
|
93
103
|
e.str = a;
|
|
94
|
-
function l(u,
|
|
95
|
-
|
|
104
|
+
function l(u, $) {
|
|
105
|
+
$ instanceof i ? u.push(...$._items) : $ instanceof r ? u.push($) : u.push(h($));
|
|
96
106
|
}
|
|
97
107
|
e.addCodeArg = l;
|
|
98
108
|
function d(u) {
|
|
99
|
-
let
|
|
100
|
-
for (;
|
|
101
|
-
if (u[
|
|
102
|
-
const C = c(u[
|
|
109
|
+
let $ = 1;
|
|
110
|
+
for (; $ < u.length - 1; ) {
|
|
111
|
+
if (u[$] === n) {
|
|
112
|
+
const C = c(u[$ - 1], u[$ + 1]);
|
|
103
113
|
if (C !== void 0) {
|
|
104
|
-
u.splice(
|
|
114
|
+
u.splice($ - 1, 3, C);
|
|
105
115
|
continue;
|
|
106
116
|
}
|
|
107
|
-
u[
|
|
117
|
+
u[$++] = "+";
|
|
108
118
|
}
|
|
109
|
-
|
|
119
|
+
$++;
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
|
-
function c(u,
|
|
113
|
-
if (
|
|
122
|
+
function c(u, $) {
|
|
123
|
+
if ($ === '""')
|
|
114
124
|
return u;
|
|
115
125
|
if (u === '""')
|
|
116
|
-
return
|
|
126
|
+
return $;
|
|
117
127
|
if (typeof u == "string")
|
|
118
|
-
return
|
|
119
|
-
if (typeof
|
|
120
|
-
return `"${u}${
|
|
128
|
+
return $ instanceof r || u[u.length - 1] !== '"' ? void 0 : typeof $ != "string" ? `${u.slice(0, -1)}${$}"` : $[0] === '"' ? u.slice(0, -1) + $.slice(1) : void 0;
|
|
129
|
+
if (typeof $ == "string" && $[0] === '"' && !(u instanceof r))
|
|
130
|
+
return `"${u}${$.slice(1)}`;
|
|
121
131
|
}
|
|
122
|
-
function f(u,
|
|
123
|
-
return
|
|
132
|
+
function f(u, $) {
|
|
133
|
+
return $.emptyStr() ? u : u.emptyStr() ? $ : a`${u}${$}`;
|
|
124
134
|
}
|
|
125
135
|
e.strConcat = f;
|
|
126
136
|
function h(u) {
|
|
127
|
-
return typeof u == "number" || typeof u == "boolean" || u === null ? u :
|
|
137
|
+
return typeof u == "number" || typeof u == "boolean" || u === null ? u : w(Array.isArray(u) ? u.join(",") : u);
|
|
128
138
|
}
|
|
129
139
|
function k(u) {
|
|
130
|
-
return new i(
|
|
140
|
+
return new i(w(u));
|
|
131
141
|
}
|
|
132
142
|
e.stringify = k;
|
|
133
|
-
function
|
|
143
|
+
function w(u) {
|
|
134
144
|
return JSON.stringify(u).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
135
145
|
}
|
|
136
|
-
e.safeStringify =
|
|
137
|
-
function
|
|
146
|
+
e.safeStringify = w;
|
|
147
|
+
function b(u) {
|
|
138
148
|
return typeof u == "string" && e.IDENTIFIER.test(u) ? new i(`.${u}`) : o`[${u}]`;
|
|
139
149
|
}
|
|
140
|
-
e.getProperty =
|
|
141
|
-
function
|
|
150
|
+
e.getProperty = b;
|
|
151
|
+
function v(u) {
|
|
142
152
|
if (typeof u == "string" && e.IDENTIFIER.test(u))
|
|
143
153
|
return new i(`${u}`);
|
|
144
154
|
throw new Error(`CodeGen: invalid export name: ${u}, use explicit $id name mapping`);
|
|
145
155
|
}
|
|
146
|
-
e.getEsmExportName =
|
|
156
|
+
e.getEsmExportName = v;
|
|
147
157
|
function g(u) {
|
|
148
158
|
return new i(u.toString());
|
|
149
159
|
}
|
|
@@ -212,17 +222,17 @@ var rr = {};
|
|
|
212
222
|
var h;
|
|
213
223
|
if (f.ref === void 0)
|
|
214
224
|
throw new Error("CodeGen: ref must be passed in value");
|
|
215
|
-
const k = this.toName(c), { prefix:
|
|
216
|
-
let
|
|
217
|
-
if (
|
|
218
|
-
const
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
225
|
+
const k = this.toName(c), { prefix: w } = k, b = (h = f.key) !== null && h !== void 0 ? h : f.ref;
|
|
226
|
+
let v = this._values[w];
|
|
227
|
+
if (v) {
|
|
228
|
+
const $ = v.get(b);
|
|
229
|
+
if ($)
|
|
230
|
+
return $;
|
|
221
231
|
} else
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
const g = this._scope[
|
|
225
|
-
return g[u] = f.ref, k.setValue(f, { property:
|
|
232
|
+
v = this._values[w] = /* @__PURE__ */ new Map();
|
|
233
|
+
v.set(b, k);
|
|
234
|
+
const g = this._scope[w] || (this._scope[w] = []), u = g.length;
|
|
235
|
+
return g[u] = f.ref, k.setValue(f, { property: w, itemIndex: u }), k;
|
|
226
236
|
}
|
|
227
237
|
getValue(c, f) {
|
|
228
238
|
const h = this._values[c];
|
|
@@ -244,28 +254,28 @@ var rr = {};
|
|
|
244
254
|
}, f, h);
|
|
245
255
|
}
|
|
246
256
|
_reduceValues(c, f, h = {}, k) {
|
|
247
|
-
let
|
|
248
|
-
for (const
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
257
|
+
let w = t.nil;
|
|
258
|
+
for (const b in c) {
|
|
259
|
+
const v = c[b];
|
|
260
|
+
if (!v)
|
|
251
261
|
continue;
|
|
252
|
-
const g = h[
|
|
253
|
-
|
|
262
|
+
const g = h[b] = h[b] || /* @__PURE__ */ new Map();
|
|
263
|
+
v.forEach((u) => {
|
|
254
264
|
if (g.has(u))
|
|
255
265
|
return;
|
|
256
266
|
g.set(u, i.Started);
|
|
257
|
-
let
|
|
258
|
-
if (
|
|
267
|
+
let $ = f(u);
|
|
268
|
+
if ($) {
|
|
259
269
|
const C = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
|
|
260
|
-
|
|
261
|
-
} else if (
|
|
262
|
-
|
|
270
|
+
w = (0, t._)`${w}${C} ${u} = ${$};${this.opts._n}`;
|
|
271
|
+
} else if ($ = k == null ? void 0 : k(u))
|
|
272
|
+
w = (0, t._)`${w}${$}${this.opts._n}`;
|
|
263
273
|
else
|
|
264
274
|
throw new r(u);
|
|
265
275
|
g.set(u, i.Completed);
|
|
266
276
|
});
|
|
267
277
|
}
|
|
268
|
-
return
|
|
278
|
+
return w;
|
|
269
279
|
}
|
|
270
280
|
}
|
|
271
281
|
e.ValueScope = l;
|
|
@@ -321,12 +331,12 @@ var rr = {};
|
|
|
321
331
|
}
|
|
322
332
|
}
|
|
323
333
|
class a extends n {
|
|
324
|
-
constructor(s, p,
|
|
325
|
-
super(), this.varKind = s, this.name = p, this.rhs =
|
|
334
|
+
constructor(s, p, S) {
|
|
335
|
+
super(), this.varKind = s, this.name = p, this.rhs = S;
|
|
326
336
|
}
|
|
327
337
|
render({ es5: s, _n: p }) {
|
|
328
|
-
const
|
|
329
|
-
return `${
|
|
338
|
+
const S = s ? r.varKinds.var : this.varKind, R = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
339
|
+
return `${S} ${this.name}${R};` + p;
|
|
330
340
|
}
|
|
331
341
|
optimizeNames(s, p) {
|
|
332
342
|
if (s[this.name.str])
|
|
@@ -337,8 +347,8 @@ var rr = {};
|
|
|
337
347
|
}
|
|
338
348
|
}
|
|
339
349
|
class l extends n {
|
|
340
|
-
constructor(s, p,
|
|
341
|
-
super(), this.lhs = s, this.rhs = p, this.sideEffects =
|
|
350
|
+
constructor(s, p, S) {
|
|
351
|
+
super(), this.lhs = s, this.rhs = p, this.sideEffects = S;
|
|
342
352
|
}
|
|
343
353
|
render({ _n: s }) {
|
|
344
354
|
return `${this.lhs} = ${this.rhs};` + s;
|
|
@@ -349,12 +359,12 @@ var rr = {};
|
|
|
349
359
|
}
|
|
350
360
|
get names() {
|
|
351
361
|
const s = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
|
|
352
|
-
return
|
|
362
|
+
return De(s, this.rhs);
|
|
353
363
|
}
|
|
354
364
|
}
|
|
355
365
|
class d extends l {
|
|
356
|
-
constructor(s, p,
|
|
357
|
-
super(s,
|
|
366
|
+
constructor(s, p, S, R) {
|
|
367
|
+
super(s, S, R), this.op = p;
|
|
358
368
|
}
|
|
359
369
|
render({ _n: s }) {
|
|
360
370
|
return `${this.lhs} ${this.op}= ${this.rhs};` + s;
|
|
@@ -404,46 +414,46 @@ var rr = {};
|
|
|
404
414
|
return this.code instanceof t._CodeOrName ? this.code.names : {};
|
|
405
415
|
}
|
|
406
416
|
}
|
|
407
|
-
class
|
|
417
|
+
class w extends n {
|
|
408
418
|
constructor(s = []) {
|
|
409
419
|
super(), this.nodes = s;
|
|
410
420
|
}
|
|
411
421
|
render(s) {
|
|
412
|
-
return this.nodes.reduce((p,
|
|
422
|
+
return this.nodes.reduce((p, S) => p + S.render(s), "");
|
|
413
423
|
}
|
|
414
424
|
optimizeNodes() {
|
|
415
425
|
const { nodes: s } = this;
|
|
416
426
|
let p = s.length;
|
|
417
427
|
for (; p--; ) {
|
|
418
|
-
const
|
|
419
|
-
Array.isArray(
|
|
428
|
+
const S = s[p].optimizeNodes();
|
|
429
|
+
Array.isArray(S) ? s.splice(p, 1, ...S) : S ? s[p] = S : s.splice(p, 1);
|
|
420
430
|
}
|
|
421
431
|
return s.length > 0 ? this : void 0;
|
|
422
432
|
}
|
|
423
433
|
optimizeNames(s, p) {
|
|
424
|
-
const { nodes:
|
|
425
|
-
let R =
|
|
434
|
+
const { nodes: S } = this;
|
|
435
|
+
let R = S.length;
|
|
426
436
|
for (; R--; ) {
|
|
427
|
-
const T =
|
|
428
|
-
T.optimizeNames(s, p) || (Ue(s, T.names),
|
|
437
|
+
const T = S[R];
|
|
438
|
+
T.optimizeNames(s, p) || (Ue(s, T.names), S.splice(R, 1));
|
|
429
439
|
}
|
|
430
|
-
return
|
|
440
|
+
return S.length > 0 ? this : void 0;
|
|
431
441
|
}
|
|
432
442
|
get names() {
|
|
433
443
|
return this.nodes.reduce((s, p) => le(s, p.names), {});
|
|
434
444
|
}
|
|
435
445
|
}
|
|
436
|
-
class
|
|
446
|
+
class b extends w {
|
|
437
447
|
render(s) {
|
|
438
448
|
return "{" + s._n + super.render(s) + "}" + s._n;
|
|
439
449
|
}
|
|
440
450
|
}
|
|
441
|
-
class
|
|
451
|
+
class v extends w {
|
|
442
452
|
}
|
|
443
|
-
class g extends
|
|
453
|
+
class g extends b {
|
|
444
454
|
}
|
|
445
455
|
g.kind = "else";
|
|
446
|
-
class u extends
|
|
456
|
+
class u extends b {
|
|
447
457
|
constructor(s, p) {
|
|
448
458
|
super(p), this.condition = s;
|
|
449
459
|
}
|
|
@@ -458,8 +468,8 @@ var rr = {};
|
|
|
458
468
|
return this.nodes;
|
|
459
469
|
let p = this.else;
|
|
460
470
|
if (p) {
|
|
461
|
-
const
|
|
462
|
-
p = this.else = Array.isArray(
|
|
471
|
+
const S = p.optimizeNodes();
|
|
472
|
+
p = this.else = Array.isArray(S) ? new g(S) : S;
|
|
463
473
|
}
|
|
464
474
|
if (p)
|
|
465
475
|
return s === !1 ? p instanceof u ? p : p.nodes : this.nodes.length ? this : new u(lt(s), p instanceof u ? [p] : p.nodes);
|
|
@@ -467,20 +477,20 @@ var rr = {};
|
|
|
467
477
|
return this;
|
|
468
478
|
}
|
|
469
479
|
optimizeNames(s, p) {
|
|
470
|
-
var
|
|
471
|
-
if (this.else = (
|
|
480
|
+
var S;
|
|
481
|
+
if (this.else = (S = this.else) === null || S === void 0 ? void 0 : S.optimizeNames(s, p), !!(super.optimizeNames(s, p) || this.else))
|
|
472
482
|
return this.condition = he(this.condition, s, p), this;
|
|
473
483
|
}
|
|
474
484
|
get names() {
|
|
475
485
|
const s = super.names;
|
|
476
|
-
return
|
|
486
|
+
return De(s, this.condition), this.else && le(s, this.else.names), s;
|
|
477
487
|
}
|
|
478
488
|
}
|
|
479
489
|
u.kind = "if";
|
|
480
|
-
class
|
|
490
|
+
class $ extends b {
|
|
481
491
|
}
|
|
482
|
-
|
|
483
|
-
class C extends
|
|
492
|
+
$.kind = "for";
|
|
493
|
+
class C extends $ {
|
|
484
494
|
constructor(s) {
|
|
485
495
|
super(), this.iteration = s;
|
|
486
496
|
}
|
|
@@ -495,22 +505,22 @@ var rr = {};
|
|
|
495
505
|
return le(super.names, this.iteration.names);
|
|
496
506
|
}
|
|
497
507
|
}
|
|
498
|
-
class D extends
|
|
499
|
-
constructor(s, p,
|
|
500
|
-
super(), this.varKind = s, this.name = p, this.from =
|
|
508
|
+
class D extends $ {
|
|
509
|
+
constructor(s, p, S, R) {
|
|
510
|
+
super(), this.varKind = s, this.name = p, this.from = S, this.to = R;
|
|
501
511
|
}
|
|
502
512
|
render(s) {
|
|
503
|
-
const p = s.es5 ? r.varKinds.var : this.varKind, { name:
|
|
504
|
-
return `for(${p} ${
|
|
513
|
+
const p = s.es5 ? r.varKinds.var : this.varKind, { name: S, from: R, to: T } = this;
|
|
514
|
+
return `for(${p} ${S}=${R}; ${S}<${T}; ${S}++)` + super.render(s);
|
|
505
515
|
}
|
|
506
516
|
get names() {
|
|
507
|
-
const s =
|
|
508
|
-
return
|
|
517
|
+
const s = De(super.names, this.from);
|
|
518
|
+
return De(s, this.to);
|
|
509
519
|
}
|
|
510
520
|
}
|
|
511
|
-
class F extends
|
|
512
|
-
constructor(s, p,
|
|
513
|
-
super(), this.loop = s, this.varKind = p, this.name =
|
|
521
|
+
class F extends $ {
|
|
522
|
+
constructor(s, p, S, R) {
|
|
523
|
+
super(), this.loop = s, this.varKind = p, this.name = S, this.iterable = R;
|
|
514
524
|
}
|
|
515
525
|
render(s) {
|
|
516
526
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(s);
|
|
@@ -523,22 +533,22 @@ var rr = {};
|
|
|
523
533
|
return le(super.names, this.iterable.names);
|
|
524
534
|
}
|
|
525
535
|
}
|
|
526
|
-
class L extends
|
|
527
|
-
constructor(s, p,
|
|
528
|
-
super(), this.name = s, this.args = p, this.async =
|
|
536
|
+
class L extends b {
|
|
537
|
+
constructor(s, p, S) {
|
|
538
|
+
super(), this.name = s, this.args = p, this.async = S;
|
|
529
539
|
}
|
|
530
540
|
render(s) {
|
|
531
541
|
return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(s);
|
|
532
542
|
}
|
|
533
543
|
}
|
|
534
544
|
L.kind = "func";
|
|
535
|
-
class H extends
|
|
545
|
+
class H extends w {
|
|
536
546
|
render(s) {
|
|
537
547
|
return "return " + super.render(s);
|
|
538
548
|
}
|
|
539
549
|
}
|
|
540
550
|
H.kind = "return";
|
|
541
|
-
class ae extends
|
|
551
|
+
class ae extends b {
|
|
542
552
|
render(s) {
|
|
543
553
|
let p = "try" + super.render(s);
|
|
544
554
|
return this.catch && (p += this.catch.render(s)), this.finally && (p += this.finally.render(s)), p;
|
|
@@ -548,15 +558,15 @@ var rr = {};
|
|
|
548
558
|
return super.optimizeNodes(), (s = this.catch) === null || s === void 0 || s.optimizeNodes(), (p = this.finally) === null || p === void 0 || p.optimizeNodes(), this;
|
|
549
559
|
}
|
|
550
560
|
optimizeNames(s, p) {
|
|
551
|
-
var
|
|
552
|
-
return super.optimizeNames(s, p), (
|
|
561
|
+
var S, R;
|
|
562
|
+
return super.optimizeNames(s, p), (S = this.catch) === null || S === void 0 || S.optimizeNames(s, p), (R = this.finally) === null || R === void 0 || R.optimizeNames(s, p), this;
|
|
553
563
|
}
|
|
554
564
|
get names() {
|
|
555
565
|
const s = super.names;
|
|
556
566
|
return this.catch && le(s, this.catch.names), this.finally && le(s, this.finally.names), s;
|
|
557
567
|
}
|
|
558
568
|
}
|
|
559
|
-
class fe extends
|
|
569
|
+
class fe extends b {
|
|
560
570
|
constructor(s) {
|
|
561
571
|
super(), this.error = s;
|
|
562
572
|
}
|
|
@@ -565,16 +575,16 @@ var rr = {};
|
|
|
565
575
|
}
|
|
566
576
|
}
|
|
567
577
|
fe.kind = "catch";
|
|
568
|
-
class
|
|
578
|
+
class Se extends b {
|
|
569
579
|
render(s) {
|
|
570
580
|
return "finally" + super.render(s);
|
|
571
581
|
}
|
|
572
582
|
}
|
|
573
|
-
|
|
583
|
+
Se.kind = "finally";
|
|
574
584
|
class We {
|
|
575
585
|
constructor(s, p = {}) {
|
|
576
586
|
this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...p, _n: p.lines ? `
|
|
577
|
-
` : "" }, this._extScope = s, this._scope = new r.Scope({ parent: s }), this._nodes = [new
|
|
587
|
+
` : "" }, this._extScope = s, this._scope = new r.Scope({ parent: s }), this._nodes = [new v()];
|
|
578
588
|
}
|
|
579
589
|
toString() {
|
|
580
590
|
return this._root.render(this.opts);
|
|
@@ -589,8 +599,8 @@ var rr = {};
|
|
|
589
599
|
}
|
|
590
600
|
// reserves unique name in the external scope and assigns value to it
|
|
591
601
|
scopeValue(s, p) {
|
|
592
|
-
const
|
|
593
|
-
return (this._values[
|
|
602
|
+
const S = this._extScope.value(s, p);
|
|
603
|
+
return (this._values[S.prefix] || (this._values[S.prefix] = /* @__PURE__ */ new Set())).add(S), S;
|
|
594
604
|
}
|
|
595
605
|
getScopeValue(s, p) {
|
|
596
606
|
return this._extScope.getValue(s, p);
|
|
@@ -603,25 +613,25 @@ var rr = {};
|
|
|
603
613
|
scopeCode() {
|
|
604
614
|
return this._extScope.scopeCode(this._values);
|
|
605
615
|
}
|
|
606
|
-
_def(s, p,
|
|
616
|
+
_def(s, p, S, R) {
|
|
607
617
|
const T = this._scope.toName(p);
|
|
608
|
-
return
|
|
618
|
+
return S !== void 0 && R && (this._constants[T.str] = S), this._leafNode(new a(s, T, S)), T;
|
|
609
619
|
}
|
|
610
620
|
// `const` declaration (`var` in es5 mode)
|
|
611
|
-
const(s, p,
|
|
612
|
-
return this._def(r.varKinds.const, s, p,
|
|
621
|
+
const(s, p, S) {
|
|
622
|
+
return this._def(r.varKinds.const, s, p, S);
|
|
613
623
|
}
|
|
614
624
|
// `let` declaration with optional assignment (`var` in es5 mode)
|
|
615
|
-
let(s, p,
|
|
616
|
-
return this._def(r.varKinds.let, s, p,
|
|
625
|
+
let(s, p, S) {
|
|
626
|
+
return this._def(r.varKinds.let, s, p, S);
|
|
617
627
|
}
|
|
618
628
|
// `var` declaration with optional assignment
|
|
619
|
-
var(s, p,
|
|
620
|
-
return this._def(r.varKinds.var, s, p,
|
|
629
|
+
var(s, p, S) {
|
|
630
|
+
return this._def(r.varKinds.var, s, p, S);
|
|
621
631
|
}
|
|
622
632
|
// assignment code
|
|
623
|
-
assign(s, p,
|
|
624
|
-
return this._leafNode(new l(s, p,
|
|
633
|
+
assign(s, p, S) {
|
|
634
|
+
return this._leafNode(new l(s, p, S));
|
|
625
635
|
}
|
|
626
636
|
// `+=` code
|
|
627
637
|
add(s, p) {
|
|
@@ -634,17 +644,17 @@ var rr = {};
|
|
|
634
644
|
// returns code for object literal for the passed argument list of key-value pairs
|
|
635
645
|
object(...s) {
|
|
636
646
|
const p = ["{"];
|
|
637
|
-
for (const [
|
|
638
|
-
p.length > 1 && p.push(","), p.push(
|
|
647
|
+
for (const [S, R] of s)
|
|
648
|
+
p.length > 1 && p.push(","), p.push(S), (S !== R || this.opts.es5) && (p.push(":"), (0, t.addCodeArg)(p, R));
|
|
639
649
|
return p.push("}"), new t._Code(p);
|
|
640
650
|
}
|
|
641
651
|
// `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
|
|
642
|
-
if(s, p,
|
|
643
|
-
if (this._blockNode(new u(s)), p &&
|
|
644
|
-
this.code(p).else().code(
|
|
652
|
+
if(s, p, S) {
|
|
653
|
+
if (this._blockNode(new u(s)), p && S)
|
|
654
|
+
this.code(p).else().code(S).endIf();
|
|
645
655
|
else if (p)
|
|
646
656
|
this.code(p).endIf();
|
|
647
|
-
else if (
|
|
657
|
+
else if (S)
|
|
648
658
|
throw new Error('CodeGen: "else" body without "then" body');
|
|
649
659
|
return this;
|
|
650
660
|
}
|
|
@@ -668,32 +678,32 @@ var rr = {};
|
|
|
668
678
|
return this._for(new C(s), p);
|
|
669
679
|
}
|
|
670
680
|
// `for` statement for a range of values
|
|
671
|
-
forRange(s, p,
|
|
681
|
+
forRange(s, p, S, R, T = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
|
|
672
682
|
const z = this._scope.toName(s);
|
|
673
|
-
return this._for(new D(T, z, p,
|
|
683
|
+
return this._for(new D(T, z, p, S), () => R(z));
|
|
674
684
|
}
|
|
675
685
|
// `for-of` statement (in es5 mode replace with a normal for loop)
|
|
676
|
-
forOf(s, p,
|
|
686
|
+
forOf(s, p, S, R = r.varKinds.const) {
|
|
677
687
|
const T = this._scope.toName(s);
|
|
678
688
|
if (this.opts.es5) {
|
|
679
689
|
const z = p instanceof t.Name ? p : this.var("_arr", p);
|
|
680
690
|
return this.forRange("_i", 0, (0, t._)`${z}.length`, (N) => {
|
|
681
|
-
this.var(T, (0, t._)`${z}[${N}]`),
|
|
691
|
+
this.var(T, (0, t._)`${z}[${N}]`), S(T);
|
|
682
692
|
});
|
|
683
693
|
}
|
|
684
|
-
return this._for(new F("of", R, T, p), () =>
|
|
694
|
+
return this._for(new F("of", R, T, p), () => S(T));
|
|
685
695
|
}
|
|
686
696
|
// `for-in` statement.
|
|
687
697
|
// With option `ownProperties` replaced with a `for-of` loop for object keys
|
|
688
|
-
forIn(s, p,
|
|
698
|
+
forIn(s, p, S, R = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
|
|
689
699
|
if (this.opts.ownProperties)
|
|
690
|
-
return this.forOf(s, (0, t._)`Object.keys(${p})`,
|
|
700
|
+
return this.forOf(s, (0, t._)`Object.keys(${p})`, S);
|
|
691
701
|
const T = this._scope.toName(s);
|
|
692
|
-
return this._for(new F("in", R, T, p), () =>
|
|
702
|
+
return this._for(new F("in", R, T, p), () => S(T));
|
|
693
703
|
}
|
|
694
704
|
// end `for` loop
|
|
695
705
|
endFor() {
|
|
696
|
-
return this._endBlockNode(
|
|
706
|
+
return this._endBlockNode($);
|
|
697
707
|
}
|
|
698
708
|
// `label` statement
|
|
699
709
|
label(s) {
|
|
@@ -711,15 +721,15 @@ var rr = {};
|
|
|
711
721
|
return this._endBlockNode(H);
|
|
712
722
|
}
|
|
713
723
|
// `try` statement
|
|
714
|
-
try(s, p,
|
|
715
|
-
if (!p && !
|
|
724
|
+
try(s, p, S) {
|
|
725
|
+
if (!p && !S)
|
|
716
726
|
throw new Error('CodeGen: "try" without "catch" and "finally"');
|
|
717
727
|
const R = new ae();
|
|
718
728
|
if (this._blockNode(R), this.code(s), p) {
|
|
719
729
|
const T = this.name("e");
|
|
720
730
|
this._currNode = R.catch = new fe(T), p(T);
|
|
721
731
|
}
|
|
722
|
-
return
|
|
732
|
+
return S && (this._currNode = R.finally = new Se(), this.code(S)), this._endBlockNode(fe, Se);
|
|
723
733
|
}
|
|
724
734
|
// `throw` statement
|
|
725
735
|
throw(s) {
|
|
@@ -734,14 +744,14 @@ var rr = {};
|
|
|
734
744
|
const p = this._blockStarts.pop();
|
|
735
745
|
if (p === void 0)
|
|
736
746
|
throw new Error("CodeGen: not in self-balancing block");
|
|
737
|
-
const
|
|
738
|
-
if (
|
|
739
|
-
throw new Error(`CodeGen: wrong number of nodes: ${
|
|
747
|
+
const S = this._nodes.length - p;
|
|
748
|
+
if (S < 0 || s !== void 0 && S !== s)
|
|
749
|
+
throw new Error(`CodeGen: wrong number of nodes: ${S} vs ${s} expected`);
|
|
740
750
|
return this._nodes.length = p, this;
|
|
741
751
|
}
|
|
742
752
|
// `function` heading (or definition if funcBody is passed)
|
|
743
|
-
func(s, p = t.nil,
|
|
744
|
-
return this._blockNode(new L(s, p,
|
|
753
|
+
func(s, p = t.nil, S, R) {
|
|
754
|
+
return this._blockNode(new L(s, p, S)), R && this.code(R).endFunc(), this;
|
|
745
755
|
}
|
|
746
756
|
// end function definition
|
|
747
757
|
endFunc() {
|
|
@@ -758,8 +768,8 @@ var rr = {};
|
|
|
758
768
|
this._currNode.nodes.push(s), this._nodes.push(s);
|
|
759
769
|
}
|
|
760
770
|
_endBlockNode(s, p) {
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
771
|
+
const S = this._currNode;
|
|
772
|
+
if (S instanceof s || p && S instanceof p)
|
|
763
773
|
return this._nodes.pop(), this;
|
|
764
774
|
throw new Error(`CodeGen: not in block "${p ? `${s.kind}/${p.kind}` : s.kind}"`);
|
|
765
775
|
}
|
|
@@ -787,16 +797,16 @@ var rr = {};
|
|
|
787
797
|
y[p] = (y[p] || 0) + (s[p] || 0);
|
|
788
798
|
return y;
|
|
789
799
|
}
|
|
790
|
-
function
|
|
800
|
+
function De(y, s) {
|
|
791
801
|
return s instanceof t._CodeOrName ? le(y, s.names) : y;
|
|
792
802
|
}
|
|
793
803
|
function he(y, s, p) {
|
|
794
804
|
if (y instanceof t.Name)
|
|
795
|
-
return
|
|
805
|
+
return S(y);
|
|
796
806
|
if (!R(y))
|
|
797
807
|
return y;
|
|
798
|
-
return new t._Code(y._items.reduce((T, z) => (z instanceof t.Name && (z =
|
|
799
|
-
function
|
|
808
|
+
return new t._Code(y._items.reduce((T, z) => (z instanceof t.Name && (z = S(z)), z instanceof t._Code ? T.push(...z._items) : T.push(z), T), []));
|
|
809
|
+
function S(T) {
|
|
800
810
|
const z = p[T.str];
|
|
801
811
|
return z === void 0 || s[T.str] !== 1 ? T : (delete s[T.str], z);
|
|
802
812
|
}
|
|
@@ -1008,13 +1018,13 @@ Q.default = cn;
|
|
|
1008
1018
|
}, e.keyword$DataError = {
|
|
1009
1019
|
message: ({ keyword: g, schemaType: u }) => u ? (0, t.str)`"${g}" keyword must be ${u} ($data)` : (0, t.str)`"${g}" keyword is invalid ($data)`
|
|
1010
1020
|
};
|
|
1011
|
-
function o(g, u = e.keywordError,
|
|
1012
|
-
const { it: D } = g, { gen: F, compositeRule: L, allErrors: H } = D, ae = h(g, u,
|
|
1021
|
+
function o(g, u = e.keywordError, $, C) {
|
|
1022
|
+
const { it: D } = g, { gen: F, compositeRule: L, allErrors: H } = D, ae = h(g, u, $);
|
|
1013
1023
|
C ?? (L || H) ? d(F, ae) : c(D, (0, t._)`[${ae}]`);
|
|
1014
1024
|
}
|
|
1015
1025
|
e.reportError = o;
|
|
1016
|
-
function n(g, u = e.keywordError,
|
|
1017
|
-
const { it: C } = g, { gen: D, compositeRule: F, allErrors: L } = C, H = h(g, u,
|
|
1026
|
+
function n(g, u = e.keywordError, $) {
|
|
1027
|
+
const { it: C } = g, { gen: D, compositeRule: F, allErrors: L } = C, H = h(g, u, $);
|
|
1018
1028
|
d(D, H), F || L || c(C, i.default.vErrors);
|
|
1019
1029
|
}
|
|
1020
1030
|
e.reportExtraError = n;
|
|
@@ -1022,22 +1032,22 @@ Q.default = cn;
|
|
|
1022
1032
|
g.assign(i.default.errors, u), g.if((0, t._)`${i.default.vErrors} !== null`, () => g.if(u, () => g.assign((0, t._)`${i.default.vErrors}.length`, u), () => g.assign(i.default.vErrors, null)));
|
|
1023
1033
|
}
|
|
1024
1034
|
e.resetErrorsCount = a;
|
|
1025
|
-
function l({ gen: g, keyword: u, schemaValue:
|
|
1035
|
+
function l({ gen: g, keyword: u, schemaValue: $, data: C, errsCount: D, it: F }) {
|
|
1026
1036
|
if (D === void 0)
|
|
1027
1037
|
throw new Error("ajv implementation error");
|
|
1028
1038
|
const L = g.name("err");
|
|
1029
1039
|
g.forRange("i", D, i.default.errors, (H) => {
|
|
1030
|
-
g.const(L, (0, t._)`${i.default.vErrors}[${H}]`), g.if((0, t._)`${L}.instancePath === undefined`, () => g.assign((0, t._)`${L}.instancePath`, (0, t.strConcat)(i.default.instancePath, F.errorPath))), g.assign((0, t._)`${L}.schemaPath`, (0, t.str)`${F.errSchemaPath}/${u}`), F.opts.verbose && (g.assign((0, t._)`${L}.schema`,
|
|
1040
|
+
g.const(L, (0, t._)`${i.default.vErrors}[${H}]`), g.if((0, t._)`${L}.instancePath === undefined`, () => g.assign((0, t._)`${L}.instancePath`, (0, t.strConcat)(i.default.instancePath, F.errorPath))), g.assign((0, t._)`${L}.schemaPath`, (0, t.str)`${F.errSchemaPath}/${u}`), F.opts.verbose && (g.assign((0, t._)`${L}.schema`, $), g.assign((0, t._)`${L}.data`, C));
|
|
1031
1041
|
});
|
|
1032
1042
|
}
|
|
1033
1043
|
e.extendErrors = l;
|
|
1034
1044
|
function d(g, u) {
|
|
1035
|
-
const
|
|
1036
|
-
g.if((0, t._)`${i.default.vErrors} === null`, () => g.assign(i.default.vErrors, (0, t._)`[${
|
|
1045
|
+
const $ = g.const("err", u);
|
|
1046
|
+
g.if((0, t._)`${i.default.vErrors} === null`, () => g.assign(i.default.vErrors, (0, t._)`[${$}]`), (0, t._)`${i.default.vErrors}.push(${$})`), g.code((0, t._)`${i.default.errors}++`);
|
|
1037
1047
|
}
|
|
1038
1048
|
function c(g, u) {
|
|
1039
|
-
const { gen:
|
|
1040
|
-
D.$async ?
|
|
1049
|
+
const { gen: $, validateName: C, schemaEnv: D } = g;
|
|
1050
|
+
D.$async ? $.throw((0, t._)`new ${g.ValidationError}(${u})`) : ($.assign((0, t._)`${C}.errors`, u), $.return(!1));
|
|
1041
1051
|
}
|
|
1042
1052
|
const f = {
|
|
1043
1053
|
keyword: new t.Name("keyword"),
|
|
@@ -1049,32 +1059,32 @@ Q.default = cn;
|
|
|
1049
1059
|
schema: new t.Name("schema"),
|
|
1050
1060
|
parentSchema: new t.Name("parentSchema")
|
|
1051
1061
|
};
|
|
1052
|
-
function h(g, u,
|
|
1062
|
+
function h(g, u, $) {
|
|
1053
1063
|
const { createErrors: C } = g.it;
|
|
1054
|
-
return C === !1 ? (0, t._)`{}` : k(g, u,
|
|
1064
|
+
return C === !1 ? (0, t._)`{}` : k(g, u, $);
|
|
1055
1065
|
}
|
|
1056
|
-
function k(g, u,
|
|
1066
|
+
function k(g, u, $ = {}) {
|
|
1057
1067
|
const { gen: C, it: D } = g, F = [
|
|
1058
|
-
|
|
1059
|
-
|
|
1068
|
+
w(D, $),
|
|
1069
|
+
b(g, $)
|
|
1060
1070
|
];
|
|
1061
|
-
return
|
|
1071
|
+
return v(g, u, F), C.object(...F);
|
|
1062
1072
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const
|
|
1065
|
-
return [i.default.instancePath, (0, t.strConcat)(i.default.instancePath,
|
|
1073
|
+
function w({ errorPath: g }, { instancePath: u }) {
|
|
1074
|
+
const $ = u ? (0, t.str)`${g}${(0, r.getErrorPath)(u, r.Type.Str)}` : g;
|
|
1075
|
+
return [i.default.instancePath, (0, t.strConcat)(i.default.instancePath, $)];
|
|
1066
1076
|
}
|
|
1067
|
-
function
|
|
1077
|
+
function b({ keyword: g, it: { errSchemaPath: u } }, { schemaPath: $, parentSchema: C }) {
|
|
1068
1078
|
let D = C ? u : (0, t.str)`${u}/${g}`;
|
|
1069
|
-
return
|
|
1079
|
+
return $ && (D = (0, t.str)`${D}${(0, r.getErrorPath)($, r.Type.Str)}`), [f.schemaPath, D];
|
|
1070
1080
|
}
|
|
1071
|
-
function
|
|
1072
|
-
const { keyword: D, data: F, schemaValue: L, it: H } = g, { opts: ae, propertyName: fe, topSchemaRef:
|
|
1073
|
-
C.push([f.keyword, D], [f.params, typeof u == "function" ? u(g) : u || (0, t._)`{}`]), ae.messages && C.push([f.message, typeof
|
|
1081
|
+
function v(g, { params: u, message: $ }, C) {
|
|
1082
|
+
const { keyword: D, data: F, schemaValue: L, it: H } = g, { opts: ae, propertyName: fe, topSchemaRef: Se, schemaPath: We } = H;
|
|
1083
|
+
C.push([f.keyword, D], [f.params, typeof u == "function" ? u(g) : u || (0, t._)`{}`]), ae.messages && C.push([f.message, typeof $ == "function" ? $(g) : $]), ae.verbose && C.push([f.schema, L], [f.parentSchema, (0, t._)`${Se}${We}`], [i.default.data, F]), fe && C.push([f.propertyName, fe]);
|
|
1074
1084
|
}
|
|
1075
1085
|
})(nt);
|
|
1076
|
-
Object.defineProperty(
|
|
1077
|
-
|
|
1086
|
+
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
1087
|
+
Ae.boolOrEmptySchema = Ae.topBoolOrEmptySchema = void 0;
|
|
1078
1088
|
const pn = nt, un = E, fn = Q, hn = {
|
|
1079
1089
|
message: "boolean schema is false"
|
|
1080
1090
|
};
|
|
@@ -1082,12 +1092,12 @@ function mn(e) {
|
|
|
1082
1092
|
const { gen: t, schema: r, validateName: i } = e;
|
|
1083
1093
|
r === !1 ? Ji(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(fn.default.data) : (t.assign((0, un._)`${i}.errors`, null), t.return(!0));
|
|
1084
1094
|
}
|
|
1085
|
-
|
|
1095
|
+
Ae.topBoolOrEmptySchema = mn;
|
|
1086
1096
|
function gn(e, t) {
|
|
1087
1097
|
const { gen: r, schema: i } = e;
|
|
1088
1098
|
i === !1 ? (r.var(t, !1), Ji(e)) : r.var(t, !0);
|
|
1089
1099
|
}
|
|
1090
|
-
|
|
1100
|
+
Ae.boolOrEmptySchema = gn;
|
|
1091
1101
|
function Ji(e, t) {
|
|
1092
1102
|
const { gen: r, data: i } = e, o = {
|
|
1093
1103
|
gen: r,
|
|
@@ -1101,14 +1111,14 @@ function Ji(e, t) {
|
|
|
1101
1111
|
};
|
|
1102
1112
|
(0, pn.reportError)(o, hn, void 0, t);
|
|
1103
1113
|
}
|
|
1104
|
-
var W = {},
|
|
1105
|
-
Object.defineProperty(
|
|
1106
|
-
|
|
1114
|
+
var W = {}, _e = {};
|
|
1115
|
+
Object.defineProperty(_e, "__esModule", { value: !0 });
|
|
1116
|
+
_e.getRules = _e.isJSONType = void 0;
|
|
1107
1117
|
const yn = ["string", "number", "integer", "boolean", "null", "object", "array"], bn = new Set(yn);
|
|
1108
1118
|
function $n(e) {
|
|
1109
1119
|
return typeof e == "string" && bn.has(e);
|
|
1110
1120
|
}
|
|
1111
|
-
|
|
1121
|
+
_e.isJSONType = $n;
|
|
1112
1122
|
function vn() {
|
|
1113
1123
|
const e = {
|
|
1114
1124
|
number: { type: "number", rules: [] },
|
|
@@ -1124,7 +1134,7 @@ function vn() {
|
|
|
1124
1134
|
keywords: {}
|
|
1125
1135
|
};
|
|
1126
1136
|
}
|
|
1127
|
-
|
|
1137
|
+
_e.getRules = vn;
|
|
1128
1138
|
var de = {};
|
|
1129
1139
|
Object.defineProperty(de, "__esModule", { value: !0 });
|
|
1130
1140
|
de.shouldUseRule = de.shouldUseGroup = de.schemaHasRulesForType = void 0;
|
|
@@ -1144,11 +1154,11 @@ function Zi(e, t) {
|
|
|
1144
1154
|
de.shouldUseRule = Zi;
|
|
1145
1155
|
Object.defineProperty(W, "__esModule", { value: !0 });
|
|
1146
1156
|
W.reportTypeError = W.checkDataTypes = W.checkDataType = W.coerceAndCheckDataType = W.getJSONTypes = W.getSchemaTypes = W.DataType = void 0;
|
|
1147
|
-
const wn =
|
|
1148
|
-
var
|
|
1157
|
+
const wn = _e, kn = de, On = nt, x = E, Xi = V;
|
|
1158
|
+
var Ee;
|
|
1149
1159
|
(function(e) {
|
|
1150
1160
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
1151
|
-
})(
|
|
1161
|
+
})(Ee || (W.DataType = Ee = {}));
|
|
1152
1162
|
function Cn(e) {
|
|
1153
1163
|
const t = Qi(e.type);
|
|
1154
1164
|
if (t.includes("null")) {
|
|
@@ -1172,7 +1182,7 @@ W.getJSONTypes = Qi;
|
|
|
1172
1182
|
function Pn(e, t) {
|
|
1173
1183
|
const { gen: r, data: i, opts: o } = e, n = _n(t, o.coerceTypes), a = t.length > 0 && !(n.length === 0 && t.length === 1 && (0, kn.schemaHasRulesForType)(e, t[0]));
|
|
1174
1184
|
if (a) {
|
|
1175
|
-
const l = pr(t, i, o.strictNumbers,
|
|
1185
|
+
const l = pr(t, i, o.strictNumbers, Ee.Wrong);
|
|
1176
1186
|
r.if(l, () => {
|
|
1177
1187
|
n.length ? Vn(e, t, n) : ur(e);
|
|
1178
1188
|
});
|
|
@@ -1220,8 +1230,8 @@ function Vn(e, t, r) {
|
|
|
1220
1230
|
function Dn({ gen: e, parentData: t, parentDataProperty: r }, i) {
|
|
1221
1231
|
e.if((0, x._)`${t} !== undefined`, () => e.assign((0, x._)`${t}[${r}]`, i));
|
|
1222
1232
|
}
|
|
1223
|
-
function or(e, t, r, i =
|
|
1224
|
-
const o = i ===
|
|
1233
|
+
function or(e, t, r, i = Ee.Correct) {
|
|
1234
|
+
const o = i === Ee.Correct ? x.operators.EQ : x.operators.NEQ;
|
|
1225
1235
|
let n;
|
|
1226
1236
|
switch (e) {
|
|
1227
1237
|
case "null":
|
|
@@ -1241,7 +1251,7 @@ function or(e, t, r, i = Ie.Correct) {
|
|
|
1241
1251
|
default:
|
|
1242
1252
|
return (0, x._)`typeof ${t} ${o} ${e}`;
|
|
1243
1253
|
}
|
|
1244
|
-
return i ===
|
|
1254
|
+
return i === Ee.Correct ? n : (0, x.not)(n);
|
|
1245
1255
|
function a(l = x.nil) {
|
|
1246
1256
|
return (0, x.and)((0, x._)`typeof ${t} == "number"`, l, r ? (0, x._)`isFinite(${t})` : x.nil);
|
|
1247
1257
|
}
|
|
@@ -1289,7 +1299,7 @@ function jn(e) {
|
|
|
1289
1299
|
var Pt = {};
|
|
1290
1300
|
Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
1291
1301
|
Pt.assignDefaults = void 0;
|
|
1292
|
-
const
|
|
1302
|
+
const je = E, Rn = V;
|
|
1293
1303
|
function Tn(e, t) {
|
|
1294
1304
|
const { properties: r, items: i } = e.schema;
|
|
1295
1305
|
if (t === "object" && r)
|
|
@@ -1302,13 +1312,13 @@ function mi(e, t, r) {
|
|
|
1302
1312
|
const { gen: i, compositeRule: o, data: n, opts: a } = e;
|
|
1303
1313
|
if (r === void 0)
|
|
1304
1314
|
return;
|
|
1305
|
-
const l = (0,
|
|
1315
|
+
const l = (0, je._)`${n}${(0, je.getProperty)(t)}`;
|
|
1306
1316
|
if (o) {
|
|
1307
1317
|
(0, Rn.checkStrictMode)(e, `default is ignored for: ${l}`);
|
|
1308
1318
|
return;
|
|
1309
1319
|
}
|
|
1310
|
-
let d = (0,
|
|
1311
|
-
a.useDefaults === "empty" && (d = (0,
|
|
1320
|
+
let d = (0, je._)`${l} === undefined`;
|
|
1321
|
+
a.useDefaults === "empty" && (d = (0, je._)`${d} || ${l} === null || ${l} === ""`), i.if(d, (0, je._)`${l} = ${(0, je.stringify)(r)}`);
|
|
1312
1322
|
}
|
|
1313
1323
|
var se = {}, A = {};
|
|
1314
1324
|
Object.defineProperty(A, "__esModule", { value: !0 });
|
|
@@ -1419,7 +1429,7 @@ function Hn(e) {
|
|
|
1419
1429
|
A.validateUnion = Hn;
|
|
1420
1430
|
Object.defineProperty(se, "__esModule", { value: !0 });
|
|
1421
1431
|
se.validateKeywordUsage = se.validSchemaType = se.funcKeywordCode = se.macroKeywordCode = void 0;
|
|
1422
|
-
const Y = E,
|
|
1432
|
+
const Y = E, ke = Q, Wn = A, Un = nt;
|
|
1423
1433
|
function Gn(e, t) {
|
|
1424
1434
|
const { gen: r, keyword: i, schema: o, parentSchema: n, it: a } = e, l = t.macro.call(a.self, o, n, a), d = io(r, i, l);
|
|
1425
1435
|
a.opts.validateSchema !== !1 && a.self.validateSchema(l, !0);
|
|
@@ -1441,27 +1451,27 @@ function Kn(e, t) {
|
|
|
1441
1451
|
e.block$data(h, k), e.ok((r = t.valid) !== null && r !== void 0 ? r : h);
|
|
1442
1452
|
function k() {
|
|
1443
1453
|
if (t.errors === !1)
|
|
1444
|
-
|
|
1454
|
+
v(), t.modifying && gi(e), g(() => e.error());
|
|
1445
1455
|
else {
|
|
1446
|
-
const u = t.async ?
|
|
1456
|
+
const u = t.async ? w() : b();
|
|
1447
1457
|
t.modifying && gi(e), g(() => Jn(e, u));
|
|
1448
1458
|
}
|
|
1449
1459
|
}
|
|
1450
|
-
function
|
|
1460
|
+
function w() {
|
|
1451
1461
|
const u = i.let("ruleErrs", null);
|
|
1452
|
-
return i.try(() =>
|
|
1462
|
+
return i.try(() => v((0, Y._)`await `), ($) => i.assign(h, !1).if((0, Y._)`${$} instanceof ${d.ValidationError}`, () => i.assign(u, (0, Y._)`${$}.errors`), () => i.throw($))), u;
|
|
1453
1463
|
}
|
|
1454
|
-
function
|
|
1464
|
+
function b() {
|
|
1455
1465
|
const u = (0, Y._)`${f}.errors`;
|
|
1456
|
-
return i.assign(u, null),
|
|
1466
|
+
return i.assign(u, null), v(Y.nil), u;
|
|
1457
1467
|
}
|
|
1458
|
-
function
|
|
1459
|
-
const
|
|
1460
|
-
i.assign(h, (0, Y._)`${u}${(0, Wn.callValidateCode)(e, f,
|
|
1468
|
+
function v(u = t.async ? (0, Y._)`await ` : Y.nil) {
|
|
1469
|
+
const $ = d.opts.passContext ? ke.default.this : ke.default.self, C = !("compile" in t && !l || t.schema === !1);
|
|
1470
|
+
i.assign(h, (0, Y._)`${u}${(0, Wn.callValidateCode)(e, f, $, C)}`, t.modifying);
|
|
1461
1471
|
}
|
|
1462
1472
|
function g(u) {
|
|
1463
|
-
var
|
|
1464
|
-
i.if((0, Y.not)((
|
|
1473
|
+
var $;
|
|
1474
|
+
i.if((0, Y.not)(($ = t.valid) !== null && $ !== void 0 ? $ : h), u);
|
|
1465
1475
|
}
|
|
1466
1476
|
}
|
|
1467
1477
|
se.funcKeywordCode = Kn;
|
|
@@ -1472,7 +1482,7 @@ function gi(e) {
|
|
|
1472
1482
|
function Jn(e, t) {
|
|
1473
1483
|
const { gen: r } = e;
|
|
1474
1484
|
r.if((0, Y._)`Array.isArray(${t})`, () => {
|
|
1475
|
-
r.assign(
|
|
1485
|
+
r.assign(ke.default.vErrors, (0, Y._)`${ke.default.vErrors} === null ? ${t} : ${ke.default.vErrors}.concat(${t})`).assign(ke.default.errors, (0, Y._)`${ke.default.vErrors}.length`), (0, Un.extendErrors)(e);
|
|
1476
1486
|
}, () => e.error());
|
|
1477
1487
|
}
|
|
1478
1488
|
function Yn({ schemaEnv: e }, t) {
|
|
@@ -1643,8 +1653,8 @@ function mt(e, t, r, i, o, n, a, l, d, c) {
|
|
|
1643
1653
|
mt(e, t, r, h[k], o + "/" + f + "/" + k, n, o, f, i, k);
|
|
1644
1654
|
} else if (f in be.propsKeywords) {
|
|
1645
1655
|
if (h && typeof h == "object")
|
|
1646
|
-
for (var
|
|
1647
|
-
mt(e, t, r, h[
|
|
1656
|
+
for (var w in h)
|
|
1657
|
+
mt(e, t, r, h[w], o + "/" + f + "/" + rs(w), n, o, f, i, w);
|
|
1648
1658
|
} else (f in be.keywords || e.allKeys && !(f in be.skipKeywords)) && mt(e, t, r, h, o + "/" + f, n, o, f, i);
|
|
1649
1659
|
}
|
|
1650
1660
|
r(i, o, n, a, l, d, c);
|
|
@@ -1706,7 +1716,7 @@ function ao(e) {
|
|
|
1706
1716
|
return t;
|
|
1707
1717
|
}
|
|
1708
1718
|
function lo(e, t = "", r) {
|
|
1709
|
-
r !== !1 && (t =
|
|
1719
|
+
r !== !1 && (t = xe(t));
|
|
1710
1720
|
const i = e.parse(t);
|
|
1711
1721
|
return co(e, i);
|
|
1712
1722
|
}
|
|
@@ -1716,34 +1726,34 @@ function co(e, t) {
|
|
|
1716
1726
|
}
|
|
1717
1727
|
K._getFullPath = co;
|
|
1718
1728
|
const cs = /#\/?$/;
|
|
1719
|
-
function
|
|
1729
|
+
function xe(e) {
|
|
1720
1730
|
return e ? e.replace(cs, "") : "";
|
|
1721
1731
|
}
|
|
1722
|
-
K.normalizeId =
|
|
1732
|
+
K.normalizeId = xe;
|
|
1723
1733
|
function ps(e, t, r) {
|
|
1724
|
-
return r =
|
|
1734
|
+
return r = xe(r), e.resolve(t, r);
|
|
1725
1735
|
}
|
|
1726
1736
|
K.resolveUrl = ps;
|
|
1727
1737
|
const us = /^[a-z_][-a-z0-9._]*$/i;
|
|
1728
1738
|
function fs(e, t) {
|
|
1729
1739
|
if (typeof e == "boolean")
|
|
1730
1740
|
return {};
|
|
1731
|
-
const { schemaId: r, uriResolver: i } = this.opts, o =
|
|
1732
|
-
return ss(e, { allKeys: !0 }, (h, k,
|
|
1733
|
-
if (
|
|
1741
|
+
const { schemaId: r, uriResolver: i } = this.opts, o = xe(e[r] || t), n = { "": o }, a = lo(i, o, !1), l = {}, d = /* @__PURE__ */ new Set();
|
|
1742
|
+
return ss(e, { allKeys: !0 }, (h, k, w, b) => {
|
|
1743
|
+
if (b === void 0)
|
|
1734
1744
|
return;
|
|
1735
|
-
const
|
|
1736
|
-
let g = n[
|
|
1737
|
-
typeof h[r] == "string" && (g = u.call(this, h[r])),
|
|
1745
|
+
const v = a + k;
|
|
1746
|
+
let g = n[b];
|
|
1747
|
+
typeof h[r] == "string" && (g = u.call(this, h[r])), $.call(this, h.$anchor), $.call(this, h.$dynamicAnchor), n[k] = g;
|
|
1738
1748
|
function u(C) {
|
|
1739
1749
|
const D = this.opts.uriResolver.resolve;
|
|
1740
|
-
if (C =
|
|
1750
|
+
if (C = xe(g ? D(g, C) : C), d.has(C))
|
|
1741
1751
|
throw f(C);
|
|
1742
1752
|
d.add(C);
|
|
1743
1753
|
let F = this.refs[C];
|
|
1744
|
-
return typeof F == "string" && (F = this.refs[F]), typeof F == "object" ? c(h, F.schema, C) : C !==
|
|
1754
|
+
return typeof F == "string" && (F = this.refs[F]), typeof F == "object" ? c(h, F.schema, C) : C !== xe(v) && (C[0] === "#" ? (c(h, l[C], C), l[C] = h) : this.refs[C] = v), C;
|
|
1745
1755
|
}
|
|
1746
|
-
function
|
|
1756
|
+
function $(C) {
|
|
1747
1757
|
if (typeof C == "string") {
|
|
1748
1758
|
if (!us.test(C))
|
|
1749
1759
|
throw new Error(`invalid anchor "${C}"`);
|
|
@@ -1751,9 +1761,9 @@ function fs(e, t) {
|
|
|
1751
1761
|
}
|
|
1752
1762
|
}
|
|
1753
1763
|
}), l;
|
|
1754
|
-
function c(h, k,
|
|
1764
|
+
function c(h, k, w) {
|
|
1755
1765
|
if (k !== void 0 && !ns(h, k))
|
|
1756
|
-
throw f(
|
|
1766
|
+
throw f(w);
|
|
1757
1767
|
}
|
|
1758
1768
|
function f(h) {
|
|
1759
1769
|
return new Error(`reference "${h}" resolves to more than one schema`);
|
|
@@ -1762,7 +1772,7 @@ function fs(e, t) {
|
|
|
1762
1772
|
K.getSchemaRefs = fs;
|
|
1763
1773
|
Object.defineProperty(oe, "__esModule", { value: !0 });
|
|
1764
1774
|
oe.getData = oe.KeywordCxt = oe.validateFunctionCode = void 0;
|
|
1765
|
-
const po =
|
|
1775
|
+
const po = Ae, yi = W, gr = de, St = W, hs = Pt, Xe = se, Jt = $e, j = E, I = Q, ms = K, ce = V, Ke = nt;
|
|
1766
1776
|
function gs(e) {
|
|
1767
1777
|
if (ho(e) && (mo(e), fo(e))) {
|
|
1768
1778
|
$s(e);
|
|
@@ -2090,7 +2100,7 @@ Me.default = Ns;
|
|
|
2090
2100
|
var Z = {};
|
|
2091
2101
|
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
2092
2102
|
Z.resolveSchema = Z.getCompilingSchema = Z.resolveRef = Z.compileSchema = Z.SchemaEnv = void 0;
|
|
2093
|
-
const te = E, zs = st,
|
|
2103
|
+
const te = E, zs = st, we = Q, ie = K, Si = V, Ms = oe;
|
|
2094
2104
|
class _t {
|
|
2095
2105
|
constructor(t) {
|
|
2096
2106
|
var r;
|
|
@@ -2115,10 +2125,10 @@ function br(e) {
|
|
|
2115
2125
|
const c = {
|
|
2116
2126
|
gen: a,
|
|
2117
2127
|
allErrors: this.opts.allErrors,
|
|
2118
|
-
data:
|
|
2119
|
-
parentData:
|
|
2120
|
-
parentDataProperty:
|
|
2121
|
-
dataNames: [
|
|
2128
|
+
data: we.default.data,
|
|
2129
|
+
parentData: we.default.parentData,
|
|
2130
|
+
parentDataProperty: we.default.parentDataProperty,
|
|
2131
|
+
dataNames: [we.default.data],
|
|
2122
2132
|
dataPathArr: [te.nil],
|
|
2123
2133
|
// TODO can its length be used as dataLevel if nil is removed?
|
|
2124
2134
|
dataLevel: 0,
|
|
@@ -2141,18 +2151,18 @@ function br(e) {
|
|
|
2141
2151
|
try {
|
|
2142
2152
|
this._compilations.add(e), (0, Ms.validateFunctionCode)(c), a.optimize(this.opts.code.optimize);
|
|
2143
2153
|
const h = a.toString();
|
|
2144
|
-
f = `${a.scopeRefs(
|
|
2145
|
-
const
|
|
2146
|
-
if (this.scope.value(d, { ref:
|
|
2147
|
-
const { props:
|
|
2148
|
-
|
|
2149
|
-
props:
|
|
2150
|
-
items:
|
|
2151
|
-
dynamicProps:
|
|
2152
|
-
dynamicItems:
|
|
2153
|
-
},
|
|
2154
|
-
}
|
|
2155
|
-
return e.validate =
|
|
2154
|
+
f = `${a.scopeRefs(we.default.scope)}return ${h}`, this.opts.code.process && (f = this.opts.code.process(f, e));
|
|
2155
|
+
const w = new Function(`${we.default.self}`, `${we.default.scope}`, f)(this, this.scope.get());
|
|
2156
|
+
if (this.scope.value(d, { ref: w }), w.errors = null, w.schema = e.schema, w.schemaEnv = e, e.$async && (w.$async = !0), this.opts.code.source === !0 && (w.source = { validateName: d, validateCode: h, scopeValues: a._values }), this.opts.unevaluated) {
|
|
2157
|
+
const { props: b, items: v } = c;
|
|
2158
|
+
w.evaluated = {
|
|
2159
|
+
props: b instanceof te.Name ? void 0 : b,
|
|
2160
|
+
items: v instanceof te.Name ? void 0 : v,
|
|
2161
|
+
dynamicProps: b instanceof te.Name,
|
|
2162
|
+
dynamicItems: v instanceof te.Name
|
|
2163
|
+
}, w.source && (w.source.evaluated = (0, te.stringify)(w.evaluated));
|
|
2164
|
+
}
|
|
2165
|
+
return e.validate = w, e;
|
|
2156
2166
|
} catch (h) {
|
|
2157
2167
|
throw delete e.validate, delete e.validateName, f && this.logger.error("Error compiling schema, function code:", f), h;
|
|
2158
2168
|
} finally {
|
|
@@ -2601,21 +2611,21 @@ const { normalizeIPv6: Pa, removeDotSegments: Ye, recomposeAuthority: _a, normal
|
|
|
2601
2611
|
function Ea(e, t) {
|
|
2602
2612
|
return typeof e == "string" ? e = /** @type {T} */
|
|
2603
2613
|
Ma(e, t) : typeof e == "object" && (e = /** @type {T} */
|
|
2604
|
-
|
|
2614
|
+
Ne(Ve(e, t), t)), e;
|
|
2605
2615
|
}
|
|
2606
2616
|
function xa(e, t, r) {
|
|
2607
|
-
const i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, o = Io(
|
|
2608
|
-
return i.skipEscape = !0,
|
|
2617
|
+
const i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, o = Io(Ne(e, i), Ne(t, i), i, !0);
|
|
2618
|
+
return i.skipEscape = !0, Ve(o, i);
|
|
2609
2619
|
}
|
|
2610
2620
|
function Io(e, t, r, i) {
|
|
2611
2621
|
const o = {};
|
|
2612
|
-
return i || (e =
|
|
2622
|
+
return i || (e = Ne(Ve(e, r), r), t = Ne(Ve(t, r), r)), r = r || {}, !r.tolerant && t.scheme ? (o.scheme = t.scheme, o.userinfo = t.userinfo, o.host = t.host, o.port = t.port, o.path = Ye(t.path || ""), o.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (o.userinfo = t.userinfo, o.host = t.host, o.port = t.port, o.path = Ye(t.path || ""), o.query = t.query) : (t.path ? (t.path[0] === "/" ? o.path = Ye(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? o.path = "/" + t.path : e.path ? o.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : o.path = t.path, o.path = Ye(o.path)), o.query = t.query) : (o.path = e.path, t.query !== void 0 ? o.query = t.query : o.query = e.query), o.userinfo = e.userinfo, o.host = e.host, o.port = e.port), o.scheme = e.scheme), o.fragment = t.fragment, o;
|
|
2613
2623
|
}
|
|
2614
2624
|
function Aa(e, t, r) {
|
|
2615
2625
|
const i = ki(e, r), o = ki(t, r);
|
|
2616
2626
|
return i !== void 0 && o !== void 0 && i.toLowerCase() === o.toLowerCase();
|
|
2617
2627
|
}
|
|
2618
|
-
function
|
|
2628
|
+
function Ve(e, t) {
|
|
2619
2629
|
const r = {
|
|
2620
2630
|
host: e.host,
|
|
2621
2631
|
scheme: e.scheme,
|
|
@@ -2688,7 +2698,7 @@ function Eo(e, t) {
|
|
|
2688
2698
|
i.error = i.error || "URI can not be parsed.";
|
|
2689
2699
|
return { parsed: i, malformedAuthorityOrPort: o };
|
|
2690
2700
|
}
|
|
2691
|
-
function
|
|
2701
|
+
function Ne(e, t) {
|
|
2692
2702
|
return Eo(e, t).parsed;
|
|
2693
2703
|
}
|
|
2694
2704
|
function Ma(e, t) {
|
|
@@ -2697,7 +2707,7 @@ function Ma(e, t) {
|
|
|
2697
2707
|
function xo(e, t) {
|
|
2698
2708
|
const { parsed: r, malformedAuthorityOrPort: i } = Eo(e, t);
|
|
2699
2709
|
return {
|
|
2700
|
-
normalized: i ? e :
|
|
2710
|
+
normalized: i ? e : Ve(r, t),
|
|
2701
2711
|
malformedAuthorityOrPort: i
|
|
2702
2712
|
};
|
|
2703
2713
|
}
|
|
@@ -2707,7 +2717,7 @@ function ki(e, t) {
|
|
|
2707
2717
|
return i ? void 0 : r;
|
|
2708
2718
|
}
|
|
2709
2719
|
if (typeof e == "object")
|
|
2710
|
-
return
|
|
2720
|
+
return Ve(e, t);
|
|
2711
2721
|
}
|
|
2712
2722
|
const wr = {
|
|
2713
2723
|
SCHEMES: Ia,
|
|
@@ -2715,8 +2725,8 @@ const wr = {
|
|
|
2715
2725
|
resolve: xa,
|
|
2716
2726
|
resolveComponent: Io,
|
|
2717
2727
|
equal: Aa,
|
|
2718
|
-
serialize:
|
|
2719
|
-
parse:
|
|
2728
|
+
serialize: Ve,
|
|
2729
|
+
parse: Ne
|
|
2720
2730
|
};
|
|
2721
2731
|
Dt.exports = wr;
|
|
2722
2732
|
Dt.exports.default = wr;
|
|
@@ -2746,9 +2756,9 @@ $r.default = Ao;
|
|
|
2746
2756
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
2747
2757
|
return r.CodeGen;
|
|
2748
2758
|
} });
|
|
2749
|
-
const i = st, o = Me, n =
|
|
2750
|
-
|
|
2751
|
-
const
|
|
2759
|
+
const i = st, o = Me, n = _e, a = Z, l = E, d = K, c = W, f = V, h = Xs, k = $r, w = (_, m) => new RegExp(_, m);
|
|
2760
|
+
w.code = "new RegExp";
|
|
2761
|
+
const b = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
|
|
2752
2762
|
"validate",
|
|
2753
2763
|
"serialize",
|
|
2754
2764
|
"parse",
|
|
@@ -2782,19 +2792,19 @@ $r.default = Ao;
|
|
|
2782
2792
|
ignoreKeywordsWithRef: "",
|
|
2783
2793
|
jsPropertySyntax: "",
|
|
2784
2794
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
2785
|
-
},
|
|
2795
|
+
}, $ = 200;
|
|
2786
2796
|
function C(_) {
|
|
2787
|
-
var m, O, y, s, p,
|
|
2788
|
-
const Ge = _.strict, Kt = (m = _.code) === null || m === void 0 ? void 0 : m.optimize, pi = Kt === !0 || Kt === void 0 ? 1 : Kt || 0, ui = (y = (O = _.code) === null || O === void 0 ? void 0 : O.regExp) !== null && y !== void 0 ? y :
|
|
2797
|
+
var m, O, y, s, p, S, R, T, z, N, U, Fe, Et, xt, At, Nt, zt, Mt, Lt, Bt, qt, Ht, Wt, Ut, Gt;
|
|
2798
|
+
const Ge = _.strict, Kt = (m = _.code) === null || m === void 0 ? void 0 : m.optimize, pi = Kt === !0 || Kt === void 0 ? 1 : Kt || 0, ui = (y = (O = _.code) === null || O === void 0 ? void 0 : O.regExp) !== null && y !== void 0 ? y : w, Jo = (s = _.uriResolver) !== null && s !== void 0 ? s : k.default;
|
|
2789
2799
|
return {
|
|
2790
|
-
strictSchema: (
|
|
2800
|
+
strictSchema: (S = (p = _.strictSchema) !== null && p !== void 0 ? p : Ge) !== null && S !== void 0 ? S : !0,
|
|
2791
2801
|
strictNumbers: (T = (R = _.strictNumbers) !== null && R !== void 0 ? R : Ge) !== null && T !== void 0 ? T : !0,
|
|
2792
2802
|
strictTypes: (N = (z = _.strictTypes) !== null && z !== void 0 ? z : Ge) !== null && N !== void 0 ? N : "log",
|
|
2793
|
-
strictTuples: (
|
|
2803
|
+
strictTuples: (Fe = (U = _.strictTuples) !== null && U !== void 0 ? U : Ge) !== null && Fe !== void 0 ? Fe : "log",
|
|
2794
2804
|
strictRequired: (xt = (Et = _.strictRequired) !== null && Et !== void 0 ? Et : Ge) !== null && xt !== void 0 ? xt : !1,
|
|
2795
2805
|
code: _.code ? { ..._.code, optimize: pi, regExp: ui } : { optimize: pi, regExp: ui },
|
|
2796
|
-
loopRequired: (At = _.loopRequired) !== null && At !== void 0 ? At :
|
|
2797
|
-
loopEnum: (Nt = _.loopEnum) !== null && Nt !== void 0 ? Nt :
|
|
2806
|
+
loopRequired: (At = _.loopRequired) !== null && At !== void 0 ? At : $,
|
|
2807
|
+
loopEnum: (Nt = _.loopEnum) !== null && Nt !== void 0 ? Nt : $,
|
|
2798
2808
|
meta: (zt = _.meta) !== null && zt !== void 0 ? zt : !0,
|
|
2799
2809
|
messages: (Mt = _.messages) !== null && Mt !== void 0 ? Mt : !0,
|
|
2800
2810
|
inlineRefs: (Lt = _.inlineRefs) !== null && Lt !== void 0 ? Lt : !0,
|
|
@@ -2811,9 +2821,9 @@ $r.default = Ao;
|
|
|
2811
2821
|
constructor(m = {}) {
|
|
2812
2822
|
this.schemas = {}, this.refs = {}, this.formats = /* @__PURE__ */ Object.create(null), this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), m = this.opts = { ...m, ...C(m) };
|
|
2813
2823
|
const { es5: O, lines: y } = this.opts.code;
|
|
2814
|
-
this.scope = new l.ValueScope({ scope: {}, prefixes:
|
|
2824
|
+
this.scope = new l.ValueScope({ scope: {}, prefixes: v, es5: O, lines: y }), this.logger = le(m.logger);
|
|
2815
2825
|
const s = m.validateFormats;
|
|
2816
|
-
m.validateFormats = !1, this.RULES = (0, n.getRules)(), F.call(this, g, m, "NOT SUPPORTED"), F.call(this, u, m, "DEPRECATED", "warn"), this._metaOpts =
|
|
2826
|
+
m.validateFormats = !1, this.RULES = (0, n.getRules)(), F.call(this, g, m, "NOT SUPPORTED"), F.call(this, u, m, "DEPRECATED", "warn"), this._metaOpts = Se.call(this), m.formats && ae.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), m.keywords && fe.call(this, m.keywords), typeof m.meta == "object" && this.addMetaSchema(m.meta), H.call(this), m.validateFormats = s;
|
|
2817
2827
|
}
|
|
2818
2828
|
_addVocabularies() {
|
|
2819
2829
|
this.addKeyword("$async");
|
|
@@ -2848,19 +2858,19 @@ $r.default = Ao;
|
|
|
2848
2858
|
return s.call(this, m, O);
|
|
2849
2859
|
async function s(N, U) {
|
|
2850
2860
|
await p.call(this, N.$schema);
|
|
2851
|
-
const
|
|
2852
|
-
return
|
|
2861
|
+
const Fe = this._addSchema(N, U);
|
|
2862
|
+
return Fe.validate || S.call(this, Fe);
|
|
2853
2863
|
}
|
|
2854
2864
|
async function p(N) {
|
|
2855
2865
|
N && !this.getSchema(N) && await s.call(this, { $ref: N }, !0);
|
|
2856
2866
|
}
|
|
2857
|
-
async function
|
|
2867
|
+
async function S(N) {
|
|
2858
2868
|
try {
|
|
2859
2869
|
return this._compileSchemaEnv(N);
|
|
2860
2870
|
} catch (U) {
|
|
2861
2871
|
if (!(U instanceof o.default))
|
|
2862
2872
|
throw U;
|
|
2863
|
-
return R.call(this, U), await T.call(this, U.missingSchema),
|
|
2873
|
+
return R.call(this, U), await T.call(this, U.missingSchema), S.call(this, N);
|
|
2864
2874
|
}
|
|
2865
2875
|
}
|
|
2866
2876
|
function R({ missingSchema: N, missingRef: U }) {
|
|
@@ -2885,15 +2895,15 @@ $r.default = Ao;
|
|
|
2885
2895
|
// Adds schema to the instance
|
|
2886
2896
|
addSchema(m, O, y, s = this.opts.validateSchema) {
|
|
2887
2897
|
if (Array.isArray(m)) {
|
|
2888
|
-
for (const
|
|
2889
|
-
this.addSchema(
|
|
2898
|
+
for (const S of m)
|
|
2899
|
+
this.addSchema(S, void 0, y, s);
|
|
2890
2900
|
return this;
|
|
2891
2901
|
}
|
|
2892
2902
|
let p;
|
|
2893
2903
|
if (typeof m == "object") {
|
|
2894
|
-
const { schemaId:
|
|
2895
|
-
if (p = m[
|
|
2896
|
-
throw new Error(`schema ${
|
|
2904
|
+
const { schemaId: S } = this.opts;
|
|
2905
|
+
if (p = m[S], p !== void 0 && typeof p != "string")
|
|
2906
|
+
throw new Error(`schema ${S} must be string`);
|
|
2897
2907
|
}
|
|
2898
2908
|
return O = (0, d.normalizeId)(O || p), this._checkUnique(O), this.schemas[O] = this._addSchema(m, y, O, s, !0), this;
|
|
2899
2909
|
}
|
|
@@ -2982,7 +2992,7 @@ $r.default = Ao;
|
|
|
2982
2992
|
type: (0, c.getJSONTypes)(O.type),
|
|
2983
2993
|
schemaType: (0, c.getJSONTypes)(O.schemaType)
|
|
2984
2994
|
};
|
|
2985
|
-
return (0, f.eachItem)(y, s.type.length === 0 ? (p) => Ue.call(this, p, s) : (p) => s.type.forEach((
|
|
2995
|
+
return (0, f.eachItem)(y, s.type.length === 0 ? (p) => Ue.call(this, p, s) : (p) => s.type.forEach((S) => Ue.call(this, p, s, S))), this;
|
|
2986
2996
|
}
|
|
2987
2997
|
getKeyword(m) {
|
|
2988
2998
|
const O = this.RULES.all[m];
|
|
@@ -3010,15 +3020,15 @@ $r.default = Ao;
|
|
|
3010
3020
|
m = JSON.parse(JSON.stringify(m));
|
|
3011
3021
|
for (const s of O) {
|
|
3012
3022
|
const p = s.split("/").slice(1);
|
|
3013
|
-
let
|
|
3023
|
+
let S = m;
|
|
3014
3024
|
for (const R of p)
|
|
3015
|
-
|
|
3025
|
+
S = S[R];
|
|
3016
3026
|
for (const R in y) {
|
|
3017
3027
|
const T = y[R];
|
|
3018
3028
|
if (typeof T != "object")
|
|
3019
3029
|
continue;
|
|
3020
|
-
const { $data: z } = T.definition, N =
|
|
3021
|
-
z && N && (
|
|
3030
|
+
const { $data: z } = T.definition, N = S[R];
|
|
3031
|
+
z && N && (S[R] = dt(N));
|
|
3022
3032
|
}
|
|
3023
3033
|
}
|
|
3024
3034
|
return m;
|
|
@@ -3030,10 +3040,10 @@ $r.default = Ao;
|
|
|
3030
3040
|
}
|
|
3031
3041
|
}
|
|
3032
3042
|
_addSchema(m, O, y, s = this.opts.validateSchema, p = this.opts.addUsedSchema) {
|
|
3033
|
-
let
|
|
3043
|
+
let S;
|
|
3034
3044
|
const { schemaId: R } = this.opts;
|
|
3035
3045
|
if (typeof m == "object")
|
|
3036
|
-
|
|
3046
|
+
S = m[R];
|
|
3037
3047
|
else {
|
|
3038
3048
|
if (this.opts.jtd)
|
|
3039
3049
|
throw new Error("schema must be object");
|
|
@@ -3043,7 +3053,7 @@ $r.default = Ao;
|
|
|
3043
3053
|
let T = this._cache.get(m);
|
|
3044
3054
|
if (T !== void 0)
|
|
3045
3055
|
return T;
|
|
3046
|
-
y = (0, d.normalizeId)(
|
|
3056
|
+
y = (0, d.normalizeId)(S || y);
|
|
3047
3057
|
const z = d.getSchemaRefs.call(this, m, y);
|
|
3048
3058
|
return T = new a.SchemaEnv({ schema: m, schemaId: R, meta: O, baseId: y, localRefs: z }), this._cache.set(T.schema, T), p && !y.startsWith("#") && (y && this._checkUnique(y), this.refs[y] = T), s && this.validateSchema(m, !0), T;
|
|
3049
3059
|
}
|
|
@@ -3102,9 +3112,9 @@ $r.default = Ao;
|
|
|
3102
3112
|
O.keyword || (O.keyword = m), this.addKeyword(O);
|
|
3103
3113
|
}
|
|
3104
3114
|
}
|
|
3105
|
-
function
|
|
3115
|
+
function Se() {
|
|
3106
3116
|
const _ = { ...this.opts };
|
|
3107
|
-
for (const m of
|
|
3117
|
+
for (const m of b)
|
|
3108
3118
|
delete _[m];
|
|
3109
3119
|
return _;
|
|
3110
3120
|
}
|
|
@@ -3121,13 +3131,13 @@ $r.default = Ao;
|
|
|
3121
3131
|
return _;
|
|
3122
3132
|
throw new Error("logger must implement log, warn and error methods");
|
|
3123
3133
|
}
|
|
3124
|
-
const
|
|
3134
|
+
const De = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
3125
3135
|
function he(_, m) {
|
|
3126
3136
|
const { RULES: O } = this;
|
|
3127
3137
|
if ((0, f.eachItem)(_, (y) => {
|
|
3128
3138
|
if (O.keywords[y])
|
|
3129
3139
|
throw new Error(`Keyword ${y} is already defined`);
|
|
3130
|
-
if (!
|
|
3140
|
+
if (!De.test(y))
|
|
3131
3141
|
throw new Error(`Keyword ${y} has invalid name`);
|
|
3132
3142
|
}), !!m && m.$data && !("code" in m || "validate" in m))
|
|
3133
3143
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
@@ -3138,8 +3148,8 @@ $r.default = Ao;
|
|
|
3138
3148
|
if (O && s)
|
|
3139
3149
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
3140
3150
|
const { RULES: p } = this;
|
|
3141
|
-
let
|
|
3142
|
-
if (
|
|
3151
|
+
let S = s ? p.post : p.rules.find(({ type: T }) => T === O);
|
|
3152
|
+
if (S || (S = { type: O, rules: [] }, p.rules.push(S)), p.keywords[_] = !0, !m)
|
|
3143
3153
|
return;
|
|
3144
3154
|
const R = {
|
|
3145
3155
|
keyword: _,
|
|
@@ -3149,7 +3159,7 @@ $r.default = Ao;
|
|
|
3149
3159
|
schemaType: (0, c.getJSONTypes)(m.schemaType)
|
|
3150
3160
|
}
|
|
3151
3161
|
};
|
|
3152
|
-
m.before ? lt.call(this,
|
|
3162
|
+
m.before ? lt.call(this, S, R, m.before) : S.rules.push(R), p.all[_] = R, (y = m.implements) === null || y === void 0 || y.forEach((T) => this.addKeyword(T));
|
|
3153
3163
|
}
|
|
3154
3164
|
function lt(_, m, O) {
|
|
3155
3165
|
const y = _.rules.findIndex((s) => s.keyword === O);
|
|
@@ -3178,7 +3188,7 @@ Cr.default = Ba;
|
|
|
3178
3188
|
var ue = {};
|
|
3179
3189
|
Object.defineProperty(ue, "__esModule", { value: !0 });
|
|
3180
3190
|
ue.callRef = ue.getValidate = void 0;
|
|
3181
|
-
const qa = Me, Oi = A, X = E,
|
|
3191
|
+
const qa = Me, Oi = A, X = E, Re = Q, Ci = Z, ct = V, Ha = {
|
|
3182
3192
|
keyword: "$ref",
|
|
3183
3193
|
schemaType: "string",
|
|
3184
3194
|
code(e) {
|
|
@@ -3190,23 +3200,23 @@ const qa = Me, Oi = A, X = E, je = Q, Ci = Z, ct = V, Ha = {
|
|
|
3190
3200
|
throw new qa.default(i.opts.uriResolver, o, r);
|
|
3191
3201
|
if (f instanceof Ci.SchemaEnv)
|
|
3192
3202
|
return k(f);
|
|
3193
|
-
return
|
|
3203
|
+
return w(f);
|
|
3194
3204
|
function h() {
|
|
3195
3205
|
if (n === c)
|
|
3196
3206
|
return yt(e, a, n, n.$async);
|
|
3197
|
-
const
|
|
3198
|
-
return yt(e, (0, X._)`${
|
|
3207
|
+
const b = t.scopeValue("root", { ref: c });
|
|
3208
|
+
return yt(e, (0, X._)`${b}.validate`, c, c.$async);
|
|
3199
3209
|
}
|
|
3200
|
-
function k(
|
|
3201
|
-
const
|
|
3202
|
-
yt(e,
|
|
3210
|
+
function k(b) {
|
|
3211
|
+
const v = No(e, b);
|
|
3212
|
+
yt(e, v, b, b.$async);
|
|
3203
3213
|
}
|
|
3204
|
-
function
|
|
3205
|
-
const
|
|
3206
|
-
schema:
|
|
3214
|
+
function w(b) {
|
|
3215
|
+
const v = t.scopeValue("schema", l.code.source === !0 ? { ref: b, code: (0, X.stringify)(b) } : { ref: b }), g = t.name("valid"), u = e.subschema({
|
|
3216
|
+
schema: b,
|
|
3207
3217
|
dataTypes: [],
|
|
3208
3218
|
schemaPath: X.nil,
|
|
3209
|
-
topSchemaRef:
|
|
3219
|
+
topSchemaRef: v,
|
|
3210
3220
|
errSchemaPath: r
|
|
3211
3221
|
}, g);
|
|
3212
3222
|
e.mergeEvaluated(u), e.ok(g);
|
|
@@ -3219,42 +3229,42 @@ function No(e, t) {
|
|
|
3219
3229
|
}
|
|
3220
3230
|
ue.getValidate = No;
|
|
3221
3231
|
function yt(e, t, r, i) {
|
|
3222
|
-
const { gen: o, it: n } = e, { allErrors: a, schemaEnv: l, opts: d } = n, c = d.passContext ?
|
|
3232
|
+
const { gen: o, it: n } = e, { allErrors: a, schemaEnv: l, opts: d } = n, c = d.passContext ? Re.default.this : X.nil;
|
|
3223
3233
|
i ? f() : h();
|
|
3224
3234
|
function f() {
|
|
3225
3235
|
if (!l.$async)
|
|
3226
3236
|
throw new Error("async schema referenced by sync schema");
|
|
3227
|
-
const
|
|
3237
|
+
const b = o.let("valid");
|
|
3228
3238
|
o.try(() => {
|
|
3229
|
-
o.code((0, X._)`await ${(0, Oi.callValidateCode)(e, t, c)}`),
|
|
3230
|
-
}, (
|
|
3231
|
-
o.if((0, X._)`!(${
|
|
3232
|
-
}), e.ok(
|
|
3239
|
+
o.code((0, X._)`await ${(0, Oi.callValidateCode)(e, t, c)}`), w(t), a || o.assign(b, !0);
|
|
3240
|
+
}, (v) => {
|
|
3241
|
+
o.if((0, X._)`!(${v} instanceof ${n.ValidationError})`, () => o.throw(v)), k(v), a || o.assign(b, !1);
|
|
3242
|
+
}), e.ok(b);
|
|
3233
3243
|
}
|
|
3234
3244
|
function h() {
|
|
3235
|
-
e.result((0, Oi.callValidateCode)(e, t, c), () =>
|
|
3245
|
+
e.result((0, Oi.callValidateCode)(e, t, c), () => w(t), () => k(t));
|
|
3236
3246
|
}
|
|
3237
|
-
function k(
|
|
3238
|
-
const
|
|
3239
|
-
o.assign(
|
|
3247
|
+
function k(b) {
|
|
3248
|
+
const v = (0, X._)`${b}.errors`;
|
|
3249
|
+
o.assign(Re.default.vErrors, (0, X._)`${Re.default.vErrors} === null ? ${v} : ${Re.default.vErrors}.concat(${v})`), o.assign(Re.default.errors, (0, X._)`${Re.default.vErrors}.length`);
|
|
3240
3250
|
}
|
|
3241
|
-
function
|
|
3242
|
-
var
|
|
3251
|
+
function w(b) {
|
|
3252
|
+
var v;
|
|
3243
3253
|
if (!n.opts.unevaluated)
|
|
3244
3254
|
return;
|
|
3245
|
-
const g = (
|
|
3255
|
+
const g = (v = r == null ? void 0 : r.validate) === null || v === void 0 ? void 0 : v.evaluated;
|
|
3246
3256
|
if (n.props !== !0)
|
|
3247
3257
|
if (g && !g.dynamicProps)
|
|
3248
3258
|
g.props !== void 0 && (n.props = ct.mergeEvaluated.props(o, g.props, n.props));
|
|
3249
3259
|
else {
|
|
3250
|
-
const u = o.var("props", (0, X._)`${
|
|
3260
|
+
const u = o.var("props", (0, X._)`${b}.evaluated.props`);
|
|
3251
3261
|
n.props = ct.mergeEvaluated.props(o, u, n.props, X.Name);
|
|
3252
3262
|
}
|
|
3253
3263
|
if (n.items !== !0)
|
|
3254
3264
|
if (g && !g.dynamicItems)
|
|
3255
3265
|
g.items !== void 0 && (n.items = ct.mergeEvaluated.items(o, g.items, n.items));
|
|
3256
3266
|
else {
|
|
3257
|
-
const u = o.var("items", (0, X._)`${
|
|
3267
|
+
const u = o.var("items", (0, X._)`${b}.evaluated.items`);
|
|
3258
3268
|
n.items = ct.mergeEvaluated.items(o, u, n.items, X.Name);
|
|
3259
3269
|
}
|
|
3260
3270
|
}
|
|
@@ -3324,12 +3334,12 @@ function zo(e) {
|
|
|
3324
3334
|
Fr.default = zo;
|
|
3325
3335
|
zo.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
3326
3336
|
Object.defineProperty(Dr, "__esModule", { value: !0 });
|
|
3327
|
-
const
|
|
3337
|
+
const Oe = E, Xa = V, Qa = Fr, el = {
|
|
3328
3338
|
message({ keyword: e, schemaCode: t }) {
|
|
3329
3339
|
const r = e === "maxLength" ? "more" : "fewer";
|
|
3330
|
-
return (0,
|
|
3340
|
+
return (0, Oe.str)`must NOT have ${r} than ${t} characters`;
|
|
3331
3341
|
},
|
|
3332
|
-
params: ({ schemaCode: e }) => (0,
|
|
3342
|
+
params: ({ schemaCode: e }) => (0, Oe._)`{limit: ${e}}`
|
|
3333
3343
|
}, tl = {
|
|
3334
3344
|
keyword: ["maxLength", "minLength"],
|
|
3335
3345
|
type: "string",
|
|
@@ -3337,16 +3347,16 @@ const ke = E, Xa = V, Qa = Fr, el = {
|
|
|
3337
3347
|
$data: !0,
|
|
3338
3348
|
error: el,
|
|
3339
3349
|
code(e) {
|
|
3340
|
-
const { keyword: t, data: r, schemaCode: i, it: o } = e, n = t === "maxLength" ?
|
|
3341
|
-
e.fail$data((0,
|
|
3350
|
+
const { keyword: t, data: r, schemaCode: i, it: o } = e, n = t === "maxLength" ? Oe.operators.GT : Oe.operators.LT, a = o.opts.unicode === !1 ? (0, Oe._)`${r}.length` : (0, Oe._)`${(0, Xa.useFunc)(e.gen, Qa.default)}(${r})`;
|
|
3351
|
+
e.fail$data((0, Oe._)`${a} ${n} ${i}`);
|
|
3342
3352
|
}
|
|
3343
3353
|
};
|
|
3344
3354
|
Dr.default = tl;
|
|
3345
3355
|
var jr = {};
|
|
3346
3356
|
Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
3347
|
-
const rl = A, il = V,
|
|
3348
|
-
message: ({ schemaCode: e }) => (0,
|
|
3349
|
-
params: ({ schemaCode: e }) => (0,
|
|
3357
|
+
const rl = A, il = V, Ie = E, ol = {
|
|
3358
|
+
message: ({ schemaCode: e }) => (0, Ie.str)`must match pattern "${e}"`,
|
|
3359
|
+
params: ({ schemaCode: e }) => (0, Ie._)`{pattern: ${e}}`
|
|
3350
3360
|
}, nl = {
|
|
3351
3361
|
keyword: "pattern",
|
|
3352
3362
|
type: "string",
|
|
@@ -3356,11 +3366,11 @@ const rl = A, il = V, Te = E, ol = {
|
|
|
3356
3366
|
code(e) {
|
|
3357
3367
|
const { gen: t, data: r, $data: i, schema: o, schemaCode: n, it: a } = e, l = a.opts.unicodeRegExp ? "u" : "";
|
|
3358
3368
|
if (i) {
|
|
3359
|
-
const { regExp: d } = a.opts.code, c = d.code === "new RegExp" ? (0,
|
|
3360
|
-
t.try(() => t.assign(f, (0,
|
|
3369
|
+
const { regExp: d } = a.opts.code, c = d.code === "new RegExp" ? (0, Ie._)`new RegExp` : (0, il.useFunc)(t, d), f = t.let("valid");
|
|
3370
|
+
t.try(() => t.assign(f, (0, Ie._)`${c}(${n}, ${l}).test(${r})`), () => t.assign(f, !1)), e.fail$data((0, Ie._)`!${f}`);
|
|
3361
3371
|
} else {
|
|
3362
3372
|
const d = (0, rl.usePattern)(e, o);
|
|
3363
|
-
e.fail$data((0,
|
|
3373
|
+
e.fail$data((0, Ie._)`!${d}.test(${r})`);
|
|
3364
3374
|
}
|
|
3365
3375
|
}
|
|
3366
3376
|
};
|
|
@@ -3402,10 +3412,10 @@ const Je = A, tt = E, ll = V, dl = {
|
|
|
3402
3412
|
return;
|
|
3403
3413
|
const d = r.length >= l.loopRequired;
|
|
3404
3414
|
if (a.allErrors ? c() : f(), l.strictRequired) {
|
|
3405
|
-
const
|
|
3406
|
-
for (const
|
|
3407
|
-
if ((
|
|
3408
|
-
const g = a.schemaEnv.baseId + a.errSchemaPath, u = `required property "${
|
|
3415
|
+
const w = e.parentSchema.properties, { definedProperties: b } = e.it;
|
|
3416
|
+
for (const v of r)
|
|
3417
|
+
if ((w == null ? void 0 : w[v]) === void 0 && !b.has(v)) {
|
|
3418
|
+
const g = a.schemaEnv.baseId + a.errSchemaPath, u = `required property "${v}" is not defined at "${g}" (strictRequired)`;
|
|
3409
3419
|
(0, ll.checkStrictMode)(a, u, a.opts.strictRequired);
|
|
3410
3420
|
}
|
|
3411
3421
|
}
|
|
@@ -3413,25 +3423,25 @@ const Je = A, tt = E, ll = V, dl = {
|
|
|
3413
3423
|
if (d || n)
|
|
3414
3424
|
e.block$data(tt.nil, h);
|
|
3415
3425
|
else
|
|
3416
|
-
for (const
|
|
3417
|
-
(0, Je.checkReportMissingProp)(e,
|
|
3426
|
+
for (const w of r)
|
|
3427
|
+
(0, Je.checkReportMissingProp)(e, w);
|
|
3418
3428
|
}
|
|
3419
3429
|
function f() {
|
|
3420
|
-
const
|
|
3430
|
+
const w = t.let("missing");
|
|
3421
3431
|
if (d || n) {
|
|
3422
|
-
const
|
|
3423
|
-
e.block$data(
|
|
3432
|
+
const b = t.let("valid", !0);
|
|
3433
|
+
e.block$data(b, () => k(w, b)), e.ok(b);
|
|
3424
3434
|
} else
|
|
3425
|
-
t.if((0, Je.checkMissingProp)(e, r,
|
|
3435
|
+
t.if((0, Je.checkMissingProp)(e, r, w)), (0, Je.reportMissingProp)(e, w), t.else();
|
|
3426
3436
|
}
|
|
3427
3437
|
function h() {
|
|
3428
|
-
t.forOf("prop", i, (
|
|
3429
|
-
e.setParams({ missingProperty:
|
|
3438
|
+
t.forOf("prop", i, (w) => {
|
|
3439
|
+
e.setParams({ missingProperty: w }), t.if((0, Je.noPropertyInData)(t, o, w, l.ownProperties), () => e.error());
|
|
3430
3440
|
});
|
|
3431
3441
|
}
|
|
3432
|
-
function k(
|
|
3433
|
-
e.setParams({ missingProperty:
|
|
3434
|
-
t.assign(
|
|
3442
|
+
function k(w, b) {
|
|
3443
|
+
e.setParams({ missingProperty: w }), t.forOf(w, i, () => {
|
|
3444
|
+
t.assign(b, (0, Je.propertyInData)(t, o, w, l.ownProperties)), t.if((0, tt.not)(b), () => {
|
|
3435
3445
|
e.error(), t.break();
|
|
3436
3446
|
});
|
|
3437
3447
|
}, tt.nil);
|
|
@@ -3481,23 +3491,23 @@ const Xt = W, G = E, fl = V, hl = at, ml = {
|
|
|
3481
3491
|
const d = t.let("valid"), c = n.items ? (0, Xt.getSchemaTypes)(n.items) : [];
|
|
3482
3492
|
e.block$data(d, f, (0, G._)`${a} === false`), e.ok(d);
|
|
3483
3493
|
function f() {
|
|
3484
|
-
const
|
|
3485
|
-
e.setParams({ i:
|
|
3494
|
+
const b = t.let("i", (0, G._)`${r}.length`), v = t.let("j");
|
|
3495
|
+
e.setParams({ i: b, j: v }), t.assign(d, !0), t.if((0, G._)`${b} > 1`, () => (h() ? k : w)(b, v));
|
|
3486
3496
|
}
|
|
3487
3497
|
function h() {
|
|
3488
|
-
return c.length > 0 && !c.some((
|
|
3489
|
-
}
|
|
3490
|
-
function k(
|
|
3491
|
-
const g = t.name("item"), u = (0, Xt.checkDataTypes)(c, g, l.opts.strictNumbers, Xt.DataType.Wrong),
|
|
3492
|
-
t.for((0, G._)`;${
|
|
3493
|
-
t.let(g, (0, G._)`${r}[${
|
|
3494
|
-
t.assign(
|
|
3495
|
-
}).code((0, G._)`${
|
|
3498
|
+
return c.length > 0 && !c.some((b) => b === "object" || b === "array");
|
|
3499
|
+
}
|
|
3500
|
+
function k(b, v) {
|
|
3501
|
+
const g = t.name("item"), u = (0, Xt.checkDataTypes)(c, g, l.opts.strictNumbers, Xt.DataType.Wrong), $ = t.const("indices", (0, G._)`{}`);
|
|
3502
|
+
t.for((0, G._)`;${b}--;`, () => {
|
|
3503
|
+
t.let(g, (0, G._)`${r}[${b}]`), t.if(u, (0, G._)`continue`), c.length > 1 && t.if((0, G._)`typeof ${g} == "string"`, (0, G._)`${g} += "_"`), t.if((0, G._)`typeof ${$}[${g}] == "number"`, () => {
|
|
3504
|
+
t.assign(v, (0, G._)`${$}[${g}]`), e.error(), t.assign(d, !1).break();
|
|
3505
|
+
}).code((0, G._)`${$}[${g}] = ${b}`);
|
|
3496
3506
|
});
|
|
3497
3507
|
}
|
|
3498
|
-
function
|
|
3508
|
+
function w(b, v) {
|
|
3499
3509
|
const g = (0, fl.useFunc)(t, hl.default), u = t.name("outer");
|
|
3500
|
-
t.label(u).for((0, G._)`;${
|
|
3510
|
+
t.label(u).for((0, G._)`;${b}--;`, () => t.for((0, G._)`${v} = ${b}; ${v}--;`, () => t.if((0, G._)`${g}(${r}[${b}], ${r}[${v}])`, () => {
|
|
3501
3511
|
e.error(), t.assign(d, !1).break(u);
|
|
3502
3512
|
})));
|
|
3503
3513
|
}
|
|
@@ -3542,16 +3552,16 @@ const Ze = E, Sl = V, wl = at, kl = {
|
|
|
3542
3552
|
else {
|
|
3543
3553
|
if (!Array.isArray(o))
|
|
3544
3554
|
throw new Error("ajv implementation error");
|
|
3545
|
-
const
|
|
3546
|
-
f = (0, Ze.or)(...o.map((
|
|
3555
|
+
const w = t.const("vSchema", n);
|
|
3556
|
+
f = (0, Ze.or)(...o.map((b, v) => k(w, v)));
|
|
3547
3557
|
}
|
|
3548
3558
|
e.pass(f);
|
|
3549
3559
|
function h() {
|
|
3550
|
-
t.assign(f, !1), t.forOf("v", n, (
|
|
3560
|
+
t.assign(f, !1), t.forOf("v", n, (w) => t.if((0, Ze._)`${c()}(${r}, ${w})`, () => t.assign(f, !0).break()));
|
|
3551
3561
|
}
|
|
3552
|
-
function k(
|
|
3553
|
-
const
|
|
3554
|
-
return typeof
|
|
3562
|
+
function k(w, b) {
|
|
3563
|
+
const v = o[b];
|
|
3564
|
+
return typeof v == "object" && v !== null ? (0, Ze._)`${c()}(${r}, ${w}[${b}])` : (0, Ze._)`${r} === ${v}`;
|
|
3555
3565
|
}
|
|
3556
3566
|
}
|
|
3557
3567
|
};
|
|
@@ -3580,9 +3590,9 @@ Pr.default = El;
|
|
|
3580
3590
|
var Nr = {}, Le = {};
|
|
3581
3591
|
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
3582
3592
|
Le.validateAdditionalItems = void 0;
|
|
3583
|
-
const
|
|
3584
|
-
message: ({ params: { len: e } }) => (0,
|
|
3585
|
-
params: ({ params: { len: e } }) => (0,
|
|
3593
|
+
const Ce = E, ar = V, xl = {
|
|
3594
|
+
message: ({ params: { len: e } }) => (0, Ce.str)`must NOT have more than ${e} items`,
|
|
3595
|
+
params: ({ params: { len: e } }) => (0, Ce._)`{limit: ${e}}`
|
|
3586
3596
|
}, Al = {
|
|
3587
3597
|
keyword: "additionalItems",
|
|
3588
3598
|
type: "array",
|
|
@@ -3601,16 +3611,16 @@ const Oe = E, ar = V, xl = {
|
|
|
3601
3611
|
function Lo(e, t) {
|
|
3602
3612
|
const { gen: r, schema: i, data: o, keyword: n, it: a } = e;
|
|
3603
3613
|
a.items = !0;
|
|
3604
|
-
const l = r.const("len", (0,
|
|
3614
|
+
const l = r.const("len", (0, Ce._)`${o}.length`);
|
|
3605
3615
|
if (i === !1)
|
|
3606
|
-
e.setParams({ len: t.length }), e.pass((0,
|
|
3616
|
+
e.setParams({ len: t.length }), e.pass((0, Ce._)`${l} <= ${t.length}`);
|
|
3607
3617
|
else if (typeof i == "object" && !(0, ar.alwaysValidSchema)(a, i)) {
|
|
3608
|
-
const c = r.var("valid", (0,
|
|
3609
|
-
r.if((0,
|
|
3618
|
+
const c = r.var("valid", (0, Ce._)`${l} <= ${t.length}`);
|
|
3619
|
+
r.if((0, Ce.not)(c), () => d(c)), e.ok(c);
|
|
3610
3620
|
}
|
|
3611
3621
|
function d(c) {
|
|
3612
3622
|
r.forRange("i", t.length, l, (f) => {
|
|
3613
|
-
e.subschema({ keyword: n, dataProp: f, dataPropType: ar.Type.Num }, c), a.allErrors || r.if((0,
|
|
3623
|
+
e.subschema({ keyword: n, dataProp: f, dataPropType: ar.Type.Num }, c), a.allErrors || r.if((0, Ce.not)(c), () => r.break());
|
|
3614
3624
|
});
|
|
3615
3625
|
}
|
|
3616
3626
|
}
|
|
@@ -3643,9 +3653,9 @@ function Bo(e, t, r = e.schema) {
|
|
|
3643
3653
|
}, d)), e.ok(d));
|
|
3644
3654
|
});
|
|
3645
3655
|
function f(h) {
|
|
3646
|
-
const { opts: k, errSchemaPath:
|
|
3647
|
-
if (k.strictTuples && !
|
|
3648
|
-
const g = `"${a}" is ${
|
|
3656
|
+
const { opts: k, errSchemaPath: w } = l, b = r.length, v = b === h.minItems && (b === h.maxItems || h[t] === !1);
|
|
3657
|
+
if (k.strictTuples && !v) {
|
|
3658
|
+
const g = `"${a}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${w}"`;
|
|
3649
3659
|
(0, bt.checkStrictMode)(l, g, k.strictTuples);
|
|
3650
3660
|
}
|
|
3651
3661
|
}
|
|
@@ -3705,29 +3715,29 @@ const ee = E, pt = V, Gl = {
|
|
|
3705
3715
|
return;
|
|
3706
3716
|
}
|
|
3707
3717
|
if ((0, pt.alwaysValidSchema)(n, r)) {
|
|
3708
|
-
let
|
|
3709
|
-
l !== void 0 && (
|
|
3718
|
+
let v = (0, ee._)`${f} >= ${a}`;
|
|
3719
|
+
l !== void 0 && (v = (0, ee._)`${v} && ${f} <= ${l}`), e.pass(v);
|
|
3710
3720
|
return;
|
|
3711
3721
|
}
|
|
3712
3722
|
n.items = !0;
|
|
3713
3723
|
const h = t.name("valid");
|
|
3714
|
-
l === void 0 && a === 1 ?
|
|
3724
|
+
l === void 0 && a === 1 ? w(h, () => t.if(h, () => t.break())) : a === 0 ? (t.let(h, !0), l !== void 0 && t.if((0, ee._)`${o}.length > 0`, k)) : (t.let(h, !1), k()), e.result(h, () => e.reset());
|
|
3715
3725
|
function k() {
|
|
3716
|
-
const
|
|
3717
|
-
|
|
3726
|
+
const v = t.name("_valid"), g = t.let("count", 0);
|
|
3727
|
+
w(v, () => t.if(v, () => b(g)));
|
|
3718
3728
|
}
|
|
3719
|
-
function
|
|
3729
|
+
function w(v, g) {
|
|
3720
3730
|
t.forRange("i", 0, f, (u) => {
|
|
3721
3731
|
e.subschema({
|
|
3722
3732
|
keyword: "contains",
|
|
3723
3733
|
dataProp: u,
|
|
3724
3734
|
dataPropType: pt.Type.Num,
|
|
3725
3735
|
compositeRule: !0
|
|
3726
|
-
},
|
|
3736
|
+
}, v), g();
|
|
3727
3737
|
});
|
|
3728
3738
|
}
|
|
3729
|
-
function
|
|
3730
|
-
t.code((0, ee._)`${
|
|
3739
|
+
function b(v) {
|
|
3740
|
+
t.code((0, ee._)`${v}++`), l === void 0 ? t.if((0, ee._)`${v} >= ${a}`, () => t.assign(h, !0).break()) : (t.if((0, ee._)`${v} > ${l}`, () => t.assign(h, !1).break()), a === 1 ? t.assign(h, !0) : t.if((0, ee._)`${v} >= ${a}`, () => t.assign(h, !0)));
|
|
3731
3741
|
}
|
|
3732
3742
|
}
|
|
3733
3743
|
};
|
|
@@ -3771,35 +3781,35 @@ var Ft = {};
|
|
|
3771
3781
|
const { gen: f, data: h, it: k } = d;
|
|
3772
3782
|
if (Object.keys(c).length === 0)
|
|
3773
3783
|
return;
|
|
3774
|
-
const
|
|
3775
|
-
for (const
|
|
3776
|
-
const
|
|
3777
|
-
if (
|
|
3784
|
+
const w = f.let("missing");
|
|
3785
|
+
for (const b in c) {
|
|
3786
|
+
const v = c[b];
|
|
3787
|
+
if (v.length === 0)
|
|
3778
3788
|
continue;
|
|
3779
|
-
const g = (0, i.propertyInData)(f, h,
|
|
3789
|
+
const g = (0, i.propertyInData)(f, h, b, k.opts.ownProperties);
|
|
3780
3790
|
d.setParams({
|
|
3781
|
-
property:
|
|
3782
|
-
depsCount:
|
|
3783
|
-
deps:
|
|
3791
|
+
property: b,
|
|
3792
|
+
depsCount: v.length,
|
|
3793
|
+
deps: v.join(", ")
|
|
3784
3794
|
}), k.allErrors ? f.if(g, () => {
|
|
3785
|
-
for (const u of
|
|
3795
|
+
for (const u of v)
|
|
3786
3796
|
(0, i.checkReportMissingProp)(d, u);
|
|
3787
|
-
}) : (f.if((0, t._)`${g} && (${(0, i.checkMissingProp)(d,
|
|
3797
|
+
}) : (f.if((0, t._)`${g} && (${(0, i.checkMissingProp)(d, v, w)})`), (0, i.reportMissingProp)(d, w), f.else());
|
|
3788
3798
|
}
|
|
3789
3799
|
}
|
|
3790
3800
|
e.validatePropertyDeps = a;
|
|
3791
3801
|
function l(d, c = d.schema) {
|
|
3792
|
-
const { gen: f, data: h, keyword: k, it:
|
|
3793
|
-
for (const
|
|
3794
|
-
(0, r.alwaysValidSchema)(
|
|
3795
|
-
(0, i.propertyInData)(f, h,
|
|
3802
|
+
const { gen: f, data: h, keyword: k, it: w } = d, b = f.name("valid");
|
|
3803
|
+
for (const v in c)
|
|
3804
|
+
(0, r.alwaysValidSchema)(w, c[v]) || (f.if(
|
|
3805
|
+
(0, i.propertyInData)(f, h, v, w.opts.ownProperties),
|
|
3796
3806
|
() => {
|
|
3797
|
-
const g = d.subschema({ keyword: k, schemaProp:
|
|
3798
|
-
d.mergeValidEvaluated(g,
|
|
3807
|
+
const g = d.subschema({ keyword: k, schemaProp: v }, b);
|
|
3808
|
+
d.mergeValidEvaluated(g, b);
|
|
3799
3809
|
},
|
|
3800
|
-
() => f.var(
|
|
3810
|
+
() => f.var(b, !0)
|
|
3801
3811
|
// TODO var
|
|
3802
|
-
), d.ok(
|
|
3812
|
+
), d.ok(b));
|
|
3803
3813
|
}
|
|
3804
3814
|
e.validateSchemaDeps = l, e.default = o;
|
|
3805
3815
|
})(Ft);
|
|
@@ -3855,23 +3865,23 @@ const ut = A, re = E, Xl = Q, ft = V, Ql = {
|
|
|
3855
3865
|
h(), e.ok((0, re._)`${n} === ${Xl.default.errors}`);
|
|
3856
3866
|
function h() {
|
|
3857
3867
|
t.forIn("key", o, (g) => {
|
|
3858
|
-
!c.length && !f.length ?
|
|
3868
|
+
!c.length && !f.length ? b(g) : t.if(k(g), () => b(g));
|
|
3859
3869
|
});
|
|
3860
3870
|
}
|
|
3861
3871
|
function k(g) {
|
|
3862
3872
|
let u;
|
|
3863
3873
|
if (c.length > 8) {
|
|
3864
|
-
const
|
|
3865
|
-
u = (0, ut.isOwnProperty)(t,
|
|
3866
|
-
} else c.length ? u = (0, re.or)(...c.map((
|
|
3867
|
-
return f.length && (u = (0, re.or)(u, ...f.map((
|
|
3874
|
+
const $ = (0, ft.schemaRefOrVal)(a, i.properties, "properties");
|
|
3875
|
+
u = (0, ut.isOwnProperty)(t, $, g);
|
|
3876
|
+
} else c.length ? u = (0, re.or)(...c.map(($) => (0, re._)`${g} === ${$}`)) : u = re.nil;
|
|
3877
|
+
return f.length && (u = (0, re.or)(u, ...f.map(($) => (0, re._)`${(0, ut.usePattern)(e, $)}.test(${g})`))), (0, re.not)(u);
|
|
3868
3878
|
}
|
|
3869
|
-
function
|
|
3879
|
+
function w(g) {
|
|
3870
3880
|
t.code((0, re._)`delete ${o}[${g}]`);
|
|
3871
3881
|
}
|
|
3872
|
-
function
|
|
3882
|
+
function b(g) {
|
|
3873
3883
|
if (d.removeAdditional === "all" || d.removeAdditional && r === !1) {
|
|
3874
|
-
|
|
3884
|
+
w(g);
|
|
3875
3885
|
return;
|
|
3876
3886
|
}
|
|
3877
3887
|
if (r === !1) {
|
|
@@ -3880,18 +3890,18 @@ const ut = A, re = E, Xl = Q, ft = V, Ql = {
|
|
|
3880
3890
|
}
|
|
3881
3891
|
if (typeof r == "object" && !(0, ft.alwaysValidSchema)(a, r)) {
|
|
3882
3892
|
const u = t.name("valid");
|
|
3883
|
-
d.removeAdditional === "failing" ? (
|
|
3884
|
-
e.reset(),
|
|
3885
|
-
})) : (
|
|
3893
|
+
d.removeAdditional === "failing" ? (v(g, u, !1), t.if((0, re.not)(u), () => {
|
|
3894
|
+
e.reset(), w(g);
|
|
3895
|
+
})) : (v(g, u), l || t.if((0, re.not)(u), () => t.break()));
|
|
3886
3896
|
}
|
|
3887
3897
|
}
|
|
3888
|
-
function
|
|
3898
|
+
function v(g, u, $) {
|
|
3889
3899
|
const C = {
|
|
3890
3900
|
keyword: "additionalProperties",
|
|
3891
3901
|
dataProp: g,
|
|
3892
3902
|
dataPropType: ft.Type.Str
|
|
3893
3903
|
};
|
|
3894
|
-
|
|
3904
|
+
$ === !1 && Object.assign(C, {
|
|
3895
3905
|
compositeRule: !0,
|
|
3896
3906
|
createErrors: !1,
|
|
3897
3907
|
allErrors: !1
|
|
@@ -3939,7 +3949,7 @@ const Fi = A, ht = E, ji = V, Ri = V, id = {
|
|
|
3939
3949
|
type: "object",
|
|
3940
3950
|
schemaType: "object",
|
|
3941
3951
|
code(e) {
|
|
3942
|
-
const { gen: t, schema: r, data: i, parentSchema: o, it: n } = e, { opts: a } = n, l = (0, Fi.allSchemaProperties)(r), d = l.filter((
|
|
3952
|
+
const { gen: t, schema: r, data: i, parentSchema: o, it: n } = e, { opts: a } = n, l = (0, Fi.allSchemaProperties)(r), d = l.filter((v) => (0, ji.alwaysValidSchema)(n, r[v]));
|
|
3943
3953
|
if (l.length === 0 || d.length === l.length && (!n.opts.unevaluated || n.props === !0))
|
|
3944
3954
|
return;
|
|
3945
3955
|
const c = a.strictSchema && !a.allowMatchingProperties && o.properties, f = t.name("valid");
|
|
@@ -3947,20 +3957,20 @@ const Fi = A, ht = E, ji = V, Ri = V, id = {
|
|
|
3947
3957
|
const { props: h } = n;
|
|
3948
3958
|
k();
|
|
3949
3959
|
function k() {
|
|
3950
|
-
for (const
|
|
3951
|
-
c &&
|
|
3960
|
+
for (const v of l)
|
|
3961
|
+
c && w(v), n.allErrors ? b(v) : (t.var(f, !0), b(v), t.if(f));
|
|
3952
3962
|
}
|
|
3953
|
-
function
|
|
3963
|
+
function w(v) {
|
|
3954
3964
|
for (const g in c)
|
|
3955
|
-
new RegExp(
|
|
3965
|
+
new RegExp(v).test(g) && (0, ji.checkStrictMode)(n, `property ${g} matches pattern ${v} (use allowMatchingProperties)`);
|
|
3956
3966
|
}
|
|
3957
|
-
function
|
|
3967
|
+
function b(v) {
|
|
3958
3968
|
t.forIn("key", i, (g) => {
|
|
3959
|
-
t.if((0, ht._)`${(0, Fi.usePattern)(e,
|
|
3960
|
-
const u = d.includes(
|
|
3969
|
+
t.if((0, ht._)`${(0, Fi.usePattern)(e, v)}.test(${g})`, () => {
|
|
3970
|
+
const u = d.includes(v);
|
|
3961
3971
|
u || e.subschema({
|
|
3962
3972
|
keyword: "patternProperties",
|
|
3963
|
-
schemaProp:
|
|
3973
|
+
schemaProp: v,
|
|
3964
3974
|
dataProp: g,
|
|
3965
3975
|
dataPropType: Ri.Type.Str
|
|
3966
3976
|
}, f), n.opts.unevaluated && h !== !0 ? t.assign((0, ht._)`${h}[${g}]`, !0) : !u && !n.allErrors && t.if((0, ht.not)(f), () => t.break());
|
|
@@ -4273,19 +4283,19 @@ const ye = E, Ni = V, nc = Q, sc = {
|
|
|
4273
4283
|
return (0, ye._)`!${h} || !${h}[${k}]`;
|
|
4274
4284
|
}
|
|
4275
4285
|
function f(h, k) {
|
|
4276
|
-
const
|
|
4277
|
-
for (const
|
|
4278
|
-
h[
|
|
4279
|
-
return (0, ye.and)(...
|
|
4286
|
+
const w = [];
|
|
4287
|
+
for (const b in h)
|
|
4288
|
+
h[b] === !0 && w.push((0, ye._)`${k} !== ${b}`);
|
|
4289
|
+
return (0, ye.and)(...w);
|
|
4280
4290
|
}
|
|
4281
4291
|
}
|
|
4282
4292
|
};
|
|
4283
4293
|
ni.default = ac;
|
|
4284
4294
|
var si = {};
|
|
4285
4295
|
Object.defineProperty(si, "__esModule", { value: !0 });
|
|
4286
|
-
const
|
|
4287
|
-
message: ({ params: { len: e } }) => (0,
|
|
4288
|
-
params: ({ params: { len: e } }) => (0,
|
|
4296
|
+
const Pe = E, zi = V, lc = {
|
|
4297
|
+
message: ({ params: { len: e } }) => (0, Pe.str)`must NOT have more than ${e} items`,
|
|
4298
|
+
params: ({ params: { len: e } }) => (0, Pe._)`{limit: ${e}}`
|
|
4289
4299
|
}, dc = {
|
|
4290
4300
|
keyword: "unevaluatedItems",
|
|
4291
4301
|
type: "array",
|
|
@@ -4295,17 +4305,17 @@ const Ce = E, zi = V, lc = {
|
|
|
4295
4305
|
const { gen: t, schema: r, data: i, it: o } = e, n = o.items || 0;
|
|
4296
4306
|
if (n === !0)
|
|
4297
4307
|
return;
|
|
4298
|
-
const a = t.const("len", (0,
|
|
4308
|
+
const a = t.const("len", (0, Pe._)`${i}.length`);
|
|
4299
4309
|
if (r === !1)
|
|
4300
|
-
e.setParams({ len: n }), e.fail((0,
|
|
4310
|
+
e.setParams({ len: n }), e.fail((0, Pe._)`${a} > ${n}`);
|
|
4301
4311
|
else if (typeof r == "object" && !(0, zi.alwaysValidSchema)(o, r)) {
|
|
4302
|
-
const d = t.var("valid", (0,
|
|
4303
|
-
t.if((0,
|
|
4312
|
+
const d = t.var("valid", (0, Pe._)`${a} <= ${n}`);
|
|
4313
|
+
t.if((0, Pe.not)(d), () => l(d, n)), e.ok(d);
|
|
4304
4314
|
}
|
|
4305
4315
|
o.items = !0;
|
|
4306
4316
|
function l(d, c) {
|
|
4307
4317
|
t.forRange("i", c, a, (f) => {
|
|
4308
|
-
e.subschema({ keyword: "unevaluatedItems", dataProp: f, dataPropType: zi.Type.Num }, d), o.allErrors || t.if((0,
|
|
4318
|
+
e.subschema({ keyword: "unevaluatedItems", dataProp: f, dataPropType: zi.Type.Num }, d), o.allErrors || t.if((0, Pe.not)(d), () => t.break());
|
|
4309
4319
|
});
|
|
4310
4320
|
}
|
|
4311
4321
|
}
|
|
@@ -4329,32 +4339,32 @@ const q = E, fc = {
|
|
|
4329
4339
|
const { gen: r, data: i, $data: o, schema: n, schemaCode: a, it: l } = e, { opts: d, errSchemaPath: c, schemaEnv: f, self: h } = l;
|
|
4330
4340
|
if (!d.validateFormats)
|
|
4331
4341
|
return;
|
|
4332
|
-
o ? k() :
|
|
4342
|
+
o ? k() : w();
|
|
4333
4343
|
function k() {
|
|
4334
|
-
const
|
|
4344
|
+
const b = r.scopeValue("formats", {
|
|
4335
4345
|
ref: h.formats,
|
|
4336
4346
|
code: d.code.formats
|
|
4337
|
-
}),
|
|
4338
|
-
r.if((0, q._)`typeof ${
|
|
4339
|
-
function
|
|
4347
|
+
}), v = r.const("fDef", (0, q._)`${b}[${a}]`), g = r.let("fType"), u = r.let("format");
|
|
4348
|
+
r.if((0, q._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`, () => r.assign(g, (0, q._)`${v}.type || "string"`).assign(u, (0, q._)`${v}.validate`), () => r.assign(g, (0, q._)`"string"`).assign(u, v)), e.fail$data((0, q.or)($(), C()));
|
|
4349
|
+
function $() {
|
|
4340
4350
|
return d.strictSchema === !1 ? q.nil : (0, q._)`${a} && !${u}`;
|
|
4341
4351
|
}
|
|
4342
4352
|
function C() {
|
|
4343
|
-
const D = f.$async ? (0, q._)`(${
|
|
4353
|
+
const D = f.$async ? (0, q._)`(${v}.async ? await ${u}(${i}) : ${u}(${i}))` : (0, q._)`${u}(${i})`, F = (0, q._)`(typeof ${u} == "function" ? ${D} : ${u}.test(${i}))`;
|
|
4344
4354
|
return (0, q._)`${u} && ${u} !== true && ${g} === ${t} && !${F}`;
|
|
4345
4355
|
}
|
|
4346
4356
|
}
|
|
4347
|
-
function
|
|
4348
|
-
const
|
|
4349
|
-
if (
|
|
4350
|
-
|
|
4357
|
+
function w() {
|
|
4358
|
+
const b = h.formats[n];
|
|
4359
|
+
if (!b) {
|
|
4360
|
+
$();
|
|
4351
4361
|
return;
|
|
4352
4362
|
}
|
|
4353
|
-
if (
|
|
4363
|
+
if (b === !0)
|
|
4354
4364
|
return;
|
|
4355
|
-
const [
|
|
4356
|
-
|
|
4357
|
-
function
|
|
4365
|
+
const [v, g, u] = C(b);
|
|
4366
|
+
v === t && e.pass(D());
|
|
4367
|
+
function $() {
|
|
4358
4368
|
if (d.strictSchema === !1) {
|
|
4359
4369
|
h.logger.warn(F());
|
|
4360
4370
|
return;
|
|
@@ -4369,7 +4379,7 @@ const q = E, fc = {
|
|
|
4369
4379
|
return typeof F == "object" && !(F instanceof RegExp) ? [F.type || "string", F.validate, (0, q._)`${H}.validate`] : ["string", F, H];
|
|
4370
4380
|
}
|
|
4371
4381
|
function D() {
|
|
4372
|
-
if (typeof
|
|
4382
|
+
if (typeof b == "object" && !(b instanceof RegExp) && b.async) {
|
|
4373
4383
|
if (!f.$async)
|
|
4374
4384
|
throw new Error("async format in sync schema");
|
|
4375
4385
|
return (0, q._)`await ${u}(${i})`;
|
|
@@ -4383,10 +4393,10 @@ li.default = hc;
|
|
|
4383
4393
|
Object.defineProperty(ai, "__esModule", { value: !0 });
|
|
4384
4394
|
const mc = li, gc = [mc.default];
|
|
4385
4395
|
ai.default = gc;
|
|
4386
|
-
var
|
|
4387
|
-
Object.defineProperty(
|
|
4388
|
-
|
|
4389
|
-
|
|
4396
|
+
var ze = {};
|
|
4397
|
+
Object.defineProperty(ze, "__esModule", { value: !0 });
|
|
4398
|
+
ze.contentVocabulary = ze.metadataVocabulary = void 0;
|
|
4399
|
+
ze.metadataVocabulary = [
|
|
4390
4400
|
"title",
|
|
4391
4401
|
"description",
|
|
4392
4402
|
"default",
|
|
@@ -4395,13 +4405,13 @@ Ne.metadataVocabulary = [
|
|
|
4395
4405
|
"writeOnly",
|
|
4396
4406
|
"examples"
|
|
4397
4407
|
];
|
|
4398
|
-
|
|
4408
|
+
ze.contentVocabulary = [
|
|
4399
4409
|
"contentMediaType",
|
|
4400
4410
|
"contentEncoding",
|
|
4401
4411
|
"contentSchema"
|
|
4402
4412
|
];
|
|
4403
4413
|
Object.defineProperty(kr, "__esModule", { value: !0 });
|
|
4404
|
-
const yc = Or, bc = Pr, $c = Nr, vc = Zr, Sc = ei, wc = oi, kc = ai, Mi =
|
|
4414
|
+
const yc = Or, bc = Pr, $c = Nr, vc = Zr, Sc = ei, wc = oi, kc = ai, Mi = ze, Oc = [
|
|
4405
4415
|
vc.default,
|
|
4406
4416
|
yc.default,
|
|
4407
4417
|
bc.default,
|
|
@@ -4421,9 +4431,9 @@ var Li;
|
|
|
4421
4431
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
4422
4432
|
})(Li || (Rt.DiscrError = Li = {}));
|
|
4423
4433
|
Object.defineProperty(di, "__esModule", { value: !0 });
|
|
4424
|
-
const
|
|
4434
|
+
const Te = E, lr = Rt, Bi = Z, Cc = Me, Pc = V, _c = {
|
|
4425
4435
|
message: ({ params: { discrError: e, tagName: t } }) => e === lr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
|
|
4426
|
-
params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0,
|
|
4436
|
+
params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Te._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
|
|
4427
4437
|
}, Vc = {
|
|
4428
4438
|
keyword: "discriminator",
|
|
4429
4439
|
type: "object",
|
|
@@ -4440,22 +4450,22 @@ const Re = E, lr = Rt, Bi = Z, Cc = Me, Pc = V, _c = {
|
|
|
4440
4450
|
throw new Error("discriminator: mapping is not supported");
|
|
4441
4451
|
if (!a)
|
|
4442
4452
|
throw new Error("discriminator: requires oneOf keyword");
|
|
4443
|
-
const d = t.let("valid", !1), c = t.const("tag", (0,
|
|
4444
|
-
t.if((0,
|
|
4453
|
+
const d = t.let("valid", !1), c = t.const("tag", (0, Te._)`${r}${(0, Te.getProperty)(l)}`);
|
|
4454
|
+
t.if((0, Te._)`typeof ${c} == "string"`, () => f(), () => e.error(!1, { discrError: lr.DiscrError.Tag, tag: c, tagName: l })), e.ok(d);
|
|
4445
4455
|
function f() {
|
|
4446
|
-
const
|
|
4456
|
+
const w = k();
|
|
4447
4457
|
t.if(!1);
|
|
4448
|
-
for (const
|
|
4449
|
-
t.elseIf((0,
|
|
4458
|
+
for (const b in w)
|
|
4459
|
+
t.elseIf((0, Te._)`${c} === ${b}`), t.assign(d, h(w[b]));
|
|
4450
4460
|
t.else(), e.error(!1, { discrError: lr.DiscrError.Mapping, tag: c, tagName: l }), t.endIf();
|
|
4451
4461
|
}
|
|
4452
|
-
function h(
|
|
4453
|
-
const
|
|
4454
|
-
return e.mergeEvaluated(
|
|
4462
|
+
function h(w) {
|
|
4463
|
+
const b = t.name("valid"), v = e.subschema({ keyword: "oneOf", schemaProp: w }, b);
|
|
4464
|
+
return e.mergeEvaluated(v, Te.Name), b;
|
|
4455
4465
|
}
|
|
4456
4466
|
function k() {
|
|
4457
|
-
var
|
|
4458
|
-
const
|
|
4467
|
+
var w;
|
|
4468
|
+
const b = {}, v = u(o);
|
|
4459
4469
|
let g = !0;
|
|
4460
4470
|
for (let D = 0; D < a.length; D++) {
|
|
4461
4471
|
let F = a[D];
|
|
@@ -4464,18 +4474,18 @@ const Re = E, lr = Rt, Bi = Z, Cc = Me, Pc = V, _c = {
|
|
|
4464
4474
|
if (F = Bi.resolveRef.call(n.self, n.schemaEnv.root, n.baseId, H), F instanceof Bi.SchemaEnv && (F = F.schema), F === void 0)
|
|
4465
4475
|
throw new Cc.default(n.opts.uriResolver, n.baseId, H);
|
|
4466
4476
|
}
|
|
4467
|
-
const L = (
|
|
4477
|
+
const L = (w = F == null ? void 0 : F.properties) === null || w === void 0 ? void 0 : w[l];
|
|
4468
4478
|
if (typeof L != "object")
|
|
4469
4479
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);
|
|
4470
|
-
g = g && (
|
|
4480
|
+
g = g && (v || u(F)), $(L, D);
|
|
4471
4481
|
}
|
|
4472
4482
|
if (!g)
|
|
4473
4483
|
throw new Error(`discriminator: "${l}" must be required`);
|
|
4474
|
-
return
|
|
4484
|
+
return b;
|
|
4475
4485
|
function u({ required: D }) {
|
|
4476
4486
|
return Array.isArray(D) && D.includes(l);
|
|
4477
4487
|
}
|
|
4478
|
-
function
|
|
4488
|
+
function $(D, F) {
|
|
4479
4489
|
if (D.const)
|
|
4480
4490
|
C(D.const, F);
|
|
4481
4491
|
else if (D.enum)
|
|
@@ -4485,9 +4495,9 @@ const Re = E, lr = Rt, Bi = Z, Cc = Me, Pc = V, _c = {
|
|
|
4485
4495
|
throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`);
|
|
4486
4496
|
}
|
|
4487
4497
|
function C(D, F) {
|
|
4488
|
-
if (typeof D != "string" || D in
|
|
4498
|
+
if (typeof D != "string" || D in b)
|
|
4489
4499
|
throw new Error(`discriminator: "${l}" values must be unique strings`);
|
|
4490
|
-
|
|
4500
|
+
b[D] = F;
|
|
4491
4501
|
}
|
|
4492
4502
|
}
|
|
4493
4503
|
}
|
|
@@ -4963,21 +4973,21 @@ ci.default = Qp;
|
|
|
4963
4973
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv2020 = void 0;
|
|
4964
4974
|
const r = qi, i = kr, o = di, n = ci, a = "https://json-schema.org/draft/2020-12/schema";
|
|
4965
4975
|
class l extends r.default {
|
|
4966
|
-
constructor(
|
|
4976
|
+
constructor(w = {}) {
|
|
4967
4977
|
super({
|
|
4968
|
-
...
|
|
4978
|
+
...w,
|
|
4969
4979
|
dynamicRef: !0,
|
|
4970
4980
|
next: !0,
|
|
4971
4981
|
unevaluated: !0
|
|
4972
4982
|
});
|
|
4973
4983
|
}
|
|
4974
4984
|
_addVocabularies() {
|
|
4975
|
-
super._addVocabularies(), i.default.forEach((
|
|
4985
|
+
super._addVocabularies(), i.default.forEach((w) => this.addVocabulary(w)), this.opts.discriminator && this.addKeyword(o.default);
|
|
4976
4986
|
}
|
|
4977
4987
|
_addDefaultMetaSchema() {
|
|
4978
4988
|
super._addDefaultMetaSchema();
|
|
4979
|
-
const { $data:
|
|
4980
|
-
|
|
4989
|
+
const { $data: w, meta: b } = this.opts;
|
|
4990
|
+
b && (n.default.call(this, w), this.refs["http://json-schema.org/schema"] = a);
|
|
4981
4991
|
}
|
|
4982
4992
|
defaultMeta() {
|
|
4983
4993
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(a) ? a : void 0);
|
|
@@ -5012,7 +5022,7 @@ ci.default = Qp;
|
|
|
5012
5022
|
} });
|
|
5013
5023
|
})(tr, tr.exports);
|
|
5014
5024
|
var eu = tr.exports;
|
|
5015
|
-
const tu = "custom-apps", ru = "1.
|
|
5025
|
+
const tu = "custom-apps", ru = "1.12.0", pe = {
|
|
5016
5026
|
ActionCard: {
|
|
5017
5027
|
description: "Card with icon asset, title, caption, and action buttons",
|
|
5018
5028
|
events: ["primaryAction", "secondaryAction"],
|
|
@@ -5078,6 +5088,141 @@ const tu = "custom-apps", ru = "1.8.0", pe = {
|
|
|
5078
5088
|
},
|
|
5079
5089
|
acceptsChildren: !1
|
|
5080
5090
|
},
|
|
5091
|
+
ActionSheet: {
|
|
5092
|
+
description: "Bottom-sheet list of backend-authored actions",
|
|
5093
|
+
events: [],
|
|
5094
|
+
propsSchema: {
|
|
5095
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
5096
|
+
additionalProperties: !1,
|
|
5097
|
+
properties: {
|
|
5098
|
+
data: {
|
|
5099
|
+
description: "Selectable ActionSheet options",
|
|
5100
|
+
items: {
|
|
5101
|
+
additionalProperties: !1,
|
|
5102
|
+
properties: {
|
|
5103
|
+
actions: {
|
|
5104
|
+
description: "Actions executed in order when this option is selected",
|
|
5105
|
+
items: {
|
|
5106
|
+
additionalProperties: {},
|
|
5107
|
+
properties: {
|
|
5108
|
+
action: {
|
|
5109
|
+
description: "Registered action name",
|
|
5110
|
+
type: "string"
|
|
5111
|
+
},
|
|
5112
|
+
options: {
|
|
5113
|
+
additionalProperties: {},
|
|
5114
|
+
propertyNames: {
|
|
5115
|
+
type: "string"
|
|
5116
|
+
},
|
|
5117
|
+
type: "object"
|
|
5118
|
+
},
|
|
5119
|
+
params: {
|
|
5120
|
+
additionalProperties: {},
|
|
5121
|
+
propertyNames: {
|
|
5122
|
+
type: "string"
|
|
5123
|
+
},
|
|
5124
|
+
type: "object"
|
|
5125
|
+
}
|
|
5126
|
+
},
|
|
5127
|
+
required: ["action"],
|
|
5128
|
+
type: "object"
|
|
5129
|
+
},
|
|
5130
|
+
type: "array"
|
|
5131
|
+
},
|
|
5132
|
+
avatar: {
|
|
5133
|
+
additionalProperties: {},
|
|
5134
|
+
description: "Avatar displayed beside the option",
|
|
5135
|
+
properties: {
|
|
5136
|
+
backgroundColor: {
|
|
5137
|
+
type: "string"
|
|
5138
|
+
},
|
|
5139
|
+
contentFit: {
|
|
5140
|
+
type: "string"
|
|
5141
|
+
},
|
|
5142
|
+
source: {
|
|
5143
|
+
description: "Remote image URL",
|
|
5144
|
+
type: "string"
|
|
5145
|
+
}
|
|
5146
|
+
},
|
|
5147
|
+
required: ["source"],
|
|
5148
|
+
type: "object"
|
|
5149
|
+
},
|
|
5150
|
+
description: {
|
|
5151
|
+
description: "Secondary description text",
|
|
5152
|
+
type: "string"
|
|
5153
|
+
},
|
|
5154
|
+
id: {
|
|
5155
|
+
description: "Unique identifier for this option",
|
|
5156
|
+
type: "string"
|
|
5157
|
+
},
|
|
5158
|
+
title: {
|
|
5159
|
+
description: "Display text for this option",
|
|
5160
|
+
type: "string"
|
|
5161
|
+
},
|
|
5162
|
+
visible: {
|
|
5163
|
+
description: "If false, hides this option. Default: true",
|
|
5164
|
+
type: "boolean"
|
|
5165
|
+
}
|
|
5166
|
+
},
|
|
5167
|
+
required: ["id", "title", "actions"],
|
|
5168
|
+
type: "object"
|
|
5169
|
+
},
|
|
5170
|
+
type: "array"
|
|
5171
|
+
},
|
|
5172
|
+
dismissActions: {
|
|
5173
|
+
description: "Actions executed when the sheet is dismissed",
|
|
5174
|
+
items: {
|
|
5175
|
+
additionalProperties: {},
|
|
5176
|
+
properties: {
|
|
5177
|
+
action: {
|
|
5178
|
+
description: "Registered action name",
|
|
5179
|
+
type: "string"
|
|
5180
|
+
},
|
|
5181
|
+
options: {
|
|
5182
|
+
additionalProperties: {},
|
|
5183
|
+
propertyNames: {
|
|
5184
|
+
type: "string"
|
|
5185
|
+
},
|
|
5186
|
+
type: "object"
|
|
5187
|
+
},
|
|
5188
|
+
params: {
|
|
5189
|
+
additionalProperties: {},
|
|
5190
|
+
propertyNames: {
|
|
5191
|
+
type: "string"
|
|
5192
|
+
},
|
|
5193
|
+
type: "object"
|
|
5194
|
+
}
|
|
5195
|
+
},
|
|
5196
|
+
required: ["action"],
|
|
5197
|
+
type: "object"
|
|
5198
|
+
},
|
|
5199
|
+
type: "array"
|
|
5200
|
+
},
|
|
5201
|
+
header: {
|
|
5202
|
+
additionalProperties: !1,
|
|
5203
|
+
properties: {
|
|
5204
|
+
title: {
|
|
5205
|
+
description: "ActionSheet heading",
|
|
5206
|
+
type: "string"
|
|
5207
|
+
}
|
|
5208
|
+
},
|
|
5209
|
+
required: ["title"],
|
|
5210
|
+
type: "object"
|
|
5211
|
+
},
|
|
5212
|
+
testID: {
|
|
5213
|
+
description: "Test identifier",
|
|
5214
|
+
type: "string"
|
|
5215
|
+
},
|
|
5216
|
+
visible: {
|
|
5217
|
+
description: "If true, the ActionSheet is visible",
|
|
5218
|
+
type: "boolean"
|
|
5219
|
+
}
|
|
5220
|
+
},
|
|
5221
|
+
required: ["visible", "data"],
|
|
5222
|
+
type: "object"
|
|
5223
|
+
},
|
|
5224
|
+
acceptsChildren: !1
|
|
5225
|
+
},
|
|
5081
5226
|
Anchor: {
|
|
5082
5227
|
description: "Inline text link that opens supported URLs",
|
|
5083
5228
|
events: ["press", "open", "error"],
|
|
@@ -9074,7 +9219,7 @@ const tu = "custom-apps", ru = "1.8.0", pe = {
|
|
|
9074
9219
|
type: "array"
|
|
9075
9220
|
},
|
|
9076
9221
|
decimalPlaces: {
|
|
9077
|
-
description: "Number of decimal places allowed",
|
|
9222
|
+
description: "Number of decimal places allowed. Mutually exclusive with isIntegerOnly.",
|
|
9078
9223
|
type: "number"
|
|
9079
9224
|
},
|
|
9080
9225
|
defaultValue: {
|
|
@@ -9100,6 +9245,10 @@ const tu = "custom-apps", ru = "1.8.0", pe = {
|
|
|
9100
9245
|
description: "Help text shown below the input",
|
|
9101
9246
|
type: "string"
|
|
9102
9247
|
},
|
|
9248
|
+
isIntegerOnly: {
|
|
9249
|
+
description: "Restrict to integer values only. Takes precedence over decimalPlaces.",
|
|
9250
|
+
type: "boolean"
|
|
9251
|
+
},
|
|
9103
9252
|
label: {
|
|
9104
9253
|
description: "Label shown above the input",
|
|
9105
9254
|
type: "string"
|
|
@@ -12918,6 +13067,77 @@ const tu = "custom-apps", ru = "1.8.0", pe = {
|
|
|
12918
13067
|
description: "Disables the input. Default: false",
|
|
12919
13068
|
type: "boolean"
|
|
12920
13069
|
},
|
|
13070
|
+
domainList: {
|
|
13071
|
+
anyOf: [
|
|
13072
|
+
{
|
|
13073
|
+
type: "string"
|
|
13074
|
+
},
|
|
13075
|
+
{
|
|
13076
|
+
items: {
|
|
13077
|
+
anyOf: [
|
|
13078
|
+
{
|
|
13079
|
+
type: "string"
|
|
13080
|
+
},
|
|
13081
|
+
{
|
|
13082
|
+
additionalProperties: !1,
|
|
13083
|
+
properties: {
|
|
13084
|
+
label: {
|
|
13085
|
+
description: "Visible domain label",
|
|
13086
|
+
type: "string"
|
|
13087
|
+
},
|
|
13088
|
+
tag: {
|
|
13089
|
+
description: "Optional tag shown on the domain row",
|
|
13090
|
+
type: "string"
|
|
13091
|
+
},
|
|
13092
|
+
value: {
|
|
13093
|
+
description: "Domain value used in the composed email",
|
|
13094
|
+
type: "string"
|
|
13095
|
+
}
|
|
13096
|
+
},
|
|
13097
|
+
required: ["label", "value"],
|
|
13098
|
+
type: "object"
|
|
13099
|
+
},
|
|
13100
|
+
{
|
|
13101
|
+
additionalProperties: !1,
|
|
13102
|
+
properties: {
|
|
13103
|
+
label: {
|
|
13104
|
+
description: "Group heading in the domain selector",
|
|
13105
|
+
type: "string"
|
|
13106
|
+
},
|
|
13107
|
+
list: {
|
|
13108
|
+
description: "Domains in this group",
|
|
13109
|
+
items: {
|
|
13110
|
+
additionalProperties: !1,
|
|
13111
|
+
properties: {
|
|
13112
|
+
label: {
|
|
13113
|
+
description: "Visible domain label",
|
|
13114
|
+
type: "string"
|
|
13115
|
+
},
|
|
13116
|
+
tag: {
|
|
13117
|
+
description: "Optional tag shown on the domain row",
|
|
13118
|
+
type: "string"
|
|
13119
|
+
},
|
|
13120
|
+
value: {
|
|
13121
|
+
description: "Domain value used in the composed email",
|
|
13122
|
+
type: "string"
|
|
13123
|
+
}
|
|
13124
|
+
},
|
|
13125
|
+
required: ["label", "value"],
|
|
13126
|
+
type: "object"
|
|
13127
|
+
},
|
|
13128
|
+
type: "array"
|
|
13129
|
+
}
|
|
13130
|
+
},
|
|
13131
|
+
required: ["label", "list"],
|
|
13132
|
+
type: "object"
|
|
13133
|
+
}
|
|
13134
|
+
]
|
|
13135
|
+
},
|
|
13136
|
+
type: "array"
|
|
13137
|
+
}
|
|
13138
|
+
],
|
|
13139
|
+
description: "Allowed domains. When set, the user types only the username and picks a domain."
|
|
13140
|
+
},
|
|
12921
13141
|
error: {
|
|
12922
13142
|
anyOf: [
|
|
12923
13143
|
{
|
|
@@ -12997,6 +13217,22 @@ const tu = "custom-apps", ru = "1.8.0", pe = {
|
|
|
12997
13217
|
type: "object"
|
|
12998
13218
|
}
|
|
12999
13219
|
},
|
|
13220
|
+
linking_openURL: {
|
|
13221
|
+
description: "Open a supported URL using the device operating system.",
|
|
13222
|
+
docs: "`url` (required): the resolved URL to open.",
|
|
13223
|
+
paramsSchema: {
|
|
13224
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
13225
|
+
additionalProperties: !1,
|
|
13226
|
+
properties: {
|
|
13227
|
+
url: {
|
|
13228
|
+
description: "URL to open using the device operating system.",
|
|
13229
|
+
type: "string"
|
|
13230
|
+
}
|
|
13231
|
+
},
|
|
13232
|
+
required: ["url"],
|
|
13233
|
+
type: "object"
|
|
13234
|
+
}
|
|
13235
|
+
},
|
|
13000
13236
|
navigate: {
|
|
13001
13237
|
description: "Navigate to a React Navigation screen by name using the mobile route registered in the navigator.",
|
|
13002
13238
|
docs: '`screen` (required): the React Navigation screen name to navigate to, usually in "{namespace}/{ScreenName}" format.\n`params` (optional): key-value params forwarded to the target screen (same as React Navigation `navigate` second argument).\nUses the global NavigationService, so it works from any SDUI component regardless of navigation context.',
|
|
@@ -13018,6 +13254,30 @@ const tu = "custom-apps", ru = "1.8.0", pe = {
|
|
|
13018
13254
|
type: "object"
|
|
13019
13255
|
}
|
|
13020
13256
|
},
|
|
13257
|
+
openChatAssistantWithMessage: {
|
|
13258
|
+
description: "Open Chat Assistant and send an initial message in a new conversation.",
|
|
13259
|
+
docs: `text: prompt/message that should be sent immediately after Chat Assistant opens.
|
|
13260
|
+
target: optional Chat Assistant surface target. Omit to use the default chat surface.`,
|
|
13261
|
+
paramsSchema: {
|
|
13262
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
13263
|
+
additionalProperties: !1,
|
|
13264
|
+
properties: {
|
|
13265
|
+
target: {
|
|
13266
|
+
description: "Optional Chat Assistant surface target.",
|
|
13267
|
+
enum: ["sidepane", "fullscreen", "copilot"],
|
|
13268
|
+
type: "string"
|
|
13269
|
+
},
|
|
13270
|
+
text: {
|
|
13271
|
+
description: "Initial message to send in a new Chat Assistant conversation. Must contain at least one non-whitespace character.",
|
|
13272
|
+
minLength: 1,
|
|
13273
|
+
pattern: "\\S",
|
|
13274
|
+
type: "string"
|
|
13275
|
+
}
|
|
13276
|
+
},
|
|
13277
|
+
required: ["text"],
|
|
13278
|
+
type: "object"
|
|
13279
|
+
}
|
|
13280
|
+
},
|
|
13021
13281
|
push: {
|
|
13022
13282
|
description: "Push a React Navigation screen onto the current stack by name using the mobile route registered in the navigator.",
|
|
13023
13283
|
docs: '`screen` (required): the React Navigation screen name to push, usually in "{namespace}/{ScreenName}" format.\n`params` (optional): key-value params forwarded to the target screen (same as React Navigation `push` second argument).\nUses the global NavigationService, so it works from any SDUI component regardless of navigation context.',
|
|
@@ -13273,6 +13533,24 @@ The value may use $state or $computed expressions. This is useful for deriving v
|
|
|
13273
13533
|
required: ["value"],
|
|
13274
13534
|
type: "object"
|
|
13275
13535
|
}
|
|
13536
|
+
},
|
|
13537
|
+
platform_isAndroid: {
|
|
13538
|
+
description: "Return whether the current React Native platform is Android.",
|
|
13539
|
+
paramsSchema: {
|
|
13540
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
13541
|
+
additionalProperties: !1,
|
|
13542
|
+
properties: {},
|
|
13543
|
+
type: "object"
|
|
13544
|
+
}
|
|
13545
|
+
},
|
|
13546
|
+
platform_isIOS: {
|
|
13547
|
+
description: "Return whether the current React Native platform is iOS.",
|
|
13548
|
+
paramsSchema: {
|
|
13549
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
13550
|
+
additionalProperties: !1,
|
|
13551
|
+
properties: {},
|
|
13552
|
+
type: "object"
|
|
13553
|
+
}
|
|
13276
13554
|
}
|
|
13277
13555
|
}, iu = {}, Go = {
|
|
13278
13556
|
AlignItemsValue: {
|
|
@@ -13674,6 +13952,8 @@ The value may use $state or $computed expressions. This is useful for deriving v
|
|
|
13674
13952
|
"brex",
|
|
13675
13953
|
"briefcaseFilled",
|
|
13676
13954
|
"briefcaseOutline",
|
|
13955
|
+
"browserFilled",
|
|
13956
|
+
"browserOutline",
|
|
13677
13957
|
"browserRipplingLogoFilled",
|
|
13678
13958
|
"browserRipplingLogoOutline",
|
|
13679
13959
|
"budgetDollarFilled",
|
|
@@ -13753,6 +14033,7 @@ The value may use $state or $computed expressions. This is useful for deriving v
|
|
|
13753
14033
|
"chevronLeft",
|
|
13754
14034
|
"chevronRight",
|
|
13755
14035
|
"chevronUp",
|
|
14036
|
+
"chevronsInwardVerical",
|
|
13756
14037
|
"chrome",
|
|
13757
14038
|
"circleArrowUpGraphFilled",
|
|
13758
14039
|
"circleArrowUpGraphOutline",
|
|
@@ -14333,6 +14614,10 @@ The value may use $state or $computed expressions. This is useful for deriving v
|
|
|
14333
14614
|
"paidSeatSelectionOutline",
|
|
14334
14615
|
"paintRollerFilled",
|
|
14335
14616
|
"paintRollerOutline",
|
|
14617
|
+
"panelCollapseVerticalFilled",
|
|
14618
|
+
"panelCollapseVerticalOutline",
|
|
14619
|
+
"panelExpandVerticalFilled",
|
|
14620
|
+
"panelExpandVerticalOutline",
|
|
14336
14621
|
"password",
|
|
14337
14622
|
"passwordRefreshFilled",
|
|
14338
14623
|
"passwordRefreshOutline",
|
|
@@ -14402,6 +14687,8 @@ The value may use $state or $computed expressions. This is useful for deriving v
|
|
|
14402
14687
|
"photoGalleryOutlined",
|
|
14403
14688
|
"pieChartGraphFilled",
|
|
14404
14689
|
"pieChartGraphOutline",
|
|
14690
|
+
"pillsFilled",
|
|
14691
|
+
"pillsOutline",
|
|
14405
14692
|
"pinLeft",
|
|
14406
14693
|
"pinRight",
|
|
14407
14694
|
"plaid",
|
|
@@ -15194,7 +15481,7 @@ The value may use $state or $computed expressions. This is useful for deriving v
|
|
|
15194
15481
|
{ field: "relatedComponents", title: "Related components" },
|
|
15195
15482
|
{ field: "subComponents", title: "Sub-components" }
|
|
15196
15483
|
];
|
|
15197
|
-
function
|
|
15484
|
+
function th() {
|
|
15198
15485
|
return Object.fromEntries(
|
|
15199
15486
|
Object.entries(pe).map(([e, t]) => [
|
|
15200
15487
|
e,
|
|
@@ -15202,7 +15489,7 @@ function Yf() {
|
|
|
15202
15489
|
])
|
|
15203
15490
|
);
|
|
15204
15491
|
}
|
|
15205
|
-
function
|
|
15492
|
+
function rh() {
|
|
15206
15493
|
return Object.fromEntries(
|
|
15207
15494
|
Object.entries(vt).map(([e, t]) => [
|
|
15208
15495
|
e,
|
|
@@ -15210,7 +15497,7 @@ function Zf() {
|
|
|
15210
15497
|
])
|
|
15211
15498
|
);
|
|
15212
15499
|
}
|
|
15213
|
-
function
|
|
15500
|
+
function ih() {
|
|
15214
15501
|
return Object.fromEntries(
|
|
15215
15502
|
Object.entries(it).map(([e, t]) => [
|
|
15216
15503
|
e,
|
|
@@ -15218,13 +15505,13 @@ function Xf() {
|
|
|
15218
15505
|
])
|
|
15219
15506
|
);
|
|
15220
15507
|
}
|
|
15221
|
-
function
|
|
15508
|
+
function oh() {
|
|
15222
15509
|
return it;
|
|
15223
15510
|
}
|
|
15224
|
-
function
|
|
15511
|
+
function nh() {
|
|
15225
15512
|
return Go;
|
|
15226
15513
|
}
|
|
15227
|
-
function
|
|
15514
|
+
function sh(e) {
|
|
15228
15515
|
if (!Object.hasOwn(pe, e))
|
|
15229
15516
|
throw new Error(
|
|
15230
15517
|
`Unknown component '${e}'. Available: ${Object.keys(pe).join(", ")}`
|
|
@@ -15232,7 +15519,7 @@ function th(e) {
|
|
|
15232
15519
|
const t = { ...pe[e] };
|
|
15233
15520
|
return delete t.example, t;
|
|
15234
15521
|
}
|
|
15235
|
-
function
|
|
15522
|
+
function ah(e) {
|
|
15236
15523
|
if (!Object.hasOwn(pe, e))
|
|
15237
15524
|
throw new Error(
|
|
15238
15525
|
`Unknown component '${e}'. Available: ${Object.keys(pe).join(", ")}`
|
|
@@ -15243,14 +15530,14 @@ function rh(e) {
|
|
|
15243
15530
|
ou
|
|
15244
15531
|
);
|
|
15245
15532
|
}
|
|
15246
|
-
function
|
|
15533
|
+
function lh(e) {
|
|
15247
15534
|
if (!(e in vt))
|
|
15248
15535
|
throw new Error(
|
|
15249
15536
|
`Unknown action '${e}'. Available: ${Object.keys(vt).join(", ")}`
|
|
15250
15537
|
);
|
|
15251
15538
|
return vt[e];
|
|
15252
15539
|
}
|
|
15253
|
-
function
|
|
15540
|
+
function dh(e) {
|
|
15254
15541
|
if (!(e in it))
|
|
15255
15542
|
throw new Error(
|
|
15256
15543
|
`Unknown function '${e}'. Available: ${Object.keys(it).join(", ")}`
|
|
@@ -15281,7 +15568,7 @@ const su = Yo({
|
|
|
15281
15568
|
supportsStandardDirectives: !1,
|
|
15282
15569
|
validateSchema: Ko
|
|
15283
15570
|
});
|
|
15284
|
-
function
|
|
15571
|
+
function ch(e) {
|
|
15285
15572
|
const t = [], r = e.elements ?? {}, i = e.root;
|
|
15286
15573
|
i && !(i in r) && t.push(`Root element '${i}' not found in elements map`);
|
|
15287
15574
|
for (const [o, n] of Object.entries(r)) {
|
|
@@ -15292,23 +15579,28 @@ function nh(e) {
|
|
|
15292
15579
|
}
|
|
15293
15580
|
const l = pe[a], d = l.propsSchema;
|
|
15294
15581
|
if (d) {
|
|
15295
|
-
const
|
|
15296
|
-
for (const
|
|
15582
|
+
const b = n.props ?? {};
|
|
15583
|
+
for (const v of Ko(
|
|
15297
15584
|
su.preparePropsSchema(d),
|
|
15298
|
-
|
|
15585
|
+
b
|
|
15299
15586
|
))
|
|
15300
|
-
t.push(`Element '${o}': ${
|
|
15587
|
+
t.push(`Element '${o}': ${v}`);
|
|
15301
15588
|
}
|
|
15302
15589
|
const c = n.on ?? {}, f = l.events ?? [];
|
|
15303
|
-
for (const
|
|
15304
|
-
f.includes(
|
|
15305
|
-
`Element '${o}': unknown event '${
|
|
15590
|
+
for (const b of Object.keys(c))
|
|
15591
|
+
f.includes(b) || t.push(
|
|
15592
|
+
`Element '${o}': unknown event '${b}'. Valid: ${f.join(", ")}`
|
|
15306
15593
|
);
|
|
15307
15594
|
(n.children ?? []).length > 0 && !l.acceptsChildren && t.push(`Element '${o}': '${a}' does not accept children`);
|
|
15595
|
+
const k = n.slots ?? {}, w = l.slots ?? [];
|
|
15596
|
+
for (const b of Object.keys(k))
|
|
15597
|
+
w.includes(b) || t.push(
|
|
15598
|
+
`Element '${o}': unknown slot '${b}'. Valid: ${w.join(", ")}`
|
|
15599
|
+
);
|
|
15308
15600
|
}
|
|
15309
15601
|
return t;
|
|
15310
15602
|
}
|
|
15311
|
-
function
|
|
15603
|
+
function ph(e) {
|
|
15312
15604
|
return {
|
|
15313
15605
|
...Xo(e.root, e.state),
|
|
15314
15606
|
platform: "mobile",
|
|
@@ -15318,108 +15610,113 @@ function sh(e) {
|
|
|
15318
15610
|
}
|
|
15319
15611
|
export {
|
|
15320
15612
|
uu as ActionCard,
|
|
15321
|
-
fu as
|
|
15322
|
-
hu as
|
|
15323
|
-
mu as
|
|
15324
|
-
gu as
|
|
15325
|
-
yu as
|
|
15326
|
-
bu as
|
|
15613
|
+
fu as ActionSheet,
|
|
15614
|
+
hu as Anchor,
|
|
15615
|
+
mu as Animation,
|
|
15616
|
+
gu as Avatar,
|
|
15617
|
+
yu as AvatarStack,
|
|
15618
|
+
bu as Badge,
|
|
15619
|
+
$u as Button,
|
|
15327
15620
|
tu as CATALOG_NAME,
|
|
15328
15621
|
ru as CATALOG_VERSION,
|
|
15329
|
-
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15622
|
+
vu as Card,
|
|
15623
|
+
Su as Checkbox,
|
|
15624
|
+
wu as CheckboxGroup,
|
|
15625
|
+
ku as Chip,
|
|
15626
|
+
Ou as Country,
|
|
15627
|
+
Cu as Currency,
|
|
15628
|
+
Pu as Date,
|
|
15629
|
+
_u as DateRange,
|
|
15630
|
+
Vu as DateTimePicker,
|
|
15631
|
+
Du as Divider,
|
|
15632
|
+
Fu as Email,
|
|
15633
|
+
ju as ExpansionPanel,
|
|
15634
|
+
Ru as FileViewerButton,
|
|
15635
|
+
Tu as FileViewerPressable,
|
|
15636
|
+
Iu as FloatingButton,
|
|
15637
|
+
Eu as Form,
|
|
15638
|
+
xu as Group,
|
|
15639
|
+
Nu as HStack,
|
|
15640
|
+
Au as Hidden,
|
|
15641
|
+
zu as Icon,
|
|
15642
|
+
Mu as Image,
|
|
15643
|
+
Lu as InputText,
|
|
15644
|
+
Bu as Label,
|
|
15645
|
+
qu as List,
|
|
15646
|
+
Hu as ListItem,
|
|
15647
|
+
Wu as ModalSheet,
|
|
15648
|
+
Uu as Notice,
|
|
15649
|
+
Gu as Number,
|
|
15650
|
+
Ku as ObjectFooter,
|
|
15651
|
+
Ju as ObjectItem,
|
|
15652
|
+
Yu as ObjectListView,
|
|
15653
|
+
Zu as ObjectListViewCard,
|
|
15654
|
+
Xu as PageCondensedFooter,
|
|
15655
|
+
Qu as PageCondensedHeader,
|
|
15656
|
+
ef as PageContent,
|
|
15657
|
+
tf as PageFilterHeader,
|
|
15658
|
+
rf as PageFooter,
|
|
15659
|
+
of as PageHeader,
|
|
15660
|
+
nf as PageModalActionHeader,
|
|
15661
|
+
sf as Password,
|
|
15662
|
+
af as Percentage,
|
|
15663
|
+
lf as Phone,
|
|
15664
|
+
df as Pressable,
|
|
15665
|
+
cf as ProgressIndicator,
|
|
15666
|
+
pf as Radio,
|
|
15667
|
+
uf as RadioGroup,
|
|
15668
|
+
ff as Search,
|
|
15669
|
+
hf as SectionHeader,
|
|
15670
|
+
mf as Select,
|
|
15671
|
+
gf as SelectChips,
|
|
15672
|
+
yf as Signature,
|
|
15673
|
+
bf as Sin,
|
|
15674
|
+
$f as Slider,
|
|
15675
|
+
vf as SliderRange,
|
|
15676
|
+
Sf as SnackBar,
|
|
15677
|
+
wf as Spacer,
|
|
15678
|
+
kf as Spinner,
|
|
15679
|
+
Of as Ssn,
|
|
15680
|
+
Cf as Status,
|
|
15681
|
+
Pf as StatusBar,
|
|
15682
|
+
_f as Switch,
|
|
15683
|
+
Vf as Tabs,
|
|
15684
|
+
Df as Text,
|
|
15685
|
+
Ff as Textarea,
|
|
15686
|
+
jf as Time,
|
|
15687
|
+
Rf as TimeRange,
|
|
15688
|
+
Tf as Tip,
|
|
15689
|
+
If as VStack,
|
|
15690
|
+
Ef as Widget,
|
|
15691
|
+
xf as WorkEmail,
|
|
15692
|
+
Af as copyToClipboard,
|
|
15693
|
+
Wf as currencyFormat,
|
|
15694
|
+
Uf as currencyGetCurrencyCodeByCountryCode,
|
|
15695
|
+
Gf as currencyGetCurrencyNameByCode,
|
|
15696
|
+
Kf as currencyGetCurrencySymbol,
|
|
15697
|
+
Jf as currencyIsConvertableToCurrency,
|
|
15698
|
+
Yf as currencyToMoney,
|
|
15699
|
+
Zf as dateTimeAdd,
|
|
15700
|
+
Xf as dateTimeFormat,
|
|
15701
|
+
lh as getAction,
|
|
15702
|
+
rh as getActions,
|
|
15703
|
+
sh as getComponent,
|
|
15704
|
+
ah as getComponentMarkdown,
|
|
15705
|
+
th as getComponents,
|
|
15706
|
+
oh as getComputedFunctions,
|
|
15707
|
+
nh as getDefs,
|
|
15708
|
+
dh as getFunction,
|
|
15709
|
+
ih as getFunctions,
|
|
15710
|
+
Nf as goBack,
|
|
15711
|
+
zf as linking_openURL,
|
|
15712
|
+
Mf as navigate,
|
|
15713
|
+
Lf as openChatAssistantWithMessage,
|
|
15714
|
+
Qf as platformIsAndroid,
|
|
15715
|
+
eh as platformIsIOS,
|
|
15716
|
+
Bf as push,
|
|
15717
|
+
ph as render,
|
|
15718
|
+
qf as setState,
|
|
15719
|
+
Hf as triggerApi,
|
|
15720
|
+
ch as validate
|
|
15424
15721
|
};
|
|
15425
15722
|
//# sourceMappingURL=index.js.map
|