@nxtedition/types 23.0.30 → 23.0.32

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.
@@ -1,24 +1,41 @@
1
1
  import __typia from "typia";
2
2
  export const isRenderScene = input => {
3
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
3
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
4
4
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
5
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
6
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
7
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
5
+ const $io2 = input => Object.keys(input).every(key => {
6
+ const value = input[key];
7
+ if (undefined === value)
8
+ return true;
9
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
10
+ });
11
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
12
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
13
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
14
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
15
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
8
16
  return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
9
17
  };
10
18
  export const assertRenderScene = (input, errorFactory) => {
11
19
  const __is = input => {
12
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
20
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
13
21
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
14
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
15
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
16
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
22
+ const $io2 = input => Object.keys(input).every(key => {
23
+ const value = input[key];
24
+ if (undefined === value)
25
+ return true;
26
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
27
+ });
28
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
29
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
30
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
31
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
32
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
17
33
  return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
18
34
  };
19
35
  if (false === __is(input))
20
36
  ((input, _path, _exceptionable = true) => {
21
37
  const $guard = __typia.createAssert.guard;
38
+ const $join = __typia.createAssert.join;
22
39
  const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
23
40
  path: _path + ".id",
24
41
  expected: "(string | undefined)",
@@ -43,13 +60,21 @@ export const assertRenderScene = (input, errorFactory) => {
43
60
  path: _path + ".subtitle",
44
61
  expected: "(string | undefined)",
45
62
  value: input.subtitle
63
+ }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
64
+ path: _path + ".subtitleTracks",
65
+ expected: "(__type.o1 | undefined)",
66
+ value: input.subtitleTracks
67
+ }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
68
+ path: _path + ".subtitleTracks",
69
+ expected: "(__type.o1 | undefined)",
70
+ value: input.subtitleTracks
46
71
  }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
47
72
  path: _path + ".video",
48
- expected: "(__type.o1 | undefined)",
73
+ expected: "(__type.o3 | undefined)",
49
74
  value: input.video
50
- }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
75
+ }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
51
76
  path: _path + ".video",
52
- expected: "(__type.o1 | undefined)",
77
+ expected: "(__type.o3 | undefined)",
53
78
  value: input.video
54
79
  }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
55
80
  path: _path + ".start",
@@ -61,11 +86,11 @@ export const assertRenderScene = (input, errorFactory) => {
61
86
  value: input.end
62
87
  }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
63
88
  path: _path + ".transcribe",
64
- expected: "(__type.o3 | undefined)",
89
+ expected: "(__type.o5 | undefined)",
65
90
  value: input.transcribe
66
- }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
91
+ }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
67
92
  path: _path + ".transcribe",
68
- expected: "(__type.o3 | undefined)",
93
+ expected: "(__type.o5 | undefined)",
69
94
  value: input.transcribe
70
95
  }, errorFactory));
71
96
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
@@ -77,16 +102,136 @@ export const assertRenderScene = (input, errorFactory) => {
77
102
  expected: "(null | string | undefined)",
78
103
  value: input.file
79
104
  }, errorFactory));
80
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
105
+ const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
106
+ const value = input[key];
107
+ if (undefined === value)
108
+ return true;
109
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
110
+ path: _path + $join(key),
111
+ expected: "__type.o2",
112
+ value: value
113
+ }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
114
+ path: _path + $join(key),
115
+ expected: "__type.o2",
116
+ value: value
117
+ }, errorFactory);
118
+ });
119
+ const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
120
+ path: _path + ".style",
121
+ expected: "(null | string | undefined)",
122
+ value: input.style
123
+ }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
124
+ path: _path + ".styleOverrides",
125
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
126
+ value: input.styleOverrides
127
+ }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
128
+ path: _path + ".styleOverrides",
129
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
130
+ value: input.styleOverrides
131
+ }, errorFactory));
132
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
133
+ path: _path + ".name",
134
+ expected: "(string | undefined)",
135
+ value: input.name
136
+ }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
137
+ path: _path + ".fontname",
138
+ expected: "(string | undefined)",
139
+ value: input.fontname
140
+ }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
141
+ path: _path + ".fontsize",
142
+ expected: "(string | undefined)",
143
+ value: input.fontsize
144
+ }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
145
+ path: _path + ".primaryColour",
146
+ expected: "(string | undefined)",
147
+ value: input.primaryColour
148
+ }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
149
+ path: _path + ".secondaryColour",
150
+ expected: "(string | undefined)",
151
+ value: input.secondaryColour
152
+ }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
153
+ path: _path + ".outlineColour",
154
+ expected: "(string | undefined)",
155
+ value: input.outlineColour
156
+ }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
157
+ path: _path + ".backColour",
158
+ expected: "(string | undefined)",
159
+ value: input.backColour
160
+ }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
161
+ path: _path + ".bold",
162
+ expected: "(string | undefined)",
163
+ value: input.bold
164
+ }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
165
+ path: _path + ".italic",
166
+ expected: "(string | undefined)",
167
+ value: input.italic
168
+ }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
169
+ path: _path + ".underline",
170
+ expected: "(string | undefined)",
171
+ value: input.underline
172
+ }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
173
+ path: _path + ".strikeOut",
174
+ expected: "(string | undefined)",
175
+ value: input.strikeOut
176
+ }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
177
+ path: _path + ".scaleX",
178
+ expected: "(string | undefined)",
179
+ value: input.scaleX
180
+ }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
181
+ path: _path + ".scaleY",
182
+ expected: "(string | undefined)",
183
+ value: input.scaleY
184
+ }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
185
+ path: _path + ".spacing",
186
+ expected: "(string | undefined)",
187
+ value: input.spacing
188
+ }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
189
+ path: _path + ".angle",
190
+ expected: "(string | undefined)",
191
+ value: input.angle
192
+ }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
193
+ path: _path + ".borderStyle",
194
+ expected: "(string | undefined)",
195
+ value: input.borderStyle
196
+ }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
197
+ path: _path + ".outline",
198
+ expected: "(string | undefined)",
199
+ value: input.outline
200
+ }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
201
+ path: _path + ".shadow",
202
+ expected: "(string | undefined)",
203
+ value: input.shadow
204
+ }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
205
+ path: _path + ".alignment",
206
+ expected: "(string | undefined)",
207
+ value: input.alignment
208
+ }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
209
+ path: _path + ".marginL",
210
+ expected: "(string | undefined)",
211
+ value: input.marginL
212
+ }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
213
+ path: _path + ".marginR",
214
+ expected: "(string | undefined)",
215
+ value: input.marginR
216
+ }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
217
+ path: _path + ".marginV",
218
+ expected: "(string | undefined)",
219
+ value: input.marginV
220
+ }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
221
+ path: _path + ".encoding",
222
+ expected: "(string | undefined)",
223
+ value: input.encoding
224
+ }, errorFactory));
225
+ const $ao5 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
81
226
  path: _path + ".crop",
82
- expected: "(__type.o2 | undefined)",
227
+ expected: "(__type.o4 | undefined)",
83
228
  value: input.crop
84
- }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
229
+ }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
85
230
  path: _path + ".crop",
86
- expected: "(__type.o2 | undefined)",
231
+ expected: "(__type.o4 | undefined)",
87
232
  value: input.crop
88
233
  }, errorFactory);
89
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
234
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
90
235
  path: _path + ".x",
91
236
  expected: "(number | undefined)",
92
237
  value: input.x
@@ -103,7 +248,7 @@ export const assertRenderScene = (input, errorFactory) => {
103
248
  expected: "(number | undefined)",
104
249
  value: input.height
105
250
  }, errorFactory));
