@qaecy/cue-ui 0.0.67 → 0.0.68

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/1320.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var v,Me={61320(v,B,E){var ot=E(10467);class P{static __wrap(t){const r=Object.create(P.prototype);return r.__wbg_ptr=t,Te.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Te.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashintersectionsolidjs_free(t,0)}get degenerateReason(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_degenerateReason(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get indices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_indices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get isSolid(){return 0!==e.clashintersectionsolidjs_isSolid(this.__wbg_ptr)}get positions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_positions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get requiredM(){return e.clashintersectionsolidjs_requiredM(this.__wbg_ptr)}get thicknessM(){return e.clashintersectionsolidjs_thicknessM(this.__wbg_ptr)}get triangleCount(){return e.clashintersectionsolidjs_triangleCount(this.__wbg_ptr)>>>0}get volumeM3(){return e.clashintersectionsolidjs_volumeM3(this.__wbg_ptr)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class G{static __wrap(t){const r=Object.create(G.prototype);return r.__wbg_ptr=t,ze.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ze.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashrunresult_free(t,0)}get a(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_a(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get b(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_b(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get bounds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_bounds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get distance(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_distance(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get distanceKind(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_distanceKind(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get points(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_points(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get status(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_status(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class dt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashsession_free(t,0)}ingest(t,r,_,s,o){const c=et(t,e.__wbindgen_export),d=a,p=g(r,e.__wbindgen_export),l=a,u=g(_,e.__wbindgen_export),y=a,f=g(s,e.__wbindgen_export),w=a,h=et(o,e.__wbindgen_export);e.clashsession_ingest(this.__wbg_ptr,c,d,p,l,u,y,f,w,h,a)}constructor(){const t=e.clashsession_new();return this.__wbg_ptr=t,Ee.register(this,this.__wbg_ptr,this),this}runRule(t,r,_,s,o,c){const d=g(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export),y=e.clashsession_runRule(this.__wbg_ptr,d,p,l,a,_,s,o,c);return G.__wrap(y)}}Symbol.dispose&&(dt.prototype[Symbol.dispose]=dt.prototype.free);class O{static __wrap(t){const r=Object.create(O.prototype);return r.__wbg_ptr=t,ce.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ce.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_contours2d_free(t,0)}bounds(){return b(e.contours2d_bounds(this.__wbg_ptr))}coords(){return b(e.contours2d_coords(this.__wbg_ptr))}static fromMeshOutline(t){!function wt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}(t,vt);const r=e.contours2d_fromMeshOutline(t.__wbg_ptr);return O.__wrap(r)}get isEmpty(){return 0!==e.contours2d_isEmpty(this.__wbg_ptr)}constructor(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=rt(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export);e.contours2d_new(c,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return this.__wbg_ptr=_,ce.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}ring(t){return b(e.contours2d_ring(this.__wbg_ptr,t))}get ringCount(){return e.contours2d_ringCount(this.__wbg_ptr)>>>0}ringLengths(){return b(e.contours2d_ringLengths(this.__wbg_ptr))}get shapeCount(){return e.contours2d_shapeCount(this.__wbg_ptr)>>>0}shapeOffsets(){return b(e.contours2d_shapeOffsets(this.__wbg_ptr))}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class st{static __wrap(t){const r=Object.create(st.prototype);return r.__wbg_ptr=t,Be.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Be.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gridaxiscollection_free(t,0)}getAxis(t){const r=e.gridaxiscollection_getAxis(this.__wbg_ptr,t);return 0===r?void 0:bt.__wrap(r)}get isEmpty(){return 0!==e.gridaxiscollection_isEmpty(this.__wbg_ptr)}get length(){return e.gridaxiscollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class bt{static __wrap(t){const r=Object.create(bt.prototype);return r.__wbg_ptr=t,Oe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Oe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gridaxisjs_free(t,0)}get axisId(){return e.gridaxisjs_axisId(this.__wbg_ptr)>>>0}get end(){return b(e.gridaxisjs_end(this.__wbg_ptr))}get gridId(){return e.gridaxisjs_gridId(this.__wbg_ptr)>>>0}get start(){return b(e.gridaxisjs_start(this.__wbg_ptr))}get tag(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.gridaxisjs_tag(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}}Symbol.dispose&&(bt.prototype[Symbol.dispose]=bt.prototype.free);class re{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_ifcapi_free(t,0)}buildPrePassOnce(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,a))}buildPrePassStreaming(t,r,_,s,o){try{const y=e.__wbindgen_add_to_stack_pointer(-16),f=S(t,e.__wbindgen_export),w=a;var c=x(s)?0:nr(s,e.__wbindgen_export),d=a;e.ifcapi_buildPrePassStreaming(y,this.__wbg_ptr,f,w,Qe(r),_,c,d,o);var p=i().getInt32(y+0,!0),l=i().getInt32(y+4,!0);if(i().getInt32(y+8,!0))throw b(l);return b(p)}finally{e.__wbindgen_add_to_stack_pointer(16),it[Xt++]=void 0}}buildPrePassStreamingSharded(t,r,_,s,o,c,d,p,l){try{const m=e.__wbindgen_add_to_stack_pointer(-16),I=S(t,e.__wbindgen_export),A=a;var u=x(s)?0:nr(s,e.__wbindgen_export),y=a;const M=g(c,e.__wbindgen_export),F=a,C=g(d,e.__wbindgen_export),j=a,H=g(p,e.__wbindgen_export),U=a,V=S(l,e.__wbindgen_export),J=a;e.ifcapi_buildPrePassStreamingSharded(m,this.__wbg_ptr,I,A,Qe(r),_,u,y,o,M,F,C,j,H,U,V,J);var f=i().getInt32(m+0,!0),w=i().getInt32(m+4,!0);if(i().getInt32(m+8,!0))throw b(w);return b(f)}finally{e.__wbindgen_add_to_stack_pointer(16),it[Xt++]=void 0}}clearPrePassCache(){e.ifcapi_clearPrePassCache(this.__wbg_ptr)}diagnoseGeometry(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_diagnoseGeometry(this.__wbg_ptr,r,a))}exportCsv(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=z(r,e.__wbindgen_export,e.__wbindgen_export2),f=a,w=z(_,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportCsv(p,this.__wbg_ptr,l,u,y,f,w,a,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportDfjson(t,r){let _,s;try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export),l=a,u=z(r,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportDfjson(d,this.__wbg_ptr,p,l,u,a);var o=i().getInt32(d+0,!0),c=i().getInt32(d+4,!0);return _=o,s=c,T(o,c)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(_,s,1)}}exportGlb(t,r,_,s,o,c,d){try{const w=e.__wbindgen_add_to_stack_pointer(-16),h=S(t,e.__wbindgen_export),m=a,I=g(_,e.__wbindgen_export),A=a,M=g(s,e.__wbindgen_export),F=a,C=z(o,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportGlb(w,this.__wbg_ptr,h,m,r,I,A,M,F,C,a,x(c)?16777215:c?1:0,x(d)?16777215:d?1:0);var p=i().getInt32(w+0,!0),l=i().getInt32(w+4,!0),u=i().getInt32(w+8,!0);if(i().getInt32(w+12,!0))throw b(u);var f=N(p,l).slice();return e.__wbindgen_export4(p,1*l,1),f}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportGlbFromMeshes(t,r,_,s,o,c,d,p,l,u,y){try{const A=e.__wbindgen_add_to_stack_pointer(-16),M=et(t,e.__wbindgen_export),F=a,C=et(r,e.__wbindgen_export),j=a,H=g(_,e.__wbindgen_export),U=a,V=g(s,e.__wbindgen_export),J=a,D=g(o,e.__wbindgen_export),Y=a,X=et(c,e.__wbindgen_export),K=a,Z=rt(d,e.__wbindgen_export),$=a,Q=g(p,e.__wbindgen_export);e.ifcapi_exportGlbFromMeshes(A,this.__wbg_ptr,M,F,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,a,l,x(u)?16777215:u?1:0,x(y)?16777215:y?1:0);var f=i().getInt32(A+0,!0),w=i().getInt32(A+4,!0),h=i().getInt32(A+8,!0);if(i().getInt32(A+12,!0))throw b(h);var I=N(f,w).slice();return e.__wbindgen_export4(f,1*w,1),I}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportHbjson(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=S(t,e.__wbindgen_export),p=a,l=z(r,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportHbjson(c,this.__wbg_ptr,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=N(_,s).slice();return e.__wbindgen_export4(_,1*s,1),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportHbjsonWithStats(t,r){const _=S(t,e.__wbindgen_export),s=a,o=z(r,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_exportHbjsonWithStats(this.__wbg_ptr,_,s,o,a))}exportIfcx(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export);e.ifcapi_exportIfcx(d,this.__wbg_ptr,p,a,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=N(s,o).slice();return e.__wbindgen_export4(s,1*o,1),c}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportJson(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export);e.ifcapi_exportJson(p,this.__wbg_ptr,l,a,r,_,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportJsonld(t,r,_,s,o,c){try{const u=e.__wbindgen_add_to_stack_pointer(-16),y=S(t,e.__wbindgen_export),f=a,w=z(r,e.__wbindgen_export,e.__wbindgen_export2),h=a,m=g(c,e.__wbindgen_export);e.ifcapi_exportJsonld(u,this.__wbg_ptr,y,f,w,h,_,s,o,m,a);var d=i().getInt32(u+0,!0),p=i().getInt32(u+4,!0),l=N(d,p).slice();return e.__wbindgen_export4(d,1*p,1),l}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportKmz(t,r,_,s,o,c,d,p){try{const h=e.__wbindgen_add_to_stack_pointer(-16),m=S(t,e.__wbindgen_export),I=a,A=z(d,e.__wbindgen_export,e.__wbindgen_export2),M=a;var l=x(p)?0:z(p,e.__wbindgen_export,e.__wbindgen_export2),u=a;e.ifcapi_exportKmz(h,this.__wbg_ptr,m,I,r,_,s,!x(o),x(o)?0:o,!x(c),x(c)?0:c,A,M,l,u);var y=i().getInt32(h+0,!0),f=i().getInt32(h+4,!0),w=N(y,f).slice();return e.__wbindgen_export4(y,1*f,1),w}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportKmzFromMeshes(t,r,_,s,o,c,d,p,l,u,y,f,w,h){try{const C=e.__wbindgen_add_to_stack_pointer(-16),j=et(t,e.__wbindgen_export),H=a,U=et(r,e.__wbindgen_export),V=a,J=g(_,e.__wbindgen_export),D=a,Y=g(s,e.__wbindgen_export),X=a,K=g(o,e.__wbindgen_export),Z=a,$=et(c,e.__wbindgen_export),Q=a,q=rt(d,e.__wbindgen_export),_t=a,ct=z(w,e.__wbindgen_export,e.__wbindgen_export2),pt=a;var m=x(h)?0:z(h,e.__wbindgen_export,e.__wbindgen_export2),I=a;e.ifcapi_exportKmzFromMeshes(C,this.__wbg_ptr,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,p,l,u,!x(y),x(y)?0:y,!x(f),x(f)?0:f,ct,pt,m,I);var A=i().getInt32(C+0,!0),M=i().getInt32(C+4,!0),F=N(A,M).slice();return e.__wbindgen_export4(A,1*M,1),F}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportMerged(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export),l=a,u=g(r,e.__wbindgen_export),y=a,f=z(_,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportMerged(d,this.__wbg_ptr,p,l,u,y,f,a);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=N(s,o).slice();return e.__wbindgen_export4(s,1*o,1),c}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportObj(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=g(_,e.__wbindgen_export),f=a,w=g(s,e.__wbindgen_export);e.ifcapi_exportObj(p,this.__wbg_ptr,l,u,r,y,f,w,a);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportStep(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=z(r,e.__wbindgen_export,e.__wbindgen_export2),f=a,w=g(_,e.__wbindgen_export),h=a,m=z(s,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportStep(p,this.__wbg_ptr,l,u,y,f,w,h,m,a);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportUsd(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16),c=S(t,e.__wbindgen_export);e.ifcapi_exportUsd(o,this.__wbg_ptr,c,a);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0),s=N(r,_).slice();return e.__wbindgen_export4(r,1*_,1),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}extractProfiles(t,r){const _=z(t,e.__wbindgen_export,e.__wbindgen_export2),o=e.ifcapi_extractProfiles(this.__wbg_ptr,_,a,r);return Tt.__wrap(o)}finalizePrepassStyles(t,r,_,s,o,c,d,p,l,u,y,f){try{const I=e.__wbindgen_add_to_stack_pointer(-16),A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=et(_,e.__wbindgen_export),H=a,U=g(s,e.__wbindgen_export),V=a,J=et(o,e.__wbindgen_export),D=a,Y=g(c,e.__wbindgen_export),X=a,K=g(d,e.__wbindgen_export),Z=a,$=g(p,e.__wbindgen_export),Q=a,q=g(l,e.__wbindgen_export),_t=a,ct=g(u,e.__wbindgen_export),pt=a,ut=g(y,e.__wbindgen_export);e.ifcapi_finalizePrepassStyles(I,this.__wbg_ptr,A,M,F,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,ct,pt,ut,a,f);var w=i().getInt32(I+0,!0),h=i().getInt32(I+4,!0);if(i().getInt32(I+8,!0))throw b(h);return b(w)}finally{e.__wbindgen_add_to_stack_pointer(16)}}getMemory(){return b(e.ifcapi_getMemory(this.__wbg_ptr))}getPipelineDiagnostics(){return b(e.ifcapi_getPipelineDiagnostics(this.__wbg_ptr))}get is_ready(){return 0!==e.ifcapi_is_ready(this.__wbg_ptr)}constructor(){const t=e.ifcapi_new();return this.__wbg_ptr=t,Pe.register(this,this.__wbg_ptr,this),this}parseAlignmentLines(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_parseAlignmentLines(this.__wbg_ptr,r,a))}parseGridAxes(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2),s=e.ifcapi_parseGridAxes(this.__wbg_ptr,r,a);return st.__wrap(s)}parseGridLines(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_parseGridLines(this.__wbg_ptr,r,a))}parseSymbolicRepresentations(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2),s=e.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,a);return Gt.__wrap(s)}processGeometryBatch(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){const A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=g(p,e.__wbindgen_export),H=a,U=g(l,e.__wbindgen_export),V=a,J=g(u,e.__wbindgen_export),D=a,Y=g(y,e.__wbindgen_export),X=a,K=S(f,e.__wbindgen_export),Z=a;var $=x(h)?0:g(h,e.__wbindgen_export),Q=a,q=x(m)?0:g(m,e.__wbindgen_export),_t=a,ct=x(I)?0:S(I,e.__wbindgen_export),pt=a;const ut=e.ifcapi_processGeometryBatch(this.__wbg_ptr,A,M,F,C,_,s,o,c,d,j,H,U,V,J,D,Y,X,K,Z,!x(w),x(w)?0:w,$,Q,q,_t,ct,pt);return yt.__wrap(ut)}processGeometryBatchFromSource(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){const I=g(t,e.__wbindgen_export),A=a,M=g(d,e.__wbindgen_export),F=a,C=g(p,e.__wbindgen_export),j=a,H=g(l,e.__wbindgen_export),U=a,V=g(u,e.__wbindgen_export),J=a,D=S(y,e.__wbindgen_export),Y=a;var X=x(w)?0:g(w,e.__wbindgen_export),K=a,Z=x(h)?0:g(h,e.__wbindgen_export),$=a,Q=x(m)?0:S(m,e.__wbindgen_export),q=a;const _t=e.ifcapi_processGeometryBatchFromSource(this.__wbg_ptr,I,A,r,_,s,o,c,M,F,C,j,H,U,V,J,D,Y,!x(f),x(f)?0:f,X,K,Z,$,Q,q);return yt.__wrap(_t)}processGeometryBatchInstanced(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){try{const D=e.__wbindgen_add_to_stack_pointer(-16),Y=S(t,e.__wbindgen_export),X=a,K=g(r,e.__wbindgen_export),Z=a,$=g(p,e.__wbindgen_export),Q=a,q=g(l,e.__wbindgen_export),_t=a,ct=g(u,e.__wbindgen_export),pt=a,ut=g(y,e.__wbindgen_export),ee=a,Ce=S(f,e.__wbindgen_export),Zr=a;var A=x(h)?0:g(h,e.__wbindgen_export),M=a,F=x(m)?0:g(m,e.__wbindgen_export),C=a,j=x(I)?0:S(I,e.__wbindgen_export),H=a;e.ifcapi_processGeometryBatchInstanced(D,this.__wbg_ptr,Y,X,K,Z,_,s,o,c,d,$,Q,q,_t,ct,pt,ut,ee,Ce,Zr,!x(w),x(w)?0:w,A,M,F,C,j,H);var U=i().getInt32(D+0,!0),V=i().getInt32(D+4,!0),J=N(U,V).slice();return e.__wbindgen_export4(U,1*V,1),J}finally{e.__wbindgen_add_to_stack_pointer(16)}}processGeometryBatchPartitioned(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){const A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=g(p,e.__wbindgen_export),H=a,U=g(l,e.__wbindgen_export),V=a,J=g(u,e.__wbindgen_export),D=a,Y=g(y,e.__wbindgen_export),X=a,K=S(f,e.__wbindgen_export),Z=a;var $=x(h)?0:g(h,e.__wbindgen_export),Q=a,q=x(m)?0:g(m,e.__wbindgen_export),_t=a,ct=x(I)?0:S(I,e.__wbindgen_export),pt=a;const ut=e.ifcapi_processGeometryBatchPartitioned(this.__wbg_ptr,A,M,F,C,_,s,o,c,d,j,H,U,V,J,D,Y,X,K,Z,!x(w),x(w)?0:w,$,Q,q,_t,ct,pt);return ft.__wrap(ut)}processGeometryBatchPartitionedFromSource(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){const I=g(t,e.__wbindgen_export),A=a,M=g(d,e.__wbindgen_export),F=a,C=g(p,e.__wbindgen_export),j=a,H=g(l,e.__wbindgen_export),U=a,V=g(u,e.__wbindgen_export),J=a,D=S(y,e.__wbindgen_export),Y=a;var X=x(w)?0:g(w,e.__wbindgen_export),K=a,Z=x(h)?0:g(h,e.__wbindgen_export),$=a,Q=x(m)?0:S(m,e.__wbindgen_export),q=a;const _t=e.ifcapi_processGeometryBatchPartitionedFromSource(this.__wbg_ptr,I,A,r,_,s,o,c,M,F,C,j,H,U,V,J,D,Y,!x(f),x(f)?0:f,X,K,Z,$,Q,q);return ft.__wrap(_t)}resolveStyledItemsShard(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=S(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export);e.ifcapi_resolveStyledItemsShard(c,this.__wbg_ptr,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return b(_)}finally{e.__wbindgen_add_to_stack_pointer(16)}}scanEntitiesFast(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,a))}scanEntitiesFastBytes(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,a))}scanEntityIndexShard(t,r,_){const s=S(t,e.__wbindgen_export);return b(e.ifcapi_scanEntityIndexShard(this.__wbg_ptr,s,a,r,_))}scanGeometryEntitiesFast(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,a))}setComputeGeometryHashes(t){e.ifcapi_setComputeGeometryHashes(this.__wbg_ptr,!x(t),x(t)?0:t)}setEntityIndex(t,r,_){const s=g(t,e.__wbindgen_export),o=a,c=g(r,e.__wbindgen_export),d=a,p=g(_,e.__wbindgen_export);e.ifcapi_setEntityIndex(this.__wbg_ptr,s,o,c,d,p,a)}setInstantiatedTypeIds(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setInstantiatedTypeIds(this.__wbg_ptr,r,a)}setMappedInstancePlan(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setMappedInstancePlan(this.__wbg_ptr,r,a)}setMaterialLayerIndex(t,r,_,s,o,c,d){const p=g(t,e.__wbindgen_export),l=a,u=g(r,e.__wbindgen_export),y=a,f=g(_,e.__wbindgen_export),w=a,h=rt(s,e.__wbindgen_export),m=a,I=rt(o,e.__wbindgen_export),A=a,M=g(c,e.__wbindgen_export),F=a,C=rt(d,e.__wbindgen_export);e.ifcapi_setMaterialLayerIndex(this.__wbg_ptr,p,l,u,y,f,w,h,m,I,A,M,F,C,a)}setMergeLayers(t){e.ifcapi_setMergeLayers(this.__wbg_ptr,t)}setRectParamFastPath(t){e.ifcapi_setRectParamFastPath(this.__wbg_ptr,t)}setReferencedRepmaps(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setReferencedRepmaps(this.__wbg_ptr,r,a)}setSkipSmallCuts(t){e.ifcapi_setSkipSmallCuts(this.__wbg_ptr,t)}setSourceBytes(t){const r=S(t,e.__wbindgen_export);e.ifcapi_setSourceBytes(this.__wbg_ptr,r,a)}setTessellationQuality(t){try{const c=e.__wbindgen_add_to_stack_pointer(-16);var r=x(t)?0:z(t,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_setTessellationQuality(c,this.__wbg_ptr,r,a);var s=i().getInt32(c+0,!0);if(i().getInt32(c+4,!0))throw b(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}simplifyMeshes(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){try{const F=e.__wbindgen_add_to_stack_pointer(-16),C=g(t,e.__wbindgen_export),j=a,H=S(r,e.__wbindgen_export),U=a,V=et(_,e.__wbindgen_export),J=a,D=et(s,e.__wbindgen_export),Y=a,X=g(o,e.__wbindgen_export),K=a,Z=g(c,e.__wbindgen_export),$=a,Q=g(d,e.__wbindgen_export),q=a,_t=rt(p,e.__wbindgen_export),ct=a,pt=rt(l,e.__wbindgen_export),ut=a,ee=S(u,e.__wbindgen_export);e.ifcapi_simplifyMeshes(F,this.__wbg_ptr,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,ct,pt,ut,ee,a,y,f,w,h,m);var I=i().getInt32(F+0,!0),A=i().getInt32(F+4,!0);if(i().getInt32(F+8,!0))throw b(A);return Et.__wrap(I)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get version(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.ifcapi_version(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);class yt{static __wrap(t){const r=Object.create(yt.prototype);return r.__wbg_ptr=t,Ge.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ge.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollection_free(t,0)}get buildingRotation(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getFloat64(_+8,!0);return 0===t?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}get diagnostics(){return b(e.meshcollection_diagnostics(this.__wbg_ptr))}get geometryAabbValues(){return b(e.meshcollection_geometryAabbValues(this.__wbg_ptr))}get geometryClosureFlags(){return b(e.meshcollection_geometryClosureFlags(this.__wbg_ptr))}get geometryHashCount(){return e.meshcollection_geometryHashCount(this.__wbg_ptr)>>>0}get geometryHashIds(){return b(e.meshcollection_geometryHashIds(this.__wbg_ptr))}get geometryHashValues(){return b(e.meshcollection_geometryHashValues(this.__wbg_ptr))}get geometryVolumeValues(){return b(e.meshcollection_geometryVolumeValues(this.__wbg_ptr))}get(t){const r=e.meshcollection_get(this.__wbg_ptr,t);return 0===r?void 0:xt.__wrap(r)}hasRtcOffset(){return 0!==e.meshcollection_hasRtcOffset(this.__wbg_ptr)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}get rtcOffsetX(){return e.meshcollection_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return e.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.meshcollection_rtcOffsetZ(this.__wbg_ptr)}takeMesh(t){const r=e.meshcollection_takeMesh(this.__wbg_ptr,t);return 0===r?void 0:xt.__wrap(r)}get totalTriangles(){return e.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get totalVertices(){return e.meshcollection_totalVertices(this.__wbg_ptr)>>>0}}Symbol.dispose&&(yt.prototype[Symbol.dispose]=yt.prototype.free);class xt{static __wrap(t){const r=Object.create(xt.prototype);return r.__wbg_ptr=t,Le.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Le.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshdatajs_free(t,0)}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_color(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get geometryClass(){return e.meshdatajs_geometryClass(this.__wbg_ptr)}get geometryItemId(){const t=e.meshdatajs_geometryItemId(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get hasTexture(){return 0!==e.meshdatajs_hasTexture(this.__wbg_ptr)}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get indices(){return b(e.meshdatajs_indices(this.__wbg_ptr))}get localBounds(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_localBounds(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=kt(t,r).slice(),e.__wbindgen_export4(t,4*r,4)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localToWorld(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_localToWorld(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=at(t,r).slice(),e.__wbindgen_export4(t,8*r,8)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get materialId(){const t=e.meshdatajs_materialId(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get normals(){return b(e.meshdatajs_normals(this.__wbg_ptr))}get origin(){return b(e.meshdatajs_origin(this.__wbg_ptr))}get positions(){return b(e.meshdatajs_positions(this.__wbg_ptr))}get shadingColor(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_shadingColor(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=kt(t,r).slice(),e.__wbindgen_export4(t,4*r,4)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get textureHeight(){return e.meshdatajs_textureHeight(this.__wbg_ptr)>>>0}get textureId(){return e.meshdatajs_textureId(this.__wbg_ptr)>>>0}get textureRepeatS(){return 0!==e.meshdatajs_textureRepeatS(this.__wbg_ptr)}get textureRepeatT(){return 0!==e.meshdatajs_textureRepeatT(this.__wbg_ptr)}get textureRgba(){return b(e.meshdatajs_textureRgba(this.__wbg_ptr))}get textureUrl(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_textureUrl(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=T(t,r).slice(),e.__wbindgen_export4(t,1*r,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get textureWidth(){return e.meshdatajs_textureWidth(this.__wbg_ptr)>>>0}get triangleCount(){return e.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get uvs(){return b(e.meshdatajs_uvs(this.__wbg_ptr))}get vertexCount(){return e.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(xt.prototype[Symbol.dispose]=xt.prototype.free);class vt{static __wrap(t){const r=Object.create(vt.prototype);return r.__wbg_ptr=t,We.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,We.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshoutlinejs_free(t,0)}get axisMax(){return e.meshoutlinejs_axisMax(this.__wbg_ptr)}get axisMin(){return e.meshoutlinejs_axisMin(this.__wbg_ptr)}contour(t){return b(e.meshoutlinejs_contour(this.__wbg_ptr,t))}get contourCount(){return e.meshoutlinejs_contourCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(vt.prototype[Symbol.dispose]=vt.prototype.free);class ft{static __wrap(t){const r=Object.create(ft.prototype);return r.__wbg_ptr=t,Ue.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ue.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_partitionedbatch_free(t,0)}get instancedOccurrences(){return e.partitionedbatch_instancedOccurrences(this.__wbg_ptr)>>>0}takeMeshes(){const t=e.partitionedbatch_takeMeshes(this.__wbg_ptr);return 0===t?void 0:yt.__wrap(t)}takeShard(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.partitionedbatch_takeShard(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(ft.prototype[Symbol.dispose]=ft.prototype.free);class Tt{static __wrap(t){const r=Object.create(Tt.prototype);return r.__wbg_ptr=t,Ve.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ve.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profilecollection_free(t,0)}get(t){const r=e.profilecollection_get(this.__wbg_ptr,t);return 0===r?void 0:zt.__wrap(r)}get length(){return e.profilecollection_length(this.__wbg_ptr)>>>0}get skippedExpressIds(){return b(e.profilecollection_skippedExpressIds(this.__wbg_ptr))}}Symbol.dispose&&(Tt.prototype[Symbol.dispose]=Tt.prototype.free);class zt{static __wrap(t){const r=Object.create(zt.prototype);return r.__wbg_ptr=t,Ne.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ne.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profileentryjs_free(t,0)}get expressId(){return e.profileentryjs_expressId(this.__wbg_ptr)>>>0}get extrusionDepth(){return e.profileentryjs_extrusionDepth(this.__wbg_ptr)}get extrusionDir(){return b(e.profileentryjs_extrusionDir(this.__wbg_ptr))}get holeCounts(){return b(e.profileentryjs_holeCounts(this.__wbg_ptr))}get holePoints(){return b(e.profileentryjs_holePoints(this.__wbg_ptr))}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.profileentryjs_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get modelIndex(){return e.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){return b(e.profileentryjs_outerPoints(this.__wbg_ptr))}get transform(){return b(e.profileentryjs_transform(this.__wbg_ptr))}}Symbol.dispose&&(zt.prototype[Symbol.dispose]=zt.prototype.free);class Et{static __wrap(t){const r=Object.create(Et.prototype);return r.__wbg_ptr=t,He.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,He.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_simplifiedmeshes_free(t,0)}get cavitiesDropped(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_cavitiesDropped(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get elementIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_elementIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indexCounts(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_indexCounts(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get levels(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_levels(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localIndices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_localIndices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localPositions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_localPositions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderIndices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderIndices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderNormals(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderNormals(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderOrigins(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderOrigins(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderPositions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderPositions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get skippedIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_skippedIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get skippedReasons(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_skippedReasons(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=function xr(n,t){n>>>=0;const r=i(),_=[];for(let s=n;s<n+4*t;s+=4)_.push(b(r.getUint32(s,!0)));return _}(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get trisAfter(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_trisAfter(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get trisBefore(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_trisBefore(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get vertexCounts(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_vertexCounts(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Et.prototype[Symbol.dispose]=Et.prototype.free);class It{static __wrap(t){const r=Object.create(It.prototype);return r.__wbg_ptr=t,pe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_spaceplatehandle_free(t,0)}addFace(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=rt(t,e.__wbindgen_export);e.spaceplatehandle_addFace(c,this.__wbg_ptr,d,a,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return b(_)}finally{e.__wbindgen_add_to_stack_pointer(16)}}boundingElements(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_boundingElements(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}dissolveVertex(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_dissolveVertex(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}dragVertex(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_dragVertex(d,this.__wbg_ptr,t,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return b(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}duplicate(){const t=e.spaceplatehandle_duplicate(this.__wbg_ptr);return It.__wrap(t)}faceArea(t){return e.spaceplatehandle_faceArea(this.__wbg_ptr,t)}faceOutline(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_faceOutline(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0),s=at(r,_).slice();return e.__wbindgen_export4(r,8*_,8),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}findVertexNear(t,r,_){const s=e.spaceplatehandle_findVertexNear(this.__wbg_ptr,t,r,_);return s===Number.MAX_SAFE_INTEGER?void 0:s}static fromWallRects(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=rt(t,e.__wbindgen_export);e.spaceplatehandle_fromWallRects(d,p,a,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return It.__wrap(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}gapBoundary(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_gapBoundary(c,this.__wbg_ptr,t,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=at(_,s).slice();return e.__wbindgen_export4(_,8*s,8),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}mergeFaces(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_mergeFaces(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}neighborAcross(t){const r=e.spaceplatehandle_neighborAcross(this.__wbg_ptr,t);return r===Number.MAX_SAFE_INTEGER?void 0:r}netOutline(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_netOutline(c,this.__wbg_ptr,t,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=at(_,s).slice();return e.__wbindgen_export4(_,8*s,8),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}constructor(t,r,_,s,o){try{const l=e.__wbindgen_add_to_stack_pointer(-16),u=rt(t,e.__wbindgen_export),y=a,f=g(r,e.__wbindgen_export),w=a,h=rt(_,e.__wbindgen_export);e.spaceplatehandle_new(l,u,y,f,w,h,a,s,o);var c=i().getInt32(l+0,!0),d=i().getInt32(l+4,!0);if(i().getInt32(l+8,!0))throw b(d);return this.__wbg_ptr=c,pe.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}prune(){return e.spaceplatehandle_prune(this.__wbg_ptr)>>>0}removeEdge(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_removeEdge(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get roomCount(){return e.spaceplatehandle_roomCount(this.__wbg_ptr)>>>0}roomIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_roomIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}setFaceHeight(t,r,_,s){e.spaceplatehandle_setFaceHeight(this.__wbg_ptr,t,r,_,s)}snapshot(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_snapshot(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0);if(i().getInt32(s+8,!0))throw b(r);return b(t)}finally{e.__wbindgen_add_to_stack_pointer(16)}}splitEdge(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_splitEdge(d,this.__wbg_ptr,t,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return s>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}splitFace(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_splitFace(p,this.__wbg_ptr,t,r,_,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0);if(i().getInt32(p+8,!0))throw b(c);return b(o)}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(It.prototype[Symbol.dispose]=It.prototype.free);class Bt{static __wrap(t){const r=Object.create(Bt.prototype);return r.__wbg_ptr=t,Je.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Je.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symboliccircle_free(t,0)}get centerX(){return e.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return e.symboliccircle_centerY(this.__wbg_ptr)}get endAngle(){return e.symboliccircle_endAngle(this.__wbg_ptr)}get expressId(){return e.symboliccircle_expressId(this.__wbg_ptr)>>>0}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get isFullCircle(){return 0!==e.symboliccircle_isFullCircle(this.__wbg_ptr)}get radius(){return e.symboliccircle_radius(this.__wbg_ptr)}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get startAngle(){return e.symboliccircle_startAngle(this.__wbg_ptr)}get worldY(){return e.symboliccircle_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Bt.prototype[Symbol.dispose]=Bt.prototype.free);class Ot{static __wrap(t){const r=Object.create(Ot.prototype);return r.__wbg_ptr=t,De.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,De.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicfillarea_free(t,0)}get expressId(){return e.symbolicfillarea_expressId(this.__wbg_ptr)>>>0}get fillA(){return e.symbolicfillarea_fillA(this.__wbg_ptr)}get fillB(){return e.symbolicfillarea_fillB(this.__wbg_ptr)}get fillG(){return e.symbolicfillarea_fillG(this.__wbg_ptr)}get fillR(){return e.symbolicfillarea_fillR(this.__wbg_ptr)}get hasHatching(){return 0!==e.symbolicfillarea_hasHatching(this.__wbg_ptr)}get hatchAngle(){return e.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get hatchAngleSecondary(){return e.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get hatchLineWidth(){return e.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get hatchSpacing(){return e.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get holeCount(){return e.symbolicfillarea_holeCount(this.__wbg_ptr)>>>0}get holesOffsets(){return b(e.symbolicfillarea_holesOffsets(this.__wbg_ptr))}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicfillarea_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get pointCount(){return e.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get points(){return b(e.symbolicfillarea_points(this.__wbg_ptr))}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicfillarea_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get worldY(){return e.symbolicfillarea_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Ot.prototype[Symbol.dispose]=Ot.prototype.free);class Pt{static __wrap(t){const r=Object.create(Pt.prototype);return r.__wbg_ptr=t,Ye.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ye.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicpolyline_free(t,0)}get expressId(){return e.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get isClosed(){return 0!==e.symbolicpolyline_isClosed(this.__wbg_ptr)}get pointCount(){return e.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get points(){return b(e.symbolicpolyline_points(this.__wbg_ptr))}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get worldY(){return e.symbolicpolyline_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Pt.prototype[Symbol.dispose]=Pt.prototype.free);class Gt{static __wrap(t){const r=Object.create(Gt.prototype);return r.__wbg_ptr=t,Xe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicrepresentationcollection_free(t,0)}get circleCount(){return e.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}get fillCount(){return e.symbolicrepresentationcollection_fillCount(this.__wbg_ptr)>>>0}getCircle(t){const r=e.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return 0===r?void 0:Bt.__wrap(r)}getExpressIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}getFill(t){const r=e.symbolicrepresentationcollection_getFill(this.__wbg_ptr,t);return 0===r?void 0:Ot.__wrap(r)}getPolyline(t){const r=e.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return 0===r?void 0:Pt.__wrap(r)}getText(t){const r=e.symbolicrepresentationcollection_getText(this.__wbg_ptr,t);return 0===r?void 0:Lt.__wrap(r)}get isEmpty(){return 0!==e.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)}get polylineCount(){return e.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}get textCount(){return e.symbolicrepresentationcollection_textCount(this.__wbg_ptr)>>>0}get totalCount(){return e.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get truncatedAt(){const t=e.symbolicrepresentationcollection_truncatedAt(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get truncatedLimit(){const t=e.symbolicrepresentationcollection_truncatedLimit(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get truncatedReason(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_truncatedReason(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=T(t,r).slice(),e.__wbindgen_export4(t,1*r,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Gt.prototype[Symbol.dispose]=Gt.prototype.free);class Lt{static __wrap(t){const r=Object.create(Lt.prototype);return r.__wbg_ptr=t,Ke.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ke.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolictext_free(t,0)}get alignment(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_alignment(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get colorA(){return e.symbolictext_colorA(this.__wbg_ptr)}get colorB(){return e.symbolictext_colorB(this.__wbg_ptr)}get colorG(){return e.symbolictext_colorG(this.__wbg_ptr)}get colorR(){return e.symbolictext_colorR(this.__wbg_ptr)}get content(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_content(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get dirX(){return e.symbolictext_dirX(this.__wbg_ptr)}get dirY(){return e.symbolictext_dirY(this.__wbg_ptr)}get expressId(){return e.symbolictext_expressId(this.__wbg_ptr)>>>0}get height(){return e.symbolictext_height(this.__wbg_ptr)}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get targetPx(){return e.symbolictext_targetPx(this.__wbg_ptr)}get worldY(){return e.symbolictext_worldY(this.__wbg_ptr)}get x(){return e.symbolictext_x(this.__wbg_ptr)}get y(){return e.symbolictext_y(this.__wbg_ptr)}}Symbol.dispose&&(Lt.prototype[Symbol.dispose]=Lt.prototype.free);class Wt{static __wrap(t){const r=Object.create(Wt.prototype);return r.__wbg_ptr=t,Ze.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zonepiecejs_free(t,0)}get indices(){return b(e.zonepiecejs_indices(this.__wbg_ptr))}get positions(){return b(e.zonepiecejs_positions(this.__wbg_ptr))}get volume(){return e.zonepiecejs_volume(this.__wbg_ptr)}get zoneIndex(){return e.zonepiecejs_zoneIndex(this.__wbg_ptr)}}Symbol.dispose&&(Wt.prototype[Symbol.dispose]=Wt.prototype.free);class Ut{static __wrap(t){const r=Object.create(Ut.prototype);return r.__wbg_ptr=t,$e.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$e.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zonesplitjs_free(t,0)}piece(t){const r=e.zonesplitjs_piece(this.__wbg_ptr,t);return 0===r?void 0:Wt.__wrap(r)}get pieceCount(){return e.zonesplitjs_pieceCount(this.__wbg_ptr)>>>0}get remainderFailed(){return 0!==e.zonesplitjs_remainderFailed(this.__wbg_ptr)}get sumErrorRel(){return e.zonesplitjs_sumErrorRel(this.__wbg_ptr)}get wholeVolume(){return e.zonesplitjs_wholeVolume(this.__wbg_ptr)}}function Re(){return{__proto__:null,"./ifc-lite_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,r){return R(Error(T(t,r)))},__wbg_String_8564e559799eccda:function(t,r){const s=z(String(W(r)),e.__wbindgen_export,e.__wbindgen_export2),o=a;i().setInt32(t+4,o,!0),i().setInt32(t+0,s,!0)},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return void 0===W(t)},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R(e.memory)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,r){const _=W(r),s="string"==typeof _?_:void 0;var o=x(s)?0:z(s,e.__wbindgen_export,e.__wbindgen_export2),c=a;i().setInt32(t+4,c,!0),i().setInt32(t+0,o,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,r){throw new Error(T(t,r))},__wbg_call_a6e5c5dce5018821:function(){return rr(function(t,r,_){return R(W(t).call(W(r),W(_)))},arguments)},__wbg_error_a6fa202b58aa1cd3:function(t,r){let _,s;try{_=t,s=r,console.error(T(t,r))}finally{e.__wbindgen_export4(_,s,1)}},__wbg_info_eadbe775a8e2e9eb:function(t){console.info(W(t))},__wbg_new_227d7c05414eb861:function(){return R(new Error)},__wbg_new_32b398fb48b6d94a:function(){return R(new Array)},__wbg_new_b667d279fd5aa943:function(t,r){return R(new Error(T(t,r)))},__wbg_new_da52cf8fe3429cb2:function(){return R(new Object)},__wbg_new_from_slice_36bac521fad54bb4:function(t,r){const _=new BigUint64Array(function vr(n,t){return n>>>=0,function Ir(){return(null===Vt||0===Vt.byteLength)&&(Vt=new BigUint64Array(e.memory.buffer)),Vt}().subarray(n/8,n/8+t)}(t,r));return R(_)},__wbg_new_from_slice_7568ba55b4a7e81f:function(t,r){return R(new Uint32Array(tt(t,r)))},__wbg_new_from_slice_77cdfb7977362f3c:function(t,r){return R(new Uint8Array(N(t,r)))},__wbg_new_from_slice_7e254b47c77fb8cc:function(t,r){return R(new Float64Array(at(t,r)))},__wbg_new_from_slice_ddf8b82c4d6af38e:function(t,r){return R(new Float32Array(kt(t,r)))},__wbg_new_with_length_112583d83d0cb73c:function(t){return R(new Float64Array(t>>>0))},__wbg_new_with_length_e1d8c8061ed4e317:function(t){return R(new Float32Array(t>>>0))},__wbg_new_with_length_f048f86e32f1515e:function(t){return R(new Uint32Array(t>>>0))},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_set_6be42768c690e380:function(t,r,_){W(t)[b(r)]=b(_)},__wbg_set_8535240470bf2500:function(){return rr(function(t,r,_){return Reflect.set(W(t),W(r),W(_))},arguments)},__wbg_set_8a16b38e4805b298:function(t,r,_){W(t)[r>>>0]=b(_)},__wbg_set_index_1edd196294cd6dbf:function(t,r,_){W(t)[r>>>0]=_>>>0},__wbg_set_index_2eba9e8997f36eb4:function(t,r,_){W(t)[r>>>0]=_},__wbg_set_index_f15f4feb1d940b8c:function(t,r,_){W(t)[r>>>0]=_},__wbg_set_name_3bbc583faefa4193:function(t,r,_){W(t).name=T(r,_)},__wbg_stack_3b0d974bbf31e44f:function(t,r){const s=z(W(r).stack,e.__wbindgen_export,e.__wbindgen_export2),o=a;i().setInt32(t+4,o,!0),i().setInt32(t+0,s,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){const t=typeof global>"u"?null:global;return x(t)?0:R(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){const t=typeof globalThis>"u"?null:globalThis;return x(t)?0:R(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){const t=typeof self>"u"?null:self;return x(t)?0:R(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){const t=typeof window>"u"?null:window;return x(t)?0:R(t)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(W(t))},__wbindgen_cast_0000000000000001:function(t){return R(t)},__wbindgen_cast_0000000000000002:function(t,r){return R(T(t,r))},__wbindgen_cast_0000000000000003:function(t){return R(BigInt.asUintN(64,t))},__wbindgen_object_clone_ref:function(t){return R(W(t))},__wbindgen_object_drop_ref:function(t){b(t)}}}}Symbol.dispose&&(Ut.prototype[Symbol.dispose]=Ut.prototype.free);const Te=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashintersectionsolidjs_free(n,1)),ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashrunresult_free(n,1)),Ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashsession_free(n,1)),ce=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_contours2d_free(n,1)),Be=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gridaxiscollection_free(n,1)),Oe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gridaxisjs_free(n,1)),Pe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_ifcapi_free(n,1)),Ge=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollection_free(n,1)),Le=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshdatajs_free(n,1)),We=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshoutlinejs_free(n,1)),Ue=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_partitionedbatch_free(n,1)),Ve=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profilecollection_free(n,1)),Ne=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profileentryjs_free(n,1)),He=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_simplifiedmeshes_free(n,1)),pe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_spaceplatehandle_free(n,1)),Je=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symboliccircle_free(n,1)),De=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicfillarea_free(n,1)),Ye=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicpolyline_free(n,1)),Xe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicrepresentationcollection_free(n,1)),Ke=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolictext_free(n,1)),Ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zonepiecejs_free(n,1)),$e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zonesplitjs_free(n,1));function R(n){Yt===it.length&&it.push(it.length+1);const t=Yt;return Yt=it[t],it[t]=n,t}function Qe(n){if(1==Xt)throw new Error("out of js stack");return it[--Xt]=n,Xt}function kt(n,t){return n>>>=0,qe().subarray(n/4,n/4+t)}function at(n,t){return n>>>=0,tr().subarray(n/8,n/8+t)}function tt(n,t){return n>>>=0,er().subarray(n/4,n/4+t)}function N(n,t){return n>>>=0,St().subarray(n/1,n/1+t)}let Vt=null,ht=null;function i(){return(null===ht||!0===ht.buffer.detached||void 0===ht.buffer.detached&&ht.buffer!==e.memory.buffer)&&(ht=new DataView(e.memory.buffer)),ht}let Nt=null;function qe(){return(null===Nt||0===Nt.byteLength)&&(Nt=new Float32Array(e.memory.buffer)),Nt}let Ht=null;function tr(){return(null===Ht||0===Ht.byteLength)&&(Ht=new Float64Array(e.memory.buffer)),Ht}function T(n,t){return function Sr(n,t){return de+=t,de>=kr&&(ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ne.decode(),de=t),ne.decode(St().subarray(n,n+t))}(n>>>0,t)}let Jt=null;function er(){return(null===Jt||0===Jt.byteLength)&&(Jt=new Uint32Array(e.memory.buffer)),Jt}let Dt=null;function St(){return(null===Dt||0===Dt.byteLength)&&(Dt=new Uint8Array(e.memory.buffer)),Dt}function W(n){return it[n]}function rr(n,t){try{return n.apply(this,t)}catch(r){e.__wbindgen_export3(R(r))}}let it=new Array(1024).fill(void 0);it.push(void 0,null,!0,!1);let Yt=it.length;function x(n){return null==n}function g(n,t){const r=t(4*n.length,4)>>>0;return er().set(n,r/4),a=n.length,r}function S(n,t){const r=t(1*n.length,1)>>>0;return St().set(n,r/1),a=n.length,r}function et(n,t){const r=t(4*n.length,4)>>>0;return qe().set(n,r/4),a=n.length,r}function rt(n,t){const r=t(8*n.length,8)>>>0;return tr().set(n,r/8),a=n.length,r}function nr(n,t){const r=t(4*n.length,4)>>>0,_=i();for(let s=0;s<n.length;s++)_.setUint32(r+4*s,R(n[s]),!0);return a=n.length,r}function z(n,t,r){if(void 0===r){const d=Kt.encode(n),p=t(d.length,1)>>>0;return St().subarray(p,p+d.length).set(d),a=d.length,p}let _=n.length,s=t(_,1)>>>0;const o=St();let c=0;for(;c<_;c++){const d=n.charCodeAt(c);if(d>127)break;o[s+c]=d}if(c!==_){0!==c&&(n=n.slice(c)),s=r(s,_,_=c+3*n.length,1)>>>0;const d=St().subarray(s+c,s+_);c+=Kt.encodeInto(n,d).written,s=r(s,_,c,1)>>>0}return a=c,s}let Xt=1024;function b(n){const t=W(n);return function mr(n){n<1028||(it[n]=Yt,Yt=n)}(n),t}let ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ne.decode();const kr=2146435072;let de=0;const Kt=new TextEncoder;"encodeInto"in Kt||(Kt.encodeInto=function(n,t){const r=Kt.encode(n);return t.set(r),{read:n.length,written:r.length}});let Fr,Ar,e,a=0;function _r(n,t){return Ar=n,e=n.exports,Fr=t,Vt=null,ht=null,Nt=null,Ht=null,Jt=null,Dt=null,e.__wbindgen_start(),e}function le(){return(le=(0,ot.A)(function*(n,t){if("function"==typeof Response&&n instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(n,t)}catch(s){if(!n.ok||!function r(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}(n.type)||"application/wasm"===n.headers.get("Content-Type"))throw s;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",s)}const _=yield n.arrayBuffer();return yield WebAssembly.instantiate(_,t)}{const _=yield WebAssembly.instantiate(n,t);return _ instanceof WebAssembly.Instance?{instance:_,module:n}:_}})).apply(this,arguments)}function ge(){return ge=(0,ot.A)(function*(n){if(void 0!==e)return e;void 0!==n&&(Object.getPrototypeOf(n)===Object.prototype?({module_or_path:n}=n):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===n&&(n=new URL("ifc-lite_bg.wasm","file:///Users/admin/dev/ui-components/node_modules/@ifc-lite/wasm/pkg/ifc-lite.js"));const t=Re();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));const{instance:r,module:_}=yield function Cr(n,t){return le.apply(this,arguments)}(yield n,t);return _r(r,_)}),ge.apply(this,arguments)}var Rr=E(16694);const zr=/unreachable|out of memory|memory access|RuntimeError|allocat|enlarge memory|grow memory|could not allocate/i;function sr(n,t){const r=t/1e9,_=n instanceof Error?n.message:String(n);return r>=2.5&&zr.test(_)?new Error(`This model is ${r.toFixed(1)} GB, which exceeds the browser's ~3 GB WebAssembly memory ceiling (32-bit address space). Open it in the ifc-lite desktop app, which has no such limit. (underlying wasm trap: ${_})`,{cause:n}):null}let or=!1;function ir(n){try{n?.free()}catch(t){if(or)return;or=!0,console.warn("[Worker] Freeing the failed engine instance threw, so its file-sized source copy stays in the wasm heap until GC (logged once per worker):",t)}}function ar(n,t){const r=new Map;for(const _ of[...n,...t])r.set(_.reason,(r.get(_.reason)??0)+_.count);return[...r.entries()].map(([_,s])=>({reason:_,count:s})).sort((_,s)=>s.count-_.count||_.reason.localeCompare(s.reason))}function Pr(n,t){if(!n)return;const r=6*t;for(let _=0;_<6;_++)if(!Number.isFinite(n[r+_]))return;return{min:[n[r],n[r+1],n[r+2]],max:[n[r+3],n[r+4],n[r+5]]}}function Gr(n,t,r){const _=6*t;n.set(r.min,_),n.set(r.max,_+3)}function Lr(n,t){if(!n)return;const r=n[t];return Number.isFinite(r)&&r>0?r:void 0}const Zt={targetMs:8e3,minJobs:64,maxJobs:512};function Vr(n,t,r,_=Zt){if(t<=0)return n;const s=r/t;if(!(s>0))return _.maxJobs;const o=Math.floor(_.targetMs/s);return Math.max(_.minJobs,Math.min(_.maxJobs,o))}const _e="__ifclite_wasm_panic";function pr(n){const r=n[_e];return delete n[_e],function cr(n){if("object"!=typeof n||null===n)return;const{location:t,at:r}=n;return"string"!=typeof t||""===t||"number"!=typeof r||!Number.isFinite(r)||r>Date.now()?void 0:{location:t,at:r}}(r)}let dr,L=null;function lt(){return be.apply(this,arguments)}function be(){return be=(0,ot.A)(function*(){return L||(yield(0,Rr.b)(()=>function jr(n){return ge.apply(this,arguments)}(dr),{label:"geometry.worker"}),L=new re,$t=!1,we(),Qt=!1,ye(),qt=!1,he(),te=!1,me(),At=!1,xe(),mt=!1,oe(),gt=!1,ve(),L)}),be.apply(this,arguments)}let lr=!1,$t=!1,fe=!0;function we(){L&&!$t&&("function"==typeof L.setMergeLayers&&L.setMergeLayers(lr),$t=!0)}let gr=null,Qt=!1;function ye(){L&&!Qt&&("function"==typeof L.setComputeGeometryHashes&&L.setComputeGeometryHashes(gr),Qt=!0)}let ur=null,qt=!1;function he(){L&&!qt&&("function"==typeof L.setTessellationQuality&&L.setTessellationQuality(ur),qt=!0)}let br=!1,te=!1;function me(){L&&!te&&("function"==typeof L.setSkipSmallCuts&&L.setSkipSmallCuts(br),te=!0)}let Ft=null,At=!1;function xe(){!L||At||!Ft||(L.setEntityIndex(Ft.ids,Ft.starts,Ft.lengths),At=!0)}let se=null,mt=!1;function oe(){const n=L;if(!n||mt||!se)return;const t=se;"function"==typeof n.setReferencedRepmaps&&n.setReferencedRepmaps(t.referencedRepmaps),"function"==typeof n.setInstantiatedTypeIds&&n.setInstantiatedTypeIds(t.instantiatedTypeIds),"function"==typeof n.setMappedInstancePlan&&t.mappedInstancePlan&&n.setMappedInstancePlan(t.mappedInstancePlan),"function"==typeof n.setMaterialLayerIndex&&n.setMaterialLayerIndex(t.mliElementIds,t.mliAxis,t.mliLayerCounts,t.mliDirectionSense,t.mliOffset,t.mliLayerMaterialIds,t.mliLayerThicknesses),mt=!0}let Ct=null,gt=!1;function ve(){!L||gt||!Ct||"function"==typeof L.setSourceBytes&&(L.setSourceBytes(Ct),gt=!0)}function Mt(n){return new Uint8Array(n)}function jt(n){const t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t}let fr=!1;function Ie(n,t){fr||(fr=!0,console.warn(`[Worker] ${n} rejected the SAB view (${t instanceof Error?t.message:String(t)}); retrying with a materialised copy \u2014 each retry allocates a full copy of the file (further occurrences suppressed)`))}let nt=null,Rt=Zt,ie=Rt.maxJobs;function wr(n){const t=n.pendingInstancedShards;n.pendingInstancedShards=[];const r=n.pendingInstancedOccurrences;n.pendingInstancedOccurrences=0;const _=n.pendingInstancedGeometry;if(n.pendingInstancedGeometry=new Map,0===n.pendingMeshes.length&&0===t.length&&0===_.size)return;const s=n.pendingMeshes,o=n.pendingTransfers;let c,d,p,l;if(n.pendingMeshes=[],n.pendingTransfers=[],_.size>0){c=new Uint32Array(_.size),d=new BigUint64Array(_.size);let u=0;for(const[y,f]of _)c[u]=y,d[u]=f.hash,f.aabb&&(p||(p=new Float64Array(6*_.size).fill(NaN)),Gr(p,u,f.aabb)),void 0!==f.volume&&(l||(l=new Float64Array(_.size).fill(NaN)),l[u]=f.volume),u+=1;o.push(c.buffer,d.buffer),p&&o.push(p.buffer),l&&o.push(l.buffer)}n.totalMeshesEmitted+=s.length+r,self.postMessage({type:"batch",meshes:s,...t.length>0?{instancedShards:t}:{},...r>0?{instancedOccurrences:r}:{},...c?{instancedGeometryHashIds:c}:{},...d?{instancedGeometryHashValues:d}:{},...p?{instancedGeometryAabbValues:p}:{},...l?{instancedGeometryVolumeValues:l}:{}},[...o,...t])}function ke(n,t){try{const r=function Wr(n){const t=new Map;if(0===(n.geometryHashCount??0))return t;const r=n.geometryHashIds,_=n.geometryHashValues;if(!r||!_)return t;const s=n.geometryAabbValues,o=n.geometryVolumeValues,c=Math.min(r.length,_.length);for(let d=0;d<c;d++){const p={hash:_[d]},l=Pr(s,d);l&&(p.aabb=l);const u=Lr(o,d);void 0!==u&&(p.volume=u),t.set(r[d],p)}return t}(t),_=new Set;for(let s=0;s<t.length;s++){const o=t.takeMesh(s);if(o)try{const c=new Float32Array(o.positions),d=new Float32Array(o.normals),p=new Uint32Array(o.indices),l=o.color,u=o.shadingColor,y=u&&4===u.length?[u[0],u[1],u[2],u[3]]:void 0,f=r.get(o.expressId),w=o.origin,h=w&&3===w.length&&(w[0]||w[1]||w[2])?[w[0],w[1],w[2]]:void 0,m=o.localBounds,I=m&&6===m.length?{min:[m[0],m[1],m[2]],max:[m[3],m[4],m[5]]}:void 0,A=o.localToWorld,M=A&&16===A.length?Array.from(A):void 0,F={expressId:o.expressId,ifcType:o.ifcType,positions:c,normals:d,indices:p,color:[l[0],l[1],l[2],l[3]],...y?{shadingColor:y}:{},...h?{origin:h}:{},...I?{localBounds:I}:{},...M?{localToWorld:M}:{},geometryClass:o.geometryClass??0,...void 0!==o.geometryItemId?{geometryItemId:o.geometryItemId}:{},...void 0!==o.materialId?{materialId:o.materialId}:{}};if(n.pendingTransfers.push(c.buffer,d.buffer,p.buffer),n.cumulativeMeshBytes+=c.byteLength+d.byteLength+p.byteLength,o.hasTexture){const C=new Float32Array(o.uvs),j=new Uint8Array(o.textureRgba);F.uvs=C,F.texture={rgba:j,width:o.textureWidth,height:o.textureHeight,repeatS:o.textureRepeatS,repeatT:o.textureRepeatT},n.pendingTransfers.push(C.buffer,j.buffer),n.cumulativeMeshBytes+=C.byteLength+j.byteLength}else if(o.textureUrl){const C=new Float32Array(o.uvs);F.uvs=C,F.textureRef={textureId:o.textureId,url:o.textureUrl,repeatS:o.textureRepeatS,repeatT:o.textureRepeatT},n.pendingTransfers.push(C.buffer),n.cumulativeMeshBytes+=C.byteLength}f&&(F.geometryHash=f.hash,f.aabb&&(F.geometryAabb=f.aabb),void 0!==f.volume&&(F.geometryVolume=f.volume)),_.add(o.expressId),n.pendingMeshes.push(F)}finally{o.free()}}for(const[s,o]of r)_.has(s)||n.pendingInstancedGeometry.set(s,o);n.diagnostics=function Br(n,t){if(!n)return t??null;if(!t)return n;const r=Math.max(n.schemaVersion??0,t.schemaVersion??0),_=ar(n.failuresByReason,t.failuresByReason),s=new Map;for(const p of[...n.worstHosts,...t.worstHosts]){const l=s.get(p.productId);l?(l.csgFailures+=p.csgFailures,l.openings+=p.openings,l.firstFailureLabel=l.firstFailureLabel??p.firstFailureLabel,l.bbox=l.bbox??p.bbox,l.triangleCount=l.triangleCount??p.triangleCount):s.set(p.productId,{...p})}const o=[...s.values()].sort((p,l)=>l.csgFailures-p.csgFailures||p.productId-l.productId).slice(0,16),d=void 0!==n.totalUnsupportedItems||void 0!==t.totalUnsupportedItems||void 0!==n.unsupportedItemsByType||void 0!==t.unsupportedItemsByType?{totalUnsupportedItems:(n.totalUnsupportedItems??0)+(t.totalUnsupportedItems??0),unsupportedItemsByType:ar(n.unsupportedItemsByType??[],t.unsupportedItemsByType??[])}:{};return{schemaVersion:r,totalCsgFailures:n.totalCsgFailures+t.totalCsgFailures,productsWithFailures:n.productsWithFailures+t.productsWithFailures,hostsWithOpenings:n.hostsWithOpenings+t.hostsWithOpenings,classification:{rectangular:n.classification.rectangular+t.classification.rectangular,diagonal:n.classification.diagonal+t.classification.diagonal,nonRectangular:n.classification.nonRectangular+t.classification.nonRectangular,total:n.classification.total+t.classification.total},failuresByReason:_,silentNoOps:n.silentNoOps+t.silentNoOps,rectFast:{fired:n.rectFast.fired+t.rectFast.fired,openingsCut:n.rectFast.openingsCut+t.rectFast.openingsCut,deferHostNotBox:n.rectFast.deferHostNotBox+t.rectFast.deferHostNotBox,deferNotThrough:n.rectFast.deferNotThrough+t.rectFast.deferNotThrough,deferOffFace:n.rectFast.deferOffFace+t.rectFast.deferOffFace,deferNearEdge:n.rectFast.deferNearEdge+t.rectFast.deferNearEdge,deferNoOpenings:n.rectFast.deferNoOpenings+t.rectFast.deferNoOpenings,deferTooManyOpenings:(n.rectFast.deferTooManyOpenings??0)+(t.rectFast.deferTooManyOpenings??0)},oversizedRefDrops:(n.oversizedRefDrops??0)+(t.oversizedRefDrops??0),worstHosts:o,...d}}(n.diagnostics,t.diagnostics)}finally{t.free()}}function yr(n,t){try{const r=t.takeMeshes();r&&ke(n,r);const _=t.takeShard();if(_&&_.byteLength>0){const s=0===_.byteOffset&&_.byteLength===_.buffer.byteLength?_.buffer:_.slice().buffer;n.pendingInstancedShards.push(s)}n.pendingInstancedOccurrences+=t.instancedOccurrences??0}finally{t.free?.()}}function ae(n,t){return Se.apply(this,arguments)}function Se(){return(Se=(0,ot.A)(function*(n,t){const r=Math.floor(t.length/3);if(0!==r)try{const _=yield lt();Ct=n.localBytes,ve();const o=gt?_.processGeometryBatchPartitionedFromSource:void 0,c=gt?_.processGeometryBatchFromSource:void 0,d=_.processGeometryBatchPartitioned;"function"==typeof o&&fe?yr(n,o.call(_,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):"function"==typeof c?ke(n,c.call(_,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):"function"==typeof d&&fe?yr(n,d.call(_,n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):ke(n,_.processGeometryBatch(n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors))}catch(_){const s=_.message;if(function Jr(){self.postMessage({type:"progress",processedJobs:0,totalJobs:0})}(),!n.sabFallbackTaken&&n.localBytes.buffer instanceof SharedArrayBuffer)return n.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),n.localBytes=jt(n.sharedBuffer),Ct=n.localBytes,gt=!1,void(yield ae(n,t));if(1===r)return console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),ir(L),void(L=null);console.warn(`[Worker] Batch of ${r} entities failed (${s}), splitting\u2026`),ir(L),L=null;const o=3*Math.floor(r/2);yield ae(n,t.slice(0,o)),yield ae(n,t.slice(o))}})).apply(this,arguments)}function Fe(){return(Fe=(0,ot.A)(function*(n,t){const r=Math.floor(t.length/3);let _=0;for(;_<r;){const s=Math.max(Rt.minJobs,Math.min(Rt.maxJobs,ie));self.postMessage({type:"progress",processedJobs:_,totalJobs:r});const o=3*_,c=Math.min(o+3*s,t.length),d=(c-o)/3,p=performance.now();yield ae(n,t.subarray(o,c)),wr(n),ie=Vr(ie,d,performance.now()-p,Rt),_+=d}})).apply(this,arguments)}let hr=Promise.resolve();function Ae(){return Ae=(0,ot.A)(function*(n){try{if("resolve-styles-shard"===n.data.type){const t=yield lt(),{sharedBuffer:r,sliceIndex:_,spans:s}=n.data;try{const o=t;let c;try{c=o.resolveStyledItemsShard(Mt(r),s)}catch(d){Ie("resolve-styles-shard",d),c=o.resolveStyledItemsShard(jt(r),s)}self.postMessage({type:"styles-shard-result",sliceIndex:_,orphanIds:c.orphanIds,orphanColors:c.orphanColors,geomIds:c.geomIds,geomColors:c.geomColors},[c.orphanIds.buffer,c.orphanColors.buffer,c.geomIds.buffer,c.geomColors.buffer])}catch(o){self.postMessage({type:"styles-shard-result",sliceIndex:_,orphanIds:new Uint32Array(0),orphanColors:new Float32Array(0),geomIds:new Uint32Array(0),geomColors:new Float32Array(0),error:o instanceof Error?o.message:String(o)})}return}if("prepass-streaming-sharded"===n.data.type){const t=yield lt();self.postMessage({type:"prepass-progress",phase:"parsing"});const{sharedBuffer:r,indexIds:_,indexStarts:s,indexLengths:o,indexClasses:c}=n.data,d=n.data.chunkSize??5e4,p=n.data.disabledTypes??void 0,l=!0===n.data.skipTypeGeometry,u=f=>{self.postMessage({type:"prepass-stream",event:f})},y=(f,w,h,m,I)=>t.buildPrePassStreamingSharded(f,u,d,p,l,w,h,m,I);try{y(Mt(r),_,s,o,c)}catch(f){const w=f instanceof Error?f.message:String(f);console.warn(`[Worker] Sharded streaming prepass with SAB view failed (${w}), retrying with copy`);try{y(jt(r),_.slice(),s.slice(),o.slice(),c.slice())}catch(h){throw sr(h,r.byteLength)??h}}return}if("finalize-styles"===n.data.type){const t=yield lt(),r=n.data,_=t,s=c=>_.finalizePrepassStyles(c,r.orphanIds,r.orphanColors,r.geomIds,r.geomColors,r.colourMapSpans,r.materialDefSpans,r.relMaterialSpans,r.voidSpans,r.fillsSpans,r.aggregateSpans,r.planeAngleToRadians);let o;try{o=s(Mt(r.sharedBuffer))}catch(c){Ie("finalize-prepass-styles",c),o=s(jt(r.sharedBuffer))}return void self.postMessage({type:"styles-final",payload:o})}if("prepass-streaming"===n.data.type){const t=yield lt();self.postMessage({type:"prepass-progress",phase:"parsing"});const r=n.data.sharedBuffer,_=n.data.chunkSize??5e4,s=n.data.disabledTypes??void 0,o=!0===n.data.skipTypeGeometry,c=p=>{self.postMessage({type:"prepass-stream",event:p})},d=p=>t.buildPrePassStreaming(p,c,_,s,o);try{d(Mt(r))}catch(p){const l=p instanceof Error?p.message:String(p);console.warn(`[Worker] Streaming prepass with SAB view failed (${l}), retrying with copy`);try{d(jt(r))}catch(u){throw sr(u,r.byteLength)??u}}return}if("scan-shard"===n.data.type){const t=yield lt(),{sharedBuffer:r,shardIndex:_,rangeStart:s,rangeEnd:o}=n.data,c=Mt(r),d=t;let p;try{p=d.scanEntityIndexShard(c,s,o)}catch(l){Ie("scan-entity-index-shard",l),p=d.scanEntityIndexShard(jt(r),s,o)}return void self.postMessage({type:"shard-result",shardIndex:_,ids:p.ids,starts:p.starts,lengths:p.lengths,classes:p.classes,handoff:p.handoff,oversizedIdStarts:p.oversizedIdStarts,malformedStart:p.malformedStart},[p.ids.buffer,p.starts.buffer,p.lengths.buffer,p.classes.buffer,...p.oversizedIdStarts?[p.oversizedIdStarts.buffer]:[]])}if("init"===n.data.type)return n.data.wasmUrl&&(dr=n.data.wasmUrl),n.data.wasmModule?(function Mr(n){if(void 0!==e)return e;void 0!==n&&(Object.getPrototypeOf(n)===Object.prototype?({module:n}=n):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Re();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n)),_r(new WebAssembly.Instance(n,t),n)}({module:n.data.wasmModule}),L=new re,$t=!1,we(),Qt=!1,ye(),qt=!1,he(),te=!1,me(),At=!1,xe(),mt=!1,oe(),gt=!1,ve()):yield lt(),void self.postMessage({type:"ready"});if("stream-start"===n.data.type)return yield lt(),Rt=function Ur(n){const t=(o,c)=>"number"==typeof o&&Number.isFinite(o)&&o>0?Math.floor(o):c,r=t(n?.targetMs,Zt.targetMs),_=t(n?.minJobs,Zt.minJobs);return{targetMs:r,minJobs:_,maxJobs:Math.max(_,t(n?.maxJobs,Zt.maxJobs))}}(n.data.batchSizing),ie=Rt.maxJobs,gt=!1,Ct=null,void(nt=function Dr(n){return{sharedBuffer:n.sharedBuffer,localBytes:Mt(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,planeAngleToRadians:n.planeAngleToRadians,materialElementIds:n.materialElementIds,materialColorCounts:n.materialColorCounts,materialColors:n.materialColors,pendingMeshes:[],pendingTransfers:[],pendingInstancedShards:[],pendingInstancedOccurrences:0,pendingInstancedGeometry:new Map,totalMeshesEmitted:0,cumulativeMeshBytes:0,diagnostics:null}}({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,planeAngleToRadians:n.data.planeAngleToRadians,materialElementIds:n.data.materialElementIds,materialColorCounts:n.data.materialColorCounts,materialColors:n.data.materialColors}));if("stream-chunk"===n.data.type){if(!nt)throw new Error("stream-chunk received before stream-start");return void(yield function Yr(n,t){return Fe.apply(this,arguments)}(nt,n.data.jobsFlat))}if("set-styles"===n.data.type){if(!nt)return;return nt.styleIds=n.data.styleIds,nt.styleColors=n.data.styleColors,nt.voidKeys=n.data.voidKeys,nt.voidCounts=n.data.voidCounts,nt.voidValues=n.data.voidValues,nt.materialElementIds=n.data.materialElementIds,nt.materialColorCounts=n.data.materialColorCounts,void(nt.materialColors=n.data.materialColors)}if("set-entity-index"===n.data.type)return yield lt(),Ft={ids:n.data.ids,starts:n.data.starts,lengths:n.data.lengths},At=!1,xe(),mt=!1,void oe();if("set-prepass-columns"===n.data.type)return yield lt(),se=n.data,mt=!1,void oe();if("set-merge-layers"===n.data.type)return lr=!0===n.data.enabled,$t=!1,void we();if("set-instancing-enabled"===n.data.type)return void(fe=!0===n.data.enabled);if("set-compute-geometry-hashes"===n.data.type){const t=n.data.tolerance;return gr=null!=t&&t>0?t:null,Qt=!1,void ye()}if("set-tessellation-quality"===n.data.type)return ur=n.data.level??null,qt=!1,void he();if("set-skip-small-cuts"===n.data.type)return br=!0===n.data.enabled,te=!1,void me();if("stream-end"===n.data.type){if(!nt)throw new Error("stream-end received before stream-start");return function Xr(n){wr(n);let t=0;try{t=L?.getMemory()?.buffer?.byteLength??0}catch(r){console.warn("[Worker] wasm heap accounting unavailable; reporting 0 bytes:",r)}self.postMessage({type:"memory",meshBytes:n.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage(function Or(n,t){return{type:"complete",totalMeshes:n,...t?{diagnostics:t}:{}}}(n.totalMeshesEmitted,n.diagnostics))}(nt),nt=null,Ft=null,At=!1,se=null,mt=!1,Ct=null,void(gt=!1)}}catch(t){const r=pr(self);self.postMessage({type:"error",message:t instanceof Error?t.message:String(t),...r?{wasmPanicLocation:r.location,wasmPanicAt:r.at}:{}})}}),Ae.apply(this,arguments)}self.onmessage=n=>{hr=hr.then(()=>function Kr(n){return Ae.apply(this,arguments)}(n)).catch(t=>{const r=pr(self);self.postMessage({type:"error",message:t instanceof Error?t.message:String(t),...r?{wasmPanicLocation:r.location,wasmPanicAt:r.at}:{}})})}}},je={};function k(v){var B=je[v];if(void 0!==B)return B.exports;var E=je[v]={exports:{}};return Me[v](E,E.exports,k),E.exports}k.m=Me,k.x=()=>{var v=k.O(void 0,[2076],()=>k(61320));return k.O(v)},v=[],k.O=(B,E,ot,P)=>{if(!E){var dt=1/0;for(G=0;G<v.length;G++){for(var[E,ot,P]=v[G],O=!0,st=0;st<E.length;st++)(!1&P||dt>=P)&&Object.keys(k.O).every(ft=>k.O[ft](E[st]))?E.splice(st--,1):(O=!1,P<dt&&(dt=P));if(O){v.splice(G--,1);var bt=ot();void 0!==bt&&(B=bt)}}return B}P=P||0;for(var G=v.length;G>0&&v[G-1][2]>P;G--)v[G]=v[G-1];v[G]=[E,ot,P]},k.n=v=>{var B=v&&v.__esModule?()=>v.default:()=>v;return k.d(B,{a:B}),B},k.d=(v,B)=>{for(var E in B)k.o(B,E)&&!k.o(v,E)&&Object.defineProperty(v,E,{enumerable:!0,get:B[E]})},k.f={},k.e=v=>Promise.all(Object.keys(k.f).reduce((B,E)=>(k.f[E](v,B),B),[])),k.u=v=>"common.js",k.miniCssF=v=>{},k.o=(v,B)=>Object.prototype.hasOwnProperty.call(v,B),k.r=v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},k.j=1320,(()=>{var v;k.tt=()=>(void 0===v&&(v={createScriptURL:B=>B},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(v=trustedTypes.createPolicy("angular#bundler",v))),v)})(),k.tu=v=>k.tt().createScriptURL(v),k.p="",(()=>{var v={1320:1};k.f.i=(P,G)=>{v[P]||importScripts(k.tu(k.p+k.u(P)))};var E=self.webpackChunkcue_ui=self.webpackChunkcue_ui||[],ot=E.push.bind(E);E.push=P=>{var[G,dt,O]=P;for(var st in dt)k.o(dt,st)&&(k.m[st]=dt[st]);for(O&&O(k);G.length;)v[G.pop()]=1;ot(P)}})(),(()=>{var v=k.x;k.x=()=>k.e(2076).then(v)})(),k.x()})();
1
+ (()=>{"use strict";var v,Me={61320(v,B,E){var ot=E(10467);class P{static __wrap(t){const r=Object.create(P.prototype);return r.__wbg_ptr=t,Te.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Te.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashintersectionsolidjs_free(t,0)}get degenerateReason(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_degenerateReason(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get indices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_indices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get isSolid(){return 0!==e.clashintersectionsolidjs_isSolid(this.__wbg_ptr)}get positions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashintersectionsolidjs_positions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get requiredM(){return e.clashintersectionsolidjs_requiredM(this.__wbg_ptr)}get thicknessM(){return e.clashintersectionsolidjs_thicknessM(this.__wbg_ptr)}get triangleCount(){return e.clashintersectionsolidjs_triangleCount(this.__wbg_ptr)>>>0}get volumeM3(){return e.clashintersectionsolidjs_volumeM3(this.__wbg_ptr)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class G{static __wrap(t){const r=Object.create(G.prototype);return r.__wbg_ptr=t,ze.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ze.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashrunresult_free(t,0)}get a(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_a(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get b(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_b(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get bounds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_bounds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get distance(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_distance(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get distanceKind(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_distanceKind(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get points(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_points(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get status(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.clashrunresult_status(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class dt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_clashsession_free(t,0)}ingest(t,r,_,s,o){const c=et(t,e.__wbindgen_export),d=a,p=g(r,e.__wbindgen_export),l=a,u=g(_,e.__wbindgen_export),y=a,f=g(s,e.__wbindgen_export),w=a,h=et(o,e.__wbindgen_export);e.clashsession_ingest(this.__wbg_ptr,c,d,p,l,u,y,f,w,h,a)}constructor(){const t=e.clashsession_new();return this.__wbg_ptr=t,Ee.register(this,this.__wbg_ptr,this),this}runRule(t,r,_,s,o,c){const d=g(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export),y=e.clashsession_runRule(this.__wbg_ptr,d,p,l,a,_,s,o,c);return G.__wrap(y)}}Symbol.dispose&&(dt.prototype[Symbol.dispose]=dt.prototype.free);class O{static __wrap(t){const r=Object.create(O.prototype);return r.__wbg_ptr=t,ce.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ce.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_contours2d_free(t,0)}bounds(){return b(e.contours2d_bounds(this.__wbg_ptr))}coords(){return b(e.contours2d_coords(this.__wbg_ptr))}static fromMeshOutline(t){!function wt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}(t,vt);const r=e.contours2d_fromMeshOutline(t.__wbg_ptr);return O.__wrap(r)}get isEmpty(){return 0!==e.contours2d_isEmpty(this.__wbg_ptr)}constructor(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=rt(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export);e.contours2d_new(c,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return this.__wbg_ptr=_,ce.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}ring(t){return b(e.contours2d_ring(this.__wbg_ptr,t))}get ringCount(){return e.contours2d_ringCount(this.__wbg_ptr)>>>0}ringLengths(){return b(e.contours2d_ringLengths(this.__wbg_ptr))}get shapeCount(){return e.contours2d_shapeCount(this.__wbg_ptr)>>>0}shapeOffsets(){return b(e.contours2d_shapeOffsets(this.__wbg_ptr))}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class st{static __wrap(t){const r=Object.create(st.prototype);return r.__wbg_ptr=t,Be.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Be.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gridaxiscollection_free(t,0)}getAxis(t){const r=e.gridaxiscollection_getAxis(this.__wbg_ptr,t);return 0===r?void 0:bt.__wrap(r)}get isEmpty(){return 0!==e.gridaxiscollection_isEmpty(this.__wbg_ptr)}get length(){return e.gridaxiscollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class bt{static __wrap(t){const r=Object.create(bt.prototype);return r.__wbg_ptr=t,Oe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Oe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gridaxisjs_free(t,0)}get axisId(){return e.gridaxisjs_axisId(this.__wbg_ptr)>>>0}get end(){return b(e.gridaxisjs_end(this.__wbg_ptr))}get gridId(){return e.gridaxisjs_gridId(this.__wbg_ptr)>>>0}get start(){return b(e.gridaxisjs_start(this.__wbg_ptr))}get tag(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.gridaxisjs_tag(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}}Symbol.dispose&&(bt.prototype[Symbol.dispose]=bt.prototype.free);class re{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_ifcapi_free(t,0)}buildPrePassOnce(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,a))}buildPrePassStreaming(t,r,_,s,o){try{const y=e.__wbindgen_add_to_stack_pointer(-16),f=S(t,e.__wbindgen_export),w=a;var c=x(s)?0:nr(s,e.__wbindgen_export),d=a;e.ifcapi_buildPrePassStreaming(y,this.__wbg_ptr,f,w,Qe(r),_,c,d,o);var p=i().getInt32(y+0,!0),l=i().getInt32(y+4,!0);if(i().getInt32(y+8,!0))throw b(l);return b(p)}finally{e.__wbindgen_add_to_stack_pointer(16),it[Xt++]=void 0}}buildPrePassStreamingSharded(t,r,_,s,o,c,d,p,l){try{const m=e.__wbindgen_add_to_stack_pointer(-16),I=S(t,e.__wbindgen_export),A=a;var u=x(s)?0:nr(s,e.__wbindgen_export),y=a;const M=g(c,e.__wbindgen_export),F=a,C=g(d,e.__wbindgen_export),j=a,H=g(p,e.__wbindgen_export),U=a,V=S(l,e.__wbindgen_export),J=a;e.ifcapi_buildPrePassStreamingSharded(m,this.__wbg_ptr,I,A,Qe(r),_,u,y,o,M,F,C,j,H,U,V,J);var f=i().getInt32(m+0,!0),w=i().getInt32(m+4,!0);if(i().getInt32(m+8,!0))throw b(w);return b(f)}finally{e.__wbindgen_add_to_stack_pointer(16),it[Xt++]=void 0}}clearPrePassCache(){e.ifcapi_clearPrePassCache(this.__wbg_ptr)}diagnoseGeometry(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_diagnoseGeometry(this.__wbg_ptr,r,a))}exportCsv(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=z(r,e.__wbindgen_export,e.__wbindgen_export2),f=a,w=z(_,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportCsv(p,this.__wbg_ptr,l,u,y,f,w,a,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportDfjson(t,r){let _,s;try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export),l=a,u=z(r,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportDfjson(d,this.__wbg_ptr,p,l,u,a);var o=i().getInt32(d+0,!0),c=i().getInt32(d+4,!0);return _=o,s=c,T(o,c)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(_,s,1)}}exportGlb(t,r,_,s,o,c,d){try{const w=e.__wbindgen_add_to_stack_pointer(-16),h=S(t,e.__wbindgen_export),m=a,I=g(_,e.__wbindgen_export),A=a,M=g(s,e.__wbindgen_export),F=a,C=z(o,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportGlb(w,this.__wbg_ptr,h,m,r,I,A,M,F,C,a,x(c)?16777215:c?1:0,x(d)?16777215:d?1:0);var p=i().getInt32(w+0,!0),l=i().getInt32(w+4,!0),u=i().getInt32(w+8,!0);if(i().getInt32(w+12,!0))throw b(u);var f=N(p,l).slice();return e.__wbindgen_export4(p,1*l,1),f}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportGlbFromMeshes(t,r,_,s,o,c,d,p,l,u,y){try{const A=e.__wbindgen_add_to_stack_pointer(-16),M=et(t,e.__wbindgen_export),F=a,C=et(r,e.__wbindgen_export),j=a,H=g(_,e.__wbindgen_export),U=a,V=g(s,e.__wbindgen_export),J=a,D=g(o,e.__wbindgen_export),Y=a,X=et(c,e.__wbindgen_export),K=a,Z=rt(d,e.__wbindgen_export),$=a,Q=g(p,e.__wbindgen_export);e.ifcapi_exportGlbFromMeshes(A,this.__wbg_ptr,M,F,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,a,l,x(u)?16777215:u?1:0,x(y)?16777215:y?1:0);var f=i().getInt32(A+0,!0),w=i().getInt32(A+4,!0),h=i().getInt32(A+8,!0);if(i().getInt32(A+12,!0))throw b(h);var I=N(f,w).slice();return e.__wbindgen_export4(f,1*w,1),I}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportHbjson(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=S(t,e.__wbindgen_export),p=a,l=z(r,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportHbjson(c,this.__wbg_ptr,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=N(_,s).slice();return e.__wbindgen_export4(_,1*s,1),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportHbjsonWithStats(t,r){const _=S(t,e.__wbindgen_export),s=a,o=z(r,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_exportHbjsonWithStats(this.__wbg_ptr,_,s,o,a))}exportIfcx(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export);e.ifcapi_exportIfcx(d,this.__wbg_ptr,p,a,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=N(s,o).slice();return e.__wbindgen_export4(s,1*o,1),c}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportJson(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export);e.ifcapi_exportJson(p,this.__wbg_ptr,l,a,r,_,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportJsonld(t,r,_,s,o,c){try{const u=e.__wbindgen_add_to_stack_pointer(-16),y=S(t,e.__wbindgen_export),f=a,w=z(r,e.__wbindgen_export,e.__wbindgen_export2),h=a,m=g(c,e.__wbindgen_export);e.ifcapi_exportJsonld(u,this.__wbg_ptr,y,f,w,h,_,s,o,m,a);var d=i().getInt32(u+0,!0),p=i().getInt32(u+4,!0),l=N(d,p).slice();return e.__wbindgen_export4(d,1*p,1),l}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportKmz(t,r,_,s,o,c,d,p){try{const h=e.__wbindgen_add_to_stack_pointer(-16),m=S(t,e.__wbindgen_export),I=a,A=z(d,e.__wbindgen_export,e.__wbindgen_export2),M=a;var l=x(p)?0:z(p,e.__wbindgen_export,e.__wbindgen_export2),u=a;e.ifcapi_exportKmz(h,this.__wbg_ptr,m,I,r,_,s,!x(o),x(o)?0:o,!x(c),x(c)?0:c,A,M,l,u);var y=i().getInt32(h+0,!0),f=i().getInt32(h+4,!0),w=N(y,f).slice();return e.__wbindgen_export4(y,1*f,1),w}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportKmzFromMeshes(t,r,_,s,o,c,d,p,l,u,y,f,w,h){try{const C=e.__wbindgen_add_to_stack_pointer(-16),j=et(t,e.__wbindgen_export),H=a,U=et(r,e.__wbindgen_export),V=a,J=g(_,e.__wbindgen_export),D=a,Y=g(s,e.__wbindgen_export),X=a,K=g(o,e.__wbindgen_export),Z=a,$=et(c,e.__wbindgen_export),Q=a,q=rt(d,e.__wbindgen_export),_t=a,ct=z(w,e.__wbindgen_export,e.__wbindgen_export2),pt=a;var m=x(h)?0:z(h,e.__wbindgen_export,e.__wbindgen_export2),I=a;e.ifcapi_exportKmzFromMeshes(C,this.__wbg_ptr,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,p,l,u,!x(y),x(y)?0:y,!x(f),x(f)?0:f,ct,pt,m,I);var A=i().getInt32(C+0,!0),M=i().getInt32(C+4,!0),F=N(A,M).slice();return e.__wbindgen_export4(A,1*M,1),F}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportMerged(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=S(t,e.__wbindgen_export),l=a,u=g(r,e.__wbindgen_export),y=a,f=z(_,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportMerged(d,this.__wbg_ptr,p,l,u,y,f,a);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=N(s,o).slice();return e.__wbindgen_export4(s,1*o,1),c}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportObj(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=g(_,e.__wbindgen_export),f=a,w=g(s,e.__wbindgen_export);e.ifcapi_exportObj(p,this.__wbg_ptr,l,u,r,y,f,w,a);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportStep(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16),l=S(t,e.__wbindgen_export),u=a,y=z(r,e.__wbindgen_export,e.__wbindgen_export2),f=a,w=g(_,e.__wbindgen_export),h=a,m=z(s,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_exportStep(p,this.__wbg_ptr,l,u,y,f,w,h,m,a);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0),d=N(o,c).slice();return e.__wbindgen_export4(o,1*c,1),d}finally{e.__wbindgen_add_to_stack_pointer(16)}}exportUsd(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16),c=S(t,e.__wbindgen_export);e.ifcapi_exportUsd(o,this.__wbg_ptr,c,a);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0),s=N(r,_).slice();return e.__wbindgen_export4(r,1*_,1),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}extractProfiles(t,r){const _=z(t,e.__wbindgen_export,e.__wbindgen_export2),o=e.ifcapi_extractProfiles(this.__wbg_ptr,_,a,r);return Tt.__wrap(o)}finalizePrepassStyles(t,r,_,s,o,c,d,p,l,u,y,f){try{const I=e.__wbindgen_add_to_stack_pointer(-16),A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=et(_,e.__wbindgen_export),H=a,U=g(s,e.__wbindgen_export),V=a,J=et(o,e.__wbindgen_export),D=a,Y=g(c,e.__wbindgen_export),X=a,K=g(d,e.__wbindgen_export),Z=a,$=g(p,e.__wbindgen_export),Q=a,q=g(l,e.__wbindgen_export),_t=a,ct=g(u,e.__wbindgen_export),pt=a,ut=g(y,e.__wbindgen_export);e.ifcapi_finalizePrepassStyles(I,this.__wbg_ptr,A,M,F,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,ct,pt,ut,a,f);var w=i().getInt32(I+0,!0),h=i().getInt32(I+4,!0);if(i().getInt32(I+8,!0))throw b(h);return b(w)}finally{e.__wbindgen_add_to_stack_pointer(16)}}getMemory(){return b(e.ifcapi_getMemory(this.__wbg_ptr))}getPipelineDiagnostics(){return b(e.ifcapi_getPipelineDiagnostics(this.__wbg_ptr))}get is_ready(){return 0!==e.ifcapi_is_ready(this.__wbg_ptr)}constructor(){const t=e.ifcapi_new();return this.__wbg_ptr=t,Pe.register(this,this.__wbg_ptr,this),this}parseAlignmentLines(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_parseAlignmentLines(this.__wbg_ptr,r,a))}parseGridAxes(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2),s=e.ifcapi_parseGridAxes(this.__wbg_ptr,r,a);return st.__wrap(s)}parseGridLines(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_parseGridLines(this.__wbg_ptr,r,a))}parseSymbolicRepresentations(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2),s=e.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,a);return Gt.__wrap(s)}processGeometryBatch(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){const A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=g(p,e.__wbindgen_export),H=a,U=g(l,e.__wbindgen_export),V=a,J=g(u,e.__wbindgen_export),D=a,Y=g(y,e.__wbindgen_export),X=a,K=S(f,e.__wbindgen_export),Z=a;var $=x(h)?0:g(h,e.__wbindgen_export),Q=a,q=x(m)?0:g(m,e.__wbindgen_export),_t=a,ct=x(I)?0:S(I,e.__wbindgen_export),pt=a;const ut=e.ifcapi_processGeometryBatch(this.__wbg_ptr,A,M,F,C,_,s,o,c,d,j,H,U,V,J,D,Y,X,K,Z,!x(w),x(w)?0:w,$,Q,q,_t,ct,pt);return yt.__wrap(ut)}processGeometryBatchFromSource(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){const I=g(t,e.__wbindgen_export),A=a,M=g(d,e.__wbindgen_export),F=a,C=g(p,e.__wbindgen_export),j=a,H=g(l,e.__wbindgen_export),U=a,V=g(u,e.__wbindgen_export),J=a,D=S(y,e.__wbindgen_export),Y=a;var X=x(w)?0:g(w,e.__wbindgen_export),K=a,Z=x(h)?0:g(h,e.__wbindgen_export),$=a,Q=x(m)?0:S(m,e.__wbindgen_export),q=a;const _t=e.ifcapi_processGeometryBatchFromSource(this.__wbg_ptr,I,A,r,_,s,o,c,M,F,C,j,H,U,V,J,D,Y,!x(f),x(f)?0:f,X,K,Z,$,Q,q);return yt.__wrap(_t)}processGeometryBatchInstanced(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){try{const D=e.__wbindgen_add_to_stack_pointer(-16),Y=S(t,e.__wbindgen_export),X=a,K=g(r,e.__wbindgen_export),Z=a,$=g(p,e.__wbindgen_export),Q=a,q=g(l,e.__wbindgen_export),_t=a,ct=g(u,e.__wbindgen_export),pt=a,ut=g(y,e.__wbindgen_export),ee=a,Ce=S(f,e.__wbindgen_export),Zr=a;var A=x(h)?0:g(h,e.__wbindgen_export),M=a,F=x(m)?0:g(m,e.__wbindgen_export),C=a,j=x(I)?0:S(I,e.__wbindgen_export),H=a;e.ifcapi_processGeometryBatchInstanced(D,this.__wbg_ptr,Y,X,K,Z,_,s,o,c,d,$,Q,q,_t,ct,pt,ut,ee,Ce,Zr,!x(w),x(w)?0:w,A,M,F,C,j,H);var U=i().getInt32(D+0,!0),V=i().getInt32(D+4,!0),J=N(U,V).slice();return e.__wbindgen_export4(U,1*V,1),J}finally{e.__wbindgen_add_to_stack_pointer(16)}}processGeometryBatchPartitioned(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m,I){const A=S(t,e.__wbindgen_export),M=a,F=g(r,e.__wbindgen_export),C=a,j=g(p,e.__wbindgen_export),H=a,U=g(l,e.__wbindgen_export),V=a,J=g(u,e.__wbindgen_export),D=a,Y=g(y,e.__wbindgen_export),X=a,K=S(f,e.__wbindgen_export),Z=a;var $=x(h)?0:g(h,e.__wbindgen_export),Q=a,q=x(m)?0:g(m,e.__wbindgen_export),_t=a,ct=x(I)?0:S(I,e.__wbindgen_export),pt=a;const ut=e.ifcapi_processGeometryBatchPartitioned(this.__wbg_ptr,A,M,F,C,_,s,o,c,d,j,H,U,V,J,D,Y,X,K,Z,!x(w),x(w)?0:w,$,Q,q,_t,ct,pt);return ft.__wrap(ut)}processGeometryBatchPartitionedFromSource(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){const I=g(t,e.__wbindgen_export),A=a,M=g(d,e.__wbindgen_export),F=a,C=g(p,e.__wbindgen_export),j=a,H=g(l,e.__wbindgen_export),U=a,V=g(u,e.__wbindgen_export),J=a,D=S(y,e.__wbindgen_export),Y=a;var X=x(w)?0:g(w,e.__wbindgen_export),K=a,Z=x(h)?0:g(h,e.__wbindgen_export),$=a,Q=x(m)?0:S(m,e.__wbindgen_export),q=a;const _t=e.ifcapi_processGeometryBatchPartitionedFromSource(this.__wbg_ptr,I,A,r,_,s,o,c,M,F,C,j,H,U,V,J,D,Y,!x(f),x(f)?0:f,X,K,Z,$,Q,q);return ft.__wrap(_t)}resolveStyledItemsShard(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=S(t,e.__wbindgen_export),p=a,l=g(r,e.__wbindgen_export);e.ifcapi_resolveStyledItemsShard(c,this.__wbg_ptr,d,p,l,a);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return b(_)}finally{e.__wbindgen_add_to_stack_pointer(16)}}scanEntitiesFast(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,a))}scanEntitiesFastBytes(t){const r=S(t,e.__wbindgen_export);return b(e.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,a))}scanEntityIndexShard(t,r,_){const s=S(t,e.__wbindgen_export);return b(e.ifcapi_scanEntityIndexShard(this.__wbg_ptr,s,a,r,_))}scanGeometryEntitiesFast(t){const r=z(t,e.__wbindgen_export,e.__wbindgen_export2);return b(e.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,a))}setComputeGeometryHashes(t){e.ifcapi_setComputeGeometryHashes(this.__wbg_ptr,!x(t),x(t)?0:t)}setEntityIndex(t,r,_){const s=g(t,e.__wbindgen_export),o=a,c=g(r,e.__wbindgen_export),d=a,p=g(_,e.__wbindgen_export);e.ifcapi_setEntityIndex(this.__wbg_ptr,s,o,c,d,p,a)}setInstantiatedTypeIds(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setInstantiatedTypeIds(this.__wbg_ptr,r,a)}setMappedInstancePlan(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setMappedInstancePlan(this.__wbg_ptr,r,a)}setMaterialLayerIndex(t,r,_,s,o,c,d){const p=g(t,e.__wbindgen_export),l=a,u=g(r,e.__wbindgen_export),y=a,f=g(_,e.__wbindgen_export),w=a,h=rt(s,e.__wbindgen_export),m=a,I=rt(o,e.__wbindgen_export),A=a,M=g(c,e.__wbindgen_export),F=a,C=rt(d,e.__wbindgen_export);e.ifcapi_setMaterialLayerIndex(this.__wbg_ptr,p,l,u,y,f,w,h,m,I,A,M,F,C,a)}setMergeLayers(t){e.ifcapi_setMergeLayers(this.__wbg_ptr,t)}setRectParamFastPath(t){e.ifcapi_setRectParamFastPath(this.__wbg_ptr,t)}setReferencedRepmaps(t){const r=g(t,e.__wbindgen_export);e.ifcapi_setReferencedRepmaps(this.__wbg_ptr,r,a)}setSkipSmallCuts(t){e.ifcapi_setSkipSmallCuts(this.__wbg_ptr,t)}setSourceBytes(t){const r=S(t,e.__wbindgen_export);e.ifcapi_setSourceBytes(this.__wbg_ptr,r,a)}setTessellationQuality(t){try{const c=e.__wbindgen_add_to_stack_pointer(-16);var r=x(t)?0:z(t,e.__wbindgen_export,e.__wbindgen_export2);e.ifcapi_setTessellationQuality(c,this.__wbg_ptr,r,a);var s=i().getInt32(c+0,!0);if(i().getInt32(c+4,!0))throw b(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}simplifyMeshes(t,r,_,s,o,c,d,p,l,u,y,f,w,h,m){try{const F=e.__wbindgen_add_to_stack_pointer(-16),C=g(t,e.__wbindgen_export),j=a,H=S(r,e.__wbindgen_export),U=a,V=et(_,e.__wbindgen_export),J=a,D=et(s,e.__wbindgen_export),Y=a,X=g(o,e.__wbindgen_export),K=a,Z=g(c,e.__wbindgen_export),$=a,Q=g(d,e.__wbindgen_export),q=a,_t=rt(p,e.__wbindgen_export),ct=a,pt=rt(l,e.__wbindgen_export),ut=a,ee=S(u,e.__wbindgen_export);e.ifcapi_simplifyMeshes(F,this.__wbg_ptr,C,j,H,U,V,J,D,Y,X,K,Z,$,Q,q,_t,ct,pt,ut,ee,a,y,f,w,h,m);var I=i().getInt32(F+0,!0),A=i().getInt32(F+4,!0);if(i().getInt32(F+8,!0))throw b(A);return Et.__wrap(I)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get version(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.ifcapi_version(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);class yt{static __wrap(t){const r=Object.create(yt.prototype);return r.__wbg_ptr=t,Ge.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ge.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollection_free(t,0)}get buildingRotation(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getFloat64(_+8,!0);return 0===t?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}get diagnostics(){return b(e.meshcollection_diagnostics(this.__wbg_ptr))}get geometryAabbValues(){return b(e.meshcollection_geometryAabbValues(this.__wbg_ptr))}get geometryClosureFlags(){return b(e.meshcollection_geometryClosureFlags(this.__wbg_ptr))}get geometryHashCount(){return e.meshcollection_geometryHashCount(this.__wbg_ptr)>>>0}get geometryHashIds(){return b(e.meshcollection_geometryHashIds(this.__wbg_ptr))}get geometryHashValues(){return b(e.meshcollection_geometryHashValues(this.__wbg_ptr))}get geometryVolumeValues(){return b(e.meshcollection_geometryVolumeValues(this.__wbg_ptr))}get(t){const r=e.meshcollection_get(this.__wbg_ptr,t);return 0===r?void 0:xt.__wrap(r)}hasRtcOffset(){return 0!==e.meshcollection_hasRtcOffset(this.__wbg_ptr)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}get rtcOffsetX(){return e.meshcollection_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return e.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.meshcollection_rtcOffsetZ(this.__wbg_ptr)}takeMesh(t){const r=e.meshcollection_takeMesh(this.__wbg_ptr,t);return 0===r?void 0:xt.__wrap(r)}get totalTriangles(){return e.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get totalVertices(){return e.meshcollection_totalVertices(this.__wbg_ptr)>>>0}}Symbol.dispose&&(yt.prototype[Symbol.dispose]=yt.prototype.free);class xt{static __wrap(t){const r=Object.create(xt.prototype);return r.__wbg_ptr=t,Le.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Le.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshdatajs_free(t,0)}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_color(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get geometryClass(){return e.meshdatajs_geometryClass(this.__wbg_ptr)}get geometryItemId(){const t=e.meshdatajs_geometryItemId(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get hasTexture(){return 0!==e.meshdatajs_hasTexture(this.__wbg_ptr)}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get indices(){return b(e.meshdatajs_indices(this.__wbg_ptr))}get localBounds(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_localBounds(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=kt(t,r).slice(),e.__wbindgen_export4(t,4*r,4)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localToWorld(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_localToWorld(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=at(t,r).slice(),e.__wbindgen_export4(t,8*r,8)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get materialId(){const t=e.meshdatajs_materialId(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get normals(){return b(e.meshdatajs_normals(this.__wbg_ptr))}get origin(){return b(e.meshdatajs_origin(this.__wbg_ptr))}get positions(){return b(e.meshdatajs_positions(this.__wbg_ptr))}get shadingColor(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_shadingColor(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=kt(t,r).slice(),e.__wbindgen_export4(t,4*r,4)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get textureHeight(){return e.meshdatajs_textureHeight(this.__wbg_ptr)>>>0}get textureId(){return e.meshdatajs_textureId(this.__wbg_ptr)>>>0}get textureRepeatS(){return 0!==e.meshdatajs_textureRepeatS(this.__wbg_ptr)}get textureRepeatT(){return 0!==e.meshdatajs_textureRepeatT(this.__wbg_ptr)}get textureRgba(){return b(e.meshdatajs_textureRgba(this.__wbg_ptr))}get textureUrl(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_textureUrl(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=T(t,r).slice(),e.__wbindgen_export4(t,1*r,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get textureWidth(){return e.meshdatajs_textureWidth(this.__wbg_ptr)>>>0}get triangleCount(){return e.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get uvs(){return b(e.meshdatajs_uvs(this.__wbg_ptr))}get vertexCount(){return e.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(xt.prototype[Symbol.dispose]=xt.prototype.free);class vt{static __wrap(t){const r=Object.create(vt.prototype);return r.__wbg_ptr=t,We.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,We.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshoutlinejs_free(t,0)}get axisMax(){return e.meshoutlinejs_axisMax(this.__wbg_ptr)}get axisMin(){return e.meshoutlinejs_axisMin(this.__wbg_ptr)}contour(t){return b(e.meshoutlinejs_contour(this.__wbg_ptr,t))}get contourCount(){return e.meshoutlinejs_contourCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(vt.prototype[Symbol.dispose]=vt.prototype.free);class ft{static __wrap(t){const r=Object.create(ft.prototype);return r.__wbg_ptr=t,Ue.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ue.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_partitionedbatch_free(t,0)}get instancedOccurrences(){return e.partitionedbatch_instancedOccurrences(this.__wbg_ptr)>>>0}takeMeshes(){const t=e.partitionedbatch_takeMeshes(this.__wbg_ptr);return 0===t?void 0:yt.__wrap(t)}takeShard(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.partitionedbatch_takeShard(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(ft.prototype[Symbol.dispose]=ft.prototype.free);class Tt{static __wrap(t){const r=Object.create(Tt.prototype);return r.__wbg_ptr=t,Ve.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ve.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profilecollection_free(t,0)}get(t){const r=e.profilecollection_get(this.__wbg_ptr,t);return 0===r?void 0:zt.__wrap(r)}get length(){return e.profilecollection_length(this.__wbg_ptr)>>>0}get skippedExpressIds(){return b(e.profilecollection_skippedExpressIds(this.__wbg_ptr))}}Symbol.dispose&&(Tt.prototype[Symbol.dispose]=Tt.prototype.free);class zt{static __wrap(t){const r=Object.create(zt.prototype);return r.__wbg_ptr=t,Ne.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ne.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profileentryjs_free(t,0)}get expressId(){return e.profileentryjs_expressId(this.__wbg_ptr)>>>0}get extrusionDepth(){return e.profileentryjs_extrusionDepth(this.__wbg_ptr)}get extrusionDir(){return b(e.profileentryjs_extrusionDir(this.__wbg_ptr))}get holeCounts(){return b(e.profileentryjs_holeCounts(this.__wbg_ptr))}get holePoints(){return b(e.profileentryjs_holePoints(this.__wbg_ptr))}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.profileentryjs_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get modelIndex(){return e.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){return b(e.profileentryjs_outerPoints(this.__wbg_ptr))}get transform(){return b(e.profileentryjs_transform(this.__wbg_ptr))}}Symbol.dispose&&(zt.prototype[Symbol.dispose]=zt.prototype.free);class Et{static __wrap(t){const r=Object.create(Et.prototype);return r.__wbg_ptr=t,He.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,He.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_simplifiedmeshes_free(t,0)}get cavitiesDropped(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_cavitiesDropped(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get elementIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_elementIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indexCounts(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_indexCounts(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get levels(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_levels(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=N(t,r).slice();return e.__wbindgen_export4(t,1*r,1),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localIndices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_localIndices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get localPositions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_localPositions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderIndices(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderIndices(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderNormals(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderNormals(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderOrigins(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderOrigins(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=at(t,r).slice();return e.__wbindgen_export4(t,8*r,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get renderPositions(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_renderPositions(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=kt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get skippedIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_skippedIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get skippedReasons(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_skippedReasons(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=function xr(n,t){n>>>=0;const r=i(),_=[];for(let s=n;s<n+4*t;s+=4)_.push(b(r.getUint32(s,!0)));return _}(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get trisAfter(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_trisAfter(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get trisBefore(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_trisBefore(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get vertexCounts(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.simplifiedmeshes_vertexCounts(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Et.prototype[Symbol.dispose]=Et.prototype.free);class It{static __wrap(t){const r=Object.create(It.prototype);return r.__wbg_ptr=t,pe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_spaceplatehandle_free(t,0)}addFace(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16),d=rt(t,e.__wbindgen_export);e.spaceplatehandle_addFace(c,this.__wbg_ptr,d,a,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0);if(i().getInt32(c+8,!0))throw b(s);return b(_)}finally{e.__wbindgen_add_to_stack_pointer(16)}}boundingElements(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_boundingElements(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}dissolveVertex(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_dissolveVertex(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}dragVertex(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_dragVertex(d,this.__wbg_ptr,t,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return b(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}duplicate(){const t=e.spaceplatehandle_duplicate(this.__wbg_ptr);return It.__wrap(t)}faceArea(t){return e.spaceplatehandle_faceArea(this.__wbg_ptr,t)}faceOutline(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_faceOutline(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0),s=at(r,_).slice();return e.__wbindgen_export4(r,8*_,8),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}findVertexNear(t,r,_){const s=e.spaceplatehandle_findVertexNear(this.__wbg_ptr,t,r,_);return s===Number.MAX_SAFE_INTEGER?void 0:s}static fromWallRects(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16),p=rt(t,e.__wbindgen_export);e.spaceplatehandle_fromWallRects(d,p,a,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return It.__wrap(s)}finally{e.__wbindgen_add_to_stack_pointer(16)}}gapBoundary(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_gapBoundary(c,this.__wbg_ptr,t,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=at(_,s).slice();return e.__wbindgen_export4(_,8*s,8),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}mergeFaces(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_mergeFaces(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}neighborAcross(t){const r=e.spaceplatehandle_neighborAcross(this.__wbg_ptr,t);return r===Number.MAX_SAFE_INTEGER?void 0:r}netOutline(t,r){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_netOutline(c,this.__wbg_ptr,t,r);var _=i().getInt32(c+0,!0),s=i().getInt32(c+4,!0),o=at(_,s).slice();return e.__wbindgen_export4(_,8*s,8),o}finally{e.__wbindgen_add_to_stack_pointer(16)}}constructor(t,r,_,s,o){try{const l=e.__wbindgen_add_to_stack_pointer(-16),u=rt(t,e.__wbindgen_export),y=a,f=g(r,e.__wbindgen_export),w=a,h=rt(_,e.__wbindgen_export);e.spaceplatehandle_new(l,u,y,f,w,h,a,s,o);var c=i().getInt32(l+0,!0),d=i().getInt32(l+4,!0);if(i().getInt32(l+8,!0))throw b(d);return this.__wbg_ptr=c,pe.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}prune(){return e.spaceplatehandle_prune(this.__wbg_ptr)>>>0}removeEdge(t){try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_removeEdge(o,this.__wbg_ptr,t);var r=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(i().getInt32(o+8,!0))throw b(_);return b(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get roomCount(){return e.spaceplatehandle_roomCount(this.__wbg_ptr)>>>0}roomIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_roomIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}setFaceHeight(t,r,_,s){e.spaceplatehandle_setFaceHeight(this.__wbg_ptr,t,r,_,s)}snapshot(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_snapshot(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0);if(i().getInt32(s+8,!0))throw b(r);return b(t)}finally{e.__wbindgen_add_to_stack_pointer(16)}}splitEdge(t,r,_){try{const d=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_splitEdge(d,this.__wbg_ptr,t,r,_);var s=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0);if(i().getInt32(d+8,!0))throw b(o);return s>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}splitFace(t,r,_,s){try{const p=e.__wbindgen_add_to_stack_pointer(-16);e.spaceplatehandle_splitFace(p,this.__wbg_ptr,t,r,_,s);var o=i().getInt32(p+0,!0),c=i().getInt32(p+4,!0);if(i().getInt32(p+8,!0))throw b(c);return b(o)}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(It.prototype[Symbol.dispose]=It.prototype.free);class Bt{static __wrap(t){const r=Object.create(Bt.prototype);return r.__wbg_ptr=t,Je.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Je.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symboliccircle_free(t,0)}get centerX(){return e.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return e.symboliccircle_centerY(this.__wbg_ptr)}get endAngle(){return e.symboliccircle_endAngle(this.__wbg_ptr)}get expressId(){return e.symboliccircle_expressId(this.__wbg_ptr)>>>0}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get isFullCircle(){return 0!==e.symboliccircle_isFullCircle(this.__wbg_ptr)}get radius(){return e.symboliccircle_radius(this.__wbg_ptr)}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get startAngle(){return e.symboliccircle_startAngle(this.__wbg_ptr)}get worldY(){return e.symboliccircle_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Bt.prototype[Symbol.dispose]=Bt.prototype.free);class Ot{static __wrap(t){const r=Object.create(Ot.prototype);return r.__wbg_ptr=t,De.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,De.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicfillarea_free(t,0)}get expressId(){return e.symbolicfillarea_expressId(this.__wbg_ptr)>>>0}get fillA(){return e.symbolicfillarea_fillA(this.__wbg_ptr)}get fillB(){return e.symbolicfillarea_fillB(this.__wbg_ptr)}get fillG(){return e.symbolicfillarea_fillG(this.__wbg_ptr)}get fillR(){return e.symbolicfillarea_fillR(this.__wbg_ptr)}get hasHatching(){return 0!==e.symbolicfillarea_hasHatching(this.__wbg_ptr)}get hatchAngle(){return e.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get hatchAngleSecondary(){return e.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get hatchLineWidth(){return e.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get hatchSpacing(){return e.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get holeCount(){return e.symbolicfillarea_holeCount(this.__wbg_ptr)>>>0}get holesOffsets(){return b(e.symbolicfillarea_holesOffsets(this.__wbg_ptr))}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicfillarea_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get pointCount(){return e.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get points(){return b(e.symbolicfillarea_points(this.__wbg_ptr))}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicfillarea_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get worldY(){return e.symbolicfillarea_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Ot.prototype[Symbol.dispose]=Ot.prototype.free);class Pt{static __wrap(t){const r=Object.create(Pt.prototype);return r.__wbg_ptr=t,Ye.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ye.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicpolyline_free(t,0)}get expressId(){return e.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get isClosed(){return 0!==e.symbolicpolyline_isClosed(this.__wbg_ptr)}get pointCount(){return e.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get points(){return b(e.symbolicpolyline_points(this.__wbg_ptr))}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get worldY(){return e.symbolicpolyline_worldY(this.__wbg_ptr)}}Symbol.dispose&&(Pt.prototype[Symbol.dispose]=Pt.prototype.free);class Gt{static __wrap(t){const r=Object.create(Gt.prototype);return r.__wbg_ptr=t,Xe.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xe.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicrepresentationcollection_free(t,0)}get circleCount(){return e.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}get fillCount(){return e.symbolicrepresentationcollection_fillCount(this.__wbg_ptr)>>>0}getCircle(t){const r=e.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return 0===r?void 0:Bt.__wrap(r)}getExpressIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=i().getInt32(s+0,!0),r=i().getInt32(s+4,!0),_=tt(t,r).slice();return e.__wbindgen_export4(t,4*r,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}getFill(t){const r=e.symbolicrepresentationcollection_getFill(this.__wbg_ptr,t);return 0===r?void 0:Ot.__wrap(r)}getPolyline(t){const r=e.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return 0===r?void 0:Pt.__wrap(r)}getText(t){const r=e.symbolicrepresentationcollection_getText(this.__wbg_ptr,t);return 0===r?void 0:Lt.__wrap(r)}get isEmpty(){return 0!==e.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)}get polylineCount(){return e.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}get textCount(){return e.symbolicrepresentationcollection_textCount(this.__wbg_ptr)>>>0}get totalCount(){return e.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get truncatedAt(){const t=e.symbolicrepresentationcollection_truncatedAt(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get truncatedLimit(){const t=e.symbolicrepresentationcollection_truncatedLimit(this.__wbg_ptr);return t===Number.MAX_SAFE_INTEGER?void 0:t}get truncatedReason(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_truncatedReason(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),r=i().getInt32(_+4,!0);let s;return 0!==t&&(s=T(t,r).slice(),e.__wbindgen_export4(t,1*r,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Gt.prototype[Symbol.dispose]=Gt.prototype.free);class Lt{static __wrap(t){const r=Object.create(Lt.prototype);return r.__wbg_ptr=t,Ke.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ke.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolictext_free(t,0)}get alignment(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_alignment(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get colorA(){return e.symbolictext_colorA(this.__wbg_ptr)}get colorB(){return e.symbolictext_colorB(this.__wbg_ptr)}get colorG(){return e.symbolictext_colorG(this.__wbg_ptr)}get colorR(){return e.symbolictext_colorR(this.__wbg_ptr)}get content(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_content(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get dirX(){return e.symbolictext_dirX(this.__wbg_ptr)}get dirY(){return e.symbolictext_dirY(this.__wbg_ptr)}get expressId(){return e.symbolictext_expressId(this.__wbg_ptr)>>>0}get height(){return e.symbolictext_height(this.__wbg_ptr)}get ifcType(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_ifcType(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get repIdentifier(){let t,r;try{const o=e.__wbindgen_add_to_stack_pointer(-16);e.symbolictext_repIdentifier(o,this.__wbg_ptr);var _=i().getInt32(o+0,!0),s=i().getInt32(o+4,!0);return t=_,r=s,T(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(t,r,1)}}get targetPx(){return e.symbolictext_targetPx(this.__wbg_ptr)}get worldY(){return e.symbolictext_worldY(this.__wbg_ptr)}get x(){return e.symbolictext_x(this.__wbg_ptr)}get y(){return e.symbolictext_y(this.__wbg_ptr)}}Symbol.dispose&&(Lt.prototype[Symbol.dispose]=Lt.prototype.free);class Wt{static __wrap(t){const r=Object.create(Wt.prototype);return r.__wbg_ptr=t,Ze.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zonepiecejs_free(t,0)}get indices(){return b(e.zonepiecejs_indices(this.__wbg_ptr))}get positions(){return b(e.zonepiecejs_positions(this.__wbg_ptr))}get volume(){return e.zonepiecejs_volume(this.__wbg_ptr)}get zoneIndex(){return e.zonepiecejs_zoneIndex(this.__wbg_ptr)}}Symbol.dispose&&(Wt.prototype[Symbol.dispose]=Wt.prototype.free);class Ut{static __wrap(t){const r=Object.create(Ut.prototype);return r.__wbg_ptr=t,$e.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$e.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zonesplitjs_free(t,0)}piece(t){const r=e.zonesplitjs_piece(this.__wbg_ptr,t);return 0===r?void 0:Wt.__wrap(r)}get pieceCount(){return e.zonesplitjs_pieceCount(this.__wbg_ptr)>>>0}get remainderFailed(){return 0!==e.zonesplitjs_remainderFailed(this.__wbg_ptr)}get sumErrorRel(){return e.zonesplitjs_sumErrorRel(this.__wbg_ptr)}get wholeVolume(){return e.zonesplitjs_wholeVolume(this.__wbg_ptr)}}function Re(){return{__proto__:null,"./ifc-lite_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,r){return R(Error(T(t,r)))},__wbg_String_8564e559799eccda:function(t,r){const s=z(String(W(r)),e.__wbindgen_export,e.__wbindgen_export2),o=a;i().setInt32(t+4,o,!0),i().setInt32(t+0,s,!0)},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return void 0===W(t)},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R(e.memory)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,r){const _=W(r),s="string"==typeof _?_:void 0;var o=x(s)?0:z(s,e.__wbindgen_export,e.__wbindgen_export2),c=a;i().setInt32(t+4,c,!0),i().setInt32(t+0,o,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,r){throw new Error(T(t,r))},__wbg_call_a6e5c5dce5018821:function(){return rr(function(t,r,_){return R(W(t).call(W(r),W(_)))},arguments)},__wbg_error_a6fa202b58aa1cd3:function(t,r){let _,s;try{_=t,s=r,console.error(T(t,r))}finally{e.__wbindgen_export4(_,s,1)}},__wbg_info_eadbe775a8e2e9eb:function(t){console.info(W(t))},__wbg_new_227d7c05414eb861:function(){return R(new Error)},__wbg_new_32b398fb48b6d94a:function(){return R(new Array)},__wbg_new_b667d279fd5aa943:function(t,r){return R(new Error(T(t,r)))},__wbg_new_da52cf8fe3429cb2:function(){return R(new Object)},__wbg_new_from_slice_36bac521fad54bb4:function(t,r){const _=new BigUint64Array(function vr(n,t){return n>>>=0,function Ir(){return(null===Vt||0===Vt.byteLength)&&(Vt=new BigUint64Array(e.memory.buffer)),Vt}().subarray(n/8,n/8+t)}(t,r));return R(_)},__wbg_new_from_slice_7568ba55b4a7e81f:function(t,r){return R(new Uint32Array(tt(t,r)))},__wbg_new_from_slice_77cdfb7977362f3c:function(t,r){return R(new Uint8Array(N(t,r)))},__wbg_new_from_slice_7e254b47c77fb8cc:function(t,r){return R(new Float64Array(at(t,r)))},__wbg_new_from_slice_ddf8b82c4d6af38e:function(t,r){return R(new Float32Array(kt(t,r)))},__wbg_new_with_length_112583d83d0cb73c:function(t){return R(new Float64Array(t>>>0))},__wbg_new_with_length_e1d8c8061ed4e317:function(t){return R(new Float32Array(t>>>0))},__wbg_new_with_length_f048f86e32f1515e:function(t){return R(new Uint32Array(t>>>0))},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_set_6be42768c690e380:function(t,r,_){W(t)[b(r)]=b(_)},__wbg_set_8535240470bf2500:function(){return rr(function(t,r,_){return Reflect.set(W(t),W(r),W(_))},arguments)},__wbg_set_8a16b38e4805b298:function(t,r,_){W(t)[r>>>0]=b(_)},__wbg_set_index_1edd196294cd6dbf:function(t,r,_){W(t)[r>>>0]=_>>>0},__wbg_set_index_2eba9e8997f36eb4:function(t,r,_){W(t)[r>>>0]=_},__wbg_set_index_f15f4feb1d940b8c:function(t,r,_){W(t)[r>>>0]=_},__wbg_set_name_3bbc583faefa4193:function(t,r,_){W(t).name=T(r,_)},__wbg_stack_3b0d974bbf31e44f:function(t,r){const s=z(W(r).stack,e.__wbindgen_export,e.__wbindgen_export2),o=a;i().setInt32(t+4,o,!0),i().setInt32(t+0,s,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){const t=typeof global>"u"?null:global;return x(t)?0:R(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){const t=typeof globalThis>"u"?null:globalThis;return x(t)?0:R(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){const t=typeof self>"u"?null:self;return x(t)?0:R(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){const t=typeof window>"u"?null:window;return x(t)?0:R(t)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(W(t))},__wbindgen_cast_0000000000000001:function(t){return R(t)},__wbindgen_cast_0000000000000002:function(t,r){return R(T(t,r))},__wbindgen_cast_0000000000000003:function(t){return R(BigInt.asUintN(64,t))},__wbindgen_object_clone_ref:function(t){return R(W(t))},__wbindgen_object_drop_ref:function(t){b(t)}}}}Symbol.dispose&&(Ut.prototype[Symbol.dispose]=Ut.prototype.free);const Te=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashintersectionsolidjs_free(n,1)),ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashrunresult_free(n,1)),Ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_clashsession_free(n,1)),ce=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_contours2d_free(n,1)),Be=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gridaxiscollection_free(n,1)),Oe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gridaxisjs_free(n,1)),Pe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_ifcapi_free(n,1)),Ge=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollection_free(n,1)),Le=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshdatajs_free(n,1)),We=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshoutlinejs_free(n,1)),Ue=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_partitionedbatch_free(n,1)),Ve=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profilecollection_free(n,1)),Ne=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profileentryjs_free(n,1)),He=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_simplifiedmeshes_free(n,1)),pe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_spaceplatehandle_free(n,1)),Je=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symboliccircle_free(n,1)),De=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicfillarea_free(n,1)),Ye=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicpolyline_free(n,1)),Xe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicrepresentationcollection_free(n,1)),Ke=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolictext_free(n,1)),Ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zonepiecejs_free(n,1)),$e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zonesplitjs_free(n,1));function R(n){Yt===it.length&&it.push(it.length+1);const t=Yt;return Yt=it[t],it[t]=n,t}function Qe(n){if(1==Xt)throw new Error("out of js stack");return it[--Xt]=n,Xt}function kt(n,t){return n>>>=0,qe().subarray(n/4,n/4+t)}function at(n,t){return n>>>=0,tr().subarray(n/8,n/8+t)}function tt(n,t){return n>>>=0,er().subarray(n/4,n/4+t)}function N(n,t){return n>>>=0,St().subarray(n/1,n/1+t)}let Vt=null,ht=null;function i(){return(null===ht||!0===ht.buffer.detached||void 0===ht.buffer.detached&&ht.buffer!==e.memory.buffer)&&(ht=new DataView(e.memory.buffer)),ht}let Nt=null;function qe(){return(null===Nt||0===Nt.byteLength)&&(Nt=new Float32Array(e.memory.buffer)),Nt}let Ht=null;function tr(){return(null===Ht||0===Ht.byteLength)&&(Ht=new Float64Array(e.memory.buffer)),Ht}function T(n,t){return function Sr(n,t){return de+=t,de>=kr&&(ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ne.decode(),de=t),ne.decode(St().subarray(n,n+t))}(n>>>0,t)}let Jt=null;function er(){return(null===Jt||0===Jt.byteLength)&&(Jt=new Uint32Array(e.memory.buffer)),Jt}let Dt=null;function St(){return(null===Dt||0===Dt.byteLength)&&(Dt=new Uint8Array(e.memory.buffer)),Dt}function W(n){return it[n]}function rr(n,t){try{return n.apply(this,t)}catch(r){e.__wbindgen_export3(R(r))}}let it=new Array(1024).fill(void 0);it.push(void 0,null,!0,!1);let Yt=it.length;function x(n){return null==n}function g(n,t){const r=t(4*n.length,4)>>>0;return er().set(n,r/4),a=n.length,r}function S(n,t){const r=t(1*n.length,1)>>>0;return St().set(n,r/1),a=n.length,r}function et(n,t){const r=t(4*n.length,4)>>>0;return qe().set(n,r/4),a=n.length,r}function rt(n,t){const r=t(8*n.length,8)>>>0;return tr().set(n,r/8),a=n.length,r}function nr(n,t){const r=t(4*n.length,4)>>>0,_=i();for(let s=0;s<n.length;s++)_.setUint32(r+4*s,R(n[s]),!0);return a=n.length,r}function z(n,t,r){if(void 0===r){const d=Kt.encode(n),p=t(d.length,1)>>>0;return St().subarray(p,p+d.length).set(d),a=d.length,p}let _=n.length,s=t(_,1)>>>0;const o=St();let c=0;for(;c<_;c++){const d=n.charCodeAt(c);if(d>127)break;o[s+c]=d}if(c!==_){0!==c&&(n=n.slice(c)),s=r(s,_,_=c+3*n.length,1)>>>0;const d=St().subarray(s+c,s+_);c+=Kt.encodeInto(n,d).written,s=r(s,_,c,1)>>>0}return a=c,s}let Xt=1024;function b(n){const t=W(n);return function mr(n){n<1028||(it[n]=Yt,Yt=n)}(n),t}let ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ne.decode();const kr=2146435072;let de=0;const Kt=new TextEncoder;"encodeInto"in Kt||(Kt.encodeInto=function(n,t){const r=Kt.encode(n);return t.set(r),{read:n.length,written:r.length}});let Fr,Ar,e,a=0;function _r(n,t){return Ar=n,e=n.exports,Fr=t,Vt=null,ht=null,Nt=null,Ht=null,Jt=null,Dt=null,e.__wbindgen_start(),e}function le(){return(le=(0,ot.A)(function*(n,t){if("function"==typeof Response&&n instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(n,t)}catch(s){if(!n.ok||!function r(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}(n.type)||"application/wasm"===n.headers.get("Content-Type"))throw s;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",s)}const _=yield n.arrayBuffer();return yield WebAssembly.instantiate(_,t)}{const _=yield WebAssembly.instantiate(n,t);return _ instanceof WebAssembly.Instance?{instance:_,module:n}:_}})).apply(this,arguments)}function ge(){return ge=(0,ot.A)(function*(n){if(void 0!==e)return e;void 0!==n&&(Object.getPrototypeOf(n)===Object.prototype?({module_or_path:n}=n):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===n&&(n=new URL("ifc-lite_bg.wasm","file:///Users/mads/Dev/ui-components/node_modules/@ifc-lite/wasm/pkg/ifc-lite.js"));const t=Re();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));const{instance:r,module:_}=yield function Cr(n,t){return le.apply(this,arguments)}(yield n,t);return _r(r,_)}),ge.apply(this,arguments)}var Rr=E(16694);const zr=/unreachable|out of memory|memory access|RuntimeError|allocat|enlarge memory|grow memory|could not allocate/i;function sr(n,t){const r=t/1e9,_=n instanceof Error?n.message:String(n);return r>=2.5&&zr.test(_)?new Error(`This model is ${r.toFixed(1)} GB, which exceeds the browser's ~3 GB WebAssembly memory ceiling (32-bit address space). Open it in the ifc-lite desktop app, which has no such limit. (underlying wasm trap: ${_})`,{cause:n}):null}let or=!1;function ir(n){try{n?.free()}catch(t){if(or)return;or=!0,console.warn("[Worker] Freeing the failed engine instance threw, so its file-sized source copy stays in the wasm heap until GC (logged once per worker):",t)}}function ar(n,t){const r=new Map;for(const _ of[...n,...t])r.set(_.reason,(r.get(_.reason)??0)+_.count);return[...r.entries()].map(([_,s])=>({reason:_,count:s})).sort((_,s)=>s.count-_.count||_.reason.localeCompare(s.reason))}function Pr(n,t){if(!n)return;const r=6*t;for(let _=0;_<6;_++)if(!Number.isFinite(n[r+_]))return;return{min:[n[r],n[r+1],n[r+2]],max:[n[r+3],n[r+4],n[r+5]]}}function Gr(n,t,r){const _=6*t;n.set(r.min,_),n.set(r.max,_+3)}function Lr(n,t){if(!n)return;const r=n[t];return Number.isFinite(r)&&r>0?r:void 0}const Zt={targetMs:8e3,minJobs:64,maxJobs:512};function Vr(n,t,r,_=Zt){if(t<=0)return n;const s=r/t;if(!(s>0))return _.maxJobs;const o=Math.floor(_.targetMs/s);return Math.max(_.minJobs,Math.min(_.maxJobs,o))}const _e="__ifclite_wasm_panic";function pr(n){const r=n[_e];return delete n[_e],function cr(n){if("object"!=typeof n||null===n)return;const{location:t,at:r}=n;return"string"!=typeof t||""===t||"number"!=typeof r||!Number.isFinite(r)||r>Date.now()?void 0:{location:t,at:r}}(r)}let dr,L=null;function lt(){return be.apply(this,arguments)}function be(){return be=(0,ot.A)(function*(){return L||(yield(0,Rr.b)(()=>function jr(n){return ge.apply(this,arguments)}(dr),{label:"geometry.worker"}),L=new re,$t=!1,we(),Qt=!1,ye(),qt=!1,he(),te=!1,me(),At=!1,xe(),mt=!1,oe(),gt=!1,ve(),L)}),be.apply(this,arguments)}let lr=!1,$t=!1,fe=!0;function we(){L&&!$t&&("function"==typeof L.setMergeLayers&&L.setMergeLayers(lr),$t=!0)}let gr=null,Qt=!1;function ye(){L&&!Qt&&("function"==typeof L.setComputeGeometryHashes&&L.setComputeGeometryHashes(gr),Qt=!0)}let ur=null,qt=!1;function he(){L&&!qt&&("function"==typeof L.setTessellationQuality&&L.setTessellationQuality(ur),qt=!0)}let br=!1,te=!1;function me(){L&&!te&&("function"==typeof L.setSkipSmallCuts&&L.setSkipSmallCuts(br),te=!0)}let Ft=null,At=!1;function xe(){!L||At||!Ft||(L.setEntityIndex(Ft.ids,Ft.starts,Ft.lengths),At=!0)}let se=null,mt=!1;function oe(){const n=L;if(!n||mt||!se)return;const t=se;"function"==typeof n.setReferencedRepmaps&&n.setReferencedRepmaps(t.referencedRepmaps),"function"==typeof n.setInstantiatedTypeIds&&n.setInstantiatedTypeIds(t.instantiatedTypeIds),"function"==typeof n.setMappedInstancePlan&&t.mappedInstancePlan&&n.setMappedInstancePlan(t.mappedInstancePlan),"function"==typeof n.setMaterialLayerIndex&&n.setMaterialLayerIndex(t.mliElementIds,t.mliAxis,t.mliLayerCounts,t.mliDirectionSense,t.mliOffset,t.mliLayerMaterialIds,t.mliLayerThicknesses),mt=!0}let Ct=null,gt=!1;function ve(){!L||gt||!Ct||"function"==typeof L.setSourceBytes&&(L.setSourceBytes(Ct),gt=!0)}function Mt(n){return new Uint8Array(n)}function jt(n){const t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t}let fr=!1;function Ie(n,t){fr||(fr=!0,console.warn(`[Worker] ${n} rejected the SAB view (${t instanceof Error?t.message:String(t)}); retrying with a materialised copy \u2014 each retry allocates a full copy of the file (further occurrences suppressed)`))}let nt=null,Rt=Zt,ie=Rt.maxJobs;function wr(n){const t=n.pendingInstancedShards;n.pendingInstancedShards=[];const r=n.pendingInstancedOccurrences;n.pendingInstancedOccurrences=0;const _=n.pendingInstancedGeometry;if(n.pendingInstancedGeometry=new Map,0===n.pendingMeshes.length&&0===t.length&&0===_.size)return;const s=n.pendingMeshes,o=n.pendingTransfers;let c,d,p,l;if(n.pendingMeshes=[],n.pendingTransfers=[],_.size>0){c=new Uint32Array(_.size),d=new BigUint64Array(_.size);let u=0;for(const[y,f]of _)c[u]=y,d[u]=f.hash,f.aabb&&(p||(p=new Float64Array(6*_.size).fill(NaN)),Gr(p,u,f.aabb)),void 0!==f.volume&&(l||(l=new Float64Array(_.size).fill(NaN)),l[u]=f.volume),u+=1;o.push(c.buffer,d.buffer),p&&o.push(p.buffer),l&&o.push(l.buffer)}n.totalMeshesEmitted+=s.length+r,self.postMessage({type:"batch",meshes:s,...t.length>0?{instancedShards:t}:{},...r>0?{instancedOccurrences:r}:{},...c?{instancedGeometryHashIds:c}:{},...d?{instancedGeometryHashValues:d}:{},...p?{instancedGeometryAabbValues:p}:{},...l?{instancedGeometryVolumeValues:l}:{}},[...o,...t])}function ke(n,t){try{const r=function Wr(n){const t=new Map;if(0===(n.geometryHashCount??0))return t;const r=n.geometryHashIds,_=n.geometryHashValues;if(!r||!_)return t;const s=n.geometryAabbValues,o=n.geometryVolumeValues,c=Math.min(r.length,_.length);for(let d=0;d<c;d++){const p={hash:_[d]},l=Pr(s,d);l&&(p.aabb=l);const u=Lr(o,d);void 0!==u&&(p.volume=u),t.set(r[d],p)}return t}(t),_=new Set;for(let s=0;s<t.length;s++){const o=t.takeMesh(s);if(o)try{const c=new Float32Array(o.positions),d=new Float32Array(o.normals),p=new Uint32Array(o.indices),l=o.color,u=o.shadingColor,y=u&&4===u.length?[u[0],u[1],u[2],u[3]]:void 0,f=r.get(o.expressId),w=o.origin,h=w&&3===w.length&&(w[0]||w[1]||w[2])?[w[0],w[1],w[2]]:void 0,m=o.localBounds,I=m&&6===m.length?{min:[m[0],m[1],m[2]],max:[m[3],m[4],m[5]]}:void 0,A=o.localToWorld,M=A&&16===A.length?Array.from(A):void 0,F={expressId:o.expressId,ifcType:o.ifcType,positions:c,normals:d,indices:p,color:[l[0],l[1],l[2],l[3]],...y?{shadingColor:y}:{},...h?{origin:h}:{},...I?{localBounds:I}:{},...M?{localToWorld:M}:{},geometryClass:o.geometryClass??0,...void 0!==o.geometryItemId?{geometryItemId:o.geometryItemId}:{},...void 0!==o.materialId?{materialId:o.materialId}:{}};if(n.pendingTransfers.push(c.buffer,d.buffer,p.buffer),n.cumulativeMeshBytes+=c.byteLength+d.byteLength+p.byteLength,o.hasTexture){const C=new Float32Array(o.uvs),j=new Uint8Array(o.textureRgba);F.uvs=C,F.texture={rgba:j,width:o.textureWidth,height:o.textureHeight,repeatS:o.textureRepeatS,repeatT:o.textureRepeatT},n.pendingTransfers.push(C.buffer,j.buffer),n.cumulativeMeshBytes+=C.byteLength+j.byteLength}else if(o.textureUrl){const C=new Float32Array(o.uvs);F.uvs=C,F.textureRef={textureId:o.textureId,url:o.textureUrl,repeatS:o.textureRepeatS,repeatT:o.textureRepeatT},n.pendingTransfers.push(C.buffer),n.cumulativeMeshBytes+=C.byteLength}f&&(F.geometryHash=f.hash,f.aabb&&(F.geometryAabb=f.aabb),void 0!==f.volume&&(F.geometryVolume=f.volume)),_.add(o.expressId),n.pendingMeshes.push(F)}finally{o.free()}}for(const[s,o]of r)_.has(s)||n.pendingInstancedGeometry.set(s,o);n.diagnostics=function Br(n,t){if(!n)return t??null;if(!t)return n;const r=Math.max(n.schemaVersion??0,t.schemaVersion??0),_=ar(n.failuresByReason,t.failuresByReason),s=new Map;for(const p of[...n.worstHosts,...t.worstHosts]){const l=s.get(p.productId);l?(l.csgFailures+=p.csgFailures,l.openings+=p.openings,l.firstFailureLabel=l.firstFailureLabel??p.firstFailureLabel,l.bbox=l.bbox??p.bbox,l.triangleCount=l.triangleCount??p.triangleCount):s.set(p.productId,{...p})}const o=[...s.values()].sort((p,l)=>l.csgFailures-p.csgFailures||p.productId-l.productId).slice(0,16),d=void 0!==n.totalUnsupportedItems||void 0!==t.totalUnsupportedItems||void 0!==n.unsupportedItemsByType||void 0!==t.unsupportedItemsByType?{totalUnsupportedItems:(n.totalUnsupportedItems??0)+(t.totalUnsupportedItems??0),unsupportedItemsByType:ar(n.unsupportedItemsByType??[],t.unsupportedItemsByType??[])}:{};return{schemaVersion:r,totalCsgFailures:n.totalCsgFailures+t.totalCsgFailures,productsWithFailures:n.productsWithFailures+t.productsWithFailures,hostsWithOpenings:n.hostsWithOpenings+t.hostsWithOpenings,classification:{rectangular:n.classification.rectangular+t.classification.rectangular,diagonal:n.classification.diagonal+t.classification.diagonal,nonRectangular:n.classification.nonRectangular+t.classification.nonRectangular,total:n.classification.total+t.classification.total},failuresByReason:_,silentNoOps:n.silentNoOps+t.silentNoOps,rectFast:{fired:n.rectFast.fired+t.rectFast.fired,openingsCut:n.rectFast.openingsCut+t.rectFast.openingsCut,deferHostNotBox:n.rectFast.deferHostNotBox+t.rectFast.deferHostNotBox,deferNotThrough:n.rectFast.deferNotThrough+t.rectFast.deferNotThrough,deferOffFace:n.rectFast.deferOffFace+t.rectFast.deferOffFace,deferNearEdge:n.rectFast.deferNearEdge+t.rectFast.deferNearEdge,deferNoOpenings:n.rectFast.deferNoOpenings+t.rectFast.deferNoOpenings,deferTooManyOpenings:(n.rectFast.deferTooManyOpenings??0)+(t.rectFast.deferTooManyOpenings??0)},oversizedRefDrops:(n.oversizedRefDrops??0)+(t.oversizedRefDrops??0),worstHosts:o,...d}}(n.diagnostics,t.diagnostics)}finally{t.free()}}function yr(n,t){try{const r=t.takeMeshes();r&&ke(n,r);const _=t.takeShard();if(_&&_.byteLength>0){const s=0===_.byteOffset&&_.byteLength===_.buffer.byteLength?_.buffer:_.slice().buffer;n.pendingInstancedShards.push(s)}n.pendingInstancedOccurrences+=t.instancedOccurrences??0}finally{t.free?.()}}function ae(n,t){return Se.apply(this,arguments)}function Se(){return(Se=(0,ot.A)(function*(n,t){const r=Math.floor(t.length/3);if(0!==r)try{const _=yield lt();Ct=n.localBytes,ve();const o=gt?_.processGeometryBatchPartitionedFromSource:void 0,c=gt?_.processGeometryBatchFromSource:void 0,d=_.processGeometryBatchPartitioned;"function"==typeof o&&fe?yr(n,o.call(_,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):"function"==typeof c?ke(n,c.call(_,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):"function"==typeof d&&fe?yr(n,d.call(_,n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors)):ke(n,_.processGeometryBatch(n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors,n.planeAngleToRadians,n.materialElementIds,n.materialColorCounts,n.materialColors))}catch(_){const s=_.message;if(function Jr(){self.postMessage({type:"progress",processedJobs:0,totalJobs:0})}(),!n.sabFallbackTaken&&n.localBytes.buffer instanceof SharedArrayBuffer)return n.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),n.localBytes=jt(n.sharedBuffer),Ct=n.localBytes,gt=!1,void(yield ae(n,t));if(1===r)return console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),ir(L),void(L=null);console.warn(`[Worker] Batch of ${r} entities failed (${s}), splitting\u2026`),ir(L),L=null;const o=3*Math.floor(r/2);yield ae(n,t.slice(0,o)),yield ae(n,t.slice(o))}})).apply(this,arguments)}function Fe(){return(Fe=(0,ot.A)(function*(n,t){const r=Math.floor(t.length/3);let _=0;for(;_<r;){const s=Math.max(Rt.minJobs,Math.min(Rt.maxJobs,ie));self.postMessage({type:"progress",processedJobs:_,totalJobs:r});const o=3*_,c=Math.min(o+3*s,t.length),d=(c-o)/3,p=performance.now();yield ae(n,t.subarray(o,c)),wr(n),ie=Vr(ie,d,performance.now()-p,Rt),_+=d}})).apply(this,arguments)}let hr=Promise.resolve();function Ae(){return Ae=(0,ot.A)(function*(n){try{if("resolve-styles-shard"===n.data.type){const t=yield lt(),{sharedBuffer:r,sliceIndex:_,spans:s}=n.data;try{const o=t;let c;try{c=o.resolveStyledItemsShard(Mt(r),s)}catch(d){Ie("resolve-styles-shard",d),c=o.resolveStyledItemsShard(jt(r),s)}self.postMessage({type:"styles-shard-result",sliceIndex:_,orphanIds:c.orphanIds,orphanColors:c.orphanColors,geomIds:c.geomIds,geomColors:c.geomColors},[c.orphanIds.buffer,c.orphanColors.buffer,c.geomIds.buffer,c.geomColors.buffer])}catch(o){self.postMessage({type:"styles-shard-result",sliceIndex:_,orphanIds:new Uint32Array(0),orphanColors:new Float32Array(0),geomIds:new Uint32Array(0),geomColors:new Float32Array(0),error:o instanceof Error?o.message:String(o)})}return}if("prepass-streaming-sharded"===n.data.type){const t=yield lt();self.postMessage({type:"prepass-progress",phase:"parsing"});const{sharedBuffer:r,indexIds:_,indexStarts:s,indexLengths:o,indexClasses:c}=n.data,d=n.data.chunkSize??5e4,p=n.data.disabledTypes??void 0,l=!0===n.data.skipTypeGeometry,u=f=>{self.postMessage({type:"prepass-stream",event:f})},y=(f,w,h,m,I)=>t.buildPrePassStreamingSharded(f,u,d,p,l,w,h,m,I);try{y(Mt(r),_,s,o,c)}catch(f){const w=f instanceof Error?f.message:String(f);console.warn(`[Worker] Sharded streaming prepass with SAB view failed (${w}), retrying with copy`);try{y(jt(r),_.slice(),s.slice(),o.slice(),c.slice())}catch(h){throw sr(h,r.byteLength)??h}}return}if("finalize-styles"===n.data.type){const t=yield lt(),r=n.data,_=t,s=c=>_.finalizePrepassStyles(c,r.orphanIds,r.orphanColors,r.geomIds,r.geomColors,r.colourMapSpans,r.materialDefSpans,r.relMaterialSpans,r.voidSpans,r.fillsSpans,r.aggregateSpans,r.planeAngleToRadians);let o;try{o=s(Mt(r.sharedBuffer))}catch(c){Ie("finalize-prepass-styles",c),o=s(jt(r.sharedBuffer))}return void self.postMessage({type:"styles-final",payload:o})}if("prepass-streaming"===n.data.type){const t=yield lt();self.postMessage({type:"prepass-progress",phase:"parsing"});const r=n.data.sharedBuffer,_=n.data.chunkSize??5e4,s=n.data.disabledTypes??void 0,o=!0===n.data.skipTypeGeometry,c=p=>{self.postMessage({type:"prepass-stream",event:p})},d=p=>t.buildPrePassStreaming(p,c,_,s,o);try{d(Mt(r))}catch(p){const l=p instanceof Error?p.message:String(p);console.warn(`[Worker] Streaming prepass with SAB view failed (${l}), retrying with copy`);try{d(jt(r))}catch(u){throw sr(u,r.byteLength)??u}}return}if("scan-shard"===n.data.type){const t=yield lt(),{sharedBuffer:r,shardIndex:_,rangeStart:s,rangeEnd:o}=n.data,c=Mt(r),d=t;let p;try{p=d.scanEntityIndexShard(c,s,o)}catch(l){Ie("scan-entity-index-shard",l),p=d.scanEntityIndexShard(jt(r),s,o)}return void self.postMessage({type:"shard-result",shardIndex:_,ids:p.ids,starts:p.starts,lengths:p.lengths,classes:p.classes,handoff:p.handoff,oversizedIdStarts:p.oversizedIdStarts,malformedStart:p.malformedStart},[p.ids.buffer,p.starts.buffer,p.lengths.buffer,p.classes.buffer,...p.oversizedIdStarts?[p.oversizedIdStarts.buffer]:[]])}if("init"===n.data.type)return n.data.wasmUrl&&(dr=n.data.wasmUrl),n.data.wasmModule?(function Mr(n){if(void 0!==e)return e;void 0!==n&&(Object.getPrototypeOf(n)===Object.prototype?({module:n}=n):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Re();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n)),_r(new WebAssembly.Instance(n,t),n)}({module:n.data.wasmModule}),L=new re,$t=!1,we(),Qt=!1,ye(),qt=!1,he(),te=!1,me(),At=!1,xe(),mt=!1,oe(),gt=!1,ve()):yield lt(),void self.postMessage({type:"ready"});if("stream-start"===n.data.type)return yield lt(),Rt=function Ur(n){const t=(o,c)=>"number"==typeof o&&Number.isFinite(o)&&o>0?Math.floor(o):c,r=t(n?.targetMs,Zt.targetMs),_=t(n?.minJobs,Zt.minJobs);return{targetMs:r,minJobs:_,maxJobs:Math.max(_,t(n?.maxJobs,Zt.maxJobs))}}(n.data.batchSizing),ie=Rt.maxJobs,gt=!1,Ct=null,void(nt=function Dr(n){return{sharedBuffer:n.sharedBuffer,localBytes:Mt(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,planeAngleToRadians:n.planeAngleToRadians,materialElementIds:n.materialElementIds,materialColorCounts:n.materialColorCounts,materialColors:n.materialColors,pendingMeshes:[],pendingTransfers:[],pendingInstancedShards:[],pendingInstancedOccurrences:0,pendingInstancedGeometry:new Map,totalMeshesEmitted:0,cumulativeMeshBytes:0,diagnostics:null}}({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,planeAngleToRadians:n.data.planeAngleToRadians,materialElementIds:n.data.materialElementIds,materialColorCounts:n.data.materialColorCounts,materialColors:n.data.materialColors}));if("stream-chunk"===n.data.type){if(!nt)throw new Error("stream-chunk received before stream-start");return void(yield function Yr(n,t){return Fe.apply(this,arguments)}(nt,n.data.jobsFlat))}if("set-styles"===n.data.type){if(!nt)return;return nt.styleIds=n.data.styleIds,nt.styleColors=n.data.styleColors,nt.voidKeys=n.data.voidKeys,nt.voidCounts=n.data.voidCounts,nt.voidValues=n.data.voidValues,nt.materialElementIds=n.data.materialElementIds,nt.materialColorCounts=n.data.materialColorCounts,void(nt.materialColors=n.data.materialColors)}if("set-entity-index"===n.data.type)return yield lt(),Ft={ids:n.data.ids,starts:n.data.starts,lengths:n.data.lengths},At=!1,xe(),mt=!1,void oe();if("set-prepass-columns"===n.data.type)return yield lt(),se=n.data,mt=!1,void oe();if("set-merge-layers"===n.data.type)return lr=!0===n.data.enabled,$t=!1,void we();if("set-instancing-enabled"===n.data.type)return void(fe=!0===n.data.enabled);if("set-compute-geometry-hashes"===n.data.type){const t=n.data.tolerance;return gr=null!=t&&t>0?t:null,Qt=!1,void ye()}if("set-tessellation-quality"===n.data.type)return ur=n.data.level??null,qt=!1,void he();if("set-skip-small-cuts"===n.data.type)return br=!0===n.data.enabled,te=!1,void me();if("stream-end"===n.data.type){if(!nt)throw new Error("stream-end received before stream-start");return function Xr(n){wr(n);let t=0;try{t=L?.getMemory()?.buffer?.byteLength??0}catch(r){console.warn("[Worker] wasm heap accounting unavailable; reporting 0 bytes:",r)}self.postMessage({type:"memory",meshBytes:n.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage(function Or(n,t){return{type:"complete",totalMeshes:n,...t?{diagnostics:t}:{}}}(n.totalMeshesEmitted,n.diagnostics))}(nt),nt=null,Ft=null,At=!1,se=null,mt=!1,Ct=null,void(gt=!1)}}catch(t){const r=pr(self);self.postMessage({type:"error",message:t instanceof Error?t.message:String(t),...r?{wasmPanicLocation:r.location,wasmPanicAt:r.at}:{}})}}),Ae.apply(this,arguments)}self.onmessage=n=>{hr=hr.then(()=>function Kr(n){return Ae.apply(this,arguments)}(n)).catch(t=>{const r=pr(self);self.postMessage({type:"error",message:t instanceof Error?t.message:String(t),...r?{wasmPanicLocation:r.location,wasmPanicAt:r.at}:{}})})}}},je={};function k(v){var B=je[v];if(void 0!==B)return B.exports;var E=je[v]={exports:{}};return Me[v](E,E.exports,k),E.exports}k.m=Me,k.x=()=>{var v=k.O(void 0,[2076],()=>k(61320));return k.O(v)},v=[],k.O=(B,E,ot,P)=>{if(!E){var dt=1/0;for(G=0;G<v.length;G++){for(var[E,ot,P]=v[G],O=!0,st=0;st<E.length;st++)(!1&P||dt>=P)&&Object.keys(k.O).every(ft=>k.O[ft](E[st]))?E.splice(st--,1):(O=!1,P<dt&&(dt=P));if(O){v.splice(G--,1);var bt=ot();void 0!==bt&&(B=bt)}}return B}P=P||0;for(var G=v.length;G>0&&v[G-1][2]>P;G--)v[G]=v[G-1];v[G]=[E,ot,P]},k.n=v=>{var B=v&&v.__esModule?()=>v.default:()=>v;return k.d(B,{a:B}),B},k.d=(v,B)=>{for(var E in B)k.o(B,E)&&!k.o(v,E)&&Object.defineProperty(v,E,{enumerable:!0,get:B[E]})},k.f={},k.e=v=>Promise.all(Object.keys(k.f).reduce((B,E)=>(k.f[E](v,B),B),[])),k.u=v=>"common.js",k.miniCssF=v=>{},k.o=(v,B)=>Object.prototype.hasOwnProperty.call(v,B),k.r=v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},k.j=1320,(()=>{var v;k.tt=()=>(void 0===v&&(v={createScriptURL:B=>B},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(v=trustedTypes.createPolicy("angular#bundler",v))),v)})(),k.tu=v=>k.tt().createScriptURL(v),k.p="",(()=>{var v={1320:1};k.f.i=(P,G)=>{v[P]||importScripts(k.tu(k.p+k.u(P)))};var E=self.webpackChunkcue_ui=self.webpackChunkcue_ui||[],ot=E.push.bind(E);E.push=P=>{var[G,dt,O]=P;for(var st in dt)k.o(dt,st)&&(k.m[st]=dt[st]);for(O&&O(k);G.length;)v[G.pop()]=1;ot(P)}})(),(()=>{var v=k.x;k.x=()=>k.e(2076).then(v)})(),k.x()})();