@ifc-lite/export 5.0.0 → 7.0.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 (298) hide show
  1. package/README.md +42 -20
  2. package/dist/anonymize-placement.d.ts.map +1 -1
  3. package/dist/anonymize-placement.js +2 -2
  4. package/dist/anonymize-placement.js.map +1 -1
  5. package/dist/anonymize-types.d.ts +2 -0
  6. package/dist/anonymize-types.d.ts.map +1 -1
  7. package/dist/declared-property-type.d.ts +2 -110
  8. package/dist/declared-property-type.d.ts.map +1 -1
  9. package/dist/declared-property-type.js +15 -0
  10. package/dist/declared-property-type.js.map +1 -1
  11. package/dist/energy-artifact.d.ts +6 -0
  12. package/dist/energy-artifact.d.ts.map +1 -0
  13. package/dist/energy-artifact.js +33 -0
  14. package/dist/energy-artifact.js.map +1 -0
  15. package/dist/entity-iteration.d.ts +1 -1
  16. package/dist/entity-iteration.d.ts.map +1 -1
  17. package/dist/entity-iteration.js.map +1 -1
  18. package/dist/generated/ifc2x3-typed-properties.d.ts +11 -0
  19. package/dist/generated/ifc2x3-typed-properties.d.ts.map +1 -0
  20. package/dist/generated/ifc2x3-typed-properties.js +49 -0
  21. package/dist/generated/ifc2x3-typed-properties.js.map +1 -0
  22. package/dist/generated/ifc4-required-slots.d.ts +4 -1
  23. package/dist/generated/ifc4-required-slots.d.ts.map +1 -1
  24. package/dist/generated/ifc4-required-slots.js +704 -0
  25. package/dist/generated/ifc4-required-slots.js.map +1 -1
  26. package/dist/geometry-diagnostics.d.ts +14 -0
  27. package/dist/geometry-diagnostics.d.ts.map +1 -0
  28. package/dist/geometry-diagnostics.js +29 -0
  29. package/dist/geometry-diagnostics.js.map +1 -0
  30. package/dist/index.d.ts +5 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +7 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/merged-exporter.d.ts +1 -4
  35. package/dist/merged-exporter.d.ts.map +1 -1
  36. package/dist/merged-exporter.js +99 -81
  37. package/dist/merged-exporter.js.map +1 -1
  38. package/dist/merged-guid.d.ts +5 -7
  39. package/dist/merged-guid.d.ts.map +1 -1
  40. package/dist/merged-guid.js +37 -42
  41. package/dist/merged-guid.js.map +1 -1
  42. package/dist/merged-header.d.ts +7 -0
  43. package/dist/merged-header.d.ts.map +1 -1
  44. package/dist/merged-header.js +14 -0
  45. package/dist/merged-header.js.map +1 -1
  46. package/dist/merged-inherited-units.d.ts +8 -0
  47. package/dist/merged-inherited-units.d.ts.map +1 -0
  48. package/dist/merged-inherited-units.js +117 -0
  49. package/dist/merged-inherited-units.js.map +1 -0
  50. package/dist/merged-inverse-claims.d.ts +5 -6
  51. package/dist/merged-inverse-claims.d.ts.map +1 -1
  52. package/dist/merged-inverse-claims.js +32 -12
  53. package/dist/merged-inverse-claims.js.map +1 -1
  54. package/dist/merged-planner-guids.d.ts +1 -0
  55. package/dist/merged-planner-guids.d.ts.map +1 -1
  56. package/dist/merged-planner-guids.js +5 -6
  57. package/dist/merged-planner-guids.js.map +1 -1
  58. package/dist/merged-profile-units.d.ts +9 -0
  59. package/dist/merged-profile-units.d.ts.map +1 -0
  60. package/dist/merged-profile-units.js +44 -0
  61. package/dist/merged-profile-units.js.map +1 -0
  62. package/dist/merged-remap.d.ts +1 -1
  63. package/dist/merged-remap.d.ts.map +1 -1
  64. package/dist/merged-remap.js +5 -1
  65. package/dist/merged-remap.js.map +1 -1
  66. package/dist/related-entities.d.ts.map +1 -1
  67. package/dist/related-entities.js +11 -9
  68. package/dist/related-entities.js.map +1 -1
  69. package/dist/rust-artifact.d.ts +4 -0
  70. package/dist/rust-artifact.d.ts.map +1 -0
  71. package/dist/rust-artifact.js +15 -0
  72. package/dist/rust-artifact.js.map +1 -0
  73. package/dist/schema-calendar-date-values.d.ts +16 -0
  74. package/dist/schema-calendar-date-values.d.ts.map +1 -0
  75. package/dist/schema-calendar-date-values.js +107 -0
  76. package/dist/schema-calendar-date-values.js.map +1 -0
  77. package/dist/schema-calendar-dates.d.ts +26 -0
  78. package/dist/schema-calendar-dates.d.ts.map +1 -0
  79. package/dist/schema-calendar-dates.js +226 -0
  80. package/dist/schema-calendar-dates.js.map +1 -0
  81. package/dist/schema-conversion-loss-description.d.ts +3 -0
  82. package/dist/schema-conversion-loss-description.d.ts.map +1 -0
  83. package/dist/schema-conversion-loss-description.js +26 -0
  84. package/dist/schema-conversion-loss-description.js.map +1 -0
  85. package/dist/schema-conversion-loss-report.d.ts +7 -12
  86. package/dist/schema-conversion-loss-report.d.ts.map +1 -1
  87. package/dist/schema-conversion-loss-report.js +98 -76
  88. package/dist/schema-conversion-loss-report.js.map +1 -1
  89. package/dist/schema-conversion-loss-varying.d.ts +11 -0
  90. package/dist/schema-conversion-loss-varying.d.ts.map +1 -0
  91. package/dist/schema-conversion-loss-varying.js +44 -0
  92. package/dist/schema-conversion-loss-varying.js.map +1 -0
  93. package/dist/schema-converter-attr-maps.d.ts +18 -5
  94. package/dist/schema-converter-attr-maps.d.ts.map +1 -1
  95. package/dist/schema-converter-attr-maps.js +59 -13
  96. package/dist/schema-converter-attr-maps.js.map +1 -1
  97. package/dist/schema-converter-attr-remap.d.ts +2 -2
  98. package/dist/schema-converter-attr-remap.d.ts.map +1 -1
  99. package/dist/schema-converter-attr-remap.js +4 -4
  100. package/dist/schema-converter-attr-remap.js.map +1 -1
  101. package/dist/schema-converter-document-links.d.ts +1 -1
  102. package/dist/schema-converter-document-links.d.ts.map +1 -1
  103. package/dist/schema-converter-document-links.js +2 -2
  104. package/dist/schema-converter-document-links.js.map +1 -1
  105. package/dist/schema-converter-durations.d.ts +6 -0
  106. package/dist/schema-converter-durations.d.ts.map +1 -0
  107. package/dist/schema-converter-durations.js +42 -0
  108. package/dist/schema-converter-durations.js.map +1 -0
  109. package/dist/schema-converter-enums.d.ts +11 -1
  110. package/dist/schema-converter-enums.d.ts.map +1 -1
  111. package/dist/schema-converter-enums.js +36 -10
  112. package/dist/schema-converter-enums.js.map +1 -1
  113. package/dist/schema-converter-ifc2x3-slots.d.ts +1 -1
  114. package/dist/schema-converter-ifc2x3-slots.d.ts.map +1 -1
  115. package/dist/schema-converter-ifc2x3-slots.js +6 -5
  116. package/dist/schema-converter-ifc2x3-slots.js.map +1 -1
  117. package/dist/schema-converter-ifc4-slots.d.ts +10 -5
  118. package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
  119. package/dist/schema-converter-ifc4-slots.js +17 -20
  120. package/dist/schema-converter-ifc4-slots.js.map +1 -1
  121. package/dist/schema-converter-ifc4x3-upgrade.d.ts +6 -0
  122. package/dist/schema-converter-ifc4x3-upgrade.d.ts.map +1 -0
  123. package/dist/schema-converter-ifc4x3-upgrade.js +48 -0
  124. package/dist/schema-converter-ifc4x3-upgrade.js.map +1 -0
  125. package/dist/schema-converter-material-referent.d.ts +58 -0
  126. package/dist/schema-converter-material-referent.d.ts.map +1 -0
  127. package/dist/schema-converter-material-referent.js +202 -0
  128. package/dist/schema-converter-material-referent.js.map +1 -0
  129. package/dist/schema-converter-owner-history.d.ts +1 -1
  130. package/dist/schema-converter-owner-history.d.ts.map +1 -1
  131. package/dist/schema-converter-owner-history.js +4 -3
  132. package/dist/schema-converter-owner-history.js.map +1 -1
  133. package/dist/schema-converter-product-proxy.d.ts +0 -23
  134. package/dist/schema-converter-product-proxy.d.ts.map +1 -1
  135. package/dist/schema-converter-product-proxy.js +2 -1
  136. package/dist/schema-converter-product-proxy.js.map +1 -1
  137. package/dist/schema-converter-space-boundary.d.ts +47 -0
  138. package/dist/schema-converter-space-boundary.d.ts.map +1 -0
  139. package/dist/schema-converter-space-boundary.js +108 -0
  140. package/dist/schema-converter-space-boundary.js.map +1 -0
  141. package/dist/schema-converter-step-finish.d.ts +4 -0
  142. package/dist/schema-converter-step-finish.d.ts.map +1 -0
  143. package/dist/schema-converter-step-finish.js +28 -0
  144. package/dist/schema-converter-step-finish.js.map +1 -0
  145. package/dist/schema-converter-structural-axes.d.ts +1 -1
  146. package/dist/schema-converter-structural-axes.d.ts.map +1 -1
  147. package/dist/schema-converter-structural-axes.js +2 -2
  148. package/dist/schema-converter-structural-axes.js.map +1 -1
  149. package/dist/schema-converter-structural-carriers.d.ts +2 -0
  150. package/dist/schema-converter-structural-carriers.d.ts.map +1 -1
  151. package/dist/schema-converter-structural-carriers.js +6 -0
  152. package/dist/schema-converter-structural-carriers.js.map +1 -1
  153. package/dist/schema-converter-structural-diagnostics.d.ts +13 -0
  154. package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -1
  155. package/dist/schema-converter-structural-diagnostics.js +37 -4
  156. package/dist/schema-converter-structural-diagnostics.js.map +1 -1
  157. package/dist/schema-converter-structural-source.d.ts +10 -0
  158. package/dist/schema-converter-structural-source.d.ts.map +1 -1
  159. package/dist/schema-converter-structural-source.js +16 -6
  160. package/dist/schema-converter-structural-source.js.map +1 -1
  161. package/dist/schema-converter-structural-varying.d.ts +15 -2
  162. package/dist/schema-converter-structural-varying.d.ts.map +1 -1
  163. package/dist/schema-converter-structural-varying.js +51 -21
  164. package/dist/schema-converter-structural-varying.js.map +1 -1
  165. package/dist/schema-converter-structural.d.ts +3 -0
  166. package/dist/schema-converter-structural.d.ts.map +1 -1
  167. package/dist/schema-converter-structural.js +13 -5
  168. package/dist/schema-converter-structural.js.map +1 -1
  169. package/dist/schema-converter-typed-properties.d.ts +30 -0
  170. package/dist/schema-converter-typed-properties.d.ts.map +1 -0
  171. package/dist/schema-converter-typed-properties.js +172 -0
  172. package/dist/schema-converter-typed-properties.js.map +1 -0
  173. package/dist/schema-converter-unrooted-upgrade.d.ts +31 -0
  174. package/dist/schema-converter-unrooted-upgrade.d.ts.map +1 -0
  175. package/dist/schema-converter-unrooted-upgrade.js +278 -0
  176. package/dist/schema-converter-unrooted-upgrade.js.map +1 -0
  177. package/dist/schema-converter-userdefined-label.d.ts +1 -1
  178. package/dist/schema-converter-userdefined-label.d.ts.map +1 -1
  179. package/dist/schema-converter-userdefined-label.js +7 -6
  180. package/dist/schema-converter-userdefined-label.js.map +1 -1
  181. package/dist/schema-converter-value-forms.d.ts +32 -1
  182. package/dist/schema-converter-value-forms.d.ts.map +1 -1
  183. package/dist/schema-converter-value-forms.js +73 -23
  184. package/dist/schema-converter-value-forms.js.map +1 -1
  185. package/dist/schema-converter.d.ts +8 -12
  186. package/dist/schema-converter.d.ts.map +1 -1
  187. package/dist/schema-converter.js +61 -58
  188. package/dist/schema-converter.js.map +1 -1
  189. package/dist/schema-ifc2x3-placements.d.ts.map +1 -1
  190. package/dist/schema-ifc2x3-placements.js +20 -31
  191. package/dist/schema-ifc2x3-placements.js.map +1 -1
  192. package/dist/schema-ifc2x3-records.d.ts.map +1 -1
  193. package/dist/schema-ifc2x3-records.js +3 -2
  194. package/dist/schema-ifc2x3-records.js.map +1 -1
  195. package/dist/schema-ifc2x3-style-assignments.d.ts +4 -0
  196. package/dist/schema-ifc2x3-style-assignments.d.ts.map +1 -0
  197. package/dist/schema-ifc2x3-style-assignments.js +33 -0
  198. package/dist/schema-ifc2x3-style-assignments.js.map +1 -0
  199. package/dist/schema-project-time-unit.d.ts +8 -0
  200. package/dist/schema-project-time-unit.d.ts.map +1 -0
  201. package/dist/schema-project-time-unit.js +123 -0
  202. package/dist/schema-project-time-unit.js.map +1 -0
  203. package/dist/schema-structural-varying-constant.d.ts +16 -0
  204. package/dist/schema-structural-varying-constant.d.ts.map +1 -0
  205. package/dist/schema-structural-varying-constant.js +36 -0
  206. package/dist/schema-structural-varying-constant.js.map +1 -0
  207. package/dist/schema-structural-varying-effective.d.ts +2 -0
  208. package/dist/schema-structural-varying-effective.d.ts.map +1 -0
  209. package/dist/schema-structural-varying-effective.js +85 -0
  210. package/dist/schema-structural-varying-effective.js.map +1 -0
  211. package/dist/schema-untranslatable.d.ts +22 -13
  212. package/dist/schema-untranslatable.d.ts.map +1 -1
  213. package/dist/schema-untranslatable.js +87 -6
  214. package/dist/schema-untranslatable.js.map +1 -1
  215. package/dist/schema-value-form-policy.d.ts +1 -1
  216. package/dist/schema-value-form-policy.d.ts.map +1 -1
  217. package/dist/schema-value-form-policy.js +37 -4
  218. package/dist/schema-value-form-policy.js.map +1 -1
  219. package/dist/schema-work-control-durations.d.ts +13 -0
  220. package/dist/schema-work-control-durations.d.ts.map +1 -0
  221. package/dist/schema-work-control-durations.js +74 -0
  222. package/dist/schema-work-control-durations.js.map +1 -0
  223. package/dist/step-argument-parser.d.ts +3 -3
  224. package/dist/step-argument-parser.d.ts.map +1 -1
  225. package/dist/step-argument-parser.js +6 -6
  226. package/dist/step-argument-parser.js.map +1 -1
  227. package/dist/step-comment-skip.d.ts.map +1 -1
  228. package/dist/step-comment-skip.js +3 -1
  229. package/dist/step-comment-skip.js.map +1 -1
  230. package/dist/step-export-types.d.ts +6 -6
  231. package/dist/step-export-types.d.ts.map +1 -1
  232. package/dist/step-export-types.js.map +1 -1
  233. package/dist/step-exporter.d.ts.map +1 -1
  234. package/dist/step-exporter.js +12 -6
  235. package/dist/step-exporter.js.map +1 -1
  236. package/dist/step-georeferencing.d.ts.map +1 -1
  237. package/dist/step-georeferencing.js +4 -17
  238. package/dist/step-georeferencing.js.map +1 -1
  239. package/dist/step-map-unit-normalization.d.ts.map +1 -1
  240. package/dist/step-map-unit-normalization.js +5 -4
  241. package/dist/step-map-unit-normalization.js.map +1 -1
  242. package/dist/step-omission-predicates.d.ts.map +1 -1
  243. package/dist/step-omission-predicates.js +3 -1
  244. package/dist/step-omission-predicates.js.map +1 -1
  245. package/dist/step-outer-args.d.ts +1 -1
  246. package/dist/step-outer-args.d.ts.map +1 -1
  247. package/dist/step-outer-args.js +10 -3
  248. package/dist/step-outer-args.js.map +1 -1
  249. package/dist/step-overlay-entities.d.ts.map +1 -1
  250. package/dist/step-overlay-entities.js +9 -0
  251. package/dist/step-overlay-entities.js.map +1 -1
  252. package/dist/step-pass-builder.d.ts.map +1 -1
  253. package/dist/step-pass-builder.js +63 -1
  254. package/dist/step-pass-builder.js.map +1 -1
  255. package/dist/step-property-set-readers.d.ts +4 -4
  256. package/dist/step-property-set-readers.d.ts.map +1 -1
  257. package/dist/step-property-set-readers.js +13 -13
  258. package/dist/step-property-set-readers.js.map +1 -1
  259. package/dist/step-ref-scan.d.ts +5 -0
  260. package/dist/step-ref-scan.d.ts.map +1 -1
  261. package/dist/step-ref-scan.js +1 -1
  262. package/dist/step-ref-scan.js.map +1 -1
  263. package/dist/step-retype-type-link.d.ts +7 -0
  264. package/dist/step-retype-type-link.d.ts.map +1 -0
  265. package/dist/step-retype-type-link.js +95 -0
  266. package/dist/step-retype-type-link.js.map +1 -0
  267. package/dist/step-slot-grammar.d.ts +3 -2
  268. package/dist/step-slot-grammar.d.ts.map +1 -1
  269. package/dist/step-slot-grammar.js +5 -5
  270. package/dist/step-slot-grammar.js.map +1 -1
  271. package/dist/step-source-iteration.d.ts.map +1 -1
  272. package/dist/step-source-iteration.js +12 -6
  273. package/dist/step-source-iteration.js.map +1 -1
  274. package/dist/step-subset-relations.d.ts +131 -0
  275. package/dist/step-subset-relations.d.ts.map +1 -0
  276. package/dist/step-subset-relations.js +342 -0
  277. package/dist/step-subset-relations.js.map +1 -0
  278. package/dist/step-subset-spatial-ancestors.d.ts +26 -0
  279. package/dist/step-subset-spatial-ancestors.d.ts.map +1 -0
  280. package/dist/step-subset-spatial-ancestors.js +103 -0
  281. package/dist/step-subset-spatial-ancestors.js.map +1 -0
  282. package/dist/step-subset-storey.d.ts +21 -0
  283. package/dist/step-subset-storey.d.ts.map +1 -0
  284. package/dist/step-subset-storey.js +319 -0
  285. package/dist/step-subset-storey.js.map +1 -0
  286. package/dist/step-subset.d.ts +68 -0
  287. package/dist/step-subset.d.ts.map +1 -0
  288. package/dist/step-subset.js +388 -0
  289. package/dist/step-subset.js.map +1 -0
  290. package/dist/unit-normalize.d.ts +15 -14
  291. package/dist/unit-normalize.d.ts.map +1 -1
  292. package/dist/unit-normalize.js +118 -91
  293. package/dist/unit-normalize.js.map +1 -1
  294. package/dist/xlsx-limits.d.ts +12 -0
  295. package/dist/xlsx-limits.d.ts.map +1 -0
  296. package/dist/xlsx-limits.js +48 -0
  297. package/dist/xlsx-limits.js.map +1 -0
  298. package/package.json +7 -7