106
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
251
+ const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
107
252
  path: _path + ".language",
108
253
  expected: "(string | undefined)",
109
254
  value: input.language
@@ -180,10 +325,14 @@ export const randomRenderScene = generator => {
180
325
  () => undefined,
181
326
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
182
327
  ])(),
183
- video: $pick([
328
+ subtitleTracks: $pick([
184
329
  () => undefined,
185
330
  () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
186
331
  ])(),
332
+ video: $pick([
333
+ () => undefined,
334
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
335
+ ])(),
187
336
  start: $pick([
188
337
  () => undefined,
189
338
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
@@ -194,7 +343,7 @@ export const randomRenderScene = generator => {
194
343
  ])(),
195
344
  transcribe: $pick([
196
345
  () => undefined,
197
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
346
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
198
347
  ])()
199
348
  });
200
349
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -208,13 +357,123 @@ export const randomRenderScene = generator => {
208
357
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
209
358
  ])()
210
359
  });
211
- const $ro2 = (_recursive = false, _depth = 0) => ({
360
+ const $ro2 = (_recursive = false, _depth = 0) => {
361
+ const output = {};
362
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro3(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
363
+ return output;
364
+ };
365
+ const $ro3 = (_recursive = false, _depth = 0) => ({
366
+ style: $pick([
367
+ () => undefined,
368
+ () => null,
369
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
370
+ ])(),
371
+ styleOverrides: $pick([
372
+ () => undefined,
373
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
374
+ ])()
375
+ });
376
+ const $ro4 = (_recursive = false, _depth = 0) => ({
377
+ name: $pick([
378
+ () => undefined,
379
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
380
+ ])(),
381
+ fontname: $pick([
382
+ () => undefined,
383
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
384
+ ])(),
385
+ fontsize: $pick([
386
+ () => undefined,
387
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
388
+ ])(),
389
+ primaryColour: $pick([
390
+ () => undefined,
391
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
392
+ ])(),
393
+ secondaryColour: $pick([
394
+ () => undefined,
395
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
396
+ ])(),
397
+ outlineColour: $pick([
398
+ () => undefined,
399
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
400
+ ])(),
401
+ backColour: $pick([
402
+ () => undefined,
403
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
404
+ ])(),
405
+ bold: $pick([
406
+ () => undefined,
407
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
408
+ ])(),
409
+ italic: $pick([
410
+ () => undefined,
411
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
412
+ ])(),
413
+ underline: $pick([
414
+ () => undefined,
415
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
416
+ ])(),
417
+ strikeOut: $pick([
418
+ () => undefined,
419
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
420
+ ])(),
421
+ scaleX: $pick([
422
+ () => undefined,
423
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
424
+ ])(),
425
+ scaleY: $pick([
426
+ () => undefined,
427
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
428
+ ])(),
429
+ spacing: $pick([
430
+ () => undefined,
431
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
432
+ ])(),
433
+ angle: $pick([
434
+ () => undefined,
435
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
436
+ ])(),
437
+ borderStyle: $pick([
438
+ () => undefined,
439
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
440
+ ])(),
441
+ outline: $pick([
442
+ () => undefined,
443
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
444
+ ])(),
445
+ shadow: $pick([
446
+ () => undefined,
447
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
448
+ ])(),
449
+ alignment: $pick([
450
+ () => undefined,
451
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
452
+ ])(),
453
+ marginL: $pick([
454
+ () => undefined,
455
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
456
+ ])(),
457
+ marginR: $pick([
458
+ () => undefined,
459
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
460
+ ])(),
461
+ marginV: $pick([
462
+ () => undefined,
463
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
464
+ ])(),
465
+ encoding: $pick([
466
+ () => undefined,
467
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
468
+ ])()
469
+ });
470
+ const $ro5 = (_recursive = false, _depth = 0) => ({
212
471
  crop: $pick([
213
472
  () => undefined,
214
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
473
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
215
474
  ])()
216
475
  });
217
- const $ro3 = (_recursive = false, _depth = 0) => ({
476
+ const $ro6 = (_recursive = false, _depth = 0) => ({
218
477
  x: $pick([
219
478
  () => undefined,
220
479
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
@@ -232,7 +491,7 @@ export const randomRenderScene = generator => {
232
491
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
233
492
  ])()
234
493
  });
235
- const $ro4 = (_recursive = false, _depth = 0) => ({
494
+ const $ro7 = (_recursive = false, _depth = 0) => ({
236
495
  language: $pick([
237
496
  () => undefined,
238
497
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
@@ -253,16 +512,25 @@ export const randomRenderScene = generator => {
253
512
  };
254
513
  export const assertGuardRenderScene = (input, errorFactory) => {
255
514
  const __is = input => {
256
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
515
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
257
516
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
258
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
259
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
260
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
517
+ const $io2 = input => Object.keys(input).every(key => {
518
+ const value = input[key];
519
+ if (undefined === value)
520
+ return true;
521
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
522
+ });
523
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
524
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
525
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
526
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
527
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
261
528
  return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
262
529
  };
263
530
  if (false === __is(input))
264
531
  ((input, _path, _exceptionable = true) => {
265
532
  const $guard = __typia.createAssertGuard.guard;
533
+ const $join = __typia.createAssertGuard.join;
266
534
  const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
267
535
  path: _path + ".id",
268
536
  expected: "(string | undefined)",
@@ -287,13 +555,21 @@ export const assertGuardRenderScene = (input, errorFactory) => {
287
555
  path: _path + ".subtitle",
288
556
  expected: "(string | undefined)",
289
557
  value: input.subtitle
558
+ }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
559
+ path: _path + ".subtitleTracks",
560
+ expected: "(__type.o1 | undefined)",
561
+ value: input.subtitleTracks
562
+ }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
563
+ path: _path + ".subtitleTracks",
564
+ expected: "(__type.o1 | undefined)",
565
+ value: input.subtitleTracks
290
566
  }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
291
567
  path: _path + ".video",
292
- expected: "(__type.o1 | undefined)",
568
+ expected: "(__type.o3 | undefined)",
293
569
  value: input.video
294
- }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
570
+ }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
295
571
  path: _path + ".video",
296
- expected: "(__type.o1 | undefined)",
572
+ expected: "(__type.o3 | undefined)",
297
573
  value: input.video
298
574
  }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
299
575
  path: _path + ".start",
@@ -305,11 +581,11 @@ export const assertGuardRenderScene = (input, errorFactory) => {
305
581
  value: input.end
306
582
  }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
307
583
  path: _path + ".transcribe",
308
- expected: "(__type.o3 | undefined)",
584
+ expected: "(__type.o5 | undefined)",
309
585
  value: input.transcribe
310
- }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
586
+ }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
311
587
  path: _path + ".transcribe",
312
- expected: "(__type.o3 | undefined)",
588
+ expected: "(__type.o5 | undefined)",
313
589
  value: input.transcribe
314
590
  }, errorFactory));
315
591
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
@@ -321,16 +597,136 @@ export const assertGuardRenderScene = (input, errorFactory) => {
321
597
  expected: "(null | string | undefined)",
322
598
  value: input.file
323
599
  }, errorFactory));
324
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
600
+ const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
601
+ const value = input[key];
602
+ if (undefined === value)
603
+ return true;
604
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
605
+ path: _path + $join(key),
606
+ expected: "__type.o2",
607
+ value: value
608
+ }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
609
+ path: _path + $join(key),
610
+ expected: "__type.o2",
611
+ value: value
612
+ }, errorFactory);
613
+ });
614
+ const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
615
+ path: _path + ".style",
616
+ expected: "(null | string | undefined)",
617
+ value: input.style
618
+ }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
619
+ path: _path + ".styleOverrides",
620
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
621
+ value: input.styleOverrides
622
+ }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
623
+ path: _path + ".styleOverrides",
624
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
625
+ value: input.styleOverrides
626
+ }, errorFactory));
627
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
628
+ path: _path + ".name",
629
+ expected: "(string | undefined)",
630
+ value: input.name
631
+ }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
632
+ path: _path + ".fontname",
633
+ expected: "(string | undefined)",
634
+ value: input.fontname
635
+ }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
636
+ path: _path + ".fontsize",
637
+ expected: "(string | undefined)",
638
+ value: input.fontsize
639
+ }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
640
+ path: _path + ".primaryColour",
641
+ expected: "(string | undefined)",
642
+ value: input.primaryColour
643
+ }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
644
+ path: _path + ".secondaryColour",
645
+ expected: "(string | undefined)",
646
+ value: input.secondaryColour
647
+ }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
648
+ path: _path + ".outlineColour",
649
+ expected: "(string | undefined)",
650
+ value: input.outlineColour
651
+ }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
652
+ path: _path + ".backColour",
653
+ expected: "(string | undefined)",
654
+ value: input.backColour
655
+ }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
656
+ path: _path + ".bold",
657
+ expected: "(string | undefined)",
658
+ value: input.bold
659
+ }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
660
+ path: _path + ".italic",
661
+ expected: "(string | undefined)",
662
+ value: input.italic
663
+ }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
664
+ path: _path + ".underline",
665
+ expected: "(string | undefined)",
666
+ value: input.underline
667
+ }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
668
+ path: _path + ".strikeOut",
669
+ expected: "(string | undefined)",
670
+ value: input.strikeOut
671
+ }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
672
+ path: _path + ".scaleX",
673
+ expected: "(string | undefined)",
674
+ value: input.scaleX
675
+ }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
676
+ path: _path + ".scaleY",
677
+ expected: "(string | undefined)",
678
+ value: input.scaleY
679
+ }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
680
+ path: _path + ".spacing",
681
+ expected: "(string | undefined)",
682
+ value: input.spacing
683
+ }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
684
+ path: _path + ".angle",
685
+ expected: "(string | undefined)",
686
+ value: input.angle
687
+ }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
688
+ path: _path + ".borderStyle",
689
+ expected: "(string | undefined)",
690
+ value: input.borderStyle
691
+ }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
692
+ path: _path + ".outline",
693
+ expected: "(string | undefined)",
694
+ value: input.outline
695
+ }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
696
+ path: _path + ".shadow",
697
+ expected: "(string | undefined)",
698
+ value: input.shadow
699
+ }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
700
+ path: _path + ".alignment",
701
+ expected: "(string | undefined)",
702
+ value: input.alignment
703
+ }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
704
+ path: _path + ".marginL",
705
+ expected: "(string | undefined)",
706
+ value: input.marginL
707
+ }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
708
+ path: _path + ".marginR",
709
+ expected: "(string | undefined)",
710
+ value: input.marginR
711
+ }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
712
+ path: _path + ".marginV",
713
+ expected: "(string | undefined)",
714
+ value: input.marginV
715
+ }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
716
+ path: _path + ".encoding",
717
+ expected: "(string | undefined)",
718
+ value: input.encoding
719
+ }, errorFactory));
720
+ const $ao5 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
325
721
  path: _path + ".crop",
