@ifc-lite/viewer 1.19.0 → 1.21.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.
- package/.turbo/turbo-build.log +59 -43
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +496 -0
- package/dist/assets/basketViewActivator-Bzw51jhm.js +71 -0
- package/dist/assets/{bcf-DOG9_WPX.js → bcf-4K724hw0.js} +18 -18
- package/dist/assets/decode-worker-t2EGKAxO.js +1708 -0
- package/dist/assets/drawing-2d-Bjy8YPrg.js +257 -0
- package/dist/assets/exporters-u0sz2Upj.js +259119 -0
- package/dist/assets/geometry-controller.worker-NH8pZmrU.js +7 -0
- package/dist/assets/geometry.worker-Bp4rW_R1.js +1 -0
- package/dist/assets/ids-B7AXEv7h.js +4067 -0
- package/dist/assets/ifc-lite-DfZHk36-.js +7 -0
- package/dist/assets/ifc-lite_bg-DlKs5-yM.wasm +0 -0
- package/dist/assets/ifc-lite_bg-PqmRe3Ph.wasm +0 -0
- package/dist/assets/index-CSWgTe1s.css +1 -0
- package/dist/assets/{index-BOi3BuUI.js → index-DVNSvEMh.js} +49877 -28410
- package/dist/assets/laz-perf-Cvr_Lepg.js +1 -0
- package/dist/assets/laz-perf-DnSyzVYH.wasm +0 -0
- package/dist/assets/{native-bridge-CpBeOPQa.js → native-bridge-BiD01jI9.js} +2 -2
- package/dist/assets/parser.worker-Bnbrl6gy.js +182 -0
- package/dist/assets/{sandbox-Baez7n-t.js → sandbox-DPD1ROr0.js} +548 -530
- package/dist/assets/{server-client-BB6cMAXE.js → server-client-DP8fMPY9.js} +1 -1
- package/dist/assets/three-CDRZThFA.js +4057 -0
- package/dist/assets/{wasm-bridge-CAYCUHbE.js → wasm-bridge-CErti6zX.js} +1 -1
- package/dist/assets/workerHelpers-CBbWSJmd.js +36 -0
- package/dist/index.html +10 -9
- package/dist/samples/building-architecture.ifc +453 -0
- package/dist/samples/hello-wall.ifc +1054 -0
- package/dist/samples/infra-bridge.ifc +962 -0
- package/index.html +1 -1
- package/package.json +15 -10
- package/public/samples/building-architecture.ifc +453 -0
- package/public/samples/hello-wall.ifc +1054 -0
- package/public/samples/infra-bridge.ifc +962 -0
- package/src/App.tsx +37 -3
- package/src/components/mcp/HeroScene.tsx +876 -0
- package/src/components/mcp/McpLanding.tsx +1318 -0
- package/src/components/mcp/McpPlayground.tsx +524 -0
- package/src/components/mcp/PlaygroundChat.tsx +1097 -0
- package/src/components/mcp/PlaygroundViewer.tsx +815 -0
- package/src/components/mcp/README.md +171 -0
- package/src/components/mcp/data.ts +659 -0
- package/src/components/mcp/playground-dispatcher.ts +1649 -0
- package/src/components/mcp/playground-files.ts +107 -0
- package/src/components/mcp/playground-uploads.ts +122 -0
- package/src/components/mcp/types.ts +65 -0
- package/src/components/mcp/use-mcp-page.ts +109 -0
- package/src/components/viewer/BasketPresentationDock.tsx +3 -0
- package/src/components/viewer/CesiumOverlay.tsx +165 -120
- package/src/components/viewer/DeviationPanel.tsx +172 -0
- package/src/components/viewer/HierarchyPanel.tsx +29 -3
- package/src/components/viewer/HoverTooltip.tsx +5 -0
- package/src/components/viewer/IDSAuditSummary.tsx +389 -0
- package/src/components/viewer/IDSPanel.tsx +80 -26
- package/src/components/viewer/MainToolbar.tsx +79 -7
- package/src/components/viewer/MergeLayersBanner.tsx +108 -0
- package/src/components/viewer/MobileToolbar.tsx +326 -0
- package/src/components/viewer/PointCloudClasses.tsx +111 -0
- package/src/components/viewer/PointCloudLegend.tsx +119 -0
- package/src/components/viewer/PointCloudPanel.tsx +52 -1
- package/src/components/viewer/PropertiesPanel.tsx +37 -6
- package/src/components/viewer/RectSelectionOverlay.tsx +48 -0
- package/src/components/viewer/StatusBar.tsx +14 -0
- package/src/components/viewer/ViewerLayout.tsx +288 -95
- package/src/components/viewer/Viewport.tsx +86 -18
- package/src/components/viewer/ViewportContainer.tsx +60 -15
- package/src/components/viewer/ViewportOverlays.tsx +41 -26
- package/src/components/viewer/mouseHandlerTypes.ts +22 -0
- package/src/components/viewer/properties/GeoreferencingPanel.tsx +77 -8
- package/src/components/viewer/properties/MaterialCard.tsx +2 -2
- package/src/components/viewer/selectionHandlers.ts +41 -0
- package/src/components/viewer/tools/SectionPanel.tsx +181 -24
- package/src/components/viewer/tools/SectionVisualization.tsx +384 -3
- package/src/components/viewer/useAnimationLoop.ts +22 -0
- package/src/components/viewer/useMouseControls.ts +296 -3
- package/src/components/viewer/usePointCloudSync.ts +8 -1
- package/src/components/viewer/useRenderUpdates.ts +21 -1
- package/src/components/viewer/useTouchControls.ts +100 -41
- package/src/generated/mcp-catalog.json +82 -0
- package/src/hooks/federationLoadGate.test.ts +90 -0
- package/src/hooks/federationLoadGate.ts +127 -0
- package/src/hooks/ids/idsDataAccessor.ts +11 -259
- package/src/hooks/ingest/pointCloudIngest.ts +127 -16
- package/src/hooks/useDrawingGeneration.ts +81 -8
- package/src/hooks/useIDS.ts +90 -10
- package/src/hooks/useIfcFederation.ts +94 -16
- package/src/hooks/useIfcLoader.ts +289 -64
- package/src/hooks/useViewerSelectors.ts +10 -0
- package/src/lib/geo/cesium-bridge.ts +84 -67
- package/src/lib/geo/clamp-anchor.test.ts +80 -0
- package/src/lib/geo/clamp-anchor.ts +57 -0
- package/src/lib/geo/effective-georef.test.ts +79 -1
- package/src/lib/geo/effective-georef.ts +83 -0
- package/src/lib/geo/reproject.ts +26 -13
- package/src/lib/geo/terrain-elevation.ts +166 -0
- package/src/lib/lens/adapter.ts +1 -1
- package/src/lib/llm/context-builder.ts +1 -1
- package/src/lib/perf/memoryAccounting.test.ts +92 -0
- package/src/lib/perf/memoryAccounting.ts +235 -0
- package/src/sdk/adapters/mutation-view.ts +1 -1
- package/src/store/constants.ts +39 -2
- package/src/store/index.ts +6 -1
- package/src/store/slices/cesiumSlice.ts +1 -1
- package/src/store/slices/idsSlice.ts +24 -0
- package/src/store/slices/loadingSlice.ts +12 -0
- package/src/store/slices/pointCloudSlice.ts +72 -1
- package/src/store/slices/sectionSlice.test.ts +590 -1
- package/src/store/slices/sectionSlice.ts +344 -17
- package/src/store/slices/uiSlice.merge-layers.test.ts +217 -0
- package/src/store/slices/uiSlice.ts +60 -2
- package/src/store/types.ts +42 -0
- package/src/store.ts +13 -0
- package/src/utils/acquireFileBuffer.test.ts +231 -0
- package/src/utils/acquireFileBuffer.ts +128 -0
- package/src/utils/ifcConfig.ts +24 -0
- package/src/utils/nativeSpatialDataStore.ts +20 -2
- package/src/utils/spatialHierarchy.test.ts +116 -0
- package/src/utils/spatialHierarchy.ts +23 -0
- package/tailwind.config.js +5 -0
- package/tsconfig.json +1 -0
- package/vite.config.ts +12 -0
- package/dist/assets/basketViewActivator-RZy5c3Td.js +0 -1
- package/dist/assets/decode-worker-Collf_X_.js +0 -1320
- package/dist/assets/drawing-2d-DoxKMqbO.js +0 -257
- package/dist/assets/exporters-BraHBeoi.js +0 -81583
- package/dist/assets/geometry.worker-DQEZB2rB.js +0 -1
- package/dist/assets/ids-DQ5jY0E8.js +0 -1
- package/dist/assets/ifc-lite_bg-4yUkDRD8.wasm +0 -0
- package/dist/assets/index-0XpVr_S5.css +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
function ee(s,t){return new Promise(e=>{s.addEventListener("message",function n({data:_}){_?.type===t&&(s.removeEventListener("message",n),e(_))})})}ee(self,"wasm_bindgen_worker_init").then(async({init:s,receiver:t})=>{const e=await Promise.resolve().then(function(){return me});await e.default(s),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(t)});async function ge(s,t,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");const n={type:"wasm_bindgen_worker_init",init:{module_or_path:s,memory:t},receiver:e.receiver()};await Promise.all(Array.from({length:e.numThreads()},async()=>{const _=new Worker(new URL("/assets/workerHelpers-CBbWSJmd.js",import.meta.url),{type:"module"});return _.postMessage(n),await ee(_,"wasm_bindgen_worker_ready"),_})),e.build()}let r;function b(s){at===x.length&&x.push(x.length+1);const t=at;return at=x[t],x[t]=s,t}function Ct(s){if(ct==1)throw new Error("out of js stack");return x[--ct]=s,ct}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function pe(s){s<132||(x[s]=at,at=s)}function M(s,t){return s=s>>>0,be().subarray(s/4,s/4+t)}function A(s,t){return s=s>>>0,le().subarray(s/8,s/8+t)}function re(s,t){return s=s>>>0,ne().subarray(s/4,s/4+t)}let rt=null;function a(){return(rt===null||rt.buffer!==r.memory.buffer)&&(rt=new DataView(r.memory.buffer)),rt}let nt=null;function be(){return(nt===null||nt.buffer!==r.memory.buffer)&&(nt=new Float32Array(r.memory.buffer)),nt}let _t=null;function le(){return(_t===null||_t.buffer!==r.memory.buffer)&&(_t=new Float64Array(r.memory.buffer)),_t}function w(s,t){return s=s>>>0,ue(s,t)}let st=null;function ne(){return(st===null||st.buffer!==r.memory.buffer)&&(st=new Uint32Array(r.memory.buffer)),st}let ot=null;function it(){return(ot===null||ot.buffer!==r.memory.buffer)&&(ot=new Uint8Array(r.memory.buffer)),ot}function c(s){return x[s]}function S(s,t){try{return s.apply(this,t)}catch(e){r.__wbindgen_export(b(e))}}let x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);let at=x.length;function C(s){return s==null}function zt(s,t,e,n){const _={a:s,b:t,cnt:1,dtor:e},o=(...i)=>{_.cnt++;const g=_.a;_.a=0;try{return n(g,_.b,...i)}finally{_.a=g,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,At.unregister(_))},At.register(o,_,_),o}function f(s,t){const e=t(s.length*4,4)>>>0;return ne().set(s,e/4),p=s.length,e}function h(s,t){const e=t(s.length*1,1)>>>0;return it().set(s,e/1),p=s.length,e}function u(s,t,e){if(e===void 0){const g=pt.encode(s),d=t(g.length,1)>>>0;return it().subarray(d,d+g.length).set(g),p=g.length,d}let n=s.length,_=t(n,1)>>>0;const o=it();let i=0;for(;i<n;i++){const g=s.charCodeAt(i);if(g>127)break;o[_+i]=g}if(i!==n){i!==0&&(s=s.slice(i)),_=e(_,n,n=i+s.length*3,1)>>>0;const g=it().subarray(_+i,_+n),d=pt.encodeInto(s,g);i+=d.written,_=e(_,n,i,1)>>>0}return p=i,_}let ct=128;function l(s){const t=c(s);return pe(s),t}let gt=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;gt&>.decode();const de=2146435072;let St=0;function ue(s,t){return St+=t,St>=de&&(gt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),gt.decode(),St=t),gt.decode(it().slice(s,s+t))}const pt=typeof TextEncoder<"u"?new TextEncoder:void 0;pt&&(pt.encodeInto=function(s,t){const e=pt.encode(s);return t.set(e),{read:s.length,written:e.length}});let p=0;function Tt(s,t,e){r.__wasm_bindgen_func_elem_1177(s,t,b(e))}function we(s,t,e,n){r.__wasm_bindgen_func_elem_1449(s,t,b(e),b(n))}const Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_georeferencejs_free(s>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpugeometry_free(s>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometry_free(s>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometrycollection_free(s>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometryref_free(s>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpumeshmetadata_free(s>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_ifcapi_free(s>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedata_free(s>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedgeometry_free(s>>>0,1)),Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedmeshcollection_free(s>>>0,1)),Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollection_free(s>>>0,1)),Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollectionwithrtc_free(s>>>0,1)),Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshdatajs_free(s>>>0,1)),Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profilecollection_free(s>>>0,1)),Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profileentryjs_free(s>>>0,1)),Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_rtcoffsetjs_free(s>>>0,1)),Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symboliccircle_free(s>>>0,1)),$t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicpolyline_free(s>>>0,1)),qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicrepresentationcollection_free(s>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_zerocopymesh_free(s>>>0,1)),Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_wbg_rayon_poolbuilder_free(s>>>0,1));class z{static __wrap(t){t=t>>>0;const e=Object.create(z.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(g,this.__wbg_ptr,t,e,n);var _=a().getInt32(g+4*0,!0),o=a().getInt32(g+4*1,!0),i=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(g,this.__wbg_ptr,t,e,n);var _=a().getInt32(g+4*0,!0),o=a().getInt32(g+4*1,!0),i=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(n,this.__wbg_ptr);var t=a().getInt32(n+4*0,!0),e=a().getInt32(n+4*1,!0);let _;return t!==0&&(_=w(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=A(t,e).slice();return r.__wbindgen_export2(t,e*8,8),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class k{static __wrap(t){t=t>>>0;const e=Object.create(k.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,n){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,n)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(_,this.__wbg_ptr,t);var e=a().getInt32(_+4*0,!0),n=a().getInt32(_+4*1,!0);let o;return e!==0&&(o=w(e,n).slice(),r.__wbindgen_export2(e,n*1,1)),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:L.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,Mt.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(k.prototype[Symbol.dispose]=k.prototype.free);class T{static __wrap(t){t=t>>>0;const e=Object.create(T.prototype);return e.__wbg_ptr=t,kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,kt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class O{static __wrap(t){t=t>>>0;const e=Object.create(O.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:T.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,Pt.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:E.__wrap(e)}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class E{static __wrap(t){t=t>>>0;const e=Object.create(E.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);class L{static __wrap(t){t=t>>>0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=M(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class dt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshes(this.__wbg_ptr,e,n);return I.__wrap(_)}parseMeshesAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,n,_,b(e));return l(o)}buildPrePassFast(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,n);return l(_)}buildPrePassOnce(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,n);return l(_)}parseMeshesSubset(t,e,n,_){const o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),i=p,g=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,o,i,e,n,_);return I.__wrap(g)}parseToGpuGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,n);return k.__wrap(_)}parseMeshesInstanced(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,n);return R.__wrap(_)}processGeometryBatch(t,e,n,_,o,i,g,d,y,F,X,$){const q=h(t,r.__wbindgen_export3),K=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(d,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(F,r.__wbindgen_export3),mt=p,xt=f(X,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatch(this.__wbg_ptr,q,K,H,Q,n,_,o,i,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}scanEntityIndexShard(t,e,n,_){try{const d=r.__wbindgen_add_to_stack_pointer(-16),y=h(t,r.__wbindgen_export3),F=p;r.ifcapi_scanEntityIndexShard(d,this.__wbg_ptr,y,F,Ct(e),n,_);var o=a().getInt32(d+4*0,!0),i=a().getInt32(d+4*1,!0),g=a().getInt32(d+4*2,!0);if(g)throw l(i);return l(o)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}buildPrePassStreaming(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16),d=h(t,r.__wbindgen_export3),y=p;r.ifcapi_buildPrePassStreaming(g,this.__wbg_ptr,d,y,Ct(e),n);var _=a().getInt32(g+4*0,!0),o=a().getInt32(g+4*1,!0),i=a().getInt32(g+4*2,!0);if(i)throw l(o);return l(_)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}parseToGpuGeometryAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,n,_,b(e));return l(o)}parseMeshesInstancedAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,n,_,b(e));return l(o)}benchmarkPureCpuParallelism(t){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_benchmarkPureCpuParallelism(o,this.__wbg_ptr,t);var e=a().getInt32(o+4*0,!0),n=a().getInt32(o+4*1,!0),_=A(e,n).slice();return r.__wbindgen_export2(e,n*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}parseToGpuInstancedGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,n);return O.__wrap(_)}processGeometryBatchParallel(t,e,n,_,o,i,g,d,y,F,X,$){const q=h(t,r.__wbindgen_export3),K=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(d,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(F,r.__wbindgen_export3),mt=p,xt=f(X,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatchParallel(this.__wbg_ptr,q,K,H,Q,n,_,o,i,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}processInstancedGeometryBatch(t,e,n,_,o,i,g,d,y){const F=h(t,r.__wbindgen_export3),X=p,$=f(e,r.__wbindgen_export3),q=p,K=f(d,r.__wbindgen_export3),H=p,Q=h(y,r.__wbindgen_export3),tt=p,et=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,F,X,$,q,n,_,o,i,g,K,H,Q,tt);return R.__wrap(et)}parseZeroCopy(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,n);return Y.__wrap(_)}extractProfiles(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_extractProfiles(this.__wbg_ptr,n,_,e);return G.__wrap(o)}debugProcessEntity953(t){let e,n;try{const i=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),d=p;r.ifcapi_debugProcessEntity953(i,this.__wbg_ptr,g,d);var _=a().getInt32(i+4*0,!0),o=a().getInt32(i+4*1,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}debugProcessFirstWall(t){let e,n;try{const i=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),d=p;r.ifcapi_debugProcessFirstWall(i,this.__wbg_ptr,g,d);var _=a().getInt32(i+4*0,!0),o=a().getInt32(i+4*1,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return l(t)}setEntityIndex(t,e,n){const _=f(t,r.__wbindgen_export3),o=p,i=f(e,r.__wbindgen_export3),g=p,d=f(n,r.__wbindgen_export3),y=p;r.ifcapi_setEntityIndex(this.__wbg_ptr,_,o,i,g,d,y)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,Bt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_getGeoReference(this.__wbg_ptr,e,n);return _===0?void 0:z.__wrap(_)}parseMeshesWithRtc(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,n);return D.__wrap(_)}parseStreaming(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseStreaming(this.__wbg_ptr,n,_,b(e));return l(o)}scanEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,n);return l(_)}scanEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,n);return l(_)}scanGeometryEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,n);return l(_)}scanRelevantEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,n);return l(_)}parse(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parse(this.__wbg_ptr,e,n);return l(_)}parseSymbolicRepresentations(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,n);return J.__wrap(_)}}Symbol.dispose&&(dt.prototype[Symbol.dispose]=dt.prototype.free);class B{static __wrap(t){t=t>>>0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=M(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:B.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return l(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return l(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class R{static __wrap(t){t=t>>>0;const e=Object.create(R.prototype);return e.__wbg_ptr=t,Wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:P.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,Ut.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(g,this.__wbg_ptr,t,e,n);var _=a().getInt32(g+4*0,!0),o=a().getInt32(g+4*1,!0),i=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(n,this.__wbg_ptr);var t=a().getInt32(n+4*0,!0),e=a().getFloat64(n+8*1,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:j.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class D{static __wrap(t){t=t>>>0;const e=Object.create(D.prototype);return e.__wbg_ptr=t,Vt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return U.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:j.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return I.__wrap(t)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class j{static __wrap(t){t=t>>>0;const e=Object.create(j.prototype);return e.__wbg_ptr=t,Zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=M(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return l(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return l(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);class G{static __wrap(t){t=t>>>0;const e=Object.create(G.prototype);return e.__wbg_ptr=t,Jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:W.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class W{static __wrap(t){t=t>>>0;const e=Object.create(W.prototype);return e.__wbg_ptr=t,Yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return l(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return l(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return l(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return l(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class U{static __wrap(t){t=t>>>0;const e=Object.create(U.prototype);return e.__wbg_ptr=t,Nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(g,this.__wbg_ptr,t,e,n);var _=a().getInt32(g+4*0,!0),o=a().getInt32(g+4*1,!0),i=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class V{static __wrap(t){t=t>>>0;const e=Object.create(V.prototype);return e.__wbg_ptr=t,Xt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class Z{static __wrap(t){t=t>>>0;const e=Object.create(Z.prototype);return e.__wbg_ptr=t,$t.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return l(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(o,this.__wbg_ptr);var n=a().getInt32(o+4*0,!0),_=a().getInt32(o+4*1,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);class J{static __wrap(t){t=t>>>0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,qt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:V.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:Z.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=re(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class Y{static __wrap(t){t=t>>>0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=M(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0),n=M(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,Rt.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);function _e(s){const t=r.initThreadPool(s);return l(t)}class N{static __wrap(t){t=t>>>0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,Kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return r.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}build(){r.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}receiver(){return r.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);function fe(s){r.wbg_rayon_start_worker(s)}const ye=new Set(["basic","cors","default"]);async function he(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(n){if(s.ok&&ye.has(s.type)&&s.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",n);else throw n}const e=await s.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(s,t);return e instanceof WebAssembly.Instance?{instance:e,module:s}:e}}function se(s){const t={};return t.wbg={},t.wbg.__wbg_Error_52673b7de5a0ca89=function(e,n){const _=Error(w(e,n));return b(_)},t.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){return typeof c(e)=="function"},t.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){return c(e)===void 0},t.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const e=r.memory;return b(e)},t.wbg.__wbg___wbindgen_module_967adef62ea6cbf8=function(){const e=wt.__wbindgen_wasm_module;return b(e)},t.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(e,n){const _=c(n),o=typeof _=="number"?_:void 0;a().setFloat64(e+8*1,C(o)?0:o,!0),a().setInt32(e+4*0,!C(o),!0)},t.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1=function(e){throw l(e)},t.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,n){throw new Error(w(e,n))},t.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(e){c(e)._wbg_cb_unref()},t.wbg.__wbg_async_bba5a2ac54b734df=function(e){return c(e).async},t.wbg.__wbg_buffer_063cd102cc769a1c=function(e){const n=c(e).buffer;return b(n)},t.wbg.__wbg_call_3020136f7a2d6e44=function(){return S(function(e,n,_){const o=c(e).call(c(n),c(_));return b(o)},arguments)},t.wbg.__wbg_call_abb4ff46ce38be40=function(){return S(function(e,n){const _=c(e).call(c(n));return b(_)},arguments)},t.wbg.__wbg_call_c8baa5c5e72d274e=function(){return S(function(e,n,_,o){const i=c(e).call(c(n),c(_),c(o));return b(i)},arguments)},t.wbg.__wbg_data_8bf4ae669a78a688=function(e){const n=c(e).data;return b(n)},t.wbg.__wbg_debug_9d0c87ddda3dc485=function(e){console.debug(c(e))},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let _,o;try{_=e,o=n,console.error(w(e,n))}finally{r.__wbindgen_export2(_,o,1)}},t.wbg.__wbg_get_af9dab7e9603ea93=function(){return S(function(e,n){const _=Reflect.get(c(e),c(n));return b(_)},arguments)},t.wbg.__wbg_gpugeometry_new=function(e){const n=k.__wrap(e);return b(n)},t.wbg.__wbg_info_ce6bcc489c22f6f0=function(e){console.info(c(e))},t.wbg.__wbg_instancedgeometry_new=function(e){const n=P.__wrap(e);return b(n)},t.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(e){let n;try{n=c(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_86ce4877baf913bb=function(e){return c(e).length},t.wbg.__wbg_length_d45040a40c570362=function(e){return c(e).length},t.wbg.__wbg_log_1d990106d99dacb7=function(e){console.log(c(e))},t.wbg.__wbg_meshdatajs_new=function(e){const n=j.__wrap(e);return b(n)},t.wbg.__wbg_new_1ba21ce319a06297=function(){const e=new Object;return b(e)},t.wbg.__wbg_new_25f239778d6112b9=function(){const e=new Array;return b(e)},t.wbg.__wbg_new_53cb1e86c1ef5d2a=function(){return S(function(e,n){const _=new Worker(w(e,n));return b(_)},arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){const e=new Error;return b(e)},t.wbg.__wbg_new_de1e660b88fc921f=function(e){const n=new Int32Array(c(e));return b(n)},t.wbg.__wbg_new_ff12d2b041fb48f1=function(e,n){try{var _={a:e,b:n},o=(g,d)=>{const y=_.a;_.a=0;try{return we(y,_.b,g,d)}finally{_.a=y}};const i=new Promise(o);return b(i)}finally{_.a=_.b=0}},t.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(e,n){const _=new Float32Array(M(e,n));return b(_)},t.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(e,n){const _=new Uint32Array(re(e,n));return b(_)},t.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(e,n){const _=new Function(w(e,n));return b(_)},t.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(e){const n=new Uint32Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(e){const n=new Float64Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(e){const n=new Uint8Array(e>>>0);return b(n)},t.wbg.__wbg_now_69d776cd24f5215b=function(){return Date.now()},t.wbg.__wbg_of_7779827fa663eec8=function(e,n,_){const o=Array.of(c(e),c(n),c(_));return b(o)},t.wbg.__wbg_postMessage_07504dbe15265d5c=function(){return S(function(e,n){c(e).postMessage(c(n))},arguments)},t.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(e,n,_){Float32Array.prototype.set.call(M(e,n),c(_))},t.wbg.__wbg_push_7d9be8f38fc13975=function(e,n){return c(e).push(c(n))},t.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(e){const n=c(e).queueMicrotask;return b(n)},t.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(e){queueMicrotask(c(e))},t.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(e){const n=Promise.resolve(c(e));return b(n)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,_){c(e)[l(n)]=l(_)},t.wbg.__wbg_set_781438a03c0c3c81=function(){return S(function(e,n,_){return Reflect.set(c(e),c(n),c(_))},arguments)},t.wbg.__wbg_set_7df433eea03a5c14=function(e,n,_){c(e)[n>>>0]=l(_)},t.wbg.__wbg_set_index_021489b2916af13e=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_04c4b93e64d08a52=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_42abe35f117e614e=function(e,n,_){c(e)[n>>>0]=_>>>0},t.wbg.__wbg_set_onmessage_deb94985de696ac7=function(e,n){c(e).onmessage=c(n)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const _=c(n).stack,o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),i=p;a().setInt32(e+4*1,i,!0),a().setInt32(e+4*0,o,!0)},t.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(e,n,_){const o=ge(l(e),l(n),N.__wrap(_));return b(o)},t.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const e=typeof global>"u"?null:global;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const e=typeof globalThis>"u"?null:globalThis;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const e=typeof self>"u"?null:self;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const e=typeof window>"u"?null:window;return C(e)?0:b(e)},t.wbg.__wbg_then_4f95312d68691235=function(e,n){const _=c(e).then(c(n));return b(_)},t.wbg.__wbg_value_4cd497eeadba94bd=function(e){const n=c(e).value;return b(n)},t.wbg.__wbg_waitAsync_8afec80ffd213eca=function(e,n,_){const o=Atomics.waitAsync(c(e),n>>>0,_);return b(o)},t.wbg.__wbg_waitAsync_c186cb97ffacd552=function(){const e=Atomics.waitAsync;return b(e)},t.wbg.__wbg_warn_6e567d0d926ff881=function(e){console.warn(c(e))},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){const _=w(e,n);return b(_)},t.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){const n=BigInt.asUintN(64,e);return b(n)},t.wbg.__wbindgen_cast_5981c93f1c3e6401=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1176,Tt);return b(_)},t.wbg.__wbindgen_cast_c66ca3e1e2ec9281=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1176,Tt);return b(_)},t.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return b(e)},t.wbg.__wbindgen_link_203404ece0e9bab9=function(e){const n=`onmessage = function (ev) {
|
|
2
|
+
let [ia, index, value] = ev.data;
|
|
3
|
+
ia = new Int32Array(ia.buffer);
|
|
4
|
+
let result = Atomics.wait(ia, index, value);
|
|
5
|
+
postMessage(result);
|
|
6
|
+
};
|
|
7
|
+
`,_=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),i=p;a().setInt32(e+4*1,i,!0),a().setInt32(e+4*0,o,!0)},t.wbg.__wbindgen_object_clone_ref=function(e){const n=c(e);return b(n)},t.wbg.__wbindgen_object_drop_ref=function(e){l(e)},t.wbg.memory=s||new WebAssembly.Memory({initial:132,maximum:65536,shared:!0}),t}function oe(s,t,e){if(r=s.exports,wt.__wbindgen_wasm_module=t,rt=null,nt=null,_t=null,st=null,ot=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return r.__wbindgen_start(e),r}function ie(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=se(t);s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));const _=new WebAssembly.Instance(s,n);return oe(_,s,e)}async function wt(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof s>"u"&&(s=new URL("/assets/ifc-lite_bg-PqmRe3Ph.wasm",import.meta.url));const n=se(t);(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));const{instance:_,module:o}=await he(await s,n);return oe(_,o,e)}var me=Object.freeze({__proto__:null,GeoReferenceJs:z,GpuGeometry:k,GpuInstancedGeometry:T,GpuInstancedGeometryCollection:O,GpuInstancedGeometryRef:E,GpuMeshMetadata:L,IfcAPI:dt,InstanceData:B,InstancedGeometry:P,InstancedMeshCollection:R,MeshCollection:I,MeshCollectionWithRtc:D,MeshDataJs:j,ProfileCollection:G,ProfileEntryJs:W,RtcOffsetJs:U,SymbolicCircle:V,SymbolicPolyline:Z,SymbolicRepresentationCollection:J,ZeroCopyMesh:Y,default:wt,initSync:ie,initThreadPool:_e,wbg_rayon_PoolBuilder:N,wbg_rayon_start_worker:fe});let v=null,bt=!1,ae=!1,ut=!1;function Ht(){if(!v||ut)return;const s=v;typeof s.setMergeLayers=="function"&&s.setMergeLayers(ae),ut=!0}let m=null;function xe(s){return new Uint8Array(s)}function ve(s){const t=new Uint8Array(s.byteLength);return t.set(new Uint8Array(s)),t}function Ie(s){return{sharedBuffer:s.sharedBuffer,localBytes:xe(s.sharedBuffer),sabFallbackTaken:!1,unitScale:s.unitScale,rtcX:s.rtcX,rtcY:s.rtcY,rtcZ:s.rtcZ,needsShift:s.needsShift,voidKeys:s.voidKeys,voidCounts:s.voidCounts,voidValues:s.voidValues,styleIds:s.styleIds,styleColors:s.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function ce(s){if(s.pendingMeshes.length===0)return;const t=s.pendingMeshes,e=s.pendingTransfers;s.pendingMeshes=[],s.pendingTransfers=[],s.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},e)}function je(s,t){for(let e=0;e<t.length;e++){const n=t.get(e);if(!n)continue;const _=new Float32Array(n.positions),o=new Float32Array(n.normals),i=new Uint32Array(n.indices);s.pendingMeshes.push({expressId:n.expressId,ifcType:n.ifcType,positions:_,normals:o,indices:i,color:[n.color[0],n.color[1],n.color[2],n.color[3]]}),s.pendingTransfers.push(_.buffer,o.buffer,i.buffer),s.cumulativeMeshBytes+=_.byteLength+o.byteLength+i.byteLength,n.free()}t.free()}async function lt(s,t){const e=Math.floor(t.length/3);if(e!==0)try{if(!v)throw new Error("controller API not initialised before stream-chunk");const n=v.processGeometryBatchParallel(s.localBytes,t,s.unitScale,s.rtcX,s.rtcY,s.rtcZ,s.needsShift,s.voidKeys,s.voidCounts,s.voidValues,s.styleIds,s.styleColors);je(s,n)}catch(n){const _=n.message;if(!s.sabFallbackTaken&&s.localBytes.buffer instanceof SharedArrayBuffer){s.sabFallbackTaken=!0,console.warn(`[controller] processGeometryBatchParallel rejected SAB view (${_}), copying`),s.localBytes=ve(s.sharedBuffer),await lt(s,t);return}if(e===1){console.warn(`[controller] skipping entity #${t[0]}: ${_}`);return}console.warn(`[controller] batch of ${e} entities failed (${_}), splitting…`);const o=Math.floor(e/2)*3;await lt(s,t.slice(0,o)),await lt(s,t.slice(o))}}const Qt=1e6;async function Fe(s,t){const e=Math.floor(t.length/3);for(let n=0;n<e;n+=Qt){const _=n*3,o=Math.min(_+Qt*3,t.length);await lt(s,t.slice(_,o)),ce(s)}}function Se(s){ce(s);let t=0;try{t=v?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",wasmHeapBytes:t,meshBytes:s.cumulativeMeshBytes}),self.postMessage({type:"complete",totalMeshes:s.totalMeshesEmitted})}let te=Promise.resolve();self.onmessage=s=>{const t=s;te=te.then(async()=>{try{if(t.data.type==="init"){t.data.wasmModule?ie({module_or_path:t.data.wasmModule}):await wt(),v=new dt,ut=!1,Ht();const e=typeof navigator<"u"?navigator.hardwareConcurrency??4:4,n=Math.max(1,e-1);let _=null;for(let o=1;o<=5;o++)try{const i=performance.now();await _e(n),console.log(`[controller] rayon pool ready (${n} threads, attempt ${o}) @ ${Math.round(performance.now()-i)}ms`),bt=!0,_=null;break}catch(i){_=i,console.warn(`[controller] initThreadPool attempt ${o} failed:`,i),o<5&&await new Promise(g=>setTimeout(g,25))}if(!bt){const o=_ instanceof Error?_.message:String(_??"unknown initThreadPool failure");self.postMessage({type:"error",message:`controller: initThreadPool failed after 5 attempts: ${o}`});return}try{const o=v;typeof o.benchmarkPureCpuParallelism=="function"&&o.benchmarkPureCpuParallelism(9)}catch(o){console.warn("[controller] microbench failed:",o)}self.postMessage({type:"ready"});return}if(t.data.type==="stream-start"){if(!v||!bt)throw new Error('controller: stream-start before init/threadPool ready — host must wait for {type:"ready"} before dispatching');m=Ie({sharedBuffer:t.data.sharedBuffer,unitScale:t.data.unitScale,rtcX:t.data.rtcX,rtcY:t.data.rtcY,rtcZ:t.data.rtcZ,needsShift:t.data.needsShift,voidKeys:t.data.voidKeys,voidCounts:t.data.voidCounts,voidValues:t.data.voidValues,styleIds:t.data.styleIds,styleColors:t.data.styleColors});return}if(t.data.type==="stream-chunk"){if(!m||!v||!bt)throw new Error("controller: stream-chunk before init/stream-start");await Fe(m,t.data.jobsFlat);return}if(t.data.type==="stream-end"){if(!m)return;Se(m),m=null;return}if(t.data.type==="set-styles"){if(!m)return;m.styleIds=t.data.styleIds,m.styleColors=t.data.styleColors,m.voidKeys=t.data.voidKeys,m.voidCounts=t.data.voidCounts,m.voidValues=t.data.voidValues;return}if(t.data.type==="set-merge-layers"){ae=t.data.enabled===!0,ut=!1,Ht();return}if(t.data.type==="set-entity-index"){if(!v)throw new Error('controller: set-entity-index before init — host must wait for {type:"ready"} before dispatching');v.setEntityIndex(t.data.ids,t.data.starts,t.data.lengths);return}console.warn(`[controller] ignoring unhandled message type: ${t.data.type}`)}catch(e){const n=e instanceof Error?e.message:String(e);console.error("[controller] handler error:",e),self.postMessage({type:"error",message:n})}})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let r;function d(n){X===h.length&&h.push(h.length+1);const t=X;return X=h[t],h[t]=n,t}function It(n){if(N==1)throw new Error("out of js stack");return h[--N]=n,N}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));function oe(n){n<132||(h[n]=X,X=n)}function P(n,t){return n=n>>>0,ae().subarray(n/4,n/4+t)}function Z(n,t){return n=n>>>0,ce().subarray(n/8,n/8+t)}function Xt(n,t){return n=n>>>0,Nt().subarray(n/4,n/4+t)}let z=null;function a(){return(z===null||z.buffer.detached===!0||z.buffer.detached===void 0&&z.buffer!==r.memory.buffer)&&(z=new DataView(r.memory.buffer)),z}let G=null;function ae(){return(G===null||G.byteLength===0)&&(G=new Float32Array(r.memory.buffer)),G}let W=null;function ce(){return(W===null||W.byteLength===0)&&(W=new Float64Array(r.memory.buffer)),W}function f(n,t){return n=n>>>0,de(n,t)}let U=null;function Nt(){return(U===null||U.byteLength===0)&&(U=new Uint32Array(r.memory.buffer)),U}let V=null;function Y(){return(V===null||V.byteLength===0)&&(V=new Uint8Array(r.memory.buffer)),V}function p(n){return h[n]}function D(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_export(d(e))}}let h=new Array(128).fill(void 0);h.push(void 0,null,!0,!1);let X=h.length;function O(n){return n==null}function ge(n,t,e,_){const s={a:n,b:t,cnt:1,dtor:e},i=(...o)=>{s.cnt++;const c=s.a;s.a=0;try{return _(c,s.b,...o)}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 x(n,t){const e=t(n.length*4,4)>>>0;return Nt().set(n,e/4),g=n.length,e}function v(n,t){const e=t(n.length*1,1)>>>0;return Y().set(n,e/1),g=n.length,e}function w(n,t,e){if(e===void 0){const c=K.encode(n),l=t(c.length,1)>>>0;return Y().subarray(l,l+c.length).set(c),g=c.length,l}let _=n.length,s=t(_,1)>>>0;const i=Y();let o=0;for(;o<_;o++){const c=n.charCodeAt(o);if(c>127)break;i[s+o]=c}if(o!==_){o!==0&&(n=n.slice(o)),s=e(s,_,_=o+n.length*3,1)>>>0;const c=Y().subarray(s+o,s+_),l=K.encodeInto(n,c);o+=l.written,s=e(s,_,o,1)>>>0}return g=o,s}let N=128;function b(n){const t=p(n);return oe(n),t}let ct=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ct.decode();const pe=2146435072;let wt=0;function de(n,t){return wt+=t,wt>=pe&&(ct=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ct.decode(),wt=t),ct.decode(Y().subarray(n,n+t))}const K=new TextEncoder;"encodeInto"in K||(K.encodeInto=function(n,t){const e=K.encode(n);return t.set(e),{read:n.length,written:e.length}});let g=0;function be(n,t,e){r.__wasm_bindgen_func_elem_1267(n,t,d(e))}function le(n,t,e,_){r.__wasm_bindgen_func_elem_1306(n,t,d(e),d(_))}const St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_georeferencejs_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpugeometry_free(n>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometry_free(n>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometrycollection_free(n>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometryref_free(n>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpumeshmetadata_free(n>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_ifcapi_free(n>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedata_free(n>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedgeometry_free(n>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedmeshcollection_free(n>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshcollection_free(n>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshcollectionwithrtc_free(n>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshdatajs_free(n>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_profilecollection_free(n>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_profileentryjs_free(n>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_rtcoffsetjs_free(n>>>0,1)),Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symboliccircle_free(n>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symbolicpolyline_free(n>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symbolicrepresentationcollection_free(n>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_zerocopymesh_free(n>>>0,1));class ${static __wrap(t){t=t>>>0;const e=Object.create($.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,_){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(c,this.__wbg_ptr,t,e,_);var s=a().getInt32(c+4*0,!0),i=a().getInt32(c+4*1,!0),o=Z(s,i).slice();return r.__wbindgen_export2(s,i*8,8),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,_){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(c,this.__wbg_ptr,t,e,_);var s=a().getInt32(c+4*0,!0),i=a().getInt32(c+4*1,!0),o=Z(s,i).slice();return r.__wbindgen_export2(s,i*8,8),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getInt32(_+4*1,!0);let s;return t!==0&&(s=f(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=Z(t,e).slice();return r.__wbindgen_export2(t,e*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class A{static __wrap(t){t=t>>>0;const e=Object.create(A.prototype);return e.__wbg_ptr=t,ft.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,_){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,_)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(s,this.__wbg_ptr,t);var e=a().getInt32(s+4*0,!0),_=a().getInt32(s+4*1,!0);let i;return e!==0&&(i=f(e,_).slice(),r.__wbindgen_export2(e,_*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:Q.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,ft.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);class q{static __wrap(t){t=t>>>0;const e=Object.create(q.prototype);return e.__wbg_ptr=t,yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,yt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);class J{static __wrap(t){t=t>>>0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,ht.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:q.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,ht.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:H.__wrap(e)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class H{static __wrap(t){t=t>>>0;const e=Object.create(H.prototype);return e.__wbg_ptr=t,jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class Q{static __wrap(t){t=t>>>0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=P(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class F{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshes(this.__wbg_ptr,e,_);return M.__wrap(s)}parseMeshesAsync(t,e){const _=w(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,_,s,d(e));return b(i)}buildPrePassFast(t){const e=v(t,r.__wbindgen_export3),_=g,s=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,_);return b(s)}buildPrePassOnce(t){const e=v(t,r.__wbindgen_export3),_=g,s=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,_);return b(s)}parseMeshesSubset(t,e,_,s){const i=w(t,r.__wbindgen_export3,r.__wbindgen_export4),o=g,c=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,o,e,_,s);return M.__wrap(c)}parseToGpuGeometry(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,_);return A.__wrap(s)}parseMeshesInstanced(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,_);return L.__wrap(s)}processGeometryBatch(t,e,_,s,i,o,c,l,m,k,E,T){const R=v(t,r.__wbindgen_export3),pt=g,dt=x(e,r.__wbindgen_export3),bt=g,lt=x(l,r.__wbindgen_export3),ut=g,Ht=x(m,r.__wbindgen_export3),Qt=g,te=x(k,r.__wbindgen_export3),ee=g,re=x(E,r.__wbindgen_export3),ne=g,_e=v(T,r.__wbindgen_export3),se=g,ie=r.ifcapi_processGeometryBatch(this.__wbg_ptr,R,pt,dt,bt,_,s,i,o,c,lt,ut,Ht,Qt,te,ee,re,ne,_e,se);return M.__wrap(ie)}scanEntityIndexShard(t,e,_,s){try{const l=r.__wbindgen_add_to_stack_pointer(-16),m=v(t,r.__wbindgen_export3),k=g;r.ifcapi_scanEntityIndexShard(l,this.__wbg_ptr,m,k,It(e),_,s);var i=a().getInt32(l+4*0,!0),o=a().getInt32(l+4*1,!0),c=a().getInt32(l+4*2,!0);if(c)throw b(o);return b(i)}finally{r.__wbindgen_add_to_stack_pointer(16),h[N++]=void 0}}buildPrePassStreaming(t,e,_){try{const c=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export3),m=g;r.ifcapi_buildPrePassStreaming(c,this.__wbg_ptr,l,m,It(e),_);var s=a().getInt32(c+4*0,!0),i=a().getInt32(c+4*1,!0),o=a().getInt32(c+4*2,!0);if(o)throw b(i);return b(s)}finally{r.__wbindgen_add_to_stack_pointer(16),h[N++]=void 0}}parseToGpuGeometryAsync(t,e){const _=w(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,_,s,d(e));return b(i)}parseMeshesInstancedAsync(t,e){const _=w(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,_,s,d(e));return b(i)}parseToGpuInstancedGeometry(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,_);return J.__wrap(s)}processInstancedGeometryBatch(t,e,_,s,i,o,c,l,m){const k=v(t,r.__wbindgen_export3),E=g,T=x(e,r.__wbindgen_export3),R=g,pt=x(l,r.__wbindgen_export3),dt=g,bt=v(m,r.__wbindgen_export3),lt=g,ut=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,k,E,T,R,_,s,i,o,c,pt,dt,bt,lt);return L.__wrap(ut)}parseZeroCopy(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,_);return at.__wrap(s)}extractProfiles(t,e){const _=w(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_extractProfiles(this.__wbg_ptr,_,s,e);return rt.__wrap(i)}debugProcessEntity953(t){let e,_;try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=w(t,r.__wbindgen_export3,r.__wbindgen_export4),l=g;r.ifcapi_debugProcessEntity953(o,this.__wbg_ptr,c,l);var s=a().getInt32(o+4*0,!0),i=a().getInt32(o+4*1,!0);return e=s,_=i,f(s,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,_,1)}}debugProcessFirstWall(t){let e,_;try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=w(t,r.__wbindgen_export3,r.__wbindgen_export4),l=g;r.ifcapi_debugProcessFirstWall(o,this.__wbg_ptr,c,l);var s=a().getInt32(o+4*0,!0),i=a().getInt32(o+4*1,!0);return e=s,_=i,f(s,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,_,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return b(t)}setEntityIndex(t,e,_){const s=x(t,r.__wbindgen_export3),i=g,o=x(e,r.__wbindgen_export3),c=g,l=x(_,r.__wbindgen_export3),m=g;r.ifcapi_setEntityIndex(this.__wbg_ptr,s,i,o,c,l,m)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,kt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_getGeoReference(this.__wbg_ptr,e,_);return s===0?void 0:$.__wrap(s)}parseMeshesWithRtc(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,_);return et.__wrap(s)}parseStreaming(t,e){const _=w(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseStreaming(this.__wbg_ptr,_,s,d(e));return b(i)}scanEntitiesFast(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,_);return b(s)}scanEntitiesFastBytes(t){const e=v(t,r.__wbindgen_export3),_=g,s=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,_);return b(s)}scanGeometryEntitiesFast(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,_);return b(s)}scanRelevantEntitiesFastBytes(t){const e=v(t,r.__wbindgen_export3),_=g,s=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,_);return b(s)}parse(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parse(this.__wbg_ptr,e,_);return b(s)}parseSymbolicRepresentations(t){const e=w(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,_);return ot.__wrap(s)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class tt{static __wrap(t){t=t>>>0;const e=Object.create(tt.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=P(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class B{static __wrap(t){t=t>>>0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:tt.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return b(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return b(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class L{static __wrap(t){t=t>>>0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:B.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class M{static __wrap(t){t=t>>>0;const e=Object.create(M.prototype);return e.__wbg_ptr=t,Ct.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,_){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(c,this.__wbg_ptr,t,e,_);var s=a().getInt32(c+4*0,!0),i=a().getInt32(c+4*1,!0),o=Z(s,i).slice();return r.__wbindgen_export2(s,i*8,8),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=a().getInt32(_+4*0,!0),e=a().getFloat64(_+8*1,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:C.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);class et{static __wrap(t){t=t>>>0;const e=Object.create(et.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return _t.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:C.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return M.__wrap(t)}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class C{static __wrap(t){t=t>>>0;const e=Object.create(C.prototype);return e.__wbg_ptr=t,At.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=P(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return b(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(C.prototype[Symbol.dispose]=C.prototype.free);class rt{static __wrap(t){t=t>>>0;const e=Object.create(rt.prototype);return e.__wbg_ptr=t,Bt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:nt.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);class nt{static __wrap(t){t=t>>>0;const e=Object.create(nt.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return b(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return b(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return b(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return b(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);class _t{static __wrap(t){t=t>>>0;const e=Object.create(_t.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,_){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(c,this.__wbg_ptr,t,e,_);var s=a().getInt32(c+4*0,!0),i=a().getInt32(c+4*1,!0),o=Z(s,i).slice();return r.__wbindgen_export2(s,i*8,8),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);class st{static __wrap(t){t=t>>>0;const e=Object.create(st.prototype);return e.__wbg_ptr=t,Tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class it{static __wrap(t){t=t>>>0;const e=Object.create(it.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+4*0,!0),s=a().getInt32(i+4*1,!0);return t=_,e=s,f(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(it.prototype[Symbol.dispose]=it.prototype.free);class ot{static __wrap(t){t=t>>>0;const e=Object.create(ot.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:st.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:it.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=Xt(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(ot.prototype[Symbol.dispose]=ot.prototype.free);class at{static __wrap(t){t=t>>>0;const e=Object.create(at.prototype);return e.__wbg_ptr=t,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=P(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(s,this.__wbg_ptr);var t=a().getInt32(s+4*0,!0),e=a().getInt32(s+4*1,!0),_=P(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,mt.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(at.prototype[Symbol.dispose]=at.prototype.free);const ue=new Set(["basic","cors","default"]);async function we(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&&ue.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 e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function Kt(){const n={};return n.wbg={},n.wbg.__wbg_Error_52673b7de5a0ca89=function(t,e){const _=Error(f(t,e));return d(_)},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=r.memory;return d(t)},n.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(t,e){const _=p(e),s=typeof _=="number"?_:void 0;a().setFloat64(t+8*1,O(s)?0:s,!0),a().setInt32(t+4*0,!O(s),!0)},n.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,e){throw new Error(f(t,e))},n.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){p(t)._wbg_cb_unref()},n.wbg.__wbg_call_3020136f7a2d6e44=function(){return D(function(t,e,_){const s=p(t).call(p(e),p(_));return d(s)},arguments)},n.wbg.__wbg_call_abb4ff46ce38be40=function(){return D(function(t,e){const _=p(t).call(p(e));return d(_)},arguments)},n.wbg.__wbg_call_c8baa5c5e72d274e=function(){return D(function(t,e,_,s){const i=p(t).call(p(e),p(_),p(s));return d(i)},arguments)},n.wbg.__wbg_debug_9d0c87ddda3dc485=function(t){console.debug(p(t))},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let _,s;try{_=t,s=e,console.error(f(t,e))}finally{r.__wbindgen_export2(_,s,1)}},n.wbg.__wbg_get_af9dab7e9603ea93=function(){return D(function(t,e){const _=Reflect.get(p(t),p(e));return d(_)},arguments)},n.wbg.__wbg_gpugeometry_new=function(t){const e=A.__wrap(t);return d(e)},n.wbg.__wbg_info_ce6bcc489c22f6f0=function(t){console.info(p(t))},n.wbg.__wbg_instancedgeometry_new=function(t){const e=B.__wrap(t);return d(e)},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 e=C.__wrap(t);return d(e)},n.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return d(t)},n.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return d(t)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return d(t)},n.wbg.__wbg_new_ff12d2b041fb48f1=function(t,e){try{var _={a:t,b:e},s=(o,c)=>{const l=_.a;_.a=0;try{return le(l,_.b,o,c)}finally{_.a=l}};const i=new Promise(s);return d(i)}finally{_.a=_.b=0}},n.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,e){const _=new Float32Array(P(t,e));return d(_)},n.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,e){const _=new Uint32Array(Xt(t,e));return d(_)},n.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,e){const _=new Function(f(t,e));return d(_)},n.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const e=new Uint32Array(t>>>0);return d(e)},n.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const e=new Float64Array(t>>>0);return d(e)},n.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const e=new Uint8Array(t>>>0);return d(e)},n.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(t,e,_){Float32Array.prototype.set.call(P(t,e),p(_))},n.wbg.__wbg_push_7d9be8f38fc13975=function(t,e){return p(t).push(p(e))},n.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const e=p(t).queueMicrotask;return d(e)},n.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(p(t))},n.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const e=Promise.resolve(p(t));return d(e)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(t,e,_){p(t)[b(e)]=b(_)},n.wbg.__wbg_set_781438a03c0c3c81=function(){return D(function(t,e,_){return Reflect.set(p(t),p(e),p(_))},arguments)},n.wbg.__wbg_set_7df433eea03a5c14=function(t,e,_){p(t)[e>>>0]=b(_)},n.wbg.__wbg_set_index_021489b2916af13e=function(t,e,_){p(t)[e>>>0]=_},n.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,e,_){p(t)[e>>>0]=_},n.wbg.__wbg_set_index_42abe35f117e614e=function(t,e,_){p(t)[e>>>0]=_>>>0},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const _=p(e).stack,s=w(_,r.__wbindgen_export3,r.__wbindgen_export4),i=g;a().setInt32(t+4*1,i,!0),a().setInt32(t+4*0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return O(t)?0:d(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return O(t)?0:d(t)},n.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return O(t)?0:d(t)},n.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return O(t)?0:d(t)},n.wbg.__wbg_then_4f95312d68691235=function(t,e){const _=p(t).then(p(e));return d(_)},n.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(p(t))},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,e){const _=f(t,e);return d(_)},n.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const e=BigInt.asUintN(64,t);return d(e)},n.wbg.__wbindgen_cast_87cdb333eb97349f=function(t,e){const _=ge(t,e,r.__wasm_bindgen_func_elem_1266,be);return d(_)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return d(t)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=p(t);return d(e)},n.wbg.__wbindgen_object_drop_ref=function(t){b(t)},n}function $t(n,t){return r=n.exports,j.__wbindgen_wasm_module=t,z=null,G=null,W=null,U=null,V=null,r.__wbindgen_start(),r}function fe(n){if(r!==void 0)return r;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=Kt();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const e=new WebAssembly.Instance(n,t);return $t(e,n)}async function j(n){if(r!==void 0)return r;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-DlKs5-yM.wasm",import.meta.url));const t=Kt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:_}=await we(await n,t);return $t(e,_)}let u=null,qt=!1,I=!1;function S(){if(!u||I)return;const n=u;typeof n.setMergeLayers=="function"&&n.setMergeLayers(qt),I=!0}function xt(n){return new Uint8Array(n)}function vt(n){const t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t}let y=null;const Wt=1e6;function Ut(n){return{sharedBuffer:n.sharedBuffer,localBytes:xt(n.sharedBuffer),sabFallbackTaken:!1,unitScale:n.unitScale,rtcX:n.rtcX,rtcY:n.rtcY,rtcZ:n.rtcZ,needsShift:n.needsShift,voidKeys:n.voidKeys,voidCounts:n.voidCounts,voidValues:n.voidValues,styleIds:n.styleIds,styleColors:n.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function Jt(n){if(n.pendingMeshes.length===0)return;const t=n.pendingMeshes,e=n.pendingTransfers;n.pendingMeshes=[],n.pendingTransfers=[],n.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},e)}function ye(n,t){for(let e=0;e<t.length;e++){const _=t.get(e);if(!_)continue;const s=new Float32Array(_.positions),i=new Float32Array(_.normals),o=new Uint32Array(_.indices);n.pendingMeshes.push({expressId:_.expressId,ifcType:_.ifcType,positions:s,normals:i,indices:o,color:[_.color[0],_.color[1],_.color[2],_.color[3]]}),n.pendingTransfers.push(s.buffer,i.buffer,o.buffer),n.cumulativeMeshBytes+=s.byteLength+i.byteLength+o.byteLength,_.free()}t.free()}async function gt(n,t){const e=Math.floor(t.length/3);if(e!==0)try{u||(await j(),u=new F,I=!1,S());const _=u.processGeometryBatch(n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors);ye(n,_)}catch(_){const s=_.message;if(!n.sabFallbackTaken&&n.localBytes.buffer instanceof SharedArrayBuffer){n.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),n.localBytes=vt(n.sharedBuffer),await gt(n,t);return}if(e===1){console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),u=null;return}console.warn(`[Worker] Batch of ${e} entities failed (${s}), splitting…`),u=null;const i=Math.floor(e/2)*3;await gt(n,t.slice(0,i)),await gt(n,t.slice(i))}}async function Vt(n,t){const e=Math.floor(t.length/3);for(let _=0;_<e;_+=Wt){const s=_*3,i=Math.min(s+Wt*3,t.length);await gt(n,t.subarray(s,i)),Jt(n)}}function Zt(n){Jt(n);let t=0;try{t=u?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",meshBytes:n.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage({type:"complete",totalMeshes:n.totalMeshesEmitted})}let Yt=Promise.resolve();self.onmessage=n=>{Yt=Yt.then(()=>he(n)).catch(t=>{self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})})};async function he(n){try{if(n.data.type==="prepass-streaming"){u||(await j(),u=new F,I=!1,S()),self.postMessage({type:"prepass-progress",phase:"parsing"});const t=n.data.sharedBuffer,e=n.data.chunkSize??5e4;let _=xt(t),s=!1;const i=o=>{self.postMessage({type:"prepass-stream",event:o})};try{u.buildPrePassStreaming(_,i,e)}catch(o){const c=o instanceof Error?o.message:String(o);if(!s)s=!0,console.warn(`[Worker] Streaming prepass with SAB view failed (${c}), retrying with copy`),_=vt(t),u.buildPrePassStreaming(_,i,e);else throw o}return}if(n.data.type==="prepass"||n.data.type==="prepass-fast"){u||(await j(),u=new F,I=!1,S()),self.postMessage({type:"prepass-progress",phase:"parsing"});const t=n.data.sharedBuffer,e=n.data.type==="prepass-fast";let _;try{const s=xt(t);_=e?u.buildPrePassFast(s):u.buildPrePassOnce(s)}catch(s){const i=s instanceof Error?s.message:String(s);console.warn(`[Worker] Prepass with SAB view failed (${i}), retrying with copy`);const o=vt(t);_=e?u.buildPrePassFast(o):u.buildPrePassOnce(o)}self.postMessage({type:"prepass-result",result:_});return}if(n.data.type==="init"){n.data.wasmModule?fe({module_or_path:n.data.wasmModule}):await j(),u=new F,I=!1,S(),self.postMessage({type:"ready"});return}if(n.data.type==="process"){u||(await j(),u=new F,I=!1,S());const{sharedBuffer:t,jobsFlat:e,unitScale:_,rtcX:s,rtcY:i,rtcZ:o,needsShift:c,voidKeys:l,voidCounts:m,voidValues:k,styleIds:E,styleColors:T}=n.data,R=Ut({sharedBuffer:t,unitScale:_,rtcX:s,rtcY:i,rtcZ:o,needsShift:c,voidKeys:l,voidCounts:m,voidValues:k,styleIds:E,styleColors:T});y=R,await Vt(R,e),Zt(R),y=null;return}if(n.data.type==="stream-start"){u||(await j(),u=new F,I=!1,S()),y=Ut({sharedBuffer:n.data.sharedBuffer,unitScale:n.data.unitScale,rtcX:n.data.rtcX,rtcY:n.data.rtcY,rtcZ:n.data.rtcZ,needsShift:n.data.needsShift,voidKeys:n.data.voidKeys,voidCounts:n.data.voidCounts,voidValues:n.data.voidValues,styleIds:n.data.styleIds,styleColors:n.data.styleColors});return}if(n.data.type==="stream-chunk"){if(!y)throw new Error("stream-chunk received before stream-start");await Vt(y,n.data.jobsFlat);return}if(n.data.type==="set-styles"){if(!y)return;y.styleIds=n.data.styleIds,y.styleColors=n.data.styleColors,y.voidKeys=n.data.voidKeys,y.voidCounts=n.data.voidCounts,y.voidValues=n.data.voidValues;return}if(n.data.type==="set-entity-index"){u||(await j(),u=new F,I=!1,S()),u.setEntityIndex(n.data.ids,n.data.starts,n.data.lengths);return}if(n.data.type==="set-merge-layers"){qt=n.data.enabled===!0,I=!1,S();return}if(n.data.type==="stream-end"){if(!y)throw new Error("stream-end received before stream-start");Zt(y),y=null;return}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}}
|