@automovie/ingest 0.3.3 → 0.4.0

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 (225) hide show
  1. package/README.md +9 -29
  2. package/lib/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.d.ts +4 -1
  3. package/lib/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.js +4 -1
  4. package/lib/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.js.map +1 -1
  5. package/lib/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.d.ts +4 -1
  6. package/lib/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.js +4 -1
  7. package/lib/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.js.map +1 -1
  8. package/lib/adoptAutoMovieExternalMotion.d.ts +21 -11
  9. package/lib/adoptAutoMovieExternalMotion.js +26 -12
  10. package/lib/adoptAutoMovieExternalMotion.js.map +1 -1
  11. package/lib/audio/admitProductionTtsReceipt.d.ts +25 -0
  12. package/lib/audio/admitProductionTtsReceipt.js +166 -0
  13. package/lib/audio/admitProductionTtsReceipt.js.map +1 -0
  14. package/lib/audio/decodeProductionAudioAsset.d.ts +42 -14
  15. package/lib/audio/decodeProductionAudioAsset.js +53 -30
  16. package/lib/audio/decodeProductionAudioAsset.js.map +1 -1
  17. package/lib/audio/index.d.ts +1 -0
  18. package/lib/audio/index.js +1 -0
  19. package/lib/audio/index.js.map +1 -1
  20. package/lib/audio/resampleProductionAudio.d.ts +22 -0
  21. package/lib/audio/resampleProductionAudio.js +103 -0
  22. package/lib/audio/resampleProductionAudio.js.map +1 -0
  23. package/lib/decodeAutoMoviePpmImage.d.ts +10 -18
  24. package/lib/decodeAutoMoviePpmImage.js +10 -18
  25. package/lib/decodeAutoMoviePpmImage.js.map +1 -1
  26. package/lib/font/TrueTypeByteReader.d.ts +34 -0
  27. package/lib/font/TrueTypeByteReader.js +67 -0
  28. package/lib/font/TrueTypeByteReader.js.map +1 -0
  29. package/lib/font/decodeAutoMovieTrueTypeFont.d.ts +31 -0
  30. package/lib/font/decodeAutoMovieTrueTypeFont.js +168 -0
  31. package/lib/font/decodeAutoMovieTrueTypeFont.js.map +1 -0
  32. package/lib/font/index.d.ts +1 -0
  33. package/lib/font/index.js +18 -0
  34. package/lib/font/index.js.map +1 -0
  35. package/lib/font/readTrueTypeCharacterMap.d.ts +23 -0
  36. package/lib/font/readTrueTypeCharacterMap.js +98 -0
  37. package/lib/font/readTrueTypeCharacterMap.js.map +1 -0
  38. package/lib/font/readTrueTypeGlyphOutline.d.ts +45 -0
  39. package/lib/font/readTrueTypeGlyphOutline.js +275 -0
  40. package/lib/font/readTrueTypeGlyphOutline.js.map +1 -0
  41. package/lib/font/readTrueTypeKerning.d.ts +19 -0
  42. package/lib/font/readTrueTypeKerning.js +63 -0
  43. package/lib/font/readTrueTypeKerning.js.map +1 -0
  44. package/lib/font/readTrueTypeNames.d.ts +20 -0
  45. package/lib/font/readTrueTypeNames.js +75 -0
  46. package/lib/font/readTrueTypeNames.js.map +1 -0
  47. package/lib/humanoidSkeleton.d.ts +28 -15
  48. package/lib/humanoidSkeleton.js +28 -15
  49. package/lib/humanoidSkeleton.js.map +1 -1
  50. package/lib/index.d.ts +1 -0
  51. package/lib/index.js +1 -0
  52. package/lib/index.js.map +1 -1
  53. package/lib/ingestDocument.d.ts +25 -12
  54. package/lib/ingestDocument.js +25 -12
  55. package/lib/ingestDocument.js.map +1 -1
  56. package/lib/inspectAutoMovieExternalModelBytes.d.ts +24 -12
  57. package/lib/inspectAutoMovieExternalModelBytes.js +24 -12
  58. package/lib/inspectAutoMovieExternalModelBytes.js.map +1 -1
  59. package/lib/internal/IAccessorSource.d.ts +11 -8
  60. package/lib/internal/IExternalModelAccessorReader.d.ts +1 -8
  61. package/lib/internal/IHumanoidSlot.d.ts +9 -10
  62. package/lib/internal/IParsedContainer.d.ts +10 -8
  63. package/lib/internal/SHAPE_COMPONENTS.d.ts +4 -1
  64. package/lib/internal/SHAPE_COMPONENTS.js +4 -1
  65. package/lib/internal/SHAPE_COMPONENTS.js.map +1 -1
  66. package/lib/internal/accessorElementByteLength.d.ts +1 -11
  67. package/lib/internal/accessorElementByteLength.js +1 -11
  68. package/lib/internal/accessorElementByteLength.js.map +1 -1
  69. package/lib/internal/accessorReader.d.ts +5 -9
  70. package/lib/internal/accessorReader.js +5 -9
  71. package/lib/internal/accessorReader.js.map +1 -1
  72. package/lib/internal/accessorValues.d.ts +10 -10
  73. package/lib/internal/accessorValues.js +10 -10
  74. package/lib/internal/collectExternalResources.d.ts +1 -11
  75. package/lib/internal/collectExternalResources.js +1 -11
  76. package/lib/internal/collectExternalResources.js.map +1 -1
  77. package/lib/internal/compareCodeUnits.d.ts +1 -11
  78. package/lib/internal/compareCodeUnits.js +1 -11
  79. package/lib/internal/compareCodeUnits.js.map +1 -1
  80. package/lib/internal/composeLocalTransform.d.ts +13 -10
  81. package/lib/internal/composeLocalTransform.js +13 -10
  82. package/lib/internal/composeLocalTransform.js.map +1 -1
  83. package/lib/internal/decodeDataUri.d.ts +4 -9
  84. package/lib/internal/decodeDataUri.js +4 -9
  85. package/lib/internal/decodeDataUri.js.map +1 -1
  86. package/lib/internal/decodeGlb.d.ts +1 -11
  87. package/lib/internal/decodeGlb.js +1 -11
  88. package/lib/internal/decodeGlb.js.map +1 -1
  89. package/lib/internal/decodeJson.d.ts +1 -11
  90. package/lib/internal/decodeJson.js +10 -12
  91. package/lib/internal/decodeJson.js.map +1 -1
  92. package/lib/internal/fileExtension.d.ts +2 -9
  93. package/lib/internal/fileExtension.js +2 -9
  94. package/lib/internal/fileExtension.js.map +1 -1
  95. package/lib/internal/finiteTuple.d.ts +4 -9
  96. package/lib/internal/finiteTuple.js +4 -9
  97. package/lib/internal/finiteTuple.js.map +1 -1
  98. package/lib/internal/gltfHumanoidBones.d.ts +5 -9
  99. package/lib/internal/gltfHumanoidBones.js +5 -9
  100. package/lib/internal/gltfHumanoidBones.js.map +1 -1
  101. package/lib/internal/humanoidBoneOfName.d.ts +7 -9
  102. package/lib/internal/humanoidBoneOfName.js +7 -9
  103. package/lib/internal/humanoidBoneOfName.js.map +1 -1
  104. package/lib/internal/inspectExternalModelHierarchy.d.ts +1 -11
  105. package/lib/internal/inspectExternalModelHierarchy.js +1 -11
  106. package/lib/internal/inspectExternalModelHierarchy.js.map +1 -1
  107. package/lib/internal/inspectExternalMotion.d.ts +8 -9
  108. package/lib/internal/inspectExternalMotion.js +8 -9
  109. package/lib/internal/inspectExternalMotion.js.map +1 -1
  110. package/lib/internal/inspectExternalMotionNodes.d.ts +6 -9
  111. package/lib/internal/inspectExternalMotionNodes.js +6 -9
  112. package/lib/internal/inspectExternalMotionNodes.js.map +1 -1
  113. package/lib/internal/integerIndex.d.ts +1 -11
  114. package/lib/internal/integerIndex.js +1 -11
  115. package/lib/internal/integerIndex.js.map +1 -1
  116. package/lib/internal/integerIndices.d.ts +1 -11
  117. package/lib/internal/integerIndices.js +1 -11
  118. package/lib/internal/integerIndices.js.map +1 -1
  119. package/lib/internal/nonNegativeInteger.d.ts +1 -11
  120. package/lib/internal/nonNegativeInteger.js +1 -11
  121. package/lib/internal/nonNegativeInteger.js.map +1 -1
  122. package/lib/internal/object.d.ts +1 -11
  123. package/lib/internal/object.js +1 -11
  124. package/lib/internal/object.js.map +1 -1
  125. package/lib/internal/optionalArray.d.ts +1 -11
  126. package/lib/internal/optionalArray.js +1 -11
  127. package/lib/internal/optionalArray.js.map +1 -1
  128. package/lib/internal/optionalObject.d.ts +1 -11
  129. package/lib/internal/optionalObject.js +1 -11
  130. package/lib/internal/optionalObject.js.map +1 -1
  131. package/lib/internal/optionalStringArray.d.ts +1 -11
  132. package/lib/internal/optionalStringArray.js +1 -11
  133. package/lib/internal/optionalStringArray.js.map +1 -1
  134. package/lib/internal/positiveInteger.d.ts +1 -11
  135. package/lib/internal/positiveInteger.js +1 -11
  136. package/lib/internal/positiveInteger.js.map +1 -1
  137. package/lib/internal/readMotionAccessor.d.ts +5 -9
  138. package/lib/internal/readMotionAccessor.js +5 -9
  139. package/lib/internal/readMotionAccessor.js.map +1 -1
  140. package/lib/internal/requiredArray.d.ts +1 -11
  141. package/lib/internal/requiredArray.js +1 -11
  142. package/lib/internal/requiredArray.js.map +1 -1
  143. package/lib/internal/uniqueStrings.d.ts +1 -11
  144. package/lib/internal/uniqueStrings.js +1 -11
  145. package/lib/internal/uniqueStrings.js.map +1 -1
  146. package/lib/internal/validNodeIndex.d.ts +1 -11
  147. package/lib/internal/validNodeIndex.js +1 -11
  148. package/lib/internal/validNodeIndex.js.map +1 -1
  149. package/lib/internal/validateAccessorRange.d.ts +6 -9
  150. package/lib/internal/validateAccessorRange.js +6 -9
  151. package/lib/internal/validateAccessorRange.js.map +1 -1
  152. package/lib/internal/validateHumanoidSkinning.d.ts +8 -10
  153. package/lib/internal/validateHumanoidSkinning.js +8 -10
  154. package/lib/internal/validateHumanoidSkinning.js.map +1 -1
  155. package/lib/internal/validatePayloadClosure.d.ts +8 -9
  156. package/lib/internal/validatePayloadClosure.js +8 -9
  157. package/lib/internal/validatePayloadClosure.js.map +1 -1
  158. package/lib/internal/validateSparseAccessor.d.ts +6 -9
  159. package/lib/internal/validateSparseAccessor.js +6 -9
  160. package/lib/internal/validateSparseAccessor.js.map +1 -1
  161. package/lib/internal/vrmHumanoidBones.d.ts +7 -9
  162. package/lib/internal/vrmHumanoidBones.js +12 -10
  163. package/lib/internal/vrmHumanoidBones.js.map +1 -1
  164. package/lib/isAutoMovieExternalModelIngestProfile.d.ts +4 -10
  165. package/lib/isAutoMovieExternalModelIngestProfile.js +4 -10
  166. package/lib/isAutoMovieExternalModelIngestProfile.js.map +1 -1
  167. package/package.json +7 -7
  168. package/src/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.ts +4 -1
  169. package/src/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.ts +4 -1
  170. package/src/adoptAutoMovieExternalMotion.ts +26 -12
  171. package/src/audio/admitProductionTtsReceipt.ts +262 -0
  172. package/src/audio/decodeProductionAudioAsset.ts +54 -39
  173. package/src/audio/index.ts +1 -0
  174. package/src/audio/resampleProductionAudio.ts +114 -0
  175. package/src/decodeAutoMoviePpmImage.ts +10 -18
  176. package/src/font/TrueTypeByteReader.ts +80 -0
  177. package/src/font/decodeAutoMovieTrueTypeFont.ts +217 -0
  178. package/src/font/index.ts +1 -0
  179. package/src/font/readTrueTypeCharacterMap.ts +115 -0
  180. package/src/font/readTrueTypeGlyphOutline.ts +375 -0
  181. package/src/font/readTrueTypeKerning.ts +73 -0
  182. package/src/font/readTrueTypeNames.ts +74 -0
  183. package/src/humanoidSkeleton.ts +28 -15
  184. package/src/index.ts +1 -0
  185. package/src/ingestDocument.ts +25 -12
  186. package/src/inspectAutoMovieExternalModelBytes.ts +24 -12
  187. package/src/internal/IAccessorSource.ts +11 -8
  188. package/src/internal/IExternalModelAccessorReader.ts +1 -8
  189. package/src/internal/IHumanoidSlot.ts +9 -10
  190. package/src/internal/IParsedContainer.ts +10 -8
  191. package/src/internal/SHAPE_COMPONENTS.ts +4 -1
  192. package/src/internal/accessorElementByteLength.ts +1 -11
  193. package/src/internal/accessorReader.ts +5 -9
  194. package/src/internal/accessorValues.ts +10 -10
  195. package/src/internal/collectExternalResources.ts +1 -11
  196. package/src/internal/compareCodeUnits.ts +1 -11
  197. package/src/internal/composeLocalTransform.ts +13 -10
  198. package/src/internal/decodeDataUri.ts +4 -9
  199. package/src/internal/decodeGlb.ts +1 -11
  200. package/src/internal/decodeJson.ts +10 -12
  201. package/src/internal/fileExtension.ts +2 -9
  202. package/src/internal/finiteTuple.ts +4 -9
  203. package/src/internal/gltfHumanoidBones.ts +5 -9
  204. package/src/internal/humanoidBoneOfName.ts +7 -9
  205. package/src/internal/inspectExternalModelHierarchy.ts +1 -11
  206. package/src/internal/inspectExternalMotion.ts +8 -9
  207. package/src/internal/inspectExternalMotionNodes.ts +6 -9
  208. package/src/internal/integerIndex.ts +1 -11
  209. package/src/internal/integerIndices.ts +1 -11
  210. package/src/internal/nonNegativeInteger.ts +1 -11
  211. package/src/internal/object.ts +1 -11
  212. package/src/internal/optionalArray.ts +1 -11
  213. package/src/internal/optionalObject.ts +1 -11
  214. package/src/internal/optionalStringArray.ts +1 -11
  215. package/src/internal/positiveInteger.ts +1 -11
  216. package/src/internal/readMotionAccessor.ts +5 -9
  217. package/src/internal/requiredArray.ts +1 -11
  218. package/src/internal/uniqueStrings.ts +1 -11
  219. package/src/internal/validNodeIndex.ts +1 -11
  220. package/src/internal/validateAccessorRange.ts +6 -9
  221. package/src/internal/validateHumanoidSkinning.ts +8 -10
  222. package/src/internal/validatePayloadClosure.ts +8 -9
  223. package/src/internal/validateSparseAccessor.ts +6 -9
  224. package/src/internal/vrmHumanoidBones.ts +12 -10
  225. package/src/isAutoMovieExternalModelIngestProfile.ts +4 -10