326
- expected: "(__type.o2 | undefined)",
722
+ expected: "(__type.o4 | undefined)",
327
723
  value: input.crop
328
- }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
724
+ }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
329
725
  path: _path + ".crop",
330
- expected: "(__type.o2 | undefined)",
726
+ expected: "(__type.o4 | undefined)",
331
727
  value: input.crop
332
728
  }, errorFactory);
333
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
729
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
334
730
  path: _path + ".x",
335
731
  expected: "(number | undefined)",
336
732
  value: input.x
@@ -347,7 +743,7 @@ export const assertGuardRenderScene = (input, errorFactory) => {
347
743
  expected: "(number | undefined)",
348
744
  value: input.height
349
745
  }, errorFactory));
350
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
746
+ const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
351
747
  path: _path + ".language",
352
748
  expected: "(string | undefined)",
353
749
  value: input.language
@@ -401,17 +797,29 @@ export const assertGuardRenderScene = (input, errorFactory) => {
401
797
  };
402
798
  export const stringifyRenderScene = input => {
403
799
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
404
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
405
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
406
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
800
+ const $io2 = input => Object.keys(input).every(key => {
801
+ const value = input[key];
802
+ if (undefined === value)
803
+ return true;
804
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
805
+ });
806
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
807
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
808
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
809
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
810
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
407
811
  const $string = __typia.json.createStringify.string;
408
812
  const $throws = __typia.json.createStringify.throws;
409
813
  const $tail = __typia.json.createStringify.tail;
410
- const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
814
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so5(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so7(input.transcribe) : undefined}`}`)}}`;
411
815
  const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
412
- const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
413
- const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
414
- const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
816
+ const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
817
+ return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
818
+ const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
819
+ const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
820
+ const $so5 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so6(input.crop) : undefined}`}`)}}`;
821
+ const $so6 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
822
+ const $so7 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
415
823
  return (() => {
416
824
  if ("string" === typeof input)
417
825
  return $string(input);
@@ -436,16 +844,25 @@ export const stringifyRenderScene = input => {
436
844
  };
437
845
  export const assertStringifyRenderScene = (input, errorFactory) => { const assert = (input, errorFactory) => {
438
846
  const __is = input => {
439
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
847
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
440
848
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
441
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
442
- const $io3 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
443
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
849
+ const $io2 = input => Object.keys(input).every(key => {
850
+ const value = input[key];
851
+ if (undefined === value)
852
+ return true;
853
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
854
+ });
855
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
856
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
857
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
858
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
859
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
444
860
  return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
445
861
  };
446
862
  if (false === __is(input))
447
863
  ((input, _path, _exceptionable = true) => {
448
864
  const $guard = __typia.json.createAssertStringify.guard;
865
+ const $join = __typia.json.createAssertStringify.join;
449
866
  const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
450
867
  path: _path + ".id",
451
868
  expected: "(string | undefined)",
@@ -470,13 +887,21 @@ export const assertStringifyRenderScene = (input, errorFactory) => { const asser
470
887
  path: _path + ".subtitle",
471
888
  expected: "(string | undefined)",
472
889
  value: input.subtitle
890
+ }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
891
+ path: _path + ".subtitleTracks",
892
+ expected: "(__type.o1 | undefined)",
893
+ value: input.subtitleTracks
894
+ }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
895
+ path: _path + ".subtitleTracks",
896
+ expected: "(__type.o1 | undefined)",
897
+ value: input.subtitleTracks
473
898
  }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
474
899
  path: _path + ".video",
475
- expected: "(__type.o1 | undefined)",
900
+ expected: "(__type.o3 | undefined)",
476
901
  value: input.video
477
- }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
902
+ }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
478
903
  path: _path + ".video",
479
- expected: "(__type.o1 | undefined)",
904
+ expected: "(__type.o3 | undefined)",
480
905
  value: input.video
481
906
  }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
482
907
  path: _path + ".start",
@@ -488,11 +913,11 @@ export const assertStringifyRenderScene = (input, errorFactory) => { const asser
488
913
  value: input.end
489
914
  }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
490
915
  path: _path + ".transcribe",
491
- expected: "(__type.o3 | undefined)",
916
+ expected: "(__type.o5 | undefined)",
492
917
  value: input.transcribe
493
- }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
918
+ }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
494
919
  path: _path + ".transcribe",
