@ifc-lite/viewer 1.23.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/.turbo/turbo-build.log +34 -31
  2. package/CHANGELOG.md +96 -0
  3. package/dist/assets/{basketViewActivator-Dn_bHUl2.js → basketViewActivator-CU8_toGq.js} +7 -7
  4. package/dist/assets/{bcf-B9SFl84i.js → bcf-DXGDhw56.js} +23 -23
  5. package/dist/assets/{deflate-yMpdCIqk.js → deflate-Bb1_H2Yf.js} +1 -1
  6. package/dist/assets/{exporters-D-BvrNIg.js → exporters-DZhLN0ux.js} +1861 -1658
  7. package/dist/assets/geometry-controller.worker-DQOSYqtw.js +7 -0
  8. package/dist/assets/geometry.worker-B62e03Ao.js +1 -0
  9. package/dist/assets/{geotiff-D1tvcDCb.js → geotiff-y0ZxbRJd.js} +10 -10
  10. package/dist/assets/{ids-DZLs0snJ.js → ids-DruUNtfD.js} +4 -4
  11. package/dist/assets/ifc-lite-Ch2T9pP9.js +7 -0
  12. package/dist/assets/{ifc-lite_bg-DyHX37GQ.wasm → ifc-lite_bg-D7O1WHgP.wasm} +0 -0
  13. package/dist/assets/{ifc-lite_bg-BIryVCXQ.wasm → ifc-lite_bg-iH_07wf8.wasm} +0 -0
  14. package/dist/assets/index-Bws3UAkj.css +1 -0
  15. package/dist/assets/{index-CXSBhkcJ.js → index-Dr88ZlSY.js} +64100 -47030
  16. package/dist/assets/{jpeg-DUMcZp24.js → jpeg-B3_loqFe.js} +1 -1
  17. package/dist/assets/lens-PYsLu_MA.js +1 -0
  18. package/dist/assets/{lerc-IN4uWojP.js → lerc-nkwS8ZUe.js} +1 -1
  19. package/dist/assets/{lzw-Cnw0hH-m.js → lzw-D3cW5Wpg.js} +1 -1
  20. package/dist/assets/{native-bridge-BVf2uzoH.js → native-bridge-BcYJooq8.js} +2 -2
  21. package/dist/assets/{packbits-BskJCwk0.js → packbits-DDN4xzB5.js} +1 -1
  22. package/dist/assets/{parser.worker-BdtkkaGf.js → parser.worker-BW1IMUed.js} +3 -3
  23. package/dist/assets/raw-CoIXstQ-.js +1 -0
  24. package/dist/assets/{sandbox-VLI_y7cl.js → sandbox-DETNEyQb.js} +498 -470
  25. package/dist/assets/{server-client-BLcKaWQB.js → server-client-CmzJOeS7.js} +1 -1
  26. package/dist/assets/{wasm-bridge-BAfZh7YT.js → wasm-bridge-CT7mK9W0.js} +1 -1
  27. package/dist/assets/{webimage-Db2xzze3.js → webimage-CBjgg4up.js} +1 -1
  28. package/dist/assets/{workerHelpers--sAYm9yN.js → workerHelpers-IEQDo8r3.js} +1 -1
  29. package/dist/assets/{zstd-BDToOQyD.js → zstd-C8oQ6qdS.js} +1 -1
  30. package/dist/index.html +8 -8
  31. package/package.json +11 -9
  32. package/src/App.tsx +5 -2
  33. package/src/components/extensions/AuditLogPanel.tsx +259 -0
  34. package/src/components/extensions/BundlePreview.tsx +102 -0
  35. package/src/components/extensions/CapabilityReview.tsx +333 -0
  36. package/src/components/extensions/ExtensionDockHost.tsx +192 -0
  37. package/src/components/extensions/ExtensionToolbarSlot.tsx +106 -0
  38. package/src/components/extensions/ExtensionsPanel.tsx +481 -0
  39. package/src/components/extensions/FlavorDialog.tsx +398 -0
  40. package/src/components/extensions/FlavorImportPreview.tsx +79 -0
  41. package/src/components/extensions/FlavorIndicator.tsx +81 -0
  42. package/src/components/extensions/FlavorListView.tsx +318 -0
  43. package/src/components/extensions/FlavorMergeDialog.tsx +326 -0
  44. package/src/components/extensions/HelpHint.tsx +182 -0
  45. package/src/components/extensions/IdeasPanel.tsx +344 -0
  46. package/src/components/extensions/PlanCard.tsx +227 -0
  47. package/src/components/extensions/PrivacyPanel.tsx +312 -0
  48. package/src/components/extensions/PromoteToolDialog.tsx +313 -0
  49. package/src/components/extensions/RepairQueuePanel.tsx +222 -0
  50. package/src/components/extensions/icon-registry.ts +92 -0
  51. package/src/components/extensions/toast-helpers.ts +49 -0
  52. package/src/components/extensions/widget/WidgetErrorBoundary.tsx +62 -0
  53. package/src/components/extensions/widget/WidgetRenderer.tsx +428 -0
  54. package/src/components/viewer/ChatPanel.tsx +251 -3
  55. package/src/components/viewer/CommandPalette.tsx +74 -4
  56. package/src/components/viewer/Drawing2DCanvas.tsx +178 -1
  57. package/src/components/viewer/EntityContextMenu.tsx +70 -0
  58. package/src/components/viewer/ExportDialog.tsx +9 -1
  59. package/src/components/viewer/KeyboardShortcutsDialog.tsx +21 -6
  60. package/src/components/viewer/LensPanel.tsx +50 -0
  61. package/src/components/viewer/MainToolbar.tsx +170 -87
  62. package/src/components/viewer/ScriptPanel.tsx +105 -1
  63. package/src/components/viewer/Section2DPanel.tsx +58 -2
  64. package/src/components/viewer/StatusBar.tsx +18 -0
  65. package/src/components/viewer/ViewerLayout.tsx +53 -4
  66. package/src/components/viewer/Viewport.tsx +72 -0
  67. package/src/hooks/useActionLogger.test.ts +161 -0
  68. package/src/hooks/useActionLogger.ts +141 -0
  69. package/src/hooks/useForkExtension.ts +51 -0
  70. package/src/hooks/useIfcFederation.ts +7 -1
  71. package/src/hooks/useInstalledExtensions.ts +43 -0
  72. package/src/hooks/usePrivacyDisclosure.ts +48 -0
  73. package/src/hooks/useRunExtensionTests.ts +67 -0
  74. package/src/hooks/useSlotContributions.ts +38 -0
  75. package/src/hooks/useSymbolicAnnotations.test.ts +124 -0
  76. package/src/hooks/useSymbolicAnnotations.ts +776 -0
  77. package/src/lib/desktop-product.ts +7 -1
  78. package/src/lib/lens/adapter.ts +14 -0
  79. package/src/lib/llm/prompt-cache.ts +77 -0
  80. package/src/lib/llm/stream-client.ts +20 -2
  81. package/src/lib/llm/stream-direct.ts +11 -1
  82. package/src/lib/llm/system-prompt.ts +42 -0
  83. package/src/lib/safe-mode.ts +30 -0
  84. package/src/sdk/ExtensionHostProvider.tsx +103 -0
  85. package/src/services/extensions/flavor-service.ts +183 -0
  86. package/src/services/extensions/host-commands.ts +112 -0
  87. package/src/services/extensions/host-installer.ts +289 -0
  88. package/src/services/extensions/host.ts +514 -0
  89. package/src/services/extensions/idb-flavor-storage.test.ts +140 -0
  90. package/src/services/extensions/idb-flavor-storage.ts +241 -0
  91. package/src/services/extensions/idb-log-storage.test.ts +110 -0
  92. package/src/services/extensions/idb-log-storage.ts +171 -0
  93. package/src/services/extensions/idb-storage.ts +228 -0
  94. package/src/services/extensions/runtime-errors.ts +26 -0
  95. package/src/services/extensions/sandbox-factory.ts +217 -0
  96. package/src/store/constants.ts +48 -6
  97. package/src/store/index.ts +6 -1
  98. package/src/store/slices/drawing2DSlice.ts +8 -0
  99. package/src/store/slices/extensionsSlice.ts +90 -0
  100. package/src/store/slices/lensSlice.ts +28 -0
  101. package/src/store/slices/visibilitySlice.test.ts +6 -0
  102. package/src/store/slices/visibilitySlice.ts +17 -8
  103. package/src/store/types.ts +2 -0
  104. package/dist/assets/geometry-controller.worker-Cm5pvyR6.js +0 -7
  105. package/dist/assets/geometry.worker-ClNvXIrj.js +0 -1
  106. package/dist/assets/ifc-lite-BDg0iIbj.js +0 -7
  107. package/dist/assets/index-DS_xJQfP.css +0 -1
  108. package/dist/assets/lens-CpjUdqpw.js +0 -1
  109. package/dist/assets/raw-DzTtEZIY.js +0 -1
@@ -128,6 +128,13 @@ export interface LensSlice {
128
128
  getActiveLens: () => Lens | null;
129
129
  /** Import lenses from parsed JSON array */
130
130
  importLenses: (lenses: Lens[]) => void;
131
+ /**
132
+ * Replace the entire saved-lens set (custom + builtin overrides). Used
133
+ * when activating a flavor: the flavor's stored lens snapshot becomes
134
+ * the new viewer state. Builtins missing from `lenses` are restored
135
+ * from defaults so the user never ends up with an empty lens panel.
136
+ */
137
+ setSavedLenses: (lenses: Lens[]) => void;
131
138
  /** Export all lenses (builtins + custom) as serializable array */
132
139
  exportLenses: () => Lens[];
133
140
  /** Create and activate an auto-color lens from a data column spec */
@@ -210,6 +217,27 @@ export const createLensSlice: StateCreator<LensSlice, [], [], LensSlice> = (set,
210
217
  });
211
218
  },
212
219
 
220
+ setSavedLenses: (lenses) => set((state) => {
221
+ // Keep builtins available even if the incoming snapshot dropped
222
+ // them — otherwise switching flavors could leave the user with no
223
+ // BY IFC CLASS / STRUCTURAL / etc. The incoming list takes
224
+ // precedence (it may carry user overrides).
225
+ const incomingIds = new Set(lenses.map((l) => l.id));
226
+ const builtinsToKeep = BUILTIN_LENSES
227
+ .filter((b) => !incomingIds.has(b.id))
228
+ .map((b) => ({ ...b }));
229
+ const next = [...builtinsToKeep, ...lenses];
230
+ saveLenses(next);
231
+ // If the previously active lens id is gone, clear the pointer so
232
+ // the viewer doesn't try to render a missing rule set.
233
+ const activeStillThere = state.activeLensId !== null
234
+ && next.some((l) => l.id === state.activeLensId);
235
+ return {
236
+ savedLenses: next,
237
+ activeLensId: activeStillThere ? state.activeLensId : null,
238
+ };
239
+ }),
240
+
213
241
  activateAutoColorFromColumn: (spec, label) => set((state) => {
214
242
  const lensId = AUTO_COLOR_FROM_LIST_ID;
215
243
  const lens: Lens = {
@@ -300,5 +300,11 @@ describe('VisibilitySlice', () => {
300
300
  state.toggleTypeVisibility('site');
301
301
  assert.strictEqual(state.typeVisibility.site, !initial);
302
302
  });
303
+
304
+ it('should toggle ifcAnnotations visibility', () => {
305
+ const initial = state.typeVisibility.ifcAnnotations;
306
+ state.toggleTypeVisibility('ifcAnnotations');
307
+ assert.strictEqual(state.typeVisibility.ifcAnnotations, !initial);
308
+ });
303
309
  });
304
310
  });