@@ -6,15 +6,12 @@ const object_1 = require("./object");
6
6
  /**
7
7
  * Read glTF motion nodes as finite canonical local TRS records.
8
8
  *
9
- * The caller supplies a validated acyclic parent table. Omitted translation, rotation and scale use glTF defaults; present tuples must be finite, scales positive and quaternion magnitude within 1e-4 of one before normalization. Matrix transforms throw instead of being decomposed. Records use source-index ids, null for absent/empty names or root parents, and fresh transform objects.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation Three/four-component tuples use glTF defaults; positive scale and unit-quaternion tolerance precede rotation normalization.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Node interpretation owns stable index ids, parent ids and local transforms, separate from animation channel decoding.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Matrix transforms are refused rather than decomposed; rig names do not invent skeletal semantics.
14
- * @evidence contracts/development/common.md#meaningful-documentation Prose states defaults, matrix refusal, positive scale, quaternion normalization and absent name/parent meaning.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms N nodes require O(N) time and output records, with fixed-size tuple work per node.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The admitted parent table is reused from structural hierarchy checks; each node transform is interpreted once per inspection.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned node records own new fixed-size transforms; source JSON arrays and tuple temporaries are not retained.
9
+ * The caller supplies a validated acyclic parent table. Omitted translation,
10
+ * rotation and scale use glTF defaults; present tuples must be finite, scales
11
+ * positive and quaternion magnitude within 1e-4 of one before normalization.
12
+ * Matrix transforms throw instead of being decomposed. Records use source-index
13
+ * ids, null for absent/empty names or root parents, and fresh transform
14
+ * objects.
18
15
  */