495
- expected: "(__type.o3 | undefined)",
920
+ expected: "(__type.o5 | undefined)",
496
921
  value: input.transcribe
497
922
  }, errorFactory));
498
923
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
@@ -504,16 +929,136 @@ export const assertStringifyRenderScene = (input, errorFactory) => { const asser
504
929
  expected: "(null | string | undefined)",
505
930
  value: input.file
506
931
  }, errorFactory));
507
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
932
+ const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
933
+ const value = input[key];
934
+ if (undefined === value)
935
+ return true;
936
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
937
+ path: _path + $join(key),
938
+ expected: "__type.o2",
939
+ value: value
940
+ }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
941
+ path: _path + $join(key),
942
+ expected: "__type.o2",
943
+ value: value
944
+ }, errorFactory);
945
+ });
946
+ const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
947
+ path: _path + ".style",
948
+ expected: "(null | string | undefined)",
949
+ value: input.style
950
+ }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
951
+ path: _path + ".styleOverrides",
952
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
953
+ value: input.styleOverrides
954
+ }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
955
+ path: _path + ".styleOverrides",
956
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
957
+ value: input.styleOverrides
958
+ }, errorFactory));
959
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
960
+ path: _path + ".name",
961
+ expected: "(string | undefined)",
962
+ value: input.name
963
+ }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
964
+ path: _path + ".fontname",
965
+ expected: "(string | undefined)",
966
+ value: input.fontname
967
+ }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
968
+ path: _path + ".fontsize",
969
+ expected: "(string | undefined)",
970
+ value: input.fontsize
971
+ }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
972
+ path: _path + ".primaryColour",
973
+ expected: "(string | undefined)",
974
+ value: input.primaryColour
975
+ }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
976
+ path: _path + ".secondaryColour",
977
+ expected: "(string | undefined)",
978
+ value: input.secondaryColour
979
+ }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
980
+ path: _path + ".outlineColour",
981
+ expected: "(string | undefined)",
982
+ value: input.outlineColour
983
+ }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
984
+ path: _path + ".backColour",
985
+ expected: "(string | undefined)",
986
+ value: input.backColour
987
+ }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
988
+ path: _path + ".bold",
989
+ expected: "(string | undefined)",
990
+ value: input.bold
991
+ }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
992
+ path: _path + ".italic",
993
+ expected: "(string | undefined)",
994
+ value: input.italic
995
+ }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
996
+ path: _path + ".underline",
997
+ expected: "(string | undefined)",
998
+ value: input.underline
999
+ }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1000
+ path: _path + ".strikeOut",
1001
+ expected: "(string | undefined)",
1002
+ value: input.strikeOut
1003
+ }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1004
+ path: _path + ".scaleX",
1005
+ expected: "(string | undefined)",
1006
+ value: input.scaleX
1007
+ }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1008
+ path: _path + ".scaleY",
1009
+ expected: "(string | undefined)",
1010
+ value: input.scaleY
1011
+ }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1012
+ path: _path + ".spacing",
1013
+ expected: "(string | undefined)",
1014
+ value: input.spacing
1015
+ }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1016
+ path: _path + ".angle",
1017
+ expected: "(string | undefined)",
1018
+ value: input.angle
1019
+ }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1020
+ path: _path + ".borderStyle",
1021
+ expected: "(string | undefined)",
1022
+ value: input.borderStyle
1023
+ }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1024
+ path: _path + ".outline",
1025
+ expected: "(string | undefined)",
1026
+ value: input.outline
1027
+ }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1028
+ path: _path + ".shadow",
1029
+ expected: "(string | undefined)",
1030
+ value: input.shadow
1031
+ }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1032
+ path: _path + ".alignment",
1033
+ expected: "(string | undefined)",
1034
+ value: input.alignment
1035
+ }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1036
+ path: _path + ".marginL",
1037
+ expected: "(string | undefined)",
1038
+ value: input.marginL
1039
+ }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1040
+ path: _path + ".marginR",
1041
+ expected: "(string | undefined)",
1042
+ value: input.marginR
1043
+ }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1044
+ path: _path + ".marginV",
1045
+ expected: "(string | undefined)",
1046
+ value: input.marginV
1047
+ }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1048
+ path: _path + ".encoding",
1049
+ expected: "(string | undefined)",
1050
+ value: input.encoding
1051
+ }, errorFactory));
1052
+ const $ao5 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
508
1053
  path: _path + ".crop",
509
- expected: "(__type.o2 | undefined)",
1054
+ expected: "(__type.o4 | undefined)",
510
1055
  value: input.crop
511
- }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1056
+ }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
512
1057
  path: _path + ".crop",
513
- expected: "(__type.o2 | undefined)",
1058
+ expected: "(__type.o4 | undefined)",
514
1059
  value: input.crop
515
1060
  }, errorFactory);
516
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1061
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
517
1062
  path: _path + ".x",
518
1063
  expected: "(number | undefined)",
519
1064
  value: input.x
@@ -530,7 +1075,7 @@ export const assertStringifyRenderScene = (input, errorFactory) => { const asser
530
1075
  expected: "(number | undefined)",
531
1076
  value: input.height
532
1077
  }, errorFactory));
533
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1078
+ const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
534
1079
  path: _path + ".language",
535
1080
  expected: "(string | undefined)",
536
1081
  value: input.language
@@ -584,17 +1129,29 @@ export const assertStringifyRenderScene = (input, errorFactory) => { const asser
584
1129
  return input;
585
1130
  }; const stringify = input => {
586
1131
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
587
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
588
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
589
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1132
+ const $io2 = input => Object.keys(input).every(key => {
1133
+ const value = input[key];
1134
+ if (undefined === value)
1135
+ return true;
1136
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1137
+ });
1138
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1139
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
1140
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
1141
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1142
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
590
1143
  const $string = __typia.json.createAssertStringify.string;
591
1144
  const $throws = __typia.json.createAssertStringify.throws;
592
1145
  const $tail = __typia.json.createAssertStringify.tail;
593
- const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
1146
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so5(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so7(input.transcribe) : undefined}`}`)}}`;
594
1147
  const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
595
- const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
596
- const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
597
- const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
1148
+ const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1149
+ return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
1150
+ const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
1151
+ const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
1152
+ const $so5 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so6(input.crop) : undefined}`}`)}}`;
1153
+ const $so6 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
1154
+ const $so7 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
598
1155
  return (() => {
599
1156
  if ("string" === typeof input)
600
1157
  return $string(input);
@@ -618,25 +1175,42 @@ export const assertStringifyRenderScene = (input, errorFactory) => { const asser
618
1175
  })();
619
1176
  }; return stringify(assert(input, errorFactory)); };
620
1177
  export const isRenderSceneObject = input => {
621
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
1178
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
622
1179
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
623
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
624
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
625
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1180
+ const $io2 = input => Object.keys(input).every(key => {
1181
+ const value = input[key];
1182
+ if (undefined === value)
1183
+ return true;
1184
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1185
+ });
1186
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1187
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
1188
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
1189
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1190
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
626
1191
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
627
1192
  };