@@ -31,7 +31,7 @@ import { isCompleteStepNumericLiteral } from '@ifc-lite/data';
31
31
  const MAX_SLOT_NESTING_DEPTH = 256;
32
32
  const I64_MAX = 9223372036854775807n;
33
33
  const I64_MIN = -9223372036854775808n;
34
- const U32_MAX = 4294967295;
34
+ export const MAX_SOURCE_STEP_ID = 0xffffffff;
35
35
  /** The STEP whitespace set, as core's `is_step_space`. */
36
36
  export function isStepSpaceCode(code) {
37
37
  return code === 0x20 || (code >= 0x09 && code <= 0x0d);
@@ -112,7 +112,7 @@ export function parseStepNumber(token) {
112
112
  * Whether `value` is exactly ONE STEP value, trivia allowed around it and
113
113
  * between its parts. See the module comment for the grammar.
114
114
  */
115
- export function isStepValue(value) {
115
+ export function isStepValue(value, maxReferenceId = MAX_SOURCE_STEP_ID) {
116
116
  const n = value.length;
117
117
  let i = skipStepTrivia(value, 0);
118
118
  if (i === -1)
@@ -168,7 +168,7 @@ export function isStepValue(value) {
168
168
  let end = i + 1;
169
169
  while (end < n && isDigit(value.charCodeAt(end)))
170
170
  end++;
171
- if (end === i + 1 || Number(value.slice(i + 1, end)) > U32_MAX)
171
+ if (end === i + 1 || Number(value.slice(i + 1, end)) > maxReferenceId)
172
172
  return false;
173
173
  i = end;
174
174
  }
@@ -233,7 +233,7 @@ export function isStepValue(value) {
233
233
  * NOT given that pass: counting it as one more empty slot would shift every
234
234
  * index after it.
235
235
  */
236
- export function isWellFormedStepSlot(part) {
237
- return isStepBlank(part) || isStepValue(part);
236
+ export function isWellFormedStepSlot(part, maxReferenceId) {
237
+ return isStepBlank(part) || isStepValue(part, maxReferenceId);
238
238
  }
239
239
  //# sourceMappingURL=step-slot-grammar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"step-slot-grammar.js","sourceRoot":"","sources":["../src/step-slot-grammar.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AA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,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACnD,YAAY,EAAE,gBAAgB,EAC9B,aAAa,EAAE,OAAO,EACtB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,KACnD,mBAAmB,CAAC;IACzB;8CAC0C;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrD;2EACuE;IACvE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;IACtD;;;4DAGwD;IACxD,QAAQ,CAAC,2BAA2B,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACnF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,iBAAiB,EAC1B,kBAAkB,EAAE,OAAO,EAC3B,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,EAC5C,GAAG,EAAE,sBAAsB,GAC1B,IAAI,CAmON"}
@@ -9,7 +9,7 @@ import { styleEntityWithheldWarning } from './step-export-types.js';
9
9
  import { applySourceLineMutationsReported } from './step-attribute-mutations.js';
10
10
  import { convertStepLineFlattening } from './schema-style-flatten.js';
11
11
  import { nominateDeliveredInPlaceEdits } from './in-place-nomination.js';
12
- import { decodeRange } from './source-ref-bounds.js';
12
+ import { decodeTypedPropertyRecord } from './schema-converter-typed-properties.js';
13
13
  import { retainSharedAtoms } from './step-shared-atom-retention.js';
14
14
  import { detachRelatedObjects } from './step-pset-copy-on-write.js';
15
15
  import { IFC_ENTITY_NAMES } from '@ifc-lite/data';
@@ -80,11 +80,7 @@ export function writeSourceEntityLines(pass, options, mayNameOmittedRefs, isOmit
80
80
  if (pass.isGeometryExcluded(expressId, entityRef.type)) {
81
81
  continue;
82
82
  }
83
- // Get original entity text — decodeRange handles SAB-backed
84
- // sources (Firefox/Chrome reject `TextDecoder.decode()` on a
85
- // SharedArrayBuffer-backed view; the parser deliberately keeps
86
- // `source` zero-copy SAB-backed for worker sharing).
87
- const entityText = decodeRange(source, entityRef.byteOffset, entityRef.byteOffset + entityRef.byteLength);
83
+ const entityText = decodeTypedPropertyRecord(source, entityRef, pass.sourceSchema, pass.schema);
88
84
  // Retype, named attribute edits and positional edits, in that order.
89
85
  // Shared verbatim with the type-object `HasPropertySets` rewrite in
90
86
  // `step-property-sets.ts`, which writes the line this pass would
@@ -142,6 +138,7 @@ export function writeSourceEntityLines(pass, options, mayNameOmittedRefs, isOmit
142
138
  if (mayNameOmittedRefs && effectiveRelType.startsWith('IFCREL')) {
143
139
  const filtered = filterHiddenRefsFromRelationshipLine(nextEntityText, isOmittedFromOutput);
144
140
  if (filtered === null) {
141
+ pass.enums.boundaries.noteWithheldReferrer(expressId);
145
142
  pass.warnings.push(ctx.relationshipWithheldWarning(expressId, displayRelType));
146
143
  continue;
147
144
  }
@@ -166,6 +163,7 @@ export function writeSourceEntityLines(pass, options, mayNameOmittedRefs, isOmit
166
163
  // replaced (#5262).
167
164
  const filtered = filterHiddenRefsFromRelationshipLine(nextEntityText, isOmittedFromOutput, pass.sourceSchema);
168
165
  if (filtered === null) {
166
+ pass.enums.boundaries.noteWithheldReferrer(expressId);
169
167
  pass.warnings.push(styleEntityWithheldWarning(expressId, displayRelType));
170
168
  continue;
171
169
  }
@@ -198,6 +196,14 @@ export function writeSourceEntityLines(pass, options, mayNameOmittedRefs, isOmit
198
196
  // (`IfcCostItem` does not even declare these attributes in IFC2X3).
199
197
  nextEntityText = narrowNonRelPositionalRefLists(nextEntityText, isOmittedFromOutput, effectiveRelType, pass.sourceSchema);
200
198
  }
199
+ if (pass.filterRetypedAssignment && effectiveRelType === 'IFCRELDEFINESBYTYPE') {
200
+ const filtered = pass.filterRetypedAssignment(nextEntityText, expressId, pass.warnings);
201
+ if (filtered === null) {
202
+ pass.omittedTypeAssignments.add(expressId);
203
+ continue;
204
+ }
205
+ nextEntityText = filtered;
206
+ }
201
207
  // Past every branch that can withhold this line, so the pipeline's own
202
208
  // reports are now true statements about a record this pass is writing.
203
209
  pass.warnings.push(...mutationWarnings);
@@ -1 +1 @@
1
- {"version":3,"file":"step-source-iteration.js","sourceRoot":"","sources":["../src/step-source-iteration.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAqD/D,OAAO,EAAE,oCAAoC,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAsClD;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,sBAAsB,CACpC,IAAgB,EAChB,OAA0B,EAC1B,kBAA2B,EAC3B,mBAA4C,EAC5C,GAA2B;IAE3B,8EAA8E;IAC9E,uEAAuE;IACvE,8EAA8E;IAC9E,8EAA8E;IAC9E,gFAAgF;IAChF,IAAI,IAAI,CAAC,kBAAkB,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACrC,iBAAiB,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,gBAAgB,EAA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it names nothing in the
3
+ * file, `invalid` when it names the wrong kind of record. Callers map `kind` to
4
+ * their own error codes instead of matching the message.
5
+ */
6
+ export declare class SubsetSelectionError extends Error {
7
+ readonly kind: 'not-found' | 'invalid';
8
+ constructor(kind: 'not-found' | 'invalid', message: string);
9
+ }
10
+ /**
11
+ * One parsed STEP record, as `step-subset.ts`'s `parseStep` produces it.
12
+ * Declared HERE and imported there, rather than the other way round, so the
13
+ * dependency runs one way: `step-subset.ts` imports this module, never
14
+ * the reverse.
15
+ */
16
+ export interface StepRecord {
17
+ id: number;
18
+ type: string;
19
+ /** Argument text between the outermost parentheses. */
20
+ body: string;
21
+ /** The verbatim `#id= TYPE(...);` text. */
22
+ full: string;
23
+ /** Offset of `body` within `full`, when the parser knows it (a comment before the type may hold a `(`). */
24
+ bodyStart?: number;
25
+ }
26
+ /**
27
+ * The assembled subset: the ids to emit, plus the record text to emit for the
28
+ * relations whose related-objects SET was filtered. An id absent from
29
+ * `rewritten` emits its source line unchanged.
30
+ */
31
+ export interface Subset {
32
+ keep: Set<number>;
33
+ rewritten: ReadonlyMap<number, string>;
34
+ }
35
+ /** What {@link planSpatialRelations} found: relations to add, and their text. */
36
+ export interface SpatialRelationPlan {
37
+ /** Relation ids that join the subset. */
38
+ add: number[];
39
+ /** Relation id → rewritten record text, for the ones that lost a member. */
40
+ rewritten: Map<number, string>;
41
+ /**
42
+ * One entry per relation this plan dropped for ONE reason alone: unkept non-SET references,
43
+ * in practice a relation-private `OwnerHistory`. Its relating parent is kept and its member
44
+ * intersection is non-empty, so keeping EVERY id in the entry is all that stands between it
45
+ * and surviving. Grouped per relation, because keeping only SOME of one relation's blockers
46
+ * leaves it dropped and those ids orphaned (#4150). A caller with the parsed model closes
47
+ * over a group and replans (#4126). Every other drop is final and reports nothing here.
48
+ */
49
+ blockedOn: number[][];
50
+ }
51
+ /**
52
+ * Spatial-structure relations, as `[relatingAttributeIndex, relatedAttributeIndex]`.
53
+ * `IfcRelAggregates` names the whole (`RelatingObject`) first; the two containment
54
+ * relations name the parts (`RelatedElements`) first. Same table as the private
55
+ * `STRUCTURE_RELATIONS` in `merged-empty-containers.ts`, which reads the same three
56
+ * records.
57
+ *
58
+ * `IfcRelReferencedInSpatialStructure` is here for the same reason the other two are:
59
+ * same shape (one relating parent, one related SET), same one-per-storey authoring,
60
+ * same claim in the command's own docs that the output "parses and renders on its
61
+ * own". It used to be missing entirely, so a referenced-but-not-contained product was
62
+ * always orphaned.
63
+ */
64
+ export declare const STRUCTURE_RELATIONS: Record<string, [number, number]>;
65
+ /**
66
+ * These relations are `GlobalId, OwnerHistory, Name, Description` plus the relating/related
67
+ * pair: exactly 6 attributes in every schema that defines them. A record that does not
68
+ * split into 6 was mis-scanned (or is not the entity the type name claims), so it falls
69
+ * back to keep-whole-or-drop-whole rather than having a slot index written into
70
+ * whatever it did split into.
71
+ *
72
+ * A relation type with a different attribute COUNT (`IfcRelAssignsToGroup` has 7)
73
+ * therefore cannot simply be added as a row above: it would fail this check on every
74
+ * record and fall silently back to keep-whole-or-drop-whole, which is the bug this
75
+ * module exists to fix. Such a type needs the count moved into the table value first,
76
+ * or the table derived from the schema registry, which returns 7 for that entity. Filed as #4123.
77
+ */
78
+ export declare const STRUCTURE_RELATION_ATTRS = 6;
79
+ /**
80
+ * Decide every spatial or nesting relation against a kept-id set.
81
+ *
82
+ * Pure in both arguments: adding relation ids to `keep` afterwards cannot
83
+ * change any verdict, because a relation of these types references products,
84
+ * spatial containers and an OwnerHistory, never another relation.
85
+ */
86
+ export declare function planSpatialRelations(instances: Iterable<StepRecord>, keep: ReadonlySet<number>): SpatialRelationPlan;
87
+ /**
88
+ * The `#id` object references in one argument, ignoring any that sit inside a
89
+ * STEP string literal.
90
+ *
91
+ * A relation's `Name` and `Description` are free TEXT, and free text contains
92
+ * `#`; `parseStep` tokenizes rather than regexes precisely because Revit
93
+ * writes names like that. Read raw, the `#99` in `'Level #99 contents'` looks
94
+ * like a reference to entity 99, and one unkept lookalike drops the WHOLE
95
+ * relation: the orphaned-storey bug this module exists to fix, re-created for
96
+ * any model that names a relation that way.
97
+ *
98
+ * Correct only on an argument whose split VALIDATED, so the quote boundaries
99
+ * are the record's own. {@link keepWhole} deliberately does NOT use this. It
100
+ * runs when the split FAILED, and also when it succeeded but the record is not
101
+ * the six-attribute shape this module rewrites, so its boundaries are not
102
+ * established in general. There, over-counting references (drop the record) is
103
+ * the safe error, while under-counting (emit a dangling `#id`) is not.
104
+ *
105
+ * Exported for `step-subset.ts`'s `forwardClosure`, which has the same
106
+ * hazard scanning a whole record body for its reference closure: nothing here
107
+ * assumes `arg` is one split ARGUMENT rather than a whole body, since a comma
108
+ * or `)` outside a string does not affect the in-string/out-of-string state
109
+ * this walks.
110
+ */
111
+ export declare function refsOutsideStrings(arg: string): number[];
112
+ /**
113
+ * Split a STEP argument list on top-level commas, respecting nested parens,
114
+ * quoted strings, doubled-quote escapes, and `/* ... *\/` comments (#4227).
115
+ * Returns null on an unterminated string, an unbalanced paren depth, or a
116
+ * depth that ever goes negative -- {@link relationLine} writes a slot by
117
+ * index (#2470), so a mis-scanned list must not hand back parts that look
118
+ * like success. A comma/paren/quote inside a comment is skipped with it (see
119
+ * {@link skipStepComment}): unskipped, its comma shifts every later slot
120
+ * boundary and `relationLine` either mis-splices a member or falls back to
121
+ * {@link keepWhole}, dropping a relation that should have survived -- the
122
+ * orphaned-storey symptom (#4126) this module exists to fix, by a different
123
+ * route. An EMPTY INTERIOR slot (`a,,b`) is one part, not rejected.
124
+ *
125
+ * Near-twin of `splitTopLevelStepArguments` in `step-argument-parser.ts` (see
126
+ * the module header). Two differences: each part is `trim`med (because
127
+ * `slotRef` reads one reference per slot), and a TRAILING empty slot (`a,b,`)
128
+ * yields 2 parts, not 3.
129
+ */
130
+ export declare function splitTopLevelArgs(text: string): string[] | null;
131
+ //# sourceMappingURL=step-subset-relations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-subset-relations.d.ts","sourceRoot":"","sources":["../src/step-subset-rel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AM,GAAG,MAAM,EAAE,CAsBxD;AAsCD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAgC/D"}
@@ -0,0 +1,342 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ /**
5
+ * Spatial and nesting relations for an extracted subset: which ones join it, and
6
+ * what text each one emits.
7
+ *
8
+ * `IfcRelContainedInSpatialStructure` is one-to-MANY, and a real exporter
9
+ * writes exactly ONE of them per storey, naming every product in that storey.
10
+ * An all-or-nothing rule (keep the relation only when every id it mentions is
11
+ * kept) therefore drops containment on ANY strict subset of a real model: the
12
+ * extracted products land outside the spatial tree and a viewer shows the
13
+ * storey with nothing under it. So the `RelatedElements` SET is rewritten down
14
+ * to the kept members instead of the relation being dropped.
15
+ *
16
+ * The no-dangling-reference invariant is unchanged: every `#id` in an emitted
17
+ * record is an id the subset keeps, and since #4128 the caller's forward
18
+ * closure keeps only ids the file DEFINES, so kept implies defined. That covers
19
+ * the ids this module CHOOSES; it does not cover the references inside a kept
20
+ * record, which are emitted verbatim, so a source file that already dangles
21
+ * still dangles. That is the rest of the rules:
22
+ * - the RELATING object (`RelatingStructure` / `RelatingObject`, the spatial
23
+ * parent) is a hard requirement. A containment with no parent is
24
+ * meaningless, and it would dangle. `buildSubset` keeps every spatial
25
+ * ancestor of what it selected (a backward closure, #4124, see
26
+ * `step-subset-spatial-ancestors.ts`), so a kept product's parent is kept
27
+ * too, an `IfcSpace` included.
28
+ * - an empty intersection drops the relation.
29
+ * - every other non-set reference must be kept too. That is attribute 1,
30
+ * `OwnerHistory`; usually it already is, because each kept product's own
31
+ * body names the same shared `IfcOwnerHistory` and the products' forward
32
+ * closure keeps it. An exporter that writes a PER-RELATIONSHIP
33
+ * `IfcOwnerHistory` referenced by nothing else hits this rule every time,
34
+ * and dropping there was the orphaned-storey symptom again (#4126). This
35
+ * function still takes no `parsed`, so it cannot close over such a
36
+ * reference; it REPORTS it in {@link SpatialRelationPlan.blockedOn} and the
37
+ * caller, which does have `parsed`, decides whether to keep it and replan.
38
+ * Purity is intact: `blockedOn` is a finding, not a mutation.
39
+ *
40
+ * A KNOWN gap: {@link keepWhole}, the fallback for a record this module could
41
+ * not read as its six attributes, still drops on the same private
42
+ * `OwnerHistory` and reports nothing. That is deliberate. Its references are
43
+ * read off the raw body with no established string boundaries, so a `#6` it
44
+ * names may be text rather than a reference, and forward-closing over it would
45
+ * re-create the hash-in-a-Name bug the scanner exists to avoid.
46
+ *
47
+ * A relation that loses NO member re-emits its source line verbatim, so an
48
+ * extraction that happened to keep every member does not churn.
49
+ *
50
+ * ## Near-twins elsewhere in this package
51
+ *
52
+ * This module moved here from the CLI, where `@ifc-lite/export`'s internals
53
+ * were out of reach. Two near-twins remain, each different on purpose:
54
+ *
55
+ * - `filterHiddenRefsFromRelationshipLine` (`reference-collector.ts`) does
56
+ * the same job for EVERY parenthesised attribute of ANY `IFCREL*` line.
57
+ * Fed only today's three types it would change no behaviour, because the
58
+ * CALLER picks which lines it sees; widening the type set is the separate
59
+ * decision that changes which relations survive an extraction.
60
+ * - `splitTopLevelStepArguments` (`step-argument-parser.ts`): see
61
+ * {@link splitTopLevelArgs} for the two ways it differs.
62
+ *
63
+ * `merged-empty-containers.ts` keeps a private copy of `STRUCTURE_RELATIONS`.
64
+ */
65
+ import { stepStringLiteralEnd } from '@ifc-lite/encoding';
66
+ import { skipStepComment, withoutComments } from './step-comment-skip.js';
67
+ import { slotRef } from './schema-converter-structural-source.js';
68
+ /**
69
+ * A selector that cannot be satisfied: `not-found` when it names nothing in the
70
+ * file, `invalid` when it names the wrong kind of record. Callers map `kind` to
71
+ * their own error codes instead of matching the message.
72
+ */
73
+ export class SubsetSelectionError extends Error {
74
+ kind;
75
+ constructor(kind, message) {
76
+ super(message);
77
+ this.kind = kind;
78
+ this.name = 'SubsetSelectionError';
79
+ }
80
+ }
81
+ /**
82
+ * Spatial-structure relations, as `[relatingAttributeIndex, relatedAttributeIndex]`.
83
+ * `IfcRelAggregates` names the whole (`RelatingObject`) first; the two containment
84
+ * relations name the parts (`RelatedElements`) first. Same table as the private
85
+ * `STRUCTURE_RELATIONS` in `merged-empty-containers.ts`, which reads the same three
86
+ * records.
87
+ *
88
+ * `IfcRelReferencedInSpatialStructure` is here for the same reason the other two are:
89
+ * same shape (one relating parent, one related SET), same one-per-storey authoring,
90
+ * same claim in the command's own docs that the output "parses and renders on its
91
+ * own". It used to be missing entirely, so a referenced-but-not-contained product was
92
+ * always orphaned.
93
+ */
94
+ export const STRUCTURE_RELATIONS = {
95
+ IFCRELAGGREGATES: [4, 5],
96
+ IFCRELCONTAINEDINSPATIALSTRUCTURE: [5, 4],
97
+ IFCRELREFERENCEDINSPATIALSTRUCTURE: [5, 4],
98
+ };
99
+ // Nesting has the same slots as aggregation. Its related objects are ordered,
100
+ // and the member filter below preserves their original order. Keep this row
101
+ // out of STRUCTURE_RELATIONS so nesting does not add spatial ancestors.
102
+ const SUBSET_RELATIONS = {
103
+ ...STRUCTURE_RELATIONS,
104
+ IFCRELNESTS: STRUCTURE_RELATIONS.IFCRELAGGREGATES,
105
+ };
106
+ /**
107
+ * These relations are `GlobalId, OwnerHistory, Name, Description` plus the relating/related
108
+ * pair: exactly 6 attributes in every schema that defines them. A record that does not
109
+ * split into 6 was mis-scanned (or is not the entity the type name claims), so it falls
110
+ * back to keep-whole-or-drop-whole rather than having a slot index written into
111
+ * whatever it did split into.
112
+ *
113
+ * A relation type with a different attribute COUNT (`IfcRelAssignsToGroup` has 7)
114
+ * therefore cannot simply be added as a row above: it would fail this check on every
115
+ * record and fall silently back to keep-whole-or-drop-whole, which is the bug this
116
+ * module exists to fix. Such a type needs the count moved into the table value first,
117
+ * or the table derived from the schema registry, which returns 7 for that entity. Filed as #4123.
118
+ */
119
+ export const STRUCTURE_RELATION_ATTRS = 6;
120
+ /**
121
+ * Decide every spatial or nesting relation against a kept-id set.
122
+ *
123
+ * Pure in both arguments: adding relation ids to `keep` afterwards cannot
124
+ * change any verdict, because a relation of these types references products,
125
+ * spatial containers and an OwnerHistory, never another relation.
126
+ */
127
+ export function planSpatialRelations(instances, keep) {
128
+ const add = [];
129
+ const rewritten = new Map();
130
+ const blockedOn = [];
131
+ for (const inst of instances) {
132
+ const slots = SUBSET_RELATIONS[inst.type];
133
+ if (slots === undefined)
134
+ continue;
135
+ const line = relationLine(inst, slots, keep, blockedOn);
136
+ if (line === null)
137
+ continue;
138
+ add.push(inst.id);
139
+ if (line !== inst.full)
140
+ rewritten.set(inst.id, line);
141
+ }
142
+ return { add, rewritten, blockedOn };
143
+ }
144
+ /**
145
+ * The record text this relation contributes to the subset, or null to drop it.
146
+ * Returns `inst.full` unchanged when nothing was filtered out. Appends ONE entry
147
+ * to `blocked` when the ONLY thing standing in the way is unkept non-member
148
+ * references; see {@link SpatialRelationPlan.blockedOn}.
149
+ */
150
+ function relationLine(inst, [relatingIdx, relatedIdx], keep, blocked) {
151
+ // A null is a REJECTED scan, not an empty list: its parts are wherever the
152
+ // scanner happened to be, so reading `args[relatingIdx]` or writing
153
+ // `args[relatedIdx]` by index would land on the wrong attribute (#2470).
154
+ const args = splitTopLevelArgs(inst.body);
155
+ if (args === null || args.length !== STRUCTURE_RELATION_ATTRS)
156
+ return keepWhole(inst, keep);
157
+ // Comments around the member list and its references are trivia.
158
+ const setText = withoutComments(args[relatedIdx]);
159
+ if (!setText.startsWith('(') || !setText.endsWith(')'))
160
+ return keepWhole(inst, keep);
161
+ const members = splitTopLevelArgs(setText.slice(1, -1));
162
+ if (members === null)
163
+ return keepWhole(inst, keep);
164
+ const memberIds = [];
165
+ for (const member of members) {
166
+ const ref = slotRef(member);
167
+ // A member that is not a plain object reference is not something this
168
+ // rewrite understands; fall back rather than guess at it.
169
+ if (ref === null)
170
+ return keepWhole(inst, keep);
171
+ memberIds.push(ref);
172
+ }
173
+ // The relating parent must be a real, kept reference. The `every reference
174
+ // outside the member list is kept` loop below would pass VACUOUSLY on a `$` here,
175
+ // emitting a containment with no parent.
176
+ const relating = slotRef(args[relatingIdx]);
177
+ if (relating === null || !keep.has(relating))
178
+ return null;
179
+ const kept = memberIds.filter((id) => keep.has(id));
180
+ if (kept.length === 0)
181
+ return null;
182
+ // Every other reference (OwnerHistory) must be kept or the emitted
183
+ // record dangles. Ordered AFTER the intersection so `blocked` names only the
184
+ // references of a relation that would OTHERWISE survive; both checks drop the
185
+ // relation, so which one runs first changes no verdict.
186
+ const unkept = [];
187
+ for (let i = 0; i < args.length; i++) {
188
+ if (i === relatedIdx)
189
+ continue;
190
+ for (const id of refsOutsideStrings(args[i])) {
191
+ if (!keep.has(id))
192
+ unkept.push(id);
193
+ }
194
+ }
195
+ if (unkept.length > 0) {
196
+ blocked.push(unkept);
197
+ return null;
198
+ }
199
+ if (kept.length === memberIds.length)
200
+ return inst.full;
201
+ return spliceArgument(inst, args, relatedIdx, `(${kept.map((id) => `#${id}`).join(',')})`);
202
+ }
203
+ /**
204
+ * The `#id` object references in one argument, ignoring any that sit inside a
205
+ * STEP string literal.
206
+ *
207
+ * A relation's `Name` and `Description` are free TEXT, and free text contains
208
+ * `#`; `parseStep` tokenizes rather than regexes precisely because Revit
209
+ * writes names like that. Read raw, the `#99` in `'Level #99 contents'` looks
210
+ * like a reference to entity 99, and one unkept lookalike drops the WHOLE
211
+ * relation: the orphaned-storey bug this module exists to fix, re-created for
212
+ * any model that names a relation that way.
213
+ *
214
+ * Correct only on an argument whose split VALIDATED, so the quote boundaries
215
+ * are the record's own. {@link keepWhole} deliberately does NOT use this. It
216
+ * runs when the split FAILED, and also when it succeeded but the record is not
217
+ * the six-attribute shape this module rewrites, so its boundaries are not
218
+ * established in general. There, over-counting references (drop the record) is
219
+ * the safe error, while under-counting (emit a dangling `#id`) is not.
220
+ *
221
+ * Exported for `step-subset.ts`'s `forwardClosure`, which has the same
222
+ * hazard scanning a whole record body for its reference closure: nothing here
223
+ * assumes `arg` is one split ARGUMENT rather than a whole body, since a comma
224
+ * or `)` outside a string does not affect the in-string/out-of-string state
225
+ * this walks.
226
+ */
227
+ export function refsOutsideStrings(arg) {
228
+ const ids = [];
229
+ for (let i = 0; i < arg.length; i++) {
230
+ const char = arg[i];
231
+ if (char === '/' && arg[i + 1] === '*') {
232
+ // A comment is trivia: a `#id` inside it is not a reference.
233
+ i = skipStepComment(arg, i) - 1;
234
+ }
235
+ else if (char === "'") {
236
+ // #7589: the shared literal-end rule (`''`, PAGE-directive operand).
237
+ const end = stepStringLiteralEnd(arg, i);
238
+ if (end < 0)
239
+ break; // never closes: the rest is string text
240
+ i = end - 1;
241
+ }
242
+ else if (char === '#') {
243
+ let start = i + 1;
244
+ while (start < arg.length && /\s/.test(arg[start]))
245
+ start++;
246
+ let end = start;
247
+ while (end < arg.length && arg[end] >= '0' && arg[end] <= '9')
248
+ end++;
249
+ if (end > start)
250
+ ids.push(Number(arg.slice(start, end)));
251
+ i = end - 1;
252
+ }
253
+ }
254
+ return ids;
255
+ }
256
+ /**
257
+ * Keep-whole-or-drop-whole, for a record this module could not scan, or could
258
+ * not read as its six attributes. Reads references straight off the raw body,
259
+ * so it needs no argument boundaries to be correct. Same no-dangling guarantee,
260
+ * no rewriting.
261
+ */
262
+ function keepWhole(inst, keep) {
263
+ // Comments are trivia; string text is still over-counted, the safe direction.
264
+ const refs = [...withoutComments(inst.body).matchAll(/#\s*(\d+)/g)].map((m) => Number(m[1]));
265
+ return refs.length > 0 && refs.every((r) => keep.has(r)) ? inst.full : null;
266
+ }
267
+ /**
268
+ * Re-emit the record with ONE top-level argument replaced. Rejoining the split
269
+ * arguments normalizes only the whitespace BETWEEN them (each argument's own
270
+ * text is untouched), and this runs only for a relation that actually lost a
271
+ * member, so an unfiltered subset stays byte-identical.
272
+ */
273
+ function spliceArgument(inst, args, index, replacement) {
274
+ const open = inst.bodyStart !== undefined ? inst.bodyStart - 1 : inst.full.indexOf('(');
275
+ // `bodyStart` from the parser is the authority (a comment before the type
276
+ // may hold a `(`); the first `(` is only the fallback for records built
277
+ // without it. A mismatch would mean the parser and this module disagree about
278
+ // where the arguments are, and splicing on that offset corrupts the record,
279
+ // so drop it instead of emitting something malformed.
280
+ if (open < 0 || inst.full.slice(open + 1, open + 1 + inst.body.length) !== inst.body)
281
+ return null;
282
+ const next = [...args];
283
+ next[index] = replacement;
284
+ return inst.full.slice(0, open + 1) + next.join(',') + inst.full.slice(open + 1 + inst.body.length);
285
+ }
286
+ /**
287
+ * Split a STEP argument list on top-level commas, respecting nested parens,
288
+ * quoted strings, doubled-quote escapes, and `/* ... *\/` comments (#4227).
289
+ * Returns null on an unterminated string, an unbalanced paren depth, or a
290
+ * depth that ever goes negative -- {@link relationLine} writes a slot by
291
+ * index (#2470), so a mis-scanned list must not hand back parts that look
292
+ * like success. A comma/paren/quote inside a comment is skipped with it (see
293
+ * {@link skipStepComment}): unskipped, its comma shifts every later slot
294
+ * boundary and `relationLine` either mis-splices a member or falls back to
295
+ * {@link keepWhole}, dropping a relation that should have survived -- the
296
+ * orphaned-storey symptom (#4126) this module exists to fix, by a different
297
+ * route. An EMPTY INTERIOR slot (`a,,b`) is one part, not rejected.
298
+ *
299
+ * Near-twin of `splitTopLevelStepArguments` in `step-argument-parser.ts` (see
300
+ * the module header). Two differences: each part is `trim`med (because
301
+ * `slotRef` reads one reference per slot), and a TRAILING empty slot (`a,b,`)
302
+ * yields 2 parts, not 3.
303
+ */
304
+ export function splitTopLevelArgs(text) {
305
+ const parts = [];
306
+ let start = 0;
307
+ let depth = 0;
308
+ for (let i = 0; i < text.length; i++) {
309
+ const char = text[i];
310
+ if (char === '/' && text[i + 1] === '*') {
311
+ // See skipStepComment's docstring: its content is skipped as one unit,
312
+ // not read as argument-list structure.
313
+ i = skipStepComment(text, i) - 1;
314
+ }
315
+ else if (char === "'") {
316
+ // `''` and the PAGE directive's apostrophe operand (#7589) stay inside.
317
+ const end = stepStringLiteralEnd(text, i);
318
+ if (end < 0)
319
+ return null; // unterminated string
320
+ i = end - 1;
321
+ }
322
+ else if (char === '(') {
323
+ depth++;
324
+ }
325
+ else if (char === ')') {
326
+ depth--;
327
+ if (depth < 0)
328
+ return null;
329
+ }
330
+ else if (char === ',' && depth === 0) {
331
+ parts.push(text.slice(start, i).trim());
332
+ start = i + 1;
333
+ }
334
+ }
335
+ if (depth !== 0)
336
+ return null;
337
+ const tail = text.slice(start).trim();
338
+ if (tail)
339
+ parts.push(tail);
340
+ return parts;
341
+ }
342
+ //# sourceMappingURL=step-subset-relations.js.map