import{G as l,U as t,e as r}from"./nc-3d-babylon.DXK9i1XM.js";import"./nc-main.DEgIQeOo.js";import"/vue.js";import"./service-worker.DGZzV4eE.js";class m{constructor(){this.supportCascades=!1}loadCubeData(o,e,p,s,n){if(Array.isArray(o))return;const a=l(o);if(a){e.width=a.width,e.height=a.width;try{t(e,a),r(e,o,a).then(()=>{e.isReady=!0,e.onLoadedObservable.notifyObservers(e),e.onLoadedObservable.clear(),s&&s()},i=>{n?.("Can not upload environment levels",i)})}catch(i){n?.("Can not upload environment file",i)}}else n&&n("Can not parse the environment file",null)}loadData(){throw".env not supported in 2d."}}export{m as _ENVTextureLoader};