628
1193
  export const assertRenderSceneObject = (input, errorFactory) => {
629
1194
  const __is = input => {
630
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
1195
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
631
1196
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
632
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
633
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
634
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1197
+ const $io2 = input => Object.keys(input).every(key => {
1198
+ const value = input[key];
1199
+ if (undefined === value)
1200
+ return true;
1201
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1202
+ });
1203
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1204
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
1205
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
1206
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1207
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
635
1208
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
636
1209
  };
637
1210
  if (false === __is(input))
638
1211
  ((input, _path, _exceptionable = true) => {
639
1212
  const $guard = __typia.createAssert.guard;
1213
+ const $join = __typia.createAssert.join;
640
1214
  const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
641
1215
  path: _path + ".id",
642
1216
  expected: "(string | undefined)",
@@ -661,13 +1235,21 @@ export const assertRenderSceneObject = (input, errorFactory) => {
661
1235
  path: _path + ".subtitle",
662
1236
  expected: "(string | undefined)",
663
1237
  value: input.subtitle
1238
+ }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1239
+ path: _path + ".subtitleTracks",
1240
+ expected: "(__type.o1 | undefined)",
1241
+ value: input.subtitleTracks
1242
+ }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1243
+ path: _path + ".subtitleTracks",
1244
+ expected: "(__type.o1 | undefined)",
1245
+ value: input.subtitleTracks
664
1246
  }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
665
1247
  path: _path + ".video",
666
- expected: "(__type.o1 | undefined)",
1248
+ expected: "(__type.o3 | undefined)",
667
1249
  value: input.video
668
- }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1250
+ }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
669
1251
  path: _path + ".video",
670
- expected: "(__type.o1 | undefined)",
1252
+ expected: "(__type.o3 | undefined)",
671
1253
  value: input.video
672
1254
  }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
673
1255
  path: _path + ".start",
@@ -679,11 +1261,11 @@ export const assertRenderSceneObject = (input, errorFactory) => {
679
1261
  value: input.end
680
1262
  }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
681
1263
  path: _path + ".transcribe",
682
- expected: "(__type.o3 | undefined)",
1264
+ expected: "(__type.o5 | undefined)",
683
1265
  value: input.transcribe
684
- }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1266
+ }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
685
1267
  path: _path + ".transcribe",
686
- expected: "(__type.o3 | undefined)",
1268
+ expected: "(__type.o5 | undefined)",
687
1269
  value: input.transcribe
688
1270
  }, errorFactory));
689
1271
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
@@ -695,16 +1277,136 @@ export const assertRenderSceneObject = (input, errorFactory) => {
695
1277
  expected: "(null | string | undefined)",
696
1278
  value: input.file
697
1279
  }, errorFactory));
698
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1280
+ const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1281
+ const value = input[key];
1282
+ if (undefined === value)
1283
+ return true;
1284
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1285
+ path: _path + $join(key),
1286
+ expected: "__type.o2",
1287
+ value: value
1288
+ }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1289
+ path: _path + $join(key),
1290
+ expected: "__type.o2",
1291
+ value: value
1292
+ }, errorFactory);
1293
+ });
1294
+ const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1295
+ path: _path + ".style",
1296
+ expected: "(null | string | undefined)",
1297
+ value: input.style
1298
+ }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1299
+ path: _path + ".styleOverrides",
1300
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1301
+ value: input.styleOverrides
1302
+ }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1303
+ path: _path + ".styleOverrides",
1304
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1305
+ value: input.styleOverrides
1306
+ }, errorFactory));
1307
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1308
+ path: _path + ".name",
1309
+ expected: "(string | undefined)",
1310
+ value: input.name
1311
+ }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1312
+ path: _path + ".fontname",
1313
+ expected: "(string | undefined)",
1314
+ value: input.fontname
1315
+ }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1316
+ path: _path + ".fontsize",
1317
+ expected: "(string | undefined)",
1318
+ value: input.fontsize
1319
+ }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1320
+ path: _path + ".primaryColour",
1321
+ expected: "(string | undefined)",
1322
+ value: input.primaryColour
1323
+ }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1324
+ path: _path + ".secondaryColour",
1325
+ expected: "(string | undefined)",
1326
+ value: input.secondaryColour
1327
+ }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1328
+ path: _path + ".outlineColour",
1329
+ expected: "(string | undefined)",
1330
+ value: input.outlineColour
1331
+ }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1332
+ path: _path + ".backColour",
1333
+ expected: "(string | undefined)",
1334
+ value: input.backColour
1335
+ }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1336
+ path: _path + ".bold",
1337
+ expected: "(string | undefined)",
1338
+ value: input.bold
1339
+ }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1340
+ path: _path + ".italic",
1341
+ expected: "(string | undefined)",
1342
+ value: input.italic
1343
+ }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1344
+ path: _path + ".underline",
1345
+ expected: "(string | undefined)",
1346
+ value: input.underline
1347
+ }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1348
+ path: _path + ".strikeOut",
1349
+ expected: "(string | undefined)",
1350
+ value: input.strikeOut
1351
+ }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1352
+ path: _path + ".scaleX",
1353
+ expected: "(string | undefined)",
1354
+ value: input.scaleX
1355
+ }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1356
+ path: _path + ".scaleY",
1357
+ expected: "(string | undefined)",
1358
+ value: input.scaleY
1359
+ }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1360
+ path: _path + ".spacing",
1361
+ expected: "(string | undefined)",
1362
+ value: input.spacing
1363
+ }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1364
+ path: _path + ".angle",
1365
+ expected: "(string | undefined)",
1366
+ value: input.angle
1367
+ }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1368
+ path: _path + ".borderStyle",
1369
+ expected: "(string | undefined)",
1370
+ value: input.borderStyle
1371
+ }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1372
+ path: _path + ".outline",
1373
+ expected: "(string | undefined)",
1374
+ value: input.outline
1375
+ }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1376
+ path: _path + ".shadow",
1377
+ expected: "(string | undefined)",
1378
+ value: input.shadow
1379
+ }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1380
+ path: _path + ".alignment",
1381
+ expected: "(string | undefined)",
1382
+ value: input.alignment
1383
+ }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1384
+ path: _path + ".marginL",
1385
+ expected: "(string | undefined)",
1386
+ value: input.marginL
1387
+ }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1388
+ path: _path + ".marginR",
1389
+ expected: "(string | undefined)",
1390
+ value: input.marginR
1391
+ }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1392
+ path: _path + ".marginV",
1393
+ expected: "(string | undefined)",
1394
+ value: input.marginV
1395
+ }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1396
+ path: _path + ".encoding",
1397
+ expected: "(string | undefined)",
1398
+ value: input.encoding
1399
+ }, errorFactory));
1400
+ const $ao5 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
699
1401
  path: _path + ".crop",
700
- expected: "(__type.o2 | undefined)",
1402
+ expected: "(__type.o4 | undefined)",
701
1403
  value: input.crop
702
- }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1404
+ }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
703
1405
  path: _path + ".crop",
704
- expected: "(__type.o2 | undefined)",
1406
+ expected: "(__type.o4 | undefined)",
705
1407
  value: input.crop
706
1408
  }, errorFactory);
707
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1409
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
708
1410
  path: _path + ".x",
709
1411
  expected: "(number | undefined)",
710
1412
  value: input.x
@@ -721,7 +1423,7 @@ export const assertRenderSceneObject = (input, errorFactory) => {
721
1423
  expected: "(number | undefined)",
722
1424
  value: input.height
723
1425
  }, errorFactory));
724
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1426
+ const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
725
1427
  path: _path + ".language",
726
1428
  expected: "(string | undefined)",
727
1429
  value: input.language
@@ -774,10 +1476,14 @@ export const randomRenderSceneObject = generator => {
774
1476
  () => undefined,
775
1477
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
776
1478
  ])(),
