| 325 | await this.processPackedImport(key, data); |
| 326 | return; |
| 327 | } |
| 328 | |
| 329 | // Standalone document |
| 330 | if (Array.isArray(data)) { |
| 331 | // Prefab / scene-like document (shared __id__ space) |
| 332 | if (this.isDocumentArray(data)) { |
| 333 | this.processDocumentArray(data, key); |
| 334 | return; |
| 335 | } |
| 336 | // Compressed type-table format |
| 337 | if (this.isCompressedFormat(data)) { |
| 338 | const restored = this.restoreCompressedData(data); |
| 339 | this.dispatchRestoredArray(restored, key); |
| 340 | return; |
| 341 | } |
| 342 | // Plain array of independent objects (treat like packed without uuid list) |
| 343 | await this.processPackedImport(key, data); |
| 344 | return; |
| 345 | } |
| 346 | |
| 347 | if (data && typeof data === 'object' && data.__type__) { |
| 348 | this.decodeUuids(data); |