text: "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@react-three/fiber"),t=require("@babel/runtime/helpers/extends"),u=require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),n=require("react-merge-refs");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(t),l=a(u),c=a(n),s=e.forwardRef((function(t,u){var n=t.children,a=t.distances,s=l.default(t,["children","distances"]),f=e.useRef(null);return e.useLayoutEffect((function(){var e=f.current;e.levels.length=0,e.children.forEach((function(r,t){return e.levels.push({object:r,distance:a[t]})}))})),r.useFrame((function(e){var r;return null==(r=f.current)?void 0:r.update(e.camera)})),e.createElement("lOD",i.default({ref:c.default([f,u])},s),n)}));exports.Detailed=s;
  