@ifc-lite/viewer 1.17.0 → 1.17.1

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 (28) hide show
  1. package/.turbo/turbo-build.log +11 -15
  2. package/.turbo/turbo-typecheck.log +41 -1
  3. package/CHANGELOG.md +10 -0
  4. package/dist/assets/{Arrow.dom-CcoDLP6E.js → Arrow.dom-DuPUrOxJ.js} +1 -1
  5. package/dist/assets/{basketViewActivator-FtbS__bG.js → basketViewActivator-DetjPnvt.js} +1 -1
  6. package/dist/assets/{browser-CXd3z0DO.js → browser-BQdwnOUt.js} +1 -1
  7. package/dist/assets/geometry.worker-Bjm-ukng.js +1 -0
  8. package/dist/assets/ifc-lite_bg-DD0A7Yow.wasm +0 -0
  9. package/dist/assets/{index-DqNiuQep.js → index-B3X21yXA.js} +4 -4
  10. package/dist/assets/{index-D99fzcwI.js → index-BybGZJTW.js} +13456 -13364
  11. package/dist/assets/{native-bridge-DjDj2M6p.js → native-bridge-CN0ZMR2t.js} +1 -1
  12. package/dist/assets/{wasm-bridge-CDTF4ZQc.js → wasm-bridge-D0bALkma.js} +1 -1
  13. package/dist/index.html +1 -1
  14. package/package.json +11 -11
  15. package/src/components/viewer/PropertiesPanel.tsx +6 -7
  16. package/src/components/viewer/hierarchy/treeDataBuilder.test.ts +70 -0
  17. package/src/components/viewer/hierarchy/treeDataBuilder.ts +35 -10
  18. package/src/components/viewer/hierarchy/types.ts +24 -2
  19. package/src/sdk/adapters/visibility-adapter.ts +7 -49
  20. package/src/store/basketVisibleSet.test.ts +73 -3
  21. package/src/store/basketVisibleSet.ts +46 -75
  22. package/src/utils/serverDataModel.test.ts +90 -0
  23. package/src/utils/serverDataModel.ts +22 -34
  24. package/src/utils/spatialHierarchy.test.ts +38 -0
  25. package/src/utils/spatialHierarchy.ts +13 -23
  26. package/dist/assets/ifc-lite-TI3u_Zyw.js +0 -7
  27. package/dist/assets/ifc-lite_bg-DeZrXTKQ.wasm +0 -0
  28. package/dist/assets/workerHelpers-G7llXNMi.js +0 -36
