@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,1754 +1 @@
1
- import __typia from "typia";
2
- export const isRenderQuery = input => {
3
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
4
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io10(elem))) || "object" === typeof input.profile && null !== input.profile && $io10(input.profile))));
5
- const $io2 = 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) && $io3(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) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io7(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) && $io9(input.transcribe));
6
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
7
- const $io4 = input => Object.keys(input).every(key => {
8
- const value = input[key];
9
- if (undefined === value)
10
- return true;
11
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
12
- });
13
- const $io5 = 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) && $io6(input.styleOverrides));
14
- const $io6 = 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);
15
- const $io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io8(input.crop);
16
- const $io8 = 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);
17
- const $io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
18
- const $io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io14(input.subtitle)));
19
- const $io11 = input => "string" === typeof input.engine;
20
- const $io12 = input => "string" === typeof input.language;
21
- const $io13 = input => undefined === input.pan || "string" === typeof input.pan;
22
- const $io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
23
- return "object" === typeof input && null !== input && $io0(input);
24
- };
25
- export const assertRenderQuery = (input, errorFactory) => {
26
- const __is = input => {
27
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
28
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io10(elem))) || "object" === typeof input.profile && null !== input.profile && $io10(input.profile))));
29
- const $io2 = 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) && $io3(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) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io7(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) && $io9(input.transcribe));
30
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
31
- const $io4 = input => Object.keys(input).every(key => {
32
- const value = input[key];
33
- if (undefined === value)
34
- return true;
35
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
36
- });
37
- const $io5 = 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) && $io6(input.styleOverrides));
38
- const $io6 = 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);
39
- const $io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io8(input.crop);
40
- const $io8 = 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);
41
- const $io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
42
- const $io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io14(input.subtitle)));
43
- const $io11 = input => "string" === typeof input.engine;
44
- const $io12 = input => "string" === typeof input.language;
45
- const $io13 = input => undefined === input.pan || "string" === typeof input.pan;
46
- const $io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
47
- return "object" === typeof input && null !== input && $io0(input);
48
- };
49
- if (false === __is(input))
50
- ((input, _path, _exceptionable = true) => {
51
- const $guard = __typia.createAssert.guard;
52
- const $join = __typia.createAssert.join;
53
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
54
- path: _path + ".type",
55
- expected: "string",
56
- value: input.type
57
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
58
- path: _path + ".title",
59
- expected: "string",
60
- value: input.title
61
- }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
62
- path: _path + ".parent",
63
- expected: "(string | undefined)",
64
- value: input.parent
65
- }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
66
- path: _path + ".description",
67
- expected: "(__type | undefined)",
68
- value: input.description
69
- }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
70
- path: _path + ".description",
71
- expected: "(__type | undefined)",
72
- value: input.description
73
- }, errorFactory));
74
- const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
75
- path: _path + ".scene",
76
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
77
- value: input.scene
78
- }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
79
- path: _path + ".scene[" + _index1 + "]",
80
- expected: "(RenderSceneObject | string)",
81
- value: elem
82
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
83
- path: _path + ".scene[" + _index1 + "]",
84
- expected: "(RenderSceneObject | string)",
85
- value: elem
86
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
87
- path: _path + ".scene[" + _index1 + "]",
88
- expected: "(RenderSceneObject | string)",
89
- value: elem
90
- }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
91
- path: _path + ".scene[" + _index1 + "]",
92
- expected: "(RenderSceneObject | string)",
93
- value: elem
94
- }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
95
- path: _path + ".scene",
96
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
97
- value: input.scene
98
- }, errorFactory)) || $guard(_exceptionable, {
99
- path: _path + ".scene",
100
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
101
- value: input.scene
102
- }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
103
- path: _path + ".profile",
104
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
105
- value: input.profile
106
- }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
107
- path: _path + ".profile[" + _index2 + "]",
108
- expected: "(RenderProfileObject | string)",
109
- value: elem
110
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
111
- path: _path + ".profile[" + _index2 + "]",
112
- expected: "(RenderProfileObject | string)",
113
- value: elem
114
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
115
- path: _path + ".profile[" + _index2 + "]",
116
- expected: "(RenderProfileObject | string)",
117
- value: elem
118
- }, errorFactory)) && $ao10(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
119
- path: _path + ".profile[" + _index2 + "]",
120
- expected: "(RenderProfileObject | string)",
121
- value: elem
122
- }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao10(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
123
- path: _path + ".profile",
124
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
125
- value: input.profile
126
- }, errorFactory)) || $guard(_exceptionable, {
127
- path: _path + ".profile",
128
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
129
- value: input.profile
130
- }, errorFactory)));
131
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
132
- path: _path + ".id",
133
- expected: "(string | undefined)",
134
- value: input.id
135
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
136
- path: _path + ".preset",
137
- expected: "(string | undefined)",
138
- value: input.preset
139
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
140
- path: _path + ".input",
141
- expected: "(__type.o1 | undefined)",
142
- value: input.input
143
- }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
144
- path: _path + ".input",
145
- expected: "(__type.o1 | undefined)",
146
- value: input.input
147
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
148
- path: _path + ".lang",
149
- expected: "(string | undefined)",
150
- value: input.lang
151
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
152
- path: _path + ".subtitle",
153
- expected: "(string | undefined)",
154
- value: input.subtitle
155
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
156
- path: _path + ".subtitleTracks",
157
- expected: "(__type.o2 | undefined)",
158
- value: input.subtitleTracks
159
- }, errorFactory)) && $ao4(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
160
- path: _path + ".subtitleTracks",
161
- expected: "(__type.o2 | undefined)",
162
- value: input.subtitleTracks
163
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
164
- path: _path + ".video",
165
- expected: "(__type.o4 | undefined)",
166
- value: input.video
167
- }, errorFactory)) && $ao7(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
168
- path: _path + ".video",
169
- expected: "(__type.o4 | undefined)",
170
- value: input.video
171
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
172
- path: _path + ".start",
173
- expected: "(number | undefined)",
174
- value: input.start
175
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
176
- path: _path + ".end",
177
- expected: "(number | undefined)",
178
- value: input.end
179
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
180
- path: _path + ".transcribe",
181
- expected: "(__type.o6 | undefined)",
182
- value: input.transcribe
183
- }, errorFactory)) && $ao9(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
184
- path: _path + ".transcribe",
185
- expected: "(__type.o6 | undefined)",
186
- value: input.transcribe
187
- }, errorFactory));
188
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
189
- path: _path + ".type",
190
- expected: "(string | undefined)",
191
- value: input.type
192
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
193
- path: _path + ".file",
194
- expected: "(null | string | undefined)",
195
- value: input.file
196
- }, errorFactory));
197
- const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
198
- const value = input[key];
199
- if (undefined === value)
200
- return true;
201
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
202
- path: _path + $join(key),
203
- expected: "__type.o3",
204
- value: value
205
- }, errorFactory)) && $ao5(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
206
- path: _path + $join(key),
207
- expected: "__type.o3",
208
- value: value
209
- }, errorFactory);
210
- });
211
- const $ao5 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
212
- path: _path + ".style",
213
- expected: "(null | string | undefined)",
214
- value: input.style
215
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
216
- path: _path + ".styleOverrides",
217
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
218
- value: input.styleOverrides
219
- }, errorFactory)) && $ao6(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
220
- path: _path + ".styleOverrides",
221
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
222
- value: input.styleOverrides
223
- }, errorFactory));
224
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
225
- path: _path + ".name",
226
- expected: "(string | undefined)",
227
- value: input.name
228
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
229
- path: _path + ".fontname",
230
- expected: "(string | undefined)",
231
- value: input.fontname
232
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
233
- path: _path + ".fontsize",
234
- expected: "(string | undefined)",
235
- value: input.fontsize
236
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
237
- path: _path + ".primaryColour",
238
- expected: "(string | undefined)",
239
- value: input.primaryColour
240
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
241
- path: _path + ".secondaryColour",
242
- expected: "(string | undefined)",
243
- value: input.secondaryColour
244
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
245
- path: _path + ".outlineColour",
246
- expected: "(string | undefined)",
247
- value: input.outlineColour
248
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
249
- path: _path + ".backColour",
250
- expected: "(string | undefined)",
251
- value: input.backColour
252
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
253
- path: _path + ".bold",
254
- expected: "(string | undefined)",
255
- value: input.bold
256
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
257
- path: _path + ".italic",
258
- expected: "(string | undefined)",
259
- value: input.italic
260
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
261
- path: _path + ".underline",
262
- expected: "(string | undefined)",
263
- value: input.underline
264
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
265
- path: _path + ".strikeOut",
266
- expected: "(string | undefined)",
267
- value: input.strikeOut
268
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
269
- path: _path + ".scaleX",
270
- expected: "(string | undefined)",
271
- value: input.scaleX
272
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
273
- path: _path + ".scaleY",
274
- expected: "(string | undefined)",
275
- value: input.scaleY
276
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
277
- path: _path + ".spacing",
278
- expected: "(string | undefined)",
279
- value: input.spacing
280
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
281
- path: _path + ".angle",
282
- expected: "(string | undefined)",
283
- value: input.angle
284
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
285
- path: _path + ".borderStyle",
286
- expected: "(string | undefined)",
287
- value: input.borderStyle
288
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
289
- path: _path + ".outline",
290
- expected: "(string | undefined)",
291
- value: input.outline
292
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
293
- path: _path + ".shadow",
294
- expected: "(string | undefined)",
295
- value: input.shadow
296
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
297
- path: _path + ".alignment",
298
- expected: "(string | undefined)",
299
- value: input.alignment
300
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
301
- path: _path + ".marginL",
302
- expected: "(string | undefined)",
303
- value: input.marginL
304
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
305
- path: _path + ".marginR",
306
- expected: "(string | undefined)",
307
- value: input.marginR
308
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
309
- path: _path + ".marginV",
310
- expected: "(string | undefined)",
311
- value: input.marginV
312
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
313
- path: _path + ".encoding",
314
- expected: "(string | undefined)",
315
- value: input.encoding
316
- }, errorFactory));
317
- const $ao7 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
318
- path: _path + ".crop",
319
- expected: "(__type.o5 | undefined)",
320
- value: input.crop
321
- }, errorFactory)) && $ao8(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
322
- path: _path + ".crop",
323
- expected: "(__type.o5 | undefined)",
324
- value: input.crop
325
- }, errorFactory);
326
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
327
- path: _path + ".x",
328
- expected: "(number | undefined)",
329
- value: input.x
330
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
331
- path: _path + ".y",
332
- expected: "(number | undefined)",
333
- value: input.y
334
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
335
- path: _path + ".width",
336
- expected: "(number | undefined)",
337
- value: input.width
338
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
339
- path: _path + ".height",
340
- expected: "(number | undefined)",
341
- value: input.height
342
- }, errorFactory));
343
- const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
344
- path: _path + ".language",
345
- expected: "(string | undefined)",
346
- value: input.language
347
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
348
- path: _path + ".pan",
349
- expected: "(Array<number> | undefined)",
350
- value: input.pan
351
- }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem || $guard(_exceptionable, {
352
- path: _path + ".pan[" + _index3 + "]",
353
- expected: "number",
354
- value: elem
355
- }, errorFactory)) || $guard(_exceptionable, {
356
- path: _path + ".pan",
357
- expected: "(Array<number> | undefined)",
358
- value: input.pan
359
- }, errorFactory));
360
- const $ao10 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
361
- path: _path + ".format",
362
- expected: "string",
363
- value: input.format
364
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
365
- path: _path + ".transcribe",
366
- expected: "(__type.o7 | undefined)",
367
- value: input.transcribe
368
- }, errorFactory)) && $ao11(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
369
- path: _path + ".transcribe",
370
- expected: "(__type.o7 | undefined)",
371
- value: input.transcribe
372
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
373
- path: _path + ".translate",
374
- expected: "(__type.o8 | undefined)",
375
- value: input.translate
376
- }, errorFactory)) && $ao12(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
377
- path: _path + ".translate",
378
- expected: "(__type.o8 | undefined)",
379
- value: input.translate
380
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
381
- path: _path + ".audio",
382
- expected: "(__type.o9 | undefined)",
383
- value: input.audio
384
- }, errorFactory)) && $ao13(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
385
- path: _path + ".audio",
386
- expected: "(__type.o9 | undefined)",
387
- value: input.audio
388
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
389
- path: _path + ".pick",
390
- expected: "(Array<string> | undefined)",
391
- value: input.pick
392
- }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
393
- path: _path + ".pick[" + _index4 + "]",
394
- expected: "string",
395
- value: elem
396
- }, errorFactory)) || $guard(_exceptionable, {
397
- path: _path + ".pick",
398
- expected: "(Array<string> | undefined)",
399
- value: input.pick
400
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
401
- path: _path + ".subtitle",
402
- expected: "(SubtitleProfile | string | undefined)",
403
- value: input.subtitle
404
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
405
- path: _path + ".subtitle",
406
- expected: "(SubtitleProfile | string | undefined)",
407
- value: input.subtitle
408
- }, errorFactory)) && $ao14(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
409
- path: _path + ".subtitle",
410
- expected: "(SubtitleProfile | string | undefined)",
411
- value: input.subtitle
412
- }, errorFactory)));
413
- const $ao11 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
414
- path: _path + ".engine",
415
- expected: "string",
416
- value: input.engine
417
- }, errorFactory);
418
- const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
419
- path: _path + ".language",
420
- expected: "string",
421
- value: input.language
422
- }, errorFactory);
423
- const $ao13 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
424
- path: _path + ".pan",
425
- expected: "(string | undefined)",
426
- value: input.pan
427
- }, errorFactory);
428
- const $ao14 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
429
- path: _path + ".lang",
430
- expected: "(string | undefined)",
431
- value: input.lang
432
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
433
- path: _path + ".style",
434
- expected: "(string | undefined)",
435
- value: input.style
436
- }, errorFactory));
437
- return ("object" === typeof input && null !== input || $guard(true, {
438
- path: _path + "",
439
- expected: "RenderQuery",
440
- value: input
441
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
442
- path: _path + "",
443
- expected: "RenderQuery",
444
- value: input
445
- }, errorFactory);
446
- })(input, "$input", true);
447
- return input;
448
- };
449
- export const randomRenderQuery = generator => {
450
- const $generator = __typia.createRandom.generator;
451
- const $pick = __typia.createRandom.pick;
452
- const $ro0 = (_recursive = false, _depth = 0) => ({
453
- type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
454
- title: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
455
- parent: $pick([
456
- () => undefined,
457
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
458
- ])(),
459
- description: $pick([
460
- () => undefined,
461
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
462
- ])()
463
- });
464
- const $ro1 = (_recursive = false, _depth = 0) => ({
465
- scene: $pick([
466
- () => undefined,
467
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
468
- () => (generator?.array ?? $generator.array)(() => $pick([
469
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
470
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
471
- ])()),
472
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
473
- ])(),
474
- profile: $pick([
475
- () => undefined,
476
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
477
- () => (generator?.array ?? $generator.array)(() => $pick([
478
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
479
- () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
480
- ])()),
481
- () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
482
- ])()
483
- });
484
- const $ro2 = (_recursive = false, _depth = 0) => ({
485
- id: $pick([
486
- () => undefined,
487
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
488
- ])(),
489
- preset: $pick([
490
- () => undefined,
491
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
492
- ])(),
493
- input: $pick([
494
- () => undefined,
495
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
496
- ])(),
497
- lang: $pick([
498
- () => undefined,
499
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
500
- ])(),
501
- subtitle: $pick([
502
- () => undefined,
503
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
504
- ])(),
505
- subtitleTracks: $pick([
506
- () => undefined,
507
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
508
- ])(),
509
- video: $pick([
510
- () => undefined,
511
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
512
- ])(),
513
- start: $pick([
514
- () => undefined,
515
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
516
- ])(),
517
- end: $pick([
518
- () => undefined,
519
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
520
- ])(),
521
- transcribe: $pick([
522
- () => undefined,
523
- () => $ro9(_recursive, _recursive ? 1 + _depth : _depth)
524
- ])()
525
- });
526
- const $ro3 = (_recursive = false, _depth = 0) => ({
527
- type: $pick([
528
- () => undefined,
529
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
530
- ])(),
531
- file: $pick([
532
- () => undefined,
533
- () => null,
534
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
535
- ])()
536
- });
537
- const $ro4 = (_recursive = false, _depth = 0) => {
538
- const output = {};
539
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro5(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
540
- return output;
541
- };
542
- const $ro5 = (_recursive = false, _depth = 0) => ({
543
- style: $pick([
544
- () => undefined,
545
- () => null,
546
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
547
- ])(),
548
- styleOverrides: $pick([
549
- () => undefined,
550
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
551
- ])()
552
- });
553
- const $ro6 = (_recursive = false, _depth = 0) => ({
554
- name: $pick([
555
- () => undefined,
556
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
557
- ])(),
558
- fontname: $pick([
559
- () => undefined,
560
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
561
- ])(),
562
- fontsize: $pick([
563
- () => undefined,
564
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
565
- ])(),
566
- primaryColour: $pick([
567
- () => undefined,
568
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
569
- ])(),
570
- secondaryColour: $pick([
571
- () => undefined,
572
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
573
- ])(),
574
- outlineColour: $pick([
575
- () => undefined,
576
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
577
- ])(),
578
- backColour: $pick([
579
- () => undefined,
580
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
581
- ])(),
582
- bold: $pick([
583
- () => undefined,
584
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
585
- ])(),
586
- italic: $pick([
587
- () => undefined,
588
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
589
- ])(),
590
- underline: $pick([
591
- () => undefined,
592
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
593
- ])(),
594
- strikeOut: $pick([
595
- () => undefined,
596
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
597
- ])(),
598
- scaleX: $pick([
599
- () => undefined,
600
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
601
- ])(),
602
- scaleY: $pick([
603
- () => undefined,
604
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
605
- ])(),
606
- spacing: $pick([
607
- () => undefined,
608
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
609
- ])(),
610
- angle: $pick([
611
- () => undefined,
612
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
613
- ])(),
614
- borderStyle: $pick([
615
- () => undefined,
616
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
617
- ])(),
618
- outline: $pick([
619
- () => undefined,
620
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
621
- ])(),
622
- shadow: $pick([
623
- () => undefined,
624
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
625
- ])(),
626
- alignment: $pick([
627
- () => undefined,
628
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
629
- ])(),
630
- marginL: $pick([
631
- () => undefined,
632
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
633
- ])(),
634
- marginR: $pick([
635
- () => undefined,
636
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
637
- ])(),
638
- marginV: $pick([
639
- () => undefined,
640
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
641
- ])(),
642
- encoding: $pick([
643
- () => undefined,
644
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
645
- ])()
646
- });
647
- const $ro7 = (_recursive = false, _depth = 0) => ({
648
- crop: $pick([
649
- () => undefined,
650
- () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
651
- ])()
652
- });
653
- const $ro8 = (_recursive = false, _depth = 0) => ({
654
- x: $pick([
655
- () => undefined,
656
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
657
- ])(),
658
- y: $pick([
659
- () => undefined,
660
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
661
- ])(),
662
- width: $pick([
663
- () => undefined,
664
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
665
- ])(),
666
- height: $pick([
667
- () => undefined,
668
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
669
- ])()
670
- });
671
- const $ro9 = (_recursive = false, _depth = 0) => ({
672
- language: $pick([
673
- () => undefined,
674
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
675
- ])(),
676
- pan: $pick([
677
- () => undefined,
678
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
679
- ])()
680
- });
681
- const $ro10 = (_recursive = false, _depth = 0) => ({
682
- format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
683
- transcribe: $pick([
684
- () => undefined,
685
- () => $ro11(_recursive, _recursive ? 1 + _depth : _depth)
686
- ])(),
687
- translate: $pick([
688
- () => undefined,
689
- () => $ro12(_recursive, _recursive ? 1 + _depth : _depth)
690
- ])(),
691
- audio: $pick([
692
- () => undefined,
693
- () => $ro13(_recursive, _recursive ? 1 + _depth : _depth)
694
- ])(),
695
- video: $pick([
696
- () => "any type used...",
697
- () => undefined
698
- ])(),
699
- pick: $pick([
700
- () => undefined,
701
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
702
- ])(),
703
- subtitle: $pick([
704
- () => undefined,
705
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
706
- () => $ro14(_recursive, _recursive ? 1 + _depth : _depth)
707
- ])()
708
- });
709
- const $ro11 = (_recursive = false, _depth = 0) => ({
710
- engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
711
- });
712
- const $ro12 = (_recursive = false, _depth = 0) => ({
713
- language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
714
- });
715
- const $ro13 = (_recursive = false, _depth = 0) => ({
716
- pan: $pick([
717
- () => undefined,
718
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
719
- ])()
720
- });
721
- const $ro14 = (_recursive = false, _depth = 0) => ({
722
- lang: $pick([
723
- () => undefined,
724
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
725
- ])(),
726
- style: $pick([
727
- () => undefined,
728
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
729
- ])()
730
- });
731
- return $ro0();
732
- };
733
- export const assertGuardRenderQuery = (input, errorFactory) => {
734
- const __is = input => {
735
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
736
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io10(elem))) || "object" === typeof input.profile && null !== input.profile && $io10(input.profile))));
737
- const $io2 = 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) && $io3(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) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io7(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) && $io9(input.transcribe));
738
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
739
- const $io4 = input => Object.keys(input).every(key => {
740
- const value = input[key];
741
- if (undefined === value)
742
- return true;
743
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
744
- });
745
- const $io5 = 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) && $io6(input.styleOverrides));
746
- const $io6 = 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);
747
- const $io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io8(input.crop);
748
- const $io8 = 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);
749
- const $io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
750
- const $io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io14(input.subtitle)));
751
- const $io11 = input => "string" === typeof input.engine;
752
- const $io12 = input => "string" === typeof input.language;
753
- const $io13 = input => undefined === input.pan || "string" === typeof input.pan;
754
- const $io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
755
- return "object" === typeof input && null !== input && $io0(input);
756
- };
757
- if (false === __is(input))
758
- ((input, _path, _exceptionable = true) => {
759
- const $guard = __typia.createAssertGuard.guard;
760
- const $join = __typia.createAssertGuard.join;
761
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
762
- path: _path + ".type",
763
- expected: "string",
764
- value: input.type
765
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
766
- path: _path + ".title",
767
- expected: "string",
768
- value: input.title
769
- }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
770
- path: _path + ".parent",
771
- expected: "(string | undefined)",
772
- value: input.parent
773
- }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
774
- path: _path + ".description",
775
- expected: "(__type | undefined)",
776
- value: input.description
777
- }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
778
- path: _path + ".description",
779
- expected: "(__type | undefined)",
780
- value: input.description
781
- }, errorFactory));
782
- const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
783
- path: _path + ".scene",
784
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
785
- value: input.scene
786
- }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
787
- path: _path + ".scene[" + _index1 + "]",
788
- expected: "(RenderSceneObject | string)",
789
- value: elem
790
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
791
- path: _path + ".scene[" + _index1 + "]",
792
- expected: "(RenderSceneObject | string)",
793
- value: elem
794
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
795
- path: _path + ".scene[" + _index1 + "]",
796
- expected: "(RenderSceneObject | string)",
797
- value: elem
798
- }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
799
- path: _path + ".scene[" + _index1 + "]",
800
- expected: "(RenderSceneObject | string)",
801
- value: elem
802
- }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
803
- path: _path + ".scene",
804
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
805
- value: input.scene
806
- }, errorFactory)) || $guard(_exceptionable, {
807
- path: _path + ".scene",
808
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
809
- value: input.scene
810
- }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
811
- path: _path + ".profile",
812
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
813
- value: input.profile
814
- }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
815
- path: _path + ".profile[" + _index2 + "]",
816
- expected: "(RenderProfileObject | string)",
817
- value: elem
818
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
819
- path: _path + ".profile[" + _index2 + "]",
820
- expected: "(RenderProfileObject | string)",
821
- value: elem
822
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
823
- path: _path + ".profile[" + _index2 + "]",
824
- expected: "(RenderProfileObject | string)",
825
- value: elem
826
- }, errorFactory)) && $ao10(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
827
- path: _path + ".profile[" + _index2 + "]",
828
- expected: "(RenderProfileObject | string)",
829
- value: elem
830
- }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao10(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
831
- path: _path + ".profile",
832
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
833
- value: input.profile
834
- }, errorFactory)) || $guard(_exceptionable, {
835
- path: _path + ".profile",
836
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
837
- value: input.profile
838
- }, errorFactory)));
839
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
840
- path: _path + ".id",
841
- expected: "(string | undefined)",
842
- value: input.id
843
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
844
- path: _path + ".preset",
845
- expected: "(string | undefined)",
846
- value: input.preset
847
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
848
- path: _path + ".input",
849
- expected: "(__type.o1 | undefined)",
850
- value: input.input
851
- }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
852
- path: _path + ".input",
853
- expected: "(__type.o1 | undefined)",
854
- value: input.input
855
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
856
- path: _path + ".lang",
857
- expected: "(string | undefined)",
858
- value: input.lang
859
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
860
- path: _path + ".subtitle",
861
- expected: "(string | undefined)",
862
- value: input.subtitle
863
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
864
- path: _path + ".subtitleTracks",
865
- expected: "(__type.o2 | undefined)",
866
- value: input.subtitleTracks
867
- }, errorFactory)) && $ao4(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
868
- path: _path + ".subtitleTracks",
869
- expected: "(__type.o2 | undefined)",
870
- value: input.subtitleTracks
871
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
872
- path: _path + ".video",
873
- expected: "(__type.o4 | undefined)",
874
- value: input.video
875
- }, errorFactory)) && $ao7(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
876
- path: _path + ".video",
877
- expected: "(__type.o4 | undefined)",
878
- value: input.video
879
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
880
- path: _path + ".start",
881
- expected: "(number | undefined)",
882
- value: input.start
883
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
884
- path: _path + ".end",
885
- expected: "(number | undefined)",
886
- value: input.end
887
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
888
- path: _path + ".transcribe",
889
- expected: "(__type.o6 | undefined)",
890
- value: input.transcribe
891
- }, errorFactory)) && $ao9(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
892
- path: _path + ".transcribe",
893
- expected: "(__type.o6 | undefined)",
894
- value: input.transcribe
895
- }, errorFactory));
896
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
897
- path: _path + ".type",
898
- expected: "(string | undefined)",
899
- value: input.type
900
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
901
- path: _path + ".file",
902
- expected: "(null | string | undefined)",
903
- value: input.file
904
- }, errorFactory));
905
- const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
906
- const value = input[key];
907
- if (undefined === value)
908
- return true;
909
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
910
- path: _path + $join(key),
911
- expected: "__type.o3",
912
- value: value
913
- }, errorFactory)) && $ao5(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
914
- path: _path + $join(key),
915
- expected: "__type.o3",
916
- value: value
917
- }, errorFactory);
918
- });
919
- const $ao5 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
920
- path: _path + ".style",
921
- expected: "(null | string | undefined)",
922
- value: input.style
923
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
924
- path: _path + ".styleOverrides",
925
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
926
- value: input.styleOverrides
927
- }, errorFactory)) && $ao6(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
928
- path: _path + ".styleOverrides",
929
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
930
- value: input.styleOverrides
931
- }, errorFactory));
932
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
933
- path: _path + ".name",
934
- expected: "(string | undefined)",
935
- value: input.name
936
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
937
- path: _path + ".fontname",
938
- expected: "(string | undefined)",
939
- value: input.fontname
940
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
941
- path: _path + ".fontsize",
942
- expected: "(string | undefined)",
943
- value: input.fontsize
944
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
945
- path: _path + ".primaryColour",
946
- expected: "(string | undefined)",
947
- value: input.primaryColour
948
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
949
- path: _path + ".secondaryColour",
950
- expected: "(string | undefined)",
951
- value: input.secondaryColour
952
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
953
- path: _path + ".outlineColour",
954
- expected: "(string | undefined)",
955
- value: input.outlineColour
956
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
957
- path: _path + ".backColour",
958
- expected: "(string | undefined)",
959
- value: input.backColour
960
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
961
- path: _path + ".bold",
962
- expected: "(string | undefined)",
963
- value: input.bold
964
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
965
- path: _path + ".italic",
966
- expected: "(string | undefined)",
967
- value: input.italic
968
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
969
- path: _path + ".underline",
970
- expected: "(string | undefined)",
971
- value: input.underline
972
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
973
- path: _path + ".strikeOut",
974
- expected: "(string | undefined)",
975
- value: input.strikeOut
976
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
977
- path: _path + ".scaleX",
978
- expected: "(string | undefined)",
979
- value: input.scaleX
980
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
981
- path: _path + ".scaleY",
982
- expected: "(string | undefined)",
983
- value: input.scaleY
984
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
985
- path: _path + ".spacing",
986
- expected: "(string | undefined)",
987
- value: input.spacing
988
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
989
- path: _path + ".angle",
990
- expected: "(string | undefined)",
991
- value: input.angle
992
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
993
- path: _path + ".borderStyle",
994
- expected: "(string | undefined)",
995
- value: input.borderStyle
996
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
997
- path: _path + ".outline",
998
- expected: "(string | undefined)",
999
- value: input.outline
1000
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1001
- path: _path + ".shadow",
1002
- expected: "(string | undefined)",
1003
- value: input.shadow
1004
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1005
- path: _path + ".alignment",
1006
- expected: "(string | undefined)",
1007
- value: input.alignment
1008
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1009
- path: _path + ".marginL",
1010
- expected: "(string | undefined)",
1011
- value: input.marginL
1012
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1013
- path: _path + ".marginR",
1014
- expected: "(string | undefined)",
1015
- value: input.marginR
1016
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1017
- path: _path + ".marginV",
1018
- expected: "(string | undefined)",
1019
- value: input.marginV
1020
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1021
- path: _path + ".encoding",
1022
- expected: "(string | undefined)",
1023
- value: input.encoding
1024
- }, errorFactory));
1025
- const $ao7 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1026
- path: _path + ".crop",
1027
- expected: "(__type.o5 | undefined)",
1028
- value: input.crop
1029
- }, errorFactory)) && $ao8(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1030
- path: _path + ".crop",
1031
- expected: "(__type.o5 | undefined)",
1032
- value: input.crop
1033
- }, errorFactory);
1034
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1035
- path: _path + ".x",
1036
- expected: "(number | undefined)",
1037
- value: input.x
1038
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
1039
- path: _path + ".y",
1040
- expected: "(number | undefined)",
1041
- value: input.y
1042
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
1043
- path: _path + ".width",
1044
- expected: "(number | undefined)",
1045
- value: input.width
1046
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
1047
- path: _path + ".height",
1048
- expected: "(number | undefined)",
1049
- value: input.height
1050
- }, errorFactory));
1051
- const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1052
- path: _path + ".language",
1053
- expected: "(string | undefined)",
1054
- value: input.language
1055
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1056
- path: _path + ".pan",
1057
- expected: "(Array<number> | undefined)",
1058
- value: input.pan
1059
- }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem || $guard(_exceptionable, {
1060
- path: _path + ".pan[" + _index3 + "]",
1061
- expected: "number",
1062
- value: elem
1063
- }, errorFactory)) || $guard(_exceptionable, {
1064
- path: _path + ".pan",
1065
- expected: "(Array<number> | undefined)",
1066
- value: input.pan
1067
- }, errorFactory));
1068
- const $ao10 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
1069
- path: _path + ".format",
1070
- expected: "string",
1071
- value: input.format
1072
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
1073
- path: _path + ".transcribe",
1074
- expected: "(__type.o7 | undefined)",
1075
- value: input.transcribe
1076
- }, errorFactory)) && $ao11(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1077
- path: _path + ".transcribe",
1078
- expected: "(__type.o7 | undefined)",
1079
- value: input.transcribe
1080
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
1081
- path: _path + ".translate",
1082
- expected: "(__type.o8 | undefined)",
1083
- value: input.translate
1084
- }, errorFactory)) && $ao12(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
1085
- path: _path + ".translate",
1086
- expected: "(__type.o8 | undefined)",
1087
- value: input.translate
1088
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
1089
- path: _path + ".audio",
1090
- expected: "(__type.o9 | undefined)",
1091
- value: input.audio
1092
- }, errorFactory)) && $ao13(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
1093
- path: _path + ".audio",
1094
- expected: "(__type.o9 | undefined)",
1095
- value: input.audio
1096
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
1097
- path: _path + ".pick",
1098
- expected: "(Array<string> | undefined)",
1099
- value: input.pick
1100
- }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
1101
- path: _path + ".pick[" + _index4 + "]",
1102
- expected: "string",
1103
- value: elem
1104
- }, errorFactory)) || $guard(_exceptionable, {
1105
- path: _path + ".pick",
1106
- expected: "(Array<string> | undefined)",
1107
- value: input.pick
1108
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
1109
- path: _path + ".subtitle",
1110
- expected: "(SubtitleProfile | string | undefined)",
1111
- value: input.subtitle
1112
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
1113
- path: _path + ".subtitle",
1114
- expected: "(SubtitleProfile | string | undefined)",
1115
- value: input.subtitle
1116
- }, errorFactory)) && $ao14(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
1117
- path: _path + ".subtitle",
1118
- expected: "(SubtitleProfile | string | undefined)",
1119
- value: input.subtitle
1120
- }, errorFactory)));
1121
- const $ao11 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
1122
- path: _path + ".engine",
1123
- expected: "string",
1124
- value: input.engine
1125
- }, errorFactory);
1126
- const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
1127
- path: _path + ".language",
1128
- expected: "string",
1129
- value: input.language
1130
- }, errorFactory);
1131
- const $ao13 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
1132
- path: _path + ".pan",
1133
- expected: "(string | undefined)",
1134
- value: input.pan
1135
- }, errorFactory);
1136
- const $ao14 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1137
- path: _path + ".lang",
1138
- expected: "(string | undefined)",
1139
- value: input.lang
1140
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1141
- path: _path + ".style",
1142
- expected: "(string | undefined)",
1143
- value: input.style
1144
- }, errorFactory));
1145
- return ("object" === typeof input && null !== input || $guard(true, {
1146
- path: _path + "",
1147
- expected: "RenderQuery",
1148
- value: input
1149
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1150
- path: _path + "",
1151
- expected: "RenderQuery",
1152
- value: input
1153
- }, errorFactory);
1154
- })(input, "$input", true);
1155
- };
1156
- export const stringifyRenderQuery = input => {
1157
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io10(elem))) || "object" === typeof input.profile && null !== input.profile && $io10(input.profile))));
1158
- const $io2 = 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) && $io3(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) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io7(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) && $io9(input.transcribe));
1159
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1160
- const $io4 = input => Object.keys(input).every(key => {
1161
- const value = input[key];
1162
- if (undefined === value)
1163
- return true;
1164
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
1165
- });
1166
- const $io5 = 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) && $io6(input.styleOverrides));
1167
- const $io6 = 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);
1168
- const $io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io8(input.crop);
1169
- const $io8 = 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);
1170
- const $io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1171
- const $io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io14(input.subtitle)));
1172
- const $io11 = input => "string" === typeof input.engine;
1173
- const $io12 = input => "string" === typeof input.language;
1174
- const $io13 = input => undefined === input.pan || "string" === typeof input.pan;
1175
- const $io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1176
- const $string = __typia.json.createStringify.string;
1177
- const $throws = __typia.json.createStringify.throws;
1178
- const $tail = __typia.json.createStringify.tail;
1179
- const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $so1(input.description) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)}}`;
1180
- const $so1 = input => `{${$tail(`${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? (() => {
1181
- if ("string" === typeof input.scene)
1182
- return $string(input.scene);
1183
- if (Array.isArray(input.scene))
1184
- return `[${input.scene.map(elem => (() => {
1185
- if ("string" === typeof elem)
1186
- return $string(elem);
1187
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1188
- return $so2(elem);
1189
- $throws({
1190
- expected: "(RenderSceneObject | string)",
1191
- value: elem
1192
- });
1193
- })()).join(",")}]`;
1194
- if ("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene))
1195
- return $so2(input.scene);
1196
- $throws({
1197
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1198
- value: input.scene
1199
- });
1200
- })() : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? (() => {
1201
- if ("string" === typeof input.profile)
1202
- return $string(input.profile);
1203
- if (Array.isArray(input.profile))
1204
- return `[${input.profile.map(elem => (() => {
1205
- if ("string" === typeof elem)
1206
- return $string(elem);
1207
- if ("object" === typeof elem && null !== elem)
1208
- return $so10(elem);
1209
- $throws({
1210
- expected: "(RenderProfileObject | string)",
1211
- value: elem
1212
- });
1213
- })()).join(",")}]`;
1214
- if ("object" === typeof input.profile && null !== input.profile)
1215
- return $so10(input.profile);
1216
- $throws({
1217
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1218
- value: input.profile
1219
- });
1220
- })() : undefined}`}`)}}`;
1221
- const $so2 = 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 ? $so3(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 ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so7(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 ? $so9(input.transcribe) : undefined}`}`)}}`;
1222
- const $so3 = 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}`}`)}}`;
1223
- const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1224
- return ""; return `${JSON.stringify(key)}:${$so5(value)}`; }).filter(str => "" !== str).join(",")}}`;
1225
- const $so5 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so6(input.styleOverrides) : undefined}`}`)}}`;
1226
- const $so6 = 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}`}`)}}`;
1227
- const $so7 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so8(input.crop) : undefined}`}`)}}`;
1228
- const $so8 = 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}`}`)}}`;
1229
- const $so9 = 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}`}`)}}`;
1230
- const $so10 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so13(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
1231
- if ("string" === typeof input.subtitle)
1232
- return $string(input.subtitle);
1233
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1234
- return $so14(input.subtitle);
1235
- $throws({
1236
- expected: "(SubtitleProfile | string | undefined)",
1237
- value: input.subtitle
1238
- });
1239
- })() : undefined},`}"format":${$string(input.format)}}`;
1240
- const $so13 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
1241
- const $so14 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1242
- return $so0(input);
1243
- };
1244
- export const assertStringifyRenderQuery = (input, errorFactory) => { const assert = (input, errorFactory) => {
1245
- const __is = input => {
1246
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
1247
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io10(elem))) || "object" === typeof input.profile && null !== input.profile && $io10(input.profile))));
1248
- const $io2 = 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) && $io3(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) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io7(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) && $io9(input.transcribe));
1249
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1250
- const $io4 = input => Object.keys(input).every(key => {
1251
- const value = input[key];
1252
- if (undefined === value)
1253
- return true;
1254
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
1255
- });
1256
- const $io5 = 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) && $io6(input.styleOverrides));
1257
- const $io6 = 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);
1258
- const $io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io8(input.crop);
1259
- const $io8 = 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));
1260
- const $io9 = 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)));
1261
- const $io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io14(input.subtitle)));
1262
- const $io11 = input => "string" === typeof input.engine;
1263
- const $io12 = input => "string" === typeof input.language;
1264
- const $io13 = input => undefined === input.pan || "string" === typeof input.pan;
1265
- const $io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1266
- return "object" === typeof input && null !== input && $io0(input);
1267
- };
1268
- if (false === __is(input))
1269
- ((input, _path, _exceptionable = true) => {
1270
- const $guard = __typia.json.createAssertStringify.guard;
1271
- const $join = __typia.json.createAssertStringify.join;
1272
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
1273
- path: _path + ".type",
1274
- expected: "string",
1275
- value: input.type
1276
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
1277
- path: _path + ".title",
1278
- expected: "string",
1279
- value: input.title
1280
- }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
1281
- path: _path + ".parent",
1282
- expected: "(string | undefined)",
1283
- value: input.parent
1284
- }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
1285
- path: _path + ".description",
1286
- expected: "(__type | undefined)",
1287
- value: input.description
1288
- }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
1289
- path: _path + ".description",
1290
- expected: "(__type | undefined)",
1291
- value: input.description
1292
- }, errorFactory));
1293
- const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
1294
- path: _path + ".scene",
1295
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1296
- value: input.scene
1297
- }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
1298
- path: _path + ".scene[" + _index1 + "]",
1299
- expected: "(RenderSceneObject | string)",
1300
- value: elem
1301
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1302
- path: _path + ".scene[" + _index1 + "]",
1303
- expected: "(RenderSceneObject | string)",
1304
- value: elem
1305
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1306
- path: _path + ".scene[" + _index1 + "]",
1307
- expected: "(RenderSceneObject | string)",
1308
- value: elem
1309
- }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1310
- path: _path + ".scene[" + _index1 + "]",
1311
- expected: "(RenderSceneObject | string)",
1312
- value: elem
1313
- }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
1314
- path: _path + ".scene",
1315
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1316
- value: input.scene
1317
- }, errorFactory)) || $guard(_exceptionable, {
1318
- path: _path + ".scene",
1319
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1320
- value: input.scene
1321
- }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
1322
- path: _path + ".profile",
1323
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1324
- value: input.profile
1325
- }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
1326
- path: _path + ".profile[" + _index2 + "]",
1327
- expected: "(RenderProfileObject | string)",
1328
- value: elem
1329
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1330
- path: _path + ".profile[" + _index2 + "]",
1331
- expected: "(RenderProfileObject | string)",
1332
- value: elem
1333
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1334
- path: _path + ".profile[" + _index2 + "]",
1335
- expected: "(RenderProfileObject | string)",
1336
- value: elem
1337
- }, errorFactory)) && $ao10(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1338
- path: _path + ".profile[" + _index2 + "]",
1339
- expected: "(RenderProfileObject | string)",
1340
- value: elem
1341
- }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao10(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
1342
- path: _path + ".profile",
1343
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1344
- value: input.profile
1345
- }, errorFactory)) || $guard(_exceptionable, {
1346
- path: _path + ".profile",
1347
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1348
- value: input.profile
1349
- }, errorFactory)));
1350
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1351
- path: _path + ".id",
1352
- expected: "(string | undefined)",
1353
- value: input.id
1354
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1355
- path: _path + ".preset",
1356
- expected: "(string | undefined)",
1357
- value: input.preset
1358
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1359
- path: _path + ".input",
1360
- expected: "(__type.o1 | undefined)",
1361
- value: input.input
1362
- }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1363
- path: _path + ".input",
1364
- expected: "(__type.o1 | undefined)",
1365
- value: input.input
1366
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1367
- path: _path + ".lang",
1368
- expected: "(string | undefined)",
1369
- value: input.lang
1370
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1371
- path: _path + ".subtitle",
1372
- expected: "(string | undefined)",
1373
- value: input.subtitle
1374
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1375
- path: _path + ".subtitleTracks",
1376
- expected: "(__type.o2 | undefined)",
1377
- value: input.subtitleTracks
1378
- }, errorFactory)) && $ao4(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1379
- path: _path + ".subtitleTracks",
1380
- expected: "(__type.o2 | undefined)",
1381
- value: input.subtitleTracks
1382
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1383
- path: _path + ".video",
1384
- expected: "(__type.o4 | undefined)",
1385
- value: input.video
1386
- }, errorFactory)) && $ao7(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1387
- path: _path + ".video",
1388
- expected: "(__type.o4 | undefined)",
1389
- value: input.video
1390
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
1391
- path: _path + ".start",
1392
- expected: "(number | undefined)",
1393
- value: input.start
1394
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
1395
- path: _path + ".end",
1396
- expected: "(number | undefined)",
1397
- value: input.end
1398
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1399
- path: _path + ".transcribe",
1400
- expected: "(__type.o6 | undefined)",
1401
- value: input.transcribe
1402
- }, errorFactory)) && $ao9(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1403
- path: _path + ".transcribe",
1404
- expected: "(__type.o6 | undefined)",
1405
- value: input.transcribe
1406
- }, errorFactory));
1407
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1408
- path: _path + ".type",
1409
- expected: "(string | undefined)",
1410
- value: input.type
1411
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1412
- path: _path + ".file",
1413
- expected: "(null | string | undefined)",
1414
- value: input.file
1415
- }, errorFactory));
1416
- const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1417
- const value = input[key];
1418
- if (undefined === value)
1419
- return true;
1420
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1421
- path: _path + $join(key),
1422
- expected: "__type.o3",
1423
- value: value
1424
- }, errorFactory)) && $ao5(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1425
- path: _path + $join(key),
1426
- expected: "__type.o3",
1427
- value: value
1428
- }, errorFactory);
1429
- });
1430
- const $ao5 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1431
- path: _path + ".style",
1432
- expected: "(null | string | undefined)",
1433
- value: input.style
1434
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1435
- path: _path + ".styleOverrides",
1436
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1437
- value: input.styleOverrides
1438
- }, errorFactory)) && $ao6(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1439
- path: _path + ".styleOverrides",
1440
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1441
- value: input.styleOverrides
1442
- }, errorFactory));
1443
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1444
- path: _path + ".name",
1445
- expected: "(string | undefined)",
1446
- value: input.name
1447
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1448
- path: _path + ".fontname",
1449
- expected: "(string | undefined)",
1450
- value: input.fontname
1451
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1452
- path: _path + ".fontsize",
1453
- expected: "(string | undefined)",
1454
- value: input.fontsize
1455
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1456
- path: _path + ".primaryColour",
1457
- expected: "(string | undefined)",
1458
- value: input.primaryColour
1459
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1460
- path: _path + ".secondaryColour",
1461
- expected: "(string | undefined)",
1462
- value: input.secondaryColour
1463
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1464
- path: _path + ".outlineColour",
1465
- expected: "(string | undefined)",
1466
- value: input.outlineColour
1467
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1468
- path: _path + ".backColour",
1469
- expected: "(string | undefined)",
1470
- value: input.backColour
1471
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1472
- path: _path + ".bold",
1473
- expected: "(string | undefined)",
1474
- value: input.bold
1475
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1476
- path: _path + ".italic",
1477
- expected: "(string | undefined)",
1478
- value: input.italic
1479
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1480
- path: _path + ".underline",
1481
- expected: "(string | undefined)",
1482
- value: input.underline
1483
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1484
- path: _path + ".strikeOut",
1485
- expected: "(string | undefined)",
1486
- value: input.strikeOut
1487
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1488
- path: _path + ".scaleX",
1489
- expected: "(string | undefined)",
1490
- value: input.scaleX
1491
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1492
- path: _path + ".scaleY",
1493
- expected: "(string | undefined)",
1494
- value: input.scaleY
1495
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1496
- path: _path + ".spacing",
1497
- expected: "(string | undefined)",
1498
- value: input.spacing
1499
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1500
- path: _path + ".angle",
1501
- expected: "(string | undefined)",
1502
- value: input.angle
1503
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1504
- path: _path + ".borderStyle",
1505
- expected: "(string | undefined)",
1506
- value: input.borderStyle
1507
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1508
- path: _path + ".outline",
1509
- expected: "(string | undefined)",
1510
- value: input.outline
1511
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1512
- path: _path + ".shadow",
1513
- expected: "(string | undefined)",
1514
- value: input.shadow
1515
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1516
- path: _path + ".alignment",
1517
- expected: "(string | undefined)",
1518
- value: input.alignment
1519
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1520
- path: _path + ".marginL",
1521
- expected: "(string | undefined)",
1522
- value: input.marginL
1523
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1524
- path: _path + ".marginR",
1525
- expected: "(string | undefined)",
1526
- value: input.marginR
1527
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1528
- path: _path + ".marginV",
1529
- expected: "(string | undefined)",
1530
- value: input.marginV
1531
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1532
- path: _path + ".encoding",
1533
- expected: "(string | undefined)",
1534
- value: input.encoding
1535
- }, errorFactory));
1536
- const $ao7 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1537
- path: _path + ".crop",
1538
- expected: "(__type.o5 | undefined)",
1539
- value: input.crop
1540
- }, errorFactory)) && $ao8(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1541
- path: _path + ".crop",
1542
- expected: "(__type.o5 | undefined)",
1543
- value: input.crop
1544
- }, errorFactory);
1545
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1546
- path: _path + ".x",
1547
- expected: "(number | undefined)",
1548
- value: input.x
1549
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
1550
- path: _path + ".y",
1551
- expected: "(number | undefined)",
1552
- value: input.y
1553
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1554
- path: _path + ".width",
1555
- expected: "(number | undefined)",
1556
- value: input.width
1557
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
1558
- path: _path + ".height",
1559
- expected: "(number | undefined)",
1560
- value: input.height
1561
- }, errorFactory));
1562
- const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1563
- path: _path + ".language",
1564
- expected: "(string | undefined)",
1565
- value: input.language
1566
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1567
- path: _path + ".pan",
1568
- expected: "(Array<number> | undefined)",
1569
- value: input.pan
1570
- }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
1571
- path: _path + ".pan[" + _index3 + "]",
1572
- expected: "number",
1573
- value: elem
1574
- }, errorFactory)) || $guard(_exceptionable, {
1575
- path: _path + ".pan",
1576
- expected: "(Array<number> | undefined)",
1577
- value: input.pan
1578
- }, errorFactory));
1579
- const $ao10 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
1580
- path: _path + ".format",
1581
- expected: "string",
1582
- value: input.format
1583
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
1584
- path: _path + ".transcribe",
1585
- expected: "(__type.o7 | undefined)",
1586
- value: input.transcribe
1587
- }, errorFactory)) && $ao11(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1588
- path: _path + ".transcribe",
1589
- expected: "(__type.o7 | undefined)",
1590
- value: input.transcribe
1591
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
1592
- path: _path + ".translate",
1593
- expected: "(__type.o8 | undefined)",
1594
- value: input.translate
1595
- }, errorFactory)) && $ao12(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
1596
- path: _path + ".translate",
1597
- expected: "(__type.o8 | undefined)",
1598
- value: input.translate
1599
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
1600
- path: _path + ".audio",
1601
- expected: "(__type.o9 | undefined)",
1602
- value: input.audio
1603
- }, errorFactory)) && $ao13(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
1604
- path: _path + ".audio",
1605
- expected: "(__type.o9 | undefined)",
1606
- value: input.audio
1607
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
1608
- path: _path + ".pick",
1609
- expected: "(Array<string> | undefined)",
1610
- value: input.pick
1611
- }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
1612
- path: _path + ".pick[" + _index4 + "]",
1613
- expected: "string",
1614
- value: elem
1615
- }, errorFactory)) || $guard(_exceptionable, {
1616
- path: _path + ".pick",
1617
- expected: "(Array<string> | undefined)",
1618
- value: input.pick
1619
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
1620
- path: _path + ".subtitle",
1621
- expected: "(SubtitleProfile | string | undefined)",
1622
- value: input.subtitle
1623
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
1624
- path: _path + ".subtitle",
1625
- expected: "(SubtitleProfile | string | undefined)",
1626
- value: input.subtitle
1627
- }, errorFactory)) && $ao14(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
1628
- path: _path + ".subtitle",
1629
- expected: "(SubtitleProfile | string | undefined)",
1630
- value: input.subtitle
1631
- }, errorFactory)));
1632
- const $ao11 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
1633
- path: _path + ".engine",
1634
- expected: "string",
1635
- value: input.engine
1636
- }, errorFactory);
1637
- const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
1638
- path: _path + ".language",
1639
- expected: "string",
1640
- value: input.language
1641
- }, errorFactory);
1642
- const $ao13 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
1643
- path: _path + ".pan",
1644
- expected: "(string | undefined)",
1645
- value: input.pan
1646
- }, errorFactory);
1647
- const $ao14 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1648
- path: _path + ".lang",
1649
- expected: "(string | undefined)",
1650
- value: input.lang
1651
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1652
- path: _path + ".style",
1653
- expected: "(string | undefined)",
1654
- value: input.style
1655
- }, errorFactory));
1656
- return ("object" === typeof input && null !== input || $guard(true, {
1657
- path: _path + "",
1658
- expected: "RenderQuery",
1659
- value: input
1660
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1661
- path: _path + "",
1662
- expected: "RenderQuery",
1663
- value: input
1664
- }, errorFactory);
1665
- })(input, "$input", true);
1666
- return input;
1667
- }; const stringify = input => {
1668
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io10(elem))) || "object" === typeof input.profile && null !== input.profile && $io10(input.profile))));
1669
- const $io2 = 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) && $io3(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) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io7(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) && $io9(input.transcribe));
1670
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1671
- const $io4 = input => Object.keys(input).every(key => {
1672
- const value = input[key];
1673
- if (undefined === value)
1674
- return true;
1675
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
1676
- });
1677
- const $io5 = 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) && $io6(input.styleOverrides));
1678
- const $io6 = 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);
1679
- const $io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io8(input.crop);
1680
- const $io8 = 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);
1681
- const $io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1682
- const $io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io14(input.subtitle)));
1683
- const $io11 = input => "string" === typeof input.engine;
1684
- const $io12 = input => "string" === typeof input.language;
1685
- const $io13 = input => undefined === input.pan || "string" === typeof input.pan;
1686
- const $io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1687
- const $string = __typia.json.createAssertStringify.string;
1688
- const $throws = __typia.json.createAssertStringify.throws;
1689
- const $tail = __typia.json.createAssertStringify.tail;
1690
- const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $so1(input.description) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)}}`;
1691
- const $so1 = input => `{${$tail(`${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? (() => {
1692
- if ("string" === typeof input.scene)
1693
- return $string(input.scene);
1694
- if (Array.isArray(input.scene))
1695
- return `[${input.scene.map(elem => (() => {
1696
- if ("string" === typeof elem)
1697
- return $string(elem);
1698
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1699
- return $so2(elem);
1700
- $throws({
1701
- expected: "(RenderSceneObject | string)",
1702
- value: elem
1703
- });
1704
- })()).join(",")}]`;
1705
- if ("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene))
1706
- return $so2(input.scene);
1707
- $throws({
1708
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1709
- value: input.scene
1710
- });
1711
- })() : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? (() => {
1712
- if ("string" === typeof input.profile)
1713
- return $string(input.profile);
1714
- if (Array.isArray(input.profile))
1715
- return `[${input.profile.map(elem => (() => {
1716
- if ("string" === typeof elem)
1717
- return $string(elem);
1718
- if ("object" === typeof elem && null !== elem)
1719
- return $so10(elem);
1720
- $throws({
1721
- expected: "(RenderProfileObject | string)",
1722
- value: elem
1723
- });
1724
- })()).join(",")}]`;
1725
- if ("object" === typeof input.profile && null !== input.profile)
1726
- return $so10(input.profile);
1727
- $throws({
1728
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1729
- value: input.profile
1730
- });
1731
- })() : undefined}`}`)}}`;
1732
- const $so2 = 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 ? $so3(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 ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so7(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 ? $so9(input.transcribe) : undefined}`}`)}}`;
1733
- const $so3 = 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}`}`)}}`;
1734
- const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1735
- return ""; return `${JSON.stringify(key)}:${$so5(value)}`; }).filter(str => "" !== str).join(",")}}`;
1736
- const $so5 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so6(input.styleOverrides) : undefined}`}`)}}`;
1737
- const $so6 = 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}`}`)}}`;
1738
- const $so7 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so8(input.crop) : undefined}`}`)}}`;
1739
- const $so8 = 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}`}`)}}`;
1740
- const $so9 = 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}`}`)}}`;
1741
- const $so10 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so13(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
1742
- if ("string" === typeof input.subtitle)
1743
- return $string(input.subtitle);
1744
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1745
- return $so14(input.subtitle);
1746
- $throws({
1747
- expected: "(SubtitleProfile | string | undefined)",
1748
- value: input.subtitle
1749
- });
1750
- })() : undefined},`}"format":${$string(input.format)}}`;
1751
- const $so13 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
1752
- const $so14 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1753
- return $so0(input);
1754
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};