@mapvx/web-components-ssr 1.6.1 → 1.7.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import"./main.js";var A=(function(){var q=`b9H79Tebbbe8Fv9Gbb9Gvuuuuueu9Giuuub9Geueu9Giuuueuixkbeeeddddillviebeoweuecj:Gdkr;Neqo9TW9T9VV95dbH9F9F939H79T9F9J9H229F9Jt9VV7bb8A9TW79O9V9Wt9F9KW9J9V9KW9wWVtW949c919M9MWVbeY9TW79O9V9Wt9F9KW9J9V9KW69U9KW949c919M9MWVbdE9TW79O9V9Wt9F9KW9J9V9KW69U9KW949tWG91W9U9JWbiL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9p9JtblK9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9r919HtbvL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVT949WboY9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVJ9V29VVbrl79IV9Rbwq:VZkdbk:XYi5ud9:du8Jjjjjbcj;kb9Rgv8Kjjjjbc9:hodnalTmbcuhoaiRbbgrc;WeGc:Ge9hmbarcsGgwce0mbc9:hoalcufadcd4cbawEgDadfgrcKcaawEgqaraq0Egk6mbaicefhxcj;abad9Uc;WFbGcjdadca0EhmaialfgPar9Rgoadfhsavaoadz:jjjjbgzceVhHcbhOdndninaeaO9nmeaPax9RaD6mdamaeaO9RaOamfgoae6EgAcsfglc9WGhCabaOad2fhXaAcethQaxaDfhiaOaeaoaeao6E9RhLalcl4cifcd4hKazcj;cbfaAfhYcbh8AazcjdfhEaHh3incbh5dnawTmbaxa8Acd4fRbbh5kcbh8Eazcj;cbfhqinaih8Fdndndndna5a8Ecet4ciGgoc9:fPdebdkaPa8F9RaA6mrazcj;cbfa8EaA2fa8FaAz:jjjjb8Aa8FaAfhixdkazcj;cbfa8EaA2fcbaAz:kjjjb8Aa8FhixekaPa8F9RaK6mva8FaKfhidnaCTmbaPai9RcK6mbaocdtc:q:G:cjbfcj:G:cjbawEhaczhrcbhlinargoc9Wfghaqfhrdndndndndndnaaa8Fahco4fRbbalcoG4ciGcdtfydbPDbedvivvvlvkar9cb83bwar9cb83bbxlkarcbaiRbdai8Xbb9c:c:qj:bw9:9c:q;c1:I1e:d9c:b:c:e1z9:gg9cjjjjjz:dg8J9qE86bbaqaofgrcGfcbaicdfa8J9c8N1:NfghRbbag9cjjjjjw:dg8J9qE86bbarcVfcbaha8J9c8M1:NfghRbbag9cjjjjjl:dg8J9qE86bbarc7fcbaha8J9c8L1:NfghRbbag9cjjjjjd:dg8J9qE86bbarctfcbaha8J9c8K1:NfghRbbag9cjjjjje:dg8J9qE86bbarc91fcbaha8J9c8J1:NfghRbbag9cjjjj;ab:dg8J9qE86bbarc4fcbaha8J9cg1:NfghRbbag9cjjjja:dg8J9qE86bbarc93fcbaha8J9ch1:NfghRbbag9cjjjjz:dgg9qE86bbarc94fcbahag9ca1:NfghRbbai8Xbe9c:c:qj:bw9:9c:q;c1:I1e:d9c:b:c:e1z9:gg9cjjjjjz:dg8J9qE86bbarc95fcbaha8J9c8N1:NfgiRbbag9cjjjjjw:dg8J9qE86bbarc96fcbaia8J9c8M1:NfgiRbbag9cjjjjjl:dg8J9qE86bbarc97fcbaia8J9c8L1:NfgiRbbag9cjjjjjd:dg8J9qE86bbarc98fcbaia8J9c8K1:NfgiRbbag9cjjjjje:dg8J9qE86bbarc99fcbaia8J9c8J1:NfgiRbbag9cjjjj;ab:dg8J9qE86bbarc9:fcbaia8J9cg1:NfgiRbbag9cjjjja:dg8J9qE86bbarcufcbaia8J9ch1:NfgiRbbag9cjjjjz:dgg9qE86bbaiag9ca1:NfhixikaraiRblaiRbbghco4g8Ka8KciSg8KE86bbaqaofgrcGfaiclfa8Kfg8KRbbahcl4ciGg8La8LciSg8LE86bbarcVfa8Ka8Lfg8KRbbahcd4ciGg8La8LciSg8LE86bbarc7fa8Ka8Lfg8KRbbahciGghahciSghE86bbarctfa8Kahfg8KRbbaiRbeghco4g8La8LciSg8LE86bbarc91fa8Ka8Lfg8KRbbahcl4ciGg8La8LciSg8LE86bbarc4fa8Ka8Lfg8KRbbahcd4ciGg8La8LciSg8LE86bbarc93fa8Ka8Lfg8KRbbahciGghahciSghE86bbarc94fa8Kahfg8KRbbaiRbdghco4g8La8LciSg8LE86bbarc95fa8Ka8Lfg8KRbbahcl4ciGg8La8LciSg8LE86bbarc96fa8Ka8Lfg8KRbbahcd4ciGg8La8LciSg8LE86bbarc97fa8Ka8Lfg8KRbbahciGghahciSghE86bbarc98fa8KahfghRbbaiRbigico4g8Ka8KciSg8KE86bbarc99faha8KfghRbbaicl4ciGg8Ka8KciSg8KE86bbarc9:faha8KfghRbbaicd4ciGg8Ka8KciSg8KE86bbarcufaha8KfgrRbbaiciGgiaiciSgiE86bbaraifhixdkaraiRbwaiRbbghcl4g8Ka8KcsSg8KE86bbaqaofgrcGfaicwfa8Kfg8KRbbahcsGghahcsSghE86bbarcVfa8KahfghRbbaiRbeg8Kcl4g8La8LcsSg8LE86bbarc7faha8LfghRbba8KcsGg8Ka8KcsSg8KE86bbarctfaha8KfghRbbaiRbdg8Kcl4g8La8LcsSg8LE86bbarc91faha8LfghRbba8KcsGg8Ka8KcsSg8KE86bbarc4faha8KfghRbbaiRbig8Kcl4g8La8LcsSg8LE86bbarc93faha8LfghRbba8KcsGg8Ka8KcsSg8KE86bbarc94faha8KfghRbbaiRblg8Kcl4g8La8LcsSg8LE86bbarc95faha8LfghRbba8KcsGg8Ka8KcsSg8KE86bbarc96faha8KfghRbbaiRbvg8Kcl4g8La8LcsSg8LE86bbarc97faha8LfghRbba8KcsGg8Ka8KcsSg8KE86bbarc98faha8KfghRbbaiRbog8Kcl4g8La8LcsSg8LE86bbarc99faha8LfghRbba8KcsGg8Ka8KcsSg8KE86bbarc9:faha8KfghRbbaiRbrgicl4g8Ka8KcsSg8KE86bbarcufaha8KfgrRbbaicsGgiaicsSgiE86bbaraifhixekarai8Pbw83bwarai8Pbb83bbaiczfhikdnaoaC9pmbalcdfhlaoczfhraPai9RcL0mekkaoaC6moaimexokaCmva8FTmvkaqaAfhqa8Ecefg8Ecl9hmbkdndndndnawTmbasa8Acd4fRbbgociGPlbedrbkaATmdaza8Afh8Fazcj;cbfhhcbh8EaEhaina8FRbbhraahocbhlinaoahalfRbbgqce4cbaqceG9R7arfgr86bbaoadfhoaAalcefgl9hmbkaacefhaa8Fcefh8FahaAfhha8Ecefg8Ecl9hmbxikkaATmeaza8Afhaazcj;cbfhhcbhoceh8EaYh8FinaEaofhlaa8Vbbhrcbhoinala8FaofRbbcwtahaofRbbgqVc;:FiGce4cbaqceG9R7arfgr87bbaladfhlaLaocefgofmbka8FaQfh8FcdhoaacdfhaahaQfhha8EceGhlcbh8EalmbxdkkaATmbaocl4h8Eaza8AfRbbhqcwhoa3hlinalRbbaotaqVhqalcefhlaocwfgoca9hmbkcbhhaEh8FaYhainazcj;cbfahfRbbhrcwhoaahlinalRbbaotarVhralaAfhlaocwfgoca9hmbkara8E94aq7hqcbhoa8Fhlinalaqao486bbalcefhlaocwfgoca9hmbka8Fadfh8FaacefhaahcefghaA9hmbkkaEclfhEa3clfh3a8Aclfg8Aad6mbkaXazcjdfaAad2z:jjjjb8AazazcjdfaAcufad2fadz:jjjjb8AaAaOfhOaihxaimbkc9:hoxdkcbc99aPax9RakSEhoxekc9:hokavcj;kbf8Kjjjjbaok:ysezu8Jjjjjbc;ae9Rgv8Kjjjjbc9:hodnalaeci9UgrcHf6mbcuhoaiRbbgwc;WeGc;Ge9hmbawcsGgDce0mbavc;abfcFecjez:kjjjb8Aav9cu83iUav9cu83i8Wav9cu83iyav9cu83iaav9cu83iKav9cu83izav9cu83iwav9cu83ibaialfc9WfhqaicefgwarfhldnaeTmbcmcsaDceSEhkcbhxcbhmcbhrcbhicbhoindnalaq9nmbc9:hoxikdndnawRbbgDc;Ve0mbavc;abfaoaDcu7gPcl4fcsGcitfgsydlhzasydbhHdndnaDcsGgsak9pmbavaiaPfcsGcdtfydbaxasEhDaxasTgOfhxxekdndnascsSmbcehOasc987asamffcefhDxekalcefhDal8SbbgscFeGhPdndnascu9mmbaDhlxekalcvfhlaPcFbGhPcrhsdninaD8SbbgOcFbGastaPVhPaOcu9kmeaDcefhDascrfgsc8J9hmbxdkkaDcefhlkcehOaPce4cbaPceG9R7amfhDkaDhmkavc;abfaocitfgsaDBdbasazBdlavaicdtfaDBdbavc;abfaocefcsGcitfgsaHBdbasaDBdlaocdfhoaOaifhidnadcd9hmbabarcetfgsaH87ebasclfaD87ebascdfaz87ebxdkabarcdtfgsaHBdbascwfaDBdbasclfazBdbxekdnaDcpe0mbavaiaqaDcsGfRbbgscl4gP9RcsGcdtfydbaxcefgOaPEhDavaias9RcsGcdtfydbaOaPTgzfgOascsGgPEhsaPThPdndnadcd9hmbabarcetfgHax87ebaHclfas87ebaHcdfaD87ebxekabarcdtfgHaxBdbaHcwfasBdbaHclfaDBdbkavaicdtfaxBdbavc;abfaocitfgHaDBdbaHaxBdlavaicefgicsGcdtfaDBdbavc;abfaocefcsGcitfgHasBdbaHaDBdlavaiazfgicsGcdtfasBdbavc;abfaocdfcsGcitfgDaxBdbaDasBdlaocifhoaiaPfhiaOaPfhxxekaxcbalRbbgsEgHaDc;:eSgDfhOascsGhAdndnascl4gCmbaOcefhzxekaOhzavaiaC9RcsGcdtfydbhOkdndnaAmbazcefhxxekazhxavaias9RcsGcdtfydbhzkdndnaDTmbalcefhDxekalcdfhDal8SbegPcFeGhsdnaPcu9kmbalcofhHascFbGhscrhldninaD8SbbgPcFbGaltasVhsaPcu9kmeaDcefhDalcrfglc8J9hmbkaHhDxekaDcefhDkasce4cbasceG9R7amfgmhHkdndnaCcsSmbaDhsxekaDcefhsaD8SbbglcFeGhPdnalcu9kmbaDcvfhOaPcFbGhPcrhldninas8SbbgDcFbGaltaPVhPaDcu9kmeascefhsalcrfglc8J9hmbkaOhsxekascefhskaPce4cbaPceG9R7amfgmhOkdndnaAcsSmbashlxekascefhlas8SbbgDcFeGhPdnaDcu9kmbascvfhzaPcFbGhPcrhDdninal8SbbgscFbGaDtaPVhPascu9kmealcefhlaDcrfgDc8J9hmbkazhlxekalcefhlkaPce4cbaPceG9R7amfgmhzkdndnadcd9hmbabarcetfgDaH87ebaDclfaz87ebaDcdfaO87ebxekabarcdtfgDaHBdbaDcwfazBdbaDclfaOBdbkavc;abfaocitfgDaOBdbaDaHBdlavaicdtfaHBdbavc;abfaocefcsGcitfgDazBdbaDaOBdlavaicefgicsGcdtfaOBdbavc;abfaocdfcsGcitfgDaHBdbaDazBdlavaiaCTaCcsSVfgicsGcdtfazBdbaiaATaAcsSVfhiaocifhokawcefhwaocsGhoaicsGhiarcifgrae6mbkkcbc99alaqSEhokavc;aef8Kjjjjbaok:clevu8Jjjjjbcz9Rhvdnalaecvf9pmbc9:skdnaiRbbc;:eGc;qeSmbcuskav9cb83iwaicefhoaialfc98fhrdnaeTmbdnadcdSmbcbhwindnaoar6mbc9:skaocefhlao8SbbgicFeGhddndnaicu9mmbalhoxekaocvfhoadcFbGhdcrhidninal8SbbgDcFbGaitadVhdaDcu9kmealcefhlaicrfgic8J9hmbxdkkalcefhokabawcdtfadc8Etc8F91adcd47avcwfadceGcdtVglydbfgiBdbalaiBdbawcefgwae9hmbxdkkcbhwindnaoar6mbc9:skaocefhlao8SbbgicFeGhddndnaicu9mmbalhoxekaocvfhoadcFbGhdcrhidninal8SbbgDcFbGaitadVhdaDcu9kmealcefhlaicrfgic8J9hmbxdkkalcefhokabawcetfadc8Etc8F91adcd47avcwfadceGcdtVglydbfgi87ebalaiBdbawcefgwae9hmbkkcbc99aoarSEk:Lvoeue99dud99eud99dndnadcl9hmbaeTmeindndnabcdfgd8Sbb:Yab8Sbbgi:Ygl:l:tabcefgv8Sbbgo:Ygr:l:tgwJbb;:9cawawNJbbbbawawJbbbb9GgDEgq:mgkaqaicb9iEalMgwawNakaqaocb9iEarMgqaqNMM:r:vglNJbbbZJbbb:;aDEMgr:lJbbb9p9DTmbar:Ohixekcjjjj94hikadai86bbdndnaqalNJbbbZJbbb:;aqJbbbb9GEMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkavad86bbdndnawalNJbbbZJbbb:;awJbbbb9GEMgw:lJbbb9p9DTmbaw:Ohdxekcjjjj94hdkabad86bbabclfhbaecufgembxdkkaeTmbindndnabclfgd8Ueb:Yab8Uebgi:Ygl:l:tabcdfgv8Uebgo:Ygr:l:tgwJb;:FSawawNJbbbbawawJbbbb9GgDEgq:mgkaqaicb9iEalMgwawNakaqaocb9iEarMgqaqNMM:r:vglNJbbbZJbbb:;aDEMgr:lJbbb9p9DTmbar:Ohixekcjjjj94hikadai87ebdndnaqalNJbbbZJbbb:;aqJbbbb9GEMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkavad87ebdndnawalNJbbbZJbbb:;awJbbbb9GEMgw:lJbbb9p9DTmbaw:Ohdxekcjjjj94hdkabad87ebabcwfhbaecufgembkkk:4ioiue99dud99dud99dnaeTmbcbhiabhlindndnal8Uebgv:YgoJ:ji:1Salcof8UebgrciVgw:Y:vgDNJbbbZJbbb:;avcu9kEMgq:lJbbb9p9DTmbaq:Ohkxekcjjjj94hkkalclf8Uebhvalcdf8UebhxalarcefciGcetfak87ebdndnax:YgqaDNJbbbZJbbb:;axcu9kEMgm:lJbbb9p9DTmbam:Ohxxekcjjjj94hxkabaiarciGgkfcd7cetfax87ebdndnav:YgmaDNJbbbZJbbb:;avcu9kEMgP:lJbbb9p9DTmbaP:Ohvxekcjjjj94hvkalarcufciGcetfav87ebdndnawaw2:ZgPaPMaoaoN:taqaqN:tamamN:tgoJbbbbaoJbbbb9GE:raDNJbbbZMgD:lJbbb9p9DTmbaD:Ohrxekcjjjj94hrkalakcetfar87ebalcwfhlaiclfhiaecufgembkkk9mbdnadcd4ae2gdTmbinababydbgecwtcw91:Yaece91cjjj98Gcjjj;8if::NUdbabclfhbadcufgdmbkkk:Tvirud99eudndnadcl9hmbaeTmeindndnabRbbgiabcefgl8Sbbgvabcdfgo8Sbbgrf9R:YJbbuJabcifgwRbbgdce4adVgDcd4aDVgDcl4aDVgD:Z:vgqNJbbbZMgk:lJbbb9p9DTmbak:Ohxxekcjjjj94hxkaoax86bbdndnaraif:YaqNJbbbZMgk:lJbbb9p9DTmbak:Ohoxekcjjjj94hokalao86bbdndnavaifar9R:YaqNJbbbZMgk:lJbbb9p9DTmbak:Ohixekcjjjj94hikabai86bbdndnaDadcetGadceGV:ZaqNJbbbZMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkawad86bbabclfhbaecufgembxdkkaeTmbindndnab8Vebgiabcdfgl8Uebgvabclfgo8Uebgrf9R:YJbFu9habcofgw8Vebgdce4adVgDcd4aDVgDcl4aDVgDcw4aDVgD:Z:vgqNJbbbZMgk:lJbbb9p9DTmbak:Ohxxekcjjjj94hxkaoax87ebdndnaraif:YaqNJbbbZMgk:lJbbb9p9DTmbak:Ohoxekcjjjj94hokalao87ebdndnavaifar9R:YaqNJbbbZMgk:lJbbb9p9DTmbak:Ohixekcjjjj94hikabai87ebdndnaDadcetGadceGV:ZaqNJbbbZMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkawad87ebabcwfhbaecufgembkkk9teiucbcbyd:K:G:cjbgeabcifc98GfgbBd:K:G:cjbdndnabZbcztgd9nmbcuhiabad9RcFFifcz4nbcuSmekaehikaik;LeeeudndnaeabVciGTmbabhixekdndnadcz9pmbabhixekabhiinaiaeydbBdbaiclfaeclfydbBdbaicwfaecwfydbBdbaicxfaecxfydbBdbaeczfheaiczfhiadc9Wfgdcs0mbkkadcl6mbinaiaeydbBdbaeclfheaiclfhiadc98fgdci0mbkkdnadTmbinaiaeRbb86bbaicefhiaecefheadcufgdmbkkabk;aeedudndnabciGTmbabhixekaecFeGc:b:c:ew2hldndnadcz9pmbabhixekabhiinaialBdbaicxfalBdbaicwfalBdbaiclfalBdbaiczfhiadc9Wfgdcs0mbkkadcl6mbinaialBdbaiclfhiadc98fgdci0mbkkdnadTmbinaiae86bbaicefhiadcufgdmbkkabkk83dbcj:Gdk8Kbbbbdbbblbbbwbbbbbbbebbbdbbblbbbwbbbbc:K:Gdkl8W:qbb`,D=`b9H79TebbbeKl9Gbb9Gvuuuuueu9Giuuub9Geueuixkbbebeeddddilve9Weeeviebeoweuecj:Gdkr;Neqo9TW9T9VV95dbH9F9F939H79T9F9J9H229F9Jt9VV7bb8A9TW79O9V9Wt9F9KW9J9V9KW9wWVtW949c919M9MWVbdY9TW79O9V9Wt9F9KW9J9V9KW69U9KW949c919M9MWVblE9TW79O9V9Wt9F9KW9J9V9KW69U9KW949tWG91W9U9JWbvL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9p9JtboK9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9r919HtbrL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVT949WbwY9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVJ9V29VVbDl79IV9Rbqq:W9Dklbzik94evu8Jjjjjbcz9Rhbcbheincbhdcbhiinabcwfadfaicjuaead4ceGglE86bbaialfhiadcefgdcw9hmbkaeai86b:q:W:cjbaecitab8Piw83i:q:G:cjbaecefgecjd9hmbkk:JBl8Aud97dur978Jjjjjbcj;kb9Rgv8Kjjjjbc9:hodnalTmbcuhoaiRbbgrc;WeGc:Ge9hmbarcsGgwce0mbc9:hoalcufadcd4cbawEgDadfgrcKcaawEgqaraq0Egk6mbaialfgxar9RhodnadTgmmbavaoad;8qbbkaicefhPcj;abad9Uc;WFbGcjdadca0EhsdndndnadTmbaoadfhzcbhHinaeaH9nmdaxaP9RaD6miabaHad2fhOaPaDfhAasaeaH9RaHasfae6EgCcsfgocl4cifcd4hXavcj;cbfaoc9WGgQcetfhLavcj;cbfaQci2fhKavcj;cbfaQfhYcbh8Aaoc;ab6hEincbh3dnawTmbaPa8Acd4fRbbh3kcbh5avcj;cbfh8Eindndndndna3a5cet4ciGgoc9:fPdebdkaxaA9RaQ6mwdnaQTmbavcj;cbfa5aQ2faAaQ;8qbbkaAaCfhAxdkaQTmeavcj;cbfa5aQ2fcbaQ;8kbxekaxaA9RaX6moaoclVcbawEhraAaXfhocbhidnaEmbaxao9Rc;Gb6mbcbhlina8EalfhidndndndndndnaAalco4fRbbgqciGarfPDbedibledibkaipxbbbbbbbbbbbbbbbbpklbxlkaiaopbblaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLg8Fcdp:mea8FpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogapxiiiiiiiiiiiiiiiip8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbahaoclffagRb:q:W:cjbfhoxikaiaopbbwaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogapxssssssssssssssssp8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbahaocwffagRb:q:W:cjbfhoxdkaiaopbbbpklbaoczfhoxekaiaopbbdaoRbbghcitpbi:q:G:cjbahRb:q:W:cjbghpsaoRbeggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPpklbahaocdffagRb:q:W:cjbfhokdndndndndndnaqcd4ciGarfPDbedibledibkaiczfpxbbbbbbbbbbbbbbbbpklbxlkaiczfaopbblaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLg8Fcdp:mea8FpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogapxiiiiiiiiiiiiiiiip8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbahaoclffagRb:q:W:cjbfhoxikaiczfaopbbwaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogapxssssssssssssssssp8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbahaocwffagRb:q:W:cjbfhoxdkaiczfaopbbbpklbaoczfhoxekaiczfaopbbdaoRbbghcitpbi:q:G:cjbahRb:q:W:cjbghpsaoRbeggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPpklbahaocdffagRb:q:W:cjbfhokdndndndndndnaqcl4ciGarfPDbedibledibkaicafpxbbbbbbbbbbbbbbbbpklbxlkaicafaopbblaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLg8Fcdp:mea8FpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogapxiiiiiiiiiiiiiiiip8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbahaoclffagRb:q:W:cjbfhoxikaicafaopbbwaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogapxssssssssssssssssp8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbahaocwffagRb:q:W:cjbfhoxdkaicafaopbbbpklbaoczfhoxekaicafaopbbdaoRbbghcitpbi:q:G:cjbahRb:q:W:cjbghpsaoRbeggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPpklbahaocdffagRb:q:W:cjbfhokdndndndndndnaqco4arfPDbedibledibkaic8Wfpxbbbbbbbbbbbbbbbbpklbxlkaic8Wfaopbblaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLg8Fcdp:mea8FpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogapxiiiiiiiiiiiiiiiip8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Ngicitpbi:q:G:cjbaiRb:q:W:cjbgipsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Ngqcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbaiaoclffaqRb:q:W:cjbfhoxikaic8Wfaopbbwaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogapxssssssssssssssssp8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Ngicitpbi:q:G:cjbaiRb:q:W:cjbgipsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Ngqcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spklbaiaocwffaqRb:q:W:cjbfhoxdkaic8Wfaopbbbpklbaoczfhoxekaic8WfaopbbdaoRbbgicitpbi:q:G:cjbaiRb:q:W:cjbgipsaoRbegqcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPpklbaiaocdffaqRb:q:W:cjbfhokalc;abfhialcjefaQ0meaihlaxao9Rc;Fb0mbkkdnaiaQ9pmbaici4hlinaxao9RcK6mwa8EaifhqdndndndndndnaAaico4fRbbalcoG4ciGarfPDbedibledibkaqpxbbbbbbbbbbbbbbbbpkbbxlkaqaopbblaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLg8Fcdp:mea8FpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogapxiiiiiiiiiiiiiiiip8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spkbbahaoclffagRb:q:W:cjbfhoxikaqaopbbwaopbbbg8Fclp:mea8FpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogapxssssssssssssssssp8Jg8Fp5b9cjF;8;4;W;G;ab9:9cU1:Nghcitpbi:q:G:cjbahRb:q:W:cjbghpsa8Fp5e9cjF;8;4;W;G;ab9:9cU1:Nggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPaaa8Fp9spkbbahaocwffagRb:q:W:cjbfhoxdkaqaopbbbpkbbaoczfhoxekaqaopbbdaoRbbghcitpbi:q:G:cjbahRb:q:W:cjbghpsaoRbeggcitpbi:q:G:cjbp9UpmbedilvorzHOACXQLpPpkbbahaocdffagRb:q:W:cjbfhokalcdfhlaiczfgiaQ6mbkkaohAaoTmoka8EaQfh8Ea5cefg5cl9hmbkdndndndnawTmbaza8Acd4fRbbglciGPlbedwbkaQTmdavcjdfa8Afhlava8Afpbdbh8Jcbhoinalavcj;cbfaofpblbg8KaYaofpblbg8LpmbzeHdOiAlCvXoQrLg8MaLaofpblbg8NaKaofpblbgypmbzeHdOiAlCvXoQrLg8PpmbezHdiOAlvCXorQLg8Fcep9Ta8Fpxeeeeeeeeeeeeeeeegap9op9Hp9rg8Fa8Jp9Ug8Jp9Abbbaladfgla8Ja8Fa8Fpmlvorlvorlvorlvorp9Ug8Jp9Abbbaladfgla8Ja8Fa8FpmwDqkwDqkwDqkwDqkp9Ug8Jp9Abbbaladfgla8Ja8Fa8FpmxmPsxmPsxmPsxmPsp9Ug8Jp9Abbbaladfgla8Ja8Ma8PpmwDKYqk8AExm35Ps8E8Fg8Fcep9Ta8Faap9op9Hp9rg8Fp9Ug8Jp9Abbbaladfgla8Ja8Fa8Fpmlvorlvorlvorlvorp9Ug8Jp9Abbbaladfgla8Ja8Fa8FpmwDqkwDqkwDqkwDqkp9Ug8Jp9Abbbaladfgla8Ja8Fa8FpmxmPsxmPsxmPsxmPsp9Ug8Jp9Abbbaladfgla8Ja8Ka8LpmwKDYq8AkEx3m5P8Es8Fg8Ka8NaypmwKDYq8AkEx3m5P8Es8Fg8LpmbezHdiOAlvCXorQLg8Fcep9Ta8Faap9op9Hp9rg8Fp9Ug8Jp9Abbbaladfgla8Ja8Fa8Fpmlvorlvorlvorlvorp9Ug8Jp9Abbbaladfgla8Ja8Fa8FpmwDqkwDqkwDqkwDqkp9Ug8Jp9Abbbaladfgla8Ja8Fa8FpmxmPsxmPsxmPsxmPsp9Ug8Jp9Abbbaladfgla8Ja8Ka8LpmwDKYqk8AExm35Ps8E8Fg8Fcep9Ta8Faap9op9Hp9rg8Fp9Ugap9Abbbaladfglaaa8Fa8Fpmlvorlvorlvorlvorp9Ugap9Abbbaladfglaaa8Fa8FpmwDqkwDqkwDqkwDqkp9Ugap9Abbbaladfglaaa8Fa8FpmxmPsxmPsxmPsxmPsp9Ug8Jp9AbbbaladfhlaoczfgoaQ6mbxikkaQTmeavcjdfa8Afhlava8Afpbdbh8Jcbhoinalavcj;cbfaofpblbg8KaYaofpblbg8LpmbzeHdOiAlCvXoQrLg8MaLaofpblbg8NaKaofpblbgypmbzeHdOiAlCvXoQrLg8PpmbezHdiOAlvCXorQLg8Fcep:nea8Fpxebebebebebebebebgap9op:bep9rg8Fa8Jp:oeg8Jp9Abbbaladfgla8Ja8Fa8Fpmlvorlvorlvorlvorp:oeg8Jp9Abbbaladfgla8Ja8Fa8FpmwDqkwDqkwDqkwDqkp:oeg8Jp9Abbbaladfgla8Ja8Fa8FpmxmPsxmPsxmPsxmPsp:oeg8Jp9Abbbaladfgla8Ja8Ma8PpmwDKYqk8AExm35Ps8E8Fg8Fcep:nea8Faap9op:bep9rg8Fp:oeg8Jp9Abbbaladfgla8Ja8Fa8Fpmlvorlvorlvorlvorp:oeg8Jp9Abbbaladfgla8Ja8Fa8FpmwDqkwDqkwDqkwDqkp:oeg8Jp9Abbbaladfgla8Ja8Fa8FpmxmPsxmPsxmPsxmPsp:oeg8Jp9Abbbaladfgla8Ja8Ka8LpmwKDYq8AkEx3m5P8Es8Fg8Ka8NaypmwKDYq8AkEx3m5P8Es8Fg8LpmbezHdiOAlvCXorQLg8Fcep:nea8Faap9op:bep9rg8Fp:oeg8Jp9Abbbaladfgla8Ja8Fa8Fpmlvorlvorlvorlvorp:oeg8Jp9Abbbaladfgla8Ja8Fa8FpmwDqkwDqkwDqkwDqkp:oeg8Jp9Abbbaladfgla8Ja8Fa8FpmxmPsxmPsxmPsxmPsp:oeg8Jp9Abbbaladfgla8Ja8Ka8LpmwDKYqk8AExm35Ps8E8Fg8Fcep:nea8Faap9op:bep9rg8Fp:oegap9Abbbaladfglaaa8Fa8Fpmlvorlvorlvorlvorp:oegap9Abbbaladfglaaa8Fa8FpmwDqkwDqkwDqkwDqkp:oegap9Abbbaladfglaaa8Fa8FpmxmPsxmPsxmPsxmPsp:oeg8Jp9AbbbaladfhlaoczfgoaQ6mbxdkkaQTmbcbhocbalcl4gl9Rc8FGhiavcjdfa8Afhrava8Afpbdbhainaravcj;cbfaofpblbg8JaYaofpblbg8KpmbzeHdOiAlCvXoQrLg8LaLaofpblbg8MaKaofpblbg8NpmbzeHdOiAlCvXoQrLgypmbezHdiOAlvCXorQLg8Faip:Rea8Falp:Tep9qg8Faap9rgap9Abbbaradfgraaa8Fa8Fpmlvorlvorlvorlvorp9rgap9Abbbaradfgraaa8Fa8FpmwDqkwDqkwDqkwDqkp9rgap9Abbbaradfgraaa8Fa8FpmxmPsxmPsxmPsxmPsp9rgap9Abbbaradfgraaa8LaypmwDKYqk8AExm35Ps8E8Fg8Faip:Rea8Falp:Tep9qg8Fp9rgap9Abbbaradfgraaa8Fa8Fpmlvorlvorlvorlvorp9rgap9Abbbaradfgraaa8Fa8FpmwDqkwDqkwDqkwDqkp9rgap9Abbbaradfgraaa8Fa8FpmxmPsxmPsxmPsxmPsp9rgap9Abbbaradfgraaa8Ja8KpmwKDYq8AkEx3m5P8Es8Fg8Ja8Ma8NpmwKDYq8AkEx3m5P8Es8Fg8KpmbezHdiOAlvCXorQLg8Faip:Rea8Falp:Tep9qg8Fp9rgap9Abbbaradfgraaa8Fa8Fpmlvorlvorlvorlvorp9rgap9Abbbaradfgraaa8Fa8FpmwDqkwDqkwDqkwDqkp9rgap9Abbbaradfgraaa8Fa8FpmxmPsxmPsxmPsxmPsp9rgap9Abbbaradfgraaa8Ja8KpmwDKYqk8AExm35Ps8E8Fg8Faip:Rea8Falp:Tep9qg8Fp9rgap9Abbbaradfgraaa8Fa8Fpmlvorlvorlvorlvorp9rgap9Abbbaradfgraaa8Fa8FpmwDqkwDqkwDqkwDqkp9rgap9Abbbaradfgraaa8Fa8FpmxmPsxmPsxmPsxmPsp9rgap9AbbbaradfhraoczfgoaQ6mbkka8Aclfg8Aad6mbkdnaCad2goTmbaOavcjdfao;8qbbkdnammbavavcjdfaCcufad2fad;8qbbkaCaHfhHc9:hoaAhPaAmbxlkkaeTmbaDalfhrcbhocuhlinaralaD9RglfaD6mdasaeao9Raoasfae6Eaofgoae6mbkaial9RhPkcbc99axaP9RakSEhoxekc9:hokavcj;kbf8Kjjjjbaokwbz:bjjjbkNsezu8Jjjjjbc;ae9Rgv8Kjjjjbc9:hodnalaeci9UgrcHf6mbcuhoaiRbbgwc;WeGc;Ge9hmbawcsGgDce0mbavc;abfcFecje;8kbav9cu83iUav9cu83i8Wav9cu83iyav9cu83iaav9cu83iKav9cu83izav9cu83iwav9cu83ibaialfc9WfhqaicefgwarfhldnaeTmbcmcsaDceSEhkcbhxcbhmcbhrcbhicbhoindnalaq9nmbc9:hoxikdndnawRbbgDc;Ve0mbavc;abfaoaDcu7gPcl4fcsGcitfgsydlhzasydbhHdndnaDcsGgsak9pmbavaiaPfcsGcdtfydbaxasEhDaxasTgOfhxxekdndnascsSmbcehOasc987asamffcefhDxekalcefhDal8SbbgscFeGhPdndnascu9mmbaDhlxekalcvfhlaPcFbGhPcrhsdninaD8SbbgOcFbGastaPVhPaOcu9kmeaDcefhDascrfgsc8J9hmbxdkkaDcefhlkcehOaPce4cbaPceG9R7amfhDkaDhmkavc;abfaocitfgsaDBdbasazBdlavaicdtfaDBdbavc;abfaocefcsGcitfgsaHBdbasaDBdlaocdfhoaOaifhidnadcd9hmbabarcetfgsaH87ebasclfaD87ebascdfaz87ebxdkabarcdtfgsaHBdbascwfaDBdbasclfazBdbxekdnaDcpe0mbavaiaqaDcsGfRbbgscl4gP9RcsGcdtfydbaxcefgOaPEhDavaias9RcsGcdtfydbaOaPTgzfgOascsGgPEhsaPThPdndnadcd9hmbabarcetfgHax87ebaHclfas87ebaHcdfaD87ebxekabarcdtfgHaxBdbaHcwfasBdbaHclfaDBdbkavaicdtfaxBdbavc;abfaocitfgHaDBdbaHaxBdlavaicefgicsGcdtfaDBdbavc;abfaocefcsGcitfgHasBdbaHaDBdlavaiazfgicsGcdtfasBdbavc;abfaocdfcsGcitfgDaxBdbaDasBdlaocifhoaiaPfhiaOaPfhxxekaxcbalRbbgsEgHaDc;:eSgDfhOascsGhAdndnascl4gCmbaOcefhzxekaOhzavaiaC9RcsGcdtfydbhOkdndnaAmbazcefhxxekazhxavaias9RcsGcdtfydbhzkdndnaDTmbalcefhDxekalcdfhDal8SbegPcFeGhsdnaPcu9kmbalcofhHascFbGhscrhldninaD8SbbgPcFbGaltasVhsaPcu9kmeaDcefhDalcrfglc8J9hmbkaHhDxekaDcefhDkasce4cbasceG9R7amfgmhHkdndnaCcsSmbaDhsxekaDcefhsaD8SbbglcFeGhPdnalcu9kmbaDcvfhOaPcFbGhPcrhldninas8SbbgDcFbGaltaPVhPaDcu9kmeascefhsalcrfglc8J9hmbkaOhsxekascefhskaPce4cbaPceG9R7amfgmhOkdndnaAcsSmbashlxekascefhlas8SbbgDcFeGhPdnaDcu9kmbascvfhzaPcFbGhPcrhDdninal8SbbgscFbGaDtaPVhPascu9kmealcefhlaDcrfgDc8J9hmbkazhlxekalcefhlkaPce4cbaPceG9R7amfgmhzkdndnadcd9hmbabarcetfgDaH87ebaDclfaz87ebaDcdfaO87ebxekabarcdtfgDaHBdbaDcwfazBdbaDclfaOBdbkavc;abfaocitfgDaOBdbaDaHBdlavaicdtfaHBdbavc;abfaocefcsGcitfgDazBdbaDaOBdlavaicefgicsGcdtfaOBdbavc;abfaocdfcsGcitfgDaHBdbaDazBdlavaiaCTaCcsSVfgicsGcdtfazBdbaiaATaAcsSVfhiaocifhokawcefhwaocsGhoaicsGhiarcifgrae6mbkkcbc99alaqSEhokavc;aef8Kjjjjbaok:clevu8Jjjjjbcz9Rhvdnalaecvf9pmbc9:skdnaiRbbc;:eGc;qeSmbcuskav9cb83iwaicefhoaialfc98fhrdnaeTmbdnadcdSmbcbhwindnaoar6mbc9:skaocefhlao8SbbgicFeGhddndnaicu9mmbalhoxekaocvfhoadcFbGhdcrhidninal8SbbgDcFbGaitadVhdaDcu9kmealcefhlaicrfgic8J9hmbxdkkalcefhokabawcdtfadc8Etc8F91adcd47avcwfadceGcdtVglydbfgiBdbalaiBdbawcefgwae9hmbxdkkcbhwindnaoar6mbc9:skaocefhlao8SbbgicFeGhddndnaicu9mmbalhoxekaocvfhoadcFbGhdcrhidninal8SbbgDcFbGaitadVhdaDcu9kmealcefhlaicrfgic8J9hmbxdkkalcefhokabawcetfadc8Etc8F91adcd47avcwfadceGcdtVglydbfgi87ebalaiBdbawcefgwae9hmbkkcbc99aoarSEk;Toio97eue97aec98Ghedndnadcl9hmbaeTmecbhdinababpbbbgicKp:RecKp:Sep;6eglaicwp:RecKp:Sep;6ealp;Geaiczp:RecKp:Sep;6egvp;Gep;Kep;Legopxbbbbbbbbbbbbbbbbp:2egralpxbbbjbbbjbbbjbbbjgwp9op9rp;Keglpxbb;:9cbb;:9cbb;:9cbb;:9calalp;Meaoaop;Meavaravawp9op9rp;Keglalp;Mep;Kep;Kep;Jep;Negvp;Mepxbbn0bbn0bbn0bbn0grp;KepxFbbbFbbbFbbbFbbbp9oaipxbbbFbbbFbbbFbbbFp9op9qalavp;Mearp;Kecwp:RepxbFbbbFbbbFbbbFbbp9op9qaoavp;Mearp;Keczp:RepxbbFbbbFbbbFbbbFbp9op9qpkbbabczfhbadclfgdae6mbxdkkaeTmbcbhdinabczfgDaDpbbbgipxbbbbbbFFbbbbbbFFgwp9oabpbbbgoaipmbediwDqkzHOAKY8AEgvczp:Reczp:Sep;6eglaoaipmlvorxmPsCXQL358E8FpxFubbFubbFubbFubbp9op;6eavczp:Sep;6egvp;Gealp;Gep;Kep;Legipxbbbbbbbbbbbbbbbbp:2egralpxbbbjbbbjbbbjbbbjgqp9op9rp;Keglpxb;:FSb;:FSb;:FSb;:FSalalp;Meaiaip;Meavaravaqp9op9rp;Keglalp;Mep;Kep;Kep;Jep;Negvp;Mepxbbn0bbn0bbn0bbn0grp;KepxFFbbFFbbFFbbFFbbp9oaiavp;Mearp;Keczp:Rep9qgialavp;Mearp;KepxFFbbFFbbFFbbFFbbp9oglpmwDKYqk8AExm35Ps8E8Fp9qpkbbabaoawp9oaialpmbezHdiOAlvCXorQLp9qpkbbabcafhbadclfgdae6mbkkk;2ileue97euo97dnaec98GgiTmbcbheinabcKfpx:ji:1S:ji:1S:ji:1S:ji:1SabpbbbglabczfgvpbbbgopmlvorxmPsCXQL358E8Fgrczp:Segwpxibbbibbbibbbibbbp9qp;6egDp;NegqaDaDp;MegDaDp;KealaopmbediwDqkzHOAKY8AEgDczp:Reczp:Sep;6eglalp;MeaDczp:Sep;6egoaop;Mearczp:Reczp:Sep;6egrarp;Mep;Kep;Kep;Lepxbbbbbbbbbbbbbbbbp:4ep;Jep;Mepxbbn0bbn0bbn0bbn0gDp;KepxFFbbFFbbFFbbFFbbgkp9oaqaop;MeaDp;Keczp:Rep9qgoaqalp;MeaDp;Keakp9oaqarp;MeaDp;Keczp:Rep9qgDpmwDKYqk8AExm35Ps8E8Fglp5eawclp:RegqpEi:T:j83ibavalp5baqpEd:T:j83ibabcwfaoaDpmbezHdiOAlvCXorQLgDp5eaqpEe:T:j83ibabaDp5baqpEb:T:j83ibabcafhbaeclfgeai6mbkkkuee97dnadcd4ae2c98GgeTmbcbhdinababpbbbgicwp:Recwp:Sep;6eaicep:SepxbbjFbbjFbbjFbbjFp9opxbbjZbbjZbbjZbbjZp:Uep;Mepkbbabczfhbadclfgdae6mbkkk:Sodw97euaec98Ghedndnadcl9hmbaeTmecbhdinabpxbbuJbbuJbbuJbbuJabpbbbgicKp:TeglaicYp:Tep9qgvcdp:Teavp9qgvclp:Teavp9qgop;6ep;Negvaicwp:RecKp:SegraipxFbbbFbbbFbbbFbbbgwp9ogDp:Uep;6ep;Mepxbbn0bbn0bbn0bbn0gqp;Kecwp:RepxbFbbbFbbbFbbbFbbp9oavaDarp:Xeaiczp:RecKp:Segip:Uep;6ep;Meaqp;Keawp9op9qavaDaraip:Uep:Xep;6ep;Meaqp;Keczp:RepxbbFbbbFbbbFbbbFbp9op9qavaoalcep:Rep9oalpxebbbebbbebbbebbbp9op9qp;6ep;Meaqp;KecKp:Rep9qpkbbabczfhbadclfgdae6mbxdkkaeTmbcbhdinabczfgkpxbFu9hbFu9hbFu9hbFu9habpbbbglakpbbbgrpmlvorxmPsCXQL358E8Fgvczp:TegqavcHp:Tep9qgicdp:Teaip9qgiclp:Teaip9qgicwp:Teaip9qgop;6ep;NegialarpmbediwDqkzHOAKY8AEgDpxFFbbFFbbFFbbFFbbglp9ograDczp:Segwp:Ueavczp:Reczp:SegDp:Xep;6ep;Mepxbbn0bbn0bbn0bbn0gvp;Kealp9oaiarawaDp:Uep:Xep;6ep;Meavp;Keczp:Rep9qgwaiaoaqcep:Rep9oaqpxebbbebbbebbbebbbp9op9qp;6ep;Meavp;Keczp:ReaiaDarp:Uep;6ep;Meavp;Kealp9op9qgipmwDKYqk8AExm35Ps8E8FpkbbabawaipmbezHdiOAlvCXorQLpkbbabcafhbadclfgdae6mbkkk9teiucbcbydj:G:cjbgeabcifc98GfgbBdj:G:cjbdndnabZbcztgd9nmbcuhiabad9RcFFifcz4nbcuSmekaehikaikkxebcj:Gdklz:zbb`,G=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),w=new Uint8Array([32,0,65,2,1,106,34,33,3,128,11,4,13,64,6,253,10,7,15,116,127,5,8,12,40,16,19,54,20,9,27,255,113,17,42,67,24,23,146,148,18,14,22,45,70,69,56,114,101,21,25,63,75,136,108,28,118,29,73,115]);if(typeof WebAssembly!=`object`)return{supported:!1};var j=WebAssembly.validate(G)?t(D):t(q),i,F=WebAssembly.instantiate(j,{}).then(function(c){i=c.instance,i.exports.__wasm_call_ctors()});function t(c){for(var a=new Uint8Array(c.length),e=0;e<c.length;++e){var b=c.charCodeAt(e);a[e]=b>96?b-97:b>64?b-39:b+4}for(var d=0,e=0;e<c.length;++e)a[d++]=a[e]<60?w[a[e]]:(a[e]-60)*64+a[++e];return a.buffer.slice(0,d)}function h(c,a,e,b,d,p,l){var o=c.exports.sbrk,k=b+3&-4,f=o(k*d),s=o(p.length),x=new Uint8Array(c.exports.memory.buffer);x.set(p,s);var n=a(f,b,d,s,p.length);if(n==0&&l&&l(f,k,d),e.set(x.subarray(f,f+b*d)),o(f-o(0)),n!=0)throw new Error(`Malformed buffer data: `+n)}var r={NONE:``,OCTAHEDRAL:`meshopt_decodeFilterOct`,QUATERNION:`meshopt_decodeFilterQuat`,EXPONENTIAL:`meshopt_decodeFilterExp`,COLOR:`meshopt_decodeFilterColor`},m={ATTRIBUTES:`meshopt_decodeVertexBuffer`,TRIANGLES:`meshopt_decodeIndexBuffer`,INDICES:`meshopt_decodeIndexSequence`},g=[],R=0;function K(c){var a={object:new Worker(c),pending:0,requests:{}};return a.object.onmessage=function(e){var b=e.data;a.pending-=b.count,a.requests[b.id][b.action](b.value),delete a.requests[b.id]},a}function J(c){for(var a=`self.ready = WebAssembly.instantiate(new Uint8Array([`+new Uint8Array(j)+`]), {}).then(function(result) { result.instance.exports.__wasm_call_ctors(); return result.instance; });self.onmessage = `+v.name+`;`+h.toString()+v.toString(),e=new Blob([a],{type:`text/javascript`}),b=URL.createObjectURL(e),d=g.length;d<c;++d)g[d]=K(b);for(var d=c;d<g.length;++d)g[d].object.postMessage({});g.length=c,URL.revokeObjectURL(b)}function u(c,a,e,b,d){for(var p=g[0],l=1;l<g.length;++l)g[l].pending<p.pending&&(p=g[l]);return new Promise(function(o,k){var f=new Uint8Array(e),s=++R;p.pending+=c,p.requests[s]={resolve:o,reject:k},p.object.postMessage({id:s,count:c,size:a,source:f,mode:b,filter:d},[f.buffer])})}function v(c){var a=c.data;self.ready.then(function(e){if(!a.id)return self.close();try{var b=new Uint8Array(a.count*a.size);h(e,e.exports[a.mode],b,a.count,a.size,a.source,e.exports[a.filter]),self.postMessage({id:a.id,count:a.count,action:`resolve`,value:b},[b.buffer])}catch(d){self.postMessage({id:a.id,count:a.count,action:`reject`,value:d})}})}return{ready:F,supported:!0,useWorkers:function(c){J(c)},decodeVertexBuffer:function(c,a,e,b,d){h(i,i.exports.meshopt_decodeVertexBuffer,c,a,e,b,i.exports[r[d]])},decodeIndexBuffer:function(c,a,e,b){h(i,i.exports.meshopt_decodeIndexBuffer,c,a,e,b)},decodeIndexSequence:function(c,a,e,b){h(i,i.exports.meshopt_decodeIndexSequence,c,a,e,b)},decodeGltfBuffer:function(c,a,e,b,d,p){h(i,i.exports[m[d]],c,a,e,b,i.exports[r[p]])},decodeGltfBufferAsync:function(c,a,e,b,d){return g.length>0?u(c,a,e,m[b],r[d]):F.then(function(){var p=new Uint8Array(c*a);return h(i,i.exports[m[b]],p,c,a,e,i.exports[r[d]]),p})}}})();export{A as MeshoptDecoder};
2
+ //# debugId=b58b8cfb-c3a7-5982-ad66-1aafdd0f6e11
@@ -0,0 +1,13 @@
1
+ import{i as u,n as s,t as r}from"./main.js";var V=globalThis;globalThis.document;var K=globalThis.process||{};globalThis.console;var mt=globalThis.navigator||{};function Z(r){if(typeof window<`u`&&window.process?.type===`renderer`||typeof process<`u`&&process.versions?.electron)return!0;let e=typeof navigator<`u`&&navigator.userAgent,t=r||e;return!!(t&&t.indexOf(`Electron`)>=0)}function y(){return!(typeof process==`object`&&String(process)===`[object process]`&&!process?.browser)||Z()}function sr(r){return!r&&!y()?`Node`:Z(r)?`Electron`:(r||mt.userAgent||``).indexOf(`Edge`)>-1?`Edge`:globalThis.chrome?`Chrome`:globalThis.safari?`Safari`:globalThis.mozInnerScreenX?`Firefox`:`Unknown`}var _e=`4.1.2`;function G(r,e){if(!r)throw new Error(e||`Assertion failed`)}function xe(r){if(!r)return 0;let e;switch(typeof r){case`number`:e=r;break;case`object`:e=r.logLevel||r.priority||0;break;default:return 0}return G(Number.isFinite(e)&&e>=0),e}function pt(r){let{logLevel:e,message:t}=r;r.logLevel=xe(e);let i=r.args?Array.from(r.args):[];for(;i.length&&i.shift()!==t;);switch(typeof e){case`string`:case`function`:t!==void 0&&i.unshift(t),r.message=e;break;case`object`:Object.assign(r,e)}typeof r.message==`function`&&(r.message=r.message());let s=typeof r.message;return G(s===`string`||s===`object`),Object.assign(r,{args:i},r.opts)}var M=()=>{};var ee=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...t){return this._log(`warn`,0,e,t,{once:!0})}error(e,...t){return this._log(`error`,0,e,t)}log(e,t,...i){return this._log(`log`,e,t,i)}info(e,t,...i){return this._log(`info`,e,t,i)}once(e,t,...i){return this._log(`once`,e,t,i,{once:!0})}_log(e,t,i,s,n={}){let o=pt({logLevel:t,message:i,args:this._buildArgs(t,i,s),opts:n});return this._createLogFunction(e,o,n)}_buildArgs(e,t,i){return[e,t,...i]}_createLogFunction(e,t,i){if(!this._shouldLog(t.logLevel))return M;let s=this._getOnceTag(i.tag??t.tag??t.message);if((i.once||t.once)&&s!==void 0){if(this._onceCache.has(s))return M;this._onceCache.add(s)}return this._emit(e,t)}_shouldLog(e){return this.getLevel()>=xe(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e==`string`?e:String(e)}catch{return}}};function or(r){try{let e=window[r],t=`__storage_test__`;return e.setItem(t,t),e.removeItem(t),e}catch{return null}}var te=class{constructor(e,t,i=`sessionStorage`){this.storage=or(i),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){let t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function gt(r){let e;return r<10?e=`${r.toFixed(2)}ms`:r<100?e=`${r.toFixed(1)}ms`:r<1e3?e=`${r.toFixed(0)}ms`:e=`${(r/1e3).toFixed(2)}s`,e}function bt(r,e=8){let t=Math.max(e-r.length,0);return`${` `.repeat(t)}${r}`}var re;(function(r){r[r.BLACK=30]=`BLACK`,r[r.RED=31]=`RED`,r[r.GREEN=32]=`GREEN`,r[r.YELLOW=33]=`YELLOW`,r[r.BLUE=34]=`BLUE`,r[r.MAGENTA=35]=`MAGENTA`,r[r.CYAN=36]=`CYAN`,r[r.WHITE=37]=`WHITE`,r[r.BRIGHT_BLACK=90]=`BRIGHT_BLACK`,r[r.BRIGHT_RED=91]=`BRIGHT_RED`,r[r.BRIGHT_GREEN=92]=`BRIGHT_GREEN`,r[r.BRIGHT_YELLOW=93]=`BRIGHT_YELLOW`,r[r.BRIGHT_BLUE=94]=`BRIGHT_BLUE`,r[r.BRIGHT_MAGENTA=95]=`BRIGHT_MAGENTA`,r[r.BRIGHT_CYAN=96]=`BRIGHT_CYAN`,r[r.BRIGHT_WHITE=97]=`BRIGHT_WHITE`})(re||(re={}));var ar=10;function yt(r){return typeof r!=`string`?r:(r=r.toUpperCase(),re[r]||re.WHITE)}function Et(r,e,t){return!y&&typeof r==`string`&&(e&&(r=`\x1B[${yt(e)}m${r}\x1B[39m`),t&&(r=`\x1B[${yt(t)+ar}m${r}\x1B[49m`)),r}function _t(r,e=[`constructor`]){let t=Object.getPrototypeOf(r),i=Object.getOwnPropertyNames(t),s=r;for(let n of i){let o=s[n];typeof o==`function`&&(e.find(c=>n===c)||(s[n]=o.bind(r)))}}var ie=class{getHighResolutionTimer(){let e;if(y()&&V.performance)e=V?.performance?.now?.();else if(`hrtime`in K){let t=K?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}getMemoryUsageMB(){let t=V?.performance?.memory?.usedJSHeapSize;return t==null?null:Math.trunc(t/1024/1024)}};var T=new ie;globalThis.Probe=ie;globalThis.probe=T;var O={debug:y()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error};var Te={enabled:!0,level:0};var v=class extends ee{constructor({id:e}={id:``}){super({level:0}),this.VERSION=_e,this._startTs=T.getHighResolutionTimer(),this._deltaTs=T.getHighResolutionTimer(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new te(`__probe-${this.id}__`,{[this.id]:Te}),this.timeStamp(`${this.id} started`),_t(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((T.getHighResolutionTimer()-this._startTs).toPrecision(10))}getDelta(){return Number((T.getHighResolutionTimer()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,t){this._updateConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||`Assertion failed`)}warn(e,...t){return this._log(`warn`,0,e,t,{method:O.warn,once:!0})}error(e,...t){return this._log(`error`,0,e,t,{method:O.error})}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t,...i){let s=T.getMemoryUsageMB();if(s!==null){let n=`${s}MB `;typeof t==`function`?t=()=>`${n}${t()}`:typeof t==`string`&&(t=`${n}${t}`)}return this._log(`log`,e,t,i,{method:O.log,time:!0,once:!0})}log(e,t,...i){return this._log(`log`,e,t,i,{method:O.debug})}info(e,t,...i){return this._log(`info`,e,t,i,{method:console.info})}once(e,t,...i){return this._log(`once`,e,t,i,{method:O.debug||O.info,once:!0})}table(e,t,i){return t?this._log(`table`,e,t,i&&[i]||[],{method:console.table||M,tag:ur(t)}):M}time(e,t){return this._log(`time`,e,t,[],{method:console.time?console.time:console.info})}timeEnd(e,t){return this._log(`time`,e,t,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,t){return this._log(`time`,e,t,[],{method:console.timeStamp||M})}group(e,t,i={collapsed:!1}){let s=(i.collapsed?console.groupCollapsed:console.group)||console.info;return this._log(`group`,e,t,[],{method:s})}groupCollapsed(e,t,i={}){return this.group(e,t,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._log(`groupEnd`,e,``,[],{method:console.groupEnd||M})}withGroup(e,t,i){this.group(e,t)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,t){let i=t.method;G(i),t.total=this.getTotal(),t.delta=this.getDelta(),this._deltaTs=T.getHighResolutionTimer();let s=cr(this.id,t.message,t);return i.bind(console,s,...t.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Te),this._storage.config[this.id]}_updateConfiguration(e){let t=this._storage.config[this.id]||r({},Te);this._storage.setConfiguration({[this.id]:r(r({},t),e)})}};v.VERSION=_e;function cr(r,e,t){if(typeof e==`string`){let i=t.time?bt(gt(t.total)):``;e=t.time?`${r}: ${i} ${e}`:`${r}: ${e}`,e=Et(e,t.color,t.background)}return e}function ur(r){for(let e in r)for(let t in r[e])return t||`untitled`;return`empty`}globalThis.probe||(globalThis.probe=T);var ys=new v({id:`@probe.gl/log`});var f=new v({id:`luma.gl`});function j(){let r;if(typeof window<`u`&&window.performance)r=window.performance.now();else if(typeof process<`u`&&process.hrtime){let e=process.hrtime();r=e[0]*1e3+e[1]/1e6}else r=Date.now();return r}var W=class{constructor(e,t){this.sampleSize=1,this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this.name=e,this.type=t,this.reset()}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}setSampleSize(e){return this.sampleSize=e,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(e){return this._count+=e,this._samples++,this._checkSampling(),this}subtractCount(e){return this._count-=e,this._samples++,this._checkSampling(),this}addTime(e){return this._time+=e,this.lastTiming=e,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=j(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(j()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}};var N=class{constructor(e){this.stats={},this.id=e.id,this.stats={},this._initializeStats(e.stats),Object.seal(this)}get(e,t=`count`){return this._getOrCreate({name:e,type:t})}get size(){return Object.keys(this.stats).length}reset(){for(let e of Object.values(this.stats))e.reset();return this}forEach(e){for(let t of Object.values(this.stats))e(t)}getTable(){let e={};return this.forEach(t=>{e[t.name]={time:t.time||0,count:t.count||0,average:t.getAverageTime()||0,hz:t.getHz()||0}}),e}_initializeStats(e=[]){e.forEach(t=>this._getOrCreate(t))}_getOrCreate(e){let{name:t,type:i}=e,s=this.stats[t];return s||(e instanceof W?s=e:s=new W(t,i),this.stats[t]=s),s}};var fr=`GPU Time and Memory`;var lr=[`Adapter`,`GPU`,`GPU Type`,`GPU Backend`,`Frame Rate`,`CPU Time`,`GPU Time`,`GPU Memory`,`Buffer Memory`,`Texture Memory`,`External Buffer Memory`,`External Texture Memory`,`Swap Chain Texture`];var xt=new WeakMap;var Tt=new WeakMap;var we=class{stats=new Map;getStats(e){return this.get(e)}get(e){this.stats.has(e)||this.stats.set(e,new N({id:e}));let t=this.stats.get(e);return e===fr&&dr(t,lr),t}};var se=new we;function dr(r,e){let t=r.stats,i=!1;for(let u of e)t[u]||(r.get(u),i=!0);let s=Object.keys(t).length,n=xt.get(r);if(!i&&n?.orderedStatNames===e&&n.statCount===s)return;let o={},c=Tt.get(e);c||(c=new Set(e),Tt.set(e,c));for(let u of e)t[u]&&(o[u]=t[u]);for(let[u,h]of Object.entries(t))c.has(u)||(o[u]=h);for(let u of Object.keys(t))delete t[u];Object.assign(t,o),xt.set(r,{orderedStatNames:e,statCount:s})}var Pe={};function w(r=`id`){Pe[r]=Pe[r]||1;return`${r}-${Pe[r]++}`}var hr=`cpu-hotspot-profiler`;var wt=`GPU Resource Counts`;var Pt=`Resource Counts`;var St=`GPU Time and Memory`;var mr=[`Resources`,`Buffers`,`Textures`,`Samplers`,`TextureViews`,`Framebuffers`,`QuerySets`,`Shaders`,`RenderPipelines`,`ComputePipelines`,`PipelineLayouts`,`VertexArrays`,`RenderPasss`,`RenderBundleEncoders`,`RenderBundles`,`ComputePasss`,`CommandEncoders`,`CommandBuffers`];var pr=[`Resources`,`Buffers`,`Textures`,`Samplers`,`TextureViews`,`Framebuffers`,`QuerySets`,`Shaders`,`RenderPipelines`,`SharedRenderPipelines`,`ComputePipelines`,`PipelineLayouts`,`VertexArrays`,`RenderPasss`,`RenderBundleEncoders`,`RenderBundles`,`ComputePasss`,`CommandEncoders`,`CommandBuffers`];var gr=mr.flatMap(r=>[`${r} Created`,`${r} Active`]);var br=pr.flatMap(r=>[`${r} Created`,`${r} Active`]);var Rt=new WeakMap;var vt=new WeakMap;var l=class{static defaultProps={id:`undefined`,handle:void 0,_isHandleBorrowed:!1,userData:void 0};toString(){return`${this[Symbol.toStringTag]||this.constructor.name}:"${this.id}"`}toJSON(){return this.toString()}id;props;userData={};_device;destroyed=!1;allocatedBytes=0;allocatedBytesName=null;_attachedResources=new Set;get ownsHandle(){return(this.props.handle===void 0||this.props.handle===null)&&!this.isHandleBorrowed}get isHandleBorrowed(){return!!this.props._isHandleBorrowed}constructor(e,t,i){if(!e)throw new Error(`no device`);this._device=e,this.props=yr(t,i);let s=this.props.id!==`undefined`?this.props.id:w(this[Symbol.toStringTag]);this.props.id=s,this.id=s,this.userData=this.props.userData||{},this.addStats()}destroy(){this.destroyed||this.destroyResource()}delete(){return this.destroy(),this}getProps(){return this.props}attachResource(e){this._attachedResources.add(e)}detachResource(e){this._attachedResources.delete(e)}destroyAttachedResource(e){this._attachedResources.delete(e)&&e.destroy()}destroyAttachedResources(){for(let e of this._attachedResources)e.destroy();this._attachedResources=new Set}destroyResource(){this.destroyed||(this.destroyAttachedResources(),this.removeStats(),this.destroyed=!0)}removeStats(){let e=Q(this._device),t=e?A():0,i=[this._device.statsManager.getStats(wt),this._device.statsManager.getStats(Pt)],s=Bt(this._device);for(let o of i)Ct(o,s);let n=this.getStatsName();for(let o of i)o.get(`Resources Active`).decrementCount(),o.get(`${n}s Active`).decrementCount();e&&(e.statsBookkeepingCalls=(e.statsBookkeepingCalls||0)+1,e.statsBookkeepingTimeMs=(e.statsBookkeepingTimeMs||0)+(A()-t))}trackAllocatedMemory(e,t=this.getStatsName()){let i=Q(this._device),s=i?A():0,n=this._device.statsManager.getStats(St);this.allocatedBytes>0&&this.allocatedBytesName&&(n.get(`GPU Memory`).subtractCount(this.allocatedBytes),n.get(`${this.allocatedBytesName} Memory`).subtractCount(this.allocatedBytes)),n.get(`GPU Memory`).addCount(e),n.get(`${t} Memory`).addCount(e),i&&(i.statsBookkeepingCalls=(i.statsBookkeepingCalls||0)+1,i.statsBookkeepingTimeMs=(i.statsBookkeepingTimeMs||0)+(A()-s)),this.allocatedBytes=e,this.allocatedBytesName=t}trackReferencedMemory(e,t=this.getStatsName()){this.trackAllocatedMemory(e,`External ${t}`)}trackDeallocatedMemory(e=this.getStatsName()){if(this.allocatedBytes===0){this.allocatedBytesName=null;return}let t=Q(this._device),i=t?A():0,s=this._device.statsManager.getStats(St);s.get(`GPU Memory`).subtractCount(this.allocatedBytes),s.get(`${this.allocatedBytesName||e} Memory`).subtractCount(this.allocatedBytes),t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(A()-i)),this.allocatedBytes=0,this.allocatedBytesName=null}trackDeallocatedReferencedMemory(e=this.getStatsName()){this.trackDeallocatedMemory(`Referenced ${e}`)}addStats(){let e=this.getStatsName(),t=Q(this._device),i=t?A():0,s=[this._device.statsManager.getStats(wt),this._device.statsManager.getStats(Pt)],n=Bt(this._device);for(let o of s)Ct(o,n);for(let o of s)o.get(`Resources Created`).incrementCount(),o.get(`Resources Active`).incrementCount(),o.get(`${e}s Created`).incrementCount(),o.get(`${e}s Active`).incrementCount();t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(A()-i)),Er(this._device,e)}getStatsName(){return _r(this)}};function yr(r$1,e){let t=r({},e);for(let i in r$1)r$1[i]!==void 0&&(t[i]=r$1[i]);return t}function Ct(r,e){let t=r.stats,i=!1;for(let u of e)t[u]||(r.get(u),i=!0);let s=Object.keys(t).length,n=Rt.get(r);if(!i&&n?.orderedStatNames===e&&n.statCount===s)return;let o={},c=vt.get(e);c||(c=new Set(e),vt.set(e,c));for(let u of e)t[u]&&(o[u]=t[u]);for(let[u,h]of Object.entries(t))c.has(u)||(o[u]=h);for(let u of Object.keys(t))delete t[u];Object.assign(t,o),Rt.set(r,{orderedStatNames:e,statCount:s})}function Bt(r){return r.type===`webgl`?br:gr}function Q(r){let e=r.userData[hr];return e?.enabled?e:null}function A(){return globalThis.performance?.now?.()??Date.now()}function Er(r,e){let t=Q(r);if(!(!t||!t.activeDefaultFramebufferAcquireDepth))switch(t.transientCanvasResourceCreates=(t.transientCanvasResourceCreates||0)+1,e){case`Texture`:t.transientCanvasTextureCreates=(t.transientCanvasTextureCreates||0)+1;break;case`TextureView`:t.transientCanvasTextureViewCreates=(t.transientCanvasTextureViewCreates||0)+1;break;case`Sampler`:t.transientCanvasSamplerCreates=(t.transientCanvasSamplerCreates||0)+1;break;case`Framebuffer`:t.transientCanvasFramebufferCreates=(t.transientCanvasFramebufferCreates||0)+1}}function _r(r){let e=Object.getPrototypeOf(r);for(;e;){let t=Object.getPrototypeOf(e);if(!t||t===l.prototype)return xr(e)||r[Symbol.toStringTag]||r.constructor.name;e=t}return r[Symbol.toStringTag]||r.constructor.name}function xr(r){let e=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag);return typeof e?.get==`function`?e.get.call(r):typeof e?.value==`string`?e.value:null}var P=class r$2 extends l{static INDEX=16;static VERTEX=32;static UNIFORM=64;static STORAGE=128;static INDIRECT=256;static QUERY_RESOLVE=512;static MAP_READ=1;static MAP_WRITE=2;static COPY_SRC=4;static COPY_DST=8;get[Symbol.toStringTag](){return`Buffer`}usage;indexType;updateTimestamp;constructor(e,t){let i=r({},t);(t.usage||0)&r$2.INDEX&&!t.indexType&&(t.data instanceof Uint32Array?i.indexType=`uint32`:t.data instanceof Uint16Array?i.indexType=`uint16`:t.data instanceof Uint8Array&&(i.indexType=`uint8`)),delete i.data,super(e,i,r$2.defaultProps),this.usage=i.usage||0,this.indexType=i.indexType,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createBuffer(r(r({},this.props),e))}static DEBUG_DATA_MAX_LENGTH=32;debugData=new ArrayBuffer(0);_setDebugData(e,t,i){if(!this.device.props.debug)return;let s=null,n;ArrayBuffer.isView(e)?(s=e,n=e.buffer):n=e;let o=Math.min(e?e.byteLength:i,r$2.DEBUG_DATA_MAX_LENGTH);if(n===null)this.debugData=new ArrayBuffer(o);else{let c=Math.min(s?.byteOffset||0,n.byteLength),u=Math.max(0,n.byteLength-c),h=Math.min(o,u);this.debugData=new Uint8Array(n,c,h).slice().buffer}}static defaultProps=s(r({},l.defaultProps),{handle:void 0,usage:0,byteLength:0,byteOffset:0,data:null,indexType:`uint16`,onMapped:void 0})};var Se=globalThis.Float16Array;function At(){return Se??Uint16Array}function Lt(r){return!!(Se&&r===Se)}function Dt(r){let e=r.includes(`norm`),t=!e&&!r.startsWith(`float`),i=r.startsWith(`s`),[n,o,c]=ve[r]||[`uint8 `,`i32`,1];return{signedType:n,primitiveType:o,byteLength:c,normalized:e,integer:t,signed:i}}function Ut(r){let e=r;switch(e){case`uint8`:return`unorm8`;case`sint8`:return`snorm8`;case`uint16`:return`unorm16`;case`sint16`:return`snorm16`;default:return e}}function _(r,e){switch(e){case 1:return r;case 2:return r+r%2;default:return r+(4-r%4)%4}}function It(r){let e=ArrayBuffer.isView(r)?r.constructor:r;if(Lt(e))return`float16`;if(e===Uint8ClampedArray)return`uint8`;let t=Object.values(ve).find(i=>e===i[4]);if(!t)throw new Error(e.name);return t[0]}function Mt(r){return It(r)}function Wt(r){if(r===`float16`)return At();let e=ve[r];if(!e)throw new Error(r);let[,,,,t]=e;return t}function Re(r){return Wt(r)}var ve={uint8:[`uint8`,`u32`,1,!1,Uint8Array],sint8:[`sint8`,`i32`,1,!1,Int8Array],unorm8:[`uint8`,`f32`,1,!0,Uint8Array],snorm8:[`sint8`,`f32`,1,!0,Int8Array],uint16:[`uint16`,`u32`,2,!1,Uint16Array],sint16:[`sint16`,`i32`,2,!1,Int16Array],unorm16:[`uint16`,`u32`,2,!0,Uint16Array],snorm16:[`sint16`,`i32`,2,!0,Int16Array],float16:[`float16`,`f16`,2,!1,Uint16Array],float32:[`float32`,`f32`,4,!1,Float32Array],uint32:[`uint32`,`u32`,4,!1,Uint32Array],sint32:[`sint32`,`i32`,4,!1,Int32Array]};var Ce=class{getDataTypeInfo(e){return Dt(e)}getNormalizedDataType(e){return Ut(e)}alignTo(e,t){return _(e,t)}getDataType(e){return Mt(e)}getTypedArrayConstructor(e){return Re(e)}};var $=new Ce;var Be=class{getVertexFormatInfo(e){if(e===`unorm10-10-10-2`)return{type:`unorm8`,components:4,byteLength:4,integer:!1,signed:!1,normalized:!0};let t=e===`unorm8x4-bgra`?`unorm8x4`:e,i;t.endsWith(`-webgl`)&&(t=t.slice(0,-6),i=!0);let s=t.split(`x`);if(s.length>2)throw new Error(`Unsupported vertex format: ${e}`);let[n,o]=s,c=n,u=wr(e,o),h=Tr(e,c),p;try{p=i?Pr(e,c,u):this.makeVertexFormat(h.signedType,u,h.normalized)}catch{throw new Error(`Unsupported vertex format: ${e}`)}if(p!==(i?e:t))throw new Error(`Unsupported vertex format: ${e}`);let g={type:c,components:u,byteLength:h.byteLength*u,integer:h.integer,signed:h.signed,normalized:h.normalized};return i&&(g.webglOnly=!0),g}makeVertexFormat(e,t,i){let s=i?$.getNormalizedDataType(e):e;switch(s){case`unorm8`:return t===1?`unorm8`:t===3?`unorm8x3-webgl`:`${s}x${t}`;case`snorm8`:return t===1?`snorm8`:t===3?`snorm8x3-webgl`:`${s}x${t}`;case`uint8`:case`sint8`:if(t===3)throw new Error(`size: ${t}`);return t===1?s:`${s}x${t}`;case`uint16`:return t===1?`uint16`:t===3?`uint16x3-webgl`:`${s}x${t}`;case`sint16`:return t===1?`sint16`:t===3?`sint16x3-webgl`:`${s}x${t}`;case`unorm16`:return t===1?`unorm16`:t===3?`unorm16x3-webgl`:`${s}x${t}`;case`snorm16`:return t===1?`snorm16`:t===3?`snorm16x3-webgl`:`${s}x${t}`;case`float16`:if(t===3)throw new Error(`size: ${t}`);return t===1?s:`${s}x${t}`;default:return t===1?s:`${s}x${t}`}}getVertexFormatFromAttribute(e,t,i){if(!t||t>4)throw new Error(`size ${t}`);let s=t,n=$.getDataType(e);return this.makeVertexFormat(n,s,i)}getCompatibleVertexFormat(e){let t;switch(e.primitiveType){case`f32`:t=`float32`;break;case`i32`:t=`sint32`;break;case`u32`:t=`uint32`;break;case`f16`:return e.components<=2?`float16x2`:`float16x4`}return e.components===1?t:`${t}x${e.components}`}};var S=new Be;function Tr(r,e){try{return $.getDataTypeInfo(e)}catch{throw new Error(`Unsupported vertex format: ${r}`)}}function wr(r,e){if(!e)return 1;let t=Number(e);if(t===2||t===3||t===4)return t;throw new Error(`Unsupported vertex format: ${r}`)}function Pr(r,e,t){if(t!==3)throw new Error(`Unsupported vertex format: ${r}`);switch(e){case`uint8`:case`sint8`:case`unorm8`:case`snorm8`:case`uint16`:case`sint16`:case`unorm16`:case`snorm16`:return`${e}x3-webgl`;default:throw new Error(`Unsupported vertex format: ${r}`)}}var b=`texture-compression-bc`;var m=`texture-compression-astc`;var R=`texture-compression-etc2`;var Sr=`texture-compression-etc1-webgl`;var ne=`texture-compression-pvrtc-webgl`;var Ae=`texture-compression-atc-webgl`;var oe=`float32-renderable-webgl`;var Le=`float16-renderable-webgl`;var Rr=`rgb9e5ufloat-renderable-webgl`;var De=`snorm8-renderable-webgl`;var L=`norm16-webgl`;var Ue=`norm16-renderable-webgl`;var Ie=`snorm16-renderable-webgl`;var ae=`float32-filterable`;var $t=`float16-filterable-webgl`;function ce(r){let e=Ot[r];if(!e)throw new Error(`Unsupported texture format ${r}`);return e}function Gt(){return Ot}var vr={r8unorm:{webgpu:527},rg8unorm:{webgpu:527},"rgb8unorm-webgl":{},rgba8unorm:{webgpu:31},"rgba8unorm-srgb":{webgpu:15},r8snorm:{render:De,webgpu:837},rg8snorm:{render:De,webgpu:837},"rgb8snorm-webgl":{},rgba8snorm:{render:De,webgpu:341},r8uint:{webgpu:515},rg8uint:{webgpu:515},rgba8uint:{webgpu:19},r8sint:{webgpu:515},rg8sint:{webgpu:515},rgba8sint:{webgpu:19},bgra8unorm:{webgpu:15},"bgra8unorm-srgb":{webgpu:15360},r16unorm:{f:L,render:Ue,webgpu:992},rg16unorm:{f:L,render:Ue,webgpu:992},"rgb16unorm-webgl":{f:L,render:!1},rgba16unorm:{f:L,render:Ue,webgpu:992},r16snorm:{f:L,render:Ie,webgpu:992},rg16snorm:{f:L,render:Ie,webgpu:992},"rgb16snorm-webgl":{f:L,render:!1},rgba16snorm:{f:L,render:Ie,webgpu:992},r16uint:{webgpu:515},rg16uint:{webgpu:515},rgba16uint:{webgpu:19},r16sint:{webgpu:515},rg16sint:{webgpu:515},rgba16sint:{webgpu:19},r16float:{render:Le,filter:`float16-filterable-webgl`,webgpu:527},rg16float:{render:Le,filter:$t,webgpu:527},rgba16float:{render:Le,filter:$t,webgpu:31},r32uint:{webgpu:19},rg32uint:{webgpu:16387},rgba32uint:{webgpu:19},r32sint:{webgpu:19},rg32sint:{webgpu:16387},rgba32sint:{webgpu:19},r32float:{render:oe,filter:ae,webgpu:19},rg32float:{render:!1,filter:ae,webgpu:16387},"rgb32float-webgl":{render:oe,filter:ae},rgba32float:{render:oe,filter:ae,webgpu:19},"rgba4unorm-webgl":{channels:`rgba`,bitsPerChannel:[4,4,4,4],packed:!0},"rgb565unorm-webgl":{channels:`rgb`,bitsPerChannel:[5,6,5,0],packed:!0},"rgb5a1unorm-webgl":{channels:`rgba`,bitsPerChannel:[5,5,5,1],packed:!0},rgb9e5ufloat:{channels:`rgb`,packed:!0,render:Rr,webgpu:5},rg11b10ufloat:{channels:`rgb`,bitsPerChannel:[11,11,10,0],packed:!0,p:1,render:oe,webgpu:517},rgb10a2unorm:{channels:`rgba`,bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:527},rgb10a2uint:{channels:`rgba`,bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:515},stencil8:{attachment:`stencil`,bitsPerChannel:[8,0,0,0],dataType:`uint8`,webgpu:3},depth16unorm:{attachment:`depth`,bitsPerChannel:[16,0,0,0],dataType:`uint16`,webgpu:3},depth24plus:{attachment:`depth`,bitsPerChannel:[24,0,0,0],dataType:`uint32`,webgpu:3},depth32float:{attachment:`depth`,bitsPerChannel:[32,0,0,0],dataType:`float32`,webgpu:3},"depth24plus-stencil8":{attachment:`depth-stencil`,bitsPerChannel:[24,8,0,0],packed:!0,webgpu:3},"depth32float-stencil8":{attachment:`depth-stencil`,bitsPerChannel:[32,8,0,0],packed:!0,f:`depth32float-stencil8`,webgpu:3}};var Cr={"bc1-rgb-unorm-webgl":{f:b},"bc1-rgb-unorm-srgb-webgl":{f:b},"bc1-rgba-unorm":{f:b},"bc1-rgba-unorm-srgb":{f:b},"bc2-rgba-unorm":{f:b},"bc2-rgba-unorm-srgb":{f:b},"bc3-rgba-unorm":{f:b},"bc3-rgba-unorm-srgb":{f:b},"bc4-r-unorm":{f:b},"bc4-r-snorm":{f:b},"bc5-rg-unorm":{f:b},"bc5-rg-snorm":{f:b},"bc6h-rgb-ufloat":{f:b},"bc6h-rgb-float":{f:b},"bc7-rgba-unorm":{f:b},"bc7-rgba-unorm-srgb":{f:b},"etc2-rgb8unorm":{f:R},"etc2-rgb8unorm-srgb":{f:R},"etc2-rgb8a1unorm":{f:R},"etc2-rgb8a1unorm-srgb":{f:R},"etc2-rgba8unorm":{f:R},"etc2-rgba8unorm-srgb":{f:R},"eac-r11unorm":{f:R},"eac-r11snorm":{f:R},"eac-rg11unorm":{f:R},"eac-rg11snorm":{f:R},"astc-4x4-unorm":{f:m},"astc-4x4-unorm-srgb":{f:m},"astc-5x4-unorm":{f:m},"astc-5x4-unorm-srgb":{f:m},"astc-5x5-unorm":{f:m},"astc-5x5-unorm-srgb":{f:m},"astc-6x5-unorm":{f:m},"astc-6x5-unorm-srgb":{f:m},"astc-6x6-unorm":{f:m},"astc-6x6-unorm-srgb":{f:m},"astc-8x5-unorm":{f:m},"astc-8x5-unorm-srgb":{f:m},"astc-8x6-unorm":{f:m},"astc-8x6-unorm-srgb":{f:m},"astc-8x8-unorm":{f:m},"astc-8x8-unorm-srgb":{f:m},"astc-10x5-unorm":{f:m},"astc-10x5-unorm-srgb":{f:m},"astc-10x6-unorm":{f:m},"astc-10x6-unorm-srgb":{f:m},"astc-10x8-unorm":{f:m},"astc-10x8-unorm-srgb":{f:m},"astc-10x10-unorm":{f:m},"astc-10x10-unorm-srgb":{f:m},"astc-12x10-unorm":{f:m},"astc-12x10-unorm-srgb":{f:m},"astc-12x12-unorm":{f:m},"astc-12x12-unorm-srgb":{f:m},"pvrtc-rgb4unorm-webgl":{f:ne},"pvrtc-rgba4unorm-webgl":{f:ne},"pvrtc-rgb2unorm-webgl":{f:ne},"pvrtc-rgba2unorm-webgl":{f:ne},"etc1-rbg-unorm-webgl":{f:Sr},"atc-rgb-unorm-webgl":{f:Ae},"atc-rgba-unorm-webgl":{f:Ae},"atc-rgbai-unorm-webgl":{f:Ae}};var Ot=r(r({},vr),Cr);var Br=/^(r|rg|rgb|rgba|bgra)([0-9]*)([a-z]*)(-srgb)?(-webgl)?$/;var Ar=[`rgb`,`rgba`,`bgra`];var Lr=[`depth`,`stencil`];var Dr=5;var Ur=[`bc1`,`bc2`,`bc3`,`bc4`,`bc5`,`bc6`,`bc7`,`etc1`,`etc2`,`eac`,`atc`,`astc`,`pvrtc`];var Me=class{isColor(e){return Ar.some(t=>e.startsWith(t))}isDepthStencil(e){return Lr.some(t=>e.startsWith(t))}isCompressed(e){return Ur.some(t=>e.startsWith(t))}getInfo(e){return Nt(e)}getCapabilities(e){return Mr(e)}getWebGPUCapabilities(e){let t=ce(e);return t.webgpu!==void 0?t.webgpu:this.isCompressed(e)&&!e.endsWith(`-webgl`)?Dr:0}computeMemoryLayout(e){return Ir(e)}};var x=new Me;function Ir({format:r,width:e,height:t,depth:i,byteAlignment:s}){let{bytesPerPixel:o,bytesPerBlock:c=o,blockWidth:u=1,blockHeight:h=1,compressed:p=!1}=x.getInfo(r),g=p?Math.ceil(e/u):e,B=p?Math.ceil(t/h):t,ye=g*c,E=Math.ceil(ye/s)*s,z=B,H=E*z*i;return{bytesPerPixel:o,bytesPerRow:E,rowsPerImage:z,depthOrArrayLayers:i,bytesPerImage:E*z,byteLength:H}}function Mr(r){let e=ce(r),t={format:r,create:e.f??!0,render:e.render??!0,filter:e.filter??!0,blend:e.blend??!0,store:e.store??!0},i=Nt(r),s=r.startsWith(`depth`)||r.startsWith(`stencil`),n=i?.signed,o=i?.integer,c=i?.webgl,u=!!i?.compressed;return t.render&&=!s&&!u,t.filter&&=!s&&!n&&!o&&!c,t}function Nt(r){let e=Wr(r);if(x.isCompressed(r)){e.channels=`rgb`,e.components=3,e.bytesPerPixel=1,e.srgb=!1,e.compressed=!0,e.bytesPerBlock=Gr(r);let i=$r(r);i&&(e.blockWidth=i.blockWidth,e.blockHeight=i.blockHeight)}let t=e.packed?null:Br.exec(r);if(t){let[,i,s,n,o,c]=t,u=`${n}${s}`,h=$.getDataTypeInfo(u),p=h.byteLength*8,g=i?.length??1,B=[p,g>=2?p:0,g>=3?p:0,g>=4?p:0];e={format:r,attachment:e.attachment,dataType:h.signedType,components:g,channels:i,integer:h.integer,signed:h.signed,normalized:h.normalized,bitsPerChannel:B,bytesPerPixel:h.byteLength*g,packed:e.packed,srgb:e.srgb},c===`-webgl`&&(e.webgl=!0),o===`-srgb`&&(e.srgb=!0)}return r.endsWith(`-webgl`)&&(e.webgl=!0),r.endsWith(`-srgb`)&&(e.srgb=!0),e}function Wr(r$3){let e=r({},ce(r$3)),t=e.bytesPerPixel||1,i=e.bitsPerChannel||[8,8,8,8];return delete e.bitsPerChannel,delete e.bytesPerPixel,delete e.f,delete e.render,delete e.filter,delete e.blend,delete e.store,delete e.webgpu,s(r({},e),{format:r$3,attachment:e.attachment||`color`,channels:e.channels||`r`,components:e.components||e.channels?.length||1,bytesPerPixel:t,bitsPerChannel:i,dataType:e.dataType||`uint8`,srgb:e.srgb??!1,packed:e.packed??!1,webgl:e.webgl??!1,integer:e.integer??!1,signed:e.signed??!1,normalized:e.normalized??!1,compressed:e.compressed??!1})}function $r(r){let t=/.*-(\d+)x(\d+)-.*/.exec(r);if(t){let[,i,s]=t;return{blockWidth:Number(i),blockHeight:Number(s)}}return r.startsWith(`bc`)||r.startsWith(`etc1`)||r.startsWith(`etc2`)||r.startsWith(`eac`)||r.startsWith(`atc`)?{blockWidth:4,blockHeight:4}:r.startsWith(`pvrtc-rgb4`)||r.startsWith(`pvrtc-rgba4`)?{blockWidth:4,blockHeight:4}:r.startsWith(`pvrtc-rgb2`)||r.startsWith(`pvrtc-rgba2`)?{blockWidth:8,blockHeight:4}:null}function Gr(r){return r.startsWith(`bc1`)||r.startsWith(`bc4`)||r.startsWith(`etc1`)||r.startsWith(`etc2-rgb8`)||r.startsWith(`etc2-rgb8a1`)||r.startsWith(`eac-r11`)||r===`atc-rgb-unorm-webgl`?8:r.startsWith(`bc2`)||r.startsWith(`bc3`)||r.startsWith(`bc5`)||r.startsWith(`bc6h`)||r.startsWith(`bc7`)||r.startsWith(`etc2-rgba8`)||r.startsWith(`eac-rg11`)||r.startsWith(`astc`)||r===`atc-rgba-unorm-webgl`||r===`atc-rgbai-unorm-webgl`?16:r.startsWith(`pvrtc`)?8:16}function We(r){return typeof ImageData<`u`&&r instanceof ImageData||typeof ImageBitmap<`u`&&r instanceof ImageBitmap||typeof HTMLImageElement<`u`&&r instanceof HTMLImageElement||typeof HTMLVideoElement<`u`&&r instanceof HTMLVideoElement||typeof VideoFrame<`u`&&r instanceof VideoFrame||typeof HTMLCanvasElement<`u`&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&r instanceof OffscreenCanvas}function $e(r){if(typeof ImageData<`u`&&r instanceof ImageData||typeof ImageBitmap<`u`&&r instanceof ImageBitmap||typeof HTMLCanvasElement<`u`&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&r instanceof OffscreenCanvas)return{width:r.width,height:r.height};if(typeof HTMLImageElement<`u`&&r instanceof HTMLImageElement)return{width:r.naturalWidth,height:r.naturalHeight};if(typeof HTMLVideoElement<`u`&&r instanceof HTMLVideoElement)return{width:r.videoWidth,height:r.videoHeight};if(typeof VideoFrame<`u`&&r instanceof VideoFrame)return{width:r.displayWidth,height:r.displayHeight};throw new Error(`Unknown image type`)}var ue={id:null,powerPreference:`high-performance`,failIfMajorPerformanceCaveat:!1,featureLevel:void 0,optionalFeatures:[],xrCompatible:!1,createCanvasContext:void 0,webgl:{},onError:(r,e)=>{},onResize:(r,e)=>{let[t,i]=r.getDevicePixelSize();f.log(1,`${r} resized => ${t}x${i}px`)()},onPositionChange:(r,e)=>{let[t,i]=r.getPosition();f.log(1,`${r} repositioned => ${t},${i}`)()},onVisibilityChange:r=>f.log(1,`${r} Visibility changed ${r.isVisible}`)(),onDevicePixelRatioChange:(r,e)=>f.log(1,`${r} DPR changed ${e.oldRatio} => ${r.devicePixelRatio}`)(),debug:Nr(),debugGPUTime:!1,debugShaders:f.get(`debug-shaders`)||void 0,debugFramebuffers:!!f.get(`debug-framebuffers`),debugFactories:!!f.get(`debug-factories`),debugWebGL:!!f.get(`debug-webgl`),debugSpectorJS:void 0,debugSpectorJSUrl:void 0,_reuseDevices:!1,_cacheShaders:!0,_destroyShaders:!1,_cachePipelines:!0,_sharePipelines:!0,_destroyPipelines:!1,_initializeFeatures:!0,_disabledFeatures:{"compilation-status-async-webgl":!0},_handle:void 0};function Or(r,e){return r!=null?!!r:e!==void 0?e!==`production`:!1}function Nr(){return Or(f.get(`debug`),Fr())}function Fr(){let r=globalThis.process;if(r?.env)return r.env.NODE_ENV}var Ge=class{};function kr(r,e){return[Oe(r),...e.map(Oe).filter(s=>s!==void 0)].filter(s=>s!==void 0)}function Oe(r){if(r!==void 0){if(r===null||typeof r==`string`||typeof r==`number`||typeof r==`boolean`)return r;if(r instanceof Error)return r.message;if(Array.isArray(r))return r.map(Oe);if(typeof r==`object`){if(zr(r)){let e=String(r);if(e!==`[object Object]`)return e}return Hr(r)?Vr(r):r.constructor?.name||`Object`}return String(r)}}function zr(r){return`toString`in r&&typeof r.toString==`function`&&r.toString!==Object.prototype.toString}function Hr(r){return`message`in r&&`type`in r}function Vr(r){let e=typeof r.type==`string`?r.type:`message`,t=typeof r.message==`string`?r.message:``,i=typeof r.lineNum==`number`?r.lineNum:null,s=typeof r.linePos==`number`?r.linePos:null;return`${e}${i!==null&&s!==null?` @ ${i}:${s}`:i!==null?` @ ${i}`:``}: ${t}`.trim()}var Ne=class{features;disabledFeatures;constructor(e=[],t){this.features=new Set(e),this.disabledFeatures=t||{}}*[Symbol.iterator](){yield*this.features}has(e){return!this.disabledFeatures?.[e]&&this.features.has(e)}};function jr(){if(typeof HTMLCanvasElement>`u`)return!1;let r=HTMLCanvasElement.prototype;return`layoutSubtree`in r&&typeof r.requestPaint==`function`}var Fe=class r$4{static defaultProps=r({},ue);get[Symbol.toStringTag](){return`Device`}toString(){return`Device(${this.id})`}toJSON(){return this.toString()}id;props;userData={};statsManager=se;_factories={};timestamp=0;_reused=!1;_moduleData={};wgslLanguageFeatures=new Set;_textureCaps={};_debugGPUTimeQuery=null;constructor(e){this.props=r(r({},r$4.defaultProps),e),this.id=this.props.id||w(this[Symbol.toStringTag].toLowerCase())}getVertexFormatInfo(e){return S.getVertexFormatInfo(e)}isVertexFormatSupported(e){return!0}getTextureFormatInfo(e){return x.getInfo(e)}getTextureFormatCapabilities(e){let t=this._textureCaps[e];if(!t){let i=this._getDeviceTextureFormatCapabilities(e);t=this._getDeviceSpecificTextureFormatCapabilities(i),this._textureCaps[e]=t}return t}getMipLevelCount(e,t,i=1){return 1+Math.floor(Math.log2(Math.max(e,t,i)))}isExternalImage(e){return We(e)}getExternalImageSize(e){return $e(e)}isTextureFormatSupported(e){return this.getTextureFormatCapabilities(e).create}isTextureFormatFilterable(e){return this.getTextureFormatCapabilities(e).filter}isTextureFormatRenderable(e){return this.getTextureFormatCapabilities(e).render}isTextureFormatCompressed(e){return x.isCompressed(e)}getSupportedCompressedTextureFormats(){let e=[];for(let t of Object.keys(Gt()))this.isTextureFormatCompressed(t)&&this.isTextureFormatSupported(t)&&e.push(t);return e}pushDebugGroup(e){this.commandEncoder.pushDebugGroup(e)}popDebugGroup(){this.commandEncoder?.popDebugGroup()}insertDebugMarker(e){this.commandEncoder?.insertDebugMarker(e)}loseDevice(){return!1}incrementTimestamp(){return this.timestamp++}reportError(e,t,...i){if(!this.props.onError(e,t)){let n=kr(t,i);return f.error(this.type===`webgl`?`%cWebGL`:`%cWebGPU`,`color: white; background: red; padding: 2px 6px; border-radius: 3px;`,e.message,...n)}return()=>{}}debug(){if(this.props.debug)debugger;else f.once(0,`'Type luma.log.set({debug: true}) in console to enable debug breakpoints',
2
+ or create a device with the 'debug: true' prop.`)()}getDefaultCanvasContext(){if(!this.canvasContext)throw new Error(`Device has no default CanvasContext. See props.createCanvasContext`);return this.canvasContext}createFence(){throw new Error(`createFence() not implemented`)}beginRenderPass(e){return this.commandEncoder.beginRenderPass(e)}beginComputePass(e){return this.commandEncoder.beginComputePass(e)}writeBufferViaCommandEncoder(e,t,i,s=0){throw new Error(`writeBufferViaCommandEncoder() not implemented`)}generateMipmapsWebGPU(e){throw new Error(`not implemented`)}_createSharedRenderPipelineWebGL(e){throw new Error(`_createSharedRenderPipelineWebGL() not implemented`)}_createBindGroupLayoutWebGPU(e,t){throw new Error(`_createBindGroupLayoutWebGPU() not implemented`)}_createBindGroupWebGPU(e,t,i,s,n){throw new Error(`_createBindGroupWebGPU() not implemented`)}_supportsDebugGPUTime(){return this.features.has(`timestamp-query`)&&!!(this.props.debug||this.props.debugGPUTime)}_enableDebugGPUTime(e=256){if(!this._supportsDebugGPUTime())return null;if(this._debugGPUTimeQuery)return this._debugGPUTimeQuery;try{this._debugGPUTimeQuery=this.createQuerySet({type:`timestamp`,count:e}),this.commandEncoder=this.createCommandEncoder({id:this.commandEncoder.props.id,timeProfilingQuerySet:this._debugGPUTimeQuery})}catch{this._debugGPUTimeQuery=null}return this._debugGPUTimeQuery}_disableDebugGPUTime(){this._debugGPUTimeQuery&&(this.commandEncoder.getTimeProfilingQuerySet()===this._debugGPUTimeQuery&&(this.commandEncoder=this.createCommandEncoder({id:this.commandEncoder.props.id})),this._debugGPUTimeQuery.destroy(),this._debugGPUTimeQuery=null)}_isDebugGPUTimeEnabled(){return this._debugGPUTimeQuery!==null}getCanvasContext(){return this.getDefaultCanvasContext()}readPixelsToArrayWebGL(e,t){throw new Error(`not implemented`)}readPixelsToBufferWebGL(e,t){throw new Error(`not implemented`)}setParametersWebGL(e){throw new Error(`not implemented`)}getParametersWebGL(e){throw new Error(`not implemented`)}withParametersWebGL(e,t){throw new Error(`not implemented`)}clearWebGL(e){throw new Error(`not implemented`)}resetWebGL(){throw new Error(`not implemented`)}getModuleData(e){return this._moduleData[e]||={},this._moduleData[e]}static _getCanvasContextProps(e){return e.createCanvasContext===!0?{}:e.createCanvasContext}_getDeviceTextureFormatCapabilities(e){let t=x.getCapabilities(e),i=n=>(typeof n==`string`?this.features.has(n):n)??!0,s=i(t.create);return{format:e,create:s,render:s&&i(t.render),filter:s&&i(t.filter),blend:s&&i(t.blend),store:s&&i(t.store)}}_normalizeBufferProps(e){(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});let t=r({},e);if((e.usage||0)&P.INDEX&&(e.indexType||(e.data instanceof Uint32Array?t.indexType=`uint32`:e.data instanceof Uint16Array?t.indexType=`uint16`:e.data instanceof Uint8Array&&(t.data=new Uint16Array(e.data),t.indexType=`uint16`)),!t.indexType))throw new Error(`indices buffer content must be of type uint16 or uint32`);return t}};var Qr=`set luma.log.level=1 (or higher) to trace rendering`;var Ft="No matching device found. Ensure `@luma.gl/webgl` and/or `@luma.gl/webgpu` modules are imported.";var Yr=new class r$5{static defaultProps=s(r({},ue),{type:`best-available`,adapters:void 0,waitForPageLoad:!0});stats=se;log=f;VERSION=`9.4.2`;spector;preregisteredAdapters=new Map;constructor(){if(globalThis.luma){if(globalThis.luma.VERSION!==this.VERSION)throw f.error(`Found luma.gl ${globalThis.luma.VERSION} while initialzing ${this.VERSION}`)(),f.error(`'yarn why @luma.gl/core' can help identify the source of the conflict`)(),new Error(`luma.gl - multiple versions detected: see console log`);f.error(`This version of luma.gl has already been initialized`)()}f.log(1,`${this.VERSION} - ${Qr}`)(),globalThis.luma=this}async createDevice(e={}){let t=r(r({},r$5.defaultProps),e),i=this.selectAdapter(t.type,t.adapters);if(!i)throw new Error(Ft);return t.waitForPageLoad&&await i.pageLoaded,await i.create(t)}async attachDevice(e,t){let i=this._getTypeFromHandle(e,t.adapters),s=i&&this.selectAdapter(i,t.adapters);if(!s)throw new Error(Ft);return await s?.attach?.(e,t)}registerAdapters(e){for(let t of e)this.preregisteredAdapters.set(t.type,t)}getSupportedAdapters(e=[]){let t=this._getAdapterMap(e);return Array.from(t).map(([,i])=>i).filter(i=>i.isSupported?.()).map(i=>i.type)}getBestAvailableAdapterType(e=[]){let t=[`webgpu`,`webgl`,`null`],i=this._getAdapterMap(e);for(let s of t)if(i.get(s)?.isSupported?.())return s;return null}selectAdapter(e,t=[]){let i=e;e===`best-available`&&(i=this.getBestAvailableAdapterType(t));let s=this._getAdapterMap(t);return i&&s.get(i)||null}enforceWebGL2(e=!0,t=[]){let s=this._getAdapterMap(t).get(`webgl`);s||f.warn(`enforceWebGL2: webgl adapter not found`)(),s?.enforceWebGL2?.(e)}setDefaultDeviceProps(e){Object.assign(r$5.defaultProps,e)}_getAdapterMap(e=[]){let t=new Map(this.preregisteredAdapters);for(let i of e)t.set(i.type,i);return t}_getTypeFromHandle(e,t=[]){return e instanceof WebGL2RenderingContext?`webgl`:typeof GPUDevice<`u`&&e instanceof GPUDevice||e?.queue?`webgpu`:e===null?`null`:(e instanceof WebGLRenderingContext?f.warn(`WebGL1 is not supported`,e)():f.warn(`Unknown handle type`,e)(),null)}};var ze=class{get pageLoaded(){return qr()}};var Xr=y()&&typeof document<`u`;var Jr=()=>Xr&&document.readyState===`complete`;var fe=null;function qr(){return fe||(Jr()||typeof window>`u`?fe=Promise.resolve():fe=new Promise(r=>window.addEventListener(`load`,()=>r()))),fe}var le=class{props;_resizeObserver;_intersectionObserver;_observeDevicePixelRatioTimeout=null;_observeDevicePixelRatioMediaQuery=null;_handleDevicePixelRatioChange=()=>this._refreshDevicePixelRatio();_trackPositionInterval=null;_started=!1;get started(){return this._started}constructor(e){this.props=e}start(){if(this._started||!this.props.canvas)return;this._started=!0,this._intersectionObserver||=new IntersectionObserver(t=>this.props.onIntersection(t)),this._resizeObserver||=new ResizeObserver(t=>this.props.onResize(t)),this._intersectionObserver.observe(this.props.canvas);let e=this.props.resizeObserverBox;try{this._resizeObserver.observe(this.props.canvas,{box:e})}catch{this._resizeObserver.observe(this.props.canvas,{box:`content-box`})}this._observeDevicePixelRatioTimeout=setTimeout(()=>this._refreshDevicePixelRatio(),0),this.props.trackPosition&&this._trackPosition()}stop(){this._started&&(this._started=!1,this._observeDevicePixelRatioTimeout&&(clearTimeout(this._observeDevicePixelRatioTimeout),this._observeDevicePixelRatioTimeout=null),this._observeDevicePixelRatioMediaQuery&&(this._observeDevicePixelRatioMediaQuery.removeEventListener(`change`,this._handleDevicePixelRatioChange),this._observeDevicePixelRatioMediaQuery=null),this._trackPositionInterval&&(clearInterval(this._trackPositionInterval),this._trackPositionInterval=null),this._resizeObserver?.disconnect(),this._intersectionObserver?.disconnect())}_refreshDevicePixelRatio(){this._started&&(this.props.onDevicePixelRatioChange(),this._observeDevicePixelRatioMediaQuery?.removeEventListener(`change`,this._handleDevicePixelRatioChange),this._observeDevicePixelRatioMediaQuery=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._observeDevicePixelRatioMediaQuery.addEventListener(`change`,this._handleDevicePixelRatioChange,{once:!0}))}_trackPosition(e=100){this._trackPositionInterval||(this._trackPositionInterval=setInterval(()=>{this._started?this.props.onPositionChange():this._trackPositionInterval&&(clearInterval(this._trackPositionInterval),this._trackPositionInterval=null)},e))}};function kt(){let r,e;return{promise:new Promise((i,s)=>{r=i,e=s}),resolve:r,reject:e}}function He(r,e){if(!r){let t=new Error(e??`luma.gl assertion failed.`);throw Error.captureStackTrace?.(t,He),t}}function de(r,e){return He(r,e),r}var D=class r$6{static isHTMLCanvas(e){return typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement}static isOffscreenCanvas(e){return typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas}static defaultProps={id:void 0,canvas:null,width:800,height:600,useDevicePixels:!0,pixelSizeSource:`exact`,autoResize:!0,container:null,visible:!0,alphaMode:`opaque`,colorSpace:`srgb`,colorFormat:void 0,toneMapping:`standard`,trackPosition:!1};id;props;canvas;htmlCanvas;offscreenCanvas;type;initialized;isInitialized=!1;isVisible=!0;cssWidth;cssHeight;devicePixelRatio;devicePixelWidth;devicePixelHeight;drawingBufferWidth;drawingBufferHeight;_initializedResolvers=kt();_canvasObserver;_position=[0,0];destroyed=!1;_needsDrawingBufferResize=!0;_configuredDrawingBufferSize=[0,0];toString(){return`${this[Symbol.toStringTag]}(${this.id})`}constructor(e){this.props=r(r({},r$6.defaultProps),e),e=this.props,this.initialized=this._initializedResolvers.promise,y()?e.canvas?typeof e.canvas==`string`?this.canvas=Zr(e.canvas):this.canvas=e.canvas:this.canvas=ei(e):this.canvas={width:e.width||1,height:e.height||1},r$6.isHTMLCanvas(this.canvas)?(this.id=e.id||this.canvas.id,this.type=`html-canvas`,this.htmlCanvas=this.canvas):r$6.isOffscreenCanvas(this.canvas)?(this.id=e.id||`offscreen-canvas`,this.type=`offscreen-canvas`,this.offscreenCanvas=this.canvas):(this.id=e.id||`node-canvas-context`,this.type=`node`),this.cssWidth=this.htmlCanvas?.clientWidth||this.canvas.width,this.cssHeight=this.htmlCanvas?.clientHeight||this.canvas.height,this.devicePixelWidth=this.canvas.width,this.devicePixelHeight=this.canvas.height,this.drawingBufferWidth=this.canvas.width,this.drawingBufferHeight=this.canvas.height,this._configuredDrawingBufferSize=[this.canvas.width,this.canvas.height],this.devicePixelRatio=globalThis.devicePixelRatio||1,this._position=[0,0],this._canvasObserver=new le({canvas:this.htmlCanvas,trackPosition:this.props.trackPosition,resizeObserverBox:this.props.pixelSizeSource===`css-dpr`?`content-box`:`device-pixel-content-box`,onResize:t=>this._handleResize(t),onIntersection:t=>this._handleIntersection(t),onDevicePixelRatioChange:()=>this._observeDevicePixelRatio(),onPositionChange:()=>this.updatePosition()})}destroy(){this.destroyed||(this.destroyed=!0,this._stopObservers(),this.device=null)}setProps(e){return`useDevicePixels`in e&&(this.props.useDevicePixels=e.useDevicePixels||!1,this._updateDrawingBufferSize()),this}getCurrentFramebuffer(e){return this._resizeDrawingBufferIfNeeded(),this._getCurrentFramebuffer(e)}getCSSSize(){return[this.cssWidth,this.cssHeight]}getPosition(){return this._position}getDevicePixelSize(){return[this.devicePixelWidth,this.devicePixelHeight]}getDrawingBufferSize(){return[this.drawingBufferWidth,this.drawingBufferHeight]}getMaxDrawingBufferSize(){let e=this.device.limits.maxTextureDimension2D;return[e,e]}setDrawingBufferSize(e,t){e=Math.floor(e),t=Math.floor(t),(this.drawingBufferWidth!==e||this.drawingBufferHeight!==t)&&(this.drawingBufferWidth=e,this.drawingBufferHeight=t,this._needsDrawingBufferResize=!0)}getDevicePixelRatio(){return typeof window<`u`&&window.devicePixelRatio||1}cssToDevicePixels(e,t=!0){let i=this.cssToDeviceRatio(),[s,n]=this.getDrawingBufferSize();return ti(e,i,s,n,t)}getPixelSize(){return this.getDevicePixelSize()}getAspect(){let[e,t]=this.getDrawingBufferSize();return e>0&&t>0?e/t:1}cssToDeviceRatio(){try{let[e]=this.getDrawingBufferSize(),[t]=this.getCSSSize();return t?e/t:1}catch{return 1}}resize(e){this.setDrawingBufferSize(e.width,e.height)}_setAutoCreatedCanvasId(e){this.htmlCanvas?.id===`lumagl-auto-created-canvas`&&(this.htmlCanvas.id=e)}_startObservers(){this.destroyed||this._canvasObserver.start()}_stopObservers(){this._canvasObserver.stop()}_handleIntersection(e){if(this.destroyed)return;let t=e.find(s=>s.target===this.canvas);if(!t)return;let i=t.isIntersecting;this.isVisible!==i&&(this.isVisible=i,this.device.props.onVisibilityChange(this))}_handleResize(e){if(this.destroyed)return;let t=e.find(n=>n.target===this.canvas);if(!t)return;let i=de(t.contentBoxSize?.[0]);this.cssWidth=i.inlineSize,this.cssHeight=i.blockSize;let s=this.getDevicePixelSize();this._setDevicePixelSize(this._getDevicePixelSizeFromResizeEntry(t)),this._updateDrawingBufferSize(),this.device.props.onResize(this,{oldPixelSize:s})}_updateDrawingBufferSize(){if(this.props.autoResize)if(typeof this.props.useDevicePixels==`number`){let e=this.props.useDevicePixels;this.setDrawingBufferSize(this.cssWidth*e,this.cssHeight*e)}else this.props.useDevicePixels?this.setDrawingBufferSize(this.devicePixelWidth,this.devicePixelHeight):this.setDrawingBufferSize(this.cssWidth,this.cssHeight);this._initializedResolvers.resolve(),this.isInitialized=!0,this.updatePosition()}_getDevicePixelSizeFromResizeEntry(e){let t=de(e.contentBoxSize?.[0]);return this.props.pixelSizeSource===`css-dpr`?this._getDevicePixelSizeFromCSSSize(t.inlineSize,t.blockSize):{devicePixelWidth:e.devicePixelContentBoxSize?.[0]?.inlineSize||t.inlineSize*devicePixelRatio,devicePixelHeight:e.devicePixelContentBoxSize?.[0]?.blockSize||t.blockSize*devicePixelRatio}}_getDevicePixelSizeFromCSSSize(e,t){let i=this.getDevicePixelRatio();return{devicePixelWidth:Math.floor(e*i),devicePixelHeight:Math.floor(t*i)}}_setDevicePixelSize({devicePixelWidth:e,devicePixelHeight:t}){let[i,s]=this.getMaxDrawingBufferSize();this.devicePixelWidth=Math.max(1,Math.min(e,i)),this.devicePixelHeight=Math.max(1,Math.min(t,s))}_resizeDrawingBufferIfNeeded(){if(this._needsDrawingBufferResize){this._needsDrawingBufferResize=!1,(this.drawingBufferWidth!==this.canvas.width||this.drawingBufferHeight!==this.canvas.height)&&(this.canvas.width=this.drawingBufferWidth,this.canvas.height=this.drawingBufferHeight);let[t,i]=this._configuredDrawingBufferSize;(this.drawingBufferWidth!==t||this.drawingBufferHeight!==i)&&(this._configureDevice(),this._configuredDrawingBufferSize=[this.drawingBufferWidth,this.drawingBufferHeight])}}_observeDevicePixelRatio(){if(this.destroyed||!this._canvasObserver.started)return;let e=this.devicePixelRatio;if(this.devicePixelRatio=window.devicePixelRatio,this.props.pixelSizeSource===`css-dpr`){let t=this.getDevicePixelSize();this._setDevicePixelSize(this._getDevicePixelSizeFromCSSSize(this.cssWidth,this.cssHeight)),this._updateDrawingBufferSize(),this.device.props.onResize(this,{oldPixelSize:t})}this.updatePosition(),this.device.props.onDevicePixelRatioChange?.(this,{oldRatio:e})}updatePosition(){if(this.destroyed)return;let e=this.htmlCanvas?.getBoundingClientRect();if(e){let t=[e.left,e.top];if(this._position??=t,t[0]!==this._position[0]||t[1]!==this._position[1]){let s=this._position;this._position=t,this.device.props.onPositionChange?.(this,{oldPosition:s})}}}};function Kr(r){if(typeof r==`string`){let e=document.getElementById(r);if(!e)throw new Error(`${r} is not an HTML element`);return e}return r||document.body}function Zr(r){let e=document.getElementById(r);if(!D.isHTMLCanvas(e))throw new Error(`Object is not a canvas element`);return e}function ei(r){let{width:e,height:t}=r,i=document.createElement(`canvas`);i.id=w(`lumagl-auto-created-canvas`),i.width=e||1,i.height=t||1,i.style.width=Number.isFinite(e)?`${e}px`:`100%`,i.style.height=Number.isFinite(t)?`${t}px`:`100%`,r?.visible||(i.style.visibility=`hidden`);let s=Kr(r?.container||null);return s.insertBefore(i,s.firstChild),i}function ti(r,e,t,i,s){let n=r,o=zt(n[0],e,t),c=Ht(n[1],e,i,s),u=zt(n[0]+1,e,t),h=u===t-1?u:u-1;u=Ht(n[1]+1,e,i,s);let p;return s?(u=u===0?u:u+1,p=c,c=u):p=u===i-1?u:u-1,{x:o,y:c,width:Math.max(h-o+1,1),height:Math.max(p-c+1,1)}}function zt(r,e,t){return Math.min(Math.round(r*e),t-1)}function Ht(r,e,t,i){return i?Math.max(0,t-1-Math.round(r*e)):Math.min(Math.round(r*e),t-1)}var Ve=class extends D{static defaultProps=D.defaultProps};var je=class extends D{};var Y=class r$7 extends l{static defaultProps=s(r({},l.defaultProps),{type:`color-sampler`,addressModeU:`clamp-to-edge`,addressModeV:`clamp-to-edge`,addressModeW:`clamp-to-edge`,magFilter:`nearest`,minFilter:`nearest`,mipmapFilter:`none`,lodMinClamp:0,lodMaxClamp:32,compare:`less-equal`,maxAnisotropy:1});get[Symbol.toStringTag](){return`Sampler`}constructor(e,t){t=r$7.normalizeProps(e,t),super(e,t,r$7.defaultProps)}static normalizeProps(e,t){return t}};var ri={"1d":`1d`,"2d":`2d`,"2d-array":`2d`,cube:`2d`,"cube-array":`2d`,"3d":`3d`};var C=class r$8 extends l{static SAMPLE=4;static STORAGE=8;static RENDER=16;static COPY_SRC=1;static COPY_DST=2;static TEXTURE=4;static RENDER_ATTACHMENT=16;dimension;baseDimension;format;width;height;depth;mipLevels;samples;byteAlignment;ready=Promise.resolve(this);isReady=!0;updateTimestamp;get[Symbol.toStringTag](){return`Texture`}toString(){return`Texture(${this.id},${this.format},${this.width}x${this.height})`}constructor(e,t,i){if(t=r$8.normalizeProps(e,t),super(e,t,r$8.defaultProps),this.dimension=this.props.dimension,this.baseDimension=ri[this.dimension],this.format=this.props.format,this.width=this.props.width,this.height=this.props.height,this.depth=this.props.depth,this.mipLevels=this.props.mipLevels,this.samples=this.props.samples||1,this.dimension===`cube`&&(this.depth=6),this.props.width===void 0||this.props.height===void 0)if(e.isExternalImage(t.data)){let s=e.getExternalImageSize(t.data);this.width=s?.width||1,this.height=s?.height||1}else this.width=1,this.height=1,(this.props.width===void 0||this.props.height===void 0)&&f.warn(`${this} created with undefined width or height. This is deprecated. Use DynamicTexture instead.`)();this.byteAlignment=i?.byteAlignment||1,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createTexture(r(r({},this.props),e))}setSampler(e){this.sampler=e instanceof Y?e:this.device.createSampler(e)}copyImageData(e){let n=e,{data:t,depth:i}=n,s$1=u(n,[`data`,`depth`]);this.writeData(t,s(r({},s$1),{depthOrArrayLayers:s$1.depthOrArrayLayers??i}))}computeMemoryLayout(e={}){let{width:i=this.width,height:s=this.height,depthOrArrayLayers:n=this.depth}=this._normalizeTextureReadOptions(e),{format:o,byteAlignment:c}=this;return x.computeMemoryLayout({format:o,width:i,height:s,depth:n,byteAlignment:c})}readBuffer(e,t){throw new Error(`readBuffer not implemented`)}readDataAsync(e){throw new Error(`readBuffer not implemented`)}writeBuffer(e,t){throw new Error(`readBuffer not implemented`)}writeData(e,t){throw new Error(`readBuffer not implemented`)}readDataSyncWebGL(e){throw new Error(`readDataSyncWebGL not available`)}generateMipmapsWebGL(){throw new Error(`generateMipmapsWebGL not available`)}static normalizeProps(e,t){let i=r({},t),{width:s,height:n}=i;return typeof s==`number`&&(i.width=Math.max(1,Math.ceil(s))),typeof n==`number`&&(i.height=Math.max(1,Math.ceil(n))),i}_initializeData(e){this.device.isExternalImage(e)?this.copyExternalImage({image:e,width:this.width,height:this.height,depth:this.depth,mipLevel:0,x:0,y:0,z:0,aspect:`all`,colorSpace:`srgb`,premultipliedAlpha:!1,flipY:!1}):e&&this.copyImageData({data:e,mipLevel:0,x:0,y:0,z:0,aspect:`all`})}_normalizeCopyImageDataOptions(e){let o=e,{data:t,depth:i}=o,s$2=u(o,[`data`,`depth`]),n=this._normalizeTextureWriteOptions(s(r({},s$2),{depthOrArrayLayers:s$2.depthOrArrayLayers??i}));return r({data:t,depth:n.depthOrArrayLayers},n)}_normalizeCopyExternalImageOptions(e){let t=r$8._omitUndefined(e),i=t.mipLevel??0,s=this._getMipLevelSize(i),n=this.device.getExternalImageSize(e.image),o=r(r(r(r({},r$8.defaultCopyExternalImageOptions),s),n),t);return o.width=Math.min(o.width,s.width-o.x),o.height=Math.min(o.height,s.height-o.y),o.depth=Math.min(o.depth,s.depthOrArrayLayers-o.z),o}_normalizeCopyElementImageOptions(e){let t=r$8._omitUndefined(e),i=t.mipLevel??0,s=this._getMipLevelSize(i),n=r(r(r({},r$8.defaultCopyElementImageOptions),s),t);return n.width=Math.min(n.width,s.width-n.x),n.height=Math.min(n.height,s.height-n.y),n.depth=Math.min(n.depth,s.depthOrArrayLayers-n.z),n}_normalizeTextureReadOptions(e){let t=r$8._omitUndefined(e),i=t.mipLevel??0,s=this._getMipLevelSize(i),n=r(r(r({},r$8.defaultTextureReadOptions),s),t);return n.width=Math.min(n.width,s.width-n.x),n.height=Math.min(n.height,s.height-n.y),n.depthOrArrayLayers=Math.min(n.depthOrArrayLayers,s.depthOrArrayLayers-n.z),n}_getSupportedColorReadOptions(e){let t=this._normalizeTextureReadOptions(e),i=x.getInfo(this.format);switch(this._validateColorReadAspect(t),this._validateColorReadFormat(i),this.dimension){case`2d`:case`cube`:case`cube-array`:case`2d-array`:case`3d`:return t;default:throw new Error(`${this} color readback does not support ${this.dimension} textures`)}}_validateColorReadAspect(e){if(e.aspect!==`all`)throw new Error(`${this} color readback only supports aspect 'all'`)}_validateColorReadFormat(e){if(e.compressed)throw new Error(`${this} color readback does not support compressed formats (${this.format})`);switch(e.attachment){case`color`:return;case`depth`:throw new Error(`${this} color readback does not support depth formats (${this.format})`);case`stencil`:throw new Error(`${this} color readback does not support stencil formats (${this.format})`);case`depth-stencil`:throw new Error(`${this} color readback does not support depth-stencil formats (${this.format})`);default:throw new Error(`${this} color readback does not support format ${this.format}`)}}_normalizeTextureWriteOptions(e){let t=r$8._omitUndefined(e),i=t.mipLevel??0,s=this._getMipLevelSize(i),n=r(r(r({},r$8.defaultTextureWriteOptions),s),t);n.width=Math.min(n.width,s.width-n.x),n.height=Math.min(n.height,s.height-n.y),n.depthOrArrayLayers=Math.min(n.depthOrArrayLayers,s.depthOrArrayLayers-n.z);let o=x.computeMemoryLayout({format:this.format,width:n.width,height:n.height,depth:n.depthOrArrayLayers,byteAlignment:this.byteAlignment}),c=o.bytesPerPixel*n.width;if(n.bytesPerRow=t.bytesPerRow??o.bytesPerRow,n.rowsPerImage=t.rowsPerImage??n.height,n.bytesPerRow<c)throw new Error(`bytesPerRow (${n.bytesPerRow}) must be at least ${c} for ${this.format}`);if(n.rowsPerImage<n.height)throw new Error(`rowsPerImage (${n.rowsPerImage}) must be at least ${n.height} for ${this.format}`);let u=this.device.getTextureFormatInfo(this.format).bytesPerPixel;if(u&&n.bytesPerRow%u!==0)throw new Error(`bytesPerRow (${n.bytesPerRow}) must be a multiple of bytesPerPixel (${u}) for ${this.format}`);return n}_getMipLevelSize(e){return{width:Math.max(1,this.width>>e),height:this.baseDimension===`1d`?1:Math.max(1,this.height>>e),depthOrArrayLayers:this.dimension===`3d`?Math.max(1,this.depth>>e):this.depth}}getAllocatedByteLength(){let e=0;for(let t=0;t<this.mipLevels;t++){let{width:i,height:s,depthOrArrayLayers:n}=this._getMipLevelSize(t);e+=x.computeMemoryLayout({format:this.format,width:i,height:s,depth:n,byteAlignment:1}).byteLength}return e*this.samples}static _omitUndefined(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}static defaultProps=s(r({},l.defaultProps),{data:null,dimension:`2d`,format:`rgba8unorm`,usage:r$8.SAMPLE|r$8.RENDER|r$8.COPY_DST,width:void 0,height:void 0,depth:1,mipLevels:1,samples:void 0,sampler:{},view:void 0});static defaultCopyDataOptions={data:void 0,byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,width:void 0,height:void 0,depthOrArrayLayers:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:`all`};static defaultCopyExternalImageOptions={image:void 0,sourceX:0,sourceY:0,width:void 0,height:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:`all`,colorSpace:`srgb`,premultipliedAlpha:!1,flipY:!1};static defaultCopyElementImageOptions={element:void 0,width:void 0,height:void 0,sourceX:0,sourceY:0,sourceWidth:void 0,sourceHeight:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:`all`,colorSpace:`srgb`,premultipliedAlpha:!1,flipY:!1};static defaultTextureReadOptions={x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:`all`};static defaultTextureWriteOptions={byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:`all`}};var Qe=class r$9 extends l{get[Symbol.toStringTag](){return`TextureView`}constructor(e,t){super(e,t,r$9.defaultProps)}static defaultProps=s(r({},l.defaultProps),{format:void 0,dimension:void 0,aspect:`all`,baseMipLevel:0,mipLevelCount:void 0,baseArrayLayer:0,arrayLayerCount:void 0})};var Ye=class r$10 extends l{width;height;updateTimestamp;get[Symbol.toStringTag](){return`ExternalTexture`}constructor(e,t){super(e,t,r$10.defaultProps);let i=this.props.source?e.getExternalImageSize(this.props.source):null;this.width=this.props.width||i?.width||0,this.height=this.props.height||i?.height||0,this.updateTimestamp=e.incrementTimestamp()}static defaultProps=s(r({},l.defaultProps),{source:void 0,width:0,height:0,colorSpace:`srgb`,sampler:{}})};function Vt(r$11,e,t){let i=``,s$3=e.split(/\r?\n/),n=r$11.slice().sort((o,c)=>o.lineNum-c.lineNum);switch(t?.showSourceCode||`no`){case`all`:let o=0;for(let c=1;c<=s$3.length;c++){let u=s$3[c-1],h=n[o];for(u&&h&&(i+=jt(u,c,t));n.length>o&&h.lineNum===c;){let p=n[o++];p&&(i+=Xe(p,s$3,p.lineNum,s(r({},t),{inlineSource:!1})))}}for(;n.length>o;){let c=n[o++];c&&(i+=Xe(c,[],0,s(r({},t),{inlineSource:!1})))}return i;case`issues`:case`no`:for(let c of r$11)i+=Xe(c,s$3,c.lineNum,{inlineSource:t?.showSourceCode!==`no`});return i}}function Xe(r,e,t,i){if(i?.inlineSource)return`
3
+ ${ii(e,t)}${r.linePos>0?`${` `.repeat(r.linePos+5)}^^^
4
+ `:``}${r.type.toUpperCase()}: ${r.message}
5
+
6
+ `;let s=r.type===`error`?`red`:`orange`;return i?.html?`<div class='luma-compiler-log-${r.type}' style="color:${s};"><b> ${r.type.toUpperCase()}: ${r.message}</b></div>`:`${r.type.toUpperCase()}: ${r.message}`}function ii(r,e,t){let i=``;for(let s=e-2;s<=e;s++){let n=r[s-1];n!==void 0&&(i+=jt(n,e,t))}return i}function jt(r,e,t){let i=t?.html?ni(r):r;return`${si(String(e),4)}: ${i}${t?.html?`<br/>`:`
7
+ `}`}function si(r,e){let t=``;for(let i=r.length;i<e;++i)t+=` `;return t+r}function ni(r){return r.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`).replaceAll(`"`,`&quot;`).replaceAll(`'`,`&#039;`)}var X=class r$12 extends l{get[Symbol.toStringTag](){return`Shader`}stage;source;compilationStatus=`pending`;constructor(e,t){t=s(r({},t),{debugShaders:t.debugShaders||e.props.debugShaders||`errors`}),super(e,r({id:oi(t)},t),r$12.defaultProps),this.stage=this.props.stage,this.source=this.props.source}getCompilationInfoSync(){return null}getTranslatedSource(){return null}async debugShader(){let e=this.props.debugShaders;switch(e){case`never`:return;case`errors`:if(this.compilationStatus===`success`)return}try{let t=await this.getCompilationInfo();if(e===`warnings`&&t?.length===0)return;this._displayShaderLog(t,this.id)}catch(t){f.warn(`Shader ${this.id}: failed to fetch compilation info during debug logging`,t)()}}_displayShaderLog(e,t){if(typeof document>`u`||!document?.createElement)return;let i=t,s=`${this.stage} shader "${i}"`,n=Vt(e,this.source,{showSourceCode:`all`,html:!0}),o=this.getTranslatedSource(),c=document.createElement(`div`);c.innerHTML=`<h1>Compilation error in ${s}</h1>
8
+ <div style="display:flex;position:fixed;top:10px;right:20px;gap:2px;">
9
+ <button id="copy">Copy source</button><br/>
10
+ <button id="close">Close</button>
11
+ </div>
12
+ <code><pre>${n}</pre></code>`,o&&(c.innerHTML+=`<br /><h1>Translated Source</h1><br /><br /><code><pre>${o}</pre></code>`),c.style.top=`0`,c.style.left=`0`,c.style.background=`white`,c.style.position=`fixed`,c.style.zIndex=`9999`,c.style.maxWidth=`100vw`,c.style.maxHeight=`100vh`,c.style.overflowY=`auto`,document.body.appendChild(c),c.querySelector(`.luma-compiler-log-error`)?.scrollIntoView(),c.querySelector(`button#close`).onclick=()=>{c.remove()},c.querySelector(`button#copy`).onclick=()=>{navigator.clipboard.writeText(this.source)}}static defaultProps=s(r({},l.defaultProps),{language:`auto`,stage:void 0,source:``,sourceMap:null,entryPoint:`main`,debugShaders:void 0})};function oi(r){return ai(r.source)||r.id||w(`unnamed ${r.stage}-shader`)}function ai(r,e=`unnamed`){return/#define[\s*]SHADER_NAME[\s*]([A-Za-z0-9_-]+)[\s*]/.exec(r)?.[1]??e}var Je=class r$13 extends l{get[Symbol.toStringTag](){return`Framebuffer`}width;height;constructor(e,t={}){super(e,t,r$13.defaultProps),this.width=this.props.width,this.height=this.props.height}clone(e){let t=this.colorAttachments.map(s=>s.texture.clone(e)),i=this.depthStencilAttachment&&this.depthStencilAttachment.texture.clone(e);return this.device.createFramebuffer(s(r(r({},this.props),e),{colorAttachments:t,depthStencilAttachment:i}))}resize(e){let t=!e;if(e){let[i,s]=Array.isArray(e)?e:[e.width,e.height];t=t||s!==this.height||i!==this.width,this.width=i,this.height=s}t&&(f.log(2,`Resizing framebuffer ${this.id} to ${this.width}x${this.height}`)(),this.resizeAttachments(this.width,this.height))}autoCreateAttachmentTextures(){if(this.props.colorAttachments.length===0&&!this.props.depthStencilAttachment)throw new Error(`Framebuffer has noattachments`);this.colorAttachments=this.props.colorAttachments.map((t,i)=>{if(typeof t==`string`){let s=this.createColorTexture(t,i);return this.attachResource(s),s.view}return t instanceof C?t.view:t});let e=this.props.depthStencilAttachment;if(e)if(typeof e==`string`){let t=this.createDepthStencilTexture(e);this.attachResource(t),this.depthStencilAttachment=t.view}else e instanceof C?this.depthStencilAttachment=e.view:this.depthStencilAttachment=e}createColorTexture(e,t){return this.device.createTexture({id:`${this.id}-color-attachment-${t}`,usage:C.RENDER_ATTACHMENT,format:e,width:this.width,height:this.height,sampler:{magFilter:`linear`,minFilter:`linear`}})}createDepthStencilTexture(e){return this.device.createTexture({id:`${this.id}-depth-stencil-attachment`,usage:C.RENDER_ATTACHMENT|C.SAMPLE,format:e,width:this.width,height:this.height})}resizeAttachments(e,t){if(this.colorAttachments.forEach((i,s)=>{let n=i.texture.clone({width:e,height:t});this.destroyAttachedResource(i),this.colorAttachments[s]=n.view,this.attachResource(n.view)}),this.depthStencilAttachment){let i=this.depthStencilAttachment.texture.clone({width:e,height:t});this.destroyAttachedResource(this.depthStencilAttachment),this.depthStencilAttachment=i.view,this.attachResource(i)}this.updateAttachments()}static defaultProps=s(r({},l.defaultProps),{width:1,height:1,colorAttachments:[],depthStencilAttachment:null})};var U=class r$14 extends l{get[Symbol.toStringTag](){return`RenderPipeline`}shaderLayout;bufferLayout;linkStatus=`pending`;hash=``;sharedRenderPipeline=null;get isPending(){return this.linkStatus===`pending`||this.vs.compilationStatus===`pending`||this.fs?.compilationStatus===`pending`}get isErrored(){return this.linkStatus===`error`||this.vs.compilationStatus===`error`||this.fs?.compilationStatus===`error`}constructor(e,t){super(e,t,r$14.defaultProps),this.shaderLayout=this.props.shaderLayout,this.bufferLayout=this.props.bufferLayout||[],this.sharedRenderPipeline=this.props._sharedRenderPipeline||null}static defaultProps=s(r({},l.defaultProps),{vs:null,vertexEntryPoint:`vertexMain`,vsConstants:{},fs:null,fragmentEntryPoint:`fragmentMain`,fsConstants:{},shaderLayout:null,bufferLayout:[],topology:`triangle-list`,colorAttachmentFormats:void 0,depthStencilAttachmentFormat:void 0,parameters:{},varyings:void 0,bufferMode:void 0,disableWarnings:!1,_sharedRenderPipeline:void 0,_uniformBlockLayouts:[],bindings:void 0,bindGroups:void 0})};var qe=class extends l{get[Symbol.toStringTag](){return`SharedRenderPipeline`}constructor(e,t){super(e,t,s(r({},l.defaultProps),{handle:void 0,vs:void 0,fs:void 0,varyings:void 0,bufferMode:void 0}))}};var F=class r$15 extends l{get[Symbol.toStringTag](){return`ComputePipeline`}hash=``;shaderLayout;constructor(e,t){super(e,t,r$15.defaultProps),this.shaderLayout=t.shaderLayout}static defaultProps=s(r({},l.defaultProps),{shader:void 0,entryPoint:void 0,constants:{},shaderLayout:void 0})};var Ke=class r$16{static defaultProps=r({},U.defaultProps);static getDefaultPipelineFactory(e){let t=e.getModuleData(`@luma.gl/core`);return t.defaultPipelineFactory||=new r$16(e),t.defaultPipelineFactory}device;_hashCounter=0;_hashes={};_renderPipelineCache={};_computePipelineCache={};_sharedRenderPipelineCache={};get[Symbol.toStringTag](){return`PipelineFactory`}toString(){return`PipelineFactory(${this.device.id})`}constructor(e){this.device=e}createRenderPipeline(e){if(!this.device.props._cachePipelines)return this.device.createRenderPipeline(e);let t=r(r({},U.defaultProps),e),i=this._renderPipelineCache,s$4=this._hashRenderPipeline(t),n=i[s$4]?.resource;if(n)i[s$4].useCount++,this.device.props.debugFactories&&f.log(3,`${this}: ${i[s$4].resource} reused, count=${i[s$4].useCount}, (id=${e.id})`)();else{let o=this.device.type===`webgl`&&this.device.props._sharePipelines?this.createSharedRenderPipeline(t):void 0;n=this.device.createRenderPipeline(s(r({},t),{id:t.id?`${t.id}-cached`:w(`unnamed-cached`),_sharedRenderPipeline:o})),n.hash=s$4,i[s$4]={resource:n,useCount:1},this.device.props.debugFactories&&f.log(3,`${this}: ${n} created, count=${i[s$4].useCount}`)()}return n}createComputePipeline(e){if(!this.device.props._cachePipelines)return this.device.createComputePipeline(e);let t=r(r({},F.defaultProps),e),i=this._computePipelineCache,s$5=this._hashComputePipeline(t),n=i[s$5]?.resource;return n?(i[s$5].useCount++,this.device.props.debugFactories&&f.log(3,`${this}: ${i[s$5].resource} reused, count=${i[s$5].useCount}, (id=${e.id})`)()):(n=this.device.createComputePipeline(s(r({},t),{id:t.id?`${t.id}-cached`:void 0})),n.hash=s$5,i[s$5]={resource:n,useCount:1},this.device.props.debugFactories&&f.log(3,`${this}: ${n} created, count=${i[s$5].useCount}`)()),n}release(e){if(!this.device.props._cachePipelines){e.destroy();return}let t=this._getCache(e),i=e.hash;t[i].useCount--,t[i].useCount===0?(this._destroyPipeline(e),this.device.props.debugFactories&&f.log(3,`${this}: ${e} released and destroyed`)()):t[i].useCount<0?(f.error(`${this}: ${e} released, useCount < 0, resetting`)(),t[i].useCount=0):this.device.props.debugFactories&&f.log(3,`${this}: ${e} released, count=${t[i].useCount}`)()}createSharedRenderPipeline(e){let t=this._hashSharedRenderPipeline(e),i=this._sharedRenderPipelineCache[t];return i||(i={resource:this.device._createSharedRenderPipelineWebGL(e),useCount:0},this._sharedRenderPipelineCache[t]=i),i.useCount++,i.resource}releaseSharedRenderPipeline(e){if(!e.sharedRenderPipeline)return;let t=this._hashSharedRenderPipeline(e.sharedRenderPipeline.props),i=this._sharedRenderPipelineCache[t];i&&(i.useCount--,i.useCount===0&&(i.resource.destroy(),delete this._sharedRenderPipelineCache[t]))}_destroyPipeline(e){let t=this._getCache(e);return this.device.props._destroyPipelines?(delete t[e.hash],e.destroy(),e instanceof U&&this.releaseSharedRenderPipeline(e),!0):!1}_getCache(e){let t;if(e instanceof F&&(t=this._computePipelineCache),e instanceof U&&(t=this._renderPipelineCache),!t)throw new Error(`${this}`);if(!t[e.hash])throw new Error(`${this}: ${e} matched incorrect entry`);return t}_hashComputePipeline(e){let{type:t}=this.device;return`${t}/C/${this._getHash(e.shader.source)}SL${this._getHash(JSON.stringify(e.shaderLayout))}`}_hashRenderPipeline(e){let t=e.vs?this._getHash(e.vs.source):0,i=e.fs?this._getHash(e.fs.source):0,s=this._getWebGLVaryingHash(e),n=this._getHash(JSON.stringify(e.shaderLayout)),o=this._getHash(JSON.stringify(e._uniformBlockLayouts)),c=this._getHash(JSON.stringify(e.bufferLayout)),{type:u}=this.device;if(u===`webgl`){let h=this._getHash(JSON.stringify(e.parameters));return`${u}/R/${t}/${i}V${s}T${e.topology}P${h}SL${n}UBL${o}BL${c}`}else{let p=this._getHash(JSON.stringify({vertexEntryPoint:e.vertexEntryPoint,fragmentEntryPoint:e.fragmentEntryPoint})),g=this._getHash(JSON.stringify(e.parameters)),B=this._getWebGPUAttachmentHash(e);return`${u}/R/${t}/${i}V${s}T${e.topology}EP${p}P${g}SL${n}BL${c}A${B}`}}_hashSharedRenderPipeline(e){return`webgl/S/${e.vs?this._getHash(e.vs.source):0}/${e.fs?this._getHash(e.fs.source):0}V${this._getWebGLVaryingHash(e)}`}_getHash(e){return this._hashes[e]===void 0&&(this._hashes[e]=this._hashCounter++),this._hashes[e]}_getWebGLVaryingHash(e){let{varyings:t=[],bufferMode:i=null}=e;return this._getHash(JSON.stringify({varyings:t,bufferMode:i}))}_getWebGPUAttachmentHash(e){let t=e.colorAttachmentFormats??[this.device.preferredColorFormat],i=e.depthStencilAttachmentFormat??(e.parameters?.depthWriteEnabled?this.device.preferredDepthFormat:null);return this._getHash(JSON.stringify({colorAttachmentFormats:t,depthStencilAttachmentFormat:i}))}};var Ze=class r$17{static defaultProps=r({},X.defaultProps);static getDefaultShaderFactory(e){let t=e.getModuleData(`@luma.gl/core`);return t.defaultShaderFactory||=new r$17(e),t.defaultShaderFactory}device;_cache={};get[Symbol.toStringTag](){return`ShaderFactory`}toString(){return`${this[Symbol.toStringTag]}(${this.device.id})`}constructor(e){this.device=e}createShader(e){if(!this.device.props._cacheShaders)return this.device.createShader(e);let t=this._hashShader(e),i=this._cache[t];if(i)i.useCount++,this.device.props.debugFactories&&f.log(3,`${this}: Reusing shader ${i.resource.id} count=${i.useCount}`)();else{let s$6=this.device.createShader(s(r({},e),{id:e.id?`${e.id}-cached`:void 0}));this._cache[t]=i={resource:s$6,useCount:1},this.device.props.debugFactories&&f.log(3,`${this}: Created new shader ${s$6.id}`)()}return i.resource}release(e){if(!this.device.props._cacheShaders){e.destroy();return}let t=this._hashShader(e),i=this._cache[t];if(i)if(i.useCount--,i.useCount===0)this.device.props._destroyShaders&&(delete this._cache[t],i.resource.destroy(),this.device.props.debugFactories&&f.log(3,`${this}: Releasing shader ${e.id}, destroyed`)());else{if(i.useCount<0)throw new Error(`ShaderFactory: Shader ${e.id} released too many times`);this.device.props.debugFactories&&f.log(3,`${this}: Releasing shader ${e.id} count=${i.useCount}`)()}}_hashShader(e){return`${e.stage}:${e.source}`}};function Qt(r,e,t){let i=r.bindings.find(s=>s.name===e||`${s.name.toLocaleLowerCase()}uniforms`===e.toLocaleLowerCase());return!i&&!t?.ignoreWarnings&&f.warn(`Binding ${e} not set: Not found in shader layout.`)(),i||null}function ci(r$18,e){if(!e)return{};if(fi(e))return Object.fromEntries(Object.entries(e).map(([s,n])=>[Number(s),r({},n)]));let t={};for(let[i,s]of Object.entries(e)){let o=Qt(r$18,i)?.group??0;t[o]||={},t[o][i]=s}return t}function ui(r){let e={};for(let t of Object.values(r))Object.assign(e,t);return e}function fi(r){let e=Object.keys(r);return e.length>0&&e.every(t=>/^\d+$/.test(t))}var et=class r$19 extends l{static defaultClearColor=[0,0,0,1];static defaultClearDepth=1;static defaultClearStencil=0;get[Symbol.toStringTag](){return`RenderPass`}constructor(e,t,i=r$19.defaultProps){t=r$19.normalizeProps(e,t),super(e,t,i)}static normalizeProps(e,t){return t}static defaultProps=s(r({},l.defaultProps),{framebuffer:null,resolveTargets:void 0,parameters:void 0,clearColor:r$19.defaultClearColor,clearColors:void 0,clearDepth:r$19.defaultClearDepth,clearStencil:r$19.defaultClearStencil,depthReadOnly:!1,stencilReadOnly:!1,discard:!1,occlusionQuerySet:void 0,timestampQuerySet:void 0,beginTimestampIndex:void 0,endTimestampIndex:void 0})};var tt=class r$20 extends l{get[Symbol.toStringTag](){return`CommandEncoder`}_timeProfilingQuerySet=null;_timeProfilingSlotCount=0;_gpuTimeMs;constructor(e,t){super(e,t,r$20.defaultProps),this._timeProfilingQuerySet=t.timeProfilingQuerySet??null,this._timeProfilingSlotCount=0,this._gpuTimeMs=void 0}async resolveTimeProfilingQuerySet(){if(this._gpuTimeMs=void 0,!this._timeProfilingQuerySet)return;let e=Math.floor(this._timeProfilingSlotCount/2);if(e<=0)return;let t=e*2,i=await this._timeProfilingQuerySet.readResults({firstQuery:0,queryCount:t}),s=0n;for(let n=0;n<t;n+=2)s+=i[n+1]-i[n];this._gpuTimeMs=Number(s)/1e6}getTimeProfilingSlotCount(){return this._timeProfilingSlotCount}getTimeProfilingQuerySet(){return this._timeProfilingQuerySet}_applyTimeProfilingToPassProps(e){let t=e||{};if(!this._supportsTimestampQueries()||!this._timeProfilingQuerySet||t.timestampQuerySet!==void 0||t.beginTimestampIndex!==void 0||t.endTimestampIndex!==void 0)return t;let i=this._timeProfilingSlotCount;return i+1>=this._timeProfilingQuerySet.props.count?t:(this._timeProfilingSlotCount+=2,s(r({},t),{timestampQuerySet:this._timeProfilingQuerySet,beginTimestampIndex:i,endTimestampIndex:i+1}))}_supportsTimestampQueries(){return this.device.features.has(`timestamp-query`)}static defaultProps=s(r({},l.defaultProps),{measureExecutionTime:void 0,timeProfilingQuerySet:void 0})};var rt=class r$21 extends l{get[Symbol.toStringTag](){return`CommandBuffer`}constructor(e,t){super(e,t,r$21.defaultProps)}static defaultProps=r({},l.defaultProps)};var it=class r$22 extends l{static defaultProps=s(r({},l.defaultProps),{shaderLayout:void 0,bufferLayout:[]});get[Symbol.toStringTag](){return`VertexArray`}maxVertexAttributes;indexBuffer=null;attributes;constructor(e,t){super(e,t,r$22.defaultProps),this.maxVertexAttributes=e.limits.maxVertexAttributes,this.attributes=new Array(this.maxVertexAttributes).fill(null)}getBufferSlot(e){return null}getDrawValidationError(){return null}setConstantWebGL(e,t){this.device.reportError(new Error(`constant attributes not supported`),this)()}};var st=class r$23 extends l{static defaultProps=s(r({},l.defaultProps),{layout:void 0,buffers:{}});get[Symbol.toStringTag](){return`TransformFeedback`}constructor(e,t){super(e,t,r$23.defaultProps)}};var nt=class r$24 extends l{get[Symbol.toStringTag](){return`QuerySet`}constructor(e,t){super(e,t,r$24.defaultProps)}static defaultProps=s(r({},l.defaultProps),{type:void 0,count:void 0})};var ot=class r$25 extends l{static defaultProps=r({},l.defaultProps);get[Symbol.toStringTag](){return`Fence`}constructor(e,t={}){super(e,t,r$25.defaultProps)}};function he(r){let t=mi[me(r)];if(!t)throw new Error(`Unsupported variable shader type: ${r}`);return t}function Yt(r){let t=hi[Xt(r)];if(!t)throw new Error(`Unsupported attribute shader type: ${r}`);let[i,s]=t,n=i===`i32`||i===`u32`,o=i!==`u32`;return{primitiveType:i,components:s,byteLength:di[i]*s,integer:n,signed:o}}var at=class{getVariableShaderTypeInfo(e){return he(e)}getAttributeShaderTypeInfo(e){return Yt(e)}makeShaderAttributeType(e,t){return li(e,t)}resolveAttributeShaderTypeAlias(e){return Xt(e)}resolveVariableShaderTypeAlias(e){return me(e)}};function li(r,e){return e===1?r:`vec${e}<${r}>`}function Xt(r){return pi[r]||r}function me(r){return gi[r]||r}var J=new at;var di={f32:4,f16:2,i32:4,u32:4};var hi={f32:[`f32`,1],"vec2<f32>":[`f32`,2],"vec3<f32>":[`f32`,3],"vec4<f32>":[`f32`,4],f16:[`f16`,1],"vec2<f16>":[`f16`,2],"vec3<f16>":[`f16`,3],"vec4<f16>":[`f16`,4],i32:[`i32`,1],"vec2<i32>":[`i32`,2],"vec3<i32>":[`i32`,3],"vec4<i32>":[`i32`,4],u32:[`u32`,1],"vec2<u32>":[`u32`,2],"vec3<u32>":[`u32`,3],"vec4<u32>":[`u32`,4]};var mi={f32:{type:`f32`,components:1},f16:{type:`f16`,components:1},i32:{type:`i32`,components:1},u32:{type:`u32`,components:1},"vec2<f32>":{type:`f32`,components:2},"vec3<f32>":{type:`f32`,components:3},"vec4<f32>":{type:`f32`,components:4},"vec2<f16>":{type:`f16`,components:2},"vec3<f16>":{type:`f16`,components:3},"vec4<f16>":{type:`f16`,components:4},"vec2<i32>":{type:`i32`,components:2},"vec3<i32>":{type:`i32`,components:3},"vec4<i32>":{type:`i32`,components:4},"vec2<u32>":{type:`u32`,components:2},"vec3<u32>":{type:`u32`,components:3},"vec4<u32>":{type:`u32`,components:4},"mat2x2<f32>":{type:`f32`,components:4},"mat2x3<f32>":{type:`f32`,components:6},"mat2x4<f32>":{type:`f32`,components:8},"mat3x2<f32>":{type:`f32`,components:6},"mat3x3<f32>":{type:`f32`,components:9},"mat3x4<f32>":{type:`f32`,components:12},"mat4x2<f32>":{type:`f32`,components:8},"mat4x3<f32>":{type:`f32`,components:12},"mat4x4<f32>":{type:`f32`,components:16},"mat2x2<f16>":{type:`f16`,components:4},"mat2x3<f16>":{type:`f16`,components:6},"mat2x4<f16>":{type:`f16`,components:8},"mat3x2<f16>":{type:`f16`,components:6},"mat3x3<f16>":{type:`f16`,components:9},"mat3x4<f16>":{type:`f16`,components:12},"mat4x2<f16>":{type:`f16`,components:8},"mat4x3<f16>":{type:`f16`,components:12},"mat4x4<f16>":{type:`f16`,components:16},"mat2x2<i32>":{type:`i32`,components:4},"mat2x3<i32>":{type:`i32`,components:6},"mat2x4<i32>":{type:`i32`,components:8},"mat3x2<i32>":{type:`i32`,components:6},"mat3x3<i32>":{type:`i32`,components:9},"mat3x4<i32>":{type:`i32`,components:12},"mat4x2<i32>":{type:`i32`,components:8},"mat4x3<i32>":{type:`i32`,components:12},"mat4x4<i32>":{type:`i32`,components:16},"mat2x2<u32>":{type:`u32`,components:4},"mat2x3<u32>":{type:`u32`,components:6},"mat2x4<u32>":{type:`u32`,components:8},"mat3x2<u32>":{type:`u32`,components:6},"mat3x3<u32>":{type:`u32`,components:9},"mat3x4<u32>":{type:`u32`,components:12},"mat4x2<u32>":{type:`u32`,components:8},"mat4x3<u32>":{type:`u32`,components:12},"mat4x4<u32>":{type:`u32`,components:16}};var pi={vec2i:`vec2<i32>`,vec3i:`vec3<i32>`,vec4i:`vec4<i32>`,vec2u:`vec2<u32>`,vec3u:`vec3<u32>`,vec4u:`vec4<u32>`,vec2f:`vec2<f32>`,vec3f:`vec3<f32>`,vec4f:`vec4<f32>`,vec2h:`vec2<f16>`,vec3h:`vec3<f16>`,vec4h:`vec4<f16>`};var gi={vec2i:`vec2<i32>`,vec3i:`vec3<i32>`,vec4i:`vec4<i32>`,vec2u:`vec2<u32>`,vec3u:`vec3<u32>`,vec4u:`vec4<u32>`,vec2f:`vec2<f32>`,vec3f:`vec3<f32>`,vec4f:`vec4<f32>`,vec2h:`vec2<f16>`,vec3h:`vec3<f16>`,vec4h:`vec4<f16>`,mat2x2f:`mat2x2<f32>`,mat2x3f:`mat2x3<f32>`,mat2x4f:`mat2x4<f32>`,mat3x2f:`mat3x2<f32>`,mat3x3f:`mat3x3<f32>`,mat3x4f:`mat3x4<f32>`,mat4x2f:`mat4x2<f32>`,mat4x3f:`mat4x3<f32>`,mat4x4f:`mat4x4<f32>`,mat2x2i:`mat2x2<i32>`,mat2x3i:`mat2x3<i32>`,mat2x4i:`mat2x4<i32>`,mat3x2i:`mat3x2<i32>`,mat3x3i:`mat3x3<i32>`,mat3x4i:`mat3x4<i32>`,mat4x2i:`mat4x2<i32>`,mat4x3i:`mat4x3<i32>`,mat4x4i:`mat4x4<i32>`,mat2x2u:`mat2x2<u32>`,mat2x3u:`mat2x3<u32>`,mat2x4u:`mat2x4<u32>`,mat3x2u:`mat3x2<u32>`,mat3x3u:`mat3x3<u32>`,mat3x4u:`mat3x4<u32>`,mat4x2u:`mat4x2<u32>`,mat4x3u:`mat4x3<u32>`,mat4x4u:`mat4x4<u32>`,mat2x2h:`mat2x2<f16>`,mat2x3h:`mat2x3<f16>`,mat2x4h:`mat2x4<f16>`,mat3x2h:`mat3x2<f16>`,mat3x3h:`mat3x3<f16>`,mat3x4h:`mat3x4<f16>`,mat4x2h:`mat4x2<f16>`,mat4x3h:`mat4x3<f16>`,mat4x4h:`mat4x4<f16>`};function ut(r$26,e={}){let t=r({},r$26),i=e.layout??`std140`,s={},n=0;for(let[o,c]of Object.entries(t))n=ct(s,o,c,n,i);return n=_(n,I(t,i)),{layout:i,byteLength:n*4,uniformTypes:t,fields:s}}function q(r,e){let t=me(r),i=he(t),s=/^mat(\d)x(\d)<.+>$/.exec(t);if(s){let o=Number(s[1]),c=Number(s[2]),u=Jt(c,t,i.type,e),h=yi(u.size,u.alignment,e);return{alignment:u.alignment,size:o*h,components:o*c,columns:o,rows:c,columnStride:h,shaderType:t,type:i.type}}let n=/^vec(\d)<.+>$/.exec(t);return n?Jt(Number(n[1]),t,i.type,e):{alignment:1,size:1,components:1,columns:1,rows:1,columnStride:1,shaderType:t,type:i.type}}function ft(r){return!!r&&typeof r==`object`&&!Array.isArray(r)}function ct(r$27,e,t,i,s){if(typeof t==`string`){let n=q(t,s),o=_(i,n.alignment);return r$27[e]=r({offset:o},n),o+n.size}if(Array.isArray(t)){if(Array.isArray(t[0]))throw new Error(`Nested arrays are not supported for ${e}`);let n=t[0],o=t[1],c=Kt(n,s),u=_(i,I(t,s));for(let h=0;h<o;h++)ct(r$27,`${e}[${h}]`,n,u+h*c,s);return u+c*o}if(ft(t)){let n=I(t,s),o=_(i,n);for(let[c,u]of Object.entries(t))o=ct(r$27,`${e}.${c}`,u,o,s);return _(o,n)}throw new Error(`Unsupported CompositeShaderType for ${e}`)}function qt(r,e){if(typeof r==`string`)return q(r,e).size;if(Array.isArray(r)){let i=r[0],s=r[1];if(Array.isArray(i))throw new Error(`Nested arrays are not supported`);return Kt(i,e)*s}let t=0;for(let i of Object.values(r)){let s=i;t=_(t,I(s,e)),t+=qt(s,e)}return _(t,I(r,e))}function I(r,e){if(typeof r==`string`)return q(r,e).alignment;if(Array.isArray(r)){let i=r[0],s=I(i,e);return Zt(e)?Math.max(s,4):s}let t=1;for(let i of Object.values(r)){let s=I(i,e);t=Math.max(t,s)}return Ei(e)?Math.max(t,4):t}function Jt(r,e,t,i){return{alignment:r===2?2:4,size:r===3?3:r,components:r,columns:1,rows:r,columnStride:r===3?3:r,shaderType:e,type:t}}function Kt(r,e){return bi(qt(r,e),I(r,e),e)}function bi(r,e,t){return _(r,Zt(t)?4:e)}function yi(r,e,t){return t===`std140`?4:_(r,e)}function Zt(r){return r===`std140`||r===`wgsl-uniform`}function Ei(r){return r===`std140`||r===`wgsl-uniform`}var pe;function lt(r){return(!pe||pe.byteLength<r)&&(pe=new ArrayBuffer(r)),pe}function _i(r,e){return new r(lt(r.BYTES_PER_ELEMENT*e),0,e)}function xi(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function k(r){return Array.isArray(r)?r.length===0||typeof r[0]==`number`:xi(r)}var ge=class{layout;constructor(e){this.layout=e}has(e){return!!this.layout.fields[e]}get(e){let t=this.layout.fields[e];return t?{offset:t.offset,size:t.size}:void 0}getFlatUniformValues(e){let t={};for(let[i,s]of Object.entries(e)){let n=this.layout.uniformTypes[i];n?this._flattenCompositeValue(t,i,n,s):this.layout.fields[i]&&(t[i]=s)}return t}getData(e){let t=lt(this.layout.byteLength);new Uint8Array(t,0,this.layout.byteLength).fill(0);let i={i32:new Int32Array(t),u32:new Uint32Array(t),f32:new Float32Array(t),f16:new Uint16Array(t)},s=this.getFlatUniformValues(e);for(let[n,o]of Object.entries(s))this._writeLeafValue(i,n,o);return new Uint8Array(t,0,this.layout.byteLength)}_flattenCompositeValue(e,t,i,s){if(s!==void 0){if(typeof i==`string`||this.layout.fields[t]){e[t]=s;return}if(Array.isArray(i)){let n=i[0],o=i[1];if(Array.isArray(n))throw new Error(`Nested arrays are not supported for ${t}`);if(typeof n==`string`&&k(s)){this._flattenPackedArray(e,t,n,o,s);return}if(!Array.isArray(s)){f.warn(`Unsupported uniform array value for ${t}:`,s)();return}for(let c=0;c<Math.min(s.length,o);c++){let u=s[c];u!==void 0&&this._flattenCompositeValue(e,`${t}[${c}]`,n,u)}return}if(ft(i)&&Ti(s)){for(let[n,o]of Object.entries(s)){if(o===void 0)continue;let c=`${t}.${n}`;this._flattenCompositeValue(e,c,i[n],o)}return}f.warn(`Unsupported uniform value for ${t}:`,s)()}}_flattenPackedArray(e,t,i,s,n){let o=n,u=q(i,this.layout.layout).components;for(let h=0;h<s;h++){let p=h*u;if(p>=o.length)break;u===1?e[`${t}[${h}]`]=Number(o[p]):e[`${t}[${h}]`]=wi(n,p,p+u)}}_writeLeafValue(e,t,i){let s=this.layout.fields[t];if(!s){f.warn(`Uniform ${t} not found in layout`)();return}let{type:n,components:o,columns:c,rows:u,offset:h,columnStride:p}=s,g=e[n];if(o===1){g[h]=Number(i);return}let B=i;if(c===1){for(let E=0;E<o;E++)g[h+E]=Number(B[E]??0);return}let ye=0;for(let E=0;E<c;E++){let z=h+E*p;for(let H=0;H<u;H++)g[z+H]=Number(B[ye++]??0)}}};function Ti(r){return!!r&&typeof r==`object`&&!Array.isArray(r)&&!ArrayBuffer.isView(r)}function wi(r,e,t){return Array.prototype.slice.call(r,e,t)}var Pi=128;function er(r,e,t=16){if(r===e)return!0;let i=r,s=e;if(!k(i)||!k(s)||i.length!==s.length)return!1;let n=Math.min(t,Pi);if(i.length>n)return!1;for(let o=0;o<i.length;++o)if(s[o]!==i[o])return!1;return!0}function tr(r){return k(r)?r.slice():r}var be=class{name;uniforms={};modifiedUniforms={};modified=!0;bindingLayout={};needsRedraw=`initialized`;constructor(e){if(this.name=e?.name||`unnamed`,e?.name&&e?.shaderLayout){let t=e?.shaderLayout.bindings?.find(s=>s.type===`uniform`&&s.name===e?.name);if(!t)throw new Error(e?.name);let i=t;for(let s of i.uniforms||[])this.bindingLayout[s.name]=s}}setUniforms(e){for(let[t,i]of Object.entries(e))this._setUniform(t,i)&&!this.needsRedraw&&this.setNeedsRedraw(`${this.name}.${t}=${i}`)}setNeedsRedraw(e){this.needsRedraw=this.needsRedraw||e}getAllUniforms(){return this.modifiedUniforms={},this.needsRedraw=!1,this.uniforms||{}}_setUniform(e,t){return er(this.uniforms[e],t)?!1:(this.uniforms[e]=tr(t),this.modifiedUniforms[e]=!0,this.modified=!0,!0)}};var Si=1024;var dt=class{device;uniformBlocks=new Map;shaderBlockLayouts=new Map;shaderBlockWriters=new Map;uniformBuffers=new Map;constructor(e,t){this.device=e;for(let[i,s]of Object.entries(t)){let n=i,o=ut(s.uniformTypes??{},{layout:s.layout??Ri(e)}),c=new ge(o);this.shaderBlockLayouts.set(n,o),this.shaderBlockWriters.set(n,c);let u=new be({name:i});u.setUniforms(c.getFlatUniformValues(s.defaultUniforms||{})),this.uniformBlocks.set(n,u)}}destroy(){for(let e of this.uniformBuffers.values())e.destroy()}setUniforms(e,t){for(let[i,s]of Object.entries(e)){let n=i,c=this.shaderBlockWriters.get(n)?.getFlatUniformValues(s||{});this.uniformBlocks.get(n)?.setUniforms(c||{})}this.updateUniformBuffers(t)}getUniformBufferByteLength(e){let t=this.shaderBlockLayouts.get(e)?.byteLength||0;return Math.max(t,Si)}getUniformBufferData(e){let t=this.uniformBlocks.get(e)?.getAllUniforms()||{};return this.shaderBlockWriters.get(e)?.getData(t)||new Uint8Array(0)}createUniformBuffer(e,t){t&&this.setUniforms(t);let i=this.getUniformBufferByteLength(e),s=this.device.createBuffer({usage:P.UNIFORM|P.COPY_DST,byteLength:i}),n=this.getUniformBufferData(e);return s.write(n),s}getManagedUniformBuffer(e){if(!this.uniformBuffers.get(e)){let t=this.getUniformBufferByteLength(e),i=this.device.createBuffer({usage:P.UNIFORM|P.COPY_DST,byteLength:t});this.uniformBuffers.set(e,i)}return this.uniformBuffers.get(e)}updateUniformBuffers(e){let t=!1;for(let i of this.uniformBlocks.keys()){let s=this.updateUniformBuffer(i,e);t||=s}return t&&f.log(3,`UniformStore.updateUniformBuffers(): ${t}`)(),t}updateUniformBuffer(e,t){let i=this.uniformBlocks.get(e),s=this.uniformBuffers.get(e),n=!1;if(s&&i?.needsRedraw){n||=i.needsRedraw;let o=this.getUniformBufferData(e);if(s=this.uniformBuffers.get(e),s&&(t?this.device.writeBufferViaCommandEncoder(t,s,o):s.write(o)),f.level>=4){let c=this.uniformBlocks.get(e)?.getAllUniforms();f.log(4,`Writing to uniform buffer ${String(e)}`,o,c)()}}return n}};function Ri(r){return r.type===`webgpu`?`wgsl-uniform`:`std140`}function vi(r){return r.attributes?r.attributes.map(e=>e.attribute):[r.name]}function Ci(r){return Object.fromEntries(r.attributes.map(e=>[e.name,e.location]))}function Bi(r){let e=1/0;for(let t of r)t!==void 0&&(e=Math.min(e,t));return e}function ht(r,e,t){Ai(e);let i=new Map;for(let s of e){let n=Li(s);if(s.attributes)for(let o of s.attributes)i.has(o.attribute)||i.set(o.attribute,{bufferName:s.name,stepMode:s.stepMode,vertexFormat:o.format,byteOffset:o.byteOffset,byteStride:n});else s.format&&!i.has(s.name)&&i.set(s.name,{bufferName:s.name,stepMode:s.stepMode,vertexFormat:s.format,byteOffset:0,byteStride:n})}return r.attributes.map(s=>{let n=i.get(s.name);!n&&t?.warnOnMissingBufferLayout&&f.warn(`layout for attribute "${s.name}" not present in buffer layout`)();let o=J.getAttributeShaderTypeInfo(s.type),c=n?.vertexFormat||S.getCompatibleVertexFormat(o);return{attributeName:s.name,bufferName:n?.bufferName||s.name,location:s.location,vertexFormat:c,byteOffset:n?.byteOffset??0,byteStride:n?.byteStride??S.getVertexFormatInfo(c).byteLength,stepMode:n?.stepMode||s.stepMode||(s.name.startsWith(`instance`)?`instance`:`vertex`)}}).sort((s,n)=>s.location-n.location)}function Ai(r){for(let e of r)(e.attributes&&e.format||!e.attributes&&!e.format)&&f.warn(`BufferLayout ${e.name} must have either 'attributes' or 'format' field`)()}function Li(r){if(typeof r.byteStride==`number`)return r.byteStride;if(r.attributes){let e=0;for(let t of r.attributes)e+=S.getVertexFormatInfo(t.format).byteLength;return e}return S.getVertexFormatInfo(r.format).byteLength}function Di(r,e){let t={},i=ht(r,e,{warnOnMissingBufferLayout:!0});for(let s of i){let n=Ui(r,s);t[s.attributeName]=n}return t}function Ui(r,e){let t=Ii(r,e.attributeName),i=J.getAttributeShaderTypeInfo(t.type),s=e.vertexFormat,n=S.getVertexFormatInfo(s);return{attributeName:e.attributeName,bufferName:e.bufferName,location:t.location,shaderType:t.type,primitiveType:i.primitiveType,shaderComponents:i.components,vertexFormat:s,bufferDataType:n.type,bufferComponents:n.components,normalized:n.normalized,integer:i.integer,stepMode:e.stepMode,byteOffset:e.byteOffset,byteStride:e.byteStride}}function Ii(r,e){let t=r.attributes.find(i=>i.name===e);return t||f.warn(`shader layout attribute "${e}" not present in shader`)(),t||null}export{ys as $,Ze as A,jr as B,Ve as C,Y as D,X as E,et as F,sr as G,ot as H,f as I,ui as J,st as K,he as L,ci as M,de as N,Ye as O,dt as P,x as Q,it as R,U as S,Wt as T,qe as U,nt as V,rt as W,v as X,ut as Y,vi as Z,P as _,Ci as a,Re as b,Fe as c,It as d,ze as et,J as f,Ne as g,N as h,C as i,_i as j,Yr as k,Ge as l,Ke as m,$e as n,Di as o,Je as p,tt as q,Bi as r,F as s,$ as t,He as u,Qe as v,We as w,S as x,Qt as y,je as z};
13
+ //# debugId=ca0a6656-c97c-5905-a85d-cf67d984d8de
@@ -0,0 +1,3 @@
1
+ import"./main.js";import"./chunk-CHv413eO.js";import"./chunk-C7x5ioh5.js";import{$ as Ce,at as ce,ct as he,et as Le,it as be,lt as ve,nt as _e,ot as de,rt as ae,st as fe,tt as Se,ut as ye}from"./chunk-DIEcQ4a-.js";export{ae as arithmetic,ce as dot,fe as equalAll,de as extent,he as fround,ye as gather,ve as interleave,Se as length,_e as segmentedMap,be as select,Le as sequence,Ce as swizzle};
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="922345eb-96c9-5322-9ae5-eee9a4bfc7d7")}catch(e){}}();
3
+ //# debugId=922345eb-96c9-5322-9ae5-eee9a4bfc7d7
@@ -0,0 +1,3 @@
1
+ import"./main.js";import{$ as Fn,$a as lp,$i as eu,$n as Te,$o as sg,$r as Yu,$s as yr,$t as Ml,A as Cu,Aa as iu,Ai as cc,An as Qh,Ao as pl,Ar as Wm,As as vr,At as Jf,B as Eg,Ba as jt,Bi as de,Bn as Rm,Bo as qm,Br as Xr,Bs as xi,Bt as Ki,C as Ch,Ca as ia,Ci as bi,Cn as Ou,Co as ol,Cr as Vo,Cs as vc,Ct as Hu,D as Co,Da as il,Di as br,Dn as Pr,Do as ou,Dr as Wf,Ds as vm,Dt as Ir,E as Cn,Ea as ii,Ei as bo,En as Pn,Eo as op,Er as Vu,Es as vl,Et as In,F as Dn,Fa as jl,Fi as co,Fn as Qp,Fo as pu,Fr as Xh,Fs as wo,Ft as Jo,G as Ep,Ga as ko,Gi as ea,Gn as Ru,Go as qu,Gr as Yh,Gs as xu,Gt as Ll,H as El,Ha as ki,Hi as dl,Hn as Ro,Ho as qr,Hr as Xu,Hs as xm,Ht as Km,I as Do,Ia as jm,Ii as cp,In as Qr,Io as qf,Ir as Xi,Is as wr,It as Jt,J as Eu,Ja as la,Ji as ei,Jn as Sm,Jo as rg,Jr as Ym,Js as yi,Jt as Lo,K as Er,Ka as kr,Ki as ec,Kn as Si,Ko as ra,Kr as Yi,Ks as yc,Kt as Lm,L as Dr,La as jn,Li as ct,Ln as Qt,Lo as qh,Lr as Xl,Ls as wt,Lt as K,M as Dh,Ma as jf,Mi as ch,Mn as Qm,Mo as pn,Mr as Ws,Ms as wh,Mt as Ji,N as Dl,Na as jh,Ni as cl,Nn as Qn,No as po,Nr as Wu,Ns as wl,Nt as Jl,O as Cp,Oa as ip,Oi as bu,On as Pu,Oo as pc,Or as Wh,Os as vn,Ot as It,P as Dm,Pa as ji,Pi as cn,Pn as Qo,Po as pp,Pr as Xf,Ps as wm,Pt as Jm,Q as Fm,Qa as lo,Qi as es,Qn as Su,Qo as sc,Qr as Yt,Qs as yo,Qt as Mi,R as Ds,Ra as jo,Ri as cu,Rn as Re,Ro as qi,Rr as Xm,Rs as wu,Rt as Kf,S as C,Sa as hu,Si as bh,Sn as Ot,So as oc,Sr as Vn,Ss as uu,St as Hs,T as Cm,Ta as ig,Ti as bm,Tn as Pm,To as oo,Tr as Vs,Ts as vi,Tt as Im,U as Em,Ua as kl,Ui as dp,Un as Rr,Uo as qs,Ur as Ye,Us as xo,Ut as Ko,V as Eh,Va as kf,Vi as dh,Vn as Rn,Vo as qo,Vr as Xs,Vs as xl,Vt as Kl,W as Eo,Wa as km,Wi as du,Wn as Rt,Wo as qt,Wr as Yf,Ws as xr,Wt as Kr,X as Fh,Xa as lg,Xi as en,Xn as So,Xo as rp,Xr as Yr,Xs as ym,Xt as Lu,Y as Ff,Ya as lc,Yi as el,Yn as Sn,Yo as rl,Yr as Yo,Ys as yl,Yt as Lr,Z as Fl,Za as ll,Zi as ep,Zn as Sr,Zo as sa,Zr as Ys,Zs as yn,Zt as Me,_ as Bm,_a as hl,_i as al,_n as Ol,_o as nn,_r as Uu,_s as ul,_t as Hh,a as $o,aa as fu,ac as zm,ai as Zr,an as Mu,ao as mi,ar as Tr,as as ta,at as Gf,b as Bs,ba as hp,bi as at,bn as Oo,bo as nu,br as Vl,bs as up,bt as Ho,c as Ai,ca as gl,cc as zs,ci as _h,cn as Nm,co as mn,cr as Uf,cs as ti,ct as Gm,d as Ao,da as gp,di as _o,dn as Nr,do as mu,dr as Um,ds as tp,dt as Gr,ea as fc,ec as yu,ei as Zf,en as Mm,eo as lt,er as Th,es as si,et as Fo,f as Ar,fa as gr,fi as _r,fn as Ns,fo as na,fr as Un,fs as ts,ft as Gs,g as Bl,ga as hh,gi as ac,gn as Oh,go as nl,gr as Ut,gs as uh,gt as Hf,h as Bh,ha as hc,hi as aa,hn as Of,ho as ni,hr as Us,hs as uc,ht as He,i as $m,ia as fp,ic as zl,ii as Zo,in as Mt,io as mh,ir as To,is as su,it as Fu,j as Df,ja as je,ji as cg,jn as Ql,jo as pm,jr as Wr,js as vu,jt as Jh,k as Cr,ka as is,ki as ca,kn as Qf,ko as ph,kr as Wl,ks as vo,kt as Iu,l as Al,la as gm,lc as zu,li as _l,ln as Nn,lo as mo,lr as Uh,ls as tl,lt as Gn,m as Bf,ma as ha,mi as _u,mn as Nu,mo as ng,mr as Ur,ms as tu,mt as Gu,n as $i,na as fl,nc as zf,ni as Zl,nn as Mo,no as mc,nr as Tl,ns as sp,nt as Fs,o as $r,oa as gh,oc as zn,oi as Zs,on as Nf,oo as ml,or as Tu,os as tc,ot as Gi,p as Au,pa as gu,pi as _t,pn as Nt,po as nc,pr as Uo,ps as tt,pt as Gt,q as Et,qa as ku,qi as eg,qn as Sl,qo as rc,qr as Yl,qs as yh,qt as Ln,r as $l,ra as fo,rc as zh,ri as Zm,rn as Mr,ro as me,rr as Tm,rs as ss,rt as Ft,s as Ah,sa as gi,sc as zo,si as Zt,sn as Nl,so as mm,sr as UM,ss as tg,st as Gl,t as $f,ta as fh,tc as ze,ti as Zh,tn as Mn,to as lu,tr as Ti,ts as sl,tt as Fr,u as Am,ua as go,ui as _m,un as No,uo as mr,ur as Ul,us as tn,ut as Go,v as Bn,va as hn,vi as ao,vn as Om,vo as np,vr as Vf,vs as un,vt as Hl,w as Cl,wa as ic,wi as bl,wn as Pl,wo as on,wr as Vr,ws as vh,wt as Il,x as Bu,xa as ht,xi as au,xn as Os,xo as oa,xr as Vm,xs as ut,xt as Hr,y as Bo,ya as ho,yi as ap,yn as On,yo as ns,yr as Vi,ys as uo,yt as Hm,z as Du,za as jr,zi as dc,zn as Rl,zo as ql,zr as Xo,zs as xh,zt as Kh}from"./chunk-sqKVpUVP.js";export{Uu as ACESFilmicToneMapping,gi as AddEquation,np as AddOperation,qu as AdditiveAnimationBlendMode,Ru as AdditiveBlending,Ou as AgXToneMapping,Wu as AlphaFormat,pp as AlwaysCompare,ho as AlwaysDepth,uh as AlwaysStencilFunc,xl as AmbientLight,Rl as AnimationAction,ns as AnimationClip,Uh as AnimationLoader,Qh as AnimationMixer,Kh as AnimationObjectGroup,Dh as AnimationUtils,Vo as ArcCurve,Al as ArrayCamera,bu as ArrowHelper,ch as AttachedBindMode,wl as Audio,Jh as AudioAnalyser,Qr as AudioContext,Yh as AudioListener,Xh as AudioLoader,Tu as AxesHelper,Jt as BackSide,op as BasicDepthPacking,_m as BasicShadowMap,Ro as BatchedMesh,dl as BezierInterpolant,wr as Bone,ti as BooleanKeyframeTrack,hu as Box2,Nt as Box3,Mu as Box3Helper,Ki as BoxGeometry,yu as BoxHelper,ct as BufferAttribute,Ye as BufferGeometry,bl as BufferGeometryLoader,Vu as ByteType,Pn as Cache,Hs as Camera,vu as CameraHelper,wh as CanvasTexture,Fo as CapsuleGeometry,ko as CatmullRomCurve3,Nu as CineonToneMapping,Oo as CircleGeometry,jt as ClampToEdgeWrapping,au as Clock,Me as Color,Yr as ColorKeyframeTrack,tt as ColorManagement,rg as Compatibility,Ah as CompressedArrayTexture,Eh as CompressedCubeTexture,Bs as CompressedTexture,Fh as CompressedTextureLoader,Pr as ConeGeometry,jf as ConstantAlphaFactor,Kf as ConstantColorFactor,Eu as Controls,Tl as CubeCamera,Uo as CubeDepthTexture,Bn as CubeReflectionMapping,bi as CubeRefractionMapping,$i as CubeTexture,Oh as CubeTextureLoader,Xs as CubeUVReflectionMapping,Lr as CubicBezierCurve,Go as CubicBezierCurve3,hl as CubicInterpolant,Cu as CullFaceBack,Uf as CullFaceFront,gm as CullFaceFrontBack,Nf as CullFaceNone,un as Curve,Xo as CurvePath,Of as CustomBlending,Fu as CustomToneMapping,Ir as CylinderGeometry,lu as Cylindrical,Ns as Data3DTexture,Ds as DataArrayTexture,cn as DataTexture,Bh as DataTextureLoader,ph as DataUtils,Fm as DecrementStencilOp,Bm as DecrementWrapStencilOp,Cp as DefaultLoadingManager,Ln as DepthFormat,Ti as DepthStencilFormat,ei as DepthTexture,ip as DetachedBindMode,_l as DirectionalLight,xu as DirectionalLightHelper,ul as DiscreteInterpolant,Bo as DodecahedronGeometry,Fn as DoubleSide,qf as DstAlphaFactor,Zf as DstColorFactor,jm as DynamicCopyUsage,Ym as DynamicDrawUsage,$m as DynamicReadUsage,zo as EdgesGeometry,zs as EllipseCurve,up as EqualCompare,fo as EqualDepth,Gm as EqualStencilFunc,ta as EquirectangularReflectionMapping,na as EquirectangularRefractionMapping,yn as Euler,hn as EventDispatcher,Rr as ExternalTexture,qo as ExtrudeGeometry,Mn as FileLoader,yh as Float16BufferAttribute,Te as Float32BufferAttribute,qt as FloatType,Mo as Fog,yo as FogExp2,Th as FramebufferTexture,jn as FrontSide,yi as Frustum,Co as FrustumArray,iu as GLBufferAttribute,tg as GLSL1,Yu as GLSL3,dp as GreaterCompare,mo as GreaterDepth,mc as GreaterEqualCompare,po as GreaterEqualDepth,qm as GreaterEqualStencilFunc,Wm as GreaterStencilFunc,gu as GridHelper,mi as Group,Ch as HTMLTexture,Vn as HalfFloatType,pl as HemisphereLight,mu as HemisphereLightHelper,Yo as IcosahedronGeometry,Wh as ImageBitmapLoader,is as ImageLoader,vo as ImageUtils,Um as IncrementStencilOp,Om as IncrementWrapStencilOp,vi as InstancedBufferAttribute,Sl as InstancedBufferGeometry,nu as InstancedInterleavedBuffer,wo as InstancedMesh,xh as Int16BufferAttribute,vh as Int32BufferAttribute,mh as Int8BufferAttribute,Pl as IntType,Os as InterleavedBuffer,Ji as InterleavedBufferAttribute,Si as Interpolant,hh as InterpolateBezier,_r as InterpolateDiscrete,_o as InterpolateLinear,ao as InterpolateSmooth,sg as InterpolationSamplingMode,ig as InterpolationSamplingType,zm as InvertStencilOp,Vi as KeepStencilOp,tn as KeyframeTrack,To as LOD,Zo as LatheGeometry,Us as Layers,hp as LessCompare,uo as LessDepth,pc as LessEqualCompare,qi as LessEqualDepth,Hm as LessEqualStencilFunc,km as LessStencilFunc,Un as Light,yl as LightProbe,Nn as Line,uu as Line3,Ot as LineBasicMaterial,Dr as LineCurve,Ho as LineCurve3,cl as LineDashedMaterial,Lo as LineLoop,pn as LineSegments,_t as LinearFilter,qr as LinearInterpolant,Sm as LinearMipMapLinearFilter,Mm as LinearMipMapNearestFilter,zn as LinearMipmapLinearFilter,ia as LinearMipmapNearestFilter,vr as LinearSRGBColorSpace,Lu as LinearToneMapping,yr as LinearTransfer,Gt as Loader,Kr as LoaderUtils,Zr as LoadingManager,sp as LoopOnce,ap as LoopPingPong,rp as LoopRepeat,pm as MOUSE,Ut as Material,xm as MaterialBlending,Ml as MaterialLoader,Eg as MathUtils,cu as Matrix2,He as Matrix3,ze as Matrix4,kf as MaxEquation,Mt as Mesh,Dn as MeshBasicMaterial,Wr as MeshDepthMaterial,Xr as MeshDistanceMaterial,ol as MeshLambertMaterial,ll as MeshMatcapMaterial,al as MeshNormalMaterial,sl as MeshPhongMaterial,il as MeshPhysicalMaterial,Hr as MeshStandardMaterial,rl as MeshToonMaterial,Vf as MinEquation,gr as MirroredRepeatWrapping,tp as MixOperation,Pu as MultiplyBlending,ea as MultiplyOperation,Et as NearestFilter,ym as NearestMipMapLinearFilter,vm as NearestMipMapNearestFilter,qs as NearestMipmapLinearFilter,zu as NearestMipmapNearestFilter,Bu as NeutralToneMapping,cp as NeverCompare,co as NeverDepth,Vm as NeverStencilFunc,On as NoBlending,si as NoColorSpace,Im as NoNormalPacking,Sn as NoToneMapping,fc as NormalAnimationBlendMode,Xi as NormalBlending,Lm as NormalGAPacking,Pm as NormalRGPacking,fp as NotEqualCompare,go as NotEqualDepth,Xm as NotEqualStencilFunc,ji as NumberKeyframeTrack,at as Object3D,Hh as ObjectLoader,lp as ObjectSpaceNormalMap,Vr as OctahedronGeometry,Hf as OneFactor,ep as OneMinusConstantAlphaFactor,Qf as OneMinusConstantColorFactor,Yf as OneMinusDstAlphaFactor,Jf as OneMinusDstColorFactor,lo as OneMinusSrcAlphaFactor,Xf as OneMinusSrcColorFactor,ss as OrthographicCamera,jr as PCFShadowMap,Ff as PCFSoftShadowMap,vc as PMREMGenerator,Vs as Path,Rt as PerspectiveCamera,Cn as Plane,Gs as PlaneGeometry,Su as PlaneHelper,gl as PointLight,pu as PointLightHelper,Do as Points,Cr as PointsMaterial,_u as PolarGridHelper,Mi as PolyhedronGeometry,Zh as PositionalAudio,ht as PropertyBinding,Cl as PropertyMixer,Nr as QuadraticBezierCurve,Ur as QuadraticBezierCurve3,Ft as Quaternion,es as QuaternionKeyframeTrack,fl as QuaternionLinearInterpolant,Wl as R11_EAC_Format,ha as RED_GREEN_RGTC2_Format,hc as RED_RGTC1_Format,Df as REVISION,ca as RG11_EAC_Format,wm as RGBADepthPacking,Yt as RGBAFormat,Fl as RGBAIntegerFormat,sc as RGBA_ASTC_10x10_Format,tc as RGBA_ASTC_10x5_Format,nc as RGBA_ASTC_10x6_Format,ic as RGBA_ASTC_10x8_Format,rc as RGBA_ASTC_12x10_Format,ac as RGBA_ASTC_12x12_Format,Yl as RGBA_ASTC_4x4_Format,Zl as RGBA_ASTC_5x4_Format,Jl as RGBA_ASTC_5x5_Format,$l as RGBA_ASTC_6x5_Format,Kl as RGBA_ASTC_6x6_Format,Ql as RGBA_ASTC_8x5_Format,jl as RGBA_ASTC_8x6_Format,ec as RGBA_ASTC_8x8_Format,oc as RGBA_BPTC_Format,Hl as RGBA_ETC2_EAC_Format,Vl as RGBA_PVRTC_2BPPV1_Format,zl as RGBA_PVRTC_4BPPV1_Format,aa as RGBA_S3TC_DXT1_Format,oa as RGBA_S3TC_DXT3_Format,la as RGBA_S3TC_DXT5_Format,Cm as RGBDepthPacking,Xu as RGBFormat,bm as RGBIntegerFormat,lc as RGB_BPTC_SIGNED_Format,cc as RGB_BPTC_UNSIGNED_Format,kl as RGB_ETC1_Format,Gl as RGB_ETC2_Format,Bl as RGB_PVRTC_2BPPV1_Format,Ol as RGB_PVRTC_4BPPV1_Format,ra as RGB_S3TC_DXT1_Format,Rm as RGDepthPacking,Ai as RGFormat,Ul as RGIntegerFormat,Gr as RawShaderMaterial,xi as Ray,su as Raycaster,vl as RectAreaLight,Nl as RedFormat,sa as RedIntegerFormat,Du as ReinhardToneMapping,br as RenderTarget,jh as RenderTarget3D,mr as RepeatWrapping,Nm as ReplaceStencilOp,zf as ReverseSubtractEquation,Jo as RingGeometry,Xl as SIGNED_R11_EAC_Format,dc as SIGNED_RED_GREEN_RGTC2_Format,uc as SIGNED_RED_RGTC1_Format,ql as SIGNED_RG11_EAC_Format,Qt as SRGBColorSpace,lt as SRGBTransfer,So as Scene,je as ShaderChunk,Gn as ShaderLib,en as ShaderMaterial,nl as ShadowMaterial,Qn as Shape,$o as ShapeGeometry,Au as ShapePath,vn as ShapeUtils,ku as ShortType,Eo as Skeleton,fu as SkeletonHelper,Ao as SkinnedMesh,In as Source,It as Sphere,kr as SphereGeometry,ou as Spherical,$r as SphericalHarmonics3,Fr as SplineCurve,ml as SpotLight,du as SpotLightHelper,bo as Sprite,Er as SpriteMaterial,oo as SrcAlphaFactor,$f as SrcAlphaSaturateFactor,Wf as SrcColorFactor,Qm as StaticCopyUsage,Mr as StaticDrawUsage,Jm as StaticReadUsage,qh as StereoCamera,eg as StreamCopyUsage,Zm as StreamDrawUsage,Km as StreamReadUsage,ni as StringKeyframeTrack,Bf as SubtractEquation,Iu as SubtractiveBlending,mm as TOUCH,ii as TangentSpaceNormalMap,Ko as TetrahedronGeometry,wt as Texture,zh as TextureLoader,wu as TextureUtils,El as Timer,ng as TimestampQuery,Qo as TorusGeometry,jo as TorusKnotGeometry,Rn as Triangle,Em as TriangleFanDrawMode,Am as TriangleStripDrawMode,Tm as TrianglesDrawMode,el as TubeGeometry,Il as UVMapping,Tr as Uint16BufferAttribute,Ar as Uint32BufferAttribute,gh as Uint8BufferAttribute,_h as Uint8ClampedBufferAttribute,eu as Uniform,tu as UniformsGroup,me as UniformsLib,Ep as UniformsUtils,nn as UnsignedByteType,Hu as UnsignedInt101111Type,Zs as UnsignedInt248Type,Gu as UnsignedInt5999Type,mn as UnsignedIntType,Ll as UnsignedShort4444Type,Dl as UnsignedShort5551Type,Ys as UnsignedShortType,Ws as VSMShadowMap,K as Vector2,C as Vector3,ut as Vector4,ts as VectorKeyframeTrack,bh as VideoFrameTexture,No as VideoTexture,fh as WebGL3DRenderTarget,dh as WebGLArrayRenderTarget,on as WebGLCoordinateSystem,yc as WebGLCubeRenderTarget,Zt as WebGLRenderTarget,Qp as WebGLRenderer,UM as WebGLUtils,Yi as WebGPUCoordinateSystem,Fs as WebXRController,tl as WireframeGeometry,xr as WrapAroundEnding,ki as ZeroCurvatureEnding,Gf as ZeroFactor,Gi as ZeroSlopeEnding,Dm as ZeroStencilOp,gp as createCanvasElement,Re as error,cg as getConsoleFunction,Sr as log,lg as setConsoleFunction,de as warn,xo as warnOnce};
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b1da2c9a-1ec4-5e60-b2f1-16b36e9dce9a")}catch(e){}}();
3
+ //# debugId=b1da2c9a-1ec4-5e60-b2f1-16b36e9dce9a
@@ -0,0 +1,2 @@
1
+ import{t as r}from"./main.js";import{$ as Fn,As as vr,B as Eg,Ba as jt,Ca as ia,Da as il,F as Dn,Fs as wo,I as Do,Is as wr,Jt as Lo,Kn as Si,La as jn,Li as ct,Ln as Qt,Ls as wt,Lt as K,Mo as pn,Mt as Ji,Or as Wh,Ot as It$1,Pa as ji,Qi as es,S as C$1,Sn as Ot$1,Ts as vi,U as Em,Uo as qs,Ur as Ye,W as Eo,Wn as Rt,Wt as Kr,Zt as Me$1,ao as mi,bi as at,ca as gl,d as Ao,di as _o,fa as gr,fi as _r,fs as ts,gr as Ut$1,in as Mt$1,k as Cr,lc as zu,li as _l,ln as Nn,oc as zn,oo as ml,pi as _t,pn as Nt$1,ps as tt,pt as Gt$1,q as Et,rc as zh,rr as Tm,rs as ss,rt as Ft$1,tc as ze$1,tn as Mn,u as Am,uo as mr,xa as ht,xn as Os,xt as Hr,yo as ns}from"./chunk-sqKVpUVP.js";function ge(f,t){if(t===0)return console.warn(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles.`),f;if(t===2||t===1){let e=f.getIndex();if(e===null){let i=[],a=f.getAttribute(`position`);if(a!==void 0){for(let o=0;o<a.count;o++)i.push(o);f.setIndex(i),e=f.getIndex()}else return console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.`),f}let s=e.count-2,n=[];if(t===2)for(let i=1;i<=s;i++)n.push(e.getX(0)),n.push(e.getX(i)),n.push(e.getX(i+1));else for(let i=0;i<s;i++)i%2===0?(n.push(e.getX(i)),n.push(e.getX(i+1)),n.push(e.getX(i+2))):(n.push(e.getX(i+2)),n.push(e.getX(i+1)),n.push(e.getX(i)));n.length/3!==s&&console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.`);let r=f.clone();return r.setIndex(n),r.clearGroups(),r}else return console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:`,t),f}function Mt(f){let t=new Map,e=new Map,s=f.clone();return St(f,s,function(n,r){t.set(r,n),e.set(n,r)}),s.traverse(function(n){if(!n.isSkinnedMesh)return;let r=n,i=t.get(n),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(o){return e.get(o)}),r.bind(r.skeleton,r.bindMatrix)}),s}function St(f,t,e){e(f,t);for(let s=0;s<f.children.length;s++)St(f.children[s],t.children[s],e)}var It=class extends Gt$1{constructor(t){super(t),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new we(e)}),this.register(function(e){return new Ee(e)}),this.register(function(e){return new ve(e)}),this.register(function(e){return new ke(e)}),this.register(function(e){return new Pe(e)}),this.register(function(e){return new Me(e)}),this.register(function(e){return new Se(e)}),this.register(function(e){return new Ie(e)}),this.register(function(e){return new Ne(e)}),this.register(function(e){return new ye(e)}),this.register(function(e){return new Le(e)}),this.register(function(e){return new _e(e)}),this.register(function(e){return new Ce(e)}),this.register(function(e){return new Oe(e)}),this.register(function(e){return new xe(e)}),this.register(function(e){return new Y(e,g.EXT_MESHOPT_COMPRESSION)}),this.register(function(e){return new Y(e,g.KHR_MESHOPT_COMPRESSION)}),this.register(function(e){return new Be(e)})}load(t,e,s,n){let r=this,i;if(this.resourcePath!==``)i=this.resourcePath;else if(this.path!==``){let c=Kr.extractUrlBase(t);i=Kr.resolveURL(c,this.path)}else i=Kr.extractUrlBase(t);this.manager.itemStart(t);let a=function(c){n?n(c):console.error(c),r.manager.itemError(t),r.manager.itemEnd(t)},o=new Mn(this.manager);o.setPath(this.path),o.setResponseType(`arraybuffer`),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,function(c){try{r.parse(c,i,function(u){e(u),r.manager.itemEnd(t)},a)}catch(u){a(u)}},s,a)}setDRACOLoader(t){return this.dracoLoader=t,this}setKTX2Loader(t){return this.ktx2Loader=t,this}setMeshoptDecoder(t){return this.meshoptDecoder=t,this}register(t){return this.pluginCallbacks.indexOf(t)===-1&&this.pluginCallbacks.push(t),this}unregister(t){return this.pluginCallbacks.indexOf(t)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(t),1),this}parse(t,e,s,n){let r,i={},a={},o=new TextDecoder;if(typeof t==`string`)r=JSON.parse(t);else if(t instanceof ArrayBuffer)if(o.decode(new Uint8Array(t,0,4))===vt){try{i[g.KHR_BINARY_GLTF]=new He(t)}catch(l){n&&n(l);return}r=JSON.parse(i[g.KHR_BINARY_GLTF].content)}else r=JSON.parse(o.decode(t));else r=t;if(r.asset===void 0||r.asset.version[0]<2){n&&n(new Error(`THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.`));return}let c=new Ve(r,{path:e||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){let l=this.pluginCallbacks[u](c);l.name||console.error(`THREE.GLTFLoader: Invalid plugin found: missing name`),a[l.name]=l,i[l.name]=!0}if(r.extensionsUsed)for(let u=0;u<r.extensionsUsed.length;++u){let l=r.extensionsUsed[u],d=r.extensionsRequired||[];switch(l){case g.KHR_MATERIALS_UNLIT:i[l]=new be;break;case g.KHR_DRACO_MESH_COMPRESSION:i[l]=new De(r,this.dracoLoader);break;case g.KHR_TEXTURE_TRANSFORM:i[l]=new Fe;break;case g.KHR_MESH_QUANTIZATION:i[l]=new Ue;break;default:d.indexOf(l)>=0&&a[l]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+l+`".`)}}c.setExtensions(i),c.setPlugins(a),c.parse(s,n)}parseAsync(t,e){let s=this;return new Promise(function(n,r){s.parse(t,e,n,r)})}};function kt(){let f={};return{get:function(t){return f[t]},add:function(t,e){f[t]=e},remove:function(t){delete f[t]},removeAll:function(){f={}}}}function y(f,t,e){let s=f.json.materials[t];return s.extensions&&s.extensions[e]?s.extensions[e]:null}var g={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`};var xe=class{constructor(t){this.parser=t,this.name=g.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let t=this.parser,e=this.parser.json.nodes||[];for(let s=0,n=e.length;s<n;s++){let r=e[s];r.extensions&&r.extensions[this.name]&&r.extensions[this.name].light!==void 0&&t._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(t){let e=this.parser,s=`light:`+t,n=e.cache.get(s);if(n)return n;let r=e.json,o=((r.extensions&&r.extensions[this.name]||{}).lights||[])[t],c,u=new Me$1(16777215);o.color!==void 0&&u.setRGB(o.color[0],o.color[1],o.color[2],`srgb-linear`);let l=o.range!==void 0?o.range:0;switch(o.type){case`directional`:c=new _l(u),c.target.position.set(0,0,-1),c.add(c.target);break;case`point`:c=new gl(u),c.distance=l;break;case`spot`:c=new ml(u),c.distance=l,o.spot=o.spot||{},o.spot.innerConeAngle=o.spot.innerConeAngle!==void 0?o.spot.innerConeAngle:0,o.spot.outerConeAngle=o.spot.outerConeAngle!==void 0?o.spot.outerConeAngle:Math.PI/4,c.angle=o.spot.outerConeAngle,c.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,c.target.position.set(0,0,-1),c.add(c.target);break;default:throw new Error(`THREE.GLTFLoader: Unexpected light type: `+o.type)}return c.position.set(0,0,0),I(c,o),o.intensity!==void 0&&(c.intensity=o.intensity),c.name=e.createUniqueName(o.name||`light_`+t),n=Promise.resolve(c),e.cache.add(s,n),n}getDependency(t,e){if(t===`light`)return this._loadLight(e)}createNodeAttachment(t){let e=this,s=this.parser,r=s.json.nodes[t],a=(r.extensions&&r.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(o){return s._getNodeRef(e.cache,a,o)})}};var be=class{constructor(){this.name=g.KHR_MATERIALS_UNLIT}getMaterialType(){return Dn}extendParams(t,e,s){let n=[];t.color=new Me$1(1,1,1),t.opacity=1;let r=e.pbrMetallicRoughness;if(r){if(Array.isArray(r.baseColorFactor)){let i=r.baseColorFactor;t.color.setRGB(i[0],i[1],i[2],vr),t.opacity=i[3]}r.baseColorTexture!==void 0&&n.push(s.assignTexture(t,`map`,r.baseColorTexture,`srgb`))}return Promise.all(n)}};var ye=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);return s===null||s.emissiveStrength!==void 0&&(e.emissiveIntensity=s.emissiveStrength),Promise.resolve()}};var we=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_CLEARCOAT}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];if(s.clearcoatFactor!==void 0&&(e.clearcoat=s.clearcoatFactor),s.clearcoatTexture!==void 0&&n.push(this.parser.assignTexture(e,`clearcoatMap`,s.clearcoatTexture)),s.clearcoatRoughnessFactor!==void 0&&(e.clearcoatRoughness=s.clearcoatRoughnessFactor),s.clearcoatRoughnessTexture!==void 0&&n.push(this.parser.assignTexture(e,`clearcoatRoughnessMap`,s.clearcoatRoughnessTexture)),s.clearcoatNormalTexture!==void 0&&(n.push(this.parser.assignTexture(e,`clearcoatNormalMap`,s.clearcoatNormalTexture)),s.clearcoatNormalTexture.scale!==void 0)){let r=s.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new K(r,r)}return Promise.all(n)}};var Ee=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_DISPERSION}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);return s===null||(e.dispersion=s.dispersion!==void 0?s.dispersion:0),Promise.resolve()}};var _e=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_IRIDESCENCE}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];return s.iridescenceFactor!==void 0&&(e.iridescence=s.iridescenceFactor),s.iridescenceTexture!==void 0&&n.push(this.parser.assignTexture(e,`iridescenceMap`,s.iridescenceTexture)),s.iridescenceIor!==void 0&&(e.iridescenceIOR=s.iridescenceIor),e.iridescenceThicknessRange===void 0&&(e.iridescenceThicknessRange=[100,400]),s.iridescenceThicknessMinimum!==void 0&&(e.iridescenceThicknessRange[0]=s.iridescenceThicknessMinimum),s.iridescenceThicknessMaximum!==void 0&&(e.iridescenceThicknessRange[1]=s.iridescenceThicknessMaximum),s.iridescenceThicknessTexture!==void 0&&n.push(this.parser.assignTexture(e,`iridescenceThicknessMap`,s.iridescenceThicknessTexture)),Promise.all(n)}};var Me=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_SHEEN}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];if(e.sheenColor=new Me$1(0,0,0),e.sheenRoughness=0,e.sheen=1,s.sheenColorFactor!==void 0){let r=s.sheenColorFactor;e.sheenColor.setRGB(r[0],r[1],r[2],vr)}return s.sheenRoughnessFactor!==void 0&&(e.sheenRoughness=s.sheenRoughnessFactor),s.sheenColorTexture!==void 0&&n.push(this.parser.assignTexture(e,`sheenColorMap`,s.sheenColorTexture,`srgb`)),s.sheenRoughnessTexture!==void 0&&n.push(this.parser.assignTexture(e,`sheenRoughnessMap`,s.sheenRoughnessTexture)),Promise.all(n)}};var Se=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_TRANSMISSION}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];return s.transmissionFactor!==void 0&&(e.transmission=s.transmissionFactor),s.transmissionTexture!==void 0&&n.push(this.parser.assignTexture(e,`transmissionMap`,s.transmissionTexture)),Promise.all(n)}};var Ie=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_VOLUME}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];e.thickness=s.thicknessFactor!==void 0?s.thicknessFactor:0,s.thicknessTexture!==void 0&&n.push(this.parser.assignTexture(e,`thicknessMap`,s.thicknessTexture)),e.attenuationDistance=s.attenuationDistance||1/0;let r=s.attenuationColor||[1,1,1];return e.attenuationColor=new Me$1().setRGB(r[0],r[1],r[2],vr),Promise.all(n)}};var Ne=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_IOR}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);return s===null||(e.ior=s.ior!==void 0?s.ior:1.5,e.ior===0&&(e.ior=1e3)),Promise.resolve()}};var Le=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_SPECULAR}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];e.specularIntensity=s.specularFactor!==void 0?s.specularFactor:1,s.specularTexture!==void 0&&n.push(this.parser.assignTexture(e,`specularIntensityMap`,s.specularTexture));let r=s.specularColorFactor||[1,1,1];return e.specularColor=new Me$1().setRGB(r[0],r[1],r[2],vr),s.specularColorTexture!==void 0&&n.push(this.parser.assignTexture(e,`specularColorMap`,s.specularColorTexture,`srgb`)),Promise.all(n)}};var Oe=class{constructor(t){this.parser=t,this.name=g.EXT_MATERIALS_BUMP}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];return e.bumpScale=s.bumpFactor!==void 0?s.bumpFactor:1,s.bumpTexture!==void 0&&n.push(this.parser.assignTexture(e,`bumpMap`,s.bumpTexture)),Promise.all(n)}};var Ce=class{constructor(t){this.parser=t,this.name=g.KHR_MATERIALS_ANISOTROPY}getMaterialType(t){return y(this.parser,t,this.name)!==null?il:null}extendMaterialParams(t,e){let s=y(this.parser,t,this.name);if(s===null)return Promise.resolve();let n=[];return s.anisotropyStrength!==void 0&&(e.anisotropy=s.anisotropyStrength),s.anisotropyRotation!==void 0&&(e.anisotropyRotation=s.anisotropyRotation),s.anisotropyTexture!==void 0&&n.push(this.parser.assignTexture(e,`anisotropyMap`,s.anisotropyTexture)),Promise.all(n)}};var ve=class{constructor(t){this.parser=t,this.name=g.KHR_TEXTURE_BASISU}loadTexture(t){let e=this.parser,s=e.json,n=s.textures[t];if(!n.extensions||!n.extensions[this.name])return null;let r=n.extensions[this.name],i=e.options.ktx2Loader;if(!i){if(s.extensionsRequired&&s.extensionsRequired.indexOf(this.name)>=0)throw new Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return e.loadTextureImage(t,r.source,i)}};var ke=class{constructor(t){this.parser=t,this.name=g.EXT_TEXTURE_WEBP}loadTexture(t){let e=this.name,s=this.parser,n=s.json,r=n.textures[t];if(!r.extensions||!r.extensions[e])return null;let i=r.extensions[e],a=n.images[i.source],o=s.textureLoader;if(a.uri){let c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(t,i.source,o)}};var Pe=class{constructor(t){this.parser=t,this.name=g.EXT_TEXTURE_AVIF}loadTexture(t){let e=this.name,s=this.parser,n=s.json,r=n.textures[t];if(!r.extensions||!r.extensions[e])return null;let i=r.extensions[e],a=n.images[i.source],o=s.textureLoader;if(a.uri){let c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(t,i.source,o)}};var Y=class{constructor(t,e){this.name=e,this.parser=t}loadBufferView(t){let e=this.parser.json,s=e.bufferViews[t];if(s.extensions&&s.extensions[this.name]){let n=s.extensions[this.name],r=this.parser.getDependency(`buffer`,n.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(a){let o=n.byteOffset||0,c=n.byteLength||0,u=n.count,l=n.byteStride,d=new Uint8Array(a,o,c);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(u,l,d,n.mode,n.filter).then(function(h){return h.buffer}):i.ready.then(function(){let h=new ArrayBuffer(u*l);return i.decodeGltfBuffer(new Uint8Array(h),u,l,d,n.mode,n.filter),h})})}else return null}};var Be=class{constructor(t){this.name=g.EXT_MESH_GPU_INSTANCING,this.parser=t}createNodeMesh(t){let e=this.parser.json,s=e.nodes[t];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;let n=e.meshes[s.mesh];for(let c of n.primitives)if(c.mode!==E.TRIANGLES&&c.mode!==E.TRIANGLE_STRIP&&c.mode!==E.TRIANGLE_FAN&&c.mode!==void 0)return null;let i=s.extensions[this.name].attributes,a=[],o={};for(let c in i)a.push(this.parser.getDependency(`accessor`,i[c]).then(u=>(o[c]=u,o[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(t)),Promise.all(a).then(c=>{let u=c.pop(),l=u.isGroup?u.children:[u],d=c[0].count,h=[];for(let p of l){let A=new ze$1,m=new C$1,T=new Ft$1,b=new C$1(1,1,1),x=new wo(p.geometry,p.material,d);for(let R=0;R<d;R++)o.TRANSLATION&&m.fromBufferAttribute(o.TRANSLATION,R),o.ROTATION&&T.fromBufferAttribute(o.ROTATION,R),o.SCALE&&b.fromBufferAttribute(o.SCALE,R),x.setMatrixAt(R,A.compose(m,T,b));for(let R in o)if(R===`_COLOR_0`){let w=o[R];x.instanceColor=new vi(w.array,w.itemSize,w.normalized)}else R!==`TRANSLATION`&&R!==`ROTATION`&&R!==`SCALE`&&p.geometry.setAttribute(R,o[R]);at.prototype.copy.call(x,p),this.parser.assignFinalMaterial(x),h.push(x)}return u.isGroup?(u.clear(),u.add(...h),u):h[0]}))}};var vt=`glTF`;var z=12;var Nt={JSON:1313821514,BIN:5130562};var He=class{constructor(t){this.name=g.KHR_BINARY_GLTF,this.content=null,this.body=null;let e=new DataView(t,0,z),s=new TextDecoder;if(this.header={magic:s.decode(new Uint8Array(t.slice(0,4))),version:e.getUint32(4,!0),length:e.getUint32(8,!0)},this.header.magic!==vt)throw new Error(`THREE.GLTFLoader: Unsupported glTF-Binary header.`);if(this.header.version<2)throw new Error(`THREE.GLTFLoader: Legacy binary file detected.`);let n=this.header.length-z,r=new DataView(t,z),i=0;for(;i<n;){let a=r.getUint32(i,!0);i+=4;let o=r.getUint32(i,!0);if(i+=4,o===Nt.JSON){let c=new Uint8Array(t,z+i,a);this.content=s.decode(c)}else if(o===Nt.BIN){let c=z+i;this.body=t.slice(c,c+a)}i+=a}if(this.content===null)throw new Error(`THREE.GLTFLoader: JSON content not found.`)}};var De=class{constructor(t,e){if(!e)throw new Error(`THREE.GLTFLoader: No DRACOLoader instance provided.`);this.name=g.KHR_DRACO_MESH_COMPRESSION,this.json=t,this.dracoLoader=e,this.dracoLoader.preload()}decodePrimitive(t,e){let s=this.json,n=this.dracoLoader,r=t.extensions[this.name].bufferView,i=t.extensions[this.name].attributes,a={},o={},c={};for(let u in i){let l=Ke[u]||u.toLowerCase();a[l]=i[u]}for(let u in t.attributes){let l=Ke[u]||u.toLowerCase();if(i[u]!==void 0){let d=s.accessors[t.attributes[u]];c[l]=D[d.componentType].name,o[l]=d.normalized===!0}}return e.getDependency(`bufferView`,r).then(function(u){return new Promise(function(l,d){n.decodeDracoFile(u,function(h){for(let p in h.attributes){let A=h.attributes[p],m=o[p];m!==void 0&&(A.normalized=m)}l(h)},a,c,vr,d)})})}};var Fe=class{constructor(){this.name=g.KHR_TEXTURE_TRANSFORM}extendTexture(t,e){return(e.texCoord===void 0||e.texCoord===t.channel)&&e.offset===void 0&&e.rotation===void 0&&e.scale===void 0||(t=t.clone(),e.texCoord!==void 0&&(t.channel=e.texCoord),e.offset!==void 0&&t.offset.fromArray(e.offset),e.rotation!==void 0&&(t.rotation=e.rotation),e.scale!==void 0&&t.repeat.fromArray(e.scale),t.needsUpdate=!0),t}};var Ue=class{constructor(){this.name=g.KHR_MESH_QUANTIZATION}};var Z=class extends Si{constructor(t,e,s,n){super(t,e,s,n)}copySampleValue_(t){let e=this.resultBuffer,s=this.sampleValues,n=this.valueSize,r=t*n*3+n;for(let i=0;i!==n;i++)e[i]=s[r+i];return e}interpolate_(t,e,s,n){let r=this.resultBuffer,i=this.sampleValues,a=this.valueSize,o=a*2,c=a*3,u=n-e,l=(s-e)/u,d=l*l,h=d*l,p=t*c,A=p-c,m=-2*h+3*d,T=h-d,b=1-m,x=T-d+l;for(let R=0;R!==a;R++){let w=i[A+R+a],L=i[A+R+o]*u,_=i[p+R+a],F=i[p+R]*u;r[R]=b*w+x*L+m*_+T*F}return r}};var Pt=new Ft$1;var Ge=class extends Z{interpolate_(t,e,s,n){let r=super.interpolate_(t,e,s,n);return Pt.fromArray(r).normalize().toArray(r),r}};var E={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123};var D={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};var Lt={9728:Et,9729:_t,9984:zu,9985:ia,9986:qs,9987:zn};var Ot={33071:jt,33648:gr,10497:mr};var Te={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};var Ke={POSITION:`position`,NORMAL:`normal`,TANGENT:`tangent`,TEXCOORD_0:`uv`,TEXCOORD_1:`uv1`,TEXCOORD_2:`uv2`,TEXCOORD_3:`uv3`,COLOR_0:`color`,WEIGHTS_0:`skinWeight`,JOINTS_0:`skinIndex`};var C={scale:`scale`,translation:`position`,rotation:`quaternion`,weights:`morphTargetInfluences`};var Bt={CUBICSPLINE:void 0,LINEAR:_o,STEP:_r};var Ae={OPAQUE:`OPAQUE`,MASK:`MASK`,BLEND:`BLEND`};function Ht(f){return f.DefaultMaterial===void 0&&(f.DefaultMaterial=new Hr({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:0})),f.DefaultMaterial}function v(f,t,e){for(let s in e.extensions)f[s]===void 0&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[s]=e.extensions[s])}function I(f,t){t.extras!==void 0&&(typeof t.extras==`object`?Object.assign(f.userData,t.extras):console.warn(`THREE.GLTFLoader: Ignoring primitive type .extras, `+t.extras))}function Dt(f,t,e){let s=!1,n=!1,r=!1;for(let c=0,u=t.length;c<u;c++){let l=t[c];if(l.POSITION!==void 0&&(s=!0),l.NORMAL!==void 0&&(n=!0),l.COLOR_0!==void 0&&(r=!0),s&&n&&r)break}if(!s&&!n&&!r)return Promise.resolve(f);let i=[],a=[],o=[];for(let c=0,u=t.length;c<u;c++){let l=t[c];if(s){let d=l.POSITION!==void 0?e.getDependency(`accessor`,l.POSITION):f.attributes.position;i.push(d)}if(n){let d=l.NORMAL!==void 0?e.getDependency(`accessor`,l.NORMAL):f.attributes.normal;a.push(d)}if(r){let d=l.COLOR_0!==void 0?e.getDependency(`accessor`,l.COLOR_0):f.attributes.color;o.push(d)}}return Promise.all([Promise.all(i),Promise.all(a),Promise.all(o)]).then(function(c){let u=c[0],l=c[1],d=c[2];return s&&(f.morphAttributes.position=u),n&&(f.morphAttributes.normal=l),r&&(f.morphAttributes.color=d),f.morphTargetsRelative=!0,f})}function Ft(f,t){if(f.updateMorphTargets(),t.weights!==void 0)for(let e=0,s=t.weights.length;e<s;e++)f.morphTargetInfluences[e]=t.weights[e];if(t.extras&&Array.isArray(t.extras.targetNames)){let e=t.extras.targetNames;if(f.morphTargetInfluences.length===e.length){f.morphTargetDictionary={};for(let s=0,n=e.length;s<n;s++)f.morphTargetDictionary[e[s]]=s}else console.warn(`THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.`)}}function Ut(f){let t,e=f.extensions&&f.extensions[g.KHR_DRACO_MESH_COMPRESSION];if(e?t=`draco:`+e.bufferView+`:`+e.indices+`:`+Re(e.attributes):t=f.indices+`:`+Re(f.attributes)+`:`+f.mode,f.targets!==void 0)for(let s=0,n=f.targets.length;s<n;s++)t+=`:`+Re(f.targets[s]);return t}function Re(f){let t=``,e=Object.keys(f).sort();for(let s=0,n=e.length;s<n;s++)t+=e[s]+`:`+f[e[s]]+`;`;return t}function ze(f){switch(f){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error(`THREE.GLTFLoader: Unsupported normalized accessor component type.`)}}function Gt(f){return f.search(/\.jpe?g($|\?)/i)>0||f.search(/^data\:image\/jpeg/)===0?`image/jpeg`:f.search(/\.webp($|\?)/i)>0||f.search(/^data\:image\/webp/)===0?`image/webp`:f.search(/\.ktx2($|\?)/i)>0||f.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var Kt=new ze$1;var Ve=class{constructor(t={},e={}){this.json=t,this.extensions={},this.plugins={},this.options=e,this.cache=new kt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let s=!1,n=-1,r=!1,i=-1;if(typeof navigator<`u`&&typeof navigator.userAgent<`u`){let a=navigator.userAgent;s=/^((?!chrome|android).)*safari/i.test(a)===!0;let o=a.match(/Version\/(\d+)/);n=s&&o?parseInt(o[1],10):-1,r=a.indexOf(`Firefox`)>-1,i=r?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>`u`||s&&n<17||r&&i<98?this.textureLoader=new zh(this.options.manager):this.textureLoader=new Wh(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Mn(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,e){let s=this,n=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(i){return i._markDefs&&i._markDefs()}),Promise.all(this._invokeAll(function(i){return i.beforeRoot&&i.beforeRoot()})).then(function(){return Promise.all([s.getDependencies(`scene`),s.getDependencies(`animation`),s.getDependencies(`camera`)])}).then(function(i){let a={scene:i[0][n.scene||0],scenes:i[0],animations:i[1],cameras:i[2],asset:n.asset,parser:s,userData:{}};return v(r,a,n),I(a,n),Promise.all(s._invokeAll(function(o){return o.afterRoot&&o.afterRoot(a)})).then(function(){for(let o of a.scenes)o.updateMatrixWorld();t(a)})}).catch(e)}_markDefs(){let t=this.json.nodes||[],e=this.json.skins||[],s=this.json.meshes||[];for(let n=0,r=e.length;n<r;n++){let i=e[n].joints;for(let a=0,o=i.length;a<o;a++)t[i[a]].isBone=!0}for(let n=0,r=t.length;n<r;n++){let i=t[n];i.mesh!==void 0&&(this._addNodeRef(this.meshCache,i.mesh),i.skin!==void 0&&(s[i.mesh].isSkinnedMesh=!0)),i.camera!==void 0&&this._addNodeRef(this.cameraCache,i.camera)}}_addNodeRef(t,e){e!==void 0&&(t.refs[e]===void 0&&(t.refs[e]=t.uses[e]=0),t.refs[e]++)}_getNodeRef(t,e,s){if(t.refs[e]<=1)return s;let n=s.clone(),r=(i,a)=>{let o=this.associations.get(i);o!=null&&this.associations.set(a,o);for(let[c,u]of i.children.entries())r(u,a.children[c])};return r(s,n),n.name+=`_instance_`+t.uses[e]++,n}_invokeOne(t){let e=Object.values(this.plugins);e.push(this);for(let s=0;s<e.length;s++){let n=t(e[s]);if(n)return n}return null}_invokeAll(t){let e=Object.values(this.plugins);e.unshift(this);let s=[];for(let n=0;n<e.length;n++){let r=t(e[n]);r&&s.push(r)}return s}getDependency(t,e){let s=t+`:`+e,n=this.cache.get(s);if(!n){switch(t){case`scene`:n=this.loadScene(e);break;case`node`:n=this._invokeOne(function(r){return r.loadNode&&r.loadNode(e)});break;case`mesh`:n=this._invokeOne(function(r){return r.loadMesh&&r.loadMesh(e)});break;case`accessor`:n=this.loadAccessor(e);break;case`bufferView`:n=this._invokeOne(function(r){return r.loadBufferView&&r.loadBufferView(e)});break;case`buffer`:n=this.loadBuffer(e);break;case`material`:n=this._invokeOne(function(r){return r.loadMaterial&&r.loadMaterial(e)});break;case`texture`:n=this._invokeOne(function(r){return r.loadTexture&&r.loadTexture(e)});break;case`skin`:n=this.loadSkin(e);break;case`animation`:n=this._invokeOne(function(r){return r.loadAnimation&&r.loadAnimation(e)});break;case`camera`:n=this.loadCamera(e);break;default:if(n=this._invokeOne(function(r){return r!=this&&r.getDependency&&r.getDependency(t,e)}),!n)throw new Error(`Unknown type: `+t)}this.cache.add(s,n)}return n}getDependencies(t){let e=this.cache.get(t);if(!e){let s=this,n=this.json[t+(t===`mesh`?`es`:`s`)]||[];e=Promise.all(n.map(function(r,i){return s.getDependency(t,i)})),this.cache.add(t,e)}return e}loadBuffer(t){let e=this.json.buffers[t],s=this.fileLoader;if(e.type&&e.type!==`arraybuffer`)throw new Error(`THREE.GLTFLoader: `+e.type+` buffer type is not supported.`);if(e.uri===void 0&&t===0)return Promise.resolve(this.extensions[g.KHR_BINARY_GLTF].body);let n=this.options;return new Promise(function(r,i){s.load(Kr.resolveURL(e.uri,n.path),r,void 0,function(){i(new Error(`THREE.GLTFLoader: Failed to load buffer "`+e.uri+`".`))})})}loadBufferView(t){let e=this.json.bufferViews[t];return this.getDependency(`buffer`,e.buffer).then(function(s){let n=e.byteLength||0,r=e.byteOffset||0;return s.slice(r,r+n)})}loadAccessor(t){let e=this,s=this.json,n=this.json.accessors[t];if(n.bufferView===void 0&&n.sparse===void 0){let i=Te[n.type],a=D[n.componentType],o=n.normalized===!0,c=new a(n.count*i);return Promise.resolve(new ct(c,i,o))}let r=[];return n.bufferView!==void 0?r.push(this.getDependency(`bufferView`,n.bufferView)):r.push(null),n.sparse!==void 0&&(r.push(this.getDependency(`bufferView`,n.sparse.indices.bufferView)),r.push(this.getDependency(`bufferView`,n.sparse.values.bufferView))),Promise.all(r).then(function(i){let a=i[0],o=Te[n.type],c=D[n.componentType],u=c.BYTES_PER_ELEMENT,l=u*o,d=n.byteOffset||0,h=n.bufferView!==void 0?s.bufferViews[n.bufferView].byteStride:void 0,p=n.normalized===!0,A,m;if(h&&h!==l){let T=Math.floor(d/h),b=`InterleavedBuffer:`+n.bufferView+`:`+n.componentType+`:`+T+`:`+n.count,x=e.cache.get(b);x||(A=new c(a,T*h,n.count*h/u),x=new Os(A,h/u),e.cache.add(b,x)),m=new Ji(x,o,d%h/u,p)}else a===null?A=new c(n.count*o):A=new c(a,d,n.count*o),m=new ct(A,o,p);if(n.sparse!==void 0){let T=Te.SCALAR,b=D[n.sparse.indices.componentType],x=n.sparse.indices.byteOffset||0,R=n.sparse.values.byteOffset||0,w=new b(i[1],x,n.sparse.count*T),L=new c(i[2],R,n.sparse.count*o);a!==null&&(m=new ct(m.array.slice(),m.itemSize,m.normalized)),m.normalized=!1;for(let _=0,F=w.length;_<F;_++){let k=w[_];if(m.setX(k,L[_*o]),o>=2&&m.setY(k,L[_*o+1]),o>=3&&m.setZ(k,L[_*o+2]),o>=4&&m.setW(k,L[_*o+3]),o>=5)throw new Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}m.normalized=p}return m})}loadTexture(t){let e=this.json,s=this.options,r=e.textures[t].source,i=e.images[r],a=this.textureLoader;if(i.uri){let o=s.manager.getHandler(i.uri);o!==null&&(a=o)}return this.loadTextureImage(t,r,a)}loadTextureImage(t,e,s){let n=this,r=this.json,i=r.textures[t],a=r.images[e],o=(a.uri||a.bufferView)+`:`+i.sampler;if(this.textureCache[o])return this.textureCache[o];let c=this.loadImageSource(e,s).then(function(u){u.flipY=!1,u.name=i.name||a.name||``,u.name===``&&typeof a.uri==`string`&&a.uri.startsWith(`data:image/`)===!1&&(u.name=a.uri);let d=(r.samplers||{})[i.sampler]||{};return u.magFilter=Lt[d.magFilter]||1006,u.minFilter=Lt[d.minFilter]||1008,u.wrapS=Ot[d.wrapS]||1e3,u.wrapT=Ot[d.wrapT]||1e3,u.generateMipmaps=!u.isCompressedTexture&&u.minFilter!==1003&&u.minFilter!==1006,n.associations.set(u,{textures:t}),u}).catch(function(){return null});return this.textureCache[o]=c,c}loadImageSource(t,e){let s=this,n=this.json,r=this.options;if(this.sourceCache[t]!==void 0)return this.sourceCache[t].then(l=>l.clone());let i=n.images[t],a=self.URL||self.webkitURL,o=i.uri||``,c=!1;if(i.bufferView!==void 0)o=s.getDependency(`bufferView`,i.bufferView).then(function(l){c=!0;let d=new Blob([l],{type:i.mimeType});return o=a.createObjectURL(d),o});else if(i.uri===void 0)throw new Error(`THREE.GLTFLoader: Image `+t+` is missing URI and bufferView`);let u=Promise.resolve(o).then(function(l){return new Promise(function(d,h){let p=d;e.isImageBitmapLoader===!0&&(p=function(A){let m=new wt(A);m.needsUpdate=!0,d(m)}),e.load(Kr.resolveURL(l,r.path),p,void 0,h)})}).then(function(l){return c===!0&&a.revokeObjectURL(o),I(l,i),l.userData.mimeType=i.mimeType||Gt(i.uri),l}).catch(function(l){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,o),l});return this.sourceCache[t]=u,u}assignTexture(t,e,s,n){let r=this;return this.getDependency(`texture`,s.index).then(function(i){if(!i)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(i=i.clone(),i.channel=s.texCoord),r.extensions[g.KHR_TEXTURE_TRANSFORM]){let a=s.extensions!==void 0?s.extensions[g.KHR_TEXTURE_TRANSFORM]:void 0;if(a){let o=r.associations.get(i);i=r.extensions[g.KHR_TEXTURE_TRANSFORM].extendTexture(i,a),r.associations.set(i,o)}}return n!==void 0&&(i.colorSpace=n),t[e]=i,i})}assignFinalMaterial(t){let e=t.geometry,s=t.material,n=e.attributes.tangent===void 0,r=e.attributes.color!==void 0,i=e.attributes.normal===void 0;if(t.isPoints){let a=`PointsMaterial:`+s.uuid,o=this.cache.get(a);o||(o=new Cr,Ut$1.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,o.sizeAttenuation=!1,this.cache.add(a,o)),s=o}else if(t.isLine){let a=`LineBasicMaterial:`+s.uuid,o=this.cache.get(a);o||(o=new Ot$1,Ut$1.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,this.cache.add(a,o)),s=o}if(n||r||i){let a=`ClonedMaterial:`+s.uuid+`:`;n&&(a+=`derivative-tangents:`),r&&(a+=`vertex-colors:`),i&&(a+=`flat-shading:`);let o=this.cache.get(a);o||(o=s.clone(),r&&(o.vertexColors=!0),i&&(o.flatShading=!0),n&&(o.normalScale&&(o.normalScale.y*=-1),o.clearcoatNormalScale&&(o.clearcoatNormalScale.y*=-1)),this.cache.add(a,o),this.associations.set(o,this.associations.get(s))),s=o}t.material=s}getMaterialType(){return Hr}loadMaterial(t){let e=this,s=this.json,n=this.extensions,r=s.materials[t],i,a={},o=r.extensions||{},c=[];if(o[g.KHR_MATERIALS_UNLIT]){let l=n[g.KHR_MATERIALS_UNLIT];i=l.getMaterialType(),c.push(l.extendParams(a,r,e))}else{let l=r.pbrMetallicRoughness||{};if(a.color=new Me$1(1,1,1),a.opacity=1,Array.isArray(l.baseColorFactor)){let d=l.baseColorFactor;a.color.setRGB(d[0],d[1],d[2],vr),a.opacity=d[3]}l.baseColorTexture!==void 0&&c.push(e.assignTexture(a,`map`,l.baseColorTexture,`srgb`)),a.metalness=l.metallicFactor!==void 0?l.metallicFactor:1,a.roughness=l.roughnessFactor!==void 0?l.roughnessFactor:1,l.metallicRoughnessTexture!==void 0&&(c.push(e.assignTexture(a,`metalnessMap`,l.metallicRoughnessTexture)),c.push(e.assignTexture(a,`roughnessMap`,l.metallicRoughnessTexture))),i=this._invokeOne(function(d){return d.getMaterialType&&d.getMaterialType(t)}),c.push(Promise.all(this._invokeAll(function(d){return d.extendMaterialParams&&d.extendMaterialParams(t,a)})))}r.doubleSided===!0&&(a.side=2);let u=r.alphaMode||Ae.OPAQUE;if(u===Ae.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===Ae.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&i!==Dn&&(c.push(e.assignTexture(a,`normalMap`,r.normalTexture)),a.normalScale=new K(1,1),r.normalTexture.scale!==void 0)){let l=r.normalTexture.scale;a.normalScale.set(l,l)}if(r.occlusionTexture!==void 0&&i!==Dn&&(c.push(e.assignTexture(a,`aoMap`,r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&i!==Dn){let l=r.emissiveFactor;a.emissive=new Me$1().setRGB(l[0],l[1],l[2],vr)}return r.emissiveTexture!==void 0&&i!==Dn&&c.push(e.assignTexture(a,`emissiveMap`,r.emissiveTexture,`srgb`)),Promise.all(c).then(function(){let l=new i(a);return r.name&&(l.name=r.name),I(l,r),e.associations.set(l,{materials:t}),r.extensions&&v(n,l,r),l})}createUniqueName(t){let e=ht.sanitizeNodeName(t||``);return e in this.nodeNamesUsed?e+`_`+ ++this.nodeNamesUsed[e]:(this.nodeNamesUsed[e]=0,e)}loadGeometries(t){let e=this,s=this.extensions,n=this.primitiveCache;function r(a){return s[g.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,e).then(function(o){return Ct(o,a,e)})}let i=[];for(let a=0,o=t.length;a<o;a++){let c=t[a],u=Ut(c),l=n[u];if(l)i.push(l.promise);else{let d;c.extensions&&c.extensions[g.KHR_DRACO_MESH_COMPRESSION]?d=r(c):d=Ct(new Ye,c,e),n[u]={primitive:c,promise:d},i.push(d)}}return Promise.all(i)}loadMesh(t){let e=this,s=this.json,n=this.extensions,r=s.meshes[t],i=r.primitives,a=[];for(let o=0,c=i.length;o<c;o++){let u=i[o].material===void 0?Ht(this.cache):this.getDependency(`material`,i[o].material);a.push(u)}return a.push(e.loadGeometries(i)),Promise.all(a).then(function(o){let c=o.slice(0,o.length-1),u=o[o.length-1],l=[];for(let h=0,p=u.length;h<p;h++){let A=u[h],m=i[h],T,b=c[h];if(m.mode===E.TRIANGLES||m.mode===E.TRIANGLE_STRIP||m.mode===E.TRIANGLE_FAN||m.mode===void 0)T=r.isSkinnedMesh===!0?new Ao(A,b):new Mt$1(A,b),T.isSkinnedMesh===!0&&T.normalizeSkinWeights(),m.mode===E.TRIANGLE_STRIP?T.geometry=ge(T.geometry,1):m.mode===E.TRIANGLE_FAN&&(T.geometry=ge(T.geometry,2));else if(m.mode===E.LINES)T=new pn(A,b);else if(m.mode===E.LINE_STRIP)T=new Nn(A,b);else if(m.mode===E.LINE_LOOP)T=new Lo(A,b);else if(m.mode===E.POINTS)T=new Do(A,b);else throw new Error(`THREE.GLTFLoader: Primitive mode unsupported: `+m.mode);Object.keys(T.geometry.morphAttributes).length>0&&Ft(T,r),T.name=e.createUniqueName(r.name||`mesh_`+t),I(T,r),m.extensions&&v(n,T,m),e.assignFinalMaterial(T),l.push(T)}for(let h=0,p=l.length;h<p;h++)e.associations.set(l[h],{meshes:t,primitives:h});if(l.length===1)return r.extensions&&v(n,l[0],r),l[0];let d=new mi;r.extensions&&v(n,d,r),e.associations.set(d,{meshes:t});for(let h=0,p=l.length;h<p;h++)d.add(l[h]);return d})}loadCamera(t){let e,s=this.json.cameras[t],n=s[s.type];if(!n){console.warn(`THREE.GLTFLoader: Missing camera parameters.`);return}return s.type===`perspective`?e=new Rt(Eg.radToDeg(n.yfov),n.aspectRatio||1,n.znear||1,n.zfar||2e6):s.type===`orthographic`&&(e=new ss(-n.xmag,n.xmag,n.ymag,-n.ymag,n.znear,n.zfar)),s.name&&(e.name=this.createUniqueName(s.name)),I(e,s),Promise.resolve(e)}loadSkin(t){let e=this.json.skins[t],s=[];for(let n=0,r=e.joints.length;n<r;n++)s.push(this._loadNodeShallow(e.joints[n]));return e.inverseBindMatrices!==void 0?s.push(this.getDependency(`accessor`,e.inverseBindMatrices)):s.push(null),Promise.all(s).then(function(n){let r=n.pop(),i=n,a=[],o=[];for(let c=0,u=i.length;c<u;c++){let l=i[c];if(l){a.push(l);let d=new ze$1;r!==null&&d.fromArray(r.array,c*16),o.push(d)}else console.warn(`THREE.GLTFLoader: Joint "%s" could not be found.`,e.joints[c])}return new Eo(a,o)})}loadAnimation(t){let e=this.json,s=this,n=e.animations[t],r=n.name?n.name:`animation_`+t,i=[],a=[],o=[],c=[],u=[];for(let l=0,d=n.channels.length;l<d;l++){let h=n.channels[l],p=n.samplers[h.sampler],A=h.target,m=A.node,T=n.parameters!==void 0?n.parameters[p.input]:p.input,b=n.parameters!==void 0?n.parameters[p.output]:p.output;A.node!==void 0&&(i.push(this.getDependency(`node`,m)),a.push(this.getDependency(`accessor`,T)),o.push(this.getDependency(`accessor`,b)),c.push(p),u.push(A))}return Promise.all([Promise.all(i),Promise.all(a),Promise.all(o),Promise.all(c),Promise.all(u)]).then(function(l){let d=l[0],h=l[1],p=l[2],A=l[3],m=l[4],T=[];for(let x=0,R=d.length;x<R;x++){let w=d[x],L=h[x],_=p[x],F=A[x],k=m[x];if(w===void 0)continue;w.updateMatrix&&w.updateMatrix();let Q=s._createAnimationTracks(w,L,_,F,k);if(Q)for(let J=0;J<Q.length;J++)T.push(Q[J])}let b=new ns(r,void 0,T);return I(b,n),b})}createNodeMesh(t){let e=this.json,s=this,n=e.nodes[t];return n.mesh===void 0?null:s.getDependency(`mesh`,n.mesh).then(function(r){let i=s._getNodeRef(s.meshCache,n.mesh,r);return n.weights!==void 0&&i.traverse(function(a){if(a.isMesh)for(let o=0,c=n.weights.length;o<c;o++)a.morphTargetInfluences[o]=n.weights[o]}),i})}loadNode(t){let e=this.json,s=this,n=e.nodes[t],r=s._loadNodeShallow(t),i=[],a=n.children||[];for(let c=0,u=a.length;c<u;c++)i.push(s.getDependency(`node`,a[c]));let o=n.skin===void 0?Promise.resolve(null):s.getDependency(`skin`,n.skin);return Promise.all([r,Promise.all(i),o]).then(function(c){let u=c[0],l=c[1],d=c[2];d!==null&&u.traverse(function(h){h.isSkinnedMesh&&h.bind(d,Kt)});for(let h=0,p=l.length;h<p;h++)u.add(l[h]);if(u.userData.pivot!==void 0&&l.length>0){let h=u.userData.pivot,p=l[0];u.pivot=new C$1().fromArray(h),u.position.x-=h[0],u.position.y-=h[1],u.position.z-=h[2],p.position.set(0,0,0),delete u.userData.pivot}return u})}_loadNodeShallow(t){let e=this.json,s=this.extensions,n=this;if(this.nodeCache[t]!==void 0)return this.nodeCache[t];let r$1=e.nodes[t],i=r$1.name?n.createUniqueName(r$1.name):``,a=[],o=n._invokeOne(function(c){return c.createNodeMesh&&c.createNodeMesh(t)});return o&&a.push(o),r$1.camera!==void 0&&a.push(n.getDependency(`camera`,r$1.camera).then(function(c){return n._getNodeRef(n.cameraCache,r$1.camera,c)})),n._invokeAll(function(c){return c.createNodeAttachment&&c.createNodeAttachment(t)}).forEach(function(c){a.push(c)}),this.nodeCache[t]=Promise.all(a).then(function(c){let u;if(r$1.isBone===!0?u=new wr:c.length>1?u=new mi:c.length===1?u=c[0]:u=new at,u!==c[0])for(let l=0,d=c.length;l<d;l++)u.add(c[l]);if(r$1.name&&(u.userData.name=r$1.name,u.name=i),I(u,r$1),r$1.extensions&&v(s,u,r$1),r$1.matrix!==void 0){let l=new ze$1;l.fromArray(r$1.matrix),u.applyMatrix4(l)}else r$1.translation!==void 0&&u.position.fromArray(r$1.translation),r$1.rotation!==void 0&&u.quaternion.fromArray(r$1.rotation),r$1.scale!==void 0&&u.scale.fromArray(r$1.scale);if(!n.associations.has(u))n.associations.set(u,{});else if(r$1.mesh!==void 0&&n.meshCache.refs[r$1.mesh]>1){let l=n.associations.get(u);n.associations.set(u,r({},l))}return n.associations.get(u).nodes=t,u}),this.nodeCache[t]}loadScene(t){let e=this.extensions,s=this.json.scenes[t],n=this,r=new mi;s.name&&(r.name=n.createUniqueName(s.name)),I(r,s),s.extensions&&v(e,r,s);let i=s.nodes||[],a=[];for(let o=0,c=i.length;o<c;o++)a.push(n.getDependency(`node`,i[o]));return Promise.all(a).then(function(o){for(let u=0,l=o.length;u<l;u++){let d=o[u];d.parent!==null?r.add(Mt(d)):r.add(d)}let c=u=>{let l=new Map;for(let[d,h]of n.associations)(d instanceof Ut$1||d instanceof wt)&&l.set(d,h);return u.traverse(d=>{let h=n.associations.get(d);h!=null&&l.set(d,h)}),l};return n.associations=c(r),r})}_createAnimationTracks(t,e,s,n,r){let i=[],a=t.name?t.name:t.uuid,o=[];function c(h){h.morphTargetInfluences&&o.push(h.name?h.name:h.uuid)}C[r.path]===C.weights?(c(t),t.isGroup&&t.children.forEach(c)):o.push(a);let u;switch(C[r.path]){case C.weights:u=ji;break;case C.rotation:u=es;break;case C.translation:case C.scale:u=ts;break;default:s.itemSize===1?u=ji:u=ts}let l=n.interpolation!==void 0?Bt[n.interpolation]:_o,d=this._getArrayFromAccessor(s);for(let h=0,p=o.length;h<p;h++){let A=new u(o[h]+`.`+C[r.path],e.array,d,l);n.interpolation===`CUBICSPLINE`&&this._createCubicSplineTrackInterpolant(A),i.push(A)}return i}_getArrayFromAccessor(t){let e=t.array;if(t.normalized){let s=ze(e.constructor),n=new Float32Array(e.length);for(let r=0,i=e.length;r<i;r++)n[r]=e[r]*s;e=n}return e}_createCubicSplineTrackInterpolant(t){t.createInterpolant=function(s){return new(this instanceof es?Ge:Z)(this.times,this.values,this.getValueSize()/3,s)},t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}};function zt(f,t,e){let s=t.attributes,n=new Nt$1;if(s.POSITION!==void 0){let a=e.json.accessors[s.POSITION],o=a.min,c=a.max;if(o!==void 0&&c!==void 0){if(n.set(new C$1(o[0],o[1],o[2]),new C$1(c[0],c[1],c[2])),a.normalized){let u=ze(D[a.componentType]);n.min.multiplyScalar(u),n.max.multiplyScalar(u)}}else{console.warn(`THREE.GLTFLoader: Missing min/max properties for accessor POSITION.`);return}}else return;let r=t.targets;if(r!==void 0){let a=new C$1,o=new C$1;for(let c=0,u=r.length;c<u;c++){let l=r[c];if(l.POSITION!==void 0){let d=e.json.accessors[l.POSITION],h=d.min,p=d.max;if(h!==void 0&&p!==void 0){if(o.setX(Math.max(Math.abs(h[0]),Math.abs(p[0]))),o.setY(Math.max(Math.abs(h[1]),Math.abs(p[1]))),o.setZ(Math.max(Math.abs(h[2]),Math.abs(p[2]))),d.normalized){let A=ze(D[d.componentType]);o.multiplyScalar(A)}a.max(o)}else console.warn(`THREE.GLTFLoader: Missing min/max properties for accessor POSITION.`)}}n.expandByVector(a)}f.boundingBox=n;let i=new It$1;n.getCenter(i.center),i.radius=n.min.distanceTo(n.max)/2,f.boundingSphere=i}function Ct(f,t,e){let s=t.attributes,n=[];function r(i,a){return e.getDependency(`accessor`,i).then(function(o){f.setAttribute(a,o)})}for(let i in s){let a=Ke[i]||i.toLowerCase();a in f.attributes||n.push(r(s[i],a))}if(t.indices!==void 0&&!f.index){let i=e.getDependency(`accessor`,t.indices).then(function(a){f.setIndex(a)});n.push(i)}return tt.workingColorSpace!==`srgb-linear`&&`COLOR_0`in s&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${tt.workingColorSpace}" not supported.`),I(f,t),zt(f,t,e),Promise.all(n).then(function(){return t.targets!==void 0?Dt(f,t.targets,e):f})}export{It as GLTFLoader};
2
+ //# debugId=28a0758c-3dd3-5ea9-adfd-9a77d3db5eb7
@@ -0,0 +1,3 @@
1
+ import"./main.js";import"./chunk-CHv413eO.js";import"./chunk-C7x5ioh5.js";import"./chunk-DIEcQ4a-.js";import{_ as ze,a as Gn,c as Tt,d as er,f as ge,h as wt,i as Dn,l as Wt,m as jt,n as Cn,o as Lr,p as gn,r as Cs,s as Nt,t as Be}from"./chunk-BcTPI0Ei.js";export{gn as ArcLayer,Cn as BitmapLayer,Tt as ColumnLayer,Lr as GeoJsonLayer,Cs as GridCellLayer,ge as IconLayer,Dn as LineLayer,ze as PathLayer,Gn as PointCloudLayer,er as PolygonLayer,wt as ScatterplotLayer,Be as SolidPolygonLayer,Wt as TextLayer,Nt as _MultiIconLayer,jt as _TextBackgroundLayer};
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="69cf714b-2a71-5900-8954-2a7c993ba9ae")}catch(e){}}();
3
+ //# debugId=69cf714b-2a71-5900-8954-2a7c993ba9ae