@@ -0,0 +1 @@
1
+ let e;function g(n){B===y.length&&y.push(y.length+1);const t=B;return B=y[t],y[t]=n,t}const ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));function Ut(n){n<132||(y[n]=B,B=n)}function I(n,t){return n=n>>>0,Nt().subarray(n/4,n/4+t)}function T(n,t){return n=n>>>0,Yt().subarray(n/8,n/8+t)}function kt(n,t){return n=n>>>0,Ct().subarray(n/4,n/4+t)}let x=null;function o(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==e.memory.buffer)&&(x=new DataView(e.memory.buffer)),x}let C=null;function Nt(){return(C===null||C.byteLength===0)&&(C=new Float32Array(e.memory.buffer)),C}let L=null;function Yt(){return(L===null||L.byteLength===0)&&(L=new Float64Array(e.memory.buffer)),L}function l(n,t){return n=n>>>0,Xt(n,t)}let P=null;function Ct(){return(P===null||P.byteLength===0)&&(P=new Uint32Array(e.memory.buffer)),P}let D=null;function E(){return(D===null||D.byteLength===0)&&(D=new Uint8Array(e.memory.buffer)),D}function p(n){return y[n]}function A(n,t){try{return n.apply(this,t)}catch(r){e.__wbindgen_export(g(r))}}let y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);let B=y.length;function F(n){return n==null}function Vt(n,t,r,_){const s={a:n,b:t,cnt:1,dtor:r},i=(...a)=>{s.cnt++;const c=s.a;s.a=0;try{return _(c,s.b,...a)}finally{s.a=c,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--s.cnt===0&&(s.dtor(s.a,s.b),s.a=0,ft.unregister(s))},ft.register(i,s,s),i}function M(n,t){const r=t(n.length*4,4)>>>0;return Ct().set(n,r/4),b=n.length,r}function k(n,t){const r=t(n.length*1,1)>>>0;return E().set(n,r/1),b=n.length,r}function w(n,t,r){if(r===void 0){const c=G.encode(n),d=t(c.length,1)>>>0;return E().subarray(d,d+c.length).set(c),b=c.length,d}let _=n.length,s=t(_,1)>>>0;const i=E();let a=0;for(;a<_;a++){const c=n.charCodeAt(a);if(c>127)break;i[s+a]=c}if(a!==_){a!==0&&(n=n.slice(a)),s=r(s,_,_=a+n.length*3,1)>>>0;const c=E().subarray(s+a,s+_),d=G.encodeInto(n,c);a+=d.written,s=r(s,_,a,1)>>>0}return b=a,s}function u(n){const t=p(n);return Ut(n),t}let it=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});it.decode();const Zt=2146435072;let bt=0;function Xt(n,t){return bt+=t,bt>=Zt&&(it=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),it.decode(),bt=t),it.decode(E().subarray(n,n+t))}const G=new TextEncoder;"encodeInto"in G||(G.encodeInto=function(n,t){const r=G.encode(n);return t.set(r),{read:n.length,written:r.length}});let b=0;function qt(n,t,r){e.__wasm_bindgen_func_elem_1092(n,t,g(r))}function Jt(n,t,r,_){e.__wasm_bindgen_func_elem_1132(n,t,g(r),g(_))}const yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_georeferencejs_free(n>>>0,1)),ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpugeometry_free(n>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometry_free(n>>>0,1)),dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometrycollection_free(n>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometryref_free(n>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpumeshmetadata_free(n>>>0,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_ifcapi_free(n>>>0,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedata_free(n>>>0,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedgeometry_free(n>>>0,1)),Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedmeshcollection_free(n>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollection_free(n>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollectionwithrtc_free(n>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshdatajs_free(n>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_rtcoffsetjs_free(n>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symboliccircle_free(n>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicpolyline_free(n>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicrepresentationcollection_free(n>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zerocopymesh_free(n>>>0,1));class U{static __wrap(t){t=t>>>0;const r=Object.create(U.prototype);return r.__wbg_ptr=t,yt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_georeferencejs_free(t,0)}localToMap(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_localToMap(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),a=T(s,i).slice();return e.__wbindgen_export2(s,i*8,8),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_mapToLocal(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),a=T(s,i).slice();return e.__wbindgen_export2(s,i*8,8),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_crsName(_,this.__wbg_ptr);var t=o().getInt32(_+4*0,!0),r=o().getInt32(_+4*1,!0);let s;return t!==0&&(s=l(t,r).slice(),e.__wbindgen_export2(t,r*1,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return e.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_toMatrix(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=T(t,r).slice();return e.__wbindgen_export2(t,r*8,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return e.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){e.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return e.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){e.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return e.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){e.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return e.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){e.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return e.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){e.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return e.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){e.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class j{static __wrap(t){t=t>>>0;const r=Object.create(j.prototype);return r.__wbg_ptr=t,ut.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpugeometry_free(t,0)}get meshCount(){return e.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return e.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return e.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return e.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return e.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,r,_){e.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,r,_)}get vertexDataLen(){return e.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.gpugeometry_getIfcTypeName(s,this.__wbg_ptr,t);var r=o().getInt32(s+4*0,!0),_=o().getInt32(s+4*1,!0);let i;return r!==0&&(i=l(r,_).slice(),e.__wbindgen_export2(r,_*1,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const r=e.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return r===0?void 0:Z.__wrap(r)}get totalVertexCount(){return e.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return e.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=e.gpugeometry_new();return this.__wbg_ptr=t>>>0,ut.register(this,this.__wbg_ptr,this),this}get isEmpty(){return e.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);class N{static __wrap(t){t=t>>>0;const r=Object.create(N.prototype);return r.__wbg_ptr=t,wt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return e.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return e.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return e.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return e.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return e.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return e.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return e.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return e.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const r=e.gpuinstancedgeometry_new(t);return this.__wbg_ptr=r>>>0,wt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);class Y{static __wrap(t){t=t>>>0;const r=Object.create(Y.prototype);return r.__wbg_ptr=t,dt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const r=e.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return r===0?void 0:N.__wrap(r)}constructor(){const t=e.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,dt.register(this,this.__wbg_ptr,this),this}get length(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const r=e.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return r===0?void 0:V.__wrap(r)}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class V{static __wrap(t){t=t>>>0;const r=Object.create(V.prototype);return r.__wbg_ptr=t,ht.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return e.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return e.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return e.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return e.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return e.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return e.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class Z{static __wrap(t){t=t>>>0;const r=Object.create(Z.prototype);return r.__wbg_ptr=t,mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return e.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return e.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return e.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return e.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return e.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return e.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.gpumeshmetadata_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=I(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);class W{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_ifcapi_free(t,0)}parseMeshes(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseMeshes(this.__wbg_ptr,r,_);return m.__wrap(s)}parseMeshesAsync(t,r){const _=w(t,e.__wbindgen_export3,e.__wbindgen_export4),s=b,i=e.ifcapi_parseMeshesAsync(this.__wbg_ptr,_,s,g(r));return u(i)}buildPrePassFast(t){const r=k(t,e.__wbindgen_export3),_=b,s=e.ifcapi_buildPrePassFast(this.__wbg_ptr,r,_);return u(s)}buildPrePassOnce(t){const r=k(t,e.__wbindgen_export3),_=b,s=e.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,_);return u(s)}parseMeshesSubset(t,r,_,s){const i=w(t,e.__wbindgen_export3,e.__wbindgen_export4),a=b,c=e.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,a,r,_,s);return m.__wrap(c)}parseToGpuGeometry(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseToGpuGeometry(this.__wbg_ptr,r,_);return j.__wrap(s)}parseMeshesInstanced(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseMeshesInstanced(this.__wbg_ptr,r,_);return q.__wrap(s)}processGeometryBatch(t,r,_,s,i,a,c,d,ct,gt,at,pt){const et=k(t,e.__wbindgen_export3),z=b,S=M(r,e.__wbindgen_export3),rt=b,O=M(d,e.__wbindgen_export3),f=b,nt=M(ct,e.__wbindgen_export3),_t=b,st=M(gt,e.__wbindgen_export3),Dt=b,Tt=M(at,e.__wbindgen_export3),Et=b,Bt=k(pt,e.__wbindgen_export3),Gt=b,Wt=e.ifcapi_processGeometryBatch(this.__wbg_ptr,et,z,S,rt,_,s,i,a,c,O,f,nt,_t,st,Dt,Tt,Et,Bt,Gt);return m.__wrap(Wt)}parseToGpuGeometryAsync(t,r){const _=w(t,e.__wbindgen_export3,e.__wbindgen_export4),s=b,i=e.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,_,s,g(r));return u(i)}parseMeshesInstancedAsync(t,r){const _=w(t,e.__wbindgen_export3,e.__wbindgen_export4),s=b,i=e.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,_,s,g(r));return u(i)}parseToGpuInstancedGeometry(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,r,_);return Y.__wrap(s)}parseZeroCopy(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseZeroCopy(this.__wbg_ptr,r,_);return tt.__wrap(s)}debugProcessEntity953(t){let r,_;try{const a=e.__wbindgen_add_to_stack_pointer(-16),c=w(t,e.__wbindgen_export3,e.__wbindgen_export4),d=b;e.ifcapi_debugProcessEntity953(a,this.__wbg_ptr,c,d);var s=o().getInt32(a+4*0,!0),i=o().getInt32(a+4*1,!0);return r=s,_=i,l(s,i)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(r,_,1)}}debugProcessFirstWall(t){let r,_;try{const a=e.__wbindgen_add_to_stack_pointer(-16),c=w(t,e.__wbindgen_export3,e.__wbindgen_export4),d=b;e.ifcapi_debugProcessFirstWall(a,this.__wbg_ptr,c,d);var s=o().getInt32(a+4*0,!0),i=o().getInt32(a+4*1,!0);return r=s,_=i,l(s,i)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(r,_,1)}}getMemory(){const t=e.ifcapi_getMemory(this.__wbg_ptr);return u(t)}constructor(){const t=e.ifcapi_new();return this.__wbg_ptr=t>>>0,xt.register(this,this.__wbg_ptr,this),this}get version(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.ifcapi_version(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,l(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get is_ready(){return e.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_getGeoReference(this.__wbg_ptr,r,_);return s===0?void 0:U.__wrap(s)}parseMeshesWithRtc(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,r,_);return J.__wrap(s)}parseStreaming(t,r){const _=w(t,e.__wbindgen_export3,e.__wbindgen_export4),s=b,i=e.ifcapi_parseStreaming(this.__wbg_ptr,_,s,g(r));return u(i)}scanEntitiesFast(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,_);return u(s)}scanEntitiesFastBytes(t){const r=k(t,e.__wbindgen_export3),_=b,s=e.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,_);return u(s)}scanGeometryEntitiesFast(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,_);return u(s)}parse(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parse(this.__wbg_ptr,r,_);return u(s)}parseSymbolicRepresentations(t){const r=w(t,e.__wbindgen_export3,e.__wbindgen_export4),_=b,s=e.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,_);return $.__wrap(s)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class X{static __wrap(t){t=t>>>0;const r=Object.create(X.prototype);return r.__wbg_ptr=t,It.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedata_free(t,0)}get expressId(){return e.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.instancedata_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=I(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=e.instancedata_transform(this.__wbg_ptr);return u(t)}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);class R{static __wrap(t){t=t>>>0;const r=Object.create(R.prototype);return r.__wbg_ptr=t,vt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const r=e.instancedgeometry_get_instance(this.__wbg_ptr,t);return r===0?void 0:X.__wrap(r)}get instance_count(){return e.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=e.instancedgeometry_indices(this.__wbg_ptr);return u(t)}get normals(){const t=e.instancedgeometry_normals(this.__wbg_ptr);return u(t)}get positions(){const t=e.instancedgeometry_positions(this.__wbg_ptr);return u(t)}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class q{static __wrap(t){t=t>>>0;const r=Object.create(q.prototype);return r.__wbg_ptr=t,Ft.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ft.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return e.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const r=e.instancedmeshcollection_get(this.__wbg_ptr,t);return r===0?void 0:R.__wrap(r)}get length(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);class m{static __wrap(t){t=t>>>0;const r=Object.create(m.prototype);return r.__wbg_ptr=t,jt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return e.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return e.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return e.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_localToWorld(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),a=T(s,i).slice();return e.__wbindgen_export2(s,i*8,8),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return e.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return e.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=o().getInt32(_+4*0,!0),r=o().getFloat64(_+8*1,!0);return t===0?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}get(t){const r=e.meshcollection_get(this.__wbg_ptr,t);return r===0?void 0:v.__wrap(r)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);class J{static __wrap(t){t=t>>>0;const r=Object.create(J.prototype);return r.__wbg_ptr=t,Rt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=e.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return H.__wrap(t)}get(t){const r=e.meshcollectionwithrtc_get(this.__wbg_ptr,t);return r===0?void 0:v.__wrap(r)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=e.meshcollectionwithrtc_meshes(this.__wbg_ptr);return m.__wrap(t)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class v{static __wrap(t){t=t>>>0;const r=Object.create(v.prototype);return r.__wbg_ptr=t,zt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshdatajs_free(t,0)}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return e.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return e.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=I(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=e.meshdatajs_indices(this.__wbg_ptr);return u(t)}get normals(){const t=e.meshdatajs_normals(this.__wbg_ptr);return u(t)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,l(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get positions(){const t=e.meshdatajs_positions(this.__wbg_ptr);return u(t)}}Symbol.dispose&&(v.prototype[Symbol.dispose]=v.prototype.free);class H{static __wrap(t){t=t>>>0;const r=Object.create(H.prototype);return r.__wbg_ptr=t,St.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return e.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.rtcoffsetjs_toWorld(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),a=T(s,i).slice();return e.__wbindgen_export2(s,i*8,8),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}get x(){return e.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){e.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return e.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){e.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return e.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){e.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class K{static __wrap(t){t=t>>>0;const r=Object.create(K.prototype);return r.__wbg_ptr=t,Ot.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symboliccircle_free(t,0)}get expressId(){return e.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return e.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return e.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,l(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get radius(){return e.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return e.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return e.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,l(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get endAngle(){return e.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);class Q{static __wrap(t){t=t>>>0;const r=Object.create(Q.prototype);return r.__wbg_ptr=t,At.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicpolyline_free(t,0)}get expressId(){return e.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return e.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,l(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get points(){const t=e.symbolicpolyline_points(this.__wbg_ptr);return u(t)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,l(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get isClosed(){return e.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class ${static __wrap(t){t=t>>>0;const r=Object.create($.prototype);return r.__wbg_ptr=t,Mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const r=e.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return r===0?void 0:K.__wrap(r)}get totalCount(){return e.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return e.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const r=e.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return r===0?void 0:Q.__wrap(r)}get polylineCount(){return e.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=kt(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return e.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class tt{static __wrap(t){t=t>>>0;const r=Object.create(tt.prototype);return r.__wbg_ptr=t,lt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.zerocopymesh_bounds_max(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=I(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.zerocopymesh_bounds_min(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=I(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return e.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return e.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return e.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return e.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return e.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=e.zerocopymesh_new();return this.__wbg_ptr=t>>>0,lt.register(this,this.__wbg_ptr,this),this}get is_empty(){return e.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);const Ht=new Set(["basic","cors","default"]);async function Kt(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(_){if(n.ok&&Ht.has(n.type)&&n.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const r=await n.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{const r=await WebAssembly.instantiate(n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}}function Lt(){const n={};return n.wbg={},n.wbg.__wbg_Error_52673b7de5a0ca89=function(t,r){const _=Error(l(t,r));return g(_)},n.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(t){return typeof p(t)=="function"},n.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(t){return p(t)===void 0},n.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=e.memory;return g(t)},n.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(t,r){const _=p(r),s=typeof _=="number"?_:void 0;o().setFloat64(t+8*1,F(s)?0:s,!0),o().setInt32(t+4*0,!F(s),!0)},n.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,r){throw new Error(l(t,r))},n.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){p(t)._wbg_cb_unref()},n.wbg.__wbg_call_3020136f7a2d6e44=function(){return A(function(t,r,_){const s=p(t).call(p(r),p(_));return g(s)},arguments)},n.wbg.__wbg_call_abb4ff46ce38be40=function(){return A(function(t,r){const _=p(t).call(p(r));return g(_)},arguments)},n.wbg.__wbg_call_c8baa5c5e72d274e=function(){return A(function(t,r,_,s){const i=p(t).call(p(r),p(_),p(s));return g(i)},arguments)},n.wbg.__wbg_debug_9d0c87ddda3dc485=function(t){console.debug(p(t))},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,r){let _,s;try{_=t,s=r,console.error(l(t,r))}finally{e.__wbindgen_export2(_,s,1)}},n.wbg.__wbg_get_af9dab7e9603ea93=function(){return A(function(t,r){const _=Reflect.get(p(t),p(r));return g(_)},arguments)},n.wbg.__wbg_gpugeometry_new=function(t){const r=j.__wrap(t);return g(r)},n.wbg.__wbg_instancedgeometry_new=function(t){const r=R.__wrap(t);return g(r)},n.wbg.__wbg_length_86ce4877baf913bb=function(t){return p(t).length},n.wbg.__wbg_length_d45040a40c570362=function(t){return p(t).length},n.wbg.__wbg_meshdatajs_new=function(t){const r=v.__wrap(t);return g(r)},n.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return g(t)},n.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return g(t)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return g(t)},n.wbg.__wbg_new_ff12d2b041fb48f1=function(t,r){try{var _={a:t,b:r},s=(a,c)=>{const d=_.a;_.a=0;try{return Jt(d,_.b,a,c)}finally{_.a=d}};const i=new Promise(s);return g(i)}finally{_.a=_.b=0}},n.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,r){const _=new Float32Array(I(t,r));return g(_)},n.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,r){const _=new Uint32Array(kt(t,r));return g(_)},n.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,r){const _=new Function(l(t,r));return g(_)},n.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const r=new Uint32Array(t>>>0);return g(r)},n.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const r=new Float64Array(t>>>0);return g(r)},n.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const r=new Uint8Array(t>>>0);return g(r)},n.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(t,r,_){Float32Array.prototype.set.call(I(t,r),p(_))},n.wbg.__wbg_push_7d9be8f38fc13975=function(t,r){return p(t).push(p(r))},n.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const r=p(t).queueMicrotask;return g(r)},n.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(p(t))},n.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const r=Promise.resolve(p(t));return g(r)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(t,r,_){p(t)[u(r)]=u(_)},n.wbg.__wbg_set_781438a03c0c3c81=function(){return A(function(t,r,_){return Reflect.set(p(t),p(r),p(_))},arguments)},n.wbg.__wbg_set_7df433eea03a5c14=function(t,r,_){p(t)[r>>>0]=u(_)},n.wbg.__wbg_set_index_021489b2916af13e=function(t,r,_){p(t)[r>>>0]=_},n.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,r,_){p(t)[r>>>0]=_},n.wbg.__wbg_set_index_42abe35f117e614e=function(t,r,_){p(t)[r>>>0]=_>>>0},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,r){const _=p(r).stack,s=w(_,e.__wbindgen_export3,e.__wbindgen_export4),i=b;o().setInt32(t+4*1,i,!0),o().setInt32(t+4*0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return F(t)?0:g(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return F(t)?0:g(t)},n.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return F(t)?0:g(t)},n.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return F(t)?0:g(t)},n.wbg.__wbg_then_4f95312d68691235=function(t,r){const _=p(t).then(p(r));return g(_)},n.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(p(t))},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,r){const _=l(t,r);return g(_)},n.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const r=BigInt.asUintN(64,t);return g(r)},n.wbg.__wbindgen_cast_8410bcb836a2825d=function(t,r){const _=Vt(t,r,e.__wasm_bindgen_func_elem_1091,qt);return g(_)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return g(t)},n.wbg.__wbindgen_object_clone_ref=function(t){const r=p(t);return g(r)},n.wbg.__wbindgen_object_drop_ref=function(t){u(t)},n}function Pt(n,t){return e=n.exports,ot.__wbindgen_wasm_module=t,x=null,C=null,L=null,P=null,D=null,e.__wbindgen_start(),e}function Qt(n){if(e!==void 0)return e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Lt();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const r=new WebAssembly.Instance(n,t);return Pt(r,n)}async function ot(n){if(e!==void 0)return e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/assets/ifc-lite_bg-DD0A7Yow.wasm",import.meta.url));const t=Lt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:r,module:_}=await Kt(await n,t);return Pt(r,_)}let h=null;self.onmessage=async n=>{try{if(n.data.type==="prepass"||n.data.type==="prepass-fast"){h||(await ot(),h=new W);const t=new Uint8Array(n.data.sharedBuffer.byteLength);t.set(new Uint8Array(n.data.sharedBuffer));const r=n.data.type==="prepass-fast"?h.buildPrePassFast(t):h.buildPrePassOnce(t);self.postMessage({type:"prepass-result",result:r});return}if(n.data.type==="init"){n.data.wasmModule?Qt({module_or_path:n.data.wasmModule}):await ot(),h=new W,self.postMessage({type:"ready"});return}if(n.data.type==="process"){h||(await ot(),h=new W);const{sharedBuffer:t,jobsFlat:r,unitScale:_,rtcX:s,rtcY:i,rtcZ:a,needsShift:c,voidKeys:d,voidCounts:ct,voidValues:gt,styleIds:at,styleColors:pt}=n.data,et=new Uint8Array(t.byteLength);et.set(new Uint8Array(t));const z=h.processGeometryBatch(et,r,_,s,i,a,c,d,ct,gt,at,pt),S=[],rt=[];for(let O=0;O<z.length;O++){const f=z.get(O);if(!f)continue;const nt=new Float32Array(f.positions),_t=new Float32Array(f.normals),st=new Uint32Array(f.indices);S.push({expressId:f.expressId,ifcType:f.ifcType,positions:nt,normals:_t,indices:st,color:[f.color[0],f.color[1],f.color[2],f.color[3]]}),rt.push(nt.buffer,_t.buffer,st.buffer),f.free()}z.free(),self.postMessage({type:"batch",meshes:S},rt),self.postMessage({type:"complete",totalMeshes:S.length})}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}};
@@ -1,6 +1,6 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-CXd3z0DO.js","assets/index-D99fzcwI.js","assets/index-Ba4eoTe7.css"])))=>i.map(i=>d[i]);
2
- import { _ as u, b as _, d as M, __tla as __tla_0 } from "./index-D99fzcwI.js";
3
- import { N as Z, m as $, __tla as __tla_1 } from "./index-D99fzcwI.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-BQdwnOUt.js","assets/index-BybGZJTW.js","assets/index-Ba4eoTe7.css"])))=>i.map(i=>d[i]);
2
+ import { _ as u, b as _, d as M, __tla as __tla_0 } from "./index-BybGZJTW.js";
3
+ import { N as Z, m as $, __tla as __tla_1 } from "./index-BybGZJTW.js";
4
4
  let c, y, O, V, I, C, L;
5
5
  let __tla = Promise.all([
6
6
  (()=>{
@@ -91,7 +91,7 @@ let __tla = Promise.all([
91
91
  function D() {
92
92
  return m || (m = (async ()=>{
93
93
  try {
94
- const s = await u(()=>import("./browser-CXd3z0DO.js").then((i)=>i.b), __vite__mapDeps([0,1,2])), t = s.default ?? s;
94
+ const s = await u(()=>import("./browser-BQdwnOUt.js").then((i)=>i.b), __vite__mapDeps([0,1,2])), t = s.default ?? s;
95
95
  let e;
96
96
  try {
97
97
  e = (await u(()=>import("./esbuild-COv63sf-.js"), [])).default;