import{GLTFLoader as i,ArrayItem as s}from"./glTFLoader-CYgMHnNC.js";import{aG as d,aH as _}from"./index-D5IzkEk3.js";import"./index-Iu0hi-Ff.js";import"./svelte/svelte_svelte.js";import"./svelte/svelte_animate.js";import"./svelte/svelte_attachments.js";import"./svelte/svelte_easing.js";import"./svelte/svelte_internal_client.js";import"./svelte/svelte_internal_flags_async.js";import"./svelte/svelte_internal_flags_legacy.js";import"./svelte/svelte_internal_flags_tracing.js";import"./svelte/svelte_internal_server.js";import"./svelte/svelte_legacy.js";import"./svelte/svelte_motion.js";import"./svelte/svelte_reactivity.js";import"./svelte/svelte_reactivity_window.js";import"./svelte/svelte_server.js";import"./svelte/svelte_store.js";import"./svelte/svelte_transition.js";import"./svelte/svelte_events.js";import"./bone-CfETHAiH.js";import"./skeleton-Ddr_8R6M.js";import"./rawTexture-DwwsDTFK.js";import"./assetContainer-A1P58mh-.js";import"./objectModelMapping-BKAYxthT.js";const o="KHR_texture_basisu";class c{constructor(r){this.name=o,this._loader=r,this.enabled=r.isExtensionUsed(o)}dispose(){this._loader=null}_loadTextureAsync(r,t,m){return i.LoadExtensionAsync(r,t,this.name,async(a,n)=>{const p=t.sampler==null?i.DefaultSampler:s.Get(`${r}/sampler`,this._loader.gltf.samplers,t.sampler),l=s.Get(`${a}/source`,this._loader.gltf.images,n.source);return await this._loader._createTextureAsync(r,p,l,u=>{m(u)},t._textureInfo.nonColorData?{useRGBAIfASTCBC7NotAvailableWhenUASTC:!0}:void 0,!t._textureInfo.nonColorData)})}}d(o);_(o,!0,e=>new c(e));export{c as KHR_texture_basisu};