777
- video: $pick([
1479
+ subtitleTracks: $pick([
778
1480
  () => undefined,
779
1481
  () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
780
1482
  ])(),
1483
+ video: $pick([
1484
+ () => undefined,
1485
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
1486
+ ])(),
781
1487
  start: $pick([
782
1488
  () => undefined,
783
1489
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
@@ -788,7 +1494,7 @@ export const randomRenderSceneObject = generator => {
788
1494
  ])(),
789
1495
  transcribe: $pick([
790
1496
  () => undefined,
791
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1497
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
792
1498
  ])()
793
1499
  });
794
1500
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -802,13 +1508,123 @@ export const randomRenderSceneObject = generator => {
802
1508
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
803
1509
  ])()
804
1510
  });
805
- const $ro2 = (_recursive = false, _depth = 0) => ({
1511
+ const $ro2 = (_recursive = false, _depth = 0) => {
1512
+ const output = {};
1513
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro3(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
1514
+ return output;
1515
+ };
1516
+ const $ro3 = (_recursive = false, _depth = 0) => ({
1517
+ style: $pick([
1518
+ () => undefined,
1519
+ () => null,
1520
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1521
+ ])(),
1522
+ styleOverrides: $pick([
1523
+ () => undefined,
1524
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1525
+ ])()
1526
+ });
1527
+ const $ro4 = (_recursive = false, _depth = 0) => ({
1528
+ name: $pick([
1529
+ () => undefined,
1530
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1531
+ ])(),
1532
+ fontname: $pick([
1533
+ () => undefined,
1534
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1535
+ ])(),
1536
+ fontsize: $pick([
1537
+ () => undefined,
1538
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1539
+ ])(),
1540
+ primaryColour: $pick([
1541
+ () => undefined,
1542
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1543
+ ])(),
1544
+ secondaryColour: $pick([
1545
+ () => undefined,
1546
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1547
+ ])(),
1548
+ outlineColour: $pick([
1549
+ () => undefined,
1550
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1551
+ ])(),
1552
+ backColour: $pick([
1553
+ () => undefined,
1554
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1555
+ ])(),
1556
+ bold: $pick([
1557
+ () => undefined,
1558
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1559
+ ])(),
1560
+ italic: $pick([
1561
+ () => undefined,
1562
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1563
+ ])(),
1564
+ underline: $pick([
1565
+ () => undefined,
1566
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1567
+ ])(),
1568
+ strikeOut: $pick([
1569
+ () => undefined,
1570
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1571
+ ])(),
1572
+ scaleX: $pick([
1573
+ () => undefined,
1574
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1575
+ ])(),
1576
+ scaleY: $pick([
1577
+ () => undefined,
1578
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1579
+ ])(),
1580
+ spacing: $pick([
1581
+ () => undefined,
1582
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1583
+ ])(),
1584
+ angle: $pick([
1585
+ () => undefined,
1586
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1587
+ ])(),
1588
+ borderStyle: $pick([
1589
+ () => undefined,
1590
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1591
+ ])(),
1592
+ outline: $pick([
1593
+ () => undefined,
1594
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1595
+ ])(),
1596
+ shadow: $pick([
1597
+ () => undefined,
1598
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1599
+ ])(),
1600
+ alignment: $pick([
1601
+ () => undefined,
1602
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1603
+ ])(),
1604
+ marginL: $pick([
1605
+ () => undefined,
1606
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1607
+ ])(),
1608
+ marginR: $pick([
1609
+ () => undefined,
1610
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1611
+ ])(),
1612
+ marginV: $pick([
1613
+ () => undefined,
1614
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1615
+ ])(),
1616
+ encoding: $pick([
1617
+ () => undefined,
1618
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1619
+ ])()
1620
+ });
1621
+ const $ro5 = (_recursive = false, _depth = 0) => ({
806
1622
  crop: $pick([
807
1623
  () => undefined,
808
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
1624
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
809
1625
  ])()
810
1626
  });
811
- const $ro3 = (_recursive = false, _depth = 0) => ({
1627
+ const $ro6 = (_recursive = false, _depth = 0) => ({
812
1628
  x: $pick([
813
1629
  () => undefined,
814
1630
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
@@ -826,7 +1642,7 @@ export const randomRenderSceneObject = generator => {
826
1642
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
827
1643
  ])()
828
1644
  });
829
- const $ro4 = (_recursive = false, _depth = 0) => ({
1645
+ const $ro7 = (_recursive = false, _depth = 0) => ({
830
1646
  language: $pick([
831
1647
  () => undefined,
832
1648
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
@@ -840,16 +1656,25 @@ export const randomRenderSceneObject = generator => {
840
1656
  };
841
1657
  export const assertGuardRenderSceneObject = (input, errorFactory) => {
842
1658
  const __is = input => {
843
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
1659
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
844
1660
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
845
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
846
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
847
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1661
+ const $io2 = input => Object.keys(input).every(key => {
1662
+ const value = input[key];
1663
+ if (undefined === value)
1664
+ return true;
1665
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1666
+ });
1667
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1668
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
1669
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
1670
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1671
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
848
1672
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
849
1673
  };
850
1674
  if (false === __is(input))
851
1675
  ((input, _path, _exceptionable = true) => {
852
1676
  const $guard = __typia.createAssertGuard.guard;
1677
+ const $join = __typia.createAssertGuard.join;
853
1678
  const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
854
1679
  path: _path + ".id",
855
1680
  expected: "(string | undefined)",
@@ -874,13 +1699,21 @@ export const assertGuardRenderSceneObject = (input, errorFactory) => {
874
1699
  path: _path + ".subtitle",
875
1700
  expected: "(string | undefined)",
876
1701
  value: input.subtitle
1702
+ }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1703
+ path: _path + ".subtitleTracks",
1704
+ expected: "(__type.o1 | undefined)",
1705
+ value: input.subtitleTracks
1706
+ }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1707
+ path: _path + ".subtitleTracks",
1708
+ expected: "(__type.o1 | undefined)",
1709
+ value: input.subtitleTracks
877
1710
  }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
878
1711
  path: _path + ".video",
879
- expected: "(__type.o1 | undefined)",
1712
+ expected: "(__type.o3 | undefined)",
880
1713
  value: input.video
881
- }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1714
+ }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
882
1715
  path: _path + ".video",
883
- expected: "(__type.o1 | undefined)",
1716
+ expected: "(__type.o3 | undefined)",
884
1717
  value: input.video
885
1718
  }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
886
1719
  path: _path + ".start",
@@ -892,11 +1725,11 @@ export const assertGuardRenderSceneObject = (input, errorFactory) => {
892
1725
  value: input.end
893
1726
  }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
894
1727
  path: _path + ".transcribe",
895
- expected: "(__type.o3 | undefined)",
1728
+ expected: "(__type.o5 | undefined)",
896
1729
  value: input.transcribe
897
- }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1730
+ }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
898
1731
  path: _path + ".transcribe",
899
- expected: "(__type.o3 | undefined)",
1732
+ expected: "(__type.o5 | undefined)",
900
1733
  value: input.transcribe
901
1734
  }, errorFactory));
902
1735
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
@@ -908,16 +1741,136 @@ export const assertGuardRenderSceneObject = (input, errorFactory) => {
908
1741
  expected: "(null | string | undefined)",
909
1742
  value: input.file
910
1743
  }, errorFactory));
911
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1744
+ const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1745
+ const value = input[key];
1746
+ if (undefined === value)
1747
+ return true;
1748
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1749
+ path: _path + $join(key),
1750
+ expected: "__type.o2",
1751
+ value: value
1752
+ }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1753
+ path: _path + $join(key),
1754
+ expected: "__type.o2",
1755
+ value: value
1756
+ }, errorFactory);
1757
+ });
1758
+ const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1759
+ path: _path + ".style",
1760
+ expected: "(null | string | undefined)",
1761
+ value: input.style
1762
+ }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1763
+ path: _path + ".styleOverrides",
1764
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1765
+ value: input.styleOverrides
1766
+ }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1767
+ path: _path + ".styleOverrides",
1768
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1769
+ value: input.styleOverrides
1770
+ }, errorFactory));
1771
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1772
+ path: _path + ".name",
1773
+ expected: "(string | undefined)",
1774
+ value: input.name
1775
+ }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1776
+ path: _path + ".fontname",
1777
+ expected: "(string | undefined)",
1778
+ value: input.fontname
1779
+ }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1780
+ path: _path + ".fontsize",
1781
+ expected: "(string | undefined)",
1782
+ value: input.fontsize
1783
+ }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1784
+ path: _path + ".primaryColour",
1785
+ expected: "(string | undefined)",
1786
+ value: input.primaryColour
1787
+ }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1788
+ path: _path + ".secondaryColour",
1789
+ expected: "(string | undefined)",
1790
+ value: input.secondaryColour
1791
+ }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1792
+ path: _path + ".outlineColour",
1793
+ expected: "(string | undefined)",
1794
+ value: input.outlineColour
1795
+ }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1796
+ path: _path + ".backColour",
1797
+ expected: "(string | undefined)",
1798
+ value: input.backColour
1799
+ }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1800
+ path: _path + ".bold",
1801
+ expected: "(string | undefined)",
1802
+ value: input.bold
1803
+ }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1804
+ path: _path + ".italic",
1805
+ expected: "(string | undefined)",
1806
+ value: input.italic
1807
+ }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1808
+ path: _path + ".underline",
1809
+ expected: "(string | undefined)",
1810
+ value: input.underline
1811
+ }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1812
+ path: _path + ".strikeOut",
1813
+ expected: "(string | undefined)",
1814
+ value: input.strikeOut
1815
+ }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1816
+ path: _path + ".scaleX",
1817
+ expected: "(string | undefined)",
1818
+ value: input.scaleX
1819
+ }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1820
+ path: _path + ".scaleY",
1821
+ expected: "(string | undefined)",
1822
+ value: input.scaleY
1823
+ }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1824
+ path: _path + ".spacing",
1825
+ expected: "(string | undefined)",
1826
+ value: input.spacing
1827
+ }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1828
+ path: _path + ".angle",
1829
+ expected: "(string | undefined)",
1830
+ value: input.angle
1831
+ }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1832
+ path: _path + ".borderStyle",
1833
+ expected: "(string | undefined)",
1834
+ value: input.borderStyle
1835
+ }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1836
+ path: _path + ".outline",
1837
+ expected: "(string | undefined)",
1838
+ value: input.outline
1839
+ }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1840
+ path: _path + ".shadow",
1841
+ expected: "(string | undefined)",
1842
+ value: input.shadow
1843
+ }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1844
+ path: _path + ".alignment",
1845
+ expected: "(string | undefined)",
1846
+ value: input.alignment
1847
+ }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1848
+ path: _path + ".marginL",
1849
+ expected: "(string | undefined)",
1850
+ value: input.marginL
1851
+ }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1852
+ path: _path + ".marginR",
1853
+ expected: "(string | undefined)",
1854
+ value: input.marginR
1855
+ }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1856
+ path: _path + ".marginV",
1857
+ expected: "(string | undefined)",
1858
+ value: input.marginV
1859
+ }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1860
+ path: _path + ".encoding",
1861
+ expected: "(string | undefined)",
1862
+ value: input.encoding
1863
+ }, errorFactory));
1864
+ const $ao5 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
912
1865
  path: _path + ".crop",
