"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9594],{49594:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var s=n(65576);function i(e,t){return t.push(e.buffer),{buffer:e.buffer,layout:new s.Gw(e.layout)}}var r=n(17288),a=n(97411),c=n(212);class o{async extract(e){const t=u(e),n=(0,c.Kl)(t),s=[t.data.buffer];return{result:l(n,s),transferList:s}}async extractComponentsEdgeLocations(e){const t=u(e),n=(0,c.kY)(t.data,t.skipDeduplicate,t.indices,t.indicesLength),s=[];return{result:i((0,a.n)(n,d,p).regular.instancesData,s),transferList:s}}async extractEdgeLocations(e){const t=u(e),n=(0,c.kY)(t.data,t.skipDeduplicate,t.indices,t.indicesLength),s=[];return{result:i((0,a.n)(n,f,p).regular.instancesData,s),transferList:s}}}function u(e){return{data:r.tf.createView(e.dataBuffer),indices:"Uint32Array"===e.indicesType?new Uint32Array(e.indices):"Uint16Array"===e.indicesType?new Uint16Array(e.indices):e.indices,indicesLength:e.indicesLength,writerSettings:e.writerSettings,skipDeduplicate:e.skipDeduplicate}}function l(e,t){return t.push(e.regular.lodInfo.lengths.buffer),t.push(e.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:i(e.regular.instancesData,t),lodInfo:{lengths:e.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:i(e.silhouette.instancesData,t),lodInfo:{lengths:e.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:e.averageEdgeLength}}const f=new class{allocate(e){return c.Yr.createBuffer(e)}trim(e,t){return e.slice(0,t)}write(e,t,n){e.position0.setVec(t,n.position0),e.position1.setVec(t,n.position1)}},d=new class{allocate(e){return c.n_.createBuffer(e)}trim(e,t){return e.slice(0,t)}write(e,t,n){e.position0.setVec(t,n.position0),e.position1.setVec(t,n.position1),e.componentIndex.set(t,n.componentIndex)}},p={allocate:()=>null,write:()=>{},trim:()=>null}}}]);