@nxtedition/types 23.0.39 → 23.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -51
  2. package/dist/app.js +1 -823
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +2 -15
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +0 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1754
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2230
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +128 -121
  40. package/dist/common/settings.js +1 -6936
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -85
  45. package/dist/index.js +5 -187
  46. package/dist/nxtpression.d.ts +732 -344
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +7 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +145 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +9 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +10 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +15861 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +15990 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1017 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12613 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1904 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +18 -0
  153. package/dist/records/validate/utils.test.d.ts +1 -0
  154. package/dist/records/validate/utils.test.js +35 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +14943 -0
  157. package/dist/rpc.d.ts +13 -14
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +26 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -42
  185. package/dist/domains/event.js +0 -754
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4553
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1397
  207. package/dist/domains/publish.js +0 -34436
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -172
  212. package/dist/domains/render.js +0 -4783
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -13
  218. package/dist/domains/script.js +0 -125
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -6624
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -37
  226. package/dist/domains/subtitle-style.js +0 -485
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9075
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,2230 +1 @@
1
- import __typia from "typia";
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.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
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
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)));
17
- };
18
- export const assertRenderScene = (input, errorFactory) => {
19
- const __is = input => {
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));
21
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
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)));
34
- };
35
- if (false === __is(input))
36
- ((input, _path, _exceptionable = true) => {
37
- const $guard = __typia.createAssert.guard;
38
- const $join = __typia.createAssert.join;
39
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
40
- path: _path + ".id",
41
- expected: "(string | undefined)",
42
- value: input.id
43
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
44
- path: _path + ".preset",
45
- expected: "(string | undefined)",
46
- value: input.preset
47
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
48
- path: _path + ".input",
49
- expected: "(__type | undefined)",
50
- value: input.input
51
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
52
- path: _path + ".input",
53
- expected: "(__type | undefined)",
54
- value: input.input
55
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
56
- path: _path + ".lang",
57
- expected: "(string | undefined)",
58
- value: input.lang
59
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
60
- path: _path + ".subtitle",
61
- expected: "(string | undefined)",
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
71
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
72
- path: _path + ".video",
73
- expected: "(__type.o3 | undefined)",
74
- value: input.video
75
- }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
76
- path: _path + ".video",
77
- expected: "(__type.o3 | undefined)",
78
- value: input.video
79
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
80
- path: _path + ".start",
81
- expected: "(number | undefined)",
82
- value: input.start
83
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
84
- path: _path + ".end",
85
- expected: "(number | undefined)",
86
- value: input.end
87
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
88
- path: _path + ".transcribe",
89
- expected: "(__type.o5 | undefined)",
90
- value: input.transcribe
91
- }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
92
- path: _path + ".transcribe",
93
- expected: "(__type.o5 | undefined)",
94
- value: input.transcribe
95
- }, errorFactory));
96
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
97
- path: _path + ".type",
98
- expected: "(string | undefined)",
99
- value: input.type
100
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
101
- path: _path + ".file",
102
- expected: "(null | string | undefined)",
103
- value: input.file
104
- }, errorFactory));
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, {
226
- path: _path + ".crop",
227
- expected: "(__type.o4 | undefined)",
228
- value: input.crop
229
- }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
230
- path: _path + ".crop",
231
- expected: "(__type.o4 | undefined)",
232
- value: input.crop
233
- }, errorFactory);
234
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
235
- path: _path + ".x",
236
- expected: "(number | undefined)",
237
- value: input.x
238
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
239
- path: _path + ".y",
240
- expected: "(number | undefined)",
241
- value: input.y
242
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
243
- path: _path + ".width",
244
- expected: "(number | undefined)",
245
- value: input.width
246
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
247
- path: _path + ".height",
248
- expected: "(number | undefined)",
249
- value: input.height
250
- }, errorFactory));
251
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
252
- path: _path + ".language",
253
- expected: "(string | undefined)",
254
- value: input.language
255
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
256
- path: _path + ".pan",
257
- expected: "(Array<number> | undefined)",
258
- value: input.pan
259
- }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem || $guard(_exceptionable, {
260
- path: _path + ".pan[" + _index2 + "]",
261
- expected: "number",
262
- value: elem
263
- }, errorFactory)) || $guard(_exceptionable, {
264
- path: _path + ".pan",
265
- expected: "(Array<number> | undefined)",
266
- value: input.pan
267
- }, errorFactory));
268
- return (null !== input || $guard(true, {
269
- path: _path + "",
270
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
271
- value: input
272
- }, errorFactory)) && (undefined !== input || $guard(true, {
273
- path: _path + "",
274
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
275
- value: input
276
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
277
- path: _path + "[" + _index1 + "]",
278
- expected: "(RenderSceneObject | string)",
279
- value: elem
280
- }, errorFactory)) && (undefined !== elem || $guard(true, {
281
- path: _path + "[" + _index1 + "]",
282
- expected: "(RenderSceneObject | string)",
283
- value: elem
284
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
285
- path: _path + "[" + _index1 + "]",
286
- expected: "(RenderSceneObject | string)",
287
- value: elem
288
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
289
- path: _path + "[" + _index1 + "]",
290
- expected: "(RenderSceneObject | string)",
291
- value: elem
292
- }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
293
- path: _path + "",
294
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
295
- value: input
296
- }, errorFactory)) || $guard(true, {
297
- path: _path + "",
298
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
299
- value: input
300
- }, errorFactory));
301
- })(input, "$input", true);
302
- return input;
303
- };
304
- export const randomRenderScene = generator => {
305
- const $generator = __typia.createRandom.generator;
306
- const $pick = __typia.createRandom.pick;
307
- const $ro0 = (_recursive = false, _depth = 0) => ({
308
- id: $pick([
309
- () => undefined,
310
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
311
- ])(),
312
- preset: $pick([
313
- () => undefined,
314
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
315
- ])(),
316
- input: $pick([
317
- () => undefined,
318
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
319
- ])(),
320
- lang: $pick([
321
- () => undefined,
322
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
323
- ])(),
324
- subtitle: $pick([
325
- () => undefined,
326
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
327
- ])(),
328
- subtitleTracks: $pick([
329
- () => undefined,
330
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
331
- ])(),
332
- video: $pick([
333
- () => undefined,
334
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
335
- ])(),
336
- start: $pick([
337
- () => undefined,
338
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
339
- ])(),
340
- end: $pick([
341
- () => undefined,
342
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
343
- ])(),
344
- transcribe: $pick([
345
- () => undefined,
346
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
347
- ])()
348
- });
349
- const $ro1 = (_recursive = false, _depth = 0) => ({
350
- type: $pick([
351
- () => undefined,
352
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
353
- ])(),
354
- file: $pick([
355
- () => undefined,
356
- () => null,
357
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
358
- ])()
359
- });
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) => ({
471
- crop: $pick([
472
- () => undefined,
473
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
474
- ])()
475
- });
476
- const $ro6 = (_recursive = false, _depth = 0) => ({
477
- x: $pick([
478
- () => undefined,
479
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
480
- ])(),
481
- y: $pick([
482
- () => undefined,
483
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
484
- ])(),
485
- width: $pick([
486
- () => undefined,
487
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
488
- ])(),
489
- height: $pick([
490
- () => undefined,
491
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
492
- ])()
493
- });
494
- const $ro7 = (_recursive = false, _depth = 0) => ({
495
- language: $pick([
496
- () => undefined,
497
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
498
- ])(),
499
- pan: $pick([
500
- () => undefined,
501
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
502
- ])()
503
- });
504
- return $pick([
505
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
506
- () => (generator?.array ?? $generator.array)(() => $pick([
507
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
508
- () => $ro0()
509
- ])()),
510
- () => $ro0()
511
- ])();
512
- };
513
- export const assertGuardRenderScene = (input, errorFactory) => {
514
- const __is = input => {
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));
516
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
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)));
529
- };
530
- if (false === __is(input))
531
- ((input, _path, _exceptionable = true) => {
532
- const $guard = __typia.createAssertGuard.guard;
533
- const $join = __typia.createAssertGuard.join;
534
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
535
- path: _path + ".id",
536
- expected: "(string | undefined)",
537
- value: input.id
538
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
539
- path: _path + ".preset",
540
- expected: "(string | undefined)",
541
- value: input.preset
542
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
543
- path: _path + ".input",
544
- expected: "(__type | undefined)",
545
- value: input.input
546
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
547
- path: _path + ".input",
548
- expected: "(__type | undefined)",
549
- value: input.input
550
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
551
- path: _path + ".lang",
552
- expected: "(string | undefined)",
553
- value: input.lang
554
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
555
- path: _path + ".subtitle",
556
- expected: "(string | undefined)",
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
566
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
567
- path: _path + ".video",
568
- expected: "(__type.o3 | undefined)",
569
- value: input.video
570
- }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
571
- path: _path + ".video",
572
- expected: "(__type.o3 | undefined)",
573
- value: input.video
574
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
575
- path: _path + ".start",
576
- expected: "(number | undefined)",
577
- value: input.start
578
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
579
- path: _path + ".end",
580
- expected: "(number | undefined)",
581
- value: input.end
582
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
583
- path: _path + ".transcribe",
584
- expected: "(__type.o5 | undefined)",
585
- value: input.transcribe
586
- }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
587
- path: _path + ".transcribe",
588
- expected: "(__type.o5 | undefined)",
589
- value: input.transcribe
590
- }, errorFactory));
591
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
592
- path: _path + ".type",
593
- expected: "(string | undefined)",
594
- value: input.type
595
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
596
- path: _path + ".file",
597
- expected: "(null | string | undefined)",
598
- value: input.file
599
- }, errorFactory));
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, {
721
- path: _path + ".crop",
722
- expected: "(__type.o4 | undefined)",
723
- value: input.crop
724
- }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
725
- path: _path + ".crop",
726
- expected: "(__type.o4 | undefined)",
727
- value: input.crop
728
- }, errorFactory);
729
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
730
- path: _path + ".x",
731
- expected: "(number | undefined)",
732
- value: input.x
733
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
734
- path: _path + ".y",
735
- expected: "(number | undefined)",
736
- value: input.y
737
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
738
- path: _path + ".width",
739
- expected: "(number | undefined)",
740
- value: input.width
741
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
742
- path: _path + ".height",
743
- expected: "(number | undefined)",
744
- value: input.height
745
- }, errorFactory));
746
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
747
- path: _path + ".language",
748
- expected: "(string | undefined)",
749
- value: input.language
750
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
751
- path: _path + ".pan",
752
- expected: "(Array<number> | undefined)",
753
- value: input.pan
754
- }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem || $guard(_exceptionable, {
755
- path: _path + ".pan[" + _index2 + "]",
756
- expected: "number",
757
- value: elem
758
- }, errorFactory)) || $guard(_exceptionable, {
759
- path: _path + ".pan",
760
- expected: "(Array<number> | undefined)",
761
- value: input.pan
762
- }, errorFactory));
763
- return (null !== input || $guard(true, {
764
- path: _path + "",
765
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
766
- value: input
767
- }, errorFactory)) && (undefined !== input || $guard(true, {
768
- path: _path + "",
769
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
770
- value: input
771
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
772
- path: _path + "[" + _index1 + "]",
773
- expected: "(RenderSceneObject | string)",
774
- value: elem
775
- }, errorFactory)) && (undefined !== elem || $guard(true, {
776
- path: _path + "[" + _index1 + "]",
777
- expected: "(RenderSceneObject | string)",
778
- value: elem
779
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
780
- path: _path + "[" + _index1 + "]",
781
- expected: "(RenderSceneObject | string)",
782
- value: elem
783
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
784
- path: _path + "[" + _index1 + "]",
785
- expected: "(RenderSceneObject | string)",
786
- value: elem
787
- }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
788
- path: _path + "",
789
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
790
- value: input
791
- }, errorFactory)) || $guard(true, {
792
- path: _path + "",
793
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
794
- value: input
795
- }, errorFactory));
796
- })(input, "$input", true);
797
- };
798
- export const stringifyRenderScene = input => {
799
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
811
- const $string = __typia.json.createStringify.string;
812
- const $throws = __typia.json.createStringify.throws;
813
- const $tail = __typia.json.createStringify.tail;
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}`}`)}}`;
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}`}`)}}`;
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}`}`)}}`;
823
- return (() => {
824
- if ("string" === typeof input)
825
- return $string(input);
826
- if (Array.isArray(input))
827
- return `[${input.map(elem => (() => {
828
- if ("string" === typeof elem)
829
- return $string(elem);
830
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
831
- return $so0(elem);
832
- $throws({
833
- expected: "(RenderSceneObject | string)",
834
- value: elem
835
- });
836
- })()).join(",")}]`;
837
- if ("object" === typeof input && null !== input && false === Array.isArray(input))
838
- return $so0(input);
839
- $throws({
840
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
841
- value: input
842
- });
843
- })();
844
- };
845
- export const assertStringifyRenderScene = (input, errorFactory) => { const assert = (input, errorFactory) => {
846
- const __is = input => {
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));
848
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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)));
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)));
861
- };
862
- if (false === __is(input))
863
- ((input, _path, _exceptionable = true) => {
864
- const $guard = __typia.json.createAssertStringify.guard;
865
- const $join = __typia.json.createAssertStringify.join;
866
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
867
- path: _path + ".id",
868
- expected: "(string | undefined)",
869
- value: input.id
870
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
871
- path: _path + ".preset",
872
- expected: "(string | undefined)",
873
- value: input.preset
874
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
875
- path: _path + ".input",
876
- expected: "(__type | undefined)",
877
- value: input.input
878
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
879
- path: _path + ".input",
880
- expected: "(__type | undefined)",
881
- value: input.input
882
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
883
- path: _path + ".lang",
884
- expected: "(string | undefined)",
885
- value: input.lang
886
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
887
- path: _path + ".subtitle",
888
- expected: "(string | undefined)",
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
898
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
899
- path: _path + ".video",
900
- expected: "(__type.o3 | undefined)",
901
- value: input.video
902
- }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
903
- path: _path + ".video",
904
- expected: "(__type.o3 | undefined)",
905
- value: input.video
906
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
907
- path: _path + ".start",
908
- expected: "(number | undefined)",
909
- value: input.start
910
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
911
- path: _path + ".end",
912
- expected: "(number | undefined)",
913
- value: input.end
914
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
915
- path: _path + ".transcribe",
916
- expected: "(__type.o5 | undefined)",
917
- value: input.transcribe
918
- }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
919
- path: _path + ".transcribe",
920
- expected: "(__type.o5 | undefined)",
921
- value: input.transcribe
922
- }, errorFactory));
923
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
924
- path: _path + ".type",
925
- expected: "(string | undefined)",
926
- value: input.type
927
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
928
- path: _path + ".file",
929
- expected: "(null | string | undefined)",
930
- value: input.file
931
- }, errorFactory));
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, {
1053
- path: _path + ".crop",
1054
- expected: "(__type.o4 | undefined)",
1055
- value: input.crop
1056
- }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1057
- path: _path + ".crop",
1058
- expected: "(__type.o4 | undefined)",
1059
- value: input.crop
1060
- }, errorFactory);
1061
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1062
- path: _path + ".x",
1063
- expected: "(number | undefined)",
1064
- value: input.x
1065
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
1066
- path: _path + ".y",
1067
- expected: "(number | undefined)",
1068
- value: input.y
1069
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1070
- path: _path + ".width",
1071
- expected: "(number | undefined)",
1072
- value: input.width
1073
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
1074
- path: _path + ".height",
1075
- expected: "(number | undefined)",
1076
- value: input.height
1077
- }, errorFactory));
1078
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1079
- path: _path + ".language",
1080
- expected: "(string | undefined)",
1081
- value: input.language
1082
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1083
- path: _path + ".pan",
1084
- expected: "(Array<number> | undefined)",
1085
- value: input.pan
1086
- }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
1087
- path: _path + ".pan[" + _index2 + "]",
1088
- expected: "number",
1089
- value: elem
1090
- }, errorFactory)) || $guard(_exceptionable, {
1091
- path: _path + ".pan",
1092
- expected: "(Array<number> | undefined)",
1093
- value: input.pan
1094
- }, errorFactory));
1095
- return (null !== input || $guard(true, {
1096
- path: _path + "",
1097
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1098
- value: input
1099
- }, errorFactory)) && (undefined !== input || $guard(true, {
1100
- path: _path + "",
1101
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1102
- value: input
1103
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
1104
- path: _path + "[" + _index1 + "]",
1105
- expected: "(RenderSceneObject | string)",
1106
- value: elem
1107
- }, errorFactory)) && (undefined !== elem || $guard(true, {
1108
- path: _path + "[" + _index1 + "]",
1109
- expected: "(RenderSceneObject | string)",
1110
- value: elem
1111
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
1112
- path: _path + "[" + _index1 + "]",
1113
- expected: "(RenderSceneObject | string)",
1114
- value: elem
1115
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
1116
- path: _path + "[" + _index1 + "]",
1117
- expected: "(RenderSceneObject | string)",
1118
- value: elem
1119
- }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
1120
- path: _path + "",
1121
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1122
- value: input
1123
- }, errorFactory)) || $guard(true, {
1124
- path: _path + "",
1125
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1126
- value: input
1127
- }, errorFactory));
1128
- })(input, "$input", true);
1129
- return input;
1130
- }; const stringify = input => {
1131
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
1143
- const $string = __typia.json.createAssertStringify.string;
1144
- const $throws = __typia.json.createAssertStringify.throws;
1145
- const $tail = __typia.json.createAssertStringify.tail;
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}`}`)}}`;
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}`}`)}}`;
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}`}`)}}`;
1155
- return (() => {
1156
- if ("string" === typeof input)
1157
- return $string(input);
1158
- if (Array.isArray(input))
1159
- return `[${input.map(elem => (() => {
1160
- if ("string" === typeof elem)
1161
- return $string(elem);
1162
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1163
- return $so0(elem);
1164
- $throws({
1165
- expected: "(RenderSceneObject | string)",
1166
- value: elem
1167
- });
1168
- })()).join(",")}]`;
1169
- if ("object" === typeof input && null !== input && false === Array.isArray(input))
1170
- return $so0(input);
1171
- $throws({
1172
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1173
- value: input
1174
- });
1175
- })();
1176
- }; return stringify(assert(input, errorFactory)); };
1177
- export const isRenderSceneObject = input => {
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));
1179
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
1191
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1192
- };
1193
- export const assertRenderSceneObject = (input, errorFactory) => {
1194
- const __is = input => {
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));
1196
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
1208
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1209
- };
1210
- if (false === __is(input))
1211
- ((input, _path, _exceptionable = true) => {
1212
- const $guard = __typia.createAssert.guard;
1213
- const $join = __typia.createAssert.join;
1214
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1215
- path: _path + ".id",
1216
- expected: "(string | undefined)",
1217
- value: input.id
1218
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1219
- path: _path + ".preset",
1220
- expected: "(string | undefined)",
1221
- value: input.preset
1222
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1223
- path: _path + ".input",
1224
- expected: "(__type | undefined)",
1225
- value: input.input
1226
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1227
- path: _path + ".input",
1228
- expected: "(__type | undefined)",
1229
- value: input.input
1230
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1231
- path: _path + ".lang",
1232
- expected: "(string | undefined)",
1233
- value: input.lang
1234
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1235
- path: _path + ".subtitle",
1236
- expected: "(string | undefined)",
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
1246
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1247
- path: _path + ".video",
1248
- expected: "(__type.o3 | undefined)",
1249
- value: input.video
1250
- }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1251
- path: _path + ".video",
1252
- expected: "(__type.o3 | undefined)",
1253
- value: input.video
1254
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
1255
- path: _path + ".start",
1256
- expected: "(number | undefined)",
1257
- value: input.start
1258
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
1259
- path: _path + ".end",
1260
- expected: "(number | undefined)",
1261
- value: input.end
1262
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1263
- path: _path + ".transcribe",
1264
- expected: "(__type.o5 | undefined)",
1265
- value: input.transcribe
1266
- }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1267
- path: _path + ".transcribe",
1268
- expected: "(__type.o5 | undefined)",
1269
- value: input.transcribe
1270
- }, errorFactory));
1271
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1272
- path: _path + ".type",
1273
- expected: "(string | undefined)",
1274
- value: input.type
1275
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1276
- path: _path + ".file",
1277
- expected: "(null | string | undefined)",
1278
- value: input.file
1279
- }, errorFactory));
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, {
1401
- path: _path + ".crop",
1402
- expected: "(__type.o4 | undefined)",
1403
- value: input.crop
1404
- }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1405
- path: _path + ".crop",
1406
- expected: "(__type.o4 | undefined)",
1407
- value: input.crop
1408
- }, errorFactory);
1409
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1410
- path: _path + ".x",
1411
- expected: "(number | undefined)",
1412
- value: input.x
1413
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
1414
- path: _path + ".y",
1415
- expected: "(number | undefined)",
1416
- value: input.y
1417
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
1418
- path: _path + ".width",
1419
- expected: "(number | undefined)",
1420
- value: input.width
1421
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
1422
- path: _path + ".height",
1423
- expected: "(number | undefined)",
1424
- value: input.height
1425
- }, errorFactory));
1426
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1427
- path: _path + ".language",
1428
- expected: "(string | undefined)",
1429
- value: input.language
1430
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1431
- path: _path + ".pan",
1432
- expected: "(Array<number> | undefined)",
1433
- value: input.pan
1434
- }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
1435
- path: _path + ".pan[" + _index1 + "]",
1436
- expected: "number",
1437
- value: elem
1438
- }, errorFactory)) || $guard(_exceptionable, {
1439
- path: _path + ".pan",
1440
- expected: "(Array<number> | undefined)",
1441
- value: input.pan
1442
- }, errorFactory));
1443
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1444
- path: _path + "",
1445
- expected: "RenderSceneObject",
1446
- value: input
1447
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1448
- path: _path + "",
1449
- expected: "RenderSceneObject",
1450
- value: input
1451
- }, errorFactory);
1452
- })(input, "$input", true);
1453
- return input;
1454
- };
1455
- export const randomRenderSceneObject = generator => {
1456
- const $generator = __typia.createRandom.generator;
1457
- const $pick = __typia.createRandom.pick;
1458
- const $ro0 = (_recursive = false, _depth = 0) => ({
1459
- id: $pick([
1460
- () => undefined,
1461
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1462
- ])(),
1463
- preset: $pick([
1464
- () => undefined,
1465
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1466
- ])(),
1467
- input: $pick([
1468
- () => undefined,
1469
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1470
- ])(),
1471
- lang: $pick([
1472
- () => undefined,
1473
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1474
- ])(),
1475
- subtitle: $pick([
1476
- () => undefined,
1477
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1478
- ])(),
1479
- subtitleTracks: $pick([
1480
- () => undefined,
1481
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1482
- ])(),
1483
- video: $pick([
1484
- () => undefined,
1485
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
1486
- ])(),
1487
- start: $pick([
1488
- () => undefined,
1489
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1490
- ])(),
1491
- end: $pick([
1492
- () => undefined,
1493
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1494
- ])(),
1495
- transcribe: $pick([
1496
- () => undefined,
1497
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
1498
- ])()
1499
- });
1500
- const $ro1 = (_recursive = false, _depth = 0) => ({
1501
- type: $pick([
1502
- () => undefined,
1503
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1504
- ])(),
1505
- file: $pick([
1506
- () => undefined,
1507
- () => null,
1508
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1509
- ])()
1510
- });
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) => ({
1622
- crop: $pick([
1623
- () => undefined,
1624
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
1625
- ])()
1626
- });
1627
- const $ro6 = (_recursive = false, _depth = 0) => ({
1628
- x: $pick([
1629
- () => undefined,
1630
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1631
- ])(),
1632
- y: $pick([
1633
- () => undefined,
1634
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1635
- ])(),
1636
- width: $pick([
1637
- () => undefined,
1638
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1639
- ])(),
1640
- height: $pick([
1641
- () => undefined,
1642
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1643
- ])()
1644
- });
1645
- const $ro7 = (_recursive = false, _depth = 0) => ({
1646
- language: $pick([
1647
- () => undefined,
1648
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1649
- ])(),
1650
- pan: $pick([
1651
- () => undefined,
1652
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
1653
- ])()
1654
- });
1655
- return $ro0();
1656
- };
1657
- export const assertGuardRenderSceneObject = (input, errorFactory) => {
1658
- const __is = input => {
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));
1660
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
1672
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1673
- };
1674
- if (false === __is(input))
1675
- ((input, _path, _exceptionable = true) => {
1676
- const $guard = __typia.createAssertGuard.guard;
1677
- const $join = __typia.createAssertGuard.join;
1678
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1679
- path: _path + ".id",
1680
- expected: "(string | undefined)",
1681
- value: input.id
1682
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1683
- path: _path + ".preset",
1684
- expected: "(string | undefined)",
1685
- value: input.preset
1686
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1687
- path: _path + ".input",
1688
- expected: "(__type | undefined)",
1689
- value: input.input
1690
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1691
- path: _path + ".input",
1692
- expected: "(__type | undefined)",
1693
- value: input.input
1694
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1695
- path: _path + ".lang",
1696
- expected: "(string | undefined)",
1697
- value: input.lang
1698
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1699
- path: _path + ".subtitle",
1700
- expected: "(string | undefined)",
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
1710
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1711
- path: _path + ".video",
1712
- expected: "(__type.o3 | undefined)",
1713
- value: input.video
1714
- }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1715
- path: _path + ".video",
1716
- expected: "(__type.o3 | undefined)",
1717
- value: input.video
1718
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
1719
- path: _path + ".start",
1720
- expected: "(number | undefined)",
1721
- value: input.start
1722
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
1723
- path: _path + ".end",
1724
- expected: "(number | undefined)",
1725
- value: input.end
1726
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1727
- path: _path + ".transcribe",
1728
- expected: "(__type.o5 | undefined)",
1729
- value: input.transcribe
1730
- }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1731
- path: _path + ".transcribe",
1732
- expected: "(__type.o5 | undefined)",
1733
- value: input.transcribe
1734
- }, errorFactory));
1735
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1736
- path: _path + ".type",
1737
- expected: "(string | undefined)",
1738
- value: input.type
1739
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1740
- path: _path + ".file",
1741
- expected: "(null | string | undefined)",
1742
- value: input.file
1743
- }, errorFactory));
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, {
1865
- path: _path + ".crop",
1866
- expected: "(__type.o4 | undefined)",
1867
- value: input.crop
1868
- }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1869
- path: _path + ".crop",
1870
- expected: "(__type.o4 | undefined)",
1871
- value: input.crop
1872
- }, errorFactory);
1873
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1874
- path: _path + ".x",
1875
- expected: "(number | undefined)",
1876
- value: input.x
1877
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
1878
- path: _path + ".y",
1879
- expected: "(number | undefined)",
1880
- value: input.y
1881
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
1882
- path: _path + ".width",
1883
- expected: "(number | undefined)",
1884
- value: input.width
1885
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
1886
- path: _path + ".height",
1887
- expected: "(number | undefined)",
1888
- value: input.height
1889
- }, errorFactory));
1890
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1891
- path: _path + ".language",
1892
- expected: "(string | undefined)",
1893
- value: input.language
1894
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1895
- path: _path + ".pan",
1896
- expected: "(Array<number> | undefined)",
1897
- value: input.pan
1898
- }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
1899
- path: _path + ".pan[" + _index1 + "]",
1900
- expected: "number",
1901
- value: elem
1902
- }, errorFactory)) || $guard(_exceptionable, {
1903
- path: _path + ".pan",
1904
- expected: "(Array<number> | undefined)",
1905
- value: input.pan
1906
- }, errorFactory));
1907
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1908
- path: _path + "",
1909
- expected: "RenderSceneObject",
1910
- value: input
1911
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1912
- path: _path + "",
1913
- expected: "RenderSceneObject",
1914
- value: input
1915
- }, errorFactory);
1916
- })(input, "$input", true);
1917
- };
1918
- export const stringifyRenderSceneObject = input => {
1919
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
1931
- const $string = __typia.json.createStringify.string;
1932
- const $tail = __typia.json.createStringify.tail;
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}`}`)}}`;
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}`}`)}}`;
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}`}`)}}`;
1942
- return $so0(input);
1943
- };
1944
- export const assertStringifyRenderSceneObject = (input, errorFactory) => { const assert = (input, errorFactory) => {
1945
- const __is = input => {
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));
1947
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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)));
1959
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1960
- };
1961
- if (false === __is(input))
1962
- ((input, _path, _exceptionable = true) => {
1963
- const $guard = __typia.json.createAssertStringify.guard;
1964
- const $join = __typia.json.createAssertStringify.join;
1965
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1966
- path: _path + ".id",
1967
- expected: "(string | undefined)",
1968
- value: input.id
1969
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1970
- path: _path + ".preset",
1971
- expected: "(string | undefined)",
1972
- value: input.preset
1973
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1974
- path: _path + ".input",
1975
- expected: "(__type | undefined)",
1976
- value: input.input
1977
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1978
- path: _path + ".input",
1979
- expected: "(__type | undefined)",
1980
- value: input.input
1981
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1982
- path: _path + ".lang",
1983
- expected: "(string | undefined)",
1984
- value: input.lang
1985
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1986
- path: _path + ".subtitle",
1987
- expected: "(string | undefined)",
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
1997
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1998
- path: _path + ".video",
1999
- expected: "(__type.o3 | undefined)",
2000
- value: input.video
2001
- }, errorFactory)) && $ao5(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
2002
- path: _path + ".video",
2003
- expected: "(__type.o3 | undefined)",
2004
- value: input.video
2005
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
2006
- path: _path + ".start",
2007
- expected: "(number | undefined)",
2008
- value: input.start
2009
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
2010
- path: _path + ".end",
2011
- expected: "(number | undefined)",
2012
- value: input.end
2013
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
2014
- path: _path + ".transcribe",
2015
- expected: "(__type.o5 | undefined)",
2016
- value: input.transcribe
2017
- }, errorFactory)) && $ao7(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
2018
- path: _path + ".transcribe",
2019
- expected: "(__type.o5 | undefined)",
2020
- value: input.transcribe
2021
- }, errorFactory));
2022
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
2023
- path: _path + ".type",
2024
- expected: "(string | undefined)",
2025
- value: input.type
2026
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
2027
- path: _path + ".file",
2028
- expected: "(null | string | undefined)",
2029
- value: input.file
2030
- }, errorFactory));
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, {
2152
- path: _path + ".crop",
2153
- expected: "(__type.o4 | undefined)",
2154
- value: input.crop
2155
- }, errorFactory)) && $ao6(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
2156
- path: _path + ".crop",
2157
- expected: "(__type.o4 | undefined)",
2158
- value: input.crop
2159
- }, errorFactory);
2160
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
2161
- path: _path + ".x",
2162
- expected: "(number | undefined)",
2163
- value: input.x
2164
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
2165
- path: _path + ".y",
2166
- expected: "(number | undefined)",
2167
- value: input.y
2168
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
2169
- path: _path + ".width",
2170
- expected: "(number | undefined)",
2171
- value: input.width
2172
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
2173
- path: _path + ".height",
2174
- expected: "(number | undefined)",
2175
- value: input.height
2176
- }, errorFactory));
2177
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
2178
- path: _path + ".language",
2179
- expected: "(string | undefined)",
2180
- value: input.language
2181
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
2182
- path: _path + ".pan",
2183
- expected: "(Array<number> | undefined)",
2184
- value: input.pan
2185
- }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
2186
- path: _path + ".pan[" + _index1 + "]",
2187
- expected: "number",
2188
- value: elem
2189
- }, errorFactory)) || $guard(_exceptionable, {
2190
- path: _path + ".pan",
2191
- expected: "(Array<number> | undefined)",
2192
- value: input.pan
2193
- }, errorFactory));
2194
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
2195
- path: _path + "",
2196
- expected: "RenderSceneObject",
2197
- value: input
2198
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2199
- path: _path + "",
2200
- expected: "RenderSceneObject",
2201
- value: input
2202
- }, errorFactory);
2203
- })(input, "$input", true);
2204
- return input;
2205
- }; const stringify = input => {
2206
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
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));
2218
- const $string = __typia.json.createAssertStringify.string;
2219
- const $tail = __typia.json.createAssertStringify.tail;
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}`}`)}}`;
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}`}`)}}`;
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}`}`)}}`;
2229
- return $so0(input);
2230
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};