@@ -11,7 +11,7 @@
11
11
 
12
12
  import type { StateCreator } from 'zustand';
13
13
  import type { TypeVisibility, EntityRef } from '../types.js';
14
- import { TYPE_VISIBILITY_DEFAULTS } from '../constants.js';
14
+ import { TYPE_VISIBILITY_DEFAULTS, TYPE_VISIBILITY_STORAGE_KEYS } from '../constants.js';
15
15
 
16
16
  export interface VisibilitySlice {
17
17
  // State (legacy - single model)
@@ -43,7 +43,7 @@ export interface VisibilitySlice {
43
43
  clearAllFilters: () => void;
44
44
  showAll: () => void;
45
45
  isEntityVisible: (id: number) => boolean;
46
- toggleTypeVisibility: (type: 'spaces' | 'openings' | 'site') => void;
46
+ toggleTypeVisibility: (type: 'spaces' | 'openings' | 'site' | 'ifcAnnotations') => void;
47
47
  /** Set all hidden entities at once (for BCF viewpoint application) */
48
48
  setHiddenEntities: (ids: Set<number>) => void;
49
49
  /** Set all isolated entities at once (for BCF viewpoint with defaultVisibility=false) */
@@ -79,6 +79,7 @@ export const createVisibilitySlice: StateCreator<VisibilitySlice, [], [], Visibi
79
79
  spaces: TYPE_VISIBILITY_DEFAULTS.SPACES,
80
80
  openings: TYPE_VISIBILITY_DEFAULTS.OPENINGS,
81
81
  site: TYPE_VISIBILITY_DEFAULTS.SITE,
82
+ ifcAnnotations: TYPE_VISIBILITY_DEFAULTS.IFC_ANNOTATIONS,
82
83
  },
83
84
 
84
85
  // Initial state (multi-model)
@@ -194,12 +195,20 @@ export const createVisibilitySlice: StateCreator<VisibilitySlice, [], [], Visibi
194
195
  return true;
195
196
  },
196
197
 
197
- toggleTypeVisibility: (type) => set((state) => ({
198
- typeVisibility: {
199
- ...state.typeVisibility,
200
- [type]: !state.typeVisibility[type],
201
- },
202
- })),
198
+ toggleTypeVisibility: (type) => set((state) => {
199
+ const next = !state.typeVisibility[type];
200
+ // Persist every type-visibility toggle so user choice survives
201
+ // reloads. Keyed by type so clearing one preference (e.g. for
202
+ // testing or to reset to defaults) doesn't nuke the others.
203
+ if (typeof window !== 'undefined') {
204
+ const storageKey = TYPE_VISIBILITY_STORAGE_KEYS[type];
205
+ try { localStorage.setItem(storageKey, String(next)); }
206
+ catch { /* private-mode storage rejection — non-fatal */ }
207
+ }
208
+ return {
209
+ typeVisibility: { ...state.typeVisibility, [type]: next },
210
+ };
211
+ }),
203
212
 
204
213
  // Actions (multi-model)
