@imferno/wasm 3.0.2-beta.f424a0b → 3.0.2-beta.fcba9fc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/codes.d.ts CHANGED
@@ -9,6 +9,9 @@ export declare const codes: {
9
9
  readonly ParseError: "ST377-1:2011:5/ParseError";
10
10
  readonly NoEssenceContainers: "ST377-1:2011:11/NoEssenceContainers";
11
11
  readonly OP1a: "ST377-1:2011:7/OP1a";
12
+ readonly NonHeaderFirstPartition: "ST377-1:2011:6.4/NonHeaderFirstPartition";
13
+ readonly HeaderPartitionOpen: "ST377-1:2011:8.3.3/HeaderPartitionOpen";
14
+ readonly MissingHeaderMetadata: "ST377-1:2011:8.3.3/MissingHeaderMetadata";
12
15
  };
13
16
  readonly ST2067_2_2020: {
14
17
  readonly AssetMap: "ST2067-2:2020:7/AssetMap";
@@ -22,6 +25,9 @@ export declare const codes: {
22
25
  readonly DuplicateUuid: "ST2067-2:2020:7/DuplicateUuid";
23
26
  readonly IoError: "IMF:General/IoError";
24
27
  readonly EssenceDescriptorList: "ST2067-2:2020:6.4.2/EssenceDescriptorList";
28
+ readonly PklUnknownNamespace: "ST2067-2:2020:9/PklUnknownNamespace";
29
+ readonly AssetMapHasNoPackingList: "ST429-9:2014:6.3/AssetMapHasNoPackingList";
30
+ readonly PklIdNotInAssetMap: "ST429-9:2014:6.3/PklIdNotInAssetMap";
25
31
  };
26
32
  readonly ST2067_2_2013_Core: {
27
33
  readonly ResourceListEmpty: "ST2067-2:2013:XSD/ResourceList-Empty";
@@ -175,22 +181,6 @@ export declare const codes: {
175
181
  readonly ContentVersionIdDuplicate: "ST2067-3:2016:6.1.9/ContentVersionIdDuplicate";
176
182
  readonly SegmentDurationIntegerEditUnits: "ST2067-3:2016:7.3/SegmentDurationIntegerEditUnits";
177
183
  };
178
- readonly ST2067_3_2020: {
179
- readonly ContentKindUnknown: "ST2067-3:2020:5.5.1.2/ContentKindUnknown";
180
- readonly SourceEncodingNoEssenceDescriptorList: "ST2067-3:2020:6.4.2/SourceEncodingNoEssenceDescriptorList";
181
- readonly SourceEncodingUnresolved: "ST2067-3:2020:6.4.2/SourceEncodingUnresolved";
182
- readonly EssenceDescriptorListEmpty: "ST2067-3:2020:6.4.2/EssenceDescriptorListEmpty";
183
- readonly ContentVersionListEmpty: "ST2067-3:2020:6.11/ContentVersionListEmpty";
184
- readonly ContentVersionIdInvalid: "ST2067-3:2020:6.11/ContentVersionIdInvalid";
185
- readonly ContentVersionLabelTextMissing: "ST2067-3:2020:6.11/ContentVersionLabelTextMissing";
186
- readonly LocaleLanguageTagInvalid: "ST2067-3:2020:6.12/LocaleLanguageTagInvalid";
187
- readonly TrackIdNotUnique: "ST2067-3:2020:7.3/TrackIdNotUnique";
188
- readonly MarkerOffsetOutOfRange: "ST2067-3:2020:7.4/MarkerOffsetOutOfRange";
189
- readonly MarkerLabelUnknown: "ST2067-3:2020:7.4/MarkerLabelUnknown";
190
- readonly SegmentDuration: "ST2067-3:2020:7.2.2/SegmentDuration";
191
- readonly ContentVersionIdDuplicate: "ST2067-3:2020:6.1.9/ContentVersionIdDuplicate";
192
- readonly SegmentDurationIntegerEditUnits: "ST2067-3:2020:7.3/SegmentDurationIntegerEditUnits";
193
- };
194
184
  readonly ST2067_9_2018: {
195
185
  readonly MalformedXml: "ST2067-9:2018:6.1/MalformedXml";
196
186
  readonly SidecarAssetReferencedByVirtualTrack: "ST2067-9:2018:5/SidecarAssetReferencedByVirtualTrack";
@@ -282,56 +272,65 @@ export declare const codes: {
282
272
  };
283
273
  readonly ST2067_201_2019: {
284
274
  readonly CodecForbidden: "ST2067-201:2019:5.9/CodecForbidden";
285
- readonly ElectrospatialFormulationForbidden: "ST2067-201:2019:5.9/ElectrospatialFormulationForbidden";
275
+ readonly ElectrospatialFormulationInvalid: "ST2067-201:2019:5.9/ElectrospatialFormulationInvalid";
286
276
  readonly QuantizationBitsMissing: "ST2067-201:2019:5.9/QuantizationBitsMissing";
287
277
  readonly QuantizationBitsInvalid: "ST2067-201:2019:5.9/QuantizationBitsInvalid";
288
- readonly ContainerFormatMissing: "ST2067-201:2019:5.3/ContainerFormatMissing";
289
- readonly EssenceContainerInvalid: "ST2067-201:2019:5.3/EssenceContainerInvalid";
278
+ readonly ContainerFormatMissing: "ST2067-201:2019:5.9/ContainerFormatMissing";
279
+ readonly EssenceContainerInvalid: "ST2067-201:2019:5.9/EssenceContainerInvalid";
290
280
  readonly AudioSamplingRateMissing: "ST2067-201:2019:5.9/AudioSamplingRateMissing";
291
281
  readonly AudioSamplingRateInvalid: "ST2067-201:2019:5.9/AudioSamplingRateInvalid";
292
282
  readonly SoundCompressionMissing: "ST2067-201:2019:5.9/SoundCompressionMissing";
293
283
  readonly SoundCompressionInvalid: "ST2067-201:2019:5.9/SoundCompressionInvalid";
294
284
  readonly ChannelCountNotZero: "ST2067-201:2019:5.9/ChannelCountNotZero";
295
- readonly SubDescriptorMissing: "ST2067-201:2019:5.9/SubDescriptorMissing";
296
- readonly MCATagSymbolMissing: "ST2067-201:2019:5.9/MCATagSymbolMissing";
297
- readonly MCATagSymbolInvalid: "ST2067-201:2019:5.9/MCATagSymbolInvalid";
298
- readonly MCATagNameMissing: "ST2067-201:2019:5.9/MCATagNameMissing";
299
- readonly MCATagNameInvalid: "ST2067-201:2019:5.9/MCATagNameInvalid";
300
- readonly MCALabelDictionaryIDMissing: "ST2067-201:2019:5.9/MCALabelDictionaryIDMissing";
301
- readonly MCALabelDictionaryIDInvalid: "ST2067-201:2019:5.9/MCALabelDictionaryIDInvalid";
302
- readonly MainAudioMissing: "ST2067-201:2019:6.2/MainAudioMissing";
285
+ readonly SubDescriptorMissing: "ST2067-201:2019:5.10.2/SubDescriptorMissing";
286
+ readonly MCATagSymbolMissing: "ST2067-201:2019:5.10.4/MCATagSymbolMissing";
287
+ readonly MCATagSymbolInvalid: "ST2067-201:2019:5.10.4/MCATagSymbolInvalid";
288
+ readonly MCATagNameMissing: "ST2067-201:2019:5.10.3/MCATagNameMissing";
289
+ readonly MCATagNameInvalid: "ST2067-201:2019:5.10.4/MCATagNameInvalid";
290
+ readonly MCALabelDictionaryIDMissing: "ST2067-201:2019:5.10.4/MCALabelDictionaryIDMissing";
291
+ readonly MCALabelDictionaryIDInvalid: "ST2067-201:2019:5.10.4/MCALabelDictionaryIDInvalid";
303
292
  readonly IABSequenceNoResources: "ST2067-201:2019:6.2/IABSequenceNoResources";
304
293
  readonly IABSequenceSourceEncodingInvalid: "ST2067-201:2019:6.2/IABSequenceSourceEncodingInvalid";
294
+ readonly ForbiddenMCASubDescriptor: "ST2067-201:2019:5.10.2/ForbiddenMCASubDescriptor";
295
+ readonly SubDescriptorDuplicate: "ST2067-201:2019:5.10.2/SubDescriptorDuplicate";
296
+ readonly MCAChannelIDForbidden: "ST2067-201:2019:C.2/MCAChannelIDForbidden";
297
+ readonly EditRateNotIntegerMultiple: "ST2067-201:2019:6.2/EditRateNotIntegerMultiple";
305
298
  };
306
299
  readonly ST2067_201_2021: {
307
300
  readonly CodecForbidden: "ST2067-201:2021:5.9/CodecForbidden";
308
- readonly ElectrospatialFormulationForbidden: "ST2067-201:2021:5.9/ElectrospatialFormulationForbidden";
301
+ readonly ElectrospatialFormulationInvalid: "ST2067-201:2021:5.9/ElectrospatialFormulationInvalid";
309
302
  readonly QuantizationBitsMissing: "ST2067-201:2021:5.9/QuantizationBitsMissing";
310
303
  readonly QuantizationBitsInvalid: "ST2067-201:2021:5.9/QuantizationBitsInvalid";
311
- readonly ContainerFormatMissing: "ST2067-201:2021:5.3/ContainerFormatMissing";
312
- readonly EssenceContainerInvalid: "ST2067-201:2021:5.3/EssenceContainerInvalid";
304
+ readonly ContainerFormatMissing: "ST2067-201:2021:5.9/ContainerFormatMissing";
305
+ readonly EssenceContainerInvalid: "ST2067-201:2021:5.9/EssenceContainerInvalid";
313
306
  readonly AudioSamplingRateMissing: "ST2067-201:2021:5.9/AudioSamplingRateMissing";
314
307
  readonly AudioSamplingRateInvalid: "ST2067-201:2021:5.9/AudioSamplingRateInvalid";
315
308
  readonly SoundCompressionMissing: "ST2067-201:2021:5.9/SoundCompressionMissing";
316
309
  readonly SoundCompressionInvalid: "ST2067-201:2021:5.9/SoundCompressionInvalid";
317
310
  readonly ChannelCountNotZero: "ST2067-201:2021:5.9/ChannelCountNotZero";
318
- readonly SubDescriptorMissing: "ST2067-201:2021:5.9/SubDescriptorMissing";
319
- readonly MCATagSymbolMissing: "ST2067-201:2021:5.9/MCATagSymbolMissing";
320
- readonly MCATagSymbolInvalid: "ST2067-201:2021:5.9/MCATagSymbolInvalid";
321
- readonly MCATagNameMissing: "ST2067-201:2021:5.9/MCATagNameMissing";
322
- readonly MCATagNameInvalid: "ST2067-201:2021:5.9/MCATagNameInvalid";
323
- readonly MCALabelDictionaryIDMissing: "ST2067-201:2021:5.9/MCALabelDictionaryIDMissing";
324
- readonly MCALabelDictionaryIDInvalid: "ST2067-201:2021:5.9/MCALabelDictionaryIDInvalid";
325
- readonly MainAudioMissing: "ST2067-201:2021:6.2/MainAudioMissing";
311
+ readonly SubDescriptorMissing: "ST2067-201:2021:5.10.2/SubDescriptorMissing";
312
+ readonly MCATagSymbolMissing: "ST2067-201:2021:5.10.4/MCATagSymbolMissing";
313
+ readonly MCATagSymbolInvalid: "ST2067-201:2021:5.10.4/MCATagSymbolInvalid";
314
+ readonly MCATagNameMissing: "ST2067-201:2021:5.10.3/MCATagNameMissing";
315
+ readonly MCATagNameInvalid: "ST2067-201:2021:5.10.4/MCATagNameInvalid";
316
+ readonly MCALabelDictionaryIDMissing: "ST2067-201:2021:5.10.4/MCALabelDictionaryIDMissing";
317
+ readonly MCALabelDictionaryIDInvalid: "ST2067-201:2021:5.10.4/MCALabelDictionaryIDInvalid";
326
318
  readonly IABSequenceNoResources: "ST2067-201:2021:6.2/IABSequenceNoResources";
327
319
  readonly IABSequenceSourceEncodingInvalid: "ST2067-201:2021:6.2/IABSequenceSourceEncodingInvalid";
320
+ readonly ForbiddenMCASubDescriptor: "ST2067-201:2021:5.10.2/ForbiddenMCASubDescriptor";
321
+ readonly SubDescriptorDuplicate: "ST2067-201:2021:5.10.2/SubDescriptorDuplicate";
322
+ readonly MCAChannelIDForbidden: "ST2067-201:2021:C.2/MCAChannelIDForbidden";
323
+ readonly EditRateNotIntegerMultiple: "ST2067-201:2021:6.2/EditRateNotIntegerMultiple";
328
324
  };
329
- readonly ST2067_202_2022: {
330
- readonly SubDescriptorMissing: "ST2067-202:2022:5/SubDescriptorMissing";
331
- readonly NamespaceUriMissing: "ST2067-202:2022:5/NamespaceUriMissing";
332
- readonly ISXDSequenceNoResources: "ST2067-202:2022:6/ISXDSequenceNoResources";
333
- readonly ISXDSequenceSourceEncodingInvalid: "ST2067-202:2022:6/ISXDSequenceSourceEncodingInvalid";
334
- readonly NamespaceUriMismatch: "ST2067-202:2022:6/NamespaceUriMismatch";
325
+ readonly ST2067_202_2023: {
326
+ readonly NamespaceUriMissing: "ST2067-202:2023:9.2/NamespaceUriMissing";
327
+ readonly ISXDSequenceNoResources: "ST2067-202:2023:6/ISXDSequenceNoResources";
328
+ readonly ISXDSequenceSourceEncodingInvalid: "ST2067-202:2023:6/ISXDSequenceSourceEncodingInvalid";
329
+ readonly NamespaceUriMismatch: "ST2067-202:2023:6/NamespaceUriMismatch";
330
+ readonly EditRateMismatch: "ST2067-202:2023:6/EditRateMismatch";
331
+ readonly ISXDVirtualTrackMissing: "ST2067-202:2023:6/ISXDVirtualTrackMissing";
332
+ readonly DataEssenceCodingMissing: "ST2067-202:2023:9.3/DataEssenceCodingMissing";
333
+ readonly DataEssenceCodingInvalid: "ST2067-202:2023:9.3/DataEssenceCodingInvalid";
335
334
  };
336
335
  readonly Imferno: {
337
336
  readonly UnreferencedAsset: "IMFERNO:Package/UnreferencedAsset";
package/codes.js CHANGED
@@ -9,6 +9,9 @@ export const codes = {
9
9
  ParseError: "ST377-1:2011:5/ParseError",
10
10
  NoEssenceContainers: "ST377-1:2011:11/NoEssenceContainers",
11
11
  OP1a: "ST377-1:2011:7/OP1a",
12
+ NonHeaderFirstPartition: "ST377-1:2011:6.4/NonHeaderFirstPartition",
13
+ HeaderPartitionOpen: "ST377-1:2011:8.3.3/HeaderPartitionOpen",
14
+ MissingHeaderMetadata: "ST377-1:2011:8.3.3/MissingHeaderMetadata",
12
15
  },
13
16
  ST2067_2_2020: {
14
17
  AssetMap: "ST2067-2:2020:7/AssetMap",
@@ -22,6 +25,9 @@ export const codes = {
22
25
  DuplicateUuid: "ST2067-2:2020:7/DuplicateUuid",
23
26
  IoError: "IMF:General/IoError",
24
27
  EssenceDescriptorList: "ST2067-2:2020:6.4.2/EssenceDescriptorList",
28
+ PklUnknownNamespace: "ST2067-2:2020:9/PklUnknownNamespace",
29
+ AssetMapHasNoPackingList: "ST429-9:2014:6.3/AssetMapHasNoPackingList",
30
+ PklIdNotInAssetMap: "ST429-9:2014:6.3/PklIdNotInAssetMap",
25
31
  },
26
32
  ST2067_2_2013_Core: {
27
33
  ResourceListEmpty: "ST2067-2:2013:XSD/ResourceList-Empty",
@@ -175,22 +181,6 @@ export const codes = {
175
181
  ContentVersionIdDuplicate: "ST2067-3:2016:6.1.9/ContentVersionIdDuplicate",
176
182
  SegmentDurationIntegerEditUnits: "ST2067-3:2016:7.3/SegmentDurationIntegerEditUnits",
177
183
  },
178
- ST2067_3_2020: {
179
- ContentKindUnknown: "ST2067-3:2020:5.5.1.2/ContentKindUnknown",
180
- SourceEncodingNoEssenceDescriptorList: "ST2067-3:2020:6.4.2/SourceEncodingNoEssenceDescriptorList",
181
- SourceEncodingUnresolved: "ST2067-3:2020:6.4.2/SourceEncodingUnresolved",
182
- EssenceDescriptorListEmpty: "ST2067-3:2020:6.4.2/EssenceDescriptorListEmpty",
183
- ContentVersionListEmpty: "ST2067-3:2020:6.11/ContentVersionListEmpty",
184
- ContentVersionIdInvalid: "ST2067-3:2020:6.11/ContentVersionIdInvalid",
185
- ContentVersionLabelTextMissing: "ST2067-3:2020:6.11/ContentVersionLabelTextMissing",
186
- LocaleLanguageTagInvalid: "ST2067-3:2020:6.12/LocaleLanguageTagInvalid",
187
- TrackIdNotUnique: "ST2067-3:2020:7.3/TrackIdNotUnique",
188
- MarkerOffsetOutOfRange: "ST2067-3:2020:7.4/MarkerOffsetOutOfRange",
189
- MarkerLabelUnknown: "ST2067-3:2020:7.4/MarkerLabelUnknown",
190
- SegmentDuration: "ST2067-3:2020:7.2.2/SegmentDuration",
191
- ContentVersionIdDuplicate: "ST2067-3:2020:6.1.9/ContentVersionIdDuplicate",
192
- SegmentDurationIntegerEditUnits: "ST2067-3:2020:7.3/SegmentDurationIntegerEditUnits",
193
- },
194
184
  ST2067_9_2018: {
195
185
  MalformedXml: "ST2067-9:2018:6.1/MalformedXml",
196
186
  SidecarAssetReferencedByVirtualTrack: "ST2067-9:2018:5/SidecarAssetReferencedByVirtualTrack",
@@ -282,56 +272,65 @@ export const codes = {
282
272
  },
283
273
  ST2067_201_2019: {
284
274
  CodecForbidden: "ST2067-201:2019:5.9/CodecForbidden",
285
- ElectrospatialFormulationForbidden: "ST2067-201:2019:5.9/ElectrospatialFormulationForbidden",
275
+ ElectrospatialFormulationInvalid: "ST2067-201:2019:5.9/ElectrospatialFormulationInvalid",
286
276
  QuantizationBitsMissing: "ST2067-201:2019:5.9/QuantizationBitsMissing",
287
277
  QuantizationBitsInvalid: "ST2067-201:2019:5.9/QuantizationBitsInvalid",
288
- ContainerFormatMissing: "ST2067-201:2019:5.3/ContainerFormatMissing",
289
- EssenceContainerInvalid: "ST2067-201:2019:5.3/EssenceContainerInvalid",
278
+ ContainerFormatMissing: "ST2067-201:2019:5.9/ContainerFormatMissing",
279
+ EssenceContainerInvalid: "ST2067-201:2019:5.9/EssenceContainerInvalid",
290
280
  AudioSamplingRateMissing: "ST2067-201:2019:5.9/AudioSamplingRateMissing",
291
281
  AudioSamplingRateInvalid: "ST2067-201:2019:5.9/AudioSamplingRateInvalid",
292
282
  SoundCompressionMissing: "ST2067-201:2019:5.9/SoundCompressionMissing",
293
283
  SoundCompressionInvalid: "ST2067-201:2019:5.9/SoundCompressionInvalid",
294
284
  ChannelCountNotZero: "ST2067-201:2019:5.9/ChannelCountNotZero",
295
- SubDescriptorMissing: "ST2067-201:2019:5.9/SubDescriptorMissing",
296
- MCATagSymbolMissing: "ST2067-201:2019:5.9/MCATagSymbolMissing",
297
- MCATagSymbolInvalid: "ST2067-201:2019:5.9/MCATagSymbolInvalid",
298
- MCATagNameMissing: "ST2067-201:2019:5.9/MCATagNameMissing",
299
- MCATagNameInvalid: "ST2067-201:2019:5.9/MCATagNameInvalid",
300
- MCALabelDictionaryIDMissing: "ST2067-201:2019:5.9/MCALabelDictionaryIDMissing",
301
- MCALabelDictionaryIDInvalid: "ST2067-201:2019:5.9/MCALabelDictionaryIDInvalid",
302
- MainAudioMissing: "ST2067-201:2019:6.2/MainAudioMissing",
285
+ SubDescriptorMissing: "ST2067-201:2019:5.10.2/SubDescriptorMissing",
286
+ MCATagSymbolMissing: "ST2067-201:2019:5.10.4/MCATagSymbolMissing",
287
+ MCATagSymbolInvalid: "ST2067-201:2019:5.10.4/MCATagSymbolInvalid",
288
+ MCATagNameMissing: "ST2067-201:2019:5.10.3/MCATagNameMissing",
289
+ MCATagNameInvalid: "ST2067-201:2019:5.10.4/MCATagNameInvalid",
290
+ MCALabelDictionaryIDMissing: "ST2067-201:2019:5.10.4/MCALabelDictionaryIDMissing",
291
+ MCALabelDictionaryIDInvalid: "ST2067-201:2019:5.10.4/MCALabelDictionaryIDInvalid",
303
292
  IABSequenceNoResources: "ST2067-201:2019:6.2/IABSequenceNoResources",
304
293
  IABSequenceSourceEncodingInvalid: "ST2067-201:2019:6.2/IABSequenceSourceEncodingInvalid",
294
+ ForbiddenMCASubDescriptor: "ST2067-201:2019:5.10.2/ForbiddenMCASubDescriptor",
295
+ SubDescriptorDuplicate: "ST2067-201:2019:5.10.2/SubDescriptorDuplicate",
296
+ MCAChannelIDForbidden: "ST2067-201:2019:C.2/MCAChannelIDForbidden",
297
+ EditRateNotIntegerMultiple: "ST2067-201:2019:6.2/EditRateNotIntegerMultiple",
305
298
  },
306
299
  ST2067_201_2021: {
307
300
  CodecForbidden: "ST2067-201:2021:5.9/CodecForbidden",
308
- ElectrospatialFormulationForbidden: "ST2067-201:2021:5.9/ElectrospatialFormulationForbidden",
301
+ ElectrospatialFormulationInvalid: "ST2067-201:2021:5.9/ElectrospatialFormulationInvalid",
309
302
  QuantizationBitsMissing: "ST2067-201:2021:5.9/QuantizationBitsMissing",
310
303
  QuantizationBitsInvalid: "ST2067-201:2021:5.9/QuantizationBitsInvalid",
311
- ContainerFormatMissing: "ST2067-201:2021:5.3/ContainerFormatMissing",
312
- EssenceContainerInvalid: "ST2067-201:2021:5.3/EssenceContainerInvalid",
304
+ ContainerFormatMissing: "ST2067-201:2021:5.9/ContainerFormatMissing",
305
+ EssenceContainerInvalid: "ST2067-201:2021:5.9/EssenceContainerInvalid",
313
306
  AudioSamplingRateMissing: "ST2067-201:2021:5.9/AudioSamplingRateMissing",
314
307
  AudioSamplingRateInvalid: "ST2067-201:2021:5.9/AudioSamplingRateInvalid",
315
308
  SoundCompressionMissing: "ST2067-201:2021:5.9/SoundCompressionMissing",
316
309
  SoundCompressionInvalid: "ST2067-201:2021:5.9/SoundCompressionInvalid",
317
310
  ChannelCountNotZero: "ST2067-201:2021:5.9/ChannelCountNotZero",
318
- SubDescriptorMissing: "ST2067-201:2021:5.9/SubDescriptorMissing",
319
- MCATagSymbolMissing: "ST2067-201:2021:5.9/MCATagSymbolMissing",
320
- MCATagSymbolInvalid: "ST2067-201:2021:5.9/MCATagSymbolInvalid",
321
- MCATagNameMissing: "ST2067-201:2021:5.9/MCATagNameMissing",
322
- MCATagNameInvalid: "ST2067-201:2021:5.9/MCATagNameInvalid",
323
- MCALabelDictionaryIDMissing: "ST2067-201:2021:5.9/MCALabelDictionaryIDMissing",
324
- MCALabelDictionaryIDInvalid: "ST2067-201:2021:5.9/MCALabelDictionaryIDInvalid",
325
- MainAudioMissing: "ST2067-201:2021:6.2/MainAudioMissing",
311
+ SubDescriptorMissing: "ST2067-201:2021:5.10.2/SubDescriptorMissing",
312
+ MCATagSymbolMissing: "ST2067-201:2021:5.10.4/MCATagSymbolMissing",
313
+ MCATagSymbolInvalid: "ST2067-201:2021:5.10.4/MCATagSymbolInvalid",
314
+ MCATagNameMissing: "ST2067-201:2021:5.10.3/MCATagNameMissing",
315
+ MCATagNameInvalid: "ST2067-201:2021:5.10.4/MCATagNameInvalid",
316
+ MCALabelDictionaryIDMissing: "ST2067-201:2021:5.10.4/MCALabelDictionaryIDMissing",
317
+ MCALabelDictionaryIDInvalid: "ST2067-201:2021:5.10.4/MCALabelDictionaryIDInvalid",
326
318
  IABSequenceNoResources: "ST2067-201:2021:6.2/IABSequenceNoResources",
327
319
  IABSequenceSourceEncodingInvalid: "ST2067-201:2021:6.2/IABSequenceSourceEncodingInvalid",
320
+ ForbiddenMCASubDescriptor: "ST2067-201:2021:5.10.2/ForbiddenMCASubDescriptor",
321
+ SubDescriptorDuplicate: "ST2067-201:2021:5.10.2/SubDescriptorDuplicate",
322
+ MCAChannelIDForbidden: "ST2067-201:2021:C.2/MCAChannelIDForbidden",
323
+ EditRateNotIntegerMultiple: "ST2067-201:2021:6.2/EditRateNotIntegerMultiple",
328
324
  },
329
- ST2067_202_2022: {
330
- SubDescriptorMissing: "ST2067-202:2022:5/SubDescriptorMissing",
331
- NamespaceUriMissing: "ST2067-202:2022:5/NamespaceUriMissing",
332
- ISXDSequenceNoResources: "ST2067-202:2022:6/ISXDSequenceNoResources",
333
- ISXDSequenceSourceEncodingInvalid: "ST2067-202:2022:6/ISXDSequenceSourceEncodingInvalid",
334
- NamespaceUriMismatch: "ST2067-202:2022:6/NamespaceUriMismatch",
325
+ ST2067_202_2023: {
326
+ NamespaceUriMissing: "ST2067-202:2023:9.2/NamespaceUriMissing",
327
+ ISXDSequenceNoResources: "ST2067-202:2023:6/ISXDSequenceNoResources",
328
+ ISXDSequenceSourceEncodingInvalid: "ST2067-202:2023:6/ISXDSequenceSourceEncodingInvalid",
329
+ NamespaceUriMismatch: "ST2067-202:2023:6/NamespaceUriMismatch",
330
+ EditRateMismatch: "ST2067-202:2023:6/EditRateMismatch",
331
+ ISXDVirtualTrackMissing: "ST2067-202:2023:6/ISXDVirtualTrackMissing",
332
+ DataEssenceCodingMissing: "ST2067-202:2023:9.3/DataEssenceCodingMissing",
333
+ DataEssenceCodingInvalid: "ST2067-202:2023:9.3/DataEssenceCodingInvalid",
335
334
  },
336
335
  Imferno: {
337
336
  UnreferencedAsset: "IMFERNO:Package/UnreferencedAsset",
package/imferno_wasm.d.ts CHANGED
@@ -541,11 +541,11 @@ export interface InitOutput {
541
541
  readonly validate: (a: any, b: any) => [number, number, number];
542
542
  readonly __wbindgen_malloc: (a: number, b: number) => number;
543
543
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
544
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
544
545
  readonly __wbindgen_exn_store: (a: number) => void;
545
546
  readonly __externref_table_alloc: () => number;
546
547
  readonly __wbindgen_externrefs: WebAssembly.Table;
547
548
  readonly __externref_table_dealloc: (a: number) => void;
548
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
549
549
  readonly __wbindgen_start: () => void;
550
550
  }
551
551
 
package/imferno_wasm.js CHANGED
@@ -113,11 +113,11 @@ export function validate(files, options) {
113
113
  function __wbg_get_imports() {
114
114
  const import0 = {
115
115
  __proto__: null,
116
- __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
116
+ __wbg_Error_208446807d0d1e30: function(arg0, arg1) {
117
117
  const ret = Error(getStringFromWasm0(arg0, arg1));
118
118
  return ret;
119
119
  },
120
- __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
120
+ __wbg_Number_ff192a72a0dcdf6d: function(arg0) {
121
121
  const ret = Number(arg0);
122
122
  return ret;
123
123
  },
@@ -125,114 +125,114 @@ function __wbg_get_imports() {
125
125
  const ret = String(arg1);
126
126
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
127
127
  const len1 = WASM_VECTOR_LEN;
128
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
129
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
128
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
129
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
130
130
  },
131
- __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
131
+ __wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
132
132
  const v = arg1;
133
133
  const ret = typeof(v) === 'bigint' ? v : undefined;
134
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
135
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
134
+ getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
135
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
136
136
  },
137
- __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
137
+ __wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
138
138
  const v = arg0;
139
139
  const ret = typeof(v) === 'boolean' ? v : undefined;
140
140
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
141
141
  },
142
- __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
142
+ __wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
143
143
  const ret = debugString(arg1);
144
144
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
145
145
  const len1 = WASM_VECTOR_LEN;
146
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
147
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
146
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
147
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
148
148
  },
149
- __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
149
+ __wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
150
150
  const ret = arg0 in arg1;
151
151
  return ret;
152
152
  },
153
- __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
153
+ __wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
154
154
  const ret = typeof(arg0) === 'bigint';
155
155
  return ret;
156
156
  },
157
- __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
157
+ __wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
158
158
  const ret = typeof(arg0) === 'function';
159
159
  return ret;
160
160
  },
161
- __wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
161
+ __wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
162
162
  const ret = arg0 === null;
163
163
  return ret;
164
164
  },
165
- __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
165
+ __wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
166
166
  const val = arg0;
167
167
  const ret = typeof(val) === 'object' && val !== null;
168
168
  return ret;
169
169
  },
170
- __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
170
+ __wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
171
171
  const ret = typeof(arg0) === 'string';
172
172
  return ret;
173
173
  },
174
- __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
174
+ __wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
175
175
  const ret = arg0 === undefined;
176
176
  return ret;
177
177
  },
178
- __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
178
+ __wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
179
179
  const ret = arg0 === arg1;
180
180
  return ret;
181
181
  },
182
- __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
182
+ __wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
183
183
  const ret = arg0 == arg1;
184
184
  return ret;
185
185
  },
186
- __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
186
+ __wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
187
187
  const obj = arg1;
188
188
  const ret = typeof(obj) === 'number' ? obj : undefined;
189
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
190
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
189
+ getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
190
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
191
191
  },