913
- expected: "(__type.o2 | undefined)",
1866
+ expected: "(__type.o4 | undefined)",
914
1867
  value: input.crop
915
- }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1868
+ }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
916
1869
  path: _path + ".crop",
917
- expected: "(__type.o2 | undefined)",
1870
+ expected: "(__type.o4 | undefined)",
918
1871
  value: input.crop
919
1872
  }, errorFactory);
920
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1873
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
921
1874
  path: _path + ".x",
922
1875
  expected: "(number | undefined)",
923
1876
  value: input.x
@@ -934,7 +1887,7 @@ export const assertGuardRenderSceneObject = (input, errorFactory) => {
934
1887
  expected: "(number | undefined)",
935
1888
  value: input.height
936
1889
  }, errorFactory));
937
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1890
+ const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
938
1891
  path: _path + ".language",
939
1892
  expected: "(string | undefined)",
940
1893
  value: input.language
@@ -964,30 +1917,51 @@ export const assertGuardRenderSceneObject = (input, errorFactory) => {
964
1917
  };
965
1918
  export const stringifyRenderSceneObject = input => {
966
1919
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
967
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
968
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
969
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1920
+ const $io2 = input => Object.keys(input).every(key => {
1921
+ const value = input[key];
1922
+ if (undefined === value)
1923
+ return true;
1924
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1925
+ });
1926
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1927
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
1928
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
1929
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1930
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
970
1931
  const $string = __typia.json.createStringify.string;
971
1932
  const $tail = __typia.json.createStringify.tail;
972
- const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
1933
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so5(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so7(input.transcribe) : undefined}`}`)}}`;
973
1934
  const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
974
- const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
975
- const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
976
- const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
1935
+ const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1936
+ return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
1937
+ const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
1938
+ const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
1939
+ const $so5 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so6(input.crop) : undefined}`}`)}}`;
1940
+ const $so6 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
1941
+ const $so7 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
977
1942
  return $so0(input);
978
1943
  };
979
1944
  export const assertStringifyRenderSceneObject = (input, errorFactory) => { const assert = (input, errorFactory) => {
980
1945
  const __is = input => {
981
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
1946
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io5(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io7(input.transcribe));
982
1947
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
983
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
984
- const $io3 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
985
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
1948
+ const $io2 = input => Object.keys(input).every(key => {
1949
+ const value = input[key];
1950
+ if (undefined === value)
1951
+ return true;
1952
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1953
+ });
1954
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1955
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
1956
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
1957
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
1958
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
986
1959
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
987
1960
  };
988
1961
  if (false === __is(input))
989
1962
  ((input, _path, _exceptionable = true) => {
990
1963
  const $guard = __typia.json.createAssertStringify.guard;
1964
+ const $join = __typia.json.createAssertStringify.join;
991
1965
  const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
992
1966
  path: _path + ".id",
993
1967
  expected: "(string | undefined)",
@@ -1012,13 +1986,21 @@ export const assertStringifyRenderSceneObject = (input, errorFactory) => { const
1012
1986
  path: _path + ".subtitle",
1013
1987
  expected: "(string | undefined)",
1014
1988
  value: input.subtitle
1989
+ }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1990
+ path: _path + ".subtitleTracks",
1991
+ expected: "(__type.o1 | undefined)",
1992
+ value: input.subtitleTracks
1993
+ }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1994
+ path: _path + ".subtitleTracks",
1995
+ expected: "(__type.o1 | undefined)",
1996
+ value: input.subtitleTracks
1015
1997
  }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1016
1998
  path: _path + ".video",
1017
- expected: "(__type.o1 | undefined)",
1999
+ expected: "(__type.o3 | undefined)",
1018
2000
  value: input.video
1019
- }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
2001
+ }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1020
2002
  path: _path + ".video",
