vendor: 798 bytes, line 1
1import{r as n}from"./vendor-react-E98sgxjj.js";import{O as o,a as m,b as A}from"./vendor-three-Cz2JVrfJ.js";function d(c,t){const i=n.useRef(),[r]=n.useState(()=>t?t instanceof o?{current:t}:t:i),[u]=n.useState(()=>new m(void 0));n.useLayoutEffect(()=>{t&&(r.current=t instanceof o?t:t.current),u._root=r.current});const s=n.useRef({}),f=n.useMemo(()=>{const a={};return c.forEach(e=>Object.defineProperty(a,e.name,{enumerable:!0,get(){if(r.current)return s.current[e.name]||(s.current[e.name]=u.clipAction(e,r.current))},configurable:!0})),{ref:r,clips:c,actions:a,names:c.map(e=>e.name),mixer:u}},[c]);return A((a,e)=>u.update(e)),n.useEffect(()=>{const a=r.current;return()=>{s.current={},u.stopAllAction(),Object.values(f.actions).forEach(e=>{a&&u.uncacheAction(e,a)})}},[c]),f}export{d as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.