@nxtedition/types 23.0.18 → 23.0.20

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.
@@ -0,0 +1,3655 @@
1
+ import __typia from "typia";
2
+ export const isPanelDomainPanelRecord = input => {
3
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io6(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io10(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io10(input.expand)));
4
+ const $io1 = input => Object.keys(input).every(key => {
5
+ const value = input[key];
6
+ if (undefined === value)
7
+ return true;
8
+ return "object" === typeof value && null !== value && $io2(value);
9
+ });
10
+ const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io3(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io5(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
11
+ const $io3 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && true && Object.keys(input).every(key => {
12
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
13
+ return true;
14
+ const value = input[key];
15
+ if (undefined === value)
16
+ return true;
17
+ if ("number" === typeof Number(key))
18
+ return "string" === typeof value;
19
+ return true;
20
+ });
21
+ const $io4 = input => true;
22
+ const $io5 = input => "string" === typeof input.label && "string" === typeof input.path;
23
+ const $io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
24
+ const $io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
25
+ const $io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io9(input.widget)));
26
+ const $io9 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
27
+ const $io10 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
28
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
29
+ return true;
30
+ const value = input[key];
31
+ if (undefined === value)
32
+ return true;
33
+ if ("number" === typeof Number(key))
34
+ return "string" === typeof value;
35
+ return true;
36
+ });
37
+ const $iu0 = input => (() => {
38
+ if (undefined !== input.type)
39
+ return $io7(input);
40
+ else if (undefined !== input.property)
41
+ return $io8(input);
42
+ else
43
+ return false;
44
+ })();
45
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
46
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
47
+ };
48
+ export const assertPanelDomainPanelRecord = (input, errorFactory) => {
49
+ const __is = input => {
50
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io6(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io10(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io10(input.expand)));
51
+ const $io1 = input => Object.keys(input).every(key => {
52
+ const value = input[key];
53
+ if (undefined === value)
54
+ return true;
55
+ return "object" === typeof value && null !== value && $io2(value);
56
+ });
57
+ const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io3(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io5(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
58
+ const $io3 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && true && Object.keys(input).every(key => {
59
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
60
+ return true;
61
+ const value = input[key];
62
+ if (undefined === value)
63
+ return true;
64
+ if ("number" === typeof Number(key))
65
+ return "string" === typeof value;
66
+ return true;
67
+ });
68
+ const $io4 = input => true;
69
+ const $io5 = input => "string" === typeof input.label && "string" === typeof input.path;
70
+ const $io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
71
+ const $io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
72
+ const $io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io9(input.widget)));
73
+ const $io9 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
74
+ const $io10 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
75
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
76
+ return true;
77
+ const value = input[key];
78
+ if (undefined === value)
79
+ return true;
80
+ if ("number" === typeof Number(key))
81
+ return "string" === typeof value;
82
+ return true;
83
+ });
84
+ const $iu0 = input => (() => {
85
+ if (undefined !== input.type)
86
+ return $io7(input);
87
+ else if (undefined !== input.property)
88
+ return $io8(input);
89
+ else
90
+ return false;
91
+ })();
92
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
93
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
94
+ };
95
+ if (false === __is(input))
96
+ ((input, _path, _exceptionable = true) => {
97
+ const $guard = __typia.createAssert.guard;
98
+ const $join = __typia.createAssert.join;
99
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
100
+ path: _path + ".title",
101
+ expected: "(string | undefined)",
102
+ value: input.title
103
+ }, errorFactory)) && ((null !== input.supports || $guard(_exceptionable, {
104
+ path: _path + ".supports",
105
+ expected: "(Array<string> | string | undefined)",
106
+ value: input.supports
107
+ }, errorFactory)) && (undefined === input.supports || "string" === typeof input.supports || (Array.isArray(input.supports) || $guard(_exceptionable, {
108
+ path: _path + ".supports",
109
+ expected: "(Array<string> | string | undefined)",
110
+ value: input.supports
111
+ }, errorFactory)) && input.supports.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
112
+ path: _path + ".supports[" + _index1 + "]",
113
+ expected: "string",
114
+ value: elem
115
+ }, errorFactory)) || $guard(_exceptionable, {
116
+ path: _path + ".supports",
117
+ expected: "(Array<string> | string | undefined)",
118
+ value: input.supports
119
+ }, errorFactory))) && (undefined === input.priority || "number" === typeof input.priority || $guard(_exceptionable, {
120
+ path: _path + ".priority",
121
+ expected: "(number | undefined)",
122
+ value: input.priority
123
+ }, errorFactory)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority || $guard(_exceptionable, {
124
+ path: _path + ".editorPriority",
125
+ expected: "(number | undefined)",
126
+ value: input.editorPriority
127
+ }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
128
+ path: _path + ".properties",
129
+ expected: "(__type | undefined)",
130
+ value: input.properties
131
+ }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
132
+ path: _path + ".properties",
133
+ expected: "(__type | undefined)",
134
+ value: input.properties
135
+ }, errorFactory)) && (undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || $guard(_exceptionable, {
136
+ path: _path + ".layout",
137
+ expected: "(__type.o2 | undefined)",
138
+ value: input.layout
139
+ }, errorFactory)) && $ao6(input.layout, _path + ".layout", true && _exceptionable) || $guard(_exceptionable, {
140
+ path: _path + ".layout",
141
+ expected: "(__type.o2 | undefined)",
142
+ value: input.layout
143
+ }, errorFactory)) && ((null !== input.filter || $guard(_exceptionable, {
144
+ path: _path + ".filter",
145
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
146
+ value: input.filter
147
+ }, errorFactory)) && (undefined === input.filter || "string" === typeof input.filter || ("object" === typeof input.filter && null !== input.filter || $guard(_exceptionable, {
148
+ path: _path + ".filter",
149
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
150
+ value: input.filter
151
+ }, errorFactory)) && $ao10(input.filter, _path + ".filter", true && _exceptionable) || $guard(_exceptionable, {
152
+ path: _path + ".filter",
153
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
154
+ value: input.filter
155
+ }, errorFactory))) && ((null !== input.expand || $guard(_exceptionable, {
156
+ path: _path + ".expand",
157
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
158
+ value: input.expand
159
+ }, errorFactory)) && (undefined === input.expand || "string" === typeof input.expand || ("object" === typeof input.expand && null !== input.expand || $guard(_exceptionable, {
160
+ path: _path + ".expand",
161
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
162
+ value: input.expand
163
+ }, errorFactory)) && $ao10(input.expand, _path + ".expand", true && _exceptionable) || $guard(_exceptionable, {
164
+ path: _path + ".expand",
165
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
166
+ value: input.expand
167
+ }, errorFactory)));
168
+ const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
169
+ const value = input[key];
170
+ if (undefined === value)
171
+ return true;
172
+ return ("object" === typeof value && null !== value || $guard(_exceptionable, {
173
+ path: _path + $join(key),
174
+ expected: "PanelProperty",
175
+ value: value
176
+ }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
177
+ path: _path + $join(key),
178
+ expected: "PanelProperty",
179
+ value: value
180
+ }, errorFactory);
181
+ });
182
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
183
+ path: _path + ".type",
184
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
185
+ value: input.type
186
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
187
+ path: _path + ".title",
188
+ expected: "(string | undefined)",
189
+ value: input.title
190
+ }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
191
+ path: _path + ".description",
192
+ expected: "(string | undefined)",
193
+ value: input.description
194
+ }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
195
+ path: _path + ".domain",
196
+ expected: "(string | undefined)",
197
+ value: input.domain
198
+ }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
199
+ path: _path + ".path",
200
+ expected: "(string | undefined)",
201
+ value: input.path
202
+ }, errorFactory)) && ((null !== input.computed || $guard(_exceptionable, {
203
+ path: _path + ".computed",
204
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
205
+ value: input.computed
206
+ }, errorFactory)) && (undefined === input.computed || "string" === typeof input.computed || ("object" === typeof input.computed && null !== input.computed || $guard(_exceptionable, {
207
+ path: _path + ".computed",
208
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
209
+ value: input.computed
210
+ }, errorFactory)) && $ao3(input.computed, _path + ".computed", true && _exceptionable) || $guard(_exceptionable, {
211
+ path: _path + ".computed",
212
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
213
+ value: input.computed
214
+ }, errorFactory))) && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
215
+ path: _path + ".index",
216
+ expected: "(__type.o1 | undefined)",
217
+ value: input.index
218
+ }, errorFactory)) && $ao5(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
219
+ path: _path + ".index",
220
+ expected: "(__type.o1 | undefined)",
221
+ value: input.index
222
+ }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
223
+ path: _path + ".required",
224
+ expected: "(boolean | undefined)",
225
+ value: input.required
226
+ }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
227
+ path: _path + ".oneOf",
228
+ expected: "(Array<unknown> | undefined)",
229
+ value: input.oneOf
230
+ }, errorFactory));
231
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
232
+ path: _path + ".length",
233
+ expected: "number",
234
+ value: input.length
235
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
236
+ path: _path + ".__context",
237
+ expected: "(object | undefined)",
238
+ value: input.__context
239
+ }, errorFactory)) && $ao4(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
240
+ path: _path + ".__context",
241
+ expected: "(object | undefined)",
242
+ value: input.__context
243
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
244
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
245
+ return true;
246
+ const value = input[key];
247
+ if (undefined === value)
248
+ return true;
249
+ if ("number" === typeof Number(key))
250
+ return "string" === typeof value || $guard(_exceptionable, {
251
+ path: _path + $join(key),
252
+ expected: "string",
253
+ value: value
254
+ }, errorFactory);
255
+ return true;
256
+ }));
257
+ const $ao4 = (input, _path, _exceptionable = true) => true;
258
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
259
+ path: _path + ".label",
260
+ expected: "string",
261
+ value: input.label
262
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
263
+ path: _path + ".path",
264
+ expected: "string",
265
+ value: input.path
266
+ }, errorFactory));
267
+ const $ao6 = (input, _path, _exceptionable = true) => (null !== input.panel || $guard(_exceptionable, {
268
+ path: _path + ".panel",
269
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
270
+ value: input.panel
271
+ }, errorFactory)) && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($aa0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
272
+ path: _path + ".panel",
273
+ expected: "Array<PanelLayout>",
274
+ value: input.panel
275
+ }, errorFactory)) || "object" === typeof input.panel && null !== input.panel && $au0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
276
+ path: _path + ".panel",
277
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
278
+ value: input.panel
279
+ }, errorFactory)) || $guard(_exceptionable, {
280
+ path: _path + ".panel",
281
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
282
+ value: input.panel
283
+ }, errorFactory)) && ((null !== input.editor || $guard(_exceptionable, {
284
+ path: _path + ".editor",
285
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
286
+ value: input.editor
287
+ }, errorFactory)) && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($aa0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
288
+ path: _path + ".editor",
289
+ expected: "Array<PanelLayout>",
290
+ value: input.editor
291
+ }, errorFactory)) || "object" === typeof input.editor && null !== input.editor && $au0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
292
+ path: _path + ".editor",
293
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
294
+ value: input.editor
295
+ }, errorFactory)) || $guard(_exceptionable, {
296
+ path: _path + ".editor",
297
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
298
+ value: input.editor
299
+ }, errorFactory)));
300
+ const $ao7 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
301
+ path: _path + ".type",
302
+ expected: "\"divider\"",
303
+ value: input.type
304
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
305
+ path: _path + ".title",
306
+ expected: "(string | undefined)",
307
+ value: input.title
308
+ }, errorFactory));
309
+ const $ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
310
+ path: _path + ".property",
311
+ expected: "string",
312
+ value: input.property
313
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
314
+ path: _path + ".width",
315
+ expected: "(number | string | undefined)",
316
+ value: input.width
317
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
318
+ path: _path + ".widget",
319
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
320
+ value: input.widget
321
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
322
+ path: _path + ".widget",
323
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
324
+ value: input.widget
325
+ }, errorFactory)) && $ao9(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
326
+ path: _path + ".widget",
327
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
328
+ value: input.widget
329
+ }, errorFactory)));
330
+ const $ao9 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
331
+ path: _path + ".type",
332
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
333
+ value: input.type
334
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
335
+ path: _path + ".readOnly",
336
+ expected: "(boolean | undefined)",
337
+ value: input.readOnly
338
+ }, errorFactory));
339
+ const $ao10 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
340
+ path: _path + ".length",
341
+ expected: "number",
342
+ value: input.length
343
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
344
+ path: _path + ".__context",
345
+ expected: "(object | undefined)",
346
+ value: input.__context
347
+ }, errorFactory)) && $ao4(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
348
+ path: _path + ".__context",
349
+ expected: "(object | undefined)",
350
+ value: input.__context
351
+ }, errorFactory)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue || $guard(_exceptionable, {
352
+ path: _path + ".__returnValue",
353
+ expected: "(string | undefined)",
354
+ value: input.__returnValue
355
+ }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
356
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
357
+ return true;
358
+ const value = input[key];
359
+ if (undefined === value)
360
+ return true;
361
+ if ("number" === typeof Number(key))
362
+ return "string" === typeof value || $guard(_exceptionable, {
363
+ path: _path + $join(key),
364
+ expected: "string",
365
+ value: value
366
+ }, errorFactory);
367
+ return true;
368
+ }));
369
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
370
+ if (undefined !== input.type)
371
+ return $ao7(input, _path, true && _exceptionable);
372
+ else if (undefined !== input.property)
373
+ return $ao8(input, _path, true && _exceptionable);
374
+ else
375
+ return $guard(_exceptionable, {
376
+ path: _path,
377
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
378
+ value: input
379
+ }, errorFactory);
380
+ })();
381
+ const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
382
+ path: _path + "[" + _index2 + "]",
383
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
384
+ value: elem
385
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
386
+ path: _path + "[" + _index2 + "]",
387
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
388
+ value: elem
389
+ }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
390
+ path: _path + "[" + _index2 + "]",
391
+ expected: "Array<PanelLayout>",
392
+ value: elem
393
+ }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
394
+ path: _path + "[" + _index2 + "]",
395
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
396
+ value: elem
397
+ }, errorFactory)) || $guard(_exceptionable, {
398
+ path: _path + "[" + _index2 + "]",
399
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
400
+ value: elem
401
+ }, errorFactory)));
402
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
403
+ path: _path + "",
404
+ expected: "PanelDomainPanelRecord",
405
+ value: input
406
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
407
+ path: _path + "",
408
+ expected: "PanelDomainPanelRecord",
409
+ value: input
410
+ }, errorFactory);
411
+ })(input, "$input", true);
412
+ return input;
413
+ };
414
+ export const randomPanelDomainPanelRecord = generator => {
415
+ const $generator = __typia.createRandom.generator;
416
+ const $pick = __typia.createRandom.pick;
417
+ const $ro0 = (_recursive = false, _depth = 0) => ({
418
+ title: $pick([
419
+ () => undefined,
420
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
421
+ ])(),
422
+ supports: $pick([
423
+ () => undefined,
424
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
425
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
426
+ ])(),
427
+ priority: $pick([
428
+ () => undefined,
429
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
430
+ ])(),
431
+ editorPriority: $pick([
432
+ () => undefined,
433
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
434
+ ])(),
435
+ properties: $pick([
436
+ () => undefined,
437
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
438
+ ])(),
439
+ layout: $pick([
440
+ () => undefined,
441
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
442
+ ])(),
443
+ filter: $pick([
444
+ () => undefined,
445
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
446
+ () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
447
+ ])(),
448
+ expand: $pick([
449
+ () => undefined,
450
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
451
+ () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
452
+ ])()
453
+ });
454
+ const $ro1 = (_recursive = false, _depth = 0) => {
455
+ const output = {};
456
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro2(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
457
+ return output;
458
+ };
459
+ const $ro2 = (_recursive = false, _depth = 0) => ({
460
+ type: $pick([
461
+ () => "string",
462
+ () => "number",
463
+ () => "boolean",
464
+ () => "object",
465
+ () => "array",
466
+ () => "asset",
467
+ () => "datetime",
468
+ () => "rpc"
469
+ ])(),
470
+ title: $pick([
471
+ () => undefined,
472
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
473
+ ])(),
474
+ description: $pick([
475
+ () => undefined,
476
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
477
+ ])(),
478
+ domain: $pick([
479
+ () => undefined,
480
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
481
+ ])(),
482
+ path: $pick([
483
+ () => undefined,
484
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
485
+ ])(),
486
+ computed: $pick([
487
+ () => undefined,
488
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
489
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
490
+ ])(),
491
+ index: $pick([
492
+ () => undefined,
493
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
494
+ ])(),
495
+ required: $pick([
496
+ () => undefined,
497
+ () => (generator?.boolean ?? $generator.boolean)()
498
+ ])(),
499
+ oneOf: $pick([
500
+ () => undefined,
501
+ () => (generator?.array ?? $generator.array)(() => "any type used...")
502
+ ])()
503
+ });
504
+ const $ro3 = (_recursive = false, _depth = 0) => {
505
+ const output = {
506
+ length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
507
+ __context: $pick([
508
+ () => undefined,
509
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
510
+ ])(),
511
+ __returnValue: $pick([
512
+ () => "any type used...",
513
+ () => undefined
514
+ ])()
515
+ };
516
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
517
+ return output;
518
+ };
519
+ const $ro4 = (_recursive = false, _depth = 0) => {};
520
+ const $ro5 = (_recursive = false, _depth = 0) => ({
521
+ label: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
522
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
523
+ });
524
+ const $ro6 = (_recursive = false, _depth = 0) => ({
525
+ panel: $pick([
526
+ () => undefined,
527
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
528
+ () => $ra0(generator?.length ?? $generator.length, false, true, 0),
529
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth),
530
+ () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
531
+ ])(),
532
+ editor: $pick([
533
+ () => undefined,
534
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
535
+ () => $ra0(generator?.length ?? $generator.length, false, true, 0),
536
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth),
537
+ () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
538
+ ])()
539
+ });
540
+ const $ro7 = (_recursive = false, _depth = 0) => ({
541
+ type: "divider",
542
+ title: $pick([
543
+ () => undefined,
544
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
545
+ ])()
546
+ });
547
+ const $ro8 = (_recursive = false, _depth = 0) => ({
548
+ property: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
549
+ width: $pick([
550
+ () => undefined,
551
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
552
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
553
+ ])(),
554
+ widget: $pick([
555
+ () => undefined,
556
+ () => "default",
557
+ () => "assetTypes",
558
+ () => "assetTags",
559
+ () => "geopoint",
560
+ () => "poster",
561
+ () => "textarea",
562
+ () => "tags",
563
+ () => $ro9(_recursive, _recursive ? 1 + _depth : _depth)
564
+ ])()
565
+ });
566
+ const $ro9 = (_recursive = false, _depth = 0) => ({
567
+ type: $pick([
568
+ () => "default",
569
+ () => "assetTypes",
570
+ () => "assetTags",
571
+ () => "geopoint",
572
+ () => "poster",
573
+ () => "textarea",
574
+ () => "tags"
575
+ ])(),
576
+ readOnly: $pick([
577
+ () => undefined,
578
+ () => (generator?.boolean ?? $generator.boolean)()
579
+ ])()
580
+ });
581
+ const $ro10 = (_recursive = false, _depth = 0) => {
582
+ const output = {
583
+ length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
584
+ __context: $pick([
585
+ () => undefined,
586
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
587
+ ])(),
588
+ __returnValue: $pick([
589
+ () => undefined,
590
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
591
+ ])()
592
+ };
593
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
594
+ return output;
595
+ };
596
+ const $ra0 = (length, unique, _recursive = true, _depth = 0) => 5 >= _depth ? (generator?.array ?? $generator.array)(() => $pick([
597
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
598
+ () => $ra0(generator?.length ?? $generator.length, false, true, 1 + _depth),
599
+ () => $ro7(true, _recursive ? 1 + _depth : _depth),
600
+ () => $ro8(true, _recursive ? 1 + _depth : _depth)
601
+ ])(), length, unique) : [];
602
+ return $ro0();
603
+ };
604
+ export const assertGuardPanelDomainPanelRecord = (input, errorFactory) => {
605
+ const __is = input => {
606
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io6(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io10(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io10(input.expand)));
607
+ const $io1 = input => Object.keys(input).every(key => {
608
+ const value = input[key];
609
+ if (undefined === value)
610
+ return true;
611
+ return "object" === typeof value && null !== value && $io2(value);
612
+ });
613
+ const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io3(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io5(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
614
+ const $io3 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && true && Object.keys(input).every(key => {
615
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
616
+ return true;
617
+ const value = input[key];
618
+ if (undefined === value)
619
+ return true;
620
+ if ("number" === typeof Number(key))
621
+ return "string" === typeof value;
622
+ return true;
623
+ });
624
+ const $io4 = input => true;
625
+ const $io5 = input => "string" === typeof input.label && "string" === typeof input.path;
626
+ const $io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
627
+ const $io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
628
+ const $io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io9(input.widget)));
629
+ const $io9 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
630
+ const $io10 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
631
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
632
+ return true;
633
+ const value = input[key];
634
+ if (undefined === value)
635
+ return true;
636
+ if ("number" === typeof Number(key))
637
+ return "string" === typeof value;
638
+ return true;
639
+ });
640
+ const $iu0 = input => (() => {
641
+ if (undefined !== input.type)
642
+ return $io7(input);
643
+ else if (undefined !== input.property)
644
+ return $io8(input);
645
+ else
646
+ return false;
647
+ })();
648
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
649
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
650
+ };
651
+ if (false === __is(input))
652
+ ((input, _path, _exceptionable = true) => {
653
+ const $guard = __typia.createAssertGuard.guard;
654
+ const $join = __typia.createAssertGuard.join;
655
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
656
+ path: _path + ".title",
657
+ expected: "(string | undefined)",
658
+ value: input.title
659
+ }, errorFactory)) && ((null !== input.supports || $guard(_exceptionable, {
660
+ path: _path + ".supports",
661
+ expected: "(Array<string> | string | undefined)",
662
+ value: input.supports
663
+ }, errorFactory)) && (undefined === input.supports || "string" === typeof input.supports || (Array.isArray(input.supports) || $guard(_exceptionable, {
664
+ path: _path + ".supports",
665
+ expected: "(Array<string> | string | undefined)",
666
+ value: input.supports
667
+ }, errorFactory)) && input.supports.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
668
+ path: _path + ".supports[" + _index1 + "]",
669
+ expected: "string",
670
+ value: elem
671
+ }, errorFactory)) || $guard(_exceptionable, {
672
+ path: _path + ".supports",
673
+ expected: "(Array<string> | string | undefined)",
674
+ value: input.supports
675
+ }, errorFactory))) && (undefined === input.priority || "number" === typeof input.priority || $guard(_exceptionable, {
676
+ path: _path + ".priority",
677
+ expected: "(number | undefined)",
678
+ value: input.priority
679
+ }, errorFactory)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority || $guard(_exceptionable, {
680
+ path: _path + ".editorPriority",
681
+ expected: "(number | undefined)",
682
+ value: input.editorPriority
683
+ }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
684
+ path: _path + ".properties",
685
+ expected: "(__type | undefined)",
686
+ value: input.properties
687
+ }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
688
+ path: _path + ".properties",
689
+ expected: "(__type | undefined)",
690
+ value: input.properties
691
+ }, errorFactory)) && (undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || $guard(_exceptionable, {
692
+ path: _path + ".layout",
693
+ expected: "(__type.o2 | undefined)",
694
+ value: input.layout
695
+ }, errorFactory)) && $ao6(input.layout, _path + ".layout", true && _exceptionable) || $guard(_exceptionable, {
696
+ path: _path + ".layout",
697
+ expected: "(__type.o2 | undefined)",
698
+ value: input.layout
699
+ }, errorFactory)) && ((null !== input.filter || $guard(_exceptionable, {
700
+ path: _path + ".filter",
701
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
702
+ value: input.filter
703
+ }, errorFactory)) && (undefined === input.filter || "string" === typeof input.filter || ("object" === typeof input.filter && null !== input.filter || $guard(_exceptionable, {
704
+ path: _path + ".filter",
705
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
706
+ value: input.filter
707
+ }, errorFactory)) && $ao10(input.filter, _path + ".filter", true && _exceptionable) || $guard(_exceptionable, {
708
+ path: _path + ".filter",
709
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
710
+ value: input.filter
711
+ }, errorFactory))) && ((null !== input.expand || $guard(_exceptionable, {
712
+ path: _path + ".expand",
713
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
714
+ value: input.expand
715
+ }, errorFactory)) && (undefined === input.expand || "string" === typeof input.expand || ("object" === typeof input.expand && null !== input.expand || $guard(_exceptionable, {
716
+ path: _path + ".expand",
717
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
718
+ value: input.expand
719
+ }, errorFactory)) && $ao10(input.expand, _path + ".expand", true && _exceptionable) || $guard(_exceptionable, {
720
+ path: _path + ".expand",
721
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
722
+ value: input.expand
723
+ }, errorFactory)));
724
+ const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
725
+ const value = input[key];
726
+ if (undefined === value)
727
+ return true;
728
+ return ("object" === typeof value && null !== value || $guard(_exceptionable, {
729
+ path: _path + $join(key),
730
+ expected: "PanelProperty",
731
+ value: value
732
+ }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
733
+ path: _path + $join(key),
734
+ expected: "PanelProperty",
735
+ value: value
736
+ }, errorFactory);
737
+ });
738
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
739
+ path: _path + ".type",
740
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
741
+ value: input.type
742
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
743
+ path: _path + ".title",
744
+ expected: "(string | undefined)",
745
+ value: input.title
746
+ }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
747
+ path: _path + ".description",
748
+ expected: "(string | undefined)",
749
+ value: input.description
750
+ }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
751
+ path: _path + ".domain",
752
+ expected: "(string | undefined)",
753
+ value: input.domain
754
+ }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
755
+ path: _path + ".path",
756
+ expected: "(string | undefined)",
757
+ value: input.path
758
+ }, errorFactory)) && ((null !== input.computed || $guard(_exceptionable, {
759
+ path: _path + ".computed",
760
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
761
+ value: input.computed
762
+ }, errorFactory)) && (undefined === input.computed || "string" === typeof input.computed || ("object" === typeof input.computed && null !== input.computed || $guard(_exceptionable, {
763
+ path: _path + ".computed",
764
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
765
+ value: input.computed
766
+ }, errorFactory)) && $ao3(input.computed, _path + ".computed", true && _exceptionable) || $guard(_exceptionable, {
767
+ path: _path + ".computed",
768
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
769
+ value: input.computed
770
+ }, errorFactory))) && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
771
+ path: _path + ".index",
772
+ expected: "(__type.o1 | undefined)",
773
+ value: input.index
774
+ }, errorFactory)) && $ao5(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
775
+ path: _path + ".index",
776
+ expected: "(__type.o1 | undefined)",
777
+ value: input.index
778
+ }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
779
+ path: _path + ".required",
780
+ expected: "(boolean | undefined)",
781
+ value: input.required
782
+ }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
783
+ path: _path + ".oneOf",
784
+ expected: "(Array<unknown> | undefined)",
785
+ value: input.oneOf
786
+ }, errorFactory));
787
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
788
+ path: _path + ".length",
789
+ expected: "number",
790
+ value: input.length
791
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
792
+ path: _path + ".__context",
793
+ expected: "(object | undefined)",
794
+ value: input.__context
795
+ }, errorFactory)) && $ao4(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
796
+ path: _path + ".__context",
797
+ expected: "(object | undefined)",
798
+ value: input.__context
799
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
800
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
801
+ return true;
802
+ const value = input[key];
803
+ if (undefined === value)
804
+ return true;
805
+ if ("number" === typeof Number(key))
806
+ return "string" === typeof value || $guard(_exceptionable, {
807
+ path: _path + $join(key),
808
+ expected: "string",
809
+ value: value
810
+ }, errorFactory);
811
+ return true;
812
+ }));
813
+ const $ao4 = (input, _path, _exceptionable = true) => true;
814
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
815
+ path: _path + ".label",
816
+ expected: "string",
817
+ value: input.label
818
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
819
+ path: _path + ".path",
820
+ expected: "string",
821
+ value: input.path
822
+ }, errorFactory));
823
+ const $ao6 = (input, _path, _exceptionable = true) => (null !== input.panel || $guard(_exceptionable, {
824
+ path: _path + ".panel",
825
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
826
+ value: input.panel
827
+ }, errorFactory)) && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($aa0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
828
+ path: _path + ".panel",
829
+ expected: "Array<PanelLayout>",
830
+ value: input.panel
831
+ }, errorFactory)) || "object" === typeof input.panel && null !== input.panel && $au0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
832
+ path: _path + ".panel",
833
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
834
+ value: input.panel
835
+ }, errorFactory)) || $guard(_exceptionable, {
836
+ path: _path + ".panel",
837
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
838
+ value: input.panel
839
+ }, errorFactory)) && ((null !== input.editor || $guard(_exceptionable, {
840
+ path: _path + ".editor",
841
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
842
+ value: input.editor
843
+ }, errorFactory)) && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($aa0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
844
+ path: _path + ".editor",
845
+ expected: "Array<PanelLayout>",
846
+ value: input.editor
847
+ }, errorFactory)) || "object" === typeof input.editor && null !== input.editor && $au0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
848
+ path: _path + ".editor",
849
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
850
+ value: input.editor
851
+ }, errorFactory)) || $guard(_exceptionable, {
852
+ path: _path + ".editor",
853
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
854
+ value: input.editor
855
+ }, errorFactory)));
856
+ const $ao7 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
857
+ path: _path + ".type",
858
+ expected: "\"divider\"",
859
+ value: input.type
860
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
861
+ path: _path + ".title",
862
+ expected: "(string | undefined)",
863
+ value: input.title
864
+ }, errorFactory));
865
+ const $ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
866
+ path: _path + ".property",
867
+ expected: "string",
868
+ value: input.property
869
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
870
+ path: _path + ".width",
871
+ expected: "(number | string | undefined)",
872
+ value: input.width
873
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
874
+ path: _path + ".widget",
875
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
876
+ value: input.widget
877
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
878
+ path: _path + ".widget",
879
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
880
+ value: input.widget
881
+ }, errorFactory)) && $ao9(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
882
+ path: _path + ".widget",
883
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
884
+ value: input.widget
885
+ }, errorFactory)));
886
+ const $ao9 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
887
+ path: _path + ".type",
888
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
889
+ value: input.type
890
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
891
+ path: _path + ".readOnly",
892
+ expected: "(boolean | undefined)",
893
+ value: input.readOnly
894
+ }, errorFactory));
895
+ const $ao10 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
896
+ path: _path + ".length",
897
+ expected: "number",
898
+ value: input.length
899
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
900
+ path: _path + ".__context",
901
+ expected: "(object | undefined)",
902
+ value: input.__context
903
+ }, errorFactory)) && $ao4(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
904
+ path: _path + ".__context",
905
+ expected: "(object | undefined)",
906
+ value: input.__context
907
+ }, errorFactory)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue || $guard(_exceptionable, {
908
+ path: _path + ".__returnValue",
909
+ expected: "(string | undefined)",
910
+ value: input.__returnValue
911
+ }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
912
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
913
+ return true;
914
+ const value = input[key];
915
+ if (undefined === value)
916
+ return true;
917
+ if ("number" === typeof Number(key))
918
+ return "string" === typeof value || $guard(_exceptionable, {
919
+ path: _path + $join(key),
920
+ expected: "string",
921
+ value: value
922
+ }, errorFactory);
923
+ return true;
924
+ }));
925
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
926
+ if (undefined !== input.type)
927
+ return $ao7(input, _path, true && _exceptionable);
928
+ else if (undefined !== input.property)
929
+ return $ao8(input, _path, true && _exceptionable);
930
+ else
931
+ return $guard(_exceptionable, {
932
+ path: _path,
933
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
934
+ value: input
935
+ }, errorFactory);
936
+ })();
937
+ const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
938
+ path: _path + "[" + _index2 + "]",
939
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
940
+ value: elem
941
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
942
+ path: _path + "[" + _index2 + "]",
943
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
944
+ value: elem
945
+ }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
946
+ path: _path + "[" + _index2 + "]",
947
+ expected: "Array<PanelLayout>",
948
+ value: elem
949
+ }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
950
+ path: _path + "[" + _index2 + "]",
951
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
952
+ value: elem
953
+ }, errorFactory)) || $guard(_exceptionable, {
954
+ path: _path + "[" + _index2 + "]",
955
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
956
+ value: elem
957
+ }, errorFactory)));
958
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
959
+ path: _path + "",
960
+ expected: "PanelDomainPanelRecord",
961
+ value: input
962
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
963
+ path: _path + "",
964
+ expected: "PanelDomainPanelRecord",
965
+ value: input
966
+ }, errorFactory);
967
+ })(input, "$input", true);
968
+ };
969
+ export const stringifyPanelDomainPanelRecord = input => {
970
+ const $io1 = input => Object.keys(input).every(key => {
971
+ const value = input[key];
972
+ if (undefined === value)
973
+ return true;
974
+ return "object" === typeof value && null !== value && $io2(value);
975
+ });
976
+ const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io3(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io5(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
977
+ const $io3 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && true && Object.keys(input).every(key => {
978
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
979
+ return true;
980
+ const value = input[key];
981
+ if (undefined === value)
982
+ return true;
983
+ if ("number" === typeof Number(key))
984
+ return "string" === typeof value;
985
+ return true;
986
+ });
987
+ const $io4 = input => true;
988
+ const $io5 = input => "string" === typeof input.label && "string" === typeof input.path;
989
+ const $io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
990
+ const $io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
991
+ const $io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io9(input.widget)));
992
+ const $io9 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
993
+ const $io10 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
994
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
995
+ return true;
996
+ const value = input[key];
997
+ if (undefined === value)
998
+ return true;
999
+ if ("number" === typeof Number(key))
1000
+ return "string" === typeof value;
1001
+ return true;
1002
+ });
1003
+ const $iu0 = input => (() => {
1004
+ if (undefined !== input.type)
1005
+ return $io7(input);
1006
+ else if (undefined !== input.property)
1007
+ return $io8(input);
1008
+ else
1009
+ return false;
1010
+ })();
1011
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1012
+ const $string = __typia.json.createStringify.string;
1013
+ const $throws = __typia.json.createStringify.throws;
1014
+ const $tail = __typia.json.createStringify.tail;
1015
+ const $so0 = input => `{${$tail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.supports ? "" : `"supports":${undefined !== input.supports ? (() => {
1016
+ if ("string" === typeof input.supports)
1017
+ return $string(input.supports);
1018
+ if (Array.isArray(input.supports))
1019
+ return `[${input.supports.map(elem => $string(elem)).join(",")}]`;
1020
+ $throws({
1021
+ expected: "(Array<string> | string | undefined)",
1022
+ value: input.supports
1023
+ });
1024
+ })() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? input.priority : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? input.editorPriority : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? $so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? $so6(input.layout) : undefined},`}${undefined === input.filter ? "" : `"filter":${undefined !== input.filter ? (() => {
1025
+ if ("string" === typeof input.filter)
1026
+ return $string(input.filter);
1027
+ if ("object" === typeof input.filter && null !== input.filter)
1028
+ return $so10(input.filter);
1029
+ $throws({
1030
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1031
+ value: input.filter
1032
+ });
1033
+ })() : undefined},`}${undefined === input.expand ? "" : `"expand":${undefined !== input.expand ? (() => {
1034
+ if ("string" === typeof input.expand)
1035
+ return $string(input.expand);
1036
+ if ("object" === typeof input.expand && null !== input.expand)
1037
+ return $so10(input.expand);
1038
+ $throws({
1039
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1040
+ value: input.expand
1041
+ });
1042
+ })() : undefined}`}`)}}`;
1043
+ const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1044
+ return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
1045
+ const $so2 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed ? "" : `"computed":${undefined !== input.computed ? (() => {
1046
+ if ("string" === typeof input.computed)
1047
+ return $string(input.computed);
1048
+ if ("object" === typeof input.computed && null !== input.computed)
1049
+ return $so3(input.computed);
1050
+ $throws({
1051
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1052
+ value: input.computed
1053
+ });
1054
+ })() : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
1055
+ if ("string" === typeof input.type)
1056
+ return $string(input.type);
1057
+ if ("string" === typeof input.type)
1058
+ return "\"" + input.type + "\"";
1059
+ $throws({
1060
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1061
+ value: input.type
1062
+ });
1063
+ })()}}`;
1064
+ const $so3 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue || "function" === typeof input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? JSON.stringify(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1065
+ return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
1066
+ return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
1067
+ return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
1068
+ const $so6 = input => `{${$tail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
1069
+ if ("string" === typeof input.panel)
1070
+ return $string(input.panel);
1071
+ if (Array.isArray(input.panel))
1072
+ return $sa0(input.panel);
1073
+ if ("object" === typeof input.panel && null !== input.panel)
1074
+ return $su0(input.panel);
1075
+ $throws({
1076
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1077
+ value: input.panel
1078
+ });
1079
+ })() : undefined},`}${undefined === input.editor ? "" : `"editor":${undefined !== input.editor ? (() => {
1080
+ if ("string" === typeof input.editor)
1081
+ return $string(input.editor);
1082
+ if (Array.isArray(input.editor))
1083
+ return $sa0(input.editor);
1084
+ if ("object" === typeof input.editor && null !== input.editor)
1085
+ return $su0(input.editor);
1086
+ $throws({
1087
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1088
+ value: input.editor
1089
+ });
1090
+ })() : undefined}`}`)}}`;
1091
+ const $so7 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
1092
+ if ("string" === typeof input.type)
1093
+ return $string(input.type);
1094
+ if ("string" === typeof input.type)
1095
+ return "\"" + input.type + "\"";
1096
+ $throws({
1097
+ expected: "\"divider\"",
1098
+ value: input.type
1099
+ });
1100
+ })()}}`;
1101
+ const $so8 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
1102
+ if ("string" === typeof input.width)
1103
+ return $string(input.width);
1104
+ if ("number" === typeof input.width)
1105
+ return input.width;
1106
+ $throws({
1107
+ expected: "(number | string | undefined)",
1108
+ value: input.width
1109
+ });
1110
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
1111
+ if ("string" === typeof input.widget)
1112
+ return $string(input.widget);
1113
+ if ("string" === typeof input.widget)
1114
+ return "\"" + input.widget + "\"";
1115
+ if ("object" === typeof input.widget && null !== input.widget)
1116
+ return $so9(input.widget);
1117
+ $throws({
1118
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1119
+ value: input.widget
1120
+ });
1121
+ })() : undefined},`}"property":${$string(input.property)}}`;
1122
+ const $so9 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
1123
+ if ("string" === typeof input.type)
1124
+ return $string(input.type);
1125
+ if ("string" === typeof input.type)
1126
+ return "\"" + input.type + "\"";
1127
+ $throws({
1128
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
1129
+ value: input.type
1130
+ });
1131
+ })()}}`;
1132
+ const $so10 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? $string(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1133
+ return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
1134
+ return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
1135
+ return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
1136
+ const $su0 = input => (() => {
1137
+ if (undefined !== input.type)
1138
+ return $so7(input);
1139
+ else if (undefined !== input.property)
1140
+ return $so8(input);
1141
+ else
1142
+ $throws({
1143
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
1144
+ value: input
1145
+ });
1146
+ })();
1147
+ const $sa0 = input => `[${input.map(elem => (() => {
1148
+ if ("string" === typeof elem)
1149
+ return $string(elem);
1150
+ if (Array.isArray(elem))
1151
+ return $sa0(elem);
1152
+ if ("object" === typeof elem && null !== elem)
1153
+ return $su0(elem);
1154
+ $throws({
1155
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1156
+ value: elem
1157
+ });
1158
+ })()).join(",")}]`;
1159
+ return $so0(input);
1160
+ };
1161
+ export const assertStringifyPanelDomainPanelRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1162
+ const __is = input => {
1163
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority && !Number.isNaN(input.priority)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority && !Number.isNaN(input.editorPriority)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io6(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io10(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io10(input.expand)));
1164
+ const $io1 = input => Object.keys(input).every(key => {
1165
+ const value = input[key];
1166
+ if (undefined === value)
1167
+ return true;
1168
+ return "object" === typeof value && null !== value && $io2(value);
1169
+ });
1170
+ const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io3(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io5(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1171
+ const $io3 = input => "number" === typeof input.length && !Number.isNaN(input.length) && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && true && Object.keys(input).every(key => {
1172
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1173
+ return true;
1174
+ const value = input[key];
1175
+ if (undefined === value)
1176
+ return true;
1177
+ if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
1178
+ return "string" === typeof value;
1179
+ return true;
1180
+ });
1181
+ const $io4 = input => true;
1182
+ const $io5 = input => "string" === typeof input.label && "string" === typeof input.path;
1183
+ const $io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
1184
+ const $io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1185
+ const $io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io9(input.widget)));
1186
+ const $io9 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1187
+ const $io10 = input => "number" === typeof input.length && !Number.isNaN(input.length) && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
1188
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1189
+ return true;
1190
+ const value = input[key];
1191
+ if (undefined === value)
1192
+ return true;
1193
+ if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
1194
+ return "string" === typeof value;
1195
+ return true;
1196
+ });
1197
+ const $iu0 = input => (() => {
1198
+ if (undefined !== input.type)
1199
+ return $io7(input);
1200
+ else if (undefined !== input.property)
1201
+ return $io8(input);
1202
+ else
1203
+ return false;
1204
+ })();
1205
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1206
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1207
+ };
1208
+ if (false === __is(input))
1209
+ ((input, _path, _exceptionable = true) => {
1210
+ const $guard = __typia.json.createAssertStringify.guard;
1211
+ const $join = __typia.json.createAssertStringify.join;
1212
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1213
+ path: _path + ".title",
1214
+ expected: "(string | undefined)",
1215
+ value: input.title
1216
+ }, errorFactory)) && ((null !== input.supports || $guard(_exceptionable, {
1217
+ path: _path + ".supports",
1218
+ expected: "(Array<string> | string | undefined)",
1219
+ value: input.supports
1220
+ }, errorFactory)) && (undefined === input.supports || "string" === typeof input.supports || (Array.isArray(input.supports) || $guard(_exceptionable, {
1221
+ path: _path + ".supports",
1222
+ expected: "(Array<string> | string | undefined)",
1223
+ value: input.supports
1224
+ }, errorFactory)) && input.supports.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
1225
+ path: _path + ".supports[" + _index1 + "]",
1226
+ expected: "string",
1227
+ value: elem
1228
+ }, errorFactory)) || $guard(_exceptionable, {
1229
+ path: _path + ".supports",
1230
+ expected: "(Array<string> | string | undefined)",
1231
+ value: input.supports
1232
+ }, errorFactory))) && (undefined === input.priority || "number" === typeof input.priority && !Number.isNaN(input.priority) || $guard(_exceptionable, {
1233
+ path: _path + ".priority",
1234
+ expected: "(number | undefined)",
1235
+ value: input.priority
1236
+ }, errorFactory)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority && !Number.isNaN(input.editorPriority) || $guard(_exceptionable, {
1237
+ path: _path + ".editorPriority",
1238
+ expected: "(number | undefined)",
1239
+ value: input.editorPriority
1240
+ }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
1241
+ path: _path + ".properties",
1242
+ expected: "(__type | undefined)",
1243
+ value: input.properties
1244
+ }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
1245
+ path: _path + ".properties",
1246
+ expected: "(__type | undefined)",
1247
+ value: input.properties
1248
+ }, errorFactory)) && (undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || $guard(_exceptionable, {
1249
+ path: _path + ".layout",
1250
+ expected: "(__type.o2 | undefined)",
1251
+ value: input.layout
1252
+ }, errorFactory)) && $ao6(input.layout, _path + ".layout", true && _exceptionable) || $guard(_exceptionable, {
1253
+ path: _path + ".layout",
1254
+ expected: "(__type.o2 | undefined)",
1255
+ value: input.layout
1256
+ }, errorFactory)) && ((null !== input.filter || $guard(_exceptionable, {
1257
+ path: _path + ".filter",
1258
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1259
+ value: input.filter
1260
+ }, errorFactory)) && (undefined === input.filter || "string" === typeof input.filter || ("object" === typeof input.filter && null !== input.filter || $guard(_exceptionable, {
1261
+ path: _path + ".filter",
1262
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1263
+ value: input.filter
1264
+ }, errorFactory)) && $ao10(input.filter, _path + ".filter", true && _exceptionable) || $guard(_exceptionable, {
1265
+ path: _path + ".filter",
1266
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1267
+ value: input.filter
1268
+ }, errorFactory))) && ((null !== input.expand || $guard(_exceptionable, {
1269
+ path: _path + ".expand",
1270
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1271
+ value: input.expand
1272
+ }, errorFactory)) && (undefined === input.expand || "string" === typeof input.expand || ("object" === typeof input.expand && null !== input.expand || $guard(_exceptionable, {
1273
+ path: _path + ".expand",
1274
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1275
+ value: input.expand
1276
+ }, errorFactory)) && $ao10(input.expand, _path + ".expand", true && _exceptionable) || $guard(_exceptionable, {
1277
+ path: _path + ".expand",
1278
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1279
+ value: input.expand
1280
+ }, errorFactory)));
1281
+ const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1282
+ const value = input[key];
1283
+ if (undefined === value)
1284
+ return true;
1285
+ return ("object" === typeof value && null !== value || $guard(_exceptionable, {
1286
+ path: _path + $join(key),
1287
+ expected: "PanelProperty",
1288
+ value: value
1289
+ }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1290
+ path: _path + $join(key),
1291
+ expected: "PanelProperty",
1292
+ value: value
1293
+ }, errorFactory);
1294
+ });
1295
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1296
+ path: _path + ".type",
1297
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1298
+ value: input.type
1299
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1300
+ path: _path + ".title",
1301
+ expected: "(string | undefined)",
1302
+ value: input.title
1303
+ }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1304
+ path: _path + ".description",
1305
+ expected: "(string | undefined)",
1306
+ value: input.description
1307
+ }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1308
+ path: _path + ".domain",
1309
+ expected: "(string | undefined)",
1310
+ value: input.domain
1311
+ }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1312
+ path: _path + ".path",
1313
+ expected: "(string | undefined)",
1314
+ value: input.path
1315
+ }, errorFactory)) && ((null !== input.computed || $guard(_exceptionable, {
1316
+ path: _path + ".computed",
1317
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1318
+ value: input.computed
1319
+ }, errorFactory)) && (undefined === input.computed || "string" === typeof input.computed || ("object" === typeof input.computed && null !== input.computed || $guard(_exceptionable, {
1320
+ path: _path + ".computed",
1321
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1322
+ value: input.computed
1323
+ }, errorFactory)) && $ao3(input.computed, _path + ".computed", true && _exceptionable) || $guard(_exceptionable, {
1324
+ path: _path + ".computed",
1325
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1326
+ value: input.computed
1327
+ }, errorFactory))) && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1328
+ path: _path + ".index",
1329
+ expected: "(__type.o1 | undefined)",
1330
+ value: input.index
1331
+ }, errorFactory)) && $ao5(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1332
+ path: _path + ".index",
1333
+ expected: "(__type.o1 | undefined)",
1334
+ value: input.index
1335
+ }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1336
+ path: _path + ".required",
1337
+ expected: "(boolean | undefined)",
1338
+ value: input.required
1339
+ }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1340
+ path: _path + ".oneOf",
1341
+ expected: "(Array<unknown> | undefined)",
1342
+ value: input.oneOf
1343
+ }, errorFactory));
1344
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === typeof input.length && !Number.isNaN(input.length) || $guard(_exceptionable, {
1345
+ path: _path + ".length",
1346
+ expected: "number",
1347
+ value: input.length
1348
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
1349
+ path: _path + ".__context",
1350
+ expected: "(object | undefined)",
1351
+ value: input.__context
1352
+ }, errorFactory)) && $ao4(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
1353
+ path: _path + ".__context",
1354
+ expected: "(object | undefined)",
1355
+ value: input.__context
1356
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
1357
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1358
+ return true;
1359
+ const value = input[key];
1360
+ if (undefined === value)
1361
+ return true;
1362
+ if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
1363
+ return "string" === typeof value || $guard(_exceptionable, {
1364
+ path: _path + $join(key),
1365
+ expected: "string",
1366
+ value: value
1367
+ }, errorFactory);
1368
+ return true;
1369
+ }));
1370
+ const $ao4 = (input, _path, _exceptionable = true) => true;
1371
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
1372
+ path: _path + ".label",
1373
+ expected: "string",
1374
+ value: input.label
1375
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1376
+ path: _path + ".path",
1377
+ expected: "string",
1378
+ value: input.path
1379
+ }, errorFactory));
1380
+ const $ao6 = (input, _path, _exceptionable = true) => (null !== input.panel || $guard(_exceptionable, {
1381
+ path: _path + ".panel",
1382
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1383
+ value: input.panel
1384
+ }, errorFactory)) && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($aa0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
1385
+ path: _path + ".panel",
1386
+ expected: "Array<PanelLayout>",
1387
+ value: input.panel
1388
+ }, errorFactory)) || "object" === typeof input.panel && null !== input.panel && $au0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
1389
+ path: _path + ".panel",
1390
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1391
+ value: input.panel
1392
+ }, errorFactory)) || $guard(_exceptionable, {
1393
+ path: _path + ".panel",
1394
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1395
+ value: input.panel
1396
+ }, errorFactory)) && ((null !== input.editor || $guard(_exceptionable, {
1397
+ path: _path + ".editor",
1398
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1399
+ value: input.editor
1400
+ }, errorFactory)) && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($aa0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
1401
+ path: _path + ".editor",
1402
+ expected: "Array<PanelLayout>",
1403
+ value: input.editor
1404
+ }, errorFactory)) || "object" === typeof input.editor && null !== input.editor && $au0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
1405
+ path: _path + ".editor",
1406
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1407
+ value: input.editor
1408
+ }, errorFactory)) || $guard(_exceptionable, {
1409
+ path: _path + ".editor",
1410
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1411
+ value: input.editor
1412
+ }, errorFactory)));
1413
+ const $ao7 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
1414
+ path: _path + ".type",
1415
+ expected: "\"divider\"",
1416
+ value: input.type
1417
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1418
+ path: _path + ".title",
1419
+ expected: "(string | undefined)",
1420
+ value: input.title
1421
+ }, errorFactory));
1422
+ const $ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
1423
+ path: _path + ".property",
1424
+ expected: "string",
1425
+ value: input.property
1426
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1427
+ path: _path + ".width",
1428
+ expected: "(number | string | undefined)",
1429
+ value: input.width
1430
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
1431
+ path: _path + ".widget",
1432
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1433
+ value: input.widget
1434
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
1435
+ path: _path + ".widget",
1436
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1437
+ value: input.widget
1438
+ }, errorFactory)) && $ao9(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
1439
+ path: _path + ".widget",
1440
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1441
+ value: input.widget
1442
+ }, errorFactory)));
1443
+ const $ao9 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
1444
+ path: _path + ".type",
1445
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
1446
+ value: input.type
1447
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
1448
+ path: _path + ".readOnly",
1449
+ expected: "(boolean | undefined)",
1450
+ value: input.readOnly
1451
+ }, errorFactory));
1452
+ const $ao10 = (input, _path, _exceptionable = true) => ("number" === typeof input.length && !Number.isNaN(input.length) || $guard(_exceptionable, {
1453
+ path: _path + ".length",
1454
+ expected: "number",
1455
+ value: input.length
1456
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
1457
+ path: _path + ".__context",
1458
+ expected: "(object | undefined)",
1459
+ value: input.__context
1460
+ }, errorFactory)) && $ao4(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
1461
+ path: _path + ".__context",
1462
+ expected: "(object | undefined)",
1463
+ value: input.__context
1464
+ }, errorFactory)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue || $guard(_exceptionable, {
1465
+ path: _path + ".__returnValue",
1466
+ expected: "(string | undefined)",
1467
+ value: input.__returnValue
1468
+ }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
1469
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1470
+ return true;
1471
+ const value = input[key];
1472
+ if (undefined === value)
1473
+ return true;
1474
+ if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
1475
+ return "string" === typeof value || $guard(_exceptionable, {
1476
+ path: _path + $join(key),
1477
+ expected: "string",
1478
+ value: value
1479
+ }, errorFactory);
1480
+ return true;
1481
+ }));
1482
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
1483
+ if (undefined !== input.type)
1484
+ return $ao7(input, _path, true && _exceptionable);
1485
+ else if (undefined !== input.property)
1486
+ return $ao8(input, _path, true && _exceptionable);
1487
+ else
1488
+ return $guard(_exceptionable, {
1489
+ path: _path,
1490
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
1491
+ value: input
1492
+ }, errorFactory);
1493
+ })();
1494
+ const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
1495
+ path: _path + "[" + _index2 + "]",
1496
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1497
+ value: elem
1498
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1499
+ path: _path + "[" + _index2 + "]",
1500
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1501
+ value: elem
1502
+ }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1503
+ path: _path + "[" + _index2 + "]",
1504
+ expected: "Array<PanelLayout>",
1505
+ value: elem
1506
+ }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1507
+ path: _path + "[" + _index2 + "]",
1508
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1509
+ value: elem
1510
+ }, errorFactory)) || $guard(_exceptionable, {
1511
+ path: _path + "[" + _index2 + "]",
1512
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1513
+ value: elem
1514
+ }, errorFactory)));
1515
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1516
+ path: _path + "",
1517
+ expected: "PanelDomainPanelRecord",
1518
+ value: input
1519
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1520
+ path: _path + "",
1521
+ expected: "PanelDomainPanelRecord",
1522
+ value: input
1523
+ }, errorFactory);
1524
+ })(input, "$input", true);
1525
+ return input;
1526
+ }; const stringify = input => {
1527
+ const $io1 = input => Object.keys(input).every(key => {
1528
+ const value = input[key];
1529
+ if (undefined === value)
1530
+ return true;
1531
+ return "object" === typeof value && null !== value && $io2(value);
1532
+ });
1533
+ const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io3(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io5(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1534
+ const $io3 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && true && Object.keys(input).every(key => {
1535
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1536
+ return true;
1537
+ const value = input[key];
1538
+ if (undefined === value)
1539
+ return true;
1540
+ if ("number" === typeof Number(key))
1541
+ return "string" === typeof value;
1542
+ return true;
1543
+ });
1544
+ const $io4 = input => true;
1545
+ const $io5 = input => "string" === typeof input.label && "string" === typeof input.path;
1546
+ const $io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
1547
+ const $io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1548
+ const $io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io9(input.widget)));
1549
+ const $io9 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1550
+ const $io10 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io4(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
1551
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1552
+ return true;
1553
+ const value = input[key];
1554
+ if (undefined === value)
1555
+ return true;
1556
+ if ("number" === typeof Number(key))
1557
+ return "string" === typeof value;
1558
+ return true;
1559
+ });
1560
+ const $iu0 = input => (() => {
1561
+ if (undefined !== input.type)
1562
+ return $io7(input);
1563
+ else if (undefined !== input.property)
1564
+ return $io8(input);
1565
+ else
1566
+ return false;
1567
+ })();
1568
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1569
+ const $string = __typia.json.createAssertStringify.string;
1570
+ const $throws = __typia.json.createAssertStringify.throws;
1571
+ const $tail = __typia.json.createAssertStringify.tail;
1572
+ const $so0 = input => `{${$tail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.supports ? "" : `"supports":${undefined !== input.supports ? (() => {
1573
+ if ("string" === typeof input.supports)
1574
+ return $string(input.supports);
1575
+ if (Array.isArray(input.supports))
1576
+ return `[${input.supports.map(elem => $string(elem)).join(",")}]`;
1577
+ $throws({
1578
+ expected: "(Array<string> | string | undefined)",
1579
+ value: input.supports
1580
+ });
1581
+ })() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? input.priority : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? input.editorPriority : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? $so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? $so6(input.layout) : undefined},`}${undefined === input.filter ? "" : `"filter":${undefined !== input.filter ? (() => {
1582
+ if ("string" === typeof input.filter)
1583
+ return $string(input.filter);
1584
+ if ("object" === typeof input.filter && null !== input.filter)
1585
+ return $so10(input.filter);
1586
+ $throws({
1587
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1588
+ value: input.filter
1589
+ });
1590
+ })() : undefined},`}${undefined === input.expand ? "" : `"expand":${undefined !== input.expand ? (() => {
1591
+ if ("string" === typeof input.expand)
1592
+ return $string(input.expand);
1593
+ if ("object" === typeof input.expand && null !== input.expand)
1594
+ return $so10(input.expand);
1595
+ $throws({
1596
+ expected: "(String & { __context?: object | undefined; __returnValue?: string | undefined; } | string | undefined)",
1597
+ value: input.expand
1598
+ });
1599
+ })() : undefined}`}`)}}`;
1600
+ const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1601
+ return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
1602
+ const $so2 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed ? "" : `"computed":${undefined !== input.computed ? (() => {
1603
+ if ("string" === typeof input.computed)
1604
+ return $string(input.computed);
1605
+ if ("object" === typeof input.computed && null !== input.computed)
1606
+ return $so3(input.computed);
1607
+ $throws({
1608
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1609
+ value: input.computed
1610
+ });
1611
+ })() : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
1612
+ if ("string" === typeof input.type)
1613
+ return $string(input.type);
1614
+ if ("string" === typeof input.type)
1615
+ return "\"" + input.type + "\"";
1616
+ $throws({
1617
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1618
+ value: input.type
1619
+ });
1620
+ })()}}`;
1621
+ const $so3 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue || "function" === typeof input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? JSON.stringify(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1622
+ return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
1623
+ return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
1624
+ return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
1625
+ const $so6 = input => `{${$tail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
1626
+ if ("string" === typeof input.panel)
1627
+ return $string(input.panel);
1628
+ if (Array.isArray(input.panel))
1629
+ return $sa0(input.panel);
1630
+ if ("object" === typeof input.panel && null !== input.panel)
1631
+ return $su0(input.panel);
1632
+ $throws({
1633
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1634
+ value: input.panel
1635
+ });
1636
+ })() : undefined},`}${undefined === input.editor ? "" : `"editor":${undefined !== input.editor ? (() => {
1637
+ if ("string" === typeof input.editor)
1638
+ return $string(input.editor);
1639
+ if (Array.isArray(input.editor))
1640
+ return $sa0(input.editor);
1641
+ if ("object" === typeof input.editor && null !== input.editor)
1642
+ return $su0(input.editor);
1643
+ $throws({
1644
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1645
+ value: input.editor
1646
+ });
1647
+ })() : undefined}`}`)}}`;
1648
+ const $so7 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
1649
+ if ("string" === typeof input.type)
1650
+ return $string(input.type);
1651
+ if ("string" === typeof input.type)
1652
+ return "\"" + input.type + "\"";
1653
+ $throws({
1654
+ expected: "\"divider\"",
1655
+ value: input.type
1656
+ });
1657
+ })()}}`;
1658
+ const $so8 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
1659
+ if ("string" === typeof input.width)
1660
+ return $string(input.width);
1661
+ if ("number" === typeof input.width)
1662
+ return input.width;
1663
+ $throws({
1664
+ expected: "(number | string | undefined)",
1665
+ value: input.width
1666
+ });
1667
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
1668
+ if ("string" === typeof input.widget)
1669
+ return $string(input.widget);
1670
+ if ("string" === typeof input.widget)
1671
+ return "\"" + input.widget + "\"";
1672
+ if ("object" === typeof input.widget && null !== input.widget)
1673
+ return $so9(input.widget);
1674
+ $throws({
1675
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1676
+ value: input.widget
1677
+ });
1678
+ })() : undefined},`}"property":${$string(input.property)}}`;
1679
+ const $so9 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
1680
+ if ("string" === typeof input.type)
1681
+ return $string(input.type);
1682
+ if ("string" === typeof input.type)
1683
+ return "\"" + input.type + "\"";
1684
+ $throws({
1685
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
1686
+ value: input.type
1687
+ });
1688
+ })()}}`;
1689
+ const $so10 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? $string(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1690
+ return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
1691
+ return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
1692
+ return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
1693
+ const $su0 = input => (() => {
1694
+ if (undefined !== input.type)
1695
+ return $so7(input);
1696
+ else if (undefined !== input.property)
1697
+ return $so8(input);
1698
+ else
1699
+ $throws({
1700
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
1701
+ value: input
1702
+ });
1703
+ })();
1704
+ const $sa0 = input => `[${input.map(elem => (() => {
1705
+ if ("string" === typeof elem)
1706
+ return $string(elem);
1707
+ if (Array.isArray(elem))
1708
+ return $sa0(elem);
1709
+ if ("object" === typeof elem && null !== elem)
1710
+ return $su0(elem);
1711
+ $throws({
1712
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1713
+ value: elem
1714
+ });
1715
+ })()).join(",")}]`;
1716
+ return $so0(input);
1717
+ }; return stringify(assert(input, errorFactory)); };
1718
+ export const isPanelProperty = input => {
1719
+ const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io1(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1720
+ const $io1 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io2(input.__context)) && true && Object.keys(input).every(key => {
1721
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1722
+ return true;
1723
+ const value = input[key];
1724
+ if (undefined === value)
1725
+ return true;
1726
+ if ("number" === typeof Number(key))
1727
+ return "string" === typeof value;
1728
+ return true;
1729
+ });
1730
+ const $io2 = input => true;
1731
+ const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
1732
+ return "object" === typeof input && null !== input && $io0(input);
1733
+ };
1734
+ export const assertPanelProperty = (input, errorFactory) => {
1735
+ const __is = input => {
1736
+ const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io1(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1737
+ const $io1 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io2(input.__context)) && true && Object.keys(input).every(key => {
1738
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1739
+ return true;
1740
+ const value = input[key];
1741
+ if (undefined === value)
1742
+ return true;
1743
+ if ("number" === typeof Number(key))
1744
+ return "string" === typeof value;
1745
+ return true;
1746
+ });
1747
+ const $io2 = input => true;
1748
+ const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
1749
+ return "object" === typeof input && null !== input && $io0(input);
1750
+ };
1751
+ if (false === __is(input))
1752
+ ((input, _path, _exceptionable = true) => {
1753
+ const $guard = __typia.createAssert.guard;
1754
+ const $join = __typia.createAssert.join;
1755
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1756
+ path: _path + ".type",
1757
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1758
+ value: input.type
1759
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1760
+ path: _path + ".title",
1761
+ expected: "(string | undefined)",
1762
+ value: input.title
1763
+ }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1764
+ path: _path + ".description",
1765
+ expected: "(string | undefined)",
1766
+ value: input.description
1767
+ }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1768
+ path: _path + ".domain",
1769
+ expected: "(string | undefined)",
1770
+ value: input.domain
1771
+ }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1772
+ path: _path + ".path",
1773
+ expected: "(string | undefined)",
1774
+ value: input.path
1775
+ }, errorFactory)) && ((null !== input.computed || $guard(_exceptionable, {
1776
+ path: _path + ".computed",
1777
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1778
+ value: input.computed
1779
+ }, errorFactory)) && (undefined === input.computed || "string" === typeof input.computed || ("object" === typeof input.computed && null !== input.computed || $guard(_exceptionable, {
1780
+ path: _path + ".computed",
1781
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1782
+ value: input.computed
1783
+ }, errorFactory)) && $ao1(input.computed, _path + ".computed", true && _exceptionable) || $guard(_exceptionable, {
1784
+ path: _path + ".computed",
1785
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1786
+ value: input.computed
1787
+ }, errorFactory))) && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1788
+ path: _path + ".index",
1789
+ expected: "(__type | undefined)",
1790
+ value: input.index
1791
+ }, errorFactory)) && $ao3(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1792
+ path: _path + ".index",
1793
+ expected: "(__type | undefined)",
1794
+ value: input.index
1795
+ }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1796
+ path: _path + ".required",
1797
+ expected: "(boolean | undefined)",
1798
+ value: input.required
1799
+ }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1800
+ path: _path + ".oneOf",
1801
+ expected: "(Array<unknown> | undefined)",
1802
+ value: input.oneOf
1803
+ }, errorFactory));
1804
+ const $ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
1805
+ path: _path + ".length",
1806
+ expected: "number",
1807
+ value: input.length
1808
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
1809
+ path: _path + ".__context",
1810
+ expected: "(object | undefined)",
1811
+ value: input.__context
1812
+ }, errorFactory)) && $ao2(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
1813
+ path: _path + ".__context",
1814
+ expected: "(object | undefined)",
1815
+ value: input.__context
1816
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
1817
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1818
+ return true;
1819
+ const value = input[key];
1820
+ if (undefined === value)
1821
+ return true;
1822
+ if ("number" === typeof Number(key))
1823
+ return "string" === typeof value || $guard(_exceptionable, {
1824
+ path: _path + $join(key),
1825
+ expected: "string",
1826
+ value: value
1827
+ }, errorFactory);
1828
+ return true;
1829
+ }));
1830
+ const $ao2 = (input, _path, _exceptionable = true) => true;
1831
+ const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
1832
+ path: _path + ".label",
1833
+ expected: "string",
1834
+ value: input.label
1835
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1836
+ path: _path + ".path",
1837
+ expected: "string",
1838
+ value: input.path
1839
+ }, errorFactory));
1840
+ return ("object" === typeof input && null !== input || $guard(true, {
1841
+ path: _path + "",
1842
+ expected: "PanelProperty",
1843
+ value: input
1844
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1845
+ path: _path + "",
1846
+ expected: "PanelProperty",
1847
+ value: input
1848
+ }, errorFactory);
1849
+ })(input, "$input", true);
1850
+ return input;
1851
+ };
1852
+ export const randomPanelProperty = generator => {
1853
+ const $pick = __typia.createRandom.pick;
1854
+ const $generator = __typia.createRandom.generator;
1855
+ const $ro0 = (_recursive = false, _depth = 0) => ({
1856
+ type: $pick([
1857
+ () => "string",
1858
+ () => "number",
1859
+ () => "boolean",
1860
+ () => "object",
1861
+ () => "array",
1862
+ () => "asset",
1863
+ () => "datetime",
1864
+ () => "rpc"
1865
+ ])(),
1866
+ title: $pick([
1867
+ () => undefined,
1868
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1869
+ ])(),
1870
+ description: $pick([
1871
+ () => undefined,
1872
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1873
+ ])(),
1874
+ domain: $pick([
1875
+ () => undefined,
1876
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1877
+ ])(),
1878
+ path: $pick([
1879
+ () => undefined,
1880
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1881
+ ])(),
1882
+ computed: $pick([
1883
+ () => undefined,
1884
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1885
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1886
+ ])(),
1887
+ index: $pick([
1888
+ () => undefined,
1889
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
1890
+ ])(),
1891
+ required: $pick([
1892
+ () => undefined,
1893
+ () => (generator?.boolean ?? $generator.boolean)()
1894
+ ])(),
1895
+ oneOf: $pick([
1896
+ () => undefined,
1897
+ () => (generator?.array ?? $generator.array)(() => "any type used...")
1898
+ ])()
1899
+ });
1900
+ const $ro1 = (_recursive = false, _depth = 0) => {
1901
+ const output = {
1902
+ length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
1903
+ __context: $pick([
1904
+ () => undefined,
1905
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1906
+ ])(),
1907
+ __returnValue: $pick([
1908
+ () => "any type used...",
1909
+ () => undefined
1910
+ ])()
1911
+ };
1912
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
1913
+ return output;
1914
+ };
1915
+ const $ro2 = (_recursive = false, _depth = 0) => {};
1916
+ const $ro3 = (_recursive = false, _depth = 0) => ({
1917
+ label: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1918
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1919
+ });
1920
+ return $ro0();
1921
+ };
1922
+ export const assertGuardPanelProperty = (input, errorFactory) => {
1923
+ const __is = input => {
1924
+ const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io1(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1925
+ const $io1 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io2(input.__context)) && true && Object.keys(input).every(key => {
1926
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
1927
+ return true;
1928
+ const value = input[key];
1929
+ if (undefined === value)
1930
+ return true;
1931
+ if ("number" === typeof Number(key))
1932
+ return "string" === typeof value;
1933
+ return true;
1934
+ });
1935
+ const $io2 = input => true;
1936
+ const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
1937
+ return "object" === typeof input && null !== input && $io0(input);
1938
+ };
1939
+ if (false === __is(input))
1940
+ ((input, _path, _exceptionable = true) => {
1941
+ const $guard = __typia.createAssertGuard.guard;
1942
+ const $join = __typia.createAssertGuard.join;
1943
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1944
+ path: _path + ".type",
1945
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1946
+ value: input.type
1947
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1948
+ path: _path + ".title",
1949
+ expected: "(string | undefined)",
1950
+ value: input.title
1951
+ }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1952
+ path: _path + ".description",
1953
+ expected: "(string | undefined)",
1954
+ value: input.description
1955
+ }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1956
+ path: _path + ".domain",
1957
+ expected: "(string | undefined)",
1958
+ value: input.domain
1959
+ }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1960
+ path: _path + ".path",
1961
+ expected: "(string | undefined)",
1962
+ value: input.path
1963
+ }, errorFactory)) && ((null !== input.computed || $guard(_exceptionable, {
1964
+ path: _path + ".computed",
1965
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1966
+ value: input.computed
1967
+ }, errorFactory)) && (undefined === input.computed || "string" === typeof input.computed || ("object" === typeof input.computed && null !== input.computed || $guard(_exceptionable, {
1968
+ path: _path + ".computed",
1969
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1970
+ value: input.computed
1971
+ }, errorFactory)) && $ao1(input.computed, _path + ".computed", true && _exceptionable) || $guard(_exceptionable, {
1972
+ path: _path + ".computed",
1973
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
1974
+ value: input.computed
1975
+ }, errorFactory))) && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1976
+ path: _path + ".index",
1977
+ expected: "(__type | undefined)",
1978
+ value: input.index
1979
+ }, errorFactory)) && $ao3(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1980
+ path: _path + ".index",
1981
+ expected: "(__type | undefined)",
1982
+ value: input.index
1983
+ }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1984
+ path: _path + ".required",
1985
+ expected: "(boolean | undefined)",
1986
+ value: input.required
1987
+ }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1988
+ path: _path + ".oneOf",
1989
+ expected: "(Array<unknown> | undefined)",
1990
+ value: input.oneOf
1991
+ }, errorFactory));
1992
+ const $ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
1993
+ path: _path + ".length",
1994
+ expected: "number",
1995
+ value: input.length
1996
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
1997
+ path: _path + ".__context",
1998
+ expected: "(object | undefined)",
1999
+ value: input.__context
2000
+ }, errorFactory)) && $ao2(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
2001
+ path: _path + ".__context",
2002
+ expected: "(object | undefined)",
2003
+ value: input.__context
2004
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
2005
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
2006
+ return true;
2007
+ const value = input[key];
2008
+ if (undefined === value)
2009
+ return true;
2010
+ if ("number" === typeof Number(key))
2011
+ return "string" === typeof value || $guard(_exceptionable, {
2012
+ path: _path + $join(key),
2013
+ expected: "string",
2014
+ value: value
2015
+ }, errorFactory);
2016
+ return true;
2017
+ }));
2018
+ const $ao2 = (input, _path, _exceptionable = true) => true;
2019
+ const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
2020
+ path: _path + ".label",
2021
+ expected: "string",
2022
+ value: input.label
2023
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2024
+ path: _path + ".path",
2025
+ expected: "string",
2026
+ value: input.path
2027
+ }, errorFactory));
2028
+ return ("object" === typeof input && null !== input || $guard(true, {
2029
+ path: _path + "",
2030
+ expected: "PanelProperty",
2031
+ value: input
2032
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2033
+ path: _path + "",
2034
+ expected: "PanelProperty",
2035
+ value: input
2036
+ }, errorFactory);
2037
+ })(input, "$input", true);
2038
+ };
2039
+ export const stringifyPanelProperty = input => {
2040
+ const $io1 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io2(input.__context)) && true && Object.keys(input).every(key => {
2041
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
2042
+ return true;
2043
+ const value = input[key];
2044
+ if (undefined === value)
2045
+ return true;
2046
+ if ("number" === typeof Number(key))
2047
+ return "string" === typeof value;
2048
+ return true;
2049
+ });
2050
+ const $io2 = input => true;
2051
+ const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
2052
+ const $string = __typia.json.createStringify.string;
2053
+ const $throws = __typia.json.createStringify.throws;
2054
+ const $tail = __typia.json.createStringify.tail;
2055
+ const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed ? "" : `"computed":${undefined !== input.computed ? (() => {
2056
+ if ("string" === typeof input.computed)
2057
+ return $string(input.computed);
2058
+ if ("object" === typeof input.computed && null !== input.computed)
2059
+ return $so1(input.computed);
2060
+ $throws({
2061
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
2062
+ value: input.computed
2063
+ });
2064
+ })() : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
2065
+ if ("string" === typeof input.type)
2066
+ return $string(input.type);
2067
+ if ("string" === typeof input.type)
2068
+ return "\"" + input.type + "\"";
2069
+ $throws({
2070
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
2071
+ value: input.type
2072
+ });
2073
+ })()}}`;
2074
+ const $so1 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue || "function" === typeof input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? JSON.stringify(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
2075
+ return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
2076
+ return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
2077
+ return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
2078
+ return $so0(input);
2079
+ };
2080
+ export const assertStringifyPanelProperty = (input, errorFactory) => { const assert = (input, errorFactory) => {
2081
+ const __is = input => {
2082
+ const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.computed && (undefined === input.computed || "string" === typeof input.computed || "object" === typeof input.computed && null !== input.computed && $io1(input.computed))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
2083
+ const $io1 = input => "number" === typeof input.length && !Number.isNaN(input.length) && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io2(input.__context)) && true && Object.keys(input).every(key => {
2084
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
2085
+ return true;
2086
+ const value = input[key];
2087
+ if (undefined === value)
2088
+ return true;
2089
+ if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
2090
+ return "string" === typeof value;
2091
+ return true;
2092
+ });
2093
+ const $io2 = input => true;
2094
+ const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
2095
+ return "object" === typeof input && null !== input && $io0(input);
2096
+ };
2097
+ if (false === __is(input))
2098
+ ((input, _path, _exceptionable = true) => {
2099
+ const $guard = __typia.json.createAssertStringify.guard;
2100
+ const $join = __typia.json.createAssertStringify.join;
2101
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
2102
+ path: _path + ".type",
2103
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
2104
+ value: input.type
2105
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2106
+ path: _path + ".title",
2107
+ expected: "(string | undefined)",
2108
+ value: input.title
2109
+ }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
2110
+ path: _path + ".description",
2111
+ expected: "(string | undefined)",
2112
+ value: input.description
2113
+ }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
2114
+ path: _path + ".domain",
2115
+ expected: "(string | undefined)",
2116
+ value: input.domain
2117
+ }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
2118
+ path: _path + ".path",
2119
+ expected: "(string | undefined)",
2120
+ value: input.path
2121
+ }, errorFactory)) && ((null !== input.computed || $guard(_exceptionable, {
2122
+ path: _path + ".computed",
2123
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
2124
+ value: input.computed
2125
+ }, errorFactory)) && (undefined === input.computed || "string" === typeof input.computed || ("object" === typeof input.computed && null !== input.computed || $guard(_exceptionable, {
2126
+ path: _path + ".computed",
2127
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
2128
+ value: input.computed
2129
+ }, errorFactory)) && $ao1(input.computed, _path + ".computed", true && _exceptionable) || $guard(_exceptionable, {
2130
+ path: _path + ".computed",
2131
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
2132
+ value: input.computed
2133
+ }, errorFactory))) && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
2134
+ path: _path + ".index",
2135
+ expected: "(__type | undefined)",
2136
+ value: input.index
2137
+ }, errorFactory)) && $ao3(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
2138
+ path: _path + ".index",
2139
+ expected: "(__type | undefined)",
2140
+ value: input.index
2141
+ }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
2142
+ path: _path + ".required",
2143
+ expected: "(boolean | undefined)",
2144
+ value: input.required
2145
+ }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
2146
+ path: _path + ".oneOf",
2147
+ expected: "(Array<unknown> | undefined)",
2148
+ value: input.oneOf
2149
+ }, errorFactory));
2150
+ const $ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.length && !Number.isNaN(input.length) || $guard(_exceptionable, {
2151
+ path: _path + ".length",
2152
+ expected: "number",
2153
+ value: input.length
2154
+ }, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
2155
+ path: _path + ".__context",
2156
+ expected: "(object | undefined)",
2157
+ value: input.__context
2158
+ }, errorFactory)) && $ao2(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
2159
+ path: _path + ".__context",
2160
+ expected: "(object | undefined)",
2161
+ value: input.__context
2162
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
2163
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
2164
+ return true;
2165
+ const value = input[key];
2166
+ if (undefined === value)
2167
+ return true;
2168
+ if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
2169
+ return "string" === typeof value || $guard(_exceptionable, {
2170
+ path: _path + $join(key),
2171
+ expected: "string",
2172
+ value: value
2173
+ }, errorFactory);
2174
+ return true;
2175
+ }));
2176
+ const $ao2 = (input, _path, _exceptionable = true) => true;
2177
+ const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
2178
+ path: _path + ".label",
2179
+ expected: "string",
2180
+ value: input.label
2181
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2182
+ path: _path + ".path",
2183
+ expected: "string",
2184
+ value: input.path
2185
+ }, errorFactory));
2186
+ return ("object" === typeof input && null !== input || $guard(true, {
2187
+ path: _path + "",
2188
+ expected: "PanelProperty",
2189
+ value: input
2190
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2191
+ path: _path + "",
2192
+ expected: "PanelProperty",
2193
+ value: input
2194
+ }, errorFactory);
2195
+ })(input, "$input", true);
2196
+ return input;
2197
+ }; const stringify = input => {
2198
+ const $io1 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io2(input.__context)) && true && Object.keys(input).every(key => {
2199
+ if (["length", "__context", "__returnValue"].some(prop => key === prop))
2200
+ return true;
2201
+ const value = input[key];
2202
+ if (undefined === value)
2203
+ return true;
2204
+ if ("number" === typeof Number(key))
2205
+ return "string" === typeof value;
2206
+ return true;
2207
+ });
2208
+ const $io2 = input => true;
2209
+ const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
2210
+ const $string = __typia.json.createAssertStringify.string;
2211
+ const $throws = __typia.json.createAssertStringify.throws;
2212
+ const $tail = __typia.json.createAssertStringify.tail;
2213
+ const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed ? "" : `"computed":${undefined !== input.computed ? (() => {
2214
+ if ("string" === typeof input.computed)
2215
+ return $string(input.computed);
2216
+ if ("object" === typeof input.computed && null !== input.computed)
2217
+ return $so1(input.computed);
2218
+ $throws({
2219
+ expected: "(String & { __context?: object | undefined; __returnValue?: unknown; } | string | undefined)",
2220
+ value: input.computed
2221
+ });
2222
+ })() : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
2223
+ if ("string" === typeof input.type)
2224
+ return $string(input.type);
2225
+ if ("string" === typeof input.type)
2226
+ return "\"" + input.type + "\"";
2227
+ $throws({
2228
+ expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
2229
+ value: input.type
2230
+ });
2231
+ })()}}`;
2232
+ const $so1 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue || "function" === typeof input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? JSON.stringify(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
2233
+ return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
2234
+ return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
2235
+ return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
2236
+ return $so0(input);
2237
+ }; return stringify(assert(input, errorFactory)); };
2238
+ export const isPanelLayout = input => {
2239
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2240
+ const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2241
+ const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2242
+ const $iu0 = input => (() => {
2243
+ if (undefined !== input.type)
2244
+ return $io0(input);
2245
+ else if (undefined !== input.property)
2246
+ return $io1(input);
2247
+ else
2248
+ return false;
2249
+ })();
2250
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2251
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
2252
+ };
2253
+ export const assertPanelLayout = (input, errorFactory) => {
2254
+ const __is = input => {
2255
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2256
+ const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2257
+ const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2258
+ const $iu0 = input => (() => {
2259
+ if (undefined !== input.type)
2260
+ return $io0(input);
2261
+ else if (undefined !== input.property)
2262
+ return $io1(input);
2263
+ else
2264
+ return false;
2265
+ })();
2266
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2267
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
2268
+ };
2269
+ if (false === __is(input))
2270
+ ((input, _path, _exceptionable = true) => {
2271
+ const $guard = __typia.createAssert.guard;
2272
+ const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2273
+ path: _path + ".type",
2274
+ expected: "\"divider\"",
2275
+ value: input.type
2276
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2277
+ path: _path + ".title",
2278
+ expected: "(string | undefined)",
2279
+ value: input.title
2280
+ }, errorFactory));
2281
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2282
+ path: _path + ".property",
2283
+ expected: "string",
2284
+ value: input.property
2285
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2286
+ path: _path + ".width",
2287
+ expected: "(number | string | undefined)",
2288
+ value: input.width
2289
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2290
+ path: _path + ".widget",
2291
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2292
+ value: input.widget
2293
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2294
+ path: _path + ".widget",
2295
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2296
+ value: input.widget
2297
+ }, errorFactory)) && $ao2(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2298
+ path: _path + ".widget",
2299
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2300
+ value: input.widget
2301
+ }, errorFactory)));
2302
+ const $ao2 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2303
+ path: _path + ".type",
2304
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2305
+ value: input.type
2306
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2307
+ path: _path + ".readOnly",
2308
+ expected: "(boolean | undefined)",
2309
+ value: input.readOnly
2310
+ }, errorFactory));
2311
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
2312
+ if (undefined !== input.type)
2313
+ return $ao0(input, _path, true && _exceptionable);
2314
+ else if (undefined !== input.property)
2315
+ return $ao1(input, _path, true && _exceptionable);
2316
+ else
2317
+ return $guard(_exceptionable, {
2318
+ path: _path,
2319
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
2320
+ value: input
2321
+ }, errorFactory);
2322
+ })();
2323
+ const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
2324
+ path: _path + "[" + _index1 + "]",
2325
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2326
+ value: elem
2327
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
2328
+ path: _path + "[" + _index1 + "]",
2329
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2330
+ value: elem
2331
+ }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2332
+ path: _path + "[" + _index1 + "]",
2333
+ expected: "Array<PanelLayout>",
2334
+ value: elem
2335
+ }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2336
+ path: _path + "[" + _index1 + "]",
2337
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2338
+ value: elem
2339
+ }, errorFactory)) || $guard(_exceptionable, {
2340
+ path: _path + "[" + _index1 + "]",
2341
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2342
+ value: elem
2343
+ }, errorFactory)));
2344
+ return (null !== input || $guard(true, {
2345
+ path: _path + "",
2346
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2347
+ value: input
2348
+ }, errorFactory)) && (undefined !== input || $guard(true, {
2349
+ path: _path + "",
2350
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2351
+ value: input
2352
+ }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && ($aa0(input, _path + "", true && _exceptionable) || $guard(_exceptionable, {
2353
+ path: _path + "",
2354
+ expected: "Array<PanelLayout>",
2355
+ value: input
2356
+ }, errorFactory)) || "object" === typeof input && null !== input && $au0(input, _path + "", true) || $guard(true, {
2357
+ path: _path + "",
2358
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2359
+ value: input
2360
+ }, errorFactory)) || $guard(true, {
2361
+ path: _path + "",
2362
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2363
+ value: input
2364
+ }, errorFactory));
2365
+ })(input, "$input", true);
2366
+ return input;
2367
+ };
2368
+ export const randomPanelLayout = generator => {
2369
+ const $generator = __typia.createRandom.generator;
2370
+ const $pick = __typia.createRandom.pick;
2371
+ const $ro0 = (_recursive = false, _depth = 0) => ({
2372
+ type: "divider",
2373
+ title: $pick([
2374
+ () => undefined,
2375
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
2376
+ ])()
2377
+ });
2378
+ const $ro1 = (_recursive = false, _depth = 0) => ({
2379
+ property: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2380
+ width: $pick([
2381
+ () => undefined,
2382
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2383
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
2384
+ ])(),
2385
+ widget: $pick([
2386
+ () => undefined,
2387
+ () => "default",
2388
+ () => "assetTypes",
2389
+ () => "assetTags",
2390
+ () => "geopoint",
2391
+ () => "poster",
2392
+ () => "textarea",
2393
+ () => "tags",
2394
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
2395
+ ])()
2396
+ });
2397
+ const $ro2 = (_recursive = false, _depth = 0) => ({
2398
+ type: $pick([
2399
+ () => "default",
2400
+ () => "assetTypes",
2401
+ () => "assetTags",
2402
+ () => "geopoint",
2403
+ () => "poster",
2404
+ () => "textarea",
2405
+ () => "tags"
2406
+ ])(),
2407
+ readOnly: $pick([
2408
+ () => undefined,
2409
+ () => (generator?.boolean ?? $generator.boolean)()
2410
+ ])()
2411
+ });
2412
+ const $ra0 = (length, unique, _recursive = true, _depth = 0) => 5 >= _depth ? (generator?.array ?? $generator.array)(() => $pick([
2413
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2414
+ () => $ra0(generator?.length ?? $generator.length, false, true, 1 + _depth),
2415
+ () => $ro0(true, _recursive ? 1 + _depth : _depth),
2416
+ () => $ro1(true, _recursive ? 1 + _depth : _depth)
2417
+ ])(), length, unique) : [];
2418
+ return $pick([
2419
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2420
+ () => $ra0(generator?.length ?? $generator.length, false, true, 0),
2421
+ () => $ro0(),
2422
+ () => $ro1()
2423
+ ])();
2424
+ };
2425
+ export const assertGuardPanelLayout = (input, errorFactory) => {
2426
+ const __is = input => {
2427
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2428
+ const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2429
+ const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2430
+ const $iu0 = input => (() => {
2431
+ if (undefined !== input.type)
2432
+ return $io0(input);
2433
+ else if (undefined !== input.property)
2434
+ return $io1(input);
2435
+ else
2436
+ return false;
2437
+ })();
2438
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2439
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
2440
+ };
2441
+ if (false === __is(input))
2442
+ ((input, _path, _exceptionable = true) => {
2443
+ const $guard = __typia.createAssertGuard.guard;
2444
+ const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2445
+ path: _path + ".type",
2446
+ expected: "\"divider\"",
2447
+ value: input.type
2448
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2449
+ path: _path + ".title",
2450
+ expected: "(string | undefined)",
2451
+ value: input.title
2452
+ }, errorFactory));
2453
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2454
+ path: _path + ".property",
2455
+ expected: "string",
2456
+ value: input.property
2457
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2458
+ path: _path + ".width",
2459
+ expected: "(number | string | undefined)",
2460
+ value: input.width
2461
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2462
+ path: _path + ".widget",
2463
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2464
+ value: input.widget
2465
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2466
+ path: _path + ".widget",
2467
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2468
+ value: input.widget
2469
+ }, errorFactory)) && $ao2(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2470
+ path: _path + ".widget",
2471
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2472
+ value: input.widget
2473
+ }, errorFactory)));
2474
+ const $ao2 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2475
+ path: _path + ".type",
2476
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2477
+ value: input.type
2478
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2479
+ path: _path + ".readOnly",
2480
+ expected: "(boolean | undefined)",
2481
+ value: input.readOnly
2482
+ }, errorFactory));
2483
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
2484
+ if (undefined !== input.type)
2485
+ return $ao0(input, _path, true && _exceptionable);
2486
+ else if (undefined !== input.property)
2487
+ return $ao1(input, _path, true && _exceptionable);
2488
+ else
2489
+ return $guard(_exceptionable, {
2490
+ path: _path,
2491
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
2492
+ value: input
2493
+ }, errorFactory);
2494
+ })();
2495
+ const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
2496
+ path: _path + "[" + _index1 + "]",
2497
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2498
+ value: elem
2499
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
2500
+ path: _path + "[" + _index1 + "]",
2501
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2502
+ value: elem
2503
+ }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2504
+ path: _path + "[" + _index1 + "]",
2505
+ expected: "Array<PanelLayout>",
2506
+ value: elem
2507
+ }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2508
+ path: _path + "[" + _index1 + "]",
2509
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2510
+ value: elem
2511
+ }, errorFactory)) || $guard(_exceptionable, {
2512
+ path: _path + "[" + _index1 + "]",
2513
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2514
+ value: elem
2515
+ }, errorFactory)));
2516
+ return (null !== input || $guard(true, {
2517
+ path: _path + "",
2518
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2519
+ value: input
2520
+ }, errorFactory)) && (undefined !== input || $guard(true, {
2521
+ path: _path + "",
2522
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2523
+ value: input
2524
+ }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && ($aa0(input, _path + "", true && _exceptionable) || $guard(_exceptionable, {
2525
+ path: _path + "",
2526
+ expected: "Array<PanelLayout>",
2527
+ value: input
2528
+ }, errorFactory)) || "object" === typeof input && null !== input && $au0(input, _path + "", true) || $guard(true, {
2529
+ path: _path + "",
2530
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2531
+ value: input
2532
+ }, errorFactory)) || $guard(true, {
2533
+ path: _path + "",
2534
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2535
+ value: input
2536
+ }, errorFactory));
2537
+ })(input, "$input", true);
2538
+ };
2539
+ export const stringifyPanelLayout = input => {
2540
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2541
+ const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2542
+ const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2543
+ const $iu0 = input => (() => {
2544
+ if (undefined !== input.type)
2545
+ return $io0(input);
2546
+ else if (undefined !== input.property)
2547
+ return $io1(input);
2548
+ else
2549
+ return false;
2550
+ })();
2551
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2552
+ const $string = __typia.json.createStringify.string;
2553
+ const $throws = __typia.json.createStringify.throws;
2554
+ const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
2555
+ if ("string" === typeof input.type)
2556
+ return $string(input.type);
2557
+ if ("string" === typeof input.type)
2558
+ return "\"" + input.type + "\"";
2559
+ $throws({
2560
+ expected: "\"divider\"",
2561
+ value: input.type
2562
+ });
2563
+ })()}}`;
2564
+ const $so1 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2565
+ if ("string" === typeof input.width)
2566
+ return $string(input.width);
2567
+ if ("number" === typeof input.width)
2568
+ return input.width;
2569
+ $throws({
2570
+ expected: "(number | string | undefined)",
2571
+ value: input.width
2572
+ });
2573
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2574
+ if ("string" === typeof input.widget)
2575
+ return $string(input.widget);
2576
+ if ("string" === typeof input.widget)
2577
+ return "\"" + input.widget + "\"";
2578
+ if ("object" === typeof input.widget && null !== input.widget)
2579
+ return $so2(input.widget);
2580
+ $throws({
2581
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2582
+ value: input.widget
2583
+ });
2584
+ })() : undefined},`}"property":${$string(input.property)}}`;
2585
+ const $so2 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2586
+ if ("string" === typeof input.type)
2587
+ return $string(input.type);
2588
+ if ("string" === typeof input.type)
2589
+ return "\"" + input.type + "\"";
2590
+ $throws({
2591
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2592
+ value: input.type
2593
+ });
2594
+ })()}}`;
2595
+ const $su0 = input => (() => {
2596
+ if (undefined !== input.type)
2597
+ return $so0(input);
2598
+ else if (undefined !== input.property)
2599
+ return $so1(input);
2600
+ else
2601
+ $throws({
2602
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
2603
+ value: input
2604
+ });
2605
+ })();
2606
+ const $sa0 = input => `[${input.map(elem => (() => {
2607
+ if ("string" === typeof elem)
2608
+ return $string(elem);
2609
+ if (Array.isArray(elem))
2610
+ return $sa0(elem);
2611
+ if ("object" === typeof elem && null !== elem)
2612
+ return $su0(elem);
2613
+ $throws({
2614
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2615
+ value: elem
2616
+ });
2617
+ })()).join(",")}]`;
2618
+ return (() => {
2619
+ if ("string" === typeof input)
2620
+ return $string(input);
2621
+ if (Array.isArray(input))
2622
+ return $sa0(input);
2623
+ if ("object" === typeof input && null !== input)
2624
+ return $su0(input);
2625
+ $throws({
2626
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2627
+ value: input
2628
+ });
2629
+ })();
2630
+ };
2631
+ export const assertStringifyPanelLayout = (input, errorFactory) => { const assert = (input, errorFactory) => {
2632
+ const __is = input => {
2633
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2634
+ const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2635
+ const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2636
+ const $iu0 = input => (() => {
2637
+ if (undefined !== input.type)
2638
+ return $io0(input);
2639
+ else if (undefined !== input.property)
2640
+ return $io1(input);
2641
+ else
2642
+ return false;
2643
+ })();
2644
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2645
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
2646
+ };
2647
+ if (false === __is(input))
2648
+ ((input, _path, _exceptionable = true) => {
2649
+ const $guard = __typia.json.createAssertStringify.guard;
2650
+ const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2651
+ path: _path + ".type",
2652
+ expected: "\"divider\"",
2653
+ value: input.type
2654
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2655
+ path: _path + ".title",
2656
+ expected: "(string | undefined)",
2657
+ value: input.title
2658
+ }, errorFactory));
2659
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2660
+ path: _path + ".property",
2661
+ expected: "string",
2662
+ value: input.property
2663
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
2664
+ path: _path + ".width",
2665
+ expected: "(number | string | undefined)",
2666
+ value: input.width
2667
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2668
+ path: _path + ".widget",
2669
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2670
+ value: input.widget
2671
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2672
+ path: _path + ".widget",
2673
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2674
+ value: input.widget
2675
+ }, errorFactory)) && $ao2(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2676
+ path: _path + ".widget",
2677
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2678
+ value: input.widget
2679
+ }, errorFactory)));
2680
+ const $ao2 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2681
+ path: _path + ".type",
2682
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2683
+ value: input.type
2684
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2685
+ path: _path + ".readOnly",
2686
+ expected: "(boolean | undefined)",
2687
+ value: input.readOnly
2688
+ }, errorFactory));
2689
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
2690
+ if (undefined !== input.type)
2691
+ return $ao0(input, _path, true && _exceptionable);
2692
+ else if (undefined !== input.property)
2693
+ return $ao1(input, _path, true && _exceptionable);
2694
+ else
2695
+ return $guard(_exceptionable, {
2696
+ path: _path,
2697
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
2698
+ value: input
2699
+ }, errorFactory);
2700
+ })();
2701
+ const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
2702
+ path: _path + "[" + _index1 + "]",
2703
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2704
+ value: elem
2705
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
2706
+ path: _path + "[" + _index1 + "]",
2707
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2708
+ value: elem
2709
+ }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2710
+ path: _path + "[" + _index1 + "]",
2711
+ expected: "Array<PanelLayout>",
2712
+ value: elem
2713
+ }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2714
+ path: _path + "[" + _index1 + "]",
2715
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2716
+ value: elem
2717
+ }, errorFactory)) || $guard(_exceptionable, {
2718
+ path: _path + "[" + _index1 + "]",
2719
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2720
+ value: elem
2721
+ }, errorFactory)));
2722
+ return (null !== input || $guard(true, {
2723
+ path: _path + "",
2724
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2725
+ value: input
2726
+ }, errorFactory)) && (undefined !== input || $guard(true, {
2727
+ path: _path + "",
2728
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2729
+ value: input
2730
+ }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && ($aa0(input, _path + "", true && _exceptionable) || $guard(_exceptionable, {
2731
+ path: _path + "",
2732
+ expected: "Array<PanelLayout>",
2733
+ value: input
2734
+ }, errorFactory)) || "object" === typeof input && null !== input && $au0(input, _path + "", true) || $guard(true, {
2735
+ path: _path + "",
2736
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2737
+ value: input
2738
+ }, errorFactory)) || $guard(true, {
2739
+ path: _path + "",
2740
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2741
+ value: input
2742
+ }, errorFactory));
2743
+ })(input, "$input", true);
2744
+ return input;
2745
+ }; const stringify = input => {
2746
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2747
+ const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2748
+ const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2749
+ const $iu0 = input => (() => {
2750
+ if (undefined !== input.type)
2751
+ return $io0(input);
2752
+ else if (undefined !== input.property)
2753
+ return $io1(input);
2754
+ else
2755
+ return false;
2756
+ })();
2757
+ const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2758
+ const $string = __typia.json.createAssertStringify.string;
2759
+ const $throws = __typia.json.createAssertStringify.throws;
2760
+ const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
2761
+ if ("string" === typeof input.type)
2762
+ return $string(input.type);
2763
+ if ("string" === typeof input.type)
2764
+ return "\"" + input.type + "\"";
2765
+ $throws({
2766
+ expected: "\"divider\"",
2767
+ value: input.type
2768
+ });
2769
+ })()}}`;
2770
+ const $so1 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2771
+ if ("string" === typeof input.width)
2772
+ return $string(input.width);
2773
+ if ("number" === typeof input.width)
2774
+ return input.width;
2775
+ $throws({
2776
+ expected: "(number | string | undefined)",
2777
+ value: input.width
2778
+ });
2779
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2780
+ if ("string" === typeof input.widget)
2781
+ return $string(input.widget);
2782
+ if ("string" === typeof input.widget)
2783
+ return "\"" + input.widget + "\"";
2784
+ if ("object" === typeof input.widget && null !== input.widget)
2785
+ return $so2(input.widget);
2786
+ $throws({
2787
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2788
+ value: input.widget
2789
+ });
2790
+ })() : undefined},`}"property":${$string(input.property)}}`;
2791
+ const $so2 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2792
+ if ("string" === typeof input.type)
2793
+ return $string(input.type);
2794
+ if ("string" === typeof input.type)
2795
+ return "\"" + input.type + "\"";
2796
+ $throws({
2797
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2798
+ value: input.type
2799
+ });
2800
+ })()}}`;
2801
+ const $su0 = input => (() => {
2802
+ if (undefined !== input.type)
2803
+ return $so0(input);
2804
+ else if (undefined !== input.property)
2805
+ return $so1(input);
2806
+ else
2807
+ $throws({
2808
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
2809
+ value: input
2810
+ });
2811
+ })();
2812
+ const $sa0 = input => `[${input.map(elem => (() => {
2813
+ if ("string" === typeof elem)
2814
+ return $string(elem);
2815
+ if (Array.isArray(elem))
2816
+ return $sa0(elem);
2817
+ if ("object" === typeof elem && null !== elem)
2818
+ return $su0(elem);
2819
+ $throws({
2820
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2821
+ value: elem
2822
+ });
2823
+ })()).join(",")}]`;
2824
+ return (() => {
2825
+ if ("string" === typeof input)
2826
+ return $string(input);
2827
+ if (Array.isArray(input))
2828
+ return $sa0(input);
2829
+ if ("object" === typeof input && null !== input)
2830
+ return $su0(input);
2831
+ $throws({
2832
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2833
+ value: input
2834
+ });
2835
+ })();
2836
+ }; return stringify(assert(input, errorFactory)); };
2837
+ export const isPanelLayoutItem = input => {
2838
+ const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2839
+ const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2840
+ return "object" === typeof input && null !== input && $io0(input);
2841
+ };
2842
+ export const assertPanelLayoutItem = (input, errorFactory) => {
2843
+ const __is = input => {
2844
+ const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2845
+ const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2846
+ return "object" === typeof input && null !== input && $io0(input);
2847
+ };
2848
+ if (false === __is(input))
2849
+ ((input, _path, _exceptionable = true) => {
2850
+ const $guard = __typia.createAssert.guard;
2851
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2852
+ path: _path + ".property",
2853
+ expected: "string",
2854
+ value: input.property
2855
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2856
+ path: _path + ".width",
2857
+ expected: "(number | string | undefined)",
2858
+ value: input.width
2859
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2860
+ path: _path + ".widget",
2861
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2862
+ value: input.widget
2863
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2864
+ path: _path + ".widget",
2865
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2866
+ value: input.widget
2867
+ }, errorFactory)) && $ao1(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2868
+ path: _path + ".widget",
2869
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2870
+ value: input.widget
2871
+ }, errorFactory)));
2872
+ const $ao1 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2873
+ path: _path + ".type",
2874
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2875
+ value: input.type
2876
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2877
+ path: _path + ".readOnly",
2878
+ expected: "(boolean | undefined)",
2879
+ value: input.readOnly
2880
+ }, errorFactory));
2881
+ return ("object" === typeof input && null !== input || $guard(true, {
2882
+ path: _path + "",
2883
+ expected: "PanelLayoutItem",
2884
+ value: input
2885
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2886
+ path: _path + "",
2887
+ expected: "PanelLayoutItem",
2888
+ value: input
2889
+ }, errorFactory);
2890
+ })(input, "$input", true);
2891
+ return input;
2892
+ };
2893
+ export const randomPanelLayoutItem = generator => {
2894
+ const $generator = __typia.createRandom.generator;
2895
+ const $pick = __typia.createRandom.pick;
2896
+ const $ro0 = (_recursive = false, _depth = 0) => ({
2897
+ property: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2898
+ width: $pick([
2899
+ () => undefined,
2900
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2901
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
2902
+ ])(),
2903
+ widget: $pick([
2904
+ () => undefined,
2905
+ () => "default",
2906
+ () => "assetTypes",
2907
+ () => "assetTags",
2908
+ () => "geopoint",
2909
+ () => "poster",
2910
+ () => "textarea",
2911
+ () => "tags",
2912
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
2913
+ ])()
2914
+ });
2915
+ const $ro1 = (_recursive = false, _depth = 0) => ({
2916
+ type: $pick([
2917
+ () => "default",
2918
+ () => "assetTypes",
2919
+ () => "assetTags",
2920
+ () => "geopoint",
2921
+ () => "poster",
2922
+ () => "textarea",
2923
+ () => "tags"
2924
+ ])(),
2925
+ readOnly: $pick([
2926
+ () => undefined,
2927
+ () => (generator?.boolean ?? $generator.boolean)()
2928
+ ])()
2929
+ });
2930
+ return $ro0();
2931
+ };
2932
+ export const assertGuardPanelLayoutItem = (input, errorFactory) => {
2933
+ const __is = input => {
2934
+ const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2935
+ const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2936
+ return "object" === typeof input && null !== input && $io0(input);
2937
+ };
2938
+ if (false === __is(input))
2939
+ ((input, _path, _exceptionable = true) => {
2940
+ const $guard = __typia.createAssertGuard.guard;
2941
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2942
+ path: _path + ".property",
2943
+ expected: "string",
2944
+ value: input.property
2945
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2946
+ path: _path + ".width",
2947
+ expected: "(number | string | undefined)",
2948
+ value: input.width
2949
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2950
+ path: _path + ".widget",
2951
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2952
+ value: input.widget
2953
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2954
+ path: _path + ".widget",
2955
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2956
+ value: input.widget
2957
+ }, errorFactory)) && $ao1(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2958
+ path: _path + ".widget",
2959
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2960
+ value: input.widget
2961
+ }, errorFactory)));
2962
+ const $ao1 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2963
+ path: _path + ".type",
2964
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2965
+ value: input.type
2966
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2967
+ path: _path + ".readOnly",
2968
+ expected: "(boolean | undefined)",
2969
+ value: input.readOnly
2970
+ }, errorFactory));
2971
+ return ("object" === typeof input && null !== input || $guard(true, {
2972
+ path: _path + "",
2973
+ expected: "PanelLayoutItem",
2974
+ value: input
2975
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2976
+ path: _path + "",
2977
+ expected: "PanelLayoutItem",
2978
+ value: input
2979
+ }, errorFactory);
2980
+ })(input, "$input", true);
2981
+ };
2982
+ export const stringifyPanelLayoutItem = input => {
2983
+ const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2984
+ const $string = __typia.json.createStringify.string;
2985
+ const $throws = __typia.json.createStringify.throws;
2986
+ const $so0 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2987
+ if ("string" === typeof input.width)
2988
+ return $string(input.width);
2989
+ if ("number" === typeof input.width)
2990
+ return input.width;
2991
+ $throws({
2992
+ expected: "(number | string | undefined)",
2993
+ value: input.width
2994
+ });
2995
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2996
+ if ("string" === typeof input.widget)
2997
+ return $string(input.widget);
2998
+ if ("string" === typeof input.widget)
2999
+ return "\"" + input.widget + "\"";
3000
+ if ("object" === typeof input.widget && null !== input.widget)
3001
+ return $so1(input.widget);
3002
+ $throws({
3003
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
3004
+ value: input.widget
3005
+ });
3006
+ })() : undefined},`}"property":${$string(input.property)}}`;
3007
+ const $so1 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3008
+ if ("string" === typeof input.type)
3009
+ return $string(input.type);
3010
+ if ("string" === typeof input.type)
3011
+ return "\"" + input.type + "\"";
3012
+ $throws({
3013
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3014
+ value: input.type
3015
+ });
3016
+ })()}}`;
3017
+ return $so0(input);
3018
+ };
3019
+ export const assertStringifyPanelLayoutItem = (input, errorFactory) => { const assert = (input, errorFactory) => {
3020
+ const __is = input => {
3021
+ const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
3022
+ const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3023
+ return "object" === typeof input && null !== input && $io0(input);
3024
+ };
3025
+ if (false === __is(input))
3026
+ ((input, _path, _exceptionable = true) => {
3027
+ const $guard = __typia.json.createAssertStringify.guard;
3028
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
3029
+ path: _path + ".property",
3030
+ expected: "string",
3031
+ value: input.property
3032
+ }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
3033
+ path: _path + ".width",
3034
+ expected: "(number | string | undefined)",
3035
+ value: input.width
3036
+ }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
3037
+ path: _path + ".widget",
3038
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
3039
+ value: input.widget
3040
+ }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
3041
+ path: _path + ".widget",
3042
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
3043
+ value: input.widget
3044
+ }, errorFactory)) && $ao1(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
3045
+ path: _path + ".widget",
3046
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
3047
+ value: input.widget
3048
+ }, errorFactory)));
3049
+ const $ao1 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3050
+ path: _path + ".type",
3051
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3052
+ value: input.type
3053
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3054
+ path: _path + ".readOnly",
3055
+ expected: "(boolean | undefined)",
3056
+ value: input.readOnly
3057
+ }, errorFactory));
3058
+ return ("object" === typeof input && null !== input || $guard(true, {
3059
+ path: _path + "",
3060
+ expected: "PanelLayoutItem",
3061
+ value: input
3062
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3063
+ path: _path + "",
3064
+ expected: "PanelLayoutItem",
3065
+ value: input
3066
+ }, errorFactory);
3067
+ })(input, "$input", true);
3068
+ return input;
3069
+ }; const stringify = input => {
3070
+ const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3071
+ const $string = __typia.json.createAssertStringify.string;
3072
+ const $throws = __typia.json.createAssertStringify.throws;
3073
+ const $so0 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
3074
+ if ("string" === typeof input.width)
3075
+ return $string(input.width);
3076
+ if ("number" === typeof input.width)
3077
+ return input.width;
3078
+ $throws({
3079
+ expected: "(number | string | undefined)",
3080
+ value: input.width
3081
+ });
3082
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
3083
+ if ("string" === typeof input.widget)
3084
+ return $string(input.widget);
3085
+ if ("string" === typeof input.widget)
3086
+ return "\"" + input.widget + "\"";
3087
+ if ("object" === typeof input.widget && null !== input.widget)
3088
+ return $so1(input.widget);
3089
+ $throws({
3090
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
3091
+ value: input.widget
3092
+ });
3093
+ })() : undefined},`}"property":${$string(input.property)}}`;
3094
+ const $so1 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3095
+ if ("string" === typeof input.type)
3096
+ return $string(input.type);
3097
+ if ("string" === typeof input.type)
3098
+ return "\"" + input.type + "\"";
3099
+ $throws({
3100
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3101
+ value: input.type
3102
+ });
3103
+ })()}}`;
3104
+ return $so0(input);
3105
+ }; return stringify(assert(input, errorFactory)); };
3106
+ export const isPanelLayoutDivider = input => {
3107
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
3108
+ return "object" === typeof input && null !== input && $io0(input);
3109
+ };
3110
+ export const assertPanelLayoutDivider = (input, errorFactory) => {
3111
+ const __is = input => {
3112
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
3113
+ return "object" === typeof input && null !== input && $io0(input);
3114
+ };
3115
+ if (false === __is(input))
3116
+ ((input, _path, _exceptionable = true) => {
3117
+ const $guard = __typia.createAssert.guard;
3118
+ const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
3119
+ path: _path + ".type",
3120
+ expected: "\"divider\"",
3121
+ value: input.type
3122
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
3123
+ path: _path + ".title",
3124
+ expected: "(string | undefined)",
3125
+ value: input.title
3126
+ }, errorFactory));
3127
+ return ("object" === typeof input && null !== input || $guard(true, {
3128
+ path: _path + "",
3129
+ expected: "PanelLayoutDivider",
3130
+ value: input
3131
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3132
+ path: _path + "",
3133
+ expected: "PanelLayoutDivider",
3134
+ value: input
3135
+ }, errorFactory);
3136
+ })(input, "$input", true);
3137
+ return input;
3138
+ };
3139
+ export const randomPanelLayoutDivider = generator => {
3140
+ const $generator = __typia.createRandom.generator;
3141
+ const $pick = __typia.createRandom.pick;
3142
+ const $ro0 = (_recursive = false, _depth = 0) => ({
3143
+ type: "divider",
3144
+ title: $pick([
3145
+ () => undefined,
3146
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
3147
+ ])()
3148
+ });
3149
+ return $ro0();
3150
+ };
3151
+ export const assertGuardPanelLayoutDivider = (input, errorFactory) => {
3152
+ const __is = input => {
3153
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
3154
+ return "object" === typeof input && null !== input && $io0(input);
3155
+ };
3156
+ if (false === __is(input))
3157
+ ((input, _path, _exceptionable = true) => {
3158
+ const $guard = __typia.createAssertGuard.guard;
3159
+ const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
3160
+ path: _path + ".type",
3161
+ expected: "\"divider\"",
3162
+ value: input.type
3163
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
3164
+ path: _path + ".title",
3165
+ expected: "(string | undefined)",
3166
+ value: input.title
3167
+ }, errorFactory));
3168
+ return ("object" === typeof input && null !== input || $guard(true, {
3169
+ path: _path + "",
3170
+ expected: "PanelLayoutDivider",
3171
+ value: input
3172
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3173
+ path: _path + "",
3174
+ expected: "PanelLayoutDivider",
3175
+ value: input
3176
+ }, errorFactory);
3177
+ })(input, "$input", true);
3178
+ };
3179
+ export const stringifyPanelLayoutDivider = input => {
3180
+ const $string = __typia.json.createStringify.string;
3181
+ const $throws = __typia.json.createStringify.throws;
3182
+ const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
3183
+ if ("string" === typeof input.type)
3184
+ return $string(input.type);
3185
+ if ("string" === typeof input.type)
3186
+ return "\"" + input.type + "\"";
3187
+ $throws({
3188
+ expected: "\"divider\"",
3189
+ value: input.type
3190
+ });
3191
+ })()}}`;
3192
+ return $so0(input);
3193
+ };
3194
+ export const assertStringifyPanelLayoutDivider = (input, errorFactory) => { const assert = (input, errorFactory) => {
3195
+ const __is = input => {
3196
+ const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
3197
+ return "object" === typeof input && null !== input && $io0(input);
3198
+ };
3199
+ if (false === __is(input))
3200
+ ((input, _path, _exceptionable = true) => {
3201
+ const $guard = __typia.json.createAssertStringify.guard;
3202
+ const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
3203
+ path: _path + ".type",
3204
+ expected: "\"divider\"",
3205
+ value: input.type
3206
+ }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
3207
+ path: _path + ".title",
3208
+ expected: "(string | undefined)",
3209
+ value: input.title
3210
+ }, errorFactory));
3211
+ return ("object" === typeof input && null !== input || $guard(true, {
3212
+ path: _path + "",
3213
+ expected: "PanelLayoutDivider",
3214
+ value: input
3215
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3216
+ path: _path + "",
3217
+ expected: "PanelLayoutDivider",
3218
+ value: input
3219
+ }, errorFactory);
3220
+ })(input, "$input", true);
3221
+ return input;
3222
+ }; const stringify = input => {
3223
+ const $string = __typia.json.createAssertStringify.string;
3224
+ const $throws = __typia.json.createAssertStringify.throws;
3225
+ const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
3226
+ if ("string" === typeof input.type)
3227
+ return $string(input.type);
3228
+ if ("string" === typeof input.type)
3229
+ return "\"" + input.type + "\"";
3230
+ $throws({
3231
+ expected: "\"divider\"",
3232
+ value: input.type
3233
+ });
3234
+ })()}}`;
3235
+ return $so0(input);
3236
+ }; return stringify(assert(input, errorFactory)); };
3237
+ export const isLayoutWidget = input => {
3238
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3239
+ return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
3240
+ };
3241
+ export const assertLayoutWidget = (input, errorFactory) => {
3242
+ const __is = input => {
3243
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3244
+ return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
3245
+ };
3246
+ if (false === __is(input))
3247
+ ((input, _path, _exceptionable = true) => {
3248
+ const $guard = __typia.createAssert.guard;
3249
+ const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3250
+ path: _path + ".type",
3251
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3252
+ value: input.type
3253
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3254
+ path: _path + ".readOnly",
3255
+ expected: "(boolean | undefined)",
3256
+ value: input.readOnly
3257
+ }, errorFactory));
3258
+ return (null !== input || $guard(true, {
3259
+ path: _path + "",
3260
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3261
+ value: input
3262
+ }, errorFactory)) && (undefined !== input || $guard(true, {
3263
+ path: _path + "",
3264
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3265
+ value: input
3266
+ }, errorFactory)) && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || ("object" === typeof input && null !== input || $guard(true, {
3267
+ path: _path + "",
3268
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3269
+ value: input
3270
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3271
+ path: _path + "",
3272
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3273
+ value: input
3274
+ }, errorFactory));
3275
+ })(input, "$input", true);
3276
+ return input;
3277
+ };
3278
+ export const randomLayoutWidget = generator => {
3279
+ const $pick = __typia.createRandom.pick;
3280
+ const $generator = __typia.createRandom.generator;
3281
+ const $ro0 = (_recursive = false, _depth = 0) => ({
3282
+ type: $pick([
3283
+ () => "default",
3284
+ () => "assetTypes",
3285
+ () => "assetTags",
3286
+ () => "geopoint",
3287
+ () => "poster",
3288
+ () => "textarea",
3289
+ () => "tags"
3290
+ ])(),
3291
+ readOnly: $pick([
3292
+ () => undefined,
3293
+ () => (generator?.boolean ?? $generator.boolean)()
3294
+ ])()
3295
+ });
3296
+ return $pick([
3297
+ () => "default",
3298
+ () => "assetTypes",
3299
+ () => "assetTags",
3300
+ () => "geopoint",
3301
+ () => "poster",
3302
+ () => "textarea",
3303
+ () => "tags",
3304
+ () => $ro0()
3305
+ ])();
3306
+ };
3307
+ export const assertGuardLayoutWidget = (input, errorFactory) => {
3308
+ const __is = input => {
3309
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3310
+ return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
3311
+ };
3312
+ if (false === __is(input))
3313
+ ((input, _path, _exceptionable = true) => {
3314
+ const $guard = __typia.createAssertGuard.guard;
3315
+ const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3316
+ path: _path + ".type",
3317
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3318
+ value: input.type
3319
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3320
+ path: _path + ".readOnly",
3321
+ expected: "(boolean | undefined)",
3322
+ value: input.readOnly
3323
+ }, errorFactory));
3324
+ return (null !== input || $guard(true, {
3325
+ path: _path + "",
3326
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3327
+ value: input
3328
+ }, errorFactory)) && (undefined !== input || $guard(true, {
3329
+ path: _path + "",
3330
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3331
+ value: input
3332
+ }, errorFactory)) && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || ("object" === typeof input && null !== input || $guard(true, {
3333
+ path: _path + "",
3334
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3335
+ value: input
3336
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3337
+ path: _path + "",
3338
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3339
+ value: input
3340
+ }, errorFactory));
3341
+ })(input, "$input", true);
3342
+ };
3343
+ export const stringifyLayoutWidget = input => {
3344
+ const $string = __typia.json.createStringify.string;
3345
+ const $throws = __typia.json.createStringify.throws;
3346
+ const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3347
+ if ("string" === typeof input.type)
3348
+ return $string(input.type);
3349
+ if ("string" === typeof input.type)
3350
+ return "\"" + input.type + "\"";
3351
+ $throws({
3352
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3353
+ value: input.type
3354
+ });
3355
+ })()}}`;
3356
+ return (() => {
3357
+ if ("string" === typeof input)
3358
+ return $string(input);
3359
+ if ("string" === typeof input)
3360
+ return "\"" + input + "\"";
3361
+ if ("object" === typeof input && null !== input)
3362
+ return $so0(input);
3363
+ $throws({
3364
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3365
+ value: input
3366
+ });
3367
+ })();
3368
+ };
3369
+ export const assertStringifyLayoutWidget = (input, errorFactory) => { const assert = (input, errorFactory) => {
3370
+ const __is = input => {
3371
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3372
+ return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
3373
+ };
3374
+ if (false === __is(input))
3375
+ ((input, _path, _exceptionable = true) => {
3376
+ const $guard = __typia.json.createAssertStringify.guard;
3377
+ const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3378
+ path: _path + ".type",
3379
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3380
+ value: input.type
3381
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3382
+ path: _path + ".readOnly",
3383
+ expected: "(boolean | undefined)",
3384
+ value: input.readOnly
3385
+ }, errorFactory));
3386
+ return (null !== input || $guard(true, {
3387
+ path: _path + "",
3388
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3389
+ value: input
3390
+ }, errorFactory)) && (undefined !== input || $guard(true, {
3391
+ path: _path + "",
3392
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3393
+ value: input
3394
+ }, errorFactory)) && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || ("object" === typeof input && null !== input || $guard(true, {
3395
+ path: _path + "",
3396
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3397
+ value: input
3398
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3399
+ path: _path + "",
3400
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3401
+ value: input
3402
+ }, errorFactory));
3403
+ })(input, "$input", true);
3404
+ return input;
3405
+ }; const stringify = input => {
3406
+ const $string = __typia.json.createAssertStringify.string;
3407
+ const $throws = __typia.json.createAssertStringify.throws;
3408
+ const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3409
+ if ("string" === typeof input.type)
3410
+ return $string(input.type);
3411
+ if ("string" === typeof input.type)
3412
+ return "\"" + input.type + "\"";
3413
+ $throws({
3414
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3415
+ value: input.type
3416
+ });
3417
+ })()}}`;
3418
+ return (() => {
3419
+ if ("string" === typeof input)
3420
+ return $string(input);
3421
+ if ("string" === typeof input)
3422
+ return "\"" + input + "\"";
3423
+ if ("object" === typeof input && null !== input)
3424
+ return $so0(input);
3425
+ $throws({
3426
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
3427
+ value: input
3428
+ });
3429
+ })();
3430
+ }; return stringify(assert(input, errorFactory)); };
3431
+ export const isWidgetType = input => {
3432
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
3433
+ };
3434
+ export const assertWidgetType = (input, errorFactory) => {
3435
+ const __is = input => {
3436
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
3437
+ };
3438
+ if (false === __is(input))
3439
+ ((input, _path, _exceptionable = true) => {
3440
+ const $guard = __typia.createAssert.guard;
3441
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || $guard(true, {
3442
+ path: _path + "",
3443
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3444
+ value: input
3445
+ }, errorFactory);
3446
+ })(input, "$input", true);
3447
+ return input;
3448
+ };
3449
+ export const randomWidgetType = generator => {
3450
+ const $pick = __typia.createRandom.pick;
3451
+ return $pick([
3452
+ () => "default",
3453
+ () => "assetTypes",
3454
+ () => "assetTags",
3455
+ () => "geopoint",
3456
+ () => "poster",
3457
+ () => "textarea",
3458
+ () => "tags"
3459
+ ])();
3460
+ };
3461
+ export const assertGuardWidgetType = (input, errorFactory) => {
3462
+ const __is = input => {
3463
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
3464
+ };
3465
+ if (false === __is(input))
3466
+ ((input, _path, _exceptionable = true) => {
3467
+ const $guard = __typia.createAssertGuard.guard;
3468
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || $guard(true, {
3469
+ path: _path + "",
3470
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3471
+ value: input
3472
+ }, errorFactory);
3473
+ })(input, "$input", true);
3474
+ };
3475
+ export const stringifyWidgetType = input => {
3476
+ const $string = __typia.json.createStringify.string;
3477
+ const $throws = __typia.json.createStringify.throws;
3478
+ return (() => {
3479
+ if ("string" === typeof input)
3480
+ return $string(input);
3481
+ if ("string" === typeof input)
3482
+ return "\"" + input + "\"";
3483
+ $throws({
3484
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3485
+ value: input
3486
+ });
3487
+ })();
3488
+ };
3489
+ export const assertStringifyWidgetType = (input, errorFactory) => { const assert = (input, errorFactory) => {
3490
+ const __is = input => {
3491
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
3492
+ };
3493
+ if (false === __is(input))
3494
+ ((input, _path, _exceptionable = true) => {
3495
+ const $guard = __typia.json.createAssertStringify.guard;
3496
+ return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || $guard(true, {
3497
+ path: _path + "",
3498
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3499
+ value: input
3500
+ }, errorFactory);
3501
+ })(input, "$input", true);
3502
+ return input;
3503
+ }; const stringify = input => {
3504
+ const $string = __typia.json.createAssertStringify.string;
3505
+ const $throws = __typia.json.createAssertStringify.throws;
3506
+ return (() => {
3507
+ if ("string" === typeof input)
3508
+ return $string(input);
3509
+ if ("string" === typeof input)
3510
+ return "\"" + input + "\"";
3511
+ $throws({
3512
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3513
+ value: input
3514
+ });
3515
+ })();
3516
+ }; return stringify(assert(input, errorFactory)); };
3517
+ export const isWidgetItem = input => {
3518
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3519
+ return "object" === typeof input && null !== input && $io0(input);
3520
+ };
3521
+ export const assertWidgetItem = (input, errorFactory) => {
3522
+ const __is = input => {
3523
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3524
+ return "object" === typeof input && null !== input && $io0(input);
3525
+ };
3526
+ if (false === __is(input))
3527
+ ((input, _path, _exceptionable = true) => {
3528
+ const $guard = __typia.createAssert.guard;
3529
+ const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3530
+ path: _path + ".type",
3531
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3532
+ value: input.type
3533
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3534
+ path: _path + ".readOnly",
3535
+ expected: "(boolean | undefined)",
3536
+ value: input.readOnly
3537
+ }, errorFactory));
3538
+ return ("object" === typeof input && null !== input || $guard(true, {
3539
+ path: _path + "",
3540
+ expected: "WidgetItem",
3541
+ value: input
3542
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3543
+ path: _path + "",
3544
+ expected: "WidgetItem",
3545
+ value: input
3546
+ }, errorFactory);
3547
+ })(input, "$input", true);
3548
+ return input;
3549
+ };
3550
+ export const randomWidgetItem = generator => {
3551
+ const $pick = __typia.createRandom.pick;
3552
+ const $generator = __typia.createRandom.generator;
3553
+ const $ro0 = (_recursive = false, _depth = 0) => ({
3554
+ type: $pick([
3555
+ () => "default",
3556
+ () => "assetTypes",
3557
+ () => "assetTags",
3558
+ () => "geopoint",
3559
+ () => "poster",
3560
+ () => "textarea",
3561
+ () => "tags"
3562
+ ])(),
3563
+ readOnly: $pick([
3564
+ () => undefined,
3565
+ () => (generator?.boolean ?? $generator.boolean)()
3566
+ ])()
3567
+ });
3568
+ return $ro0();
3569
+ };
3570
+ export const assertGuardWidgetItem = (input, errorFactory) => {
3571
+ const __is = input => {
3572
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3573
+ return "object" === typeof input && null !== input && $io0(input);
3574
+ };
3575
+ if (false === __is(input))
3576
+ ((input, _path, _exceptionable = true) => {
3577
+ const $guard = __typia.createAssertGuard.guard;
3578
+ const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3579
+ path: _path + ".type",
3580
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3581
+ value: input.type
3582
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3583
+ path: _path + ".readOnly",
3584
+ expected: "(boolean | undefined)",
3585
+ value: input.readOnly
3586
+ }, errorFactory));
3587
+ return ("object" === typeof input && null !== input || $guard(true, {
3588
+ path: _path + "",
3589
+ expected: "WidgetItem",
3590
+ value: input
3591
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3592
+ path: _path + "",
3593
+ expected: "WidgetItem",
3594
+ value: input
3595
+ }, errorFactory);
3596
+ })(input, "$input", true);
3597
+ };
3598
+ export const stringifyWidgetItem = input => {
3599
+ const $string = __typia.json.createStringify.string;
3600
+ const $throws = __typia.json.createStringify.throws;
3601
+ const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3602
+ if ("string" === typeof input.type)
3603
+ return $string(input.type);
3604
+ if ("string" === typeof input.type)
3605
+ return "\"" + input.type + "\"";
3606
+ $throws({
3607
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3608
+ value: input.type
3609
+ });
3610
+ })()}}`;
3611
+ return $so0(input);
3612
+ };
3613
+ export const assertStringifyWidgetItem = (input, errorFactory) => { const assert = (input, errorFactory) => {
3614
+ const __is = input => {
3615
+ const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3616
+ return "object" === typeof input && null !== input && $io0(input);
3617
+ };
3618
+ if (false === __is(input))
3619
+ ((input, _path, _exceptionable = true) => {
3620
+ const $guard = __typia.json.createAssertStringify.guard;
3621
+ const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3622
+ path: _path + ".type",
3623
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3624
+ value: input.type
3625
+ }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3626
+ path: _path + ".readOnly",
3627
+ expected: "(boolean | undefined)",
3628
+ value: input.readOnly
3629
+ }, errorFactory));
3630
+ return ("object" === typeof input && null !== input || $guard(true, {
3631
+ path: _path + "",
3632
+ expected: "WidgetItem",
3633
+ value: input
3634
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3635
+ path: _path + "",
3636
+ expected: "WidgetItem",
3637
+ value: input
3638
+ }, errorFactory);
3639
+ })(input, "$input", true);
3640
+ return input;
3641
+ }; const stringify = input => {
3642
+ const $string = __typia.json.createAssertStringify.string;
3643
+ const $throws = __typia.json.createAssertStringify.throws;
3644
+ const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3645
+ if ("string" === typeof input.type)
3646
+ return $string(input.type);
3647
+ if ("string" === typeof input.type)
3648
+ return "\"" + input.type + "\"";
3649
+ $throws({
3650
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3651
+ value: input.type
3652
+ });
3653
+ })()}}`;
3654
+ return $so0(input);
3655
+ }; return stringify(assert(input, errorFactory)); };