1021
- expected: "(__type.o1 | undefined)",
2003
+ expected: "(__type.o3 | undefined)",
1022
2004
  value: input.video
1023
2005
  }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
1024
2006
  path: _path + ".start",
@@ -1030,11 +2012,11 @@ export const assertStringifyRenderSceneObject = (input, errorFactory) => { const
1030
2012
  value: input.end
1031
2013
  }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1032
2014
  path: _path + ".transcribe",
1033
- expected: "(__type.o3 | undefined)",
2015
+ expected: "(__type.o5 | undefined)",
1034
2016
  value: input.transcribe
1035
- }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
2017
+ }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1036
2018
  path: _path + ".transcribe",
1037
- expected: "(__type.o3 | undefined)",
2019
+ expected: "(__type.o5 | undefined)",
1038
2020
  value: input.transcribe
1039
2021
  }, errorFactory));
1040
2022
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
@@ -1046,16 +2028,136 @@ export const assertStringifyRenderSceneObject = (input, errorFactory) => { const
1046
2028
  expected: "(null | string | undefined)",
1047
2029
  value: input.file
1048
2030
  }, errorFactory));
1049
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
2031
+ const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2032
+ const value = input[key];
2033
+ if (undefined === value)
2034
+ return true;
2035
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
2036
+ path: _path + $join(key),
2037
+ expected: "__type.o2",
2038
+ value: value
2039
+ }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
2040
+ path: _path + $join(key),
2041
+ expected: "__type.o2",
2042
+ value: value
2043
+ }, errorFactory);
2044
+ });
2045
+ const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
2046
+ path: _path + ".style",
2047
+ expected: "(null | string | undefined)",
2048
+ value: input.style
2049
+ }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
2050
+ path: _path + ".styleOverrides",
2051
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
2052
+ value: input.styleOverrides
2053
+ }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
2054
+ path: _path + ".styleOverrides",
2055
+ expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
2056
+ value: input.styleOverrides
2057
+ }, errorFactory));
2058
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
2059
+ path: _path + ".name",
2060
+ expected: "(string | undefined)",
2061
+ value: input.name
2062
+ }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
2063
+ path: _path + ".fontname",
2064
+ expected: "(string | undefined)",
2065
+ value: input.fontname
2066
+ }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
2067
+ path: _path + ".fontsize",
2068
+ expected: "(string | undefined)",
2069
+ value: input.fontsize
2070
+ }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
2071
+ path: _path + ".primaryColour",
2072
+ expected: "(string | undefined)",
2073
+ value: input.primaryColour
2074
+ }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
2075
+ path: _path + ".secondaryColour",
2076
+ expected: "(string | undefined)",
2077
+ value: input.secondaryColour
2078
+ }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
2079
+ path: _path + ".outlineColour",
2080
+ expected: "(string | undefined)",
2081
+ value: input.outlineColour
2082
+ }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
2083
+ path: _path + ".backColour",
2084
+ expected: "(string | undefined)",
2085
+ value: input.backColour
2086
+ }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
2087
+ path: _path + ".bold",
2088
+ expected: "(string | undefined)",
2089
+ value: input.bold
2090
+ }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
2091
+ path: _path + ".italic",
2092
+ expected: "(string | undefined)",
2093
+ value: input.italic
2094
+ }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
2095
+ path: _path + ".underline",
2096
+ expected: "(string | undefined)",
2097
+ value: input.underline
2098
+ }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
2099
+ path: _path + ".strikeOut",
2100
+ expected: "(string | undefined)",
2101
+ value: input.strikeOut
2102
+ }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
2103
+ path: _path + ".scaleX",
2104
+ expected: "(string | undefined)",
2105
+ value: input.scaleX
2106
+ }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
2107
+ path: _path + ".scaleY",
2108
+ expected: "(string | undefined)",
2109
+ value: input.scaleY
2110
+ }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
2111
+ path: _path + ".spacing",
2112
+ expected: "(string | undefined)",
2113
+ value: input.spacing
2114
+ }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
2115
+ path: _path + ".angle",
2116
+ expected: "(string | undefined)",
2117
+ value: input.angle
2118
+ }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
2119
+ path: _path + ".borderStyle",
2120
+ expected: "(string | undefined)",
2121
+ value: input.borderStyle
2122
+ }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
2123
+ path: _path + ".outline",
2124
+ expected: "(string | undefined)",
2125
+ value: input.outline
2126
+ }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
2127
+ path: _path + ".shadow",
2128
+ expected: "(string | undefined)",
2129
+ value: input.shadow
2130
+ }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
2131
+ path: _path + ".alignment",
2132
+ expected: "(string | undefined)",
2133
+ value: input.alignment
2134
+ }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
2135
+ path: _path + ".marginL",
2136
+ expected: "(string | undefined)",
2137
+ value: input.marginL
2138
+ }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
2139
+ path: _path + ".marginR",
2140
+ expected: "(string | undefined)",
2141
+ value: input.marginR
2142
+ }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
2143
+ path: _path + ".marginV",
2144
+ expected: "(string | undefined)",
2145
+ value: input.marginV
2146
+ }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
2147
+ path: _path + ".encoding",
2148
+ expected: "(string | undefined)",
2149
+ value: input.encoding
2150
+ }, errorFactory));
2151
+ const $ao5 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1050
2152
  path: _path + ".crop",
1051
- expected: "(__type.o2 | undefined)",
2153
+ expected: "(__type.o4 | undefined)",
1052
2154
  value: input.crop
1053
- }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
2155
+ }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1054
2156
  path: _path + ".crop",
1055
- expected: "(__type.o2 | undefined)",
2157
+ expected: "(__type.o4 | undefined)",
1056
2158
  value: input.crop
1057
2159
  }, errorFactory);
1058
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
2160
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1059
2161
  path: _path + ".x",
1060
2162
  expected: "(number | undefined)",
1061
2163
  value: input.x
@@ -1072,7 +2174,7 @@ export const assertStringifyRenderSceneObject = (input, errorFactory) => { const
1072
2174
  expected: "(number | undefined)",
1073
2175
  value: input.height
1074
2176
  }, errorFactory));
1075
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
2177
+ const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1076
2178
  path: _path + ".language",
1077
2179
  expected: "(string | undefined)",
1078
2180
  value: input.language
@@ -1102,15 +2204,27 @@ export const assertStringifyRenderSceneObject = (input, errorFactory) => { const
1102
2204
  return input;
1103
2205
  }; const stringify = input => {
1104
2206
  const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1105
- const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
1106
- const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1107
- const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
2207
+ const $io2 = input => Object.keys(input).every(key => {
2208
+ const value = input[key];
2209
+ if (undefined === value)
2210
+ return true;
2211
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
2212
+ });
2213
+ const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
2214
+ const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
2215
+ const $io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io6(input.crop);
2216
+ const $io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
2217
+ const $io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1108
2218
  const $string = __typia.json.createAssertStringify.string;
1109
2219
  const $tail = __typia.json.createAssertStringify.tail;
1110
- const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
2220
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so5(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so7(input.transcribe) : undefined}`}`)}}`;
1111
2221
  const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
1112
- const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
1113
- const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
1114
- const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
2222
+ const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2223
+ return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
2224
+ const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
2225
+ const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
2226
+ const $so5 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so6(input.crop) : undefined}`}`)}}`;
2227
+ const $so6 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
2228
+ const $so7 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
1115
2229
  return $so0(input);
1116
2230
  }; return stringify(assert(input, errorFactory)); };