@ifc-lite/viewer 1.28.0 → 1.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/.turbo/turbo-build.log +34 -41
  2. package/CHANGELOG.md +10 -0
  3. package/dist/assets/{basketViewActivator-BNRDNuUJ.js → basketViewActivator-Ce38DhXd.js} +7 -7
  4. package/dist/assets/{bcf-DCwCuP7n.js → bcf-Cv_O3JfD.js} +1 -1
  5. package/dist/assets/{deflate-DNGgs8Ur.js → deflate-HbyMq59o.js} +1 -1
  6. package/dist/assets/drawing-2d-DW98umlt.js +257 -0
  7. package/dist/assets/{exporters-B9v81gi9.js → exporters-BuD3XRzB.js} +463 -416
  8. package/dist/assets/geometry.worker-TH3fCCoY.js +1 -0
  9. package/dist/assets/{geotiff-D-YCLS4g.js → geotiff-B2HA8Bwm.js} +10 -10
  10. package/dist/assets/{ids-CCpq-5d3.js → ids-DYUFMd5f.js} +4 -4
  11. package/dist/assets/{ifc-lite_bg-DbgS5EUA.wasm → ifc-lite_bg-BEA5DLmg.wasm} +0 -0
  12. package/dist/assets/index-E9wB0zWt.css +1 -0
  13. package/dist/assets/{index-Bgb3_Pu_.js → index-n5O1QJMM.js} +36808 -39415
  14. package/dist/assets/{index.es-CWfqZyyr.js → index.es-BKVIpZgL.js} +8 -8
  15. package/dist/assets/{jpeg-DGOAeUqU.js → jpeg-C7hjKjPX.js} +1 -1
  16. package/dist/assets/{jspdf.es.min-XPLU2Wkq.js → jspdf.es.min-oWlFc42Y.js} +4 -4
  17. package/dist/assets/{lerc-1PMSCHwX.js → lerc-BfIOGhQz.js} +1 -1
  18. package/dist/assets/{lzw-C65U9lNM.js → lzw-B0jRuuW5.js} +1 -1
  19. package/dist/assets/{native-bridge-XxXos6yI.js → native-bridge-DpB-dtEn.js} +5 -2
  20. package/dist/assets/{packbits-BdMWXC3m.js → packbits-DVvBTC39.js} +1 -1
  21. package/dist/assets/{parser.worker-Ddwo3_06.js → parser.worker-BDsWQ6rc.js} +1 -1
  22. package/dist/assets/{pdf-CRwaZf3s.js → pdf-dVIqI5ac.js} +9 -9
  23. package/dist/assets/raw-C0ZJYGmN.js +1 -0
  24. package/dist/assets/{sandbox-0sDo3g3m.js → sandbox-qpJlrNN0.js} +8 -8
  25. package/dist/assets/{server-client-cTCJ-853.js → server-client-DVZ2huNS.js} +1 -1
  26. package/dist/assets/{webimage-BtakWX7W.js → webimage-B394g0Tw.js} +1 -1
  27. package/dist/assets/{xlsx-B1YOg2QB.js → xlsx-D-oHO76J.js} +7 -7
  28. package/dist/assets/{zstd-CmwsbxmM.js → zstd-Bf38MwV2.js} +1 -1
  29. package/dist/index.html +8 -8
  30. package/package.json +5 -5
  31. package/src/App.tsx +1 -3
  32. package/src/components/viewer/BCFPanel.tsx +1 -16
  33. package/src/components/viewer/ChatPanel.tsx +11 -46
  34. package/src/components/viewer/HierarchyPanel.tsx +2 -176
  35. package/src/components/viewer/IDSPanel.tsx +1 -26
  36. package/src/components/viewer/MainToolbar.tsx +75 -185
  37. package/src/components/viewer/MobileToolbar.tsx +1 -9
  38. package/src/components/viewer/PropertiesPanel.tsx +28 -126
  39. package/src/components/viewer/ScriptPanel.tsx +8 -34
  40. package/src/components/viewer/Section2DPanel.tsx +32 -1
  41. package/src/components/viewer/ViewerLayout.tsx +0 -2
  42. package/src/components/viewer/ViewportContainer.tsx +24 -42
  43. package/src/components/viewer/ViewportOverlays.tsx +1 -4
  44. package/src/components/viewer/useGeometryStreaming.ts +0 -2
  45. package/src/hooks/ingest/federationAlign.ts +7 -0
  46. package/src/hooks/useDrawingGeneration.ts +211 -13
  47. package/src/hooks/useIfcCache.ts +94 -41
  48. package/src/hooks/useIfcFederation.ts +2 -3
  49. package/src/hooks/useIfcLoader.ts +10 -1051
  50. package/src/services/cacheService.ts +9 -25
  51. package/src/services/desktop-export.ts +2 -59
  52. package/src/services/file-dialog.ts +8 -142
  53. package/src/store/constants.ts +23 -0
  54. package/src/store/index.ts +3 -5
  55. package/src/store/slices/drawing2DSlice.ts +8 -0
  56. package/src/store/slices/visibilitySlice.ts +22 -1
  57. package/src/store/types.ts +1 -71
  58. package/src/utils/ifcConfig.ts +0 -12
  59. package/vite.config.ts +6 -3
  60. package/DESKTOP_CONTRACT_VERSION +0 -1
  61. package/dist/assets/drawing-2d-D0dDf6Lh.js +0 -257
  62. package/dist/assets/event-B0kAzHa-.js +0 -1
  63. package/dist/assets/geometry.worker-Bpa3115V.js +0 -1
  64. package/dist/assets/index-BtbXFKsX.css +0 -1
  65. package/dist/assets/raw-CJgQdyuZ.js +0 -1
  66. package/dist/assets/tauri-core-stub-D8Fa-u43.js +0 -1
  67. package/dist/assets/tauri-dialog-stub-r7Wksg7o.js +0 -1
  68. package/dist/assets/tauri-fs-stub-BdeRC7aK.js +0 -1
  69. package/src/components/viewer/DesktopEntitlementBanner.tsx +0 -74
  70. package/src/components/viewer/SettingsPage.tsx +0 -581
  71. package/src/lib/desktop/desktopEntitlementEvents.ts +0 -39
  72. package/src/lib/desktop-entitlement.ts +0 -43
  73. package/src/lib/desktop-product.ts +0 -130
  74. package/src/lib/platform.ts +0 -23
  75. package/src/services/desktop-cache.ts +0 -186
  76. package/src/services/desktop-harness.ts +0 -196
  77. package/src/services/desktop-logger.ts +0 -20
  78. package/src/services/desktop-native-metadata.ts +0 -230
  79. package/src/services/desktop-panel-actions.ts +0 -43
  80. package/src/services/desktop-preferences.ts +0 -44
  81. package/src/services/fs-cache.ts +0 -212
  82. package/src/services/tauri-core-stub.ts +0 -7
  83. package/src/services/tauri-dialog-stub.ts +0 -7
  84. package/src/services/tauri-fs-stub.ts +0 -7
  85. package/src/services/tauri-modules.d.ts +0 -50
  86. package/src/store/slices/desktopEntitlementSlice.ts +0 -86
  87. package/src/utils/desktopModelSnapshot.ts +0 -359
  88. package/src/utils/nativeSpatialDataStore.ts +0 -277
  89. package/src-tauri/Cargo.toml +0 -29
  90. package/src-tauri/build.rs +0 -7
  91. package/src-tauri/capabilities/default.json +0 -18
  92. package/src-tauri/icons/128x128.png +0 -0
  93. package/src-tauri/icons/128x128@2x.png +0 -0
  94. package/src-tauri/icons/32x32.png +0 -0
  95. package/src-tauri/icons/Square107x107Logo.png +0 -0
  96. package/src-tauri/icons/Square142x142Logo.png +0 -0
  97. package/src-tauri/icons/Square150x150Logo.png +0 -0
  98. package/src-tauri/icons/Square284x284Logo.png +0 -0
  99. package/src-tauri/icons/Square30x30Logo.png +0 -0
  100. package/src-tauri/icons/Square310x310Logo.png +0 -0
  101. package/src-tauri/icons/Square44x44Logo.png +0 -0
  102. package/src-tauri/icons/Square71x71Logo.png +0 -0
  103. package/src-tauri/icons/Square89x89Logo.png +0 -0
  104. package/src-tauri/icons/StoreLogo.png +0 -0
  105. package/src-tauri/icons/icon.icns +0 -0
  106. package/src-tauri/icons/icon.ico +0 -0
  107. package/src-tauri/icons/icon.png +0 -0
  108. package/src-tauri/src/lib.rs +0 -21
  109. package/src-tauri/src/main.rs +0 -10
  110. package/src-tauri/tauri.conf.json +0 -39