205
214
  hideEntityInModel: (modelId, expressId) => set((state) => {
@@ -197,6 +197,8 @@ export interface TypeVisibility {
197
197
  openings: boolean;
198
198
  /** IfcSite - on by default (when has geometry) */
199
199
  site: boolean;
200
+ /** IfcAnnotation (2D symbolic curves) - on by default when present */
201
+ ifcAnnotations: boolean;
200
202
  }
201
203
 
202
204
  // ============================================================================
@@ -1,7 +0,0 @@
1
- function re(s,t){return new Promise(e=>{s.addEventListener("message",function n({data:_}){_?.type===t&&(s.removeEventListener("message",n),e(_))})})}re(self,"wasm_bindgen_worker_init").then(async({init:s,receiver:t})=>{const e=await Promise.resolve().then(function(){return je});await e.default(s),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(t)});async function pe(s,t,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");const n={type:"wasm_bindgen_worker_init",init:{module_or_path:s,memory:t},receiver:e.receiver()};await Promise.all(Array.from({length:e.numThreads()},async()=>{const _=new Worker(new URL("/assets/workerHelpers--sAYm9yN.js",import.meta.url),{type:"module"});return _.postMessage(n),await re(_,"wasm_bindgen_worker_ready"),_})),e.build()}let r;function b(s){at===x.length&&x.push(x.length+1);const t=at;return at=x[t],x[t]=s,t}function Ct(s){if(ct==1)throw new Error("out of js stack");return x[--ct]=s,ct}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function be(s){s<132||(x[s]=at,at=s)}function j(s,t){return s=s>>>0,de().subarray(s/4,s/4+t)}function A(s,t){return s=s>>>0,le().subarray(s/8,s/8+t)}function ne(s,t){return s=s>>>0,_e().subarray(s/4,s/4+t)}let rt=null;function i(){return(rt===null||rt.buffer!==r.memory.buffer)&&(rt=new DataView(r.memory.buffer)),rt}let nt=null;function de(){return(nt===null||nt.buffer!==r.memory.buffer)&&(nt=new Float32Array(r.memory.buffer)),nt}let _t=null;function le(){return(_t===null||_t.buffer!==r.memory.buffer)&&(_t=new Float64Array(r.memory.buffer)),_t}function w(s,t){return s=s>>>0,we(s,t)}let st=null;function _e(){return(st===null||st.buffer!==r.memory.buffer)&&(st=new Uint32Array(r.memory.buffer)),st}let ot=null;function it(){return(ot===null||ot.buffer!==r.memory.buffer)&&(ot=new Uint8Array(r.memory.buffer)),ot}function c(s){return x[s]}function M(s,t){try{return s.apply(this,t)}catch(e){r.__wbindgen_export(b(e))}}let x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);let at=x.length;function C(s){return s==null}function zt(s,t,e,n){const _={a:s,b:t,cnt:1,dtor:e},o=(...a)=>{_.cnt++;const g=_.a;_.a=0;try{return n(g,_.b,...a)}finally{_.a=g,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,At.unregister(_))},At.register(o,_,_),o}function f(s,t){const e=t(s.length*4,4)>>>0;return _e().set(s,e/4),p=s.length,e}function h(s,t){const e=t(s.length*1,1)>>>0;return it().set(s,e/1),p=s.length,e}function u(s,t,e){if(e===void 0){const g=pt.encode(s),l=t(g.length,1)>>>0;return it().subarray(l,l+g.length).set(g),p=g.length,l}let n=s.length,_=t(n,1)>>>0;const o=it();let a=0;for(;a<n;a++){const g=s.charCodeAt(a);if(g>127)break;o[_+a]=g}if(a!==n){a!==0&&(s=s.slice(a)),_=e(_,n,n=a+s.length*3,1)>>>0;const g=it().subarray(_+a,_+n),l=pt.encodeInto(s,g);a+=l.written,_=e(_,n,a,1)>>>0}return p=a,_}let ct=128;function d(s){const t=c(s);return be(s),t}let gt=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;gt&&gt.decode();const ue=2146435072;let kt=0;function we(s,t){return kt+=t,kt>=ue&&(gt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),gt.decode(),kt=t),gt.decode(it().slice(s,s+t))}const pt=typeof TextEncoder<"u"?new TextEncoder:void 0;pt&&(pt.encodeInto=function(s,t){const e=pt.encode(s);return t.set(e),{read:s.length,written:e.length}});let p=0;function Tt(s,t,e){r.__wasm_bindgen_func_elem_1394(s,t,b(e))}function fe(s,t,e,n){r.__wasm_bindgen_func_elem_1667(s,t,b(e),b(n))}const Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_georeferencejs_free(s>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpugeometry_free(s>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometry_free(s>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometrycollection_free(s>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometryref_free(s>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpumeshmetadata_free(s>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_ifcapi_free(s>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedata_free(s>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedgeometry_free(s>>>0,1)),Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedmeshcollection_free(s>>>0,1)),Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollection_free(s>>>0,1)),Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollectionwithrtc_free(s>>>0,1)),Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshdatajs_free(s>>>0,1)),Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profilecollection_free(s>>>0,1)),Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profileentryjs_free(s>>>0,1)),Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_rtcoffsetjs_free(s>>>0,1)),Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symboliccircle_free(s>>>0,1)),$t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicpolyline_free(s>>>0,1)),Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicrepresentationcollection_free(s>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_zerocopymesh_free(s>>>0,1)),qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_wbg_rayon_poolbuilder_free(s>>>0,1));class z{static __wrap(t){t=t>>>0;const e=Object.create(z.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getInt32(n+4,!0);let _;return t!==0&&(_=w(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=A(t,e).slice();return r.__wbindgen_export2(t,e*8,8),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class S{static __wrap(t){t=t>>>0;const e=Object.create(S.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,n){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,n)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(_,this.__wbg_ptr,t);var e=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0);let o;return e!==0&&(o=w(e,n).slice(),r.__wbindgen_export2(e,n*1,1)),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:L.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,Mt.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);class T{static __wrap(t){t=t>>>0;const e=Object.create(T.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,St.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class O{static __wrap(t){t=t>>>0;const e=Object.create(O.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:T.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,Pt.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:E.__wrap(e)}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class E{static __wrap(t){t=t>>>0;const e=Object.create(E.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);class L{static __wrap(t){t=t>>>0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class lt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshes(this.__wbg_ptr,e,n);return I.__wrap(_)}parseMeshesAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,n,_,b(e));return d(o)}buildPrePassFast(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,n);return d(_)}buildPrePassOnce(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,n);return d(_)}parseMeshesSubset(t,e,n,_){const o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),a=p,g=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,o,a,e,n,_);return I.__wrap(g)}parseToGpuGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,n);return S.__wrap(_)}parseMeshesInstanced(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,n);return R.__wrap(_)}processGeometryBatch(t,e,n,_,o,a,g,l,y,k,J,$){const K=h(t,r.__wbindgen_export3),q=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(l,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(k,r.__wbindgen_export3),mt=p,xt=f(J,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatch(this.__wbg_ptr,K,q,H,Q,n,_,o,a,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}scanEntityIndexShard(t,e,n,_){try{const l=r.__wbindgen_add_to_stack_pointer(-16),y=h(t,r.__wbindgen_export3),k=p;r.ifcapi_scanEntityIndexShard(l,this.__wbg_ptr,y,k,Ct(e),n,_);var o=i().getInt32(l+0,!0),a=i().getInt32(l+4,!0),g=i().getInt32(l+8,!0);if(g)throw d(a);return d(o)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}buildPrePassStreaming(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16),l=h(t,r.__wbindgen_export3),y=p;r.ifcapi_buildPrePassStreaming(g,this.__wbg_ptr,l,y,Ct(e),n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0);if(a)throw d(o);return d(_)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}parseToGpuGeometryAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,n,_,b(e));return d(o)}parseMeshesInstancedAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,n,_,b(e));return d(o)}benchmarkPureCpuParallelism(t){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_benchmarkPureCpuParallelism(o,this.__wbg_ptr,t);var e=i().getInt32(o+0,!0),n=i().getInt32(o+4,!0),_=A(e,n).slice();return r.__wbindgen_export2(e,n*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}parseToGpuInstancedGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,n);return O.__wrap(_)}processGeometryBatchParallel(t,e,n,_,o,a,g,l,y,k,J,$){const K=h(t,r.__wbindgen_export3),q=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(l,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(k,r.__wbindgen_export3),mt=p,xt=f(J,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatchParallel(this.__wbg_ptr,K,q,H,Q,n,_,o,a,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}processInstancedGeometryBatch(t,e,n,_,o,a,g,l,y){const k=h(t,r.__wbindgen_export3),J=p,$=f(e,r.__wbindgen_export3),K=p,q=f(l,r.__wbindgen_export3),H=p,Q=h(y,r.__wbindgen_export3),tt=p,et=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,k,J,$,K,n,_,o,a,g,q,H,Q,tt);return R.__wrap(et)}parseZeroCopy(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,n);return N.__wrap(_)}extractProfiles(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_extractProfiles(this.__wbg_ptr,n,_,e);return G.__wrap(o)}debugProcessEntity953(t){let e,n;try{const a=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=p;r.ifcapi_debugProcessEntity953(a,this.__wbg_ptr,g,l);var _=i().getInt32(a+0,!0),o=i().getInt32(a+4,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}debugProcessFirstWall(t){let e,n;try{const a=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=p;r.ifcapi_debugProcessFirstWall(a,this.__wbg_ptr,g,l);var _=i().getInt32(a+0,!0),o=i().getInt32(a+4,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return d(t)}setEntityIndex(t,e,n){const _=f(t,r.__wbindgen_export3),o=p,a=f(e,r.__wbindgen_export3),g=p,l=f(n,r.__wbindgen_export3),y=p;r.ifcapi_setEntityIndex(this.__wbg_ptr,_,o,a,g,l,y)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,Bt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_getGeoReference(this.__wbg_ptr,e,n);return _===0?void 0:z.__wrap(_)}parseMeshesWithRtc(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,n);return D.__wrap(_)}parseStreaming(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseStreaming(this.__wbg_ptr,n,_,b(e));return d(o)}scanEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,n);return d(_)}scanEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,n);return d(_)}scanGeometryEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,n);return d(_)}scanRelevantEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,n);return d(_)}parse(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parse(this.__wbg_ptr,e,n);return d(_)}parseSymbolicRepresentations(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,n);return Y.__wrap(_)}}Symbol.dispose&&(lt.prototype[Symbol.dispose]=lt.prototype.free);class B{static __wrap(t){t=t>>>0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:B.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return d(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return d(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class R{static __wrap(t){t=t>>>0;const e=Object.create(R.prototype);return e.__wbg_ptr=t,Wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:P.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,Ut.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getFloat64(n+8,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:F.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class D{static __wrap(t){t=t>>>0;const e=Object.create(D.prototype);return e.__wbg_ptr=t,Vt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return U.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:F.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return I.__wrap(t)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class F{static __wrap(t){t=t>>>0;const e=Object.create(F.prototype);return e.__wbg_ptr=t,Zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_shadingColor(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getInt32(n+4,!0);let _;return t!==0&&(_=j(t,e).slice(),r.__wbindgen_export2(t,e*4,4)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return d(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return d(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class G{static __wrap(t){t=t>>>0;const e=Object.create(G.prototype);return e.__wbg_ptr=t,Yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:W.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class W{static __wrap(t){t=t>>>0;const e=Object.create(W.prototype);return e.__wbg_ptr=t,Nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return d(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return d(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return d(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return d(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class U{static __wrap(t){t=t>>>0;const e=Object.create(U.prototype);return e.__wbg_ptr=t,Xt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class V{static __wrap(t){t=t>>>0;const e=Object.create(V.prototype);return e.__wbg_ptr=t,Jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class Z{static __wrap(t){t=t>>>0;const e=Object.create(Z.prototype);return e.__wbg_ptr=t,$t.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return d(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);class Y{static __wrap(t){t=t>>>0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,Kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:V.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:Z.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=ne(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class N{static __wrap(t){t=t>>>0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,Rt.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);function ye(){const s=r.get_memory();return d(s)}function he(){r.init()}function se(s){const t=r.initThreadPool(s);return d(t)}function me(){let s,t;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.version(_);var e=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0);return s=e,t=n,w(e,n)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(s,t,1)}}class X{static __wrap(t){t=t>>>0;const e=Object.create(X.prototype);return e.__wbg_ptr=t,qt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return r.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}build(){r.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}receiver(){return r.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);function xe(s){r.wbg_rayon_start_worker(s)}const ve=new Set(["basic","cors","default"]);async function Ie(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(n){if(s.ok&&ve.has(s.type)&&s.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const e=await s.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(s,t);return e instanceof WebAssembly.Instance?{instance:e,module:s}:e}}function oe(s){const t={};return t.wbg={},t.wbg.__wbg_Error_52673b7de5a0ca89=function(e,n){const _=Error(w(e,n));return b(_)},t.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){return typeof c(e)=="function"},t.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){return c(e)===void 0},t.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const e=r.memory;return b(e)},t.wbg.__wbg___wbindgen_module_967adef62ea6cbf8=function(){const e=wt.__wbindgen_wasm_module;return b(e)},t.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(e,n){const _=c(n),o=typeof _=="number"?_:void 0;i().setFloat64(e+8,C(o)?0:o,!0),i().setInt32(e+0,!C(o),!0)},t.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1=function(e){throw d(e)},t.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,n){throw new Error(w(e,n))},t.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(e){c(e)._wbg_cb_unref()},t.wbg.__wbg_async_bba5a2ac54b734df=function(e){return c(e).async},t.wbg.__wbg_buffer_063cd102cc769a1c=function(e){const n=c(e).buffer;return b(n)},t.wbg.__wbg_call_3020136f7a2d6e44=function(){return M(function(e,n,_){const o=c(e).call(c(n),c(_));return b(o)},arguments)},t.wbg.__wbg_call_abb4ff46ce38be40=function(){return M(function(e,n){const _=c(e).call(c(n));return b(_)},arguments)},t.wbg.__wbg_call_c8baa5c5e72d274e=function(){return M(function(e,n,_,o){const a=c(e).call(c(n),c(_),c(o));return b(a)},arguments)},t.wbg.__wbg_data_8bf4ae669a78a688=function(e){const n=c(e).data;return b(n)},t.wbg.__wbg_debug_9d0c87ddda3dc485=function(e){console.debug(c(e))},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let _,o;try{_=e,o=n,console.error(w(e,n))}finally{r.__wbindgen_export2(_,o,1)}},t.wbg.__wbg_get_af9dab7e9603ea93=function(){return M(function(e,n){const _=Reflect.get(c(e),c(n));return b(_)},arguments)},t.wbg.__wbg_gpugeometry_new=function(e){const n=S.__wrap(e);return b(n)},t.wbg.__wbg_info_ce6bcc489c22f6f0=function(e){console.info(c(e))},t.wbg.__wbg_instancedgeometry_new=function(e){const n=P.__wrap(e);return b(n)},t.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(e){let n;try{n=c(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_86ce4877baf913bb=function(e){return c(e).length},t.wbg.__wbg_length_d45040a40c570362=function(e){return c(e).length},t.wbg.__wbg_log_1d990106d99dacb7=function(e){console.log(c(e))},t.wbg.__wbg_meshdatajs_new=function(e){const n=F.__wrap(e);return b(n)},t.wbg.__wbg_new_1ba21ce319a06297=function(){const e=new Object;return b(e)},t.wbg.__wbg_new_25f239778d6112b9=function(){const e=new Array;return b(e)},t.wbg.__wbg_new_53cb1e86c1ef5d2a=function(){return M(function(e,n){const _=new Worker(w(e,n));return b(_)},arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){const e=new Error;return b(e)},t.wbg.__wbg_new_de1e660b88fc921f=function(e){const n=new Int32Array(c(e));return b(n)},t.wbg.__wbg_new_ff12d2b041fb48f1=function(e,n){try{var _={a:e,b:n},o=(g,l)=>{const y=_.a;_.a=0;try{return fe(y,_.b,g,l)}finally{_.a=y}};const a=new Promise(o);return b(a)}finally{_.a=_.b=0}},t.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(e,n){const _=new Float32Array(j(e,n));return b(_)},t.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(e,n){const _=new Uint32Array(ne(e,n));return b(_)},t.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(e,n){const _=new Function(w(e,n));return b(_)},t.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(e){const n=new Uint32Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(e){const n=new Float64Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(e){const n=new Uint8Array(e>>>0);return b(n)},t.wbg.__wbg_now_69d776cd24f5215b=function(){return Date.now()},t.wbg.__wbg_of_7779827fa663eec8=function(e,n,_){const o=Array.of(c(e),c(n),c(_));return b(o)},t.wbg.__wbg_postMessage_07504dbe15265d5c=function(){return M(function(e,n){c(e).postMessage(c(n))},arguments)},t.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(e,n,_){Float32Array.prototype.set.call(j(e,n),c(_))},t.wbg.__wbg_push_7d9be8f38fc13975=function(e,n){return c(e).push(c(n))},t.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(e){const n=c(e).queueMicrotask;return b(n)},t.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(e){queueMicrotask(c(e))},t.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(e){const n=Promise.resolve(c(e));return b(n)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,_){c(e)[d(n)]=d(_)},t.wbg.__wbg_set_781438a03c0c3c81=function(){return M(function(e,n,_){return Reflect.set(c(e),c(n),c(_))},arguments)},t.wbg.__wbg_set_7df433eea03a5c14=function(e,n,_){c(e)[n>>>0]=d(_)},t.wbg.__wbg_set_index_021489b2916af13e=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_04c4b93e64d08a52=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_42abe35f117e614e=function(e,n,_){c(e)[n>>>0]=_>>>0},t.wbg.__wbg_set_onmessage_deb94985de696ac7=function(e,n){c(e).onmessage=c(n)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const _=c(n).stack,o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,o,!0)},t.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(e,n,_){const o=pe(d(e),d(n),X.__wrap(_));return b(o)},t.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const e=typeof global>"u"?null:global;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const e=typeof globalThis>"u"?null:globalThis;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const e=typeof self>"u"?null:self;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const e=typeof window>"u"?null:window;return C(e)?0:b(e)},t.wbg.__wbg_then_4f95312d68691235=function(e,n){const _=c(e).then(c(n));return b(_)},t.wbg.__wbg_value_4cd497eeadba94bd=function(e){const n=c(e).value;return b(n)},t.wbg.__wbg_waitAsync_8afec80ffd213eca=function(e,n,_){const o=Atomics.waitAsync(c(e),n>>>0,_);return b(o)},t.wbg.__wbg_waitAsync_c186cb97ffacd552=function(){const e=Atomics.waitAsync;return b(e)},t.wbg.__wbg_warn_6e567d0d926ff881=function(e){console.warn(c(e))},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){const _=w(e,n);return b(_)},t.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){const n=BigInt.asUintN(64,e);return b(n)},t.wbg.__wbindgen_cast_4dd9d91cc07f498f=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1393,Tt);return b(_)},t.wbg.__wbindgen_cast_d4e72ce7b74d162f=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1393,Tt);return b(_)},t.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return b(e)},t.wbg.__wbindgen_link_203404ece0e9bab9=function(e){const n=`onmessage = function (ev) {
2
- let [ia, index, value] = ev.data;
3
- ia = new Int32Array(ia.buffer);
4
- let result = Atomics.wait(ia, index, value);
5
- postMessage(result);
6
- };
7
- `,_=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,o,!0)},t.wbg.__wbindgen_object_clone_ref=function(e){const n=c(e);return b(n)},t.wbg.__wbindgen_object_drop_ref=function(e){d(e)},t.wbg.memory=s||new WebAssembly.Memory({initial:132,maximum:65536,shared:!0}),t}function ie(s,t,e){if(r=s.exports,wt.__wbindgen_wasm_module=t,rt=null,nt=null,_t=null,st=null,ot=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return r.__wbindgen_start(e),r}function ae(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=oe(t);s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));const _=new WebAssembly.Instance(s,n);return ie(_,s,e)}async function wt(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof s>"u"&&(s=new URL("/assets/ifc-lite_bg-BIryVCXQ.wasm",import.meta.url));const n=oe(t);(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));const{instance:_,module:o}=await Ie(await s,n);return ie(_,o,e)}var je=Object.freeze({__proto__:null,GeoReferenceJs:z,GpuGeometry:S,GpuInstancedGeometry:T,GpuInstancedGeometryCollection:O,GpuInstancedGeometryRef:E,GpuMeshMetadata:L,IfcAPI:lt,InstanceData:B,InstancedGeometry:P,InstancedMeshCollection:R,MeshCollection:I,MeshCollectionWithRtc:D,MeshDataJs:F,ProfileCollection:G,ProfileEntryJs:W,RtcOffsetJs:U,SymbolicCircle:V,SymbolicPolyline:Z,SymbolicRepresentationCollection:Y,ZeroCopyMesh:N,default:wt,get_memory:ye,init:he,initSync:ae,initThreadPool:se,version:me,wbg_rayon_PoolBuilder:X,wbg_rayon_start_worker:xe});let v=null,bt=!1,Ht,ce=!1,ut=!1;function Qt(){if(!v||ut)return;const s=v;typeof s.setMergeLayers=="function"&&s.setMergeLayers(ce),ut=!0}let m=null;function Fe(s){return new Uint8Array(s)}function ke(s){const t=new Uint8Array(s.byteLength);return t.set(new Uint8Array(s)),t}function Me(s){return{sharedBuffer:s.sharedBuffer,localBytes:Fe(s.sharedBuffer),sabFallbackTaken:!1,unitScale:s.unitScale,rtcX:s.rtcX,rtcY:s.rtcY,rtcZ:s.rtcZ,needsShift:s.needsShift,voidKeys:s.voidKeys,voidCounts:s.voidCounts,voidValues:s.voidValues,styleIds:s.styleIds,styleColors:s.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function ge(s){if(s.pendingMeshes.length===0)return;const t=s.pendingMeshes,e=s.pendingTransfers;s.pendingMeshes=[],s.pendingTransfers=[],s.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},e)}function Se(s,t){for(let e=0;e<t.length;e++){const n=t.get(e);if(!n)continue;const _=new Float32Array(n.positions),o=new Float32Array(n.normals),a=new Uint32Array(n.indices);s.pendingMeshes.push({expressId:n.expressId,ifcType:n.ifcType,positions:_,normals:o,indices:a,color:[n.color[0],n.color[1],n.color[2],n.color[3]]}),s.pendingTransfers.push(_.buffer,o.buffer,a.buffer),s.cumulativeMeshBytes+=_.byteLength+o.byteLength+a.byteLength,n.free()}t.free()}async function dt(s,t){const e=Math.floor(t.length/3);if(e!==0)try{if(!v)throw new Error("controller API not initialised before stream-chunk");const n=v.processGeometryBatchParallel(s.localBytes,t,s.unitScale,s.rtcX,s.rtcY,s.rtcZ,s.needsShift,s.voidKeys,s.voidCounts,s.voidValues,s.styleIds,s.styleColors);Se(s,n)}catch(n){const _=n.message;if(!s.sabFallbackTaken&&s.localBytes.buffer instanceof SharedArrayBuffer){s.sabFallbackTaken=!0,console.warn(`[controller] processGeometryBatchParallel rejected SAB view (${_}), copying`),s.localBytes=ke(s.sharedBuffer),await dt(s,t);return}if(e===1){console.warn(`[controller] skipping entity #${t[0]}: ${_}`);return}console.warn(`[controller] batch of ${e} entities failed (${_}), splitting…`);const o=Math.floor(e/2)*3;await dt(s,t.slice(0,o)),await dt(s,t.slice(o))}}const te=1e6;async function Pe(s,t){const e=Math.floor(t.length/3);for(let n=0;n<e;n+=te){const _=n*3,o=Math.min(_+te*3,t.length);await dt(s,t.slice(_,o)),ge(s)}}function Re(s){ge(s);let t=0;try{t=v?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",wasmHeapBytes:t,meshBytes:s.cumulativeMeshBytes}),self.postMessage({type:"complete",totalMeshes:s.totalMeshesEmitted})}let ee=Promise.resolve();self.onmessage=s=>{const t=s;ee=ee.then(async()=>{try{if(t.data.type==="init"){t.data.wasmUrl&&(Ht=t.data.wasmUrl),t.data.wasmModule?ae({module_or_path:t.data.wasmModule}):await wt(Ht),v=new lt,ut=!1,Qt();const e=typeof navigator<"u"?navigator.hardwareConcurrency??4:4,n=Math.max(1,e-1);let _=null;for(let o=1;o<=5;o++)try{const a=performance.now();await se(n),console.log(`[controller] rayon pool ready (${n} threads, attempt ${o}) @ ${Math.round(performance.now()-a)}ms`),bt=!0,_=null;break}catch(a){_=a,console.warn(`[controller] initThreadPool attempt ${o} failed:`,a),o<5&&await new Promise(g=>setTimeout(g,25))}if(!bt){const o=_ instanceof Error?_.message:String(_??"unknown initThreadPool failure");self.postMessage({type:"error",message:`controller: initThreadPool failed after 5 attempts: ${o}`});return}try{const o=v;typeof o.benchmarkPureCpuParallelism=="function"&&o.benchmarkPureCpuParallelism(9)}catch(o){console.warn("[controller] microbench failed:",o)}self.postMessage({type:"ready"});return}if(t.data.type==="stream-start"){if(!v||!bt)throw new Error('controller: stream-start before init/threadPool ready — host must wait for {type:"ready"} before dispatching');m=Me({sharedBuffer:t.data.sharedBuffer,unitScale:t.data.unitScale,rtcX:t.data.rtcX,rtcY:t.data.rtcY,rtcZ:t.data.rtcZ,needsShift:t.data.needsShift,voidKeys:t.data.voidKeys,voidCounts:t.data.voidCounts,voidValues:t.data.voidValues,styleIds:t.data.styleIds,styleColors:t.data.styleColors});return}if(t.data.type==="stream-chunk"){if(!m||!v||!bt)throw new Error("controller: stream-chunk before init/stream-start");await Pe(m,t.data.jobsFlat);return}if(t.data.type==="stream-end"){if(!m)return;Re(m),m=null;return}if(t.data.type==="set-styles"){if(!m)return;m.styleIds=t.data.styleIds,m.styleColors=t.data.styleColors,m.voidKeys=t.data.voidKeys,m.voidCounts=t.data.voidCounts,m.voidValues=t.data.voidValues;return}if(t.data.type==="set-merge-layers"){ce=t.data.enabled===!0,ut=!1,Qt();return}if(t.data.type==="set-entity-index"){if(!v)throw new Error('controller: set-entity-index before init — host must wait for {type:"ready"} before dispatching');v.setEntityIndex(t.data.ids,t.data.starts,t.data.lengths);return}console.warn(`[controller] ignoring unhandled message type: ${t.data.type}`)}catch(e){const n=e instanceof Error?e.message:String(e);console.error("[controller] handler error:",e),self.postMessage({type:"error",message:n})}})};
@@ -1 +0,0 @@
1
- let r;function d(n){V===y.length&&y.push(y.length+1);const t=V;return V=y[t],y[t]=n,t}function It(n){if(Z==1)throw new Error("out of js stack");return y[--Z]=n,Z}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));function ce(n){n<132||(y[n]=V,V=n)}function F(n,t){return n=n>>>0,ge().subarray(n/4,n/4+t)}function W(n,t){return n=n>>>0,pe().subarray(n/8,n/8+t)}function Yt(n,t){return n=n>>>0,Nt().subarray(n/4,n/4+t)}let M=null;function a(){return(M===null||M.buffer.detached===!0||M.buffer.detached===void 0&&M.buffer!==r.memory.buffer)&&(M=new DataView(r.memory.buffer)),M}let E=null;function ge(){return(E===null||E.byteLength===0)&&(E=new Float32Array(r.memory.buffer)),E}let T=null;function pe(){return(T===null||T.byteLength===0)&&(T=new Float64Array(r.memory.buffer)),T}function w(n,t){return n=n>>>0,le(n,t)}let D=null;function Nt(){return(D===null||D.byteLength===0)&&(D=new Uint32Array(r.memory.buffer)),D}let G=null;function U(){return(G===null||G.byteLength===0)&&(G=new Uint8Array(r.memory.buffer)),G}function p(n){return y[n]}function L(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_export(d(e))}}let y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);let V=y.length;function z(n){return n==null}function de(n,t,e,_){const s={a:n,b:t,cnt:1,dtor:e},i=(...c)=>{s.cnt++;const o=s.a;s.a=0;try{return _(o,s.b,...c)}finally{s.a=o,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--s.cnt===0&&(s.dtor(s.a,s.b),s.a=0,Ft.unregister(s))},Ft.register(i,s,s),i}function m(n,t){const e=t(n.length*4,4)>>>0;return Nt().set(n,e/4),g=n.length,e}function x(n,t){const e=t(n.length*1,1)>>>0;return U().set(n,e/1),g=n.length,e}function u(n,t,e){if(e===void 0){const o=X.encode(n),l=t(o.length,1)>>>0;return U().subarray(l,l+o.length).set(o),g=o.length,l}let _=n.length,s=t(_,1)>>>0;const i=U();let c=0;for(;c<_;c++){const o=n.charCodeAt(c);if(o>127)break;i[s+c]=o}if(c!==_){c!==0&&(n=n.slice(c)),s=e(s,_,_=c+n.length*3,1)>>>0;const o=U().subarray(s+c,s+_),l=X.encodeInto(n,o);c+=l.written,s=e(s,_,c,1)>>>0}return g=c,s}let Z=128;function b(n){const t=p(n);return ce(n),t}let ot=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ot.decode();const be=2146435072;let ut=0;function le(n,t){return ut+=t,ut>=be&&(ot=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ot.decode(),ut=t),ot.decode(U().subarray(n,n+t))}const X=new TextEncoder;"encodeInto"in X||(X.encodeInto=function(n,t){const e=X.encode(n);return t.set(e),{read:n.length,written:e.length}});let g=0;function ue(n,t,e){r.__wasm_bindgen_func_elem_1484(n,t,d(e))}function we(n,t,e,_){r.__wasm_bindgen_func_elem_1524(n,t,d(e),d(_))}const St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_georeferencejs_free(n>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpugeometry_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometry_free(n>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometrycollection_free(n>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometryref_free(n>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpumeshmetadata_free(n>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_ifcapi_free(n>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedata_free(n>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedgeometry_free(n>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedmeshcollection_free(n>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshcollection_free(n>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshcollectionwithrtc_free(n>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshdatajs_free(n>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_profilecollection_free(n>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_profileentryjs_free(n>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_rtcoffsetjs_free(n>>>0,1)),Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symboliccircle_free(n>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symbolicpolyline_free(n>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symbolicrepresentationcollection_free(n>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_zerocopymesh_free(n>>>0,1));class Y{static __wrap(t){t=t>>>0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0);let s;return t!==0&&(s=w(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=W(t,e).slice();return r.__wbindgen_export2(t,e*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class C{static __wrap(t){t=t>>>0;const e=Object.create(C.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,_){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,_)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(s,this.__wbg_ptr,t);var e=a().getInt32(s+0,!0),_=a().getInt32(s+4,!0);let i;return e!==0&&(i=w(e,_).slice(),r.__wbindgen_export2(e,_*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:q.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,wt.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(C.prototype[Symbol.dispose]=C.prototype.free);class N{static __wrap(t){t=t>>>0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,ft.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);class K{static __wrap(t){t=t>>>0;const e=Object.create(K.prototype);return e.__wbg_ptr=t,yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:N.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,yt.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:$.__wrap(e)}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);class ${static __wrap(t){t=t>>>0;const e=Object.create($.prototype);return e.__wbg_ptr=t,jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class q{static __wrap(t){t=t>>>0;const e=Object.create(q.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);class ct{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshes(this.__wbg_ptr,e,_);return I.__wrap(s)}parseMeshesAsync(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,_,s,d(e));return b(i)}buildPrePassFast(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,_);return b(s)}buildPrePassOnce(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,_);return b(s)}parseMeshesSubset(t,e,_,s){const i=u(t,r.__wbindgen_export3,r.__wbindgen_export4),c=g,o=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,c,e,_,s);return I.__wrap(o)}parseToGpuGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,_);return C.__wrap(s)}parseMeshesInstanced(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,_);return A.__wrap(s)}processGeometryBatch(t,e,_,s,i,c,o,l,h,S,O,B){const j=x(t,r.__wbindgen_export3),gt=g,pt=m(e,r.__wbindgen_export3),dt=g,bt=m(l,r.__wbindgen_export3),lt=g,te=m(h,r.__wbindgen_export3),ee=g,re=m(S,r.__wbindgen_export3),ne=g,_e=m(O,r.__wbindgen_export3),se=g,ie=x(B,r.__wbindgen_export3),oe=g,ae=r.ifcapi_processGeometryBatch(this.__wbg_ptr,j,gt,pt,dt,_,s,i,c,o,bt,lt,te,ee,re,ne,_e,se,ie,oe);return I.__wrap(ae)}scanEntityIndexShard(t,e,_,s){try{const l=r.__wbindgen_add_to_stack_pointer(-16),h=x(t,r.__wbindgen_export3),S=g;r.ifcapi_scanEntityIndexShard(l,this.__wbg_ptr,h,S,It(e),_,s);var i=a().getInt32(l+0,!0),c=a().getInt32(l+4,!0),o=a().getInt32(l+8,!0);if(o)throw b(c);return b(i)}finally{r.__wbindgen_add_to_stack_pointer(16),y[Z++]=void 0}}buildPrePassStreaming(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16),l=x(t,r.__wbindgen_export3),h=g;r.ifcapi_buildPrePassStreaming(o,this.__wbg_ptr,l,h,It(e),_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=a().getInt32(o+8,!0);if(c)throw b(i);return b(s)}finally{r.__wbindgen_add_to_stack_pointer(16),y[Z++]=void 0}}parseToGpuGeometryAsync(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,_,s,d(e));return b(i)}parseMeshesInstancedAsync(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,_,s,d(e));return b(i)}parseToGpuInstancedGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,_);return K.__wrap(s)}processInstancedGeometryBatch(t,e,_,s,i,c,o,l,h){const S=x(t,r.__wbindgen_export3),O=g,B=m(e,r.__wbindgen_export3),j=g,gt=m(l,r.__wbindgen_export3),pt=g,dt=x(h,r.__wbindgen_export3),bt=g,lt=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,S,O,B,j,_,s,i,c,o,gt,pt,dt,bt);return A.__wrap(lt)}parseZeroCopy(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,_);return st.__wrap(s)}extractProfiles(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_extractProfiles(this.__wbg_ptr,_,s,e);return Q.__wrap(i)}debugProcessEntity953(t){let e,_;try{const c=r.__wbindgen_add_to_stack_pointer(-16),o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=g;r.ifcapi_debugProcessEntity953(c,this.__wbg_ptr,o,l);var s=a().getInt32(c+0,!0),i=a().getInt32(c+4,!0);return e=s,_=i,w(s,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,_,1)}}debugProcessFirstWall(t){let e,_;try{const c=r.__wbindgen_add_to_stack_pointer(-16),o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=g;r.ifcapi_debugProcessFirstWall(c,this.__wbg_ptr,o,l);var s=a().getInt32(c+0,!0),i=a().getInt32(c+4,!0);return e=s,_=i,w(s,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,_,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return b(t)}setEntityIndex(t,e,_){const s=m(t,r.__wbindgen_export3),i=g,c=m(e,r.__wbindgen_export3),o=g,l=m(_,r.__wbindgen_export3),h=g;r.ifcapi_setEntityIndex(this.__wbg_ptr,s,i,c,o,l,h)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,kt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_getGeoReference(this.__wbg_ptr,e,_);return s===0?void 0:Y.__wrap(s)}parseMeshesWithRtc(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,_);return H.__wrap(s)}parseStreaming(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseStreaming(this.__wbg_ptr,_,s,d(e));return b(i)}scanEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,_);return b(s)}scanEntitiesFastBytes(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,_);return b(s)}scanGeometryEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,_);return b(s)}scanRelevantEntitiesFastBytes(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,_);return b(s)}parse(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parse(this.__wbg_ptr,e,_);return b(s)}parseSymbolicRepresentations(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,_);return _t.__wrap(s)}}Symbol.dispose&&(ct.prototype[Symbol.dispose]=ct.prototype.free);class J{static __wrap(t){t=t>>>0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:J.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return b(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return b(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class A{static __wrap(t){t=t>>>0;const e=Object.create(A.prototype);return e.__wbg_ptr=t,Ct.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:P.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getFloat64(_+8,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:R.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class H{static __wrap(t){t=t>>>0;const e=Object.create(H.prototype);return e.__wbg_ptr=t,At.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return et.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:R.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return I.__wrap(t)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class R{static __wrap(t){t=t>>>0;const e=Object.create(R.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_shadingColor(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0);let s;return t!==0&&(s=F(t,e).slice(),r.__wbindgen_export2(t,e*4,4)),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return b(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class Q{static __wrap(t){t=t>>>0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,Bt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:tt.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class tt{static __wrap(t){t=t>>>0;const e=Object.create(tt.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return b(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return b(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return b(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return b(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class et{static __wrap(t){t=t>>>0;const e=Object.create(et.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class rt{static __wrap(t){t=t>>>0;const e=Object.create(rt.prototype);return e.__wbg_ptr=t,Tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);class nt{static __wrap(t){t=t>>>0;const e=Object.create(nt.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);class _t{static __wrap(t){t=t>>>0;const e=Object.create(_t.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:rt.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:nt.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=Yt(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);class st{static __wrap(t){t=t>>>0;const e=Object.create(st.prototype);return e.__wbg_ptr=t,ht.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,ht.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);const fe=new Set(["basic","cors","default"]);async function ye(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(_){if(n.ok&&fe.has(n.type)&&n.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function Kt(){const n={};return n.wbg={},n.wbg.__wbg_Error_52673b7de5a0ca89=function(t,e){const _=Error(w(t,e));return d(_)},n.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(t){return typeof p(t)=="function"},n.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(t){return p(t)===void 0},n.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=r.memory;return d(t)},n.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(t,e){const _=p(e),s=typeof _=="number"?_:void 0;a().setFloat64(t+8,z(s)?0:s,!0),a().setInt32(t+0,!z(s),!0)},n.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,e){throw new Error(w(t,e))},n.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){p(t)._wbg_cb_unref()},n.wbg.__wbg_call_3020136f7a2d6e44=function(){return L(function(t,e,_){const s=p(t).call(p(e),p(_));return d(s)},arguments)},n.wbg.__wbg_call_abb4ff46ce38be40=function(){return L(function(t,e){const _=p(t).call(p(e));return d(_)},arguments)},n.wbg.__wbg_call_c8baa5c5e72d274e=function(){return L(function(t,e,_,s){const i=p(t).call(p(e),p(_),p(s));return d(i)},arguments)},n.wbg.__wbg_debug_9d0c87ddda3dc485=function(t){console.debug(p(t))},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let _,s;try{_=t,s=e,console.error(w(t,e))}finally{r.__wbindgen_export2(_,s,1)}},n.wbg.__wbg_get_af9dab7e9603ea93=function(){return L(function(t,e){const _=Reflect.get(p(t),p(e));return d(_)},arguments)},n.wbg.__wbg_gpugeometry_new=function(t){const e=C.__wrap(t);return d(e)},n.wbg.__wbg_info_ce6bcc489c22f6f0=function(t){console.info(p(t))},n.wbg.__wbg_instancedgeometry_new=function(t){const e=P.__wrap(t);return d(e)},n.wbg.__wbg_length_86ce4877baf913bb=function(t){return p(t).length},n.wbg.__wbg_length_d45040a40c570362=function(t){return p(t).length},n.wbg.__wbg_meshdatajs_new=function(t){const e=R.__wrap(t);return d(e)},n.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return d(t)},n.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return d(t)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return d(t)},n.wbg.__wbg_new_ff12d2b041fb48f1=function(t,e){try{var _={a:t,b:e},s=(c,o)=>{const l=_.a;_.a=0;try{return we(l,_.b,c,o)}finally{_.a=l}};const i=new Promise(s);return d(i)}finally{_.a=_.b=0}},n.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,e){const _=new Float32Array(F(t,e));return d(_)},n.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,e){const _=new Uint32Array(Yt(t,e));return d(_)},n.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,e){const _=new Function(w(t,e));return d(_)},n.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const e=new Uint32Array(t>>>0);return d(e)},n.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const e=new Float64Array(t>>>0);return d(e)},n.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const e=new Uint8Array(t>>>0);return d(e)},n.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(t,e,_){Float32Array.prototype.set.call(F(t,e),p(_))},n.wbg.__wbg_push_7d9be8f38fc13975=function(t,e){return p(t).push(p(e))},n.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const e=p(t).queueMicrotask;return d(e)},n.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(p(t))},n.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const e=Promise.resolve(p(t));return d(e)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(t,e,_){p(t)[b(e)]=b(_)},n.wbg.__wbg_set_781438a03c0c3c81=function(){return L(function(t,e,_){return Reflect.set(p(t),p(e),p(_))},arguments)},n.wbg.__wbg_set_7df433eea03a5c14=function(t,e,_){p(t)[e>>>0]=b(_)},n.wbg.__wbg_set_index_021489b2916af13e=function(t,e,_){p(t)[e>>>0]=_},n.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,e,_){p(t)[e>>>0]=_},n.wbg.__wbg_set_index_42abe35f117e614e=function(t,e,_){p(t)[e>>>0]=_>>>0},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const _=p(e).stack,s=u(_,r.__wbindgen_export3,r.__wbindgen_export4),i=g;a().setInt32(t+4,i,!0),a().setInt32(t+0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return z(t)?0:d(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return z(t)?0:d(t)},n.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return z(t)?0:d(t)},n.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return z(t)?0:d(t)},n.wbg.__wbg_then_4f95312d68691235=function(t,e){const _=p(t).then(p(e));return d(_)},n.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(p(t))},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,e){const _=w(t,e);return d(_)},n.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const e=BigInt.asUintN(64,t);return d(e)},n.wbg.__wbindgen_cast_73cbb7b49382c492=function(t,e){const _=de(t,e,r.__wasm_bindgen_func_elem_1483,ue);return d(_)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return d(t)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=p(t);return d(e)},n.wbg.__wbindgen_object_drop_ref=function(t){b(t)},n}function $t(n,t){return r=n.exports,qt.__wbindgen_wasm_module=t,M=null,E=null,T=null,D=null,G=null,r.__wbindgen_start(),r}function he(n){if(r!==void 0)return r;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Kt();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const e=new WebAssembly.Instance(n,t);return $t(e,n)}async function qt(n){if(r!==void 0)return r;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/assets/ifc-lite_bg-DyHX37GQ.wasm",import.meta.url));const t=Kt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:_}=await ye(await n,t);return $t(e,_)}let v=null,Jt;async function k(){return v||(await qt(Jt),v=new ct,it=!1,mt(),v)}let Ht=!1,it=!1;function mt(){if(!v||it)return;const n=v;typeof n.setMergeLayers=="function"&&n.setMergeLayers(Ht),it=!0}function xt(n){return new Uint8Array(n)}function vt(n){const t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t}let f=null;const Wt=1e6;function Ut(n){return{sharedBuffer:n.sharedBuffer,localBytes:xt(n.sharedBuffer),sabFallbackTaken:!1,unitScale:n.unitScale,rtcX:n.rtcX,rtcY:n.rtcY,rtcZ:n.rtcZ,needsShift:n.needsShift,voidKeys:n.voidKeys,voidCounts:n.voidCounts,voidValues:n.voidValues,styleIds:n.styleIds,styleColors:n.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function Qt(n){if(n.pendingMeshes.length===0)return;const t=n.pendingMeshes,e=n.pendingTransfers;n.pendingMeshes=[],n.pendingTransfers=[],n.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},e)}function me(n,t){for(let e=0;e<t.length;e++){const _=t.get(e);if(!_)continue;const s=new Float32Array(_.positions),i=new Float32Array(_.normals),c=new Uint32Array(_.indices);n.pendingMeshes.push({expressId:_.expressId,ifcType:_.ifcType,positions:s,normals:i,indices:c,color:[_.color[0],_.color[1],_.color[2],_.color[3]]}),n.pendingTransfers.push(s.buffer,i.buffer,c.buffer),n.cumulativeMeshBytes+=s.byteLength+i.byteLength+c.byteLength,_.free()}t.free()}async function at(n,t){const e=Math.floor(t.length/3);if(e!==0)try{const s=(await k()).processGeometryBatch(n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors);me(n,s)}catch(_){const s=_.message;if(!n.sabFallbackTaken&&n.localBytes.buffer instanceof SharedArrayBuffer){n.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),n.localBytes=vt(n.sharedBuffer),await at(n,t);return}if(e===1){console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),v=null;return}console.warn(`[Worker] Batch of ${e} entities failed (${s}), splitting…`),v=null;const i=Math.floor(e/2)*3;await at(n,t.slice(0,i)),await at(n,t.slice(i))}}async function Vt(n,t){const e=Math.floor(t.length/3);for(let _=0;_<e;_+=Wt){const s=_*3,i=Math.min(s+Wt*3,t.length);await at(n,t.subarray(s,i)),Qt(n)}}function Zt(n){Qt(n);let t=0;try{t=v?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",meshBytes:n.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage({type:"complete",totalMeshes:n.totalMeshesEmitted})}let Xt=Promise.resolve();self.onmessage=n=>{Xt=Xt.then(()=>xe(n)).catch(t=>{self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})})};async function xe(n){try{if(n.data.type==="prepass-streaming"){const t=await k();self.postMessage({type:"prepass-progress",phase:"parsing"});const e=n.data.sharedBuffer,_=n.data.chunkSize??5e4;let s=xt(e),i=!1;const c=o=>{self.postMessage({type:"prepass-stream",event:o})};try{t.buildPrePassStreaming(s,c,_)}catch(o){const l=o instanceof Error?o.message:String(o);if(!i)i=!0,console.warn(`[Worker] Streaming prepass with SAB view failed (${l}), retrying with copy`),s=vt(e),t.buildPrePassStreaming(s,c,_);else throw o}return}if(n.data.type==="prepass"||n.data.type==="prepass-fast"){const t=await k();self.postMessage({type:"prepass-progress",phase:"parsing"});const e=n.data.sharedBuffer,_=n.data.type==="prepass-fast";let s;try{const i=xt(e);s=_?t.buildPrePassFast(i):t.buildPrePassOnce(i)}catch(i){const c=i instanceof Error?i.message:String(i);console.warn(`[Worker] Prepass with SAB view failed (${c}), retrying with copy`);const o=vt(e);s=_?t.buildPrePassFast(o):t.buildPrePassOnce(o)}self.postMessage({type:"prepass-result",result:s});return}if(n.data.type==="init"){n.data.wasmUrl&&(Jt=n.data.wasmUrl),n.data.wasmModule?(he({module_or_path:n.data.wasmModule}),v=new ct,it=!1,mt()):await k(),self.postMessage({type:"ready"});return}if(n.data.type==="process"){await k();const{sharedBuffer:t,jobsFlat:e,unitScale:_,rtcX:s,rtcY:i,rtcZ:c,needsShift:o,voidKeys:l,voidCounts:h,voidValues:S,styleIds:O,styleColors:B}=n.data,j=Ut({sharedBuffer:t,unitScale:_,rtcX:s,rtcY:i,rtcZ:c,needsShift:o,voidKeys:l,voidCounts:h,voidValues:S,styleIds:O,styleColors:B});f=j,await Vt(j,e),Zt(j),f=null;return}if(n.data.type==="stream-start"){await k(),f=Ut({sharedBuffer:n.data.sharedBuffer,unitScale:n.data.unitScale,rtcX:n.data.rtcX,rtcY:n.data.rtcY,rtcZ:n.data.rtcZ,needsShift:n.data.needsShift,voidKeys:n.data.voidKeys,voidCounts:n.data.voidCounts,voidValues:n.data.voidValues,styleIds:n.data.styleIds,styleColors:n.data.styleColors});return}if(n.data.type==="stream-chunk"){if(!f)throw new Error("stream-chunk received before stream-start");await Vt(f,n.data.jobsFlat);return}if(n.data.type==="set-styles"){if(!f)return;f.styleIds=n.data.styleIds,f.styleColors=n.data.styleColors,f.voidKeys=n.data.voidKeys,f.voidCounts=n.data.voidCounts,f.voidValues=n.data.voidValues;return}if(n.data.type==="set-entity-index"){(await k()).setEntityIndex(n.data.ids,n.data.starts,n.data.lengths);return}if(n.data.type==="set-merge-layers"){Ht=n.data.enabled===!0,it=!1,mt();return}if(n.data.type==="stream-end"){if(!f)throw new Error("stream-end received before stream-start");Zt(f),f=null;return}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}}
@@ -1,7 +0,0 @@
1
- import{s as Qt}from"./workerHelpers--sAYm9yN.js";let r;function b(s){X===m.length&&m.push(m.length+1);const t=X;return X=m[t],m[t]=s,t}function jt(s){if(Y==1)throw new Error("out of js stack");return m[--Y]=s,Y}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function Kt(s){s<132||(m[s]=X,X=s)}function I(s,t){return s=s>>>0,$t().subarray(s/4,s/4+t)}function z(s,t){return s=s>>>0,te().subarray(s/8,s/8+t)}function Yt(s,t){return s=s>>>0,Zt().subarray(s/4,s/4+t)}let B=null;function o(){return(B===null||B.buffer!==r.memory.buffer)&&(B=new DataView(r.memory.buffer)),B}let G=null;function $t(){return(G===null||G.buffer!==r.memory.buffer)&&(G=new Float32Array(r.memory.buffer)),G}let W=null;function te(){return(W===null||W.buffer!==r.memory.buffer)&&(W=new Float64Array(r.memory.buffer)),W}function l(s,t){return s=s>>>0,re(s,t)}let U=null;function Zt(){return(U===null||U.buffer!==r.memory.buffer)&&(U=new Uint32Array(r.memory.buffer)),U}let N=null;function V(){return(N===null||N.buffer!==r.memory.buffer)&&(N=new Uint8Array(r.memory.buffer)),N}function c(s){return m[s]}function j(s,t){try{return s.apply(this,t)}catch(e){r.__wbindgen_export(b(e))}}let m=new Array(128).fill(void 0);m.push(void 0,null,!0,!1);let X=m.length;function R(s){return s==null}function Rt(s,t,e,n){const _={a:s,b:t,cnt:1,dtor:e},i=(...g)=>{_.cnt++;const p=_.a;_.a=0;try{return n(p,_.b,...g)}finally{_.a=p,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,Ft.unregister(_))},Ft.register(i,_,_),i}function f(s,t){const e=t(s.length*4,4)>>>0;return Zt().set(s,e/4),a=s.length,e}function h(s,t){const e=t(s.length*1,1)>>>0;return V().set(s,e/1),a=s.length,e}function d(s,t,e){if(e===void 0){const p=q.encode(s),u=t(p.length,1)>>>0;return V().subarray(u,u+p.length).set(p),a=p.length,u}let n=s.length,_=t(n,1)>>>0;const i=V();let g=0;for(;g<n;g++){const p=s.charCodeAt(g);if(p>127)break;i[_+g]=p}if(g!==n){g!==0&&(s=s.slice(g)),_=e(_,n,n=g+s.length*3,1)>>>0;const p=V().subarray(_+g,_+n),u=q.encodeInto(s,p);g+=u.written,_=e(_,n,g,1)>>>0}return a=g,_}let Y=128;function w(s){const t=c(s);return Kt(s),t}let Z=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;Z&&Z.decode();const ee=2146435072;let ht=0;function re(s,t){return ht+=t,ht>=ee&&(Z=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Z.decode(),ht=t),Z.decode(V().slice(s,s+t))}const q=typeof TextEncoder<"u"?new TextEncoder:void 0;q&&(q.encodeInto=function(s,t){const e=q.encode(s);return t.set(e),{read:s.length,written:e.length}});let a=0;function zt(s,t,e){r.__wasm_bindgen_func_elem_1394(s,t,b(e))}function ne(s,t,e,n){r.__wasm_bindgen_func_elem_1667(s,t,b(e),b(n))}const kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_georeferencejs_free(s>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpugeometry_free(s>>>0,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometry_free(s>>>0,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometrycollection_free(s>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometryref_free(s>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpumeshmetadata_free(s>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_ifcapi_free(s>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedata_free(s>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedgeometry_free(s>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedmeshcollection_free(s>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollection_free(s>>>0,1)),Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollectionwithrtc_free(s>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshdatajs_free(s>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profilecollection_free(s>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profileentryjs_free(s>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_rtcoffsetjs_free(s>>>0,1)),Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symboliccircle_free(s>>>0,1)),Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicpolyline_free(s>>>0,1)),Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicrepresentationcollection_free(s>>>0,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_zerocopymesh_free(s>>>0,1)),Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_wbg_rayon_poolbuilder_free(s>>>0,1));class J{static __wrap(t){t=t>>>0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,n){try{const p=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(p,this.__wbg_ptr,t,e,n);var _=o().getInt32(p+0,!0),i=o().getInt32(p+4,!0),g=z(_,i).slice();return r.__wbindgen_export2(_,i*8,8),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,n){try{const p=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(p,this.__wbg_ptr,t,e,n);var _=o().getInt32(p+0,!0),i=o().getInt32(p+4,!0),g=z(_,i).slice();return r.__wbindgen_export2(_,i*8,8),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(n,this.__wbg_ptr);var t=o().getInt32(n+0,!0),e=o().getInt32(n+4,!0);let _;return t!==0&&(_=l(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=z(t,e).slice();return r.__wbindgen_export2(t,e*8,8),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class k{static __wrap(t){t=t>>>0;const e=Object.create(k.prototype);return e.__wbg_ptr=t,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,n){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,n)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(_,this.__wbg_ptr,t);var e=o().getInt32(_+0,!0),n=o().getInt32(_+4,!0);let i;return e!==0&&(i=l(e,n).slice(),r.__wbindgen_export2(e,n*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:$.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,mt.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(k.prototype[Symbol.dispose]=k.prototype.free);class H{static __wrap(t){t=t>>>0;const e=Object.create(H.prototype);return e.__wbg_ptr=t,xt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,xt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class Q{static __wrap(t){t=t>>>0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,It.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:H.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,It.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:K.__wrap(e)}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class K{static __wrap(t){t=t>>>0;const e=Object.create(K.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);class ${static __wrap(t){t=t>>>0;const e=Object.create($.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=I(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class Xt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseMeshes(this.__wbg_ptr,e,n);return x.__wrap(_)}parseMeshesAsync(t,e){const n=d(t,r.__wbindgen_export3,r.__wbindgen_export4),_=a,i=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,n,_,b(e));return w(i)}buildPrePassFast(t){const e=h(t,r.__wbindgen_export3),n=a,_=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,n);return w(_)}buildPrePassOnce(t){const e=h(t,r.__wbindgen_export3),n=a,_=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,n);return w(_)}parseMeshesSubset(t,e,n,_){const i=d(t,r.__wbindgen_export3,r.__wbindgen_export4),g=a,p=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,g,e,n,_);return x.__wrap(p)}parseToGpuGeometry(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,n);return k.__wrap(_)}parseMeshesInstanced(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,n);return P.__wrap(_)}processGeometryBatch(t,e,n,_,i,g,p,u,y,v,O,A){const C=h(t,r.__wbindgen_export3),M=a,L=f(e,r.__wbindgen_export3),T=a,D=f(u,r.__wbindgen_export3),E=a,at=f(y,r.__wbindgen_export3),pt=a,bt=f(v,r.__wbindgen_export3),wt=a,ut=f(O,r.__wbindgen_export3),dt=a,lt=h(A,r.__wbindgen_export3),ft=a,yt=r.ifcapi_processGeometryBatch(this.__wbg_ptr,C,M,L,T,n,_,i,g,p,D,E,at,pt,bt,wt,ut,dt,lt,ft);return x.__wrap(yt)}scanEntityIndexShard(t,e,n,_){try{const u=r.__wbindgen_add_to_stack_pointer(-16),y=h(t,r.__wbindgen_export3),v=a;r.ifcapi_scanEntityIndexShard(u,this.__wbg_ptr,y,v,jt(e),n,_);var i=o().getInt32(u+0,!0),g=o().getInt32(u+4,!0),p=o().getInt32(u+8,!0);if(p)throw w(g);return w(i)}finally{r.__wbindgen_add_to_stack_pointer(16),m[Y++]=void 0}}buildPrePassStreaming(t,e,n){try{const p=r.__wbindgen_add_to_stack_pointer(-16),u=h(t,r.__wbindgen_export3),y=a;r.ifcapi_buildPrePassStreaming(p,this.__wbg_ptr,u,y,jt(e),n);var _=o().getInt32(p+0,!0),i=o().getInt32(p+4,!0),g=o().getInt32(p+8,!0);if(g)throw w(i);return w(_)}finally{r.__wbindgen_add_to_stack_pointer(16),m[Y++]=void 0}}parseToGpuGeometryAsync(t,e){const n=d(t,r.__wbindgen_export3,r.__wbindgen_export4),_=a,i=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,n,_,b(e));return w(i)}parseMeshesInstancedAsync(t,e){const n=d(t,r.__wbindgen_export3,r.__wbindgen_export4),_=a,i=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,n,_,b(e));return w(i)}benchmarkPureCpuParallelism(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_benchmarkPureCpuParallelism(i,this.__wbg_ptr,t);var e=o().getInt32(i+0,!0),n=o().getInt32(i+4,!0),_=z(e,n).slice();return r.__wbindgen_export2(e,n*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}parseToGpuInstancedGeometry(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,n);return Q.__wrap(_)}processGeometryBatchParallel(t,e,n,_,i,g,p,u,y,v,O,A){const C=h(t,r.__wbindgen_export3),M=a,L=f(e,r.__wbindgen_export3),T=a,D=f(u,r.__wbindgen_export3),E=a,at=f(y,r.__wbindgen_export3),pt=a,bt=f(v,r.__wbindgen_export3),wt=a,ut=f(O,r.__wbindgen_export3),dt=a,lt=h(A,r.__wbindgen_export3),ft=a,yt=r.ifcapi_processGeometryBatchParallel(this.__wbg_ptr,C,M,L,T,n,_,i,g,p,D,E,at,pt,bt,wt,ut,dt,lt,ft);return x.__wrap(yt)}processInstancedGeometryBatch(t,e,n,_,i,g,p,u,y){const v=h(t,r.__wbindgen_export3),O=a,A=f(e,r.__wbindgen_export3),C=a,M=f(u,r.__wbindgen_export3),L=a,T=h(y,r.__wbindgen_export3),D=a,E=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,v,O,A,C,n,_,i,g,p,M,L,T,D);return P.__wrap(E)}parseZeroCopy(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,n);return ct.__wrap(_)}extractProfiles(t,e){const n=d(t,r.__wbindgen_export3,r.__wbindgen_export4),_=a,i=r.ifcapi_extractProfiles(this.__wbg_ptr,n,_,e);return rt.__wrap(i)}debugProcessEntity953(t){let e,n;try{const g=r.__wbindgen_add_to_stack_pointer(-16),p=d(t,r.__wbindgen_export3,r.__wbindgen_export4),u=a;r.ifcapi_debugProcessEntity953(g,this.__wbg_ptr,p,u);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0);return e=_,n=i,l(_,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}debugProcessFirstWall(t){let e,n;try{const g=r.__wbindgen_add_to_stack_pointer(-16),p=d(t,r.__wbindgen_export3,r.__wbindgen_export4),u=a;r.ifcapi_debugProcessFirstWall(g,this.__wbg_ptr,p,u);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0);return e=_,n=i,l(_,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return w(t)}setEntityIndex(t,e,n){const _=f(t,r.__wbindgen_export3),i=a,g=f(e,r.__wbindgen_export3),p=a,u=f(n,r.__wbindgen_export3),y=a;r.ifcapi_setEntityIndex(this.__wbg_ptr,_,i,g,p,u,y)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,Ot.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_getGeoReference(this.__wbg_ptr,e,n);return _===0?void 0:J.__wrap(_)}parseMeshesWithRtc(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,n);return et.__wrap(_)}parseStreaming(t,e){const n=d(t,r.__wbindgen_export3,r.__wbindgen_export4),_=a,i=r.ifcapi_parseStreaming(this.__wbg_ptr,n,_,b(e));return w(i)}scanEntitiesFast(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,n);return w(_)}scanEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=a,_=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,n);return w(_)}scanGeometryEntitiesFast(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,n);return w(_)}scanRelevantEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=a,_=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,n);return w(_)}parse(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parse(this.__wbg_ptr,e,n);return w(_)}parseSymbolicRepresentations(t){const e=d(t,r.__wbindgen_export3,r.__wbindgen_export4),n=a,_=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,n);return ot.__wrap(_)}}Symbol.dispose&&(Xt.prototype[Symbol.dispose]=Xt.prototype.free);class tt{static __wrap(t){t=t>>>0;const e=Object.create(tt.prototype);return e.__wbg_ptr=t,At.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=I(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class S{static __wrap(t){t=t>>>0;const e=Object.create(S.prototype);return e.__wbg_ptr=t,Ct.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:tt.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return w(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return w(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:S.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class x{static __wrap(t){t=t>>>0;const e=Object.create(x.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,n){try{const p=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(p,this.__wbg_ptr,t,e,n);var _=o().getInt32(p+0,!0),i=o().getInt32(p+4,!0),g=z(_,i).slice();return r.__wbindgen_export2(_,i*8,8),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(n,this.__wbg_ptr);var t=o().getInt32(n+0,!0),e=o().getFloat64(n+8,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:F.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(x.prototype[Symbol.dispose]=x.prototype.free);class et{static __wrap(t){t=t>>>0;const e=Object.create(et.prototype);return e.__wbg_ptr=t,Tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return _t.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:F.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return x.__wrap(t)}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class F{static __wrap(t){t=t>>>0;const e=Object.create(F.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_shadingColor(n,this.__wbg_ptr);var t=o().getInt32(n+0,!0),e=o().getInt32(n+4,!0);let _;return t!==0&&(_=I(t,e).slice(),r.__wbindgen_export2(t,e*4,4)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=I(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return w(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return w(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class rt{static __wrap(t){t=t>>>0;const e=Object.create(rt.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:nt.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);class nt{static __wrap(t){t=t>>>0;const e=Object.create(nt.prototype);return e.__wbg_ptr=t,Bt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return w(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return w(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return w(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return w(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);class _t{static __wrap(t){t=t>>>0;const e=Object.create(_t.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,n){try{const p=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(p,this.__wbg_ptr,t,e,n);var _=o().getInt32(p+0,!0),i=o().getInt32(p+4,!0),g=z(_,i).slice();return r.__wbindgen_export2(_,i*8,8),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);class st{static __wrap(t){t=t>>>0;const e=Object.create(st.prototype);return e.__wbg_ptr=t,Wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class it{static __wrap(t){t=t>>>0;const e=Object.create(it.prototype);return e.__wbg_ptr=t,Ut.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return w(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);return t=n,e=_,l(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(it.prototype[Symbol.dispose]=it.prototype.free);class ot{static __wrap(t){t=t>>>0;const e=Object.create(ot.prototype);return e.__wbg_ptr=t,Nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:st.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:it.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=Yt(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(ot.prototype[Symbol.dispose]=ot.prototype.free);class ct{static __wrap(t){t=t>>>0;const e=Object.create(ct.prototype);return e.__wbg_ptr=t,vt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=I(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(_,this.__wbg_ptr);var t=o().getInt32(_+0,!0),e=o().getInt32(_+4,!0),n=I(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,vt.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(ct.prototype[Symbol.dispose]=ct.prototype.free);function oe(){const s=r.get_memory();return w(s)}function ce(){r.init()}function ge(s){const t=r.initThreadPool(s);return w(t)}function ae(){let s,t;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.version(_);var e=o().getInt32(_+0,!0),n=o().getInt32(_+4,!0);return s=e,t=n,l(e,n)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(s,t,1)}}class gt{static __wrap(t){t=t>>>0;const e=Object.create(gt.prototype);return e.__wbg_ptr=t,Vt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return r.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}build(){r.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}receiver(){return r.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}}Symbol.dispose&&(gt.prototype[Symbol.dispose]=gt.prototype.free);function pe(s){r.wbg_rayon_start_worker(s)}const _e=new Set(["basic","cors","default"]);async function se(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(n){if(s.ok&&_e.has(s.type)&&s.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const e=await s.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(s,t);return e instanceof WebAssembly.Instance?{instance:e,module:s}:e}}function qt(s){const t={};return t.wbg={},t.wbg.__wbg_Error_52673b7de5a0ca89=function(e,n){const _=Error(l(e,n));return b(_)},t.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){return typeof c(e)=="function"},t.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){return c(e)===void 0},t.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const e=r.memory;return b(e)},t.wbg.__wbg___wbindgen_module_967adef62ea6cbf8=function(){const e=Ht.__wbindgen_wasm_module;return b(e)},t.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(e,n){const _=c(n),i=typeof _=="number"?_:void 0;o().setFloat64(e+8,R(i)?0:i,!0),o().setInt32(e+0,!R(i),!0)},t.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1=function(e){throw w(e)},t.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,n){throw new Error(l(e,n))},t.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(e){c(e)._wbg_cb_unref()},t.wbg.__wbg_async_bba5a2ac54b734df=function(e){return c(e).async},t.wbg.__wbg_buffer_063cd102cc769a1c=function(e){const n=c(e).buffer;return b(n)},t.wbg.__wbg_call_3020136f7a2d6e44=function(){return j(function(e,n,_){const i=c(e).call(c(n),c(_));return b(i)},arguments)},t.wbg.__wbg_call_abb4ff46ce38be40=function(){return j(function(e,n){const _=c(e).call(c(n));return b(_)},arguments)},t.wbg.__wbg_call_c8baa5c5e72d274e=function(){return j(function(e,n,_,i){const g=c(e).call(c(n),c(_),c(i));return b(g)},arguments)},t.wbg.__wbg_data_8bf4ae669a78a688=function(e){const n=c(e).data;return b(n)},t.wbg.__wbg_debug_9d0c87ddda3dc485=function(e){console.debug(c(e))},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let _,i;try{_=e,i=n,console.error(l(e,n))}finally{r.__wbindgen_export2(_,i,1)}},t.wbg.__wbg_get_af9dab7e9603ea93=function(){return j(function(e,n){const _=Reflect.get(c(e),c(n));return b(_)},arguments)},t.wbg.__wbg_gpugeometry_new=function(e){const n=k.__wrap(e);return b(n)},t.wbg.__wbg_info_ce6bcc489c22f6f0=function(e){console.info(c(e))},t.wbg.__wbg_instancedgeometry_new=function(e){const n=S.__wrap(e);return b(n)},t.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(e){let n;try{n=c(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_86ce4877baf913bb=function(e){return c(e).length},t.wbg.__wbg_length_d45040a40c570362=function(e){return c(e).length},t.wbg.__wbg_log_1d990106d99dacb7=function(e){console.log(c(e))},t.wbg.__wbg_meshdatajs_new=function(e){const n=F.__wrap(e);return b(n)},t.wbg.__wbg_new_1ba21ce319a06297=function(){const e=new Object;return b(e)},t.wbg.__wbg_new_25f239778d6112b9=function(){const e=new Array;return b(e)},t.wbg.__wbg_new_53cb1e86c1ef5d2a=function(){return j(function(e,n){const _=new Worker(l(e,n));return b(_)},arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){const e=new Error;return b(e)},t.wbg.__wbg_new_de1e660b88fc921f=function(e){const n=new Int32Array(c(e));return b(n)},t.wbg.__wbg_new_ff12d2b041fb48f1=function(e,n){try{var _={a:e,b:n},i=(p,u)=>{const y=_.a;_.a=0;try{return ne(y,_.b,p,u)}finally{_.a=y}};const g=new Promise(i);return b(g)}finally{_.a=_.b=0}},t.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(e,n){const _=new Float32Array(I(e,n));return b(_)},t.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(e,n){const _=new Uint32Array(Yt(e,n));return b(_)},t.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(e,n){const _=new Function(l(e,n));return b(_)},t.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(e){const n=new Uint32Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(e){const n=new Float64Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(e){const n=new Uint8Array(e>>>0);return b(n)},t.wbg.__wbg_now_69d776cd24f5215b=function(){return Date.now()},t.wbg.__wbg_of_7779827fa663eec8=function(e,n,_){const i=Array.of(c(e),c(n),c(_));return b(i)},t.wbg.__wbg_postMessage_07504dbe15265d5c=function(){return j(function(e,n){c(e).postMessage(c(n))},arguments)},t.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(e,n,_){Float32Array.prototype.set.call(I(e,n),c(_))},t.wbg.__wbg_push_7d9be8f38fc13975=function(e,n){return c(e).push(c(n))},t.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(e){const n=c(e).queueMicrotask;return b(n)},t.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(e){queueMicrotask(c(e))},t.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(e){const n=Promise.resolve(c(e));return b(n)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,_){c(e)[w(n)]=w(_)},t.wbg.__wbg_set_781438a03c0c3c81=function(){return j(function(e,n,_){return Reflect.set(c(e),c(n),c(_))},arguments)},t.wbg.__wbg_set_7df433eea03a5c14=function(e,n,_){c(e)[n>>>0]=w(_)},t.wbg.__wbg_set_index_021489b2916af13e=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_04c4b93e64d08a52=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_42abe35f117e614e=function(e,n,_){c(e)[n>>>0]=_>>>0},t.wbg.__wbg_set_onmessage_deb94985de696ac7=function(e,n){c(e).onmessage=c(n)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const _=c(n).stack,i=d(_,r.__wbindgen_export3,r.__wbindgen_export4),g=a;o().setInt32(e+4,g,!0),o().setInt32(e+0,i,!0)},t.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(e,n,_){const i=Qt(w(e),w(n),gt.__wrap(_));return b(i)},t.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const e=typeof global>"u"?null:global;return R(e)?0:b(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const e=typeof globalThis>"u"?null:globalThis;return R(e)?0:b(e)},t.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const e=typeof self>"u"?null:self;return R(e)?0:b(e)},t.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const e=typeof window>"u"?null:window;return R(e)?0:b(e)},t.wbg.__wbg_then_4f95312d68691235=function(e,n){const _=c(e).then(c(n));return b(_)},t.wbg.__wbg_value_4cd497eeadba94bd=function(e){const n=c(e).value;return b(n)},t.wbg.__wbg_waitAsync_8afec80ffd213eca=function(e,n,_){const i=Atomics.waitAsync(c(e),n>>>0,_);return b(i)},t.wbg.__wbg_waitAsync_c186cb97ffacd552=function(){const e=Atomics.waitAsync;return b(e)},t.wbg.__wbg_warn_6e567d0d926ff881=function(e){console.warn(c(e))},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){const _=l(e,n);return b(_)},t.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){const n=BigInt.asUintN(64,e);return b(n)},t.wbg.__wbindgen_cast_4dd9d91cc07f498f=function(e,n){const _=Rt(e,n,r.__wasm_bindgen_func_elem_1393,zt);return b(_)},t.wbg.__wbindgen_cast_d4e72ce7b74d162f=function(e,n){const _=Rt(e,n,r.__wasm_bindgen_func_elem_1393,zt);return b(_)},t.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return b(e)},t.wbg.__wbindgen_link_203404ece0e9bab9=function(e){const n=`onmessage = function (ev) {
2
- let [ia, index, value] = ev.data;
3
- ia = new Int32Array(ia.buffer);
4
- let result = Atomics.wait(ia, index, value);
5
- postMessage(result);
6
- };
7
- `,_=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),i=d(_,r.__wbindgen_export3,r.__wbindgen_export4),g=a;o().setInt32(e+4,g,!0),o().setInt32(e+0,i,!0)},t.wbg.__wbindgen_object_clone_ref=function(e){const n=c(e);return b(n)},t.wbg.__wbindgen_object_drop_ref=function(e){w(e)},t.wbg.memory=s||new WebAssembly.Memory({initial:132,maximum:65536,shared:!0}),t}function Jt(s,t,e){if(r=s.exports,Ht.__wbindgen_wasm_module=t,B=null,G=null,W=null,U=null,N=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return r.__wbindgen_start(e),r}function be(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=qt(t);s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));const _=new WebAssembly.Instance(s,n);return Jt(_,s,e)}async function Ht(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof s>"u"&&(s=new URL("/assets/ifc-lite_bg-BIryVCXQ.wasm",import.meta.url));const n=qt(t);(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));const{instance:_,module:i}=await se(await s,n);return Jt(_,i,e)}export{J as GeoReferenceJs,k as GpuGeometry,H as GpuInstancedGeometry,Q as GpuInstancedGeometryCollection,K as GpuInstancedGeometryRef,$ as GpuMeshMetadata,Xt as IfcAPI,tt as InstanceData,S as InstancedGeometry,P as InstancedMeshCollection,x as MeshCollection,et as MeshCollectionWithRtc,F as MeshDataJs,rt as ProfileCollection,nt as ProfileEntryJs,_t as RtcOffsetJs,st as SymbolicCircle,it as SymbolicPolyline,ot as SymbolicRepresentationCollection,ct as ZeroCopyMesh,Ht as default,oe as get_memory,ce as init,be as initSync,ge as initThreadPool,ae as version,gt as wbg_rayon_PoolBuilder,pe as wbg_rayon_start_worker};