192
- __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
192
+ __wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
193
193
  const obj = arg1;
194
194
  const ret = typeof(obj) === 'string' ? obj : undefined;
195
195
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
196
196
  var len1 = WASM_VECTOR_LEN;
197
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
198
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
197
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
198
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
199
199
  },
200
- __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
200
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
201
201
  throw new Error(getStringFromWasm0(arg0, arg1));
202
202
  },
203
- __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
203
+ __wbg_call_40b008ba32f73991: function() { return handleError(function (arg0, arg1) {
204
204
  const ret = arg0.call(arg1);
205
205
  return ret;
206
206
  }, arguments); },
207
- __wbg_done_89b2b13e91a60321: function(arg0) {
207
+ __wbg_done_57e08d0be6e30c02: function(arg0) {
208
208
  const ret = arg0.done;
209
209
  return ret;
210
210
  },
211
- __wbg_entries_015dc610cd81ede0: function(arg0) {
211
+ __wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
212
212
  const ret = Object.entries(arg0);
213
213
  return ret;
214
214
  },
215
- __wbg_getTime_d6f070c088c9b5ed: function(arg0) {
215
+ __wbg_getTime_edc91481cbc4cd78: function(arg0) {
216
216
  const ret = arg0.getTime();
217
217
  return ret;
218
218
  },
219
- __wbg_get_507a50627bffa49b: function(arg0, arg1) {
220
- const ret = arg0[arg1 >>> 0];
221
- return ret;
222
- },
223
- __wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
219
+ __wbg_get_635eea311fa1a291: function() { return handleError(function (arg0, arg1) {
224
220
  const ret = Reflect.get(arg0, arg1);
225
221
  return ret;
226
222
  }, arguments); },
227
- __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
223
+ __wbg_get_d7176cfb76d71114: function(arg0, arg1) {
224
+ const ret = arg0[arg1 >>> 0];
225
+ return ret;
226
+ },
227
+ __wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
228
228
  const ret = arg0[arg1 >>> 0];
229
229
  return ret;
230
230
  },
231
- __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
231
+ __wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
232
232
  const ret = arg0[arg1];
233
233
  return ret;
234
234
  },