@@ -0,0 +1 @@
1
+ let n;function g(e){O===y.length&&y.push(y.length+1);const t=O;return O=y[t],y[t]=e,t}function $t(e){if(J==1)throw new Error("out of js stack");return y[--J]=e,J}const at=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function qt(e){e<132||(y[e]=O,O=e)}function nt(e,t){return e=e>>>0,ee().subarray(e/4,e/4+t)}function Jt(e,t){return e=e>>>0,re().subarray(e/8,e/8+t)}function Ft(e,t){return e=e>>>0,jt().subarray(e/4,e/4+t)}function Nt(e,t){return e=e>>>0,te().subarray(e/8,e/8+t)}function Qt(e,t){return e=e>>>0,k().subarray(e/1,e/1+t)}let R=null;function te(){return(R===null||R.byteLength===0)&&(R=new BigUint64Array(n.memory.buffer)),R}let F=null;function a(){return(F===null||F.buffer.detached===!0||F.buffer.detached===void 0&&F.buffer!==n.memory.buffer)&&(F=new DataView(n.memory.buffer)),F}let T=null;function ee(){return(T===null||T.byteLength===0)&&(T=new Float32Array(n.memory.buffer)),T}let B=null;function re(){return(B===null||B.byteLength===0)&&(B=new Float64Array(n.memory.buffer)),B}function f(e,t){return e=e>>>0,se(e,t)}let E=null;function jt(){return(E===null||E.byteLength===0)&&(E=new Uint32Array(n.memory.buffer)),E}let P=null;function k(){return(P===null||P.byteLength===0)&&(P=new Uint8Array(n.memory.buffer)),P}function d(e){return y[e]}function et(e,t){try{return e.apply(this,t)}catch(r){n.__wbindgen_export(g(r))}}let y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);let O=y.length;function C(e){return e==null}function ne(e,t,r,_){const s={a:e,b:t,cnt:1,dtor:r},i=(...c)=>{s.cnt++;const o=s.a;s.a=0;try{return _(o,s.b,...c)}finally{s.a=o,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--s.cnt===0&&(s.dtor(s.a,s.b),s.a=0,at.unregister(s))},at.register(i,s,s),i}function v(e,t){const r=t(e.length*4,4)>>>0;return jt().set(e,r/4),p=e.length,r}function S(e,t){const r=t(e.length*1,1)>>>0;return k().set(e,r/1),p=e.length,r}function m(e,t,r){if(r===void 0){const o=z.encode(e),b=t(o.length,1)>>>0;return k().subarray(b,b+o.length).set(o),p=o.length,b}let _=e.length,s=t(_,1)>>>0;const i=k();let c=0;for(;c<_;c++){const o=e.charCodeAt(c);if(o>127)break;i[s+c]=o}if(c!==_){c!==0&&(e=e.slice(c)),s=r(s,_,_=c+e.length*3,1)>>>0;const o=k().subarray(s+c,s+_),b=z.encodeInto(e,o);c+=b.written,s=r(s,_,c,1)>>>0}return p=c,s}let J=128;function l(e){const t=d(e);return qt(e),t}let N=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});N.decode();const _e=2146435072;let rt=0;function se(e,t){return rt+=t,rt>=_e&&(N=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),N.decode(),rt=t),N.decode(k().subarray(e,e+t))}const z=new TextEncoder;"encodeInto"in z||(z.encodeInto=function(e,t){const r=z.encode(e);return t.set(r),{read:e.length,written:r.length}});let p=0;function ie(e,t,r){n.__wasm_bindgen_func_elem_675(e,t,g(r))}function oe(e,t,r,_){n.__wasm_bindgen_func_elem_709(e,t,g(r),g(_))}typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>n.__wbg_clashrunresult_free(e>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>n.__wbg_clashsession_free(e>>>0,1));const ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_gridaxiscollection_free(e>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_gridaxisjs_free(e>>>0,1)),gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_ifcapi_free(e>>>0,1)),pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_meshcollection_free(e>>>0,1)),dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_meshdatajs_free(e>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>n.__wbg_meshoutlinejs_free(e>>>0,1));const bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_profilecollection_free(e>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_profileentryjs_free(e>>>0,1)),ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_symboliccircle_free(e>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_symbolicfillarea_free(e>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_symbolicpolyline_free(e>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_symbolicrepresentationcollection_free(e>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_symbolictext_free(e>>>0,1));class L{static __wrap(t){t=t>>>0;const r=Object.create(L.prototype);return r.__wbg_ptr=t,ct.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ct.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_gridaxiscollection_free(t,0)}get length(){return n.gridaxiscollection_length(this.__wbg_ptr)>>>0}getAxis(t){const r=n.gridaxiscollection_getAxis(this.__wbg_ptr,t);return r===0?void 0:W.__wrap(r)}get isEmpty(){return n.gridaxiscollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class W{static __wrap(t){t=t>>>0;const r=Object.create(W.prototype);return r.__wbg_ptr=t,lt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_gridaxisjs_free(t,0)}get end(){const t=n.gridaxisjs_end(this.__wbg_ptr);return l(t)}get tag(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.gridaxisjs_tag(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get start(){const t=n.gridaxisjs_start(this.__wbg_ptr);return l(t)}get axisId(){return n.gridaxisjs_axisId(this.__wbg_ptr)>>>0}get gridId(){return n.gridaxisjs_gridId(this.__wbg_ptr)>>>0}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class tt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_ifcapi_free(t,0)}buildPrePassFast(t){const r=S(t,n.__wbindgen_export3),_=p,s=n.ifcapi_buildPrePassFast(this.__wbg_ptr,r,_);return l(s)}buildPrePassOnce(t){const r=S(t,n.__wbindgen_export3),_=p,s=n.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,_);return l(s)}processGeometryBatch(t,r,_,s,i,c,o,b,h,x,I,A){const M=S(t,n.__wbindgen_export3),Pt=p,Ot=v(r,n.__wbindgen_export3),zt=p,Lt=v(b,n.__wbindgen_export3),Wt=p,Ut=v(h,n.__wbindgen_export3),Ht=p,Gt=v(x,n.__wbindgen_export3),Yt=p,Dt=v(I,n.__wbindgen_export3),Vt=p,Xt=S(A,n.__wbindgen_export3),Zt=p,Kt=n.ifcapi_processGeometryBatch(this.__wbg_ptr,M,Pt,Ot,zt,_,s,i,c,o,Lt,Wt,Ut,Ht,Gt,Yt,Dt,Vt,Xt,Zt);return U.__wrap(Kt)}buildPrePassStreaming(t,r,_){try{const o=n.__wbindgen_add_to_stack_pointer(-16),b=S(t,n.__wbindgen_export3),h=p;n.ifcapi_buildPrePassStreaming(o,this.__wbg_ptr,b,h,$t(r),_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=a().getInt32(o+8,!0);if(c)throw l(i);return l(s)}finally{n.__wbindgen_add_to_stack_pointer(16),y[J++]=void 0}}parseGridAxes(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_parseGridAxes(this.__wbg_ptr,r,_);return L.__wrap(s)}parseGridLines(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_parseGridLines(this.__wbg_ptr,r,_);return l(s)}parseAlignmentLines(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_parseAlignmentLines(this.__wbg_ptr,r,_);return l(s)}extractProfiles(t,r){const _=m(t,n.__wbindgen_export3,n.__wbindgen_export4),s=p,i=n.ifcapi_extractProfiles(this.__wbg_ptr,_,s,r);return G.__wrap(i)}getMemory(){const t=n.ifcapi_getMemory(this.__wbg_ptr);return l(t)}setEntityIndex(t,r,_){const s=v(t,n.__wbindgen_export3),i=p,c=v(r,n.__wbindgen_export3),o=p,b=v(_,n.__wbindgen_export3),h=p;n.ifcapi_setEntityIndex(this.__wbg_ptr,s,i,c,o,b,h)}setMergeLayers(t){n.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){n.ifcapi_clearPrePassCache(this.__wbg_ptr)}setComputeGeometryHashes(t){n.ifcapi_setComputeGeometryHashes(this.__wbg_ptr,!C(t),C(t)?0:t)}constructor(){const t=n.ifcapi_new();return this.__wbg_ptr=t>>>0,gt.register(this,this.__wbg_ptr,this),this}get version(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.ifcapi_version(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get is_ready(){return n.ifcapi_is_ready(this.__wbg_ptr)!==0}parseStreaming(t,r){const _=m(t,n.__wbindgen_export3,n.__wbindgen_export4),s=p,i=n.ifcapi_parseStreaming(this.__wbg_ptr,_,s,g(r));return l(i)}scanEntitiesFast(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,_);return l(s)}scanEntitiesFastBytes(t){const r=S(t,n.__wbindgen_export3),_=p,s=n.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,_);return l(s)}scanGeometryEntitiesFast(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,_);return l(s)}scanRelevantEntitiesFastBytes(t){const r=S(t,n.__wbindgen_export3),_=p,s=n.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,r,_);return l(s)}parse(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_parse(this.__wbg_ptr,r,_);return l(s)}parseSymbolicRepresentations(t){const r=m(t,n.__wbindgen_export3,n.__wbindgen_export4),_=p,s=n.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,_);return Z.__wrap(s)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class U{static __wrap(t){t=t>>>0;const r=Object.create(U.prototype);return r.__wbg_ptr=t,pt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return n.meshcollection_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return n.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return n.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return n.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,r,_){try{const o=n.__wbindgen_add_to_stack_pointer(-16);n.meshcollection_localToWorld(o,this.__wbg_ptr,t,r,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=Jt(s,i).slice();return n.__wbindgen_export2(s,i*8,8),c}finally{n.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return n.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return n.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=n.__wbindgen_add_to_stack_pointer(-16);n.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),r=a().getFloat64(_+8,!0);return t===0?void 0:r}finally{n.__wbindgen_add_to_stack_pointer(16)}}get geometryHashIds(){const t=n.meshcollection_geometryHashIds(this.__wbg_ptr);return l(t)}get geometryHashCount(){return n.meshcollection_geometryHashCount(this.__wbg_ptr)>>>0}get geometryHashValues(){const t=n.meshcollection_geometryHashValues(this.__wbg_ptr);return l(t)}get(t){const r=n.meshcollection_get(this.__wbg_ptr,t);return r===0?void 0:H.__wrap(r)}get length(){return n.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class H{static __wrap(t){t=t>>>0;const r=Object.create(H.prototype);return r.__wbg_ptr=t,dt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_meshdatajs_free(t,0)}get expressId(){return n.meshdatajs_expressId(this.__wbg_ptr)>>>0}get hasTexture(){return n.meshdatajs_hasTexture(this.__wbg_ptr)!==0}get textureRgba(){const t=n.meshdatajs_textureRgba(this.__wbg_ptr);return l(t)}get vertexCount(){return n.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const _=n.__wbindgen_add_to_stack_pointer(-16);n.meshdatajs_shadingColor(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),r=a().getInt32(_+4,!0);let s;return t!==0&&(s=nt(t,r).slice(),n.__wbindgen_export2(t,r*4,4)),s}finally{n.__wbindgen_add_to_stack_pointer(16)}}get textureWidth(){return n.meshdatajs_textureWidth(this.__wbg_ptr)>>>0}get geometryClass(){return n.meshdatajs_geometryClass(this.__wbg_ptr)}get textureHeight(){return n.meshdatajs_textureHeight(this.__wbg_ptr)>>>0}get triangleCount(){return n.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get textureRepeatS(){return n.meshdatajs_textureRepeatS(this.__wbg_ptr)!==0}get textureRepeatT(){return n.meshdatajs_textureRepeatT(this.__wbg_ptr)!==0}get uvs(){const t=n.meshdatajs_uvs(this.__wbg_ptr);return l(t)}get color(){try{const s=n.__wbindgen_add_to_stack_pointer(-16);n.meshdatajs_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),r=a().getInt32(s+4,!0),_=nt(t,r).slice();return n.__wbindgen_export2(t,r*4,4),_}finally{n.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=n.meshdatajs_indices(this.__wbg_ptr);return l(t)}get normals(){const t=n.meshdatajs_normals(this.__wbg_ptr);return l(t)}get ifcType(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.meshdatajs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get positions(){const t=n.meshdatajs_positions(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class G{static __wrap(t){t=t>>>0;const r=Object.create(G.prototype);return r.__wbg_ptr=t,bt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_profilecollection_free(t,0)}get(t){const r=n.profilecollection_get(this.__wbg_ptr,t);return r===0?void 0:Y.__wrap(r)}get length(){return n.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class Y{static __wrap(t){t=t>>>0;const r=Object.create(Y.prototype);return r.__wbg_ptr=t,ft.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_profileentryjs_free(t,0)}get expressId(){return n.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=n.profileentryjs_holeCounts(this.__wbg_ptr);return l(t)}get holePoints(){const t=n.profileentryjs_holePoints(this.__wbg_ptr);return l(t)}get modelIndex(){return n.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=n.profileentryjs_outerPoints(this.__wbg_ptr);return l(t)}get extrusionDir(){const t=n.profileentryjs_extrusionDir(this.__wbg_ptr);return l(t)}get extrusionDepth(){return n.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.profileentryjs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get transform(){const t=n.profileentryjs_transform(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class D{static __wrap(t){t=t>>>0;const r=Object.create(D.prototype);return r.__wbg_ptr=t,ut.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_symboliccircle_free(t,0)}get expressId(){return n.symboliccircle_expressId(this.__wbg_ptr)>>>0}get startAngle(){return n.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return n.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get radius(){return n.symboliccircle_radius(this.__wbg_ptr)}get worldY(){return n.symboliccircle_worldY(this.__wbg_ptr)}get centerX(){return n.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return n.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symboliccircle_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get endAngle(){return n.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class V{static __wrap(t){t=t>>>0;const r=Object.create(V.prototype);return r.__wbg_ptr=t,wt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_symbolicfillarea_free(t,0)}get expressId(){return n.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCount(){return n.symbolicfillarea_holeCount(this.__wbg_ptr)>>>0}get hatchAngle(){return n.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get pointCount(){return n.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get hasHatching(){return n.symbolicfillarea_hasHatching(this.__wbg_ptr)!==0}get hatchSpacing(){return n.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get holesOffsets(){const t=n.symbolicfillarea_holesOffsets(this.__wbg_ptr);return l(t)}get repIdentifier(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolicfillarea_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get hatchLineWidth(){return n.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get hatchAngleSecondary(){return n.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get fillA(){return n.symbolicfillarea_fillA(this.__wbg_ptr)}get fillB(){return n.symbolicfillarea_fillB(this.__wbg_ptr)}get fillG(){return n.symbolicfillarea_fillG(this.__wbg_ptr)}get fillR(){return n.symbolicfillarea_fillR(this.__wbg_ptr)}get points(){const t=n.symbolicfillarea_points(this.__wbg_ptr);return l(t)}get worldY(){return n.symbolicfillarea_worldY(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolicfillarea_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class X{static __wrap(t){t=t>>>0;const r=Object.create(X.prototype);return r.__wbg_ptr=t,yt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_symbolicpolyline_free(t,0)}get expressId(){return n.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return n.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get points(){const t=n.symbolicpolyline_points(this.__wbg_ptr);return l(t)}get worldY(){return n.symboliccircle_worldY(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get isClosed(){return n.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);class Z{static __wrap(t){t=t>>>0;const r=Object.create(Z.prototype);return r.__wbg_ptr=t,ht.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_symbolicrepresentationcollection_free(t,0)}get fillCount(){return n.symbolicrepresentationcollection_fillCount(this.__wbg_ptr)>>>0}getCircle(t){const r=n.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return r===0?void 0:D.__wrap(r)}get textCount(){return n.symbolicrepresentationcollection_textCount(this.__wbg_ptr)>>>0}get totalCount(){return n.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return n.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const r=n.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return r===0?void 0:X.__wrap(r)}get polylineCount(){return n.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=n.__wbindgen_add_to_stack_pointer(-16);n.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),r=a().getInt32(s+4,!0),_=Ft(t,r).slice();return n.__wbindgen_export2(t,r*4,4),_}finally{n.__wbindgen_add_to_stack_pointer(16)}}getFill(t){const r=n.symbolicrepresentationcollection_getFill(this.__wbg_ptr,t);return r===0?void 0:V.__wrap(r)}getText(t){const r=n.symbolicrepresentationcollection_getText(this.__wbg_ptr,t);return r===0?void 0:K.__wrap(r)}get isEmpty(){return n.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);class K{static __wrap(t){t=t>>>0;const r=Object.create(K.prototype);return r.__wbg_ptr=t,mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_symbolictext_free(t,0)}get expressId(){return n.profileentryjs_expressId(this.__wbg_ptr)>>>0}get repIdentifier(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolictext_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get x(){return n.symbolicfillarea_fillR(this.__wbg_ptr)}get y(){return n.symbolicfillarea_fillG(this.__wbg_ptr)}get dirX(){return n.symbolicfillarea_fillB(this.__wbg_ptr)}get dirY(){return n.symbolicfillarea_fillA(this.__wbg_ptr)}get height(){return n.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get colorA(){return n.symbolictext_colorA(this.__wbg_ptr)}get colorB(){return n.symbolicfillarea_worldY(this.__wbg_ptr)}get colorG(){return n.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get colorR(){return n.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get content(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolictext_content(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get worldY(){return n.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolictext_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get alignment(){let t,r;try{const i=n.__wbindgen_add_to_stack_pointer(-16);n.symbolictext_alignment(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,r=s,f(_,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export2(t,r,1)}}get targetPx(){return n.symbolictext_targetPx(this.__wbg_ptr)}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);const ae=new Set(["basic","cors","default"]);async function ce(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(_){if(e.ok&&ae.has(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}function Ct(){const e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(t,r){const _=Error(f(t,r));return g(_)},e.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(t){return typeof d(t)=="function"},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(t){return d(t)===void 0},e.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=n.memory;return g(t)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,r){throw new Error(f(t,r))},e.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){d(t)._wbg_cb_unref()},e.wbg.__wbg_call_3020136f7a2d6e44=function(){return et(function(t,r,_){const s=d(t).call(d(r),d(_));return g(s)},arguments)},e.wbg.__wbg_call_abb4ff46ce38be40=function(){return et(function(t,r){const _=d(t).call(d(r));return g(_)},arguments)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,r){let _,s;try{_=t,s=r,console.error(f(t,r))}finally{n.__wbindgen_export2(_,s,1)}},e.wbg.__wbg_info_ce6bcc489c22f6f0=function(t){console.info(d(t))},e.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return g(t)},e.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return g(t)},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return g(t)},e.wbg.__wbg_new_ff12d2b041fb48f1=function(t,r){try{var _={a:t,b:r},s=(c,o)=>{const b=_.a;_.a=0;try{return oe(b,_.b,c,o)}finally{_.a=b}};const i=new Promise(s);return g(i)}finally{_.a=_.b=0}},e.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,r){const _=new Float32Array(nt(t,r));return g(_)},e.wbg.__wbg_new_from_slice_883d10a76ca46292=function(t,r){const _=new BigUint64Array(Nt(t,r));return g(_)},e.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,r){const _=new Uint32Array(Ft(t,r));return g(_)},e.wbg.__wbg_new_from_slice_f9c22b9153b26992=function(t,r){const _=new Uint8Array(Qt(t,r));return g(_)},e.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,r){const _=new Function(f(t,r));return g(_)},e.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const r=new Uint32Array(t>>>0);return g(r)},e.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const r=new Float64Array(t>>>0);return g(r)},e.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const r=new Uint8Array(t>>>0);return g(r)},e.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const r=d(t).queueMicrotask;return g(r)},e.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(d(t))},e.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const r=Promise.resolve(d(t));return g(r)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(t,r,_){d(t)[l(r)]=l(_)},e.wbg.__wbg_set_781438a03c0c3c81=function(){return et(function(t,r,_){return Reflect.set(d(t),d(r),d(_))},arguments)},e.wbg.__wbg_set_7df433eea03a5c14=function(t,r,_){d(t)[r>>>0]=l(_)},e.wbg.__wbg_set_index_021489b2916af13e=function(t,r,_){d(t)[r>>>0]=_},e.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,r,_){d(t)[r>>>0]=_},e.wbg.__wbg_set_index_42abe35f117e614e=function(t,r,_){d(t)[r>>>0]=_>>>0},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,r){const _=d(r).stack,s=m(_,n.__wbindgen_export3,n.__wbindgen_export4),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,s,!0)},e.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return C(t)?0:g(t)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return C(t)?0:g(t)},e.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return C(t)?0:g(t)},e.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return C(t)?0:g(t)},e.wbg.__wbg_then_4f95312d68691235=function(t,r){const _=d(t).then(d(r));return g(_)},e.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(d(t))},e.wbg.__wbindgen_cast_0093e2d96a856a3b=function(t,r){const _=ne(t,r,n.__wasm_bindgen_func_elem_674,ie);return g(_)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,r){const _=f(t,r);return g(_)},e.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const r=BigInt.asUintN(64,t);return g(r)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return g(t)},e.wbg.__wbindgen_object_clone_ref=function(t){const r=d(t);return g(r)},e.wbg.__wbindgen_object_drop_ref=function(t){l(t)},e}function kt(e,t){return n=e.exports,Mt.__wbindgen_wasm_module=t,R=null,F=null,T=null,B=null,E=null,P=null,n.__wbindgen_start(),n}function le(e){if(n!==void 0)return n;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Ct();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));const r=new WebAssembly.Instance(e,t);return kt(r,e)}async function Mt(e){if(n!==void 0)return n;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("/assets/ifc-lite_bg-BEA5DLmg.wasm",import.meta.url));const t=Ct();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:_}=await ce(await e,t);return kt(r,_)}let w=null,Rt;async function j(){return w||(await Mt(Rt),w=new tt,$=!1,_t(),q=!1,st(),w)}let Tt=!1,$=!1;function _t(){if(!w||$)return;const e=w;typeof e.setMergeLayers=="function"&&e.setMergeLayers(Tt),$=!0}let Bt=null,q=!1;function st(){if(!w||q)return;const e=w;typeof e.setComputeGeometryHashes=="function"&&e.setComputeGeometryHashes(Bt),q=!0}function it(e){return new Uint8Array(e)}function ot(e){const t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t}let u=null;const xt=1e6;function vt(e){return{sharedBuffer:e.sharedBuffer,localBytes:it(e.sharedBuffer),sabFallbackTaken:!1,unitScale:e.unitScale,rtcX:e.rtcX,rtcY:e.rtcY,rtcZ:e.rtcZ,needsShift:e.needsShift,voidKeys:e.voidKeys,voidCounts:e.voidCounts,voidValues:e.voidValues,styleIds:e.styleIds,styleColors:e.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function Et(e){if(e.pendingMeshes.length===0)return;const t=e.pendingMeshes,r=e.pendingTransfers;e.pendingMeshes=[],e.pendingTransfers=[],e.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},r)}function ge(e,t){try{const r=pe(t);for(let _=0;_<t.length;_++){const s=t.get(_);if(s)try{const i=new Float32Array(s.positions),c=new Float32Array(s.normals),o=new Uint32Array(s.indices),b=s.color,h=r.get(s.expressId),x={expressId:s.expressId,ifcType:s.ifcType,positions:i,normals:c,indices:o,color:[b[0],b[1],b[2],b[3]],geometryClass:s.geometryClass??0};if(e.pendingTransfers.push(i.buffer,c.buffer,o.buffer),e.cumulativeMeshBytes+=i.byteLength+c.byteLength+o.byteLength,s.hasTexture){const I=new Float32Array(s.uvs),A=new Uint8Array(s.textureRgba);x.uvs=I,x.texture={rgba:A,width:s.textureWidth,height:s.textureHeight,repeatS:s.textureRepeatS,repeatT:s.textureRepeatT},e.pendingTransfers.push(I.buffer,A.buffer),e.cumulativeMeshBytes+=I.byteLength+A.byteLength}h!==void 0&&(x.geometryHash=h),e.pendingMeshes.push(x)}finally{s.free()}}}finally{t.free()}}function pe(e){const t=new Map,r=e;if((r.geometryHashCount??0)===0)return t;const s=r.geometryHashIds,i=r.geometryHashValues;if(!s||!i)return t;const c=Math.min(s.length,i.length);for(let o=0;o<c;o++)t.set(s[o],i[o]);return t}async function Q(e,t){const r=Math.floor(t.length/3);if(r!==0)try{const s=(await j()).processGeometryBatch(e.localBytes,t,e.unitScale,e.rtcX,e.rtcY,e.rtcZ,e.needsShift,e.voidKeys,e.voidCounts,e.voidValues,e.styleIds,e.styleColors);ge(e,s)}catch(_){const s=_.message;if(!e.sabFallbackTaken&&e.localBytes.buffer instanceof SharedArrayBuffer){e.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),e.localBytes=ot(e.sharedBuffer),await Q(e,t);return}if(r===1){console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),w=null;return}console.warn(`[Worker] Batch of ${r} entities failed (${s}), splitting…`),w=null;const i=Math.floor(r/2)*3;await Q(e,t.slice(0,i)),await Q(e,t.slice(i))}}async function It(e,t){const r=Math.floor(t.length/3);for(let _=0;_<r;_+=xt){const s=_*3,i=Math.min(s+xt*3,t.length);await Q(e,t.subarray(s,i)),Et(e)}}function At(e){Et(e);let t=0;try{t=w?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",meshBytes:e.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage({type:"complete",totalMeshes:e.totalMeshesEmitted})}let St=Promise.resolve();self.onmessage=e=>{St=St.then(()=>de(e)).catch(t=>{self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})})};async function de(e){try{if(e.data.type==="prepass-streaming"){const t=await j();self.postMessage({type:"prepass-progress",phase:"parsing"});const r=e.data.sharedBuffer,_=e.data.chunkSize??5e4;let s=it(r),i=!1;const c=o=>{self.postMessage({type:"prepass-stream",event:o})};try{t.buildPrePassStreaming(s,c,_)}catch(o){const b=o instanceof Error?o.message:String(o);if(!i)i=!0,console.warn(`[Worker] Streaming prepass with SAB view failed (${b}), retrying with copy`),s=ot(r),t.buildPrePassStreaming(s,c,_);else throw o}return}if(e.data.type==="prepass"||e.data.type==="prepass-fast"){const t=await j();self.postMessage({type:"prepass-progress",phase:"parsing"});const r=e.data.sharedBuffer,_=e.data.type==="prepass-fast";let s;try{const i=it(r);s=_?t.buildPrePassFast(i):t.buildPrePassOnce(i)}catch(i){const c=i instanceof Error?i.message:String(i);console.warn(`[Worker] Prepass with SAB view failed (${c}), retrying with copy`);const o=ot(r);s=_?t.buildPrePassFast(o):t.buildPrePassOnce(o)}self.postMessage({type:"prepass-result",result:s});return}if(e.data.type==="init"){e.data.wasmUrl&&(Rt=e.data.wasmUrl),e.data.wasmModule?(le({module_or_path:e.data.wasmModule}),w=new tt,$=!1,_t(),q=!1,st()):await j(),self.postMessage({type:"ready"});return}if(e.data.type==="process"){await j();const{sharedBuffer:t,jobsFlat:r,unitScale:_,rtcX:s,rtcY:i,rtcZ:c,needsShift:o,voidKeys:b,voidCounts:h,voidValues:x,styleIds:I,styleColors:A}=e.data,M=vt({sharedBuffer:t,unitScale:_,rtcX:s,rtcY:i,rtcZ:c,needsShift:o,voidKeys:b,voidCounts:h,voidValues:x,styleIds:I,styleColors:A});u=M,await It(M,r),At(M),u=null;return}if(e.data.type==="stream-start"){await j(),u=vt({sharedBuffer:e.data.sharedBuffer,unitScale:e.data.unitScale,rtcX:e.data.rtcX,rtcY:e.data.rtcY,rtcZ:e.data.rtcZ,needsShift:e.data.needsShift,voidKeys:e.data.voidKeys,voidCounts:e.data.voidCounts,voidValues:e.data.voidValues,styleIds:e.data.styleIds,styleColors:e.data.styleColors});return}if(e.data.type==="stream-chunk"){if(!u)throw new Error("stream-chunk received before stream-start");await It(u,e.data.jobsFlat);return}if(e.data.type==="set-styles"){if(!u)return;u.styleIds=e.data.styleIds,u.styleColors=e.data.styleColors,u.voidKeys=e.data.voidKeys,u.voidCounts=e.data.voidCounts,u.voidValues=e.data.voidValues;return}if(e.data.type==="set-entity-index"){(await j()).setEntityIndex(e.data.ids,e.data.starts,e.data.lengths);return}if(e.data.type==="set-merge-layers"){Tt=e.data.enabled===!0,$=!1,_t();return}if(e.data.type==="set-compute-geometry-hashes"){const t=e.data.tolerance;Bt=t!=null&&t>0?t:null,q=!1,st();return}if(e.data.type==="stream-end"){if(!u)throw new Error("stream-end received before stream-start");At(u),u=null;return}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}}
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-CJgQdyuZ.js","assets/sandbox-0sDo3g3m.js","assets/lens-C4p1kQ0p.js","assets/__vite-browser-external-B1O5LaIO.js","assets/lzw-C65U9lNM.js","assets/jpeg-DGOAeUqU.js","assets/deflate-DNGgs8Ur.js","assets/pako.esm-n3Pgozwg.js","assets/packbits-BdMWXC3m.js","assets/lerc-1PMSCHwX.js","assets/zip-DFgP-l20.js","assets/zstd-CmwsbxmM.js","assets/webimage-BtakWX7W.js"])))=>i.map(i=>d[i]);
2
- import { _ as H, __tla as __tla_0 } from "./sandbox-0sDo3g3m.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-C0ZJYGmN.js","assets/sandbox-qpJlrNN0.js","assets/lens-C4p1kQ0p.js","assets/__vite-browser-external-B1O5LaIO.js","assets/lzw-B0jRuuW5.js","assets/jpeg-C7hjKjPX.js","assets/deflate-HbyMq59o.js","assets/pako.esm-n3Pgozwg.js","assets/packbits-DVvBTC39.js","assets/lerc-BfIOGhQz.js","assets/zip-DFgP-l20.js","assets/zstd-Bf38MwV2.js","assets/webimage-B394g0Tw.js"])))=>i.map(i=>d[i]);
2
+ import { _ as H, __tla as __tla_0 } from "./sandbox-qpJlrNN0.js";
3
3
  import P from "./__vite-browser-external-B1O5LaIO.js";
4
4
  let Se, II, gI, Ye;
5
5
  let __tla = Promise.all([
@@ -953,12 +953,12 @@ let __tla = Promise.all([
953
953
  void 0,
954
954
  1
955
955
  ],
956
- importFn: ()=>H(()=>import("./raw-CJgQdyuZ.js"), __vite__mapDeps([0,1,2,3])).then((I)=>I.default),
956
+ importFn: ()=>H(()=>import("./raw-C0ZJYGmN.js"), __vite__mapDeps([0,1,2,3])).then((I)=>I.default),
957
957
  preferWorker: !1
958
958
  },
959
959
  {
960
960
  cases: 5,
961
- importFn: ()=>H(()=>import("./lzw-C65U9lNM.js"), __vite__mapDeps([4,1,2,3])).then((I)=>I.default)
961
+ importFn: ()=>H(()=>import("./lzw-B0jRuuW5.js"), __vite__mapDeps([4,1,2,3])).then((I)=>I.default)
962
962
  },
963
963
  {
964
964
  cases: 6,
@@ -968,7 +968,7 @@ let __tla = Promise.all([
968
968
  },
969
969
  {
970
970
  cases: 7,
971
- importFn: ()=>H(()=>import("./jpeg-DGOAeUqU.js"), __vite__mapDeps([5,1,2,3])).then((I)=>I.default),
971
+ importFn: ()=>H(()=>import("./jpeg-C7hjKjPX.js"), __vite__mapDeps([5,1,2,3])).then((I)=>I.default),
972
972
  decoderParameterFn: async (I)=>({
973
973
  ...await rA(I),
974
974
  JPEGTables: await I.loadValue("JPEGTables")
@@ -979,15 +979,15 @@ let __tla = Promise.all([
979
979
  8,
980
980
  32946
981
981
  ],
982
- importFn: ()=>H(()=>import("./deflate-DNGgs8Ur.js"), __vite__mapDeps([6,7,1,2,3])).then((I)=>I.default)
982
+ importFn: ()=>H(()=>import("./deflate-HbyMq59o.js"), __vite__mapDeps([6,7,1,2,3])).then((I)=>I.default)
983
983
  },
984
984
  {
985
985
  cases: 32773,
986
- importFn: ()=>H(()=>import("./packbits-BdMWXC3m.js"), __vite__mapDeps([8,1,2,3])).then((I)=>I.default)
986
+ importFn: ()=>H(()=>import("./packbits-DVvBTC39.js"), __vite__mapDeps([8,1,2,3])).then((I)=>I.default)
987
987
  },
988
988
  {
989
989
  cases: 34887,
990
- importFn: ()=>H(()=>import("./lerc-1PMSCHwX.js"), __vite__mapDeps([9,7,10,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default),
990
+ importFn: ()=>H(()=>import("./lerc-BfIOGhQz.js"), __vite__mapDeps([9,7,10,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default),
991
991
  decoderParameterFn: async (I)=>({
992
992
  ...await rA(I),
993
993
  LercParameters: await I.loadValue("LercParameters")
@@ -995,11 +995,11 @@ let __tla = Promise.all([
995
995
  },
996
996
  {
997
997
  cases: 5e4,
998
- importFn: ()=>H(()=>import("./zstd-CmwsbxmM.js"), __vite__mapDeps([11,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default)
998
+ importFn: ()=>H(()=>import("./zstd-Bf38MwV2.js"), __vite__mapDeps([11,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default)
999
999
  },
1000
1000
  {
1001
1001
  cases: 50001,
1002
- importFn: ()=>H(()=>import("./webimage-BtakWX7W.js"), __vite__mapDeps([12,1,2,3])).then((I)=>I.default),
1002
+ importFn: ()=>H(()=>import("./webimage-B394g0Tw.js"), __vite__mapDeps([12,1,2,3])).then((I)=>I.default),
1003
1003
  decoderParameterFn: async (I)=>({
1004
1004
  ...await rA(I),
1005
1005
  samplesPerPixel: Number(await I.loadValue("SamplesPerPixel")) || 4
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sandbox-0sDo3g3m.js","assets/lens-C4p1kQ0p.js"])))=>i.map(i=>d[i]);
2
- import { aC as $, aw as he, al as Z, au as ve, aj as Ee, ak as Te, am as Ie, o as be, _ as ge, a4 as Se, E as Ae, ac as xe, ad as Ce, p as A, a3 as N, ai as Re, ah as Me, ab as Ne, at as _e, __tla as __tla_0 } from "./sandbox-0sDo3g3m.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sandbox-qpJlrNN0.js","assets/lens-C4p1kQ0p.js"])))=>i.map(i=>d[i]);
2
+ import { aA as $, au as he, aj as Z, as as ve, ah as Ee, ai as Te, ak as Ie, m as be, _ as ge, a2 as Se, E as Ae, aa as xe, ab as Ce, n as A, a1 as N, ag as Re, af as Me, a9 as Ne, ar as _e, __tla as __tla_0 } from "./sandbox-qpJlrNN0.js";
3
3
  let g, ua, ca, pa, Pe, oa;
4
4
  let __tla = Promise.all([
5
5
  (()=>{
@@ -2023,10 +2023,10 @@ let __tla = Promise.all([
2023
2023
  case "pattern":
2024
2024
  try {
2025
2025
  const i = new RegExp(`^${e.name.pattern}$`), { getEntities: a } = await ge(async ()=>{
2026
- const { getEntities: r } = await import("./sandbox-0sDo3g3m.js").then(async (m)=>{
2026
+ const { getEntities: r } = await import("./sandbox-qpJlrNN0.js").then(async (m)=>{
2027
2027
  await m.__tla;
2028
2028
  return m;
2029
- }).then((s)=>s.az);
2029
+ }).then((s)=>s.ax);
2030
2030
  return {
2031
2031
  getEntities: r
2032
2032
  };