19
16
  const inspectExternalMotionNodes = (values, parentByIndex) => values.map((value, index) => {
20
17
  const node = (0, object_1.object)(value, `nodes[${index}]`);
@@ -1 +1 @@
1
- {"version":3,"file":"inspectExternalMotionNodes.js","sourceRoot":"","sources":["../../src/internal/inspectExternalMotionNodes.ts"],"names":[],"mappings":";;;AAEA,+CAA4C;AAC5C,qCAAkC;AAElC;;;;;;;;;;;;GAYG;AACI,MAAM,0BAA0B,GAGS,CAC9C,MAAiB,EACjB,aAA8C,EACJ,EAAE,CAC5C,MAAM,CAAC,GAAG,CACR,CAAC,KAAc,EAAE,KAAa,EAA0C,EAAE;IACxE,MAAM,IAAI,GAA4B,IAAA,eAAM,EAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,CAAC;IACvE,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;QAC3B,MAAM,IAAI,KAAK,CACb,SAAS,KAAK,yHAAyH,CACxI,CAAC;IACJ,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;QAC1D,MAAM,IAAI,KAAK,CAAC,SAAS,KAAK,0BAA0B,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAa,IAAA,yBAAW,EACvC,IAAI,CAAC,WAAW,EAChB,SAAS,KAAK,eAAe,EAC7B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CACV,CAAC;IACF,MAAM,QAAQ,GA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CAAE,GAAG,SAAS;gBAC3B,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAE,GAAG,SAAS;gBAC3B,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAE,GAAG,SAAS;gBAC3B,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAE,GAAG,SAAS;aAC5B;YACD,KAAK,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE;SACpD;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AA/DS,QAAA,0BAA0B,GAA1B,0BAA0B,CA+DnC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Admit an optional or required index into an already declared inventory.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Safe integer identity and the half-open zero-to-length range establish resolvable references; omission is accepted only when optional.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One gate owns reference existence semantics while callers supply the appropriate inventory and field path.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Undefined required values, negatives, fractions and out-of-range indices throw instead of selecting a nearby element.
7
- * @evidence contracts/development/common.md#meaningful-documentation Prose defines required omission, zero-based range, safe precision and path-named failure.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms The helper performs constant-time predicates independent of the inventory population.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work All reference-array validation delegates this same gate without a separate range implementation.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No inventory is copied or retained, and no resource is acquired by index admission.
11
- */
1
+ /** Admit an optional or required index into an already declared inventory. */
12
2
  export declare const integerIndex: (value: unknown, length: number, path: string, required?: boolean) => void;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.integerIndex = void 0;
4
4
  const validNodeIndex_1 = require("./validNodeIndex");
5
- /**
6
- * Admit an optional or required index into an already declared inventory.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Safe integer identity and the half-open zero-to-length range establish resolvable references; omission is accepted only when optional.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One gate owns reference existence semantics while callers supply the appropriate inventory and field path.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Undefined required values, negatives, fractions and out-of-range indices throw instead of selecting a nearby element.
11
- * @evidence contracts/development/common.md#meaningful-documentation Prose defines required omission, zero-based range, safe precision and path-named failure.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms The helper performs constant-time predicates independent of the inventory population.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work All reference-array validation delegates this same gate without a separate range implementation.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No inventory is copied or retained, and no resource is acquired by index admission.
15
- */
5
+ /** Admit an optional or required index into an already declared inventory. */
16
6
  const integerIndex = (value, length, path, required = false) => {
17
7
  if (value === undefined && required === false)
18
8
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"integerIndex.js","sourceRoot":"","sources":["../../src/internal/integerIndex.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAElD;;;;;;;;;;GAUG;AACI,MAAM,YAAY,GAKb,CACV,KAAc,EACd,MAAc,EACd,IAAY,EACZ,QAAQ,GAAY,KAAK,EACnB,EAAE;IACR,IAAI,KAAK,KAAK,SAAS,IAAI,QAAQ,KAAK,KAAK;QAAE,OAAO;IACtD,IAAI,IAAA,+BAAc,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,KAAK;QACzC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,kDAAkD,CAAC,CAAC;AAC/E,CAAC,CAAC;AAdW,QAAA,YAAY,GAAZ,YAAY,CAcvB"}
1
+ {"version":3,"file":"integerIndex.js","sourceRoot":"","sources":["../../src/internal/integerIndex.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAElD,8EAA8E;AACvE,MAAM,YAAY,GAKb,CACV,KAAc,EACd,MAAc,EACd,IAAY,EACZ,QAAQ,GAAY,KAAK,EACnB,EAAE;IACR,IAAI,KAAK,KAAK,SAAS,IAAI,QAAQ,KAAK,KAAK;QAAE,OAAO;IACtD,IAAI,IAAA,+BAAc,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,KAAK;QACzC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,kDAAkD,CAAC,CAAC;AAC/E,CAAC,CAAC;AAdW,QAAA,YAAY,GAAZ,YAAY,CAcvB"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Validate every index in an optional glTF reference array.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Undefined allows omitted references; a supplied array delegates each element's safe in-range admission with an indexed path.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Array shape belongs to requiredArray and each index predicate to integerIndex, leaving this owner only enumeration.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed references are neither skipped nor coerced, so the first failing index remains observable.
7
- * @evidence contracts/development/common.md#meaningful-documentation Comments describe optional-array meaning, indexed failures and the predeclared inventory length.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms An N-reference array costs O(N) with no new result array and constant work per index.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each reference is checked once using the shared single-index admission rule.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The enumeration borrows its array for the call and retains no graph or payload resource.
11
- */
1
+ /** Validate every index in an optional glTF reference array. */
12
2
  export declare const integerIndices: (value: unknown, length: number, path: string) => void;
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.integerIndices = void 0;
4
4
  const integerIndex_1 = require("./integerIndex");
5
5
  const requiredArray_1 = require("./requiredArray");
6
- /**
7
- * Validate every index in an optional glTF reference array.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Undefined allows omitted references; a supplied array delegates each element's safe in-range admission with an indexed path.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Array shape belongs to requiredArray and each index predicate to integerIndex, leaving this owner only enumeration.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed references are neither skipped nor coerced, so the first failing index remains observable.
12
- * @evidence contracts/development/common.md#meaningful-documentation Comments describe optional-array meaning, indexed failures and the predeclared inventory length.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms An N-reference array costs O(N) with no new result array and constant work per index.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each reference is checked once using the shared single-index admission rule.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The enumeration borrows its array for the call and retains no graph or payload resource.
16
- */
6
+ /** Validate every index in an optional glTF reference array. */
17
7
  const integerIndices = (value, length, path) => {
18
8
  if (value === undefined)
19
9
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"integerIndices.js","sourceRoot":"","sources":["../../src/internal/integerIndices.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACI,MAAM,cAAc,GAIf,CAAC,KAAc,EAAE,MAAc,EAAE,IAAY,EAAQ,EAAE;IACjE,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO;IAChC,IAAA,6BAAa,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,KAAa,EAAQ,EAAE,CACzE,IAAA,2BAAY,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE,IAAI,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,cAAc,GAAd,cAAc,CASzB"}
1
+ {"version":3,"file":"integerIndices.js","sourceRoot":"","sources":["../../src/internal/integerIndices.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,mDAAgD;AAEhD,gEAAgE;AACzD,MAAM,cAAc,GAIf,CAAC,KAAc,EAAE,MAAc,EAAE,IAAY,EAAQ,EAAE;IACjE,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO;IAChC,IAAA,6BAAa,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,KAAa,EAAQ,EAAE,CACzE,IAAA,2BAAY,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE,IAAI,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,cAAc,GAAd,cAAc,CASzB"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Require a safe nonnegative glTF byte offset.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Number type, safe-integer identity and nonnegative sign protect subsequent declared-range arithmetic.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One shared scalar rule serves buffer/accessor offsets without embedding range ownership.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Fractions, negative offsets and unsafe integers throw rather than being truncated or clamped.
7
- * @evidence contracts/development/common.md#meaningful-documentation Prose states zero allowance, integer precision requirement, path diagnostic and unchanged input.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Three scalar checks require constant time without payload allocation or byte traversal.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work All offset owners reuse this gate; final offset-plus-length bounds remain with their range validators.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No input record or offset cache survives this pure admission call.
11
- */
1
+ /** Require a safe nonnegative glTF byte offset. */
12
2
  export declare const nonNegativeInteger: (value: unknown, path: string) => void;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nonNegativeInteger = void 0;
4
- /**
5
- * Require a safe nonnegative glTF byte offset.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Number type, safe-integer identity and nonnegative sign protect subsequent declared-range arithmetic.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One shared scalar rule serves buffer/accessor offsets without embedding range ownership.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Fractions, negative offsets and unsafe integers throw rather than being truncated or clamped.
10
- * @evidence contracts/development/common.md#meaningful-documentation Prose states zero allowance, integer precision requirement, path diagnostic and unchanged input.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Three scalar checks require constant time without payload allocation or byte traversal.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work All offset owners reuse this gate; final offset-plus-length bounds remain with their range validators.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No input record or offset cache survives this pure admission call.
14
- */
4
+ /** Require a safe nonnegative glTF byte offset. */
15
5
  const nonNegativeInteger = (value, path) => {
16
6
  if (typeof value !== "number" ||
17
7
  Number.isSafeInteger(value) === false ||
@@ -1 +1 @@
1
- {"version":3,"file":"nonNegativeInteger.js","sourceRoot":"","sources":["../../src/internal/nonNegativeInteger.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,kBAAkB,GAA2C,CACxE,KAAc,EACd,IAAY,EACN,EAAE;IACR,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;QACrC,KAAK,GAAG,CAAC;QAET,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,uCAAuC,CAAC,CAAC;AACpE,CAAC,CAAC;AAVW,QAAA,kBAAkB,GAAlB,kBAAkB,CAU7B"}
1
+ {"version":3,"file":"nonNegativeInteger.js","sourceRoot":"","sources":["../../src/internal/nonNegativeInteger.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AAC5C,MAAM,kBAAkB,GAA2C,CACxE,KAAc,EACd,IAAY,EACN,EAAE;IACR,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;QACrC,KAAK,GAAG,CAAC;QAET,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,uCAAuC,CAAC,CAAC;AACpE,CAAC,CAAC;AAVW,QAAA,kBAAkB,GAAlB,kBAAkB,CAU7B"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Require a non-null non-array JSON record at its owning path.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Runtime type and null/array exclusions establish an object shape before fields are read.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One shared JSON record gate keeps identical error semantics across structural, payload and profile consumers.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No value is cast into a usable record until the object predicate succeeds, and malformed inputs are not repaired.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies accepted shape, path-named failure and returned borrowed identity.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Object shape admission uses constant-time predicates rather than copying or traversing properties.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Every optional-object path delegates this same gate for present values.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The helper returns the existing object and retains no metadata, payload or resource state.
11
- */
1
+ /** Require a non-null non-array JSON record at its owning path. */
12
2
  export declare const object: (value: unknown, path: string) => Record<string, unknown>;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.object = void 0;
4
- /**
5
- * Require a non-null non-array JSON record at its owning path.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Runtime type and null/array exclusions establish an object shape before fields are read.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One shared JSON record gate keeps identical error semantics across structural, payload and profile consumers.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No value is cast into a usable record until the object predicate succeeds, and malformed inputs are not repaired.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies accepted shape, path-named failure and returned borrowed identity.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Object shape admission uses constant-time predicates rather than copying or traversing properties.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Every optional-object path delegates this same gate for present values.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The helper returns the existing object and retains no metadata, payload or resource state.
14
- */
4
+ /** Require a non-null non-array JSON record at its owning path. */
15
5
  const object = (value, path) => {
16
6
  if (value === null || typeof value !== "object" || Array.isArray(value))
17
7
  throw new Error(`${path} must be an object.`);
@@ -1 +1 @@
1
- {"version":3,"file":"object.js","sourceRoot":"","sources":["../../src/internal/object.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,MAAM,GAGY,CAC7B,KAAc,EACd,IAAY,EACa,EAAE;IAC3B,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrE,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IAChD,OAAO,KAAgC,CAAC;AAC1C,CAAC,CAAC;AAVW,QAAA,MAAM,GAAN,MAAM,CAUjB"}
1
+ {"version":3,"file":"object.js","sourceRoot":"","sources":["../../src/internal/object.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AAC5D,MAAM,MAAM,GAGY,CAC7B,KAAc,EACd,IAAY,EACa,EAAE;IAC3B,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrE,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IAChD,OAAO,KAAgC,CAAC;AAC1C,CAAC,CAAC;AAVW,QAAA,MAAM,GAAN,MAAM,CAUjB"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Read an absent optional JSON array as an empty inventory.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Undefined alone produces an empty array; supplied values must pass the common Array.isArray gate.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper owns omission while requiredArray owns shape admission and named-path diagnostics.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Null, strings and array-like objects are refused rather than being treated as missing inventories.
7
- * @evidence contracts/development/common.md#meaningful-documentation Prose identifies the undefined case, unchanged supplied arrays and malformed-value refusal.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One omission check and constant-time array identity test run without scanning elements.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same required-array operation is reused for every present optional inventory.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only omitted input creates a new empty array; valid supplied arrays remain borrowed and unretained.
11
- */
1
+ /** Read an absent optional JSON array as an empty inventory. */
12
2
  export declare const optionalArray: (value: unknown, path: string) => unknown[];
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.optionalArray = void 0;
4
4
  const requiredArray_1 = require("./requiredArray");
5
- /**
6
- * Read an absent optional JSON array as an empty inventory.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Undefined alone produces an empty array; supplied values must pass the common Array.isArray gate.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper owns omission while requiredArray owns shape admission and named-path diagnostics.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Null, strings and array-like objects are refused rather than being treated as missing inventories.
11
- * @evidence contracts/development/common.md#meaningful-documentation Prose identifies the undefined case, unchanged supplied arrays and malformed-value refusal.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms One omission check and constant-time array identity test run without scanning elements.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same required-array operation is reused for every present optional inventory.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only omitted input creates a new empty array; valid supplied arrays remain borrowed and unretained.
15
- */
5
+ /** Read an absent optional JSON array as an empty inventory. */
16
6
  const optionalArray = (value, path) => (value === undefined ? [] : (0, requiredArray_1.requiredArray)(value, path));
17
7
  exports.optionalArray = optionalArray;
18
8
  //# sourceMappingURL=optionalArray.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"optionalArray.js","sourceRoot":"","sources":["../../src/internal/optionalArray.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACI,MAAM,aAAa,GAAgD,CACxE,KAAc,EACd,IAAY,EACD,EAAE,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAA,6BAAa,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAH3D,QAAA,aAAa,GAAb,aAAa,CAG8C"}
1
+ {"version":3,"file":"optionalArray.js","sourceRoot":"","sources":["../../src/internal/optionalArray.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,gEAAgE;AACzD,MAAM,aAAa,GAAgD,CACxE,KAAc,EACd,IAAY,EACD,EAAE,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAA,6BAAa,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAH3D,QAAA,aAAa,GAAb,aAAa,CAG8C"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Read an absent optional JSON object as an empty record.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Undefined alone means omitted; a supplied value must pass the shared non-null non-array object gate.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This wrapper owns omission semantics while object identity and path diagnostics stay in the required-object helper.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Null or arrays do not silently become empty optional objects, preserving malformed input distinctions.
7
- * @evidence contracts/development/common.md#meaningful-documentation Comments state undefined-only omission and borrowed identity for supplied valid records.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One omission test and at most one object gate require constant time without property scans.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Required and optional records share the same object admission predicate instead of separate coercion logic.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Omission allocates one empty record; supplied records are borrowed with no retained handle or cache.
11
- */
1
+ /** Read an absent optional JSON object as an empty record. */
12
2
  export declare const optionalObject: (value: unknown, path: string) => Record<string, unknown>;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.optionalObject = void 0;
4
4
  const object_1 = require("./object");
5
- /**
6
- * Read an absent optional JSON object as an empty record.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Undefined alone means omitted; a supplied value must pass the shared non-null non-array object gate.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This wrapper owns omission semantics while object identity and path diagnostics stay in the required-object helper.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Null or arrays do not silently become empty optional objects, preserving malformed input distinctions.
11
- * @evidence contracts/development/common.md#meaningful-documentation Comments state undefined-only omission and borrowed identity for supplied valid records.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms One omission test and at most one object gate require constant time without property scans.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Required and optional records share the same object admission predicate instead of separate coercion logic.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Omission allocates one empty record; supplied records are borrowed with no retained handle or cache.
15
- */
5
+ /** Read an absent optional JSON object as an empty record. */
16
6
  const optionalObject = (value, path) => (value === undefined ? {} : (0, object_1.object)(value, path));
17
7
  exports.optionalObject = optionalObject;
18
8
  //# sourceMappingURL=optionalObject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"optionalObject.js","sourceRoot":"","sources":["../../src/internal/optionalObject.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC;;;;;;;;;;GAUG;AACI,MAAM,cAAc,GAGI,CAC7B,KAAc,EACd,IAAY,EACa,EAAE,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAA,eAAM,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AANlE,QAAA,cAAc,GAAd,cAAc,CAMoD"}
1
+ {"version":3,"file":"optionalObject.js","sourceRoot":"","sources":["../../src/internal/optionalObject.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,8DAA8D;AACvD,MAAM,cAAc,GAGI,CAC7B,KAAc,EACd,IAAY,EACa,EAAE,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAA,eAAM,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AANlE,QAAA,cAAc,GAAd,cAAc,CAMoD"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Read an omitted or nonblank-string glTF extension inventory.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Omission produces an empty array; supplied arrays must contain only nonblank strings with path/index diagnostics.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Optional-array identity is delegated and this owner adds extension-name element admission.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Names are not trimmed or case-folded, preserving exact identifiers after nonblank validation.
7
- * @evidence contracts/development/common.md#meaningful-documentation The description explains omission, exact spelling preservation and indexed error paths.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in element count plus trim scans of string lengths, with one returned array.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each name is checked once for this inventory; exact duplicate removal belongs to the downstream canonical inventory.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string array survives; original arrays and validation metadata are not retained.
11
- */
1
+ /** Read an omitted or nonblank-string glTF extension inventory. */
12
2
  export declare const optionalStringArray: (value: unknown, path: string) => string[];
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.optionalStringArray = void 0;
4
4
  const optionalArray_1 = require("./optionalArray");
5
- /**
6
- * Read an omitted or nonblank-string glTF extension inventory.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Omission produces an empty array; supplied arrays must contain only nonblank strings with path/index diagnostics.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Optional-array identity is delegated and this owner adds extension-name element admission.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Names are not trimmed or case-folded, preserving exact identifiers after nonblank validation.
11
- * @evidence contracts/development/common.md#meaningful-documentation The description explains omission, exact spelling preservation and indexed error paths.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in element count plus trim scans of string lengths, with one returned array.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each name is checked once for this inventory; exact duplicate removal belongs to the downstream canonical inventory.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string array survives; original arrays and validation metadata are not retained.
15
- */
5
+ /** Read an omitted or nonblank-string glTF extension inventory. */
16
6
  const optionalStringArray = (value, path) => (0, optionalArray_1.optionalArray)(value, path).map((entry, index) => {
17
7
  if (typeof entry !== "string" || entry.trim().length === 0)
18
8
  throw new Error(`${path}[${index}] must be a non-blank string.`);
@@ -1 +1 @@
1
- {"version":3,"file":"optionalStringArray.js","sourceRoot":"","sources":["../../src/internal/optionalStringArray.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACI,MAAM,mBAAmB,GAA+C,CAC7E,KAAc,EACd,IAAY,EACF,EAAE,CACZ,IAAA,6BAAa,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAc,EAAE,KAAa,EAAU,EAAE;IACvE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,IAAI,KAAK,+BAA+B,CAAC,CAAC;IACnE,OAAO,KAAK,CAAC;AACf,CAAC,CAAC,CAAC;AARQ,QAAA,mBAAmB,GAAnB,mBAAmB,CAQ3B"}
1
+ {"version":3,"file":"optionalStringArray.js","sourceRoot":"","sources":["../../src/internal/optionalStringArray.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,mEAAmE;AAC5D,MAAM,mBAAmB,GAA+C,CAC7E,KAAc,EACd,IAAY,EACF,EAAE,CACZ,IAAA,6BAAa,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAc,EAAE,KAAa,EAAU,EAAE;IACvE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,IAAI,KAAK,+BAA+B,CAAC,CAAC;IACnE,OAAO,KAAK,CAAC;AACf,CAAC,CAAC,CAAC;AARQ,QAAA,mBAAmB,GAAnB,mBAAmB,CAQ3B"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Require a positive safe-integer glTF count or declared byte length.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Type, safe-integer and strict-positive checks reject nonnumeric, fractional, zero and unsafe values before range arithmetic.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The scalar gate is shared by buffer lengths, view lengths and accessor counts.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A count is not rounded, clamped or silently replaced with a default value.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies safe-integer positivity, named-path errors and unchanged caller input.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Three scalar predicates require constant time without metadata traversal or allocation.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated schema owners use the same positive-count predicate; no value admission cache is retained.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no metadata and allocates only an error when refusing a value.
11
- */
1
+ /** Require a positive safe-integer glTF count or declared byte length. */
12
2
  export declare const positiveInteger: (value: unknown, path: string) => void;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.positiveInteger = void 0;
4
- /**
5
- * Require a positive safe-integer glTF count or declared byte length.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Type, safe-integer and strict-positive checks reject nonnumeric, fractional, zero and unsafe values before range arithmetic.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The scalar gate is shared by buffer lengths, view lengths and accessor counts.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A count is not rounded, clamped or silently replaced with a default value.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies safe-integer positivity, named-path errors and unchanged caller input.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Three scalar predicates require constant time without metadata traversal or allocation.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated schema owners use the same positive-count predicate; no value admission cache is retained.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no metadata and allocates only an error when refusing a value.
14
- */
4
+ /** Require a positive safe-integer glTF count or declared byte length. */
15
5
  const positiveInteger = (value, path) => {
16
6
  if (typeof value !== "number" ||
17
7
  Number.isSafeInteger(value) === false ||
@@ -1 +1 @@
1
- {"version":3,"file":"positiveInteger.js","sourceRoot":"","sources":["../../src/internal/positiveInteger.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,eAAe,GAA2C,CACrE,KAAc,EACd,IAAY,EACN,EAAE;IACR,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;QACrC,KAAK,IAAI,CAAC;QAEV,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,mCAAmC,CAAC,CAAC;AAChE,CAAC,CAAC;AAVW,QAAA,eAAe,GAAf,eAAe,CAU1B"}
1
+ {"version":3,"file":"positiveInteger.js","sourceRoot":"","sources":["../../src/internal/positiveInteger.ts"],"names":[],"mappings":";;;AAAA,0EAA0E;AACnE,MAAM,eAAe,GAA2C,CACrE,KAAc,EACd,IAAY,EACN,EAAE;IACR,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;QACrC,KAAK,IAAI,CAAC;QAEV,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,mCAAmC,CAAC,CAAC;AAChE,CAAC,CAAC;AAVW,QAAA,eAAe,GAAf,eAAe,CAU1B"}
@@ -2,14 +2,10 @@ import type { IAccessorSource } from "./IAccessorSource";
2
2
  /**
3
3
  * Read a finite non-sparse FLOAT accessor into caller-owned motion values.
4
4
  *
5
- * The source inventories and byte ranges are already admitted. The requested SCALAR, VEC3 or VEC4 shape must match an accessor with a buffer view, FLOAT components and no sparse overrides. Every component is copied in element order and checked finite; a mismatch or non-finite value throws with the supplied path.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Shape and FLOAT storage are checked before stride-aware component reads; every copied numeric value must be finite.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Motion-specific shape admission stays here while shared reader code owns buffer view, stride and little-endian decoding.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Sparse or normalized integer motion data is not coerced into the profile's exact FLOAT interpretation.
10
- * @evidence contracts/development/common.md#meaningful-documentation Comments state source admission premises, permitted shapes, finite-value refusal and flat element/component order.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Count times shape width drives time and output space; one reader and DataView serve the entire accessor copy.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The inspector caches this complete decoded accessor by index and expected shape within one immutable input revision.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The output array belongs to its caller; the reader's borrowed payload reference ends when decoding completes.
5
+ * The source inventories and byte ranges are already admitted. The requested
6
+ * SCALAR, VEC3 or VEC4 shape must match an accessor with a buffer view, FLOAT
7
+ * components and no sparse overrides. Every component is copied in element
8
+ * order and checked finite; a mismatch or non-finite value throws with the
9
+ * supplied path.
14
10
  */
15
11
  export declare const readMotionAccessor: (source: IAccessorSource, accessorIndex: number, expectedType: "SCALAR" | "VEC3" | "VEC4", path: string) => number[];
@@ -7,15 +7,11 @@ const object_1 = require("./object");
7
7
  /**
8
8
  * Read a finite non-sparse FLOAT accessor into caller-owned motion values.
9
9
  *
10
- * The source inventories and byte ranges are already admitted. The requested SCALAR, VEC3 or VEC4 shape must match an accessor with a buffer view, FLOAT components and no sparse overrides. Every component is copied in element order and checked finite; a mismatch or non-finite value throws with the supplied path.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation Shape and FLOAT storage are checked before stride-aware component reads; every copied numeric value must be finite.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Motion-specific shape admission stays here while shared reader code owns buffer view, stride and little-endian decoding.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Sparse or normalized integer motion data is not coerced into the profile's exact FLOAT interpretation.
15
- * @evidence contracts/development/common.md#meaningful-documentation Comments state source admission premises, permitted shapes, finite-value refusal and flat element/component order.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Count times shape width drives time and output space; one reader and DataView serve the entire accessor copy.
17
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The inspector caches this complete decoded accessor by index and expected shape within one immutable input revision.
18
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The output array belongs to its caller; the reader's borrowed payload reference ends when decoding completes.
10
+ * The source inventories and byte ranges are already admitted. The requested
11
+ * SCALAR, VEC3 or VEC4 shape must match an accessor with a buffer view, FLOAT
12
+ * components and no sparse overrides. Every component is copied in element
13
+ * order and checked finite; a mismatch or non-finite value throws with the
14
+ * supplied path.
19
15
  */
20
16
  const readMotionAccessor = (source, accessorIndex, expectedType, path) => {
21
17
  const accessor = (0, object_1.object)(source.accessors[accessorIndex], `accessors[${accessorIndex}]`);
@@ -1 +1 @@
1
- {"version":3,"file":"readMotionAccessor.js","sourceRoot":"","sources":["../../src/internal/readMotionAccessor.ts"],"names":[],"mappings":";;;AAEA,yDAAsD;AACtD,qDAAkD;AAClD,qCAAkC;AAElC;;;;;;;;;;;;GAYG;AACI,MAAM,kBAAkB,GAKf,CACd,MAAuB,EACvB,aAAqB,EACrB,YAAwC,EACxC,IAAY,EACF,EAAE;IACZ,MAAM,QAAQ,GAA4B,IAAA,eAAM,EAC9C,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,EAC/B,aAAa,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wC7B"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Require an actual JSON array at a named external-document path.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Array.isArray admits only array values; rejected inputs report their owning JSON path.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One shape gate centralizes array identity for structural, motion and skin inspection.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Objects, null and array-looking values are refused rather than coerced into synthetic inventories.
7
- * @evidence contracts/development/common.md#meaningful-documentation Prose states input identity, path-named failure and that admitted arrays are borrowed unchanged.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One Array.isArray check is constant-time without scanning or copying elements.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work All optional-array handling delegates this same identity check when a value is present.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The helper allocates no collection and returns the caller's existing array reference.
11
- */
1
+ /** Require an actual JSON array at a named external-document path. */
12
2
  export declare const requiredArray: (value: unknown, path: string) => unknown[];
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requiredArray = void 0;
4
- /**
5
- * Require an actual JSON array at a named external-document path.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Array.isArray admits only array values; rejected inputs report their owning JSON path.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One shape gate centralizes array identity for structural, motion and skin inspection.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Objects, null and array-looking values are refused rather than coerced into synthetic inventories.
10
- * @evidence contracts/development/common.md#meaningful-documentation Prose states input identity, path-named failure and that admitted arrays are borrowed unchanged.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms One Array.isArray check is constant-time without scanning or copying elements.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work All optional-array handling delegates this same identity check when a value is present.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The helper allocates no collection and returns the caller's existing array reference.
14
- */
4
+ /** Require an actual JSON array at a named external-document path. */
15
5
  const requiredArray = (value, path) => {
16
6
  if (Array.isArray(value) === false)
17
7
  throw new Error(`${path} must be an array.`);
@@ -1 +1 @@
1
- {"version":3,"file":"requiredArray.js","sourceRoot":"","sources":["../../src/internal/requiredArray.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,aAAa,GAAgD,CACxE,KAAc,EACd,IAAY,EACD,EAAE;IACb,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK;QAChC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,oBAAoB,CAAC,CAAC;IAC/C,OAAO,KAAkB,CAAC;AAC5B,CAAC,CAAC;AAPW,QAAA,aAAa,GAAb,aAAa,CAOxB"}
1
+ {"version":3,"file":"requiredArray.js","sourceRoot":"","sources":["../../src/internal/requiredArray.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AAC/D,MAAM,aAAa,GAAgD,CACxE,KAAc,EACd,IAAY,EACD,EAAE;IACb,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK;QAChC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,oBAAoB,CAAC,CAAC;IAC/C,OAAO,KAAkB,CAAC;AAC5B,CAAC,CAAC;AAPW,QAAA,aAAa,GAAb,aAAa,CAOxB"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Return distinct strings in deterministic JavaScript code-unit order.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation A Set preserves exact string equality before the shared comparator imposes canonical ordering.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Deduplication and ordering form one inventory operation used by the external-extension report.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Case, whitespace and Unicode normalization are preserved rather than merging near-match extension identities.
7
- * @evidence contracts/development/common.md#meaningful-documentation The description states exact equality, code-unit ordering and caller ownership of the result array.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms N inputs cause N expected Set operations over exact strings; U unique values need O(U log U) comparisons, each scanning the compared shared prefix, plus text-dependent string identity/hash work and O(U) collection space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work A single Set performs deduplication before sorting; mutable input arrays prevent safe retained identity caching.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One temporary Set and returned U-element array are allocated; no input collection is retained after return.
11
- */
1
+ /** Return distinct strings in deterministic JavaScript code-unit order. */
12
2
  export declare const uniqueStrings: (values: string[]) => string[];
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uniqueStrings = void 0;
4
4
  const compareCodeUnits_1 = require("./compareCodeUnits");
5
- /**
6
- * Return distinct strings in deterministic JavaScript code-unit order.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation A Set preserves exact string equality before the shared comparator imposes canonical ordering.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Deduplication and ordering form one inventory operation used by the external-extension report.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Case, whitespace and Unicode normalization are preserved rather than merging near-match extension identities.
11
- * @evidence contracts/development/common.md#meaningful-documentation The description states exact equality, code-unit ordering and caller ownership of the result array.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms N inputs cause N expected Set operations over exact strings; U unique values need O(U log U) comparisons, each scanning the compared shared prefix, plus text-dependent string identity/hash work and O(U) collection space.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work A single Set performs deduplication before sorting; mutable input arrays prevent safe retained identity caching.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One temporary Set and returned U-element array are allocated; no input collection is retained after return.
15
- */
5
+ /** Return distinct strings in deterministic JavaScript code-unit order. */
16
6
  const uniqueStrings = (values) => [...new Set(values)].sort(compareCodeUnits_1.compareCodeUnits);
17
7
  exports.uniqueStrings = uniqueStrings;
18
8
  //# sourceMappingURL=uniqueStrings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uniqueStrings.js","sourceRoot":"","sources":["../../src/internal/uniqueStrings.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAEtD;;;;;;;;;;GAUG;AACI,MAAM,aAAa,GAAmC,CAC3D,MAAgB,EACN,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAS,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,mCAAgB,CAAC,CAAC;AAFtD,QAAA,aAAa,GAAb,aAAa,CAEyC"}
1
+ {"version":3,"file":"uniqueStrings.js","sourceRoot":"","sources":["../../src/internal/uniqueStrings.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAEtD,2EAA2E;AACpE,MAAM,aAAa,GAAmC,CAC3D,MAAgB,EACN,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAS,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,mCAAgB,CAAC,CAAC;AAFtD,QAAA,aAAa,GAAb,aAAa,CAEyC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Recognize a safe integer inside a zero-based inventory.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Number type, safe-integer identity and half-open bounds determine resolvable node or array references.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The boolean predicate separates recognition from integerIndex's field-specific throwing behavior.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Nonnumeric, negative, fractional and unsafe values remain false without coercion or fallback.
7
- * @evidence contracts/development/common.md#meaningful-documentation Prose states accepted bounds, safe precision and the nonthrowing recognition role.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Four scalar predicates cost constant time independent of inventory size.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Throwing index admission and VRM mapping reuse the same recognition semantics.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no inventory references and acquires no resource.
11
- */
1
+ /** Recognize a safe integer inside a zero-based inventory. */
12
2
  export declare const validNodeIndex: (value: unknown, length: number) => boolean;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validNodeIndex = void 0;
4
- /**
5
- * Recognize a safe integer inside a zero-based inventory.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Number type, safe-integer identity and half-open bounds determine resolvable node or array references.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The boolean predicate separates recognition from integerIndex's field-specific throwing behavior.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Nonnumeric, negative, fractional and unsafe values remain false without coercion or fallback.
10
- * @evidence contracts/development/common.md#meaningful-documentation Prose states accepted bounds, safe precision and the nonthrowing recognition role.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Four scalar predicates cost constant time independent of inventory size.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Throwing index admission and VRM mapping reuse the same recognition semantics.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains no inventory references and acquires no resource.
14
- */
4
+ /** Recognize a safe integer inside a zero-based inventory. */
15
5
  const validNodeIndex = (value, length) => typeof value === "number" &&
16
6
  Number.isSafeInteger(value) &&
17
7
  value >= 0 &&
@@ -1 +1 @@
1
- {"version":3,"file":"validNodeIndex.js","sourceRoot":"","sources":["../../src/internal/validNodeIndex.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,cAAc,GAAgD,CACzE,KAAc,EACd,MAAc,EACL,EAAE,CACX,OAAO,KAAK,KAAK,QAAQ;IACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;IAC3B,KAAK,IAAI,CAAC;IACV,KAAK,GAAG,MAAM,CAAC;AAPJ,QAAA,cAAc,GAAd,cAAc,CAOV"}
1
+ {"version":3,"file":"validNodeIndex.js","sourceRoot":"","sources":["../../src/internal/validNodeIndex.ts"],"names":[],"mappings":";;;AAAA,8DAA8D;AACvD,MAAM,cAAc,GAAgD,CACzE,KAAc,EACd,MAAc,EACL,EAAE,CACX,OAAO,KAAK,KAAK,QAAQ;IACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;IAC3B,KAAK,IAAI,CAAC;IACV,KAAK,GAAG,MAAM,CAAC;AAPJ,QAAA,cAAc,GAAd,cAAc,CAOV"}