235
- __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
235
+ __wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
236
236
  let result;
237
237
  try {
238
238
  result = arg0 instanceof ArrayBuffer;
@@ -242,7 +242,7 @@ function __wbg_get_imports() {
242
242
  const ret = result;
243
243
  return ret;
244
244
  },
245
- __wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
245
+ __wbg_instanceof_Map_0b4fc8b62e73f163: function(arg0) {
246
246
  let result;
247
247
  try {
248
248
  result = arg0 instanceof Map;
@@ -252,7 +252,7 @@ function __wbg_get_imports() {
252
252
  const ret = result;
253
253
  return ret;
254
254
  },
255
- __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
255
+ __wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
256
256
  let result;
257
257
  try {
258
258
  result = arg0 instanceof Uint8Array;
@@ -262,102 +262,101 @@ function __wbg_get_imports() {
262
262
  const ret = result;
263
263
  return ret;
264
264
  },
265
- __wbg_isArray_0677c962b281d01a: function(arg0) {
265
+ __wbg_isArray_bcf1376d0d732d08: function(arg0) {
266
266
  const ret = Array.isArray(arg0);
267
267
  return ret;
268
268
  },
269
- __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
269
+ __wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
270
270
  const ret = Number.isSafeInteger(arg0);
271
271
  return ret;
272
272
  },
273
- __wbg_iterator_6f722e4a93058b71: function() {
273
+ __wbg_iterator_e4c5e8f68ada7b58: function() {
274
274
  const ret = Symbol.iterator;
275
275
  return ret;
276
276
  },
277
- __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
277
+ __wbg_length_186163212ffe79c3: function(arg0) {
278
278
  const ret = arg0.length;
279
279
  return ret;
280
280
  },
281
- __wbg_length_370319915dc99107: function(arg0) {
281
+ __wbg_length_b03a0fabb109b1e9: function(arg0) {
282
282
  const ret = arg0.length;
283
283
  return ret;
284
284
  },
285
- __wbg_log_9010caac6e5891c3: function(arg0, arg1) {
285
+ __wbg_log_aa187d5265a78e50: function(arg0, arg1) {
286
286
  console.log(getStringFromWasm0(arg0, arg1));
287
287
  },
288
- __wbg_new_0_3da9e97f24fc69be: function() {
288
+ __wbg_new_0_36d738a0c8cfac43: function() {
289
289
  const ret = new Date();
290
290
  return ret;
291
291
  },
292
- __wbg_new_32b398fb48b6d94a: function() {
293
- const ret = new Array();
292
+ __wbg_new_13de428334042d26: function(arg0) {
293
+ const ret = new Uint8Array(arg0);
294
294
  return ret;
295
295
  },
296
- __wbg_new_7796ffc7ed656783: function() {
297
- const ret = new Map();
296
+ __wbg_new_37eb45aaf5eeb820: function() {
297
+ const ret = new Array();
298
298
  return ret;
299
299
  },
300
- __wbg_new_cd45aabdf6073e84: function(arg0) {
301
- const ret = new Uint8Array(arg0);
300
+ __wbg_new_7075786089b89c5e: function() {
301
+ const ret = new Map();
302
302
  return ret;
303
303
  },
304
- __wbg_new_da52cf8fe3429cb2: function() {
304
+ __wbg_new_cd4348290afae586: function() {
305
305
  const ret = new Object();
306
306
  return ret;
307
307
  },
308
- __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
308
+ __wbg_next_178c1651c11432b3: function(arg0) {
309
309
  const ret = arg0.next;
310
310
  return ret;
311
311
  },
312
- __wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
312
+ __wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
313
313
  const ret = arg0.next();
314
314
  return ret;
315
315
  }, arguments); },
316
- __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
316
+ __wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
317
317
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
318
318
  },
319
- __wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
319
+ __wbg_set_8282f7e0d2d01336: function(arg0, arg1, arg2) {
320
320
  const ret = arg0.set(arg1, arg2);
321
321
  return ret;
322
322
  },
323
- __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
324
- arg0[arg1] = arg2;
325
- },
326
- __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
323
+ __wbg_set_d2d33b52458e984a: function(arg0, arg1, arg2) {
327
324
  arg0[arg1 >>> 0] = arg2;
328
325
  },
329
- __wbg_value_a5d5488a9589444a: function(arg0) {
326
+ __wbg_set_e4b9a833d288759a: function(arg0, arg1, arg2) {
327
+ arg0[arg1] = arg2;
328
+ },
329
+ __wbg_value_e0f328965e184931: function(arg0) {
330
330
  const ret = arg0.value;
331
331
  return ret;
332
332
  },
333
- __wbindgen_cast_0000000000000001: function(arg0) {
333
+ __wbindgen_generic_0000000000000001: function(arg0) {
334
334
  // Cast intrinsic for `F64 -> Externref`.
335
335
  const ret = arg0;
336
336
  return ret;
337
337
  },
338
- __wbindgen_cast_0000000000000002: function(arg0) {
338
+ __wbindgen_generic_0000000000000002: function(arg0) {
339
339
  // Cast intrinsic for `I64 -> Externref`.
340
340
  const ret = arg0;
341
341
  return ret;
342
342
  },
343
- __wbindgen_cast_0000000000000003: function(arg0, arg1) {
343
+ __wbindgen_generic_0000000000000003: function(arg0, arg1) {
344
344
  // Cast intrinsic for `Ref(String) -> Externref`.
345
345
  const ret = getStringFromWasm0(arg0, arg1);
346
346
  return ret;
347
347
  },
348
- __wbindgen_cast_0000000000000004: function(arg0) {
348
+ __wbindgen_generic_0000000000000004: function(arg0) {
349
349
  // Cast intrinsic for `U64 -> Externref`.
350
350
  const ret = BigInt.asUintN(64, arg0);
351
351
  return ret;
352
352
  },
353
353
  __wbindgen_init_externref_table: function() {
354
354
  const table = wasm.__wbindgen_externrefs;
355
- const offset = table.grow(4);
356
355
  table.set(0, undefined);
357
- table.set(offset + 0, undefined);
358
- table.set(offset + 1, null);
359
- table.set(offset + 2, true);
360
- table.set(offset + 3, false);
356
+ table.set(1024, undefined);
357
+ table.set(1025, null);
358
+ table.set(1026, true);
359
+ table.set(1027, false);
361
360
  },
362
361
  };
363
362
  return {
@@ -373,68 +372,61 @@ function addToExternrefTable0(obj) {
373
372
  }
374
373
 
375
374
  function debugString(val) {
376
- // primitive types
377
- const type = typeof val;
378
- if (type == 'number' || type == 'boolean' || val == null) {
379
- return `${val}`;
380
- }
381
- if (type == 'string') {
382
- return `"${val}"`;
383
- }
384
- if (type == 'symbol') {
385
- const description = val.description;
386
- if (description == null) {
387
- return 'Symbol';
388
- } else {
389
- return `Symbol(${description})`;
390
- }
391
- }
392
- if (type == 'function') {
393
- const name = val.name;
394
- if (typeof name == 'string' && name.length > 0) {
395
- return `Function(${name})`;
396
- } else {
397
- return 'Function';
398
- }
399
- }
400
- // objects
401
- if (Array.isArray(val)) {
402
- const length = val.length;
403
- let debug = '[';
404
- if (length > 0) {
405
- debug += debugString(val[0]);
406
- }
407
- for(let i = 1; i < length; i++) {
408
- debug += ', ' + debugString(val[i]);
409
- }
410
- debug += ']';
411
- return debug;
412
- }
413
- // Test for built-in
414
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
415
- let className;
416
- if (builtInMatches && builtInMatches.length > 1) {
417
- className = builtInMatches[1];
418
- } else {
419
- // Failed to match the standard '[object ClassName]'
420
- return toString.call(val);
421
- }
422
- if (className == 'Object') {
423
- // we're a user defined class or Object
424
- // JSON.stringify avoids problems with cycles, and is generally much
425
- // easier than looping through ownProperties of `val`.
426
- try {
427
- return 'Object(' + JSON.stringify(val) + ')';
428
- } catch (_) {
429
- return 'Object';
375
+ switch (typeof val) {
376
+ // primitive types
377
+ case 'number':
378
+ case 'boolean':
379
+ case 'undefined':
380
+ return `${val}`;
381
+ case 'string':
382
+ return JSON.stringify(val);
383
+ case 'bigint':
384
+ return `${val}n`;
385
+ case 'symbol':
386
+ return val.description !== undefined
387
+ ? `Symbol(${val.description})`
388
+ : 'Symbol';
389
+ case 'function':
390
+ return typeof val.name === 'string' && val.name !== ''
391
+ ? `Function(${val.name})`
392
+ : 'Function';
393
+ case 'object': {
394
+ if (val === null) {
395
+ return 'null';
396
+ }
397
+ // objects
398
+ if (Array.isArray(val)) {
399
+ return '[' + Array.from(val, debugString).join(', ') + ']';
400
+ }
401
+ // errors
402
+ if (val instanceof Error) {
403
+ return `${val.name}: ${val.message}\n${val.stack}`;
404
+ }
405
+
406
+ const toStringOutput = toString.call(val);
407
+ // Test for built-in
408
+ const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
409
+
410
+ // Failed to match the standard '[object ClassName]'
411
+ if (className === undefined) {
412
+ return toStringOutput;
413
+ }
414
+ if (className === 'Object') {
415
+ // we're a user defined class or Object
416
+ // JSON.stringify avoids problems with cycles, and is generally much
417
+ // easier than looping through ownProperties of `val`.
418
+ try {
419
+ return 'Object(' + JSON.stringify(val) + ')';
420
+ } catch (_) {
421
+ return 'Object';
422
+ }
423
+ }
424
+ // TODO we could test for more things here, like `Set`s and `Map`s.
425
+ return className;
430
426
  }
427
+ // Per MDN: 'This list of values is exhaustive.'
428
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
431
429
  }
432
- // errors
433
- if (val instanceof Error) {
434
- return `${val.name}: ${val.message}\n${val.stack}`;
435
- }
436
- // TODO we could test for more things here, like `Set`s and `Map`s.
437
- return className;
438
430
  }
439
431
 
440
432
  function getArrayU8FromWasm0(ptr, len) {
@@ -451,7 +443,8 @@ function getDataViewMemory0() {
451
443
  }
452
444
 
453
445
  function getStringFromWasm0(ptr, len) {
454
- return decodeText(ptr >>> 0, len);
446
+ ptr = ptr >>> 0;
447
+ return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
455
448
  }
456
449
 
457
450
  let cachedUint8ArrayMemory0 = null;
@@ -518,18 +511,18 @@ function takeFromExternrefTable0(idx) {
518
511
  return value;
519
512
  }
520
513
 
521
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
514
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
522
515
  cachedTextDecoder.decode();
523
516
  const MAX_SAFARI_DECODE_BYTES = 2146435072;
524
517
  let numBytesDecoded = 0;
525
- function decodeText(ptr, len) {
526
- numBytesDecoded += len;
518
+ function decodeText(bytes) {
519
+ numBytesDecoded += bytes.length;
527
520
  if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
528
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
521
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
529
522
  cachedTextDecoder.decode();
530
- numBytesDecoded = len;
523
+ numBytesDecoded = bytes.length;
531
524
  }
532
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
525
+ return cachedTextDecoder.decode(bytes);
533
526
  }
534
527
 
535
528
  const cachedTextEncoder = new TextEncoder();
@@ -560,11 +553,15 @@ function __wbg_finalize_init(instance, module) {
560
553
 
561
554
  async function __wbg_load(module, imports) {
562
555
  if (typeof Response === 'function' && module instanceof Response) {
556
+ if (!module.ok) {
557
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
558
+ }
559
+
563
560
  if (typeof WebAssembly.instantiateStreaming === 'function') {
564
561
  try {
565
562
  return await WebAssembly.instantiateStreaming(module, imports);
566
563
  } catch (e) {
567
- const validResponse = module.ok && expectedResponseType(module.type);
564
+ const validResponse = expectedResponseType(module.type);
568
565
 
569
566
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
570
567
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
@@ -613,9 +610,17 @@ function initSync(module) {
613
610
  return __wbg_finalize_init(instance, module);
614
611
  }
615
612
 
613
+ let __wbg_init_promise;
616
614
  async function __wbg_init(module_or_path) {
617
615
  if (wasm !== undefined) return wasm;
616
+ if (__wbg_init_promise === undefined) {
617
+ __wbg_init_promise = __wbg_init_once(module_or_path);
618
+ __wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
619
+ }
620
+ return __wbg_init_promise;
621
+ }
618
622
 
623
+ async function __wbg_init_once(module_or_path) {
619
624
 
620
625
  if (module_or_path !== undefined) {
621
626
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
Binary file
@@ -9,9 +9,9 @@ export const parsePackage: (a: any) => [number, number, number];
9
9
  export const validate: (a: any, b: any) => [number, number, number];
10
10
  export const __wbindgen_malloc: (a: number, b: number) => number;
11
11
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
12
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
12
13
  export const __wbindgen_exn_store: (a: number) => void;
13
14
  export const __externref_table_alloc: () => number;
14
15
  export const __wbindgen_externrefs: WebAssembly.Table;
15
16
  export const __externref_table_dealloc: (a: number) => void;
16
- export const __wbindgen_free: (a: number, b: number, c: number) => void;
17
17
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/wasm",
3
- "version": "3.0.2-beta.f424a0b",
3
+ "version": "3.0.2-beta.fcba9fc",
4
4
  "description": "Fast, type-safe SMPTE ST 2067 IMF parser for JavaScript and TypeScript",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",