@splinetool/runtime 2.0.92 → 2.0.94
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.
- package/build/{runtime-DRACOLoader-GLMRFFK2.js → runtime-DRACOLoader-SDMMLQLV.js} +1 -1
- package/build/runtime-DRACOLoader-SDMMLQLV.js.br +0 -0
- package/build/runtime-DRACOLoader-SDMMLQLV.js.gz +0 -0
- package/build/{runtime-aiAssistant-5ECVEZLI.js → runtime-aiAssistant-MKZQ23BA.js} +1 -1
- package/build/runtime-aiAssistant-MKZQ23BA.js.br +0 -0
- package/build/runtime-aiAssistant-MKZQ23BA.js.gz +0 -0
- package/build/{runtime-apiServices-J4QEEJ2S.js → runtime-apiServices-YYNQCMLP.js} +1 -1
- package/build/runtime-apiServices-YYNQCMLP.js.br +0 -0
- package/build/runtime-apiServices-YYNQCMLP.js.gz +0 -0
- package/build/{runtime-audio-P56XBVSL.js → runtime-audio-GPQ4HYPM.js} +1 -1
- package/build/runtime-audio-GPQ4HYPM.js.br +0 -0
- package/build/runtime-audio-GPQ4HYPM.js.gz +0 -0
- package/build/{runtime-bloom-5BWRSKXE.js → runtime-bloom-UMJG5YKZ.js} +1 -1
- package/build/runtime-bloom-UMJG5YKZ.js.br +0 -0
- package/build/runtime-bloom-UMJG5YKZ.js.gz +0 -0
- package/build/{runtime-brightnessContrast-GBILAHY5.js → runtime-brightnessContrast-LRDMKXC2.js} +1 -1
- package/build/runtime-brightnessContrast-LRDMKXC2.js.br +0 -0
- package/build/runtime-brightnessContrast-LRDMKXC2.js.gz +0 -0
- package/build/{runtime-chromaticAberration-XNVWJQWI.js → runtime-chromaticAberration-X46NQTBB.js} +1 -1
- package/build/runtime-chromaticAberration-X46NQTBB.js.br +0 -0
- package/build/runtime-chromaticAberration-X46NQTBB.js.gz +0 -0
- package/build/{runtime-chunk-J53RQDYR.js → runtime-chunk-32XVU5DS.js} +1 -1
- package/build/runtime-chunk-32XVU5DS.js.br +0 -0
- package/build/runtime-chunk-32XVU5DS.js.gz +0 -0
- package/build/{runtime-chunk-JKFC5GFF.js → runtime-chunk-33EF3BLM.js} +1 -1
- package/build/runtime-chunk-33EF3BLM.js.br +0 -0
- package/build/runtime-chunk-33EF3BLM.js.gz +0 -0
- package/build/runtime-chunk-3Q4J5ROW.js +1 -0
- package/build/runtime-chunk-3Q4J5ROW.js.br +0 -0
- package/build/runtime-chunk-3Q4J5ROW.js.gz +0 -0
- package/build/{runtime-chunk-36CLBSQD.js → runtime-chunk-4Y4AXXPU.js} +1 -1
- package/build/runtime-chunk-4Y4AXXPU.js.br +0 -0
- package/build/runtime-chunk-4Y4AXXPU.js.gz +0 -0
- package/build/{runtime-chunk-MTXG5LUQ.js → runtime-chunk-AEPWABER.js} +1 -1
- package/build/runtime-chunk-AEPWABER.js.br +0 -0
- package/build/runtime-chunk-AEPWABER.js.gz +0 -0
- package/build/{runtime-chunk-R6L7MCY3.js → runtime-chunk-AU3CL3GR.js} +1 -1
- package/build/runtime-chunk-AU3CL3GR.js.br +0 -0
- package/build/runtime-chunk-AU3CL3GR.js.gz +0 -0
- package/build/{runtime-chunk-QSWZYIFB.js → runtime-chunk-BFGZJ4LR.js} +1 -1
- package/build/runtime-chunk-BFGZJ4LR.js.br +0 -0
- package/build/runtime-chunk-BFGZJ4LR.js.gz +0 -0
- package/build/{runtime-chunk-KOR4TIQN.js → runtime-chunk-D3OIGZUW.js} +1 -1
- package/build/runtime-chunk-D3OIGZUW.js.br +0 -0
- package/build/runtime-chunk-D3OIGZUW.js.gz +0 -0
- package/build/runtime-chunk-DCC352GL.js +1 -0
- package/build/runtime-chunk-DCC352GL.js.br +0 -0
- package/build/runtime-chunk-DCC352GL.js.gz +0 -0
- package/build/runtime-chunk-E4UNJ4TR.js +1 -0
- package/build/runtime-chunk-E4UNJ4TR.js.br +0 -0
- package/build/runtime-chunk-E4UNJ4TR.js.gz +0 -0
- package/build/{runtime-chunk-RUQ6SJPM.js → runtime-chunk-EEVK6AD6.js} +1 -1
- package/build/runtime-chunk-EEVK6AD6.js.br +0 -0
- package/build/runtime-chunk-EEVK6AD6.js.gz +0 -0
- package/build/{runtime-chunk-KHCWX7UM.js → runtime-chunk-F6XTFQMZ.js} +1 -1
- package/build/runtime-chunk-F6XTFQMZ.js.br +0 -0
- package/build/runtime-chunk-F6XTFQMZ.js.gz +0 -0
- package/build/{runtime-chunk-HBZCKQBD.js → runtime-chunk-FZVL5H67.js} +1 -1
- package/build/runtime-chunk-FZVL5H67.js.br +0 -0
- package/build/runtime-chunk-FZVL5H67.js.gz +0 -0
- package/build/{runtime-chunk-AUIS3MRY.js → runtime-chunk-GD4SGFHZ.js} +1 -1
- package/build/runtime-chunk-GD4SGFHZ.js.br +0 -0
- package/build/runtime-chunk-GD4SGFHZ.js.gz +0 -0
- package/build/{runtime-chunk-TEGAP3DX.js → runtime-chunk-GSKBI4RN.js} +1 -1
- package/build/runtime-chunk-GSKBI4RN.js.br +0 -0
- package/build/runtime-chunk-GSKBI4RN.js.gz +0 -0
- package/build/{runtime-chunk-3H2EF32R.js → runtime-chunk-HGPSGN65.js} +1 -1
- package/build/runtime-chunk-HGPSGN65.js.br +2 -0
- package/build/runtime-chunk-HGPSGN65.js.gz +0 -0
- package/build/runtime-chunk-HOOQDTK7.js +1 -0
- package/build/runtime-chunk-HOOQDTK7.js.br +0 -0
- package/build/runtime-chunk-HOOQDTK7.js.gz +0 -0
- package/build/{runtime-chunk-CKYSGX2V.js → runtime-chunk-IBVB6UVI.js} +1 -1
- package/build/runtime-chunk-IBVB6UVI.js.br +0 -0
- package/build/runtime-chunk-IBVB6UVI.js.gz +0 -0
- package/build/{runtime-chunk-JPQPMU3J.js → runtime-chunk-JABQRWT5.js} +1 -1
- package/build/runtime-chunk-JABQRWT5.js.br +0 -0
- package/build/runtime-chunk-JABQRWT5.js.gz +0 -0
- package/build/runtime-chunk-JJVEXKEO.js +1 -0
- package/build/runtime-chunk-JJVEXKEO.js.br +0 -0
- package/build/runtime-chunk-JJVEXKEO.js.gz +0 -0
- package/build/{runtime-chunk-HEEYURNH.js → runtime-chunk-JTXN6DIH.js} +1 -1
- package/build/runtime-chunk-JTXN6DIH.js.br +0 -0
- package/build/runtime-chunk-JTXN6DIH.js.gz +0 -0
- package/build/{runtime-chunk-UI6FZJSE.js → runtime-chunk-KJQWLDYH.js} +1 -1
- package/build/runtime-chunk-KJQWLDYH.js.br +0 -0
- package/build/runtime-chunk-KJQWLDYH.js.gz +0 -0
- package/build/runtime-chunk-KPOUV3HD.js +1 -0
- package/build/runtime-chunk-KPOUV3HD.js.br +0 -0
- package/build/runtime-chunk-KPOUV3HD.js.gz +0 -0
- package/build/{runtime-chunk-K7TL4PIJ.js → runtime-chunk-KQTC7OLV.js} +1 -1
- package/build/runtime-chunk-KQTC7OLV.js.br +0 -0
- package/build/runtime-chunk-KQTC7OLV.js.gz +0 -0
- package/build/{runtime-chunk-DSXX6SLP.js → runtime-chunk-PF6YNLMZ.js} +1 -1
- package/build/runtime-chunk-PF6YNLMZ.js.br +0 -0
- package/build/runtime-chunk-PF6YNLMZ.js.gz +0 -0
- package/build/{runtime-chunk-PYCMOG7D.js → runtime-chunk-PWMK5MVJ.js} +1 -1
- package/build/runtime-chunk-PWMK5MVJ.js.br +0 -0
- package/build/runtime-chunk-PWMK5MVJ.js.gz +0 -0
- package/build/runtime-chunk-QJMMF3L2.js +1 -0
- package/build/runtime-chunk-QJMMF3L2.js.br +0 -0
- package/build/runtime-chunk-QJMMF3L2.js.gz +0 -0
- package/build/{runtime-chunk-PONAD3UD.js → runtime-chunk-REXAQKUN.js} +1 -1
- package/build/runtime-chunk-REXAQKUN.js.br +0 -0
- package/build/runtime-chunk-REXAQKUN.js.gz +0 -0
- package/build/{runtime-chunk-LSRIE5CU.js → runtime-chunk-RWYT7G6G.js} +1 -1
- package/build/runtime-chunk-RWYT7G6G.js.br +0 -0
- package/build/runtime-chunk-RWYT7G6G.js.gz +0 -0
- package/build/{runtime-chunk-KARVJCBP.js → runtime-chunk-WYIK4MJQ.js} +1 -1
- package/build/runtime-chunk-WYIK4MJQ.js.br +0 -0
- package/build/runtime-chunk-WYIK4MJQ.js.gz +0 -0
- package/build/runtime-chunk-ZA3HZGIR.js +1 -0
- package/build/runtime-chunk-ZA3HZGIR.js.br +0 -0
- package/build/runtime-chunk-ZA3HZGIR.js.gz +0 -0
- package/build/{runtime-chunk-3AHB3XAD.js → runtime-chunk-ZFM73G2B.js} +1 -1
- package/build/runtime-chunk-ZFM73G2B.js.br +0 -0
- package/build/runtime-chunk-ZFM73G2B.js.gz +0 -0
- package/build/{runtime-chunk-WHEALKAN.js → runtime-chunk-ZJIYRGBK.js} +1 -1
- package/build/runtime-chunk-ZJIYRGBK.js.br +0 -0
- package/build/runtime-chunk-ZJIYRGBK.js.gz +0 -0
- package/build/{runtime-classicRuntime-OKLTCERD.js → runtime-classicRuntime-WIJ56CKR.js} +1 -1
- package/build/runtime-classicRuntime-WIJ56CKR.js.br +0 -0
- package/build/runtime-classicRuntime-WIJ56CKR.js.gz +0 -0
- package/build/runtime-cloners-2S7SALQM.js +1 -0
- package/build/runtime-cloners-2S7SALQM.js.br +1 -0
- package/build/runtime-cloners-2S7SALQM.js.gz +0 -0
- package/build/{runtime-collisionBVH-CQUE6RZV.js → runtime-collisionBVH-JA4BEOA7.js} +1 -1
- package/build/runtime-collisionBVH-JA4BEOA7.js.br +0 -0
- package/build/runtime-collisionBVH-JA4BEOA7.js.gz +0 -0
- package/build/{runtime-components-64WWNUFT.js → runtime-components-3T3QMQUH.js} +1 -1
- package/build/runtime-components-3T3QMQUH.js.br +0 -0
- package/build/runtime-components-3T3QMQUH.js.gz +0 -0
- package/build/{runtime-conditional-SK6JLPTN.js → runtime-conditional-CCGDVDMD.js} +1 -1
- package/build/runtime-conditional-CCGDVDMD.js.br +0 -0
- package/build/runtime-conditional-CCGDVDMD.js.gz +0 -0
- package/build/{runtime-createDestroy-TRMSN4GV.js → runtime-createDestroy-W6FF4RAP.js} +1 -1
- package/build/runtime-createDestroy-W6FF4RAP.js.br +0 -0
- package/build/runtime-createDestroy-W6FF4RAP.js.gz +0 -0
- package/build/{runtime-depthOfField-V2X263JE.js → runtime-depthOfField-DSE6YVZ4.js} +1 -1
- package/build/runtime-depthOfField-DSE6YVZ4.js.br +0 -0
- package/build/runtime-depthOfField-DSE6YVZ4.js.gz +0 -0
- package/build/{runtime-dragDrop-YPF34K77.js → runtime-dragDrop-2TMWDGUQ.js} +1 -1
- package/build/runtime-dragDrop-2TMWDGUQ.js.br +0 -0
- package/build/runtime-dragDrop-2TMWDGUQ.js.gz +0 -0
- package/build/{runtime-fxBloom-4HSWHGBL.js → runtime-fxBloom-4HB5FTK3.js} +1 -1
- package/build/runtime-fxBloom-4HB5FTK3.js.br +0 -0
- package/build/runtime-fxBloom-4HB5FTK3.js.gz +0 -0
- package/build/{runtime-fxDepthOfField-NGC6SATF.js → runtime-fxDepthOfField-URCQCIRP.js} +1 -1
- package/build/runtime-fxDepthOfField-URCQCIRP.js.br +0 -0
- package/build/runtime-fxDepthOfField-URCQCIRP.js.gz +0 -0
- package/build/{runtime-gameControls-TZIFAJNU.js → runtime-gameControls-VAUAOGUW.js} +1 -1
- package/build/runtime-gameControls-VAUAOGUW.js.br +0 -0
- package/build/runtime-gameControls-VAUAOGUW.js.gz +0 -0
- package/build/runtime-hair-NLGIEVG3.js +1 -0
- package/build/runtime-hair-NLGIEVG3.js.br +1 -0
- package/build/runtime-hair-NLGIEVG3.js.gz +0 -0
- package/build/{runtime-hueSaturation-YSHDI5JV.js → runtime-hueSaturation-TZ5VQY72.js} +1 -1
- package/build/runtime-hueSaturation-TZ5VQY72.js.br +0 -0
- package/build/runtime-hueSaturation-TZ5VQY72.js.gz +0 -0
- package/build/{runtime-mergeStaticGeometries-Y65NWJFJ.js → runtime-mergeStaticGeometries-K2YJKZ3C.js} +1 -1
- package/build/runtime-mergeStaticGeometries-K2YJKZ3C.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-K2YJKZ3C.js.gz +0 -0
- package/build/{runtime-miscActions-MOVRBNCH.js → runtime-miscActions-6CUG2JSF.js} +1 -1
- package/build/runtime-miscActions-6CUG2JSF.js.br +0 -0
- package/build/runtime-miscActions-6CUG2JSF.js.gz +0 -0
- package/build/{runtime-mouseHover-GER5PBUZ.js → runtime-mouseHover-CYCSNNZM.js} +1 -1
- package/build/runtime-mouseHover-CYCSNNZM.js.br +0 -0
- package/build/runtime-mouseHover-CYCSNNZM.js.gz +0 -0
- package/build/{runtime-noise-QZ2I3334.js → runtime-noise-FLMWYKTL.js} +1 -1
- package/build/runtime-noise-FLMWYKTL.js.br +0 -0
- package/build/runtime-noise-FLMWYKTL.js.gz +0 -0
- package/build/{runtime-particles-CHBC6DAR.js → runtime-particles-PDPG5E74.js} +1 -1
- package/build/runtime-particles-PDPG5E74.js.br +0 -0
- package/build/runtime-particles-PDPG5E74.js.gz +0 -0
- package/build/{runtime-paths-PVIXWENH.js → runtime-paths-E4GHUGNN.js} +1 -1
- package/build/runtime-paths-E4GHUGNN.js.br +0 -0
- package/build/runtime-paths-E4GHUGNN.js.gz +0 -0
- package/build/{runtime-pixelation-VQFF744B.js → runtime-pixelation-AOFGI5XX.js} +1 -1
- package/build/runtime-pixelation-AOFGI5XX.js.br +0 -0
- package/build/runtime-pixelation-AOFGI5XX.js.gz +0 -0
- package/build/{runtime-resize-BXJTXBND.js → runtime-resize-DAWD3MKG.js} +1 -1
- package/build/runtime-resize-DAWD3MKG.js.br +0 -0
- package/build/runtime-resize-DAWD3MKG.js.gz +0 -0
- package/build/{runtime-sceneTransition-M7OWS6T4.js → runtime-sceneTransition-SFGBWSP3.js} +1 -1
- package/build/runtime-sceneTransition-SFGBWSP3.js.br +0 -0
- package/build/runtime-sceneTransition-SFGBWSP3.js.gz +0 -0
- package/build/{runtime-scroll-XEQZHHLW.js → runtime-scroll-HKLPDE7E.js} +1 -1
- package/build/runtime-scroll-HKLPDE7E.js.br +0 -0
- package/build/runtime-scroll-HKLPDE7E.js.gz +0 -0
- package/build/runtime-shapeBlends-COFJFXT6.js +1 -0
- package/build/runtime-shapeBlends-COFJFXT6.js.br +2 -0
- package/build/runtime-shapeBlends-COFJFXT6.js.gz +0 -0
- package/build/{runtime-text-NV4Q5BBQ.js → runtime-text-NQU4F3KI.js} +1 -1
- package/build/runtime-text-NQU4F3KI.js.br +0 -0
- package/build/runtime-text-NQU4F3KI.js.gz +0 -0
- package/build/{runtime-textInputs-COZOCG5V.js → runtime-textInputs-5WG7OPGO.js} +1 -1
- package/build/runtime-textInputs-5WG7OPGO.js.br +0 -0
- package/build/runtime-textInputs-5WG7OPGO.js.gz +0 -0
- package/build/{runtime-timeline-MPAYKXWO.js → runtime-timeline-EAC5OJEK.js} +1 -1
- package/build/runtime-timeline-EAC5OJEK.js.br +0 -0
- package/build/runtime-timeline-EAC5OJEK.js.gz +0 -0
- package/build/{runtime-tracking-M7CHXAE5.js → runtime-tracking-6CN7PQFK.js} +1 -1
- package/build/runtime-tracking-6CN7PQFK.js.br +0 -0
- package/build/runtime-tracking-6CN7PQFK.js.gz +0 -0
- package/build/{runtime-transitions-OBLPSHIH.js → runtime-transitions-N47Y4AXH.js} +1 -1
- package/build/runtime-transitions-N47Y4AXH.js.br +0 -0
- package/build/runtime-transitions-N47Y4AXH.js.gz +0 -0
- package/build/{runtime-ui2d-OV6PGPLG.js → runtime-ui2d-T3OZFBOE.js} +1 -1
- package/build/runtime-ui2d-T3OZFBOE.js.br +0 -0
- package/build/runtime-ui2d-T3OZFBOE.js.gz +0 -0
- package/build/{runtime-updater-RCOMZLTB.js → runtime-updater-6YEO4WI3.js} +1 -1
- package/build/runtime-updater-6YEO4WI3.js.br +2 -0
- package/build/runtime-updater-6YEO4WI3.js.gz +0 -0
- package/build/{runtime-variables-DJUQPZDB.js → runtime-variables-ICLL7DZV.js} +1 -1
- package/build/runtime-variables-ICLL7DZV.js.br +0 -0
- package/build/runtime-variables-ICLL7DZV.js.gz +0 -0
- package/build/{runtime-vectorShapes-2N52XZYF.js → runtime-vectorShapes-4MX2X2MH.js} +1 -1
- package/build/runtime-vectorShapes-4MX2X2MH.js.br +0 -0
- package/build/runtime-vectorShapes-4MX2X2MH.js.gz +0 -0
- package/build/{runtime-video-U5RS7HHJ.js → runtime-video-KFIFPA6P.js} +1 -1
- package/build/runtime-video-KFIFPA6P.js.br +0 -0
- package/build/runtime-video-KFIFPA6P.js.gz +0 -0
- package/build/{runtime-vignette-TYITST5S.js → runtime-vignette-S4Z7IMQ5.js} +1 -1
- package/build/runtime-vignette-S4Z7IMQ5.js.br +0 -0
- package/build/runtime-vignette-S4Z7IMQ5.js.gz +0 -0
- package/build/runtime-webgpu-JZZF7PVG.js +1 -0
- package/build/runtime-webgpu-JZZF7PVG.js.br +0 -0
- package/build/runtime-webgpu-JZZF7PVG.js.gz +0 -0
- package/build/runtime.cjs +16 -8
- package/build/runtime.js +1 -1
- package/build/runtime.js.br +0 -0
- package/build/runtime.js.gz +0 -0
- package/build/runtime.standalone.js +1 -1
- package/build/runtime.standalone.js.br +0 -0
- package/build/runtime.standalone.js.gz +0 -0
- package/build/runtime.standalone.webgl.js +1 -1
- package/build/runtime.standalone.webgl.js.br +0 -0
- package/build/runtime.standalone.webgl.js.gz +0 -0
- package/build/runtime.standalone.webgpu.js +1 -1
- package/build/runtime.standalone.webgpu.js.br +0 -0
- package/build/runtime.standalone.webgpu.js.gz +0 -0
- package/build/runtime.standalone.webgpu.micro.js +1 -1
- package/build/runtime.standalone.webgpu.micro.js.br +0 -0
- package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
- package/build/runtime.standalone.webgpu.min.js +1 -1
- package/build/runtime.standalone.webgpu.min.js.br +0 -0
- package/build/runtime.standalone.webgpu.min.js.gz +0 -0
- package/package.json +1 -1
- package/build/runtime-DRACOLoader-GLMRFFK2.js.br +0 -0
- package/build/runtime-DRACOLoader-GLMRFFK2.js.gz +0 -0
- package/build/runtime-aiAssistant-5ECVEZLI.js.br +0 -0
- package/build/runtime-aiAssistant-5ECVEZLI.js.gz +0 -0
- package/build/runtime-apiServices-J4QEEJ2S.js.br +0 -0
- package/build/runtime-apiServices-J4QEEJ2S.js.gz +0 -0
- package/build/runtime-audio-P56XBVSL.js.br +0 -7
- package/build/runtime-audio-P56XBVSL.js.gz +0 -0
- package/build/runtime-bloom-5BWRSKXE.js.br +0 -0
- package/build/runtime-bloom-5BWRSKXE.js.gz +0 -0
- package/build/runtime-brightnessContrast-GBILAHY5.js.br +0 -0
- package/build/runtime-brightnessContrast-GBILAHY5.js.gz +0 -0
- package/build/runtime-chromaticAberration-XNVWJQWI.js.br +0 -0
- package/build/runtime-chromaticAberration-XNVWJQWI.js.gz +0 -0
- package/build/runtime-chunk-36CLBSQD.js.br +0 -0
- package/build/runtime-chunk-36CLBSQD.js.gz +0 -0
- package/build/runtime-chunk-3AHB3XAD.js.br +0 -0
- package/build/runtime-chunk-3AHB3XAD.js.gz +0 -0
- package/build/runtime-chunk-3H2EF32R.js.br +0 -2
- package/build/runtime-chunk-3H2EF32R.js.gz +0 -0
- package/build/runtime-chunk-66HDBRK4.js +0 -1
- package/build/runtime-chunk-66HDBRK4.js.br +0 -0
- package/build/runtime-chunk-66HDBRK4.js.gz +0 -0
- package/build/runtime-chunk-ACJIWRIH.js +0 -1
- package/build/runtime-chunk-ACJIWRIH.js.br +0 -0
- package/build/runtime-chunk-ACJIWRIH.js.gz +0 -0
- package/build/runtime-chunk-AUIS3MRY.js.br +0 -0
- package/build/runtime-chunk-AUIS3MRY.js.gz +0 -0
- package/build/runtime-chunk-BVVSZMXD.js +0 -1
- package/build/runtime-chunk-BVVSZMXD.js.br +0 -0
- package/build/runtime-chunk-BVVSZMXD.js.gz +0 -0
- package/build/runtime-chunk-CKYSGX2V.js.br +0 -0
- package/build/runtime-chunk-CKYSGX2V.js.gz +0 -0
- package/build/runtime-chunk-DSXX6SLP.js.br +0 -0
- package/build/runtime-chunk-DSXX6SLP.js.gz +0 -0
- package/build/runtime-chunk-FAESWIXG.js +0 -1
- package/build/runtime-chunk-FAESWIXG.js.br +0 -0
- package/build/runtime-chunk-FAESWIXG.js.gz +0 -0
- package/build/runtime-chunk-GXEXRQ6S.js +0 -1
- package/build/runtime-chunk-GXEXRQ6S.js.br +0 -0
- package/build/runtime-chunk-GXEXRQ6S.js.gz +0 -0
- package/build/runtime-chunk-HBZCKQBD.js.br +0 -0
- package/build/runtime-chunk-HBZCKQBD.js.gz +0 -0
- package/build/runtime-chunk-HEEYURNH.js.br +0 -0
- package/build/runtime-chunk-HEEYURNH.js.gz +0 -0
- package/build/runtime-chunk-J53RQDYR.js.br +0 -0
- package/build/runtime-chunk-J53RQDYR.js.gz +0 -0
- package/build/runtime-chunk-JKFC5GFF.js.br +0 -0
- package/build/runtime-chunk-JKFC5GFF.js.gz +0 -0
- package/build/runtime-chunk-JPQPMU3J.js.br +0 -0
- package/build/runtime-chunk-JPQPMU3J.js.gz +0 -0
- package/build/runtime-chunk-K7TL4PIJ.js.br +0 -0
- package/build/runtime-chunk-K7TL4PIJ.js.gz +0 -0
- package/build/runtime-chunk-KARVJCBP.js.br +0 -0
- package/build/runtime-chunk-KARVJCBP.js.gz +0 -0
- package/build/runtime-chunk-KHCWX7UM.js.br +0 -0
- package/build/runtime-chunk-KHCWX7UM.js.gz +0 -0
- package/build/runtime-chunk-KOR4TIQN.js.br +0 -0
- package/build/runtime-chunk-KOR4TIQN.js.gz +0 -0
- package/build/runtime-chunk-LSRIE5CU.js.br +0 -0
- package/build/runtime-chunk-LSRIE5CU.js.gz +0 -0
- package/build/runtime-chunk-MTXG5LUQ.js.br +0 -0
- package/build/runtime-chunk-MTXG5LUQ.js.gz +0 -0
- package/build/runtime-chunk-NEKALYDS.js +0 -1
- package/build/runtime-chunk-NEKALYDS.js.br +0 -0
- package/build/runtime-chunk-NEKALYDS.js.gz +0 -0
- package/build/runtime-chunk-PONAD3UD.js.br +0 -0
- package/build/runtime-chunk-PONAD3UD.js.gz +0 -0
- package/build/runtime-chunk-PYCMOG7D.js.br +0 -0
- package/build/runtime-chunk-PYCMOG7D.js.gz +0 -0
- package/build/runtime-chunk-QSWZYIFB.js.br +0 -0
- package/build/runtime-chunk-QSWZYIFB.js.gz +0 -0
- package/build/runtime-chunk-R6L7MCY3.js.br +0 -0
- package/build/runtime-chunk-R6L7MCY3.js.gz +0 -0
- package/build/runtime-chunk-RUQ6SJPM.js.br +0 -0
- package/build/runtime-chunk-RUQ6SJPM.js.gz +0 -0
- package/build/runtime-chunk-TEGAP3DX.js.br +0 -0
- package/build/runtime-chunk-TEGAP3DX.js.gz +0 -0
- package/build/runtime-chunk-UI6FZJSE.js.br +0 -0
- package/build/runtime-chunk-UI6FZJSE.js.gz +0 -0
- package/build/runtime-chunk-WHEALKAN.js.br +0 -0
- package/build/runtime-chunk-WHEALKAN.js.gz +0 -0
- package/build/runtime-chunk-WMPEU73G.js +0 -1
- package/build/runtime-chunk-WMPEU73G.js.br +0 -0
- package/build/runtime-chunk-WMPEU73G.js.gz +0 -0
- package/build/runtime-chunk-XXDLMDCN.js +0 -1
- package/build/runtime-chunk-XXDLMDCN.js.br +0 -0
- package/build/runtime-chunk-XXDLMDCN.js.gz +0 -0
- package/build/runtime-classicRuntime-OKLTCERD.js.br +0 -0
- package/build/runtime-classicRuntime-OKLTCERD.js.gz +0 -0
- package/build/runtime-cloners-W6DM7SHL.js +0 -1
- package/build/runtime-cloners-W6DM7SHL.js.br +0 -1
- package/build/runtime-cloners-W6DM7SHL.js.gz +0 -0
- package/build/runtime-collisionBVH-CQUE6RZV.js.br +0 -0
- package/build/runtime-collisionBVH-CQUE6RZV.js.gz +0 -0
- package/build/runtime-components-64WWNUFT.js.br +0 -0
- package/build/runtime-components-64WWNUFT.js.gz +0 -0
- package/build/runtime-conditional-SK6JLPTN.js.br +0 -0
- package/build/runtime-conditional-SK6JLPTN.js.gz +0 -0
- package/build/runtime-createDestroy-TRMSN4GV.js.br +0 -0
- package/build/runtime-createDestroy-TRMSN4GV.js.gz +0 -0
- package/build/runtime-depthOfField-V2X263JE.js.br +0 -0
- package/build/runtime-depthOfField-V2X263JE.js.gz +0 -0
- package/build/runtime-dragDrop-YPF34K77.js.br +0 -0
- package/build/runtime-dragDrop-YPF34K77.js.gz +0 -0
- package/build/runtime-fxBloom-4HSWHGBL.js.br +0 -0
- package/build/runtime-fxBloom-4HSWHGBL.js.gz +0 -0
- package/build/runtime-fxDepthOfField-NGC6SATF.js.br +0 -0
- package/build/runtime-fxDepthOfField-NGC6SATF.js.gz +0 -0
- package/build/runtime-gameControls-TZIFAJNU.js.br +0 -0
- package/build/runtime-gameControls-TZIFAJNU.js.gz +0 -0
- package/build/runtime-hair-ZA7YFZ6E.js +0 -1
- package/build/runtime-hair-ZA7YFZ6E.js.br +0 -1
- package/build/runtime-hair-ZA7YFZ6E.js.gz +0 -0
- package/build/runtime-hueSaturation-YSHDI5JV.js.br +0 -0
- package/build/runtime-hueSaturation-YSHDI5JV.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-Y65NWJFJ.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-Y65NWJFJ.js.gz +0 -0
- package/build/runtime-miscActions-MOVRBNCH.js.br +0 -0
- package/build/runtime-miscActions-MOVRBNCH.js.gz +0 -0
- package/build/runtime-mouseHover-GER5PBUZ.js.br +0 -0
- package/build/runtime-mouseHover-GER5PBUZ.js.gz +0 -0
- package/build/runtime-noise-QZ2I3334.js.br +0 -0
- package/build/runtime-noise-QZ2I3334.js.gz +0 -0
- package/build/runtime-particles-CHBC6DAR.js.br +0 -0
- package/build/runtime-particles-CHBC6DAR.js.gz +0 -0
- package/build/runtime-paths-PVIXWENH.js.br +0 -0
- package/build/runtime-paths-PVIXWENH.js.gz +0 -0
- package/build/runtime-pixelation-VQFF744B.js.br +0 -0
- package/build/runtime-pixelation-VQFF744B.js.gz +0 -0
- package/build/runtime-resize-BXJTXBND.js.br +0 -0
- package/build/runtime-resize-BXJTXBND.js.gz +0 -0
- package/build/runtime-sceneTransition-M7OWS6T4.js.br +0 -0
- package/build/runtime-sceneTransition-M7OWS6T4.js.gz +0 -0
- package/build/runtime-scroll-XEQZHHLW.js.br +0 -0
- package/build/runtime-scroll-XEQZHHLW.js.gz +0 -0
- package/build/runtime-shapeBlends-OPZDOAMP.js +0 -1
- package/build/runtime-shapeBlends-OPZDOAMP.js.br +0 -0
- package/build/runtime-shapeBlends-OPZDOAMP.js.gz +0 -0
- package/build/runtime-text-NV4Q5BBQ.js.br +0 -0
- package/build/runtime-text-NV4Q5BBQ.js.gz +0 -0
- package/build/runtime-textInputs-COZOCG5V.js.br +0 -0
- package/build/runtime-textInputs-COZOCG5V.js.gz +0 -0
- package/build/runtime-timeline-MPAYKXWO.js.br +0 -0
- package/build/runtime-timeline-MPAYKXWO.js.gz +0 -0
- package/build/runtime-tracking-M7CHXAE5.js.br +0 -0
- package/build/runtime-tracking-M7CHXAE5.js.gz +0 -0
- package/build/runtime-transitions-OBLPSHIH.js.br +0 -0
- package/build/runtime-transitions-OBLPSHIH.js.gz +0 -0
- package/build/runtime-ui2d-OV6PGPLG.js.br +0 -0
- package/build/runtime-ui2d-OV6PGPLG.js.gz +0 -0
- package/build/runtime-updater-RCOMZLTB.js.br +0 -3
- package/build/runtime-updater-RCOMZLTB.js.gz +0 -0
- package/build/runtime-variables-DJUQPZDB.js.br +0 -0
- package/build/runtime-variables-DJUQPZDB.js.gz +0 -0
- package/build/runtime-vectorShapes-2N52XZYF.js.br +0 -0
- package/build/runtime-vectorShapes-2N52XZYF.js.gz +0 -0
- package/build/runtime-video-U5RS7HHJ.js.br +0 -0
- package/build/runtime-video-U5RS7HHJ.js.gz +0 -0
- package/build/runtime-vignette-TYITST5S.js.br +0 -0
- package/build/runtime-vignette-TYITST5S.js.gz +0 -0
- package/build/runtime-webgpu-CBYAHAHI.js +0 -1
- package/build/runtime-webgpu-CBYAHAHI.js.br +0 -0
- package/build/runtime-webgpu-CBYAHAHI.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e,g as t,j as r}from"./runtime-chunk-KOR4TIQN.js";import{a,b as n}from"./runtime-chunk-HD7WF3XN.js";import{a as i,d as s,f as o,g as l}from"./runtime-chunk-MTXG5LUQ.js";import{b as u}from"./runtime-chunk-J53RQDYR.js";import{Z as d,ba as c,ca as h,i as p,ia as f,ja as g}from"./runtime-chunk-WMPEU73G.js";import{v as m}from"./runtime-chunk-KARVJCBP.js";import{d as b,e as y}from"./runtime-chunk-RTLL6WIB.js";import{c as v,d as w,e as S}from"./runtime-chunk-2PT2WH66.js";import{A as j,B as A,C as V,G as M,H as D,M as R,N as E,O as k,P as x,Q as O,R as P,ca as C,la as B,oa as N,z as G}from"./runtime-chunk-KHCWX7UM.js";import{Cc as I,Dc as F,Ec as z,Fc as T,Pc as q,Tc as W}from"./runtime-chunk-BVVSZMXD.js";var L=Math.fround,X=[.01,100],U=[.01,1e4],H=[.01,1e3],Q=[.01,1e3];function K(e,[t,r]){return Math.min(Math.max(e,t),r)}function _(e,t,r,a,n){e=K(e,X),t=K(t,U),r=K(r,H),a=K(a,Q);let i=Math.sqrt(t/e),s=r/(2*Math.sqrt(t*e)),o=s<1?i*Math.sqrt(1-s*s):0,l=s<1?(s*i-a)/o:-a+i;return e=>{let t=void 0!==n?n*e:e;return t=s<1?Math.exp(-t*s*i)*(1*Math.cos(o*t)+l*Math.sin(o*t)):(1+l*t)*Math.exp(-t*i),0===e||1===e?e:1-t}}var J=L(.001),Z=L(1e-7),Y=L(.1);function $(e,t){return L(L(1-L(3*t))+L(3*e))}function ee(e,t){return L(L(3*t)-L(6*e))}function te(e){return L(3*e)}function re(e,t,r){return L(L(L(L(L($(t,r)*e)+ee(t,r))*e)+te(t))*e)}function ae(e,t,r){let a=L(L(L(3*$(t,r))*e)*e),n=L(L(2*ee(t,r))*e);return L(L(a+n)+te(t))}var ne=e=>e;function ie(e,t,r,a){if(e=L(e),t=L(t),r=L(r),a=L(a),e<0||e>1||r<0||r>1||e===t&&r===a)return ne;let n=new Float32Array(11);for(let t=0;t<11;t++)n[t]=re(L(t*Y),e,r);return i=>0===(i=L(i))||1===i?i:re((t=>{let a=0,i=1;for(;10!==i&&n[i]<=t;)a=L(a+Y),i+=1;i-=1;let s=L(L(t-n[i])/L(n[i+1]-n[i])),o=L(a+L(s*Y)),l=ae(o,e,r);return l>=J?function(e,t,r,a){for(let n=0;n<4;n++){let n=ae(t,r,a);if(0===n)return t;let i=L(re(t,r,a)-e);t=L(t-L(i/n))}return t}(t,o,e,r):0===l?o:function(e,t,r,a,n){let i,s=0,o=0;do{s=L(t+L(L(r-t)/2)),i=L(re(s,a,n)-e),i>0?r=s:t=s,o+=1}while(Math.abs(i)>Z&&o<10);return s}(t,a,L(a+Y),e,r)})(i),t,a)}var se=L(1.70158);function oe(e,t,r){switch(e.easing){case 0:default:return r;case 1:return ie(.25,.1,.25,1)(r);case 2:return ie(.42,0,1,1)(r);case 3:return ie(0,0,.58,1)(r);case 4:return ie(.42,0,.58,1)(r);case 7:return ie(.25,1,.5,1)(r);case 8:return Math.floor(r);case 5:{let{control1:t,control2:a}=e;return t&&a?ie(t[0],t[1],a[0],a[1])(r):r}case 6:{let{mass:a,stiffness:n,damping:i,velocity:s}=e;return void 0===a||void 0===n||void 0===i||void 0===s?r:L(_(a,n,i,s,t)(r))}}}L(se+1);var le=Math.fround,ue=class{constructor(e,t,r){this.apply=t,this.onStart=r,this.isPlaying=!1,this.isReversed=!1,this.endTime=0,this.startTime=0,this.isFirstLerpAfterStart=!1,this.config=e,this.duration=function(e,t){if(6!==e.easing)return t;let{mass:r,stiffness:a,damping:n,velocity:i}=e;return void 0===r||void 0===a||void 0===n||void 0===i?t:function(e,t,r,a){let n=.16666666666666666,i=0,s=0,o=_(e,t,r,a);for(let e=0;e<1e5;e++)if(i+=n,1===o(i)){if(s+=1,s>=16)break}else s=0;return L(i*n)}(r,a,n,i)}(e.ease,le(e.duration/1e3)),this.delay=le(e.delay/1e3),this.currentRepeat=e.repeat}get repeatDirection(){return this.overrideDirection??this.config.direction}get isPingpong(){let e=this.repeatDirection;return"pingpong"===e||"pingpong-rewind"===e}get actualDelayDirection(){return this.isReversed?"start"===this.config.delayDirection?"end":"end"===this.config.delayDirection?"start":this.config.delayDirection:this.config.delayDirection}start(e){this.isPlaying=!0,this.currentRepeat=this.config.repeat,this.isFirstLerpAfterStart=!0,this.startTime=e,this.onStart?.()}endAfterCurrentPass(){this.currentRepeat<0&&(this.currentRepeat=0)}stop(){this.isPlaying=!1}rearm(){this.onStart?.()}seek(e){this.lerp(e)}update(e){if(!this.isPlaying)return;let t=a(e,this.startTime),r=0;if(this.isFirstLerpAfterStart||!this.isPingpong){let e=this.actualDelayDirection;if("start-once"===this.config.delayDirection&&this.isFirstLerpAfterStart||"start"===e||"start-end"===e){if(t<this.delay)return;r=this.delay}}t=le(t-r);let i=0===this.duration?1:Math.min(Math.max(le(t/this.duration),0),1);if(this.lerp(i),!this.isPlaying||1!==i)return;let s=this.actualDelayDirection;if("end"===s||"start-end"===s){if(t<le(this.duration+this.delay))return;this.endTime=n(this.startTime,le(le(r+this.duration)+this.delay))}else this.endTime=n(this.startTime,le(r+this.duration));this.isFirstLerpAfterStart=!1,0!==this.currentRepeat?(this.currentRepeat>0&&(this.currentRepeat-=1),this.isPingpong?this.isReversed=!this.isReversed:this.lerp(0),this.startTime=e,this.onStart?.()):this.stop()}lerp(e){"pingpong-rewind"===this.repeatDirection&&this.isReversed?(e=le(1-e),e=this.ease(e),e=le(1-e)):e=this.ease(e),this.apply(e)}ease(e){return oe(this.config.ease,this.duration,e)}},{degToRad:de,radToDeg:ce}=I;function he(e,t,r,a,n,i){let s=void 0!==r[e]?r[e]:void 0,o=a[e];if(null==o)return;let l=null!=s?"string"==typeof s?Number(n.getVariable(s)??0):s:t[e],u="string"==typeof o?Number(n.getVariable(o)??0):o;return l!==u?{update:r=>{let a=I.lerp(l,u,r);t[e]=i?Math.trunc(a):a},start:()=>{t[e]=l},end:()=>{t[e]=u}}:void 0}function pe(e,t,r,a,n,i){let s=r[e]?r[e]:void 0,o=a[e];if(!o)return;let l=t[e],u=[...s??l].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e),d=[...o].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e);return u.length!==d.length||b(u,d)?void 0:{update:r=>{u.forEach((a,n)=>{let s=I.lerp(a,d[n],r);t[e][n]=i?Math.trunc(s):s})},start:()=>{Object.assign(t[e],u)},end:()=>{Object.assign(t[e],d)}}}function fe(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function ge(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?fe(new T,i,n):o.clone(),u=fe(new T,s,n);return l.equals(u)?void 0:{update:e=>{o.lerpVectors(l,u,e)},start:()=>{o.copy(l)},end:()=>{o.copy(u)}}}function me(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function be(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=!(o instanceof F),u=o instanceof F?o:(new F).fromArray(o),d=i?me(new F,i,n):u.clone(),c=me(new F,s,n);return d.equals(c)?void 0:{update:r=>{u.lerpVectors(d,c,r),l&&(t[e]=u.toArray())},start:()=>{u.copy(d),l&&(t[e]=u.toArray())},end:()=>{u.copy(c),l&&(t[e]=u.toArray())}}}function ye(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=new p(o.r,o.g,o.b,o.a),u=i?"string"==typeof i?n.getColor(i).clone():new p(i.r,i.g,i.b,i.a):l.clone(),d="string"==typeof s?n.getColor(s).clone():new p(s.r,s.g,s.b,s.a);return u.equals(d)?void 0:{update:r=>{l.lerpColors(u,d,r);let a=I.lerp(u.a,d.a,r);l.a=a,t[e]={r:l.r,g:l.g,b:l.b,a:l.a}},start:()=>{l.copy(u)},end:()=>{l.copy(d)}}}function ve(e,t,r,a,n){return"number"==typeof t[e]?he(e,t,r??{},a,n):Array.isArray(t[e])?pe(e,t,r??{},a,n):void 0}function we(e,t){if(e)for(let[r,a]of Object.entries(t)){let t=e[r];if(Array.isArray(t)&&Array.isArray(a)){let e=Math.min(t.length,a.length);for(let r=0;r<e;r++)t[r]=a[r]}else e[r]=a}}function Se(e,t,r,a){let n={};if(!t||!r)return n;for(let i of e){let e=t[i],s=r[i];if("number"==typeof e&&"number"==typeof s)n[i]=I.lerp(e,s,a);else if(Array.isArray(e)&&Array.isArray(s)){let t=Math.min(e.length,s.length);n[i]=Array.from({length:t},(t,r)=>I.lerp(e[r],s[r],a))}}return n}function je(e,t,r,a,n){let i=e.getValue(a);if(void 0!==i){if("colors"===a)return function(e,t,r,a="colors"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i.map(e=>e.toArray()),o=r[a];for(let e=0;e<i.length;++e){let t=[...s[e]],r=[...o[e]];A.isEqual(t,r)||n.push({update:a=>{i[e].fromArray(A.lerp(t,r,a))},start:()=>{i[e].fromArray(t)},end:()=>{i[e].fromArray(r)}})}return n.length?n:void 0}(e,t,r,a);if(Array.isArray(i))return"steps"===a?function(e,t,r,a="steps"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i,o=r[a];return b(s,o)||n.push({update:t=>{let r=[...i];for(let e=0;e<i.length;++e){let a=s[e],n=o[e];r[e]=I.lerp(a,n,t)}e.setValue(a,r)},start:()=>{e.setValue(a,s)},end:()=>{e.setValue(a,o)}}),n.length?n:void 0}(e,t,r,a):void 0;if("number"==typeof i)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:e.getValue(a),s=r[a],o="string"==typeof i?Number(n.getVariable(i)??0):i,l="string"==typeof s?Number(n.getVariable(s)??0):s;return{update:t=>{e.setValue(a,I.lerp(o,l,t))},start:()=>{e.setValue(a,o)},end:()=>{e.setValue(a,l)}}}(e,t,r,a,n);if("boolean"!=typeof i){if(i instanceof F)return function(e,t,r,a){if(!e.hasValue(a)||!(a in r))return;let n=e.getValue(a),i=t?(new F).fromArray(t[a]):n.clone(),s=(new F).fromArray(r[a]);return i.equals(s)?void 0:{update:e=>{n.lerpVectors(i,s,e)},start:()=>{n.copy(i)},end:()=>{n.copy(s)}}}(e,t,r,a);if(i instanceof T)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=e.getValue(a),s=t?t[a]:void 0,o=r[a],l=s?fe(new T,s,n):i.clone(),u=fe(new T,o,n);return l.equals(u)?void 0:{update:e=>{i.lerpVectors(l,u,e)},start:()=>{i.copy(l)},end:()=>{i.copy(u)}}}(e,t,r,a,n);if(i instanceof p)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():new p(s.r,s.g,s.b,s.a);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if(i instanceof W)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if("isTexture"in i)return function(e,t,r,a="texture",n){if(!e.hasValue(a)||!(a in r))return;let i=e=>Number("string"==typeof e?n?.getVariable(e)??0:e??0),s=e.getNode("rotation"),o=t?i(t[a]?.rotation):(s?.value??0)*I.RAD2DEG,l=i(r[a]?.rotation);if(s&&Math.abs(o-l)>1e-9)return{update:e=>{s.value=I.lerp(o,l,e)*I.DEG2RAD},start:()=>{s.value=o*I.DEG2RAD},end:()=>{s.value=l*I.DEG2RAD}};let u=function(e){let t=e.getNode("mat");if("function"==typeof t?.updateMatrix)return t;let r=e.getValue("mat");return"function"==typeof r?.updateMatrix?r:void 0}(e);if(!u)return;let d=t?t[a]:u,c=r[a],h=[...d.repeat],p=[...d.offset],f=[...c.repeat],g=[...c.offset],m=d.rotation??0,b=c.rotation??0;return G.isEqual(h,f)&&G.isEqual(p,g)&&m===b?void 0:{update:e=>{u.repeat=G.lerp(h,f,e),u.offset=G.lerp(p,g,e),u.rotation=I.lerp(m,b,e),u.updateMatrix()},start:()=>{u.repeat=[...h],u.offset=[...p],u.rotation=m,u.updateMatrix()},end:()=>{u.repeat=[...f],u.offset=[...g],u.rotation=b,u.updateMatrix()}}}(e,t,r,a,n)}}}function Ae(e,t,r,a){let n=[],i=t.layers?d(t,a):e.transparent,s=d(r,a);n.push(function(e,t,r){let a=t||r;return{update:t=>{e.setTransparent(1===t?r:a)}}}(e,i,s)),function(e,t,r){let a=e.ensureRainbowNoiseCompiled;if("function"==typeof a)for(let n of[...e.layers]){if("rainbow"!==n.type)continue;let i=t.layers?.data(n.uuid),s=r.layers.data(n.uuid);(c(i?.noiseStrength)||c(s?.noiseStrength))&&a.call(e,n.uuid)}}(e,t,r);for(let i of e.layers){let e=t.layers?.data(i.uuid),s=r.layers.data(i.uuid);if(!s||"light"!==i.type&&(!(i.visible??1)||!(s.visible??1)))continue;let o=h[i.type]??[],l=i.getNames().filter(e=>!o.includes(e)&&!C.some(t=>e.includes(t)));for(let t of l)try{let r=je(i,e,s,t,a);r&&(Array.isArray(r)?n.push(...r):n.push(r))}catch(e){console.error(`lerpMaterial: unexpected material layer for ${t}`,e)}}return n}function Ve(e,t,r,a,n,i){let s=je(t,r,a,e,i);!s||(Array.isArray(s)?s.forEach(e=>e.update(n)):s.update(n))}new T,new q;var Me=new T,De=new q;var Re=[["radial",E],["linear",k],["grid",x],["toObject",O],["randomnessObject",P]];function Ee(e,t,r,a){if(!e)return{};let n=Se(["count"],t,r,a);void 0!==n.count&&(n.count=Math.trunc(n.count));for(let[i,s]of Re){if(!e[i])continue;let o=Se(s,t[i],r[i],a);Object.keys(o).length&&(n[i]=o)}return n}function ke(e,t){if(e){void 0!==t.count&&(e.count=t.count);for(let[r]of Re){let a=t[r];a&&we(e[r],a)}}}function xe(a,n,d,c,h){let p=[];return a.data.visible&&p.push(...function(e,t,r,a,n){let i,s,u,d,c,h,p,f=[];if(S(e)?(i=be("position",e,t,r,n),i&&f.push(i),u=he("rotation",e,t,r,n),u&&f.push(u),d=be("shear",e,t,r,n),d&&f.push(d)):(p={slide:t.pathSnapping?.slide??e.updatedPathSnapping?.slide??e.dataPatched.pathSnapping?.slide??0,offset:t.pathSnapping?.offset??e.updatedPathSnapping?.offset??e.dataPatched.pathSnapping?.offset??0},c=he("slide",p,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),c&&f.push(c),h=he("offset",p,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),h&&f.push(h),!c&&!h&&(i=ge("position",e,t,r,n),i&&f.push(i),s=ge("scale",e,t,r,n),s&&f.push(s),u=function(e,t,r,a,n){let i=t?.rotation?t.rotation.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*I.DEG2RAD):void 0,s=r.rotation?.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*I.DEG2RAD);if(!s)return;let o=i?(new T).fromArray(i):(new T).setFromEuler(e.rotation),l=(new T).fromArray(s);if(o.equals(l))return;let u=Me.subVectors(l,o);if(a&&u.toArray().every(e=>Math.abs(e)<2*Math.PI)){let t=(new z).setFromEuler(De.setFromVector3(o)),r=(new z).setFromEuler(De.setFromVector3(l));return{update:a=>{!function(e,t,r,a){if(0===a)return r.copy(e);if(1===a)return r.copy(t);let n=e.w*t.w+e.x*t.x+e.y*t.y+e.z*t.z;if(n>=1)return r.copy(e);let i=1-n*n;if(i<=Number.EPSILON){let n=1-a;return r.w=n*e.w+a*t.w,r.x=n*e.x+a*t.x,r.y=n*e.y+a*t.y,r.z=n*e.z+a*t.z,r.normalize(),r}let s=Math.sqrt(i),o=Math.atan2(s,n),l=Math.sin((1-a)*o)/s,u=Math.sin(a*o)/s;r.w=e.w*l+t.w*u,r.x=e.x*l+t.x*u,r.y=e.y*l+t.y*u,r.z=e.z*l+t.z*u}(t,r,e.quaternion,a)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}return{update:t=>{Me.lerpVectors(o,l,t),e.rotation.setFromVector3(Me)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}(e,t,r,a,n),u&&f.push(u),d=function(e,t,r){let a=t.shear,n=r.shear;if(!n)return;let i=e.shearMatrix,s=a??[i.elements[4],i.elements[8],i.elements[1],i.elements[9],i.elements[2],i.elements[6]],o=n;return s.every((e,t)=>e===o[t])?void 0:{update:e=>{s.forEach((t,r)=>{let a=I.lerp(t,o[r],e);i.elements[V.INDEX_MAP[r]]=a})},start:()=>{s.forEach((e,t)=>{i.elements[V.INDEX_MAP[t]]=e})},end:()=>{o.forEach((e,t)=>{i.elements[V.INDEX_MAP[t]]=e})}}}(e,t,r),d&&f.push(d))),i||s||u||d||c||h){let r=S(e)?()=>{e.updateWorldMatrix(!0,!1,!0),e.resetBBoxNeedsUpdate()}:()=>{e.updateMatrix(),e.hasNonUniformScale&&(e.updateMatrixWorld(),e.updateMatrixWorldRigid()),e.parent?.matrixWorldFusedFalse&&(e.matrixWorld.multiplyMatrices(e.parent.matrixWorldFusedFalse,e.matrix),e.matrixWorldNeedsUpdate=!1),o(e)&&l(e.parent)&&e.invalidateDownstreamBooleanData(!0),e.updatePathSnapping(Object.assign({},t.pathSnapping,p))};f.push({update:r,start:r,end:r})}return f}(a,n,d,h,c.shared)),S(a)?p.push(...function(a,n,i,s,o){let l,u,d,c,h,p,f,g,m,b,y,v,w,S,j,A=[];if("width"in a&&(l=he("width",a,n,i,o),l&&A.push(l)),"height"in a&&(u=he("height",a,n,i,o),u&&A.push(u)),a instanceof e||a instanceof r){let t={...n.fill},r={...i.fill};void 0!==t.enabled&&t.enabled!==r.enabled&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.fill.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),d=ye("color",a.fill,t,r,o),d&&A.push(d)}if(a instanceof e){let t={...n.stroke},r={...i.stroke};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.stroke.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),c=ye("color",a.stroke,t,r,o),c&&A.push(c),h=he("thickness",a.stroke,t,r,o),h&&A.push(h)}if(a instanceof e){let t={...n.dropShadow},r={...i.dropShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.dropShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),p=ye("color",a.dropShadow,t,r,o),p&&A.push(p),f=he("blurRadius",a.dropShadow,t,r,o),f&&A.push(f),m=he("spread",a.dropShadow,t,r,o),m&&A.push(m),g=be("offset",a.dropShadow,t,r,o),g&&A.push(g)}if(a instanceof e){let t={...n.innerShadow},r={...i.innerShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.innerShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),b=ye("color",a.innerShadow,t,r,o),b&&A.push(b),y=he("blurRadius",a.innerShadow,t,r,o),y&&A.push(y),w=he("spread",a.innerShadow,t,r,o),w&&A.push(w),v=be("offset",a.innerShadow,t,r,o),v&&A.push(v)}if(a instanceof e||a instanceof r){let t={...n.backgroundBlur},r={...i.backgroundBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.backgroundBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),S=he("radius",a.backgroundBlur,t,r,o),S&&A.push(S)}if(a instanceof e){let t={...n.layerBlur},r={...i.layerBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.layerBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),j=he("radius",a.layerBlur,t,r,o),j&&A.push(j)}if(a instanceof r||a instanceof t){let e=pe("cornerRadius",a,n,i,o);e&&A.push(e)}return A}(a,n,d,0,c.shared)):(a.data.visible&&p.push(...function(e,t,r,a){let n=[];if(!("cloner"in r)||!e.cloner)return n;let i=e.cloner,s="cloner"in t?t.cloner:{},o=r.cloner;R.forEach(e=>{let t;t="count"===e?he("count",i.parameters,s,o,a.shared,!0):ve(e,i.parameters,s??{},o,a.shared),t&&n.push(t)});let l=function(e,t,r,a){if("radial"!==e.parameters.type)return;let n=t.radial,i=r.radial;if(!i)return;let s=e.parameters.radial,o=[];return E.forEach(e=>{let t=ve(e,s,n??{},i,a);t&&o.push(t)}),o}(i,s,o,a.shared);l?.length&&n.push(...l);let u=function(e,t,r,a){if("linear"!==e.parameters.type)return;let n=t.linear,i=r.linear;if(!i)return;let s=[],o=e.parameters.linear;return k.forEach(e=>{let t=ve(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);u?.length&&n.push(...u);let d=function(e,t,r,a){if("grid"!==e.parameters.type)return;let n=t.grid,i=r.grid;if(!i)return;let s=[],o=e.parameters.grid;return x.forEach(e=>{let t;t="count"===e?pe(e,o,n??{},i,a,!0):ve(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);d?.length&&n.push(...d);let c=function(e,t,r,a){if("toObject"!==e.parameters.type)return;let n=t.toObject,i=r.toObject;if(!i)return;let s=[],o=e.parameters.toObject;return O.forEach(e=>{let t;t="count"===e?he(e,o,n??{},i,a,!0):ve(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);c?.length&&n.push(...c);let h=function(e,t,r,a){if(!e.parameters.randomness)return;let n=t.randomnessObject,i=r.randomnessObject;if(!i)return;let s=[],o=e.parameters.randomnessObject;return P.forEach(e=>{let t=ve(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);return h?.length&&n.push(...h),n.length&&n.push({update:()=>{i.update(a)}}),n}(a,n,d,c)),a instanceof m?(a instanceof g&&a.data.visible&&p.push(...function(e,t,r,a){let n=[];if(!("geometry"in r)||v(e))return n;let i=e.geometry.userData.parameters,s="geometry"in t?t.geometry:{},o=r.geometry;if(e instanceof u){let t=function(e,t,r,a){if(void 0===r.scaleBaked)return;let n=(t.scaleBaked??e.appliedGeometrySize??e.data.geometry.scaleBaked).map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e),i=r.scaleBaked.map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e);if(j.isEqual(n,i))return;let s=[];return s.push({update:t=>{e.updateGeometryInteractions({scaleBaked:[I.lerp(n[0],i[0],t),I.lerp(n[1],i[1],t),I.lerp(n[2],i[2],t)]},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},start:()=>{e.updateGeometryInteractions({scaleBaked:n},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},end:()=>{e.updateGeometryInteractions({scaleBaked:i},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)}}),s}(e,s,o,a);t&&n.push(...t)}else{let t={},r=e.appliedGeometrySize;if(Object.assign(t,y(i,N),r?{width:r[0],height:r[1],depth:r[2]}:{},y(s,N)),N.forEach(e=>{let r=ve(e,t,s,o,a.shared);r&&n.push(r)}),w(e)){Object.assign(t,{extrusion:{...i.extrusion}});let e=function(e,t,r,a){if(!r.extrusion)return;let n=e.extrusion,i=t.extrusion??{},s=r.extrusion,o=[];return B.forEach(e=>{let t=ve(e,n,i,s,a);t&&o.push(t)}),o}(t,s,o,a.shared);e&&n.push(...e)}n.length&&n.push({update:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},start:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},end:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)}})}return n}(a,n,d,c)),a.data.visible&&!(a instanceof f&&a.materialOverride)&&p.push(...function(e,t,r,a){let n=[];if(Array.isArray(e.material)){if(!("materials"in r)||!r.materials)return n;let i="materials"in t&&t.materials?t.materials:[],s=r.materials;e.material.forEach((e,t)=>{if(!s[t])return;let r=i[t]??{},o=s[t];"string"==typeof r||"string"==typeof o||n.push(...Ae(e,r,o,a))})}else{if(!("material"in r)||!r.material)return n;let i="material"in t&&t.material?t.material:{},s=r.material;if("string"==typeof i||"string"==typeof s)return n;n.push(...Ae(e.material,i,s,a))}return n}(a,n,d,c.shared))):s.is(a)?a.data.visible&&p.push(...function(e,t,r,a){let n=[];if(void 0!==r.intensity){let i=he("intensity",e,t,r,a);i&&n.push(i)}if(void 0!==r.color){let i=function(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?"string"==typeof i?n.getColor(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.getColor(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:r=>{d.lerpColors(l,u,r),t[e]?.copy?.(d)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}("color",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared)):a instanceof i&&p.push(...function(e,t,r,a){let n=[],i="OrthographicCamera"===e.cameraType?t.orthographic?.zoom:t.perspective?.zoom,s="OrthographicCamera"===e.cameraType?r.orthographic?.zoom:r.perspective?.zoom;if(void 0!==s){let t=i??e.zoom,r=s;t!==r&&n.push({update:a=>{e.zoom=I.lerp(t,r,a),e.updateProjectionMatrix()},start:()=>{e.zoom=t,e.updateProjectionMatrix()},end:()=>{e.zoom=r,e.updateProjectionMatrix()}})}if(void 0!==r.targetOffset){let i=he("targetOffset",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared))),p.length?{update:e=>{p.forEach(t=>t.update(e))},start:e=>{p.forEach(t=>t.start?.(e))},end:e=>{p.forEach(t=>t.end?.(e))}}:void 0}var Oe={type:"beginState"};function Pe(e){if(5===e.easing){let{control1:t,control2:r}=e;return{easing:5,control1:t??D.defaultData.control1,control2:r??D.defaultData.control2}}if(6===e.easing){let{mass:t,stiffness:r,damping:a,velocity:n}=e;return{easing:6,mass:t??M.defaultData.mass,stiffness:r??M.defaultData.stiffness,damping:a??M.defaultData.damping,velocity:n??M.defaultData.velocity}}return{easing:e.easing}}function Ce(e){return{delay:e.delay,delayDirection:e.delayDirection??"start-end",direction:e.direction??"normal",repeat:e.repeat}}var Be={type:"completeState",isfromEntity:!1};function Ne(e,t){let r,a;if("string"==typeof t?(r=t,a=e.states?.[r]):null===t&&(r=null,a=e.data),void 0!==r&&void 0!==a)return{id:r,data:a}}var Ge=["position","rotation","scale","shear"],Ie=new Set;function Fe(e){if(e.length<2)return Ie;let t=new Set,[r,...a]=e;for(let e of Ge){let n=r[e];void 0!==n&&a.every(t=>b(t[e],n))&&t.add(e)}return t}var ze=class{constructor(e,t,r,a,n,i,s,o={},l=()=>Ie){var u;this.object=e,this.fromRef=t,this.toRef=r,this.data=a,this.sharedAssets=n,this.allowSlerp=i,this.page=s,this.hooks=o,this.inert=l,this.builtReversed=!1,this.startStateId=null,this.buildCallback=()=>{this.builtReversed=this.runner.isReversed,this.startStateId=S(this.object)?null:this.object.transitionState.state,this.callback=xe(this.object,{},function(e,t){if(0===t.size)return e;let r={...e};for(let e of t)delete r[e];return r}(this.end.data,this.inert()),{scene:this.page.scene,shared:this.sharedAssets},this.allowSlerp)},this.onChange=e=>{this.builtReversed!==this.runner.isReversed&&this.buildCallback(),this.callback&&(this.callback.update(e),this.object.requestRender()),this.writeState(e)},this.runner=new ue({duration:(u=a).duration,ease:Pe(u),...Ce(u)},this.onChange,this.buildCallback),this.rebind()}rebind(){let{fromRef:e,toRef:t}=this;if(void 0===e){let e=Ne(this.object,this.object.currentState===t?this.object.prevState:this.object.currentState);if(!e)throw new Error("Missing property");this.from=e}else{let t=Ne(this.object,e);if(!t)throw new Error("Missing property");this.from=t}if(void 0===t)throw new Error("Missing property");let r=Ne(this.object,t);if(!r)throw new Error("Missing property");this.to=r,this.buildCallback()}refresh(){this.buildCallback()}get endpointData(){return[this.from.data,this.to.data]}get targetStateId(){return this.builtReversed?this.from.id:this.to.id}get start(){return this.builtReversed?this.to:this.from}get end(){return this.builtReversed?this.from:this.to}writeState(e){if(0===e||S(this.object))return;let t=1===e,r=e>.5?this.targetStateId:this.startStateId,a=this.object.transitionState;a.settled===t&&a.state===r||(this.object.transitionState={settled:t,state:r},this.object.reversibleToState=this.end.id,this.object.prevState!==this.object.currentState&&(this.object.prevState=this.object.currentState),this.object.currentState=r,this.object.dispatchEvent({type:"transitionState",settled:t,state:r}),this.object.dispatchEvent({type:t?"completeState":"beginState",state:r}),this.object.traverseEntity(e=>{e!==this.object&&e instanceof i&&e.dispatchEvent(t?Be:Oe)}),t?this.hooks.onComplete?.(r):this.hooks.onBegin?.(r))}};export{oe as a,ue as b,Se as c,Ee as d,ke as e,Ve as f,Oe as g,Pe as h,Ce as i,Be as j,Ne as k,Ie as l,Fe as m,ze as n};
|
|
1
|
+
import{e,g as t,j as r}from"./runtime-chunk-D3OIGZUW.js";import{a,b as n}from"./runtime-chunk-HD7WF3XN.js";import{a as i,d as s,f as o,g as l}from"./runtime-chunk-AEPWABER.js";import{b as u}from"./runtime-chunk-32XVU5DS.js";import{Z as d,ba as c,ca as h,i as p,ia as f,ja as g}from"./runtime-chunk-ZA3HZGIR.js";import{v as m}from"./runtime-chunk-WYIK4MJQ.js";import{d as b,e as y}from"./runtime-chunk-RTLL6WIB.js";import{c as v,d as w,e as S}from"./runtime-chunk-2PT2WH66.js";import{A as j,B as A,C as V,G as D,H as M,M as E,N as R,O as k,P as x,Q as O,R as P,ca as B,la as N,oa as C,z as G}from"./runtime-chunk-F6XTFQMZ.js";import{Ec as I,Fc as F,Gc as z,Hc as q,Rc as T,Vc as W}from"./runtime-chunk-KPOUV3HD.js";var L=Math.fround,H=[.01,100],U=[.01,1e4],X=[.01,1e3],Z=[.01,1e3];function Q(e,[t,r]){return Math.min(Math.max(e,t),r)}function _(e,t,r,a,n){e=Q(e,H),t=Q(t,U),r=Q(r,X),a=Q(a,Z);let i=Math.sqrt(t/e),s=r/(2*Math.sqrt(t*e)),o=s<1?i*Math.sqrt(1-s*s):0,l=s<1?(s*i-a)/o:-a+i;return e=>{let t=void 0!==n?n*e:e;return t=s<1?Math.exp(-t*s*i)*(1*Math.cos(o*t)+l*Math.sin(o*t)):(1+l*t)*Math.exp(-t*i),0===e||1===e?e:1-t}}var K=L(.001),J=L(1e-7),Y=L(.1);function $(e,t){return L(L(1-L(3*t))+L(3*e))}function ee(e,t){return L(L(3*t)-L(6*e))}function te(e){return L(3*e)}function re(e,t,r){return L(L(L(L(L($(t,r)*e)+ee(t,r))*e)+te(t))*e)}function ae(e,t,r){let a=L(L(L(3*$(t,r))*e)*e),n=L(L(2*ee(t,r))*e);return L(L(a+n)+te(t))}var ne=e=>e;function ie(e,t,r,a){if(e=L(e),t=L(t),r=L(r),a=L(a),e<0||e>1||r<0||r>1||e===t&&r===a)return ne;let n=new Float32Array(11);for(let t=0;t<11;t++)n[t]=re(L(t*Y),e,r);return i=>0===(i=L(i))||1===i?i:re((t=>{let a=0,i=1;for(;10!==i&&n[i]<=t;)a=L(a+Y),i+=1;i-=1;let s=L(L(t-n[i])/L(n[i+1]-n[i])),o=L(a+L(s*Y)),l=ae(o,e,r);return l>=K?function(e,t,r,a){for(let n=0;n<4;n++){let n=ae(t,r,a);if(0===n)return t;let i=L(re(t,r,a)-e);t=L(t-L(i/n))}return t}(t,o,e,r):0===l?o:function(e,t,r,a,n){let i,s=0,o=0;do{s=L(t+L(L(r-t)/2)),i=L(re(s,a,n)-e),i>0?r=s:t=s,o+=1}while(Math.abs(i)>J&&o<10);return s}(t,a,L(a+Y),e,r)})(i),t,a)}var se=L(1.70158);function oe(e,t,r){switch(e.easing){case 0:default:return r;case 1:return ie(.25,.1,.25,1)(r);case 2:return ie(.42,0,1,1)(r);case 3:return ie(0,0,.58,1)(r);case 4:return ie(.42,0,.58,1)(r);case 7:return ie(.25,1,.5,1)(r);case 8:return Math.floor(r);case 5:{let{control1:t,control2:a}=e;return t&&a?ie(t[0],t[1],a[0],a[1])(r):r}case 6:{let{mass:a,stiffness:n,damping:i,velocity:s}=e;return void 0===a||void 0===n||void 0===i||void 0===s?r:L(_(a,n,i,s,t)(r))}}}L(se+1);var le=Math.fround,ue=class{constructor(e,t,r){this.apply=t,this.onStart=r,this.isPlaying=!1,this.isReversed=!1,this.endTime=0,this.startTime=0,this.isFirstLerpAfterStart=!1,this.config=e,this.duration=function(e,t){if(6!==e.easing)return t;let{mass:r,stiffness:a,damping:n,velocity:i}=e;return void 0===r||void 0===a||void 0===n||void 0===i?t:function(e,t,r,a){let n=.16666666666666666,i=0,s=0,o=_(e,t,r,a);for(let e=0;e<1e5;e++)if(i+=n,1===o(i)){if(s+=1,s>=16)break}else s=0;return L(i*n)}(r,a,n,i)}(e.ease,le(e.duration/1e3)),this.delay=le(e.delay/1e3),this.currentRepeat=e.repeat}get repeatDirection(){return this.overrideDirection??this.config.direction}get isPingpong(){let e=this.repeatDirection;return"pingpong"===e||"pingpong-rewind"===e}get actualDelayDirection(){return this.isReversed?"start"===this.config.delayDirection?"end":"end"===this.config.delayDirection?"start":this.config.delayDirection:this.config.delayDirection}start(e){this.isPlaying=!0,this.currentRepeat=this.config.repeat,this.isFirstLerpAfterStart=!0,this.startTime=e,this.onStart?.()}endAfterCurrentPass(){this.currentRepeat<0&&(this.currentRepeat=0)}stop(){this.isPlaying=!1}rearm(){this.onStart?.()}seek(e){this.lerp(e)}update(e){if(!this.isPlaying)return;let t=a(e,this.startTime),r=0;if(this.isFirstLerpAfterStart||!this.isPingpong){let e=this.actualDelayDirection;if("start-once"===this.config.delayDirection&&this.isFirstLerpAfterStart||"start"===e||"start-end"===e){if(t<this.delay)return;r=this.delay}}t=le(t-r);let i=0===this.duration?1:Math.min(Math.max(le(t/this.duration),0),1);if(this.lerp(i),!this.isPlaying||1!==i)return;let s=this.actualDelayDirection;if("end"===s||"start-end"===s){if(t<le(this.duration+this.delay))return;this.endTime=n(this.startTime,le(le(r+this.duration)+this.delay))}else this.endTime=n(this.startTime,le(r+this.duration));this.isFirstLerpAfterStart=!1,0!==this.currentRepeat?(this.currentRepeat>0&&(this.currentRepeat-=1),this.isPingpong?this.isReversed=!this.isReversed:this.lerp(0),this.startTime=e,this.onStart?.()):this.stop()}lerp(e){"pingpong-rewind"===this.repeatDirection&&this.isReversed?(e=le(1-e),e=this.ease(e),e=le(1-e)):e=this.ease(e),this.apply(e)}ease(e){return oe(this.config.ease,this.duration,e)}},{degToRad:de,radToDeg:ce}=I;function he(e,t,r,a,n,i){let s=void 0!==r[e]?r[e]:void 0,o=a[e];if(null==o)return;let l=null!=s?"string"==typeof s?Number(n.getVariable(s)??0):s:t[e],u="string"==typeof o?Number(n.getVariable(o)??0):o;return l!==u?{update:r=>{let a=I.lerp(l,u,r);t[e]=i?Math.trunc(a):a},start:()=>{t[e]=l},end:()=>{t[e]=u}}:void 0}function pe(e,t,r,a,n,i){let s=r[e]?r[e]:void 0,o=a[e];if(!o)return;let l=t[e],u=[...s??l].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e),d=[...o].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e);return u.length!==d.length||b(u,d)?void 0:{update:r=>{u.forEach((a,n)=>{let s=I.lerp(a,d[n],r);t[e][n]=i?Math.trunc(s):s})},start:()=>{Object.assign(t[e],u)},end:()=>{Object.assign(t[e],d)}}}function fe(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function ge(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?fe(new q,i,n):o.clone(),u=fe(new q,s,n);return l.equals(u)?void 0:{update:e=>{o.lerpVectors(l,u,e)},start:()=>{o.copy(l)},end:()=>{o.copy(u)}}}function me(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function be(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=!(o instanceof F),u=o instanceof F?o:(new F).fromArray(o),d=i?me(new F,i,n):u.clone(),c=me(new F,s,n);return d.equals(c)?void 0:{update:r=>{u.lerpVectors(d,c,r),l&&(t[e]=u.toArray())},start:()=>{u.copy(d),l&&(t[e]=u.toArray())},end:()=>{u.copy(c),l&&(t[e]=u.toArray())}}}function ye(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=new p(o.r,o.g,o.b,o.a),u=i?"string"==typeof i?n.getColor(i).clone():new p(i.r,i.g,i.b,i.a):l.clone(),d="string"==typeof s?n.getColor(s).clone():new p(s.r,s.g,s.b,s.a);return u.equals(d)?void 0:{update:r=>{l.lerpColors(u,d,r);let a=I.lerp(u.a,d.a,r);l.a=a,t[e]={r:l.r,g:l.g,b:l.b,a:l.a}},start:()=>{l.copy(u)},end:()=>{l.copy(d)}}}function ve(e,t,r,a,n){return"number"==typeof t[e]?he(e,t,r??{},a,n):Array.isArray(t[e])?pe(e,t,r??{},a,n):void 0}function we(e,t){if(e)for(let[r,a]of Object.entries(t)){let t=e[r];if(Array.isArray(t)&&Array.isArray(a)){let e=Math.min(t.length,a.length);for(let r=0;r<e;r++)t[r]=a[r]}else e[r]=a}}function Se(e,t,r,a){let n={};if(!t||!r)return n;for(let i of e){let e=t[i],s=r[i];if("number"==typeof e&&"number"==typeof s)n[i]=I.lerp(e,s,a);else if(Array.isArray(e)&&Array.isArray(s)){let t=Math.min(e.length,s.length);n[i]=Array.from({length:t},(t,r)=>I.lerp(e[r],s[r],a))}}return n}function je(e,t,r,a,n){let i=e.getValue(a);if(void 0!==i){if("colors"===a)return function(e,t,r,a="colors"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i.map(e=>e.toArray()),o=r[a];for(let e=0;e<i.length;++e){let t=[...s[e]],r=[...o[e]];A.isEqual(t,r)||n.push({update:a=>{i[e].fromArray(A.lerp(t,r,a))},start:()=>{i[e].fromArray(t)},end:()=>{i[e].fromArray(r)}})}return n.length?n:void 0}(e,t,r,a);if(Array.isArray(i))return"steps"===a?function(e,t,r,a="steps"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i,o=r[a];return b(s,o)||n.push({update:t=>{let r=[...i];for(let e=0;e<i.length;++e){let a=s[e],n=o[e];r[e]=I.lerp(a,n,t)}e.setValue(a,r)},start:()=>{e.setValue(a,s)},end:()=>{e.setValue(a,o)}}),n.length?n:void 0}(e,t,r,a):void 0;if("number"==typeof i)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:e.getValue(a),s=r[a],o="string"==typeof i?Number(n.getVariable(i)??0):i,l="string"==typeof s?Number(n.getVariable(s)??0):s;return{update:t=>{e.setValue(a,I.lerp(o,l,t))},start:()=>{e.setValue(a,o)},end:()=>{e.setValue(a,l)}}}(e,t,r,a,n);if("boolean"!=typeof i){if(i instanceof F)return function(e,t,r,a){if(!e.hasValue(a)||!(a in r))return;let n=e.getValue(a),i=t?(new F).fromArray(t[a]):n.clone(),s=(new F).fromArray(r[a]);return i.equals(s)?void 0:{update:e=>{n.lerpVectors(i,s,e)},start:()=>{n.copy(i)},end:()=>{n.copy(s)}}}(e,t,r,a);if(i instanceof q)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=e.getValue(a),s=t?t[a]:void 0,o=r[a],l=s?fe(new q,s,n):i.clone(),u=fe(new q,o,n);return l.equals(u)?void 0:{update:e=>{i.lerpVectors(l,u,e)},start:()=>{i.copy(l)},end:()=>{i.copy(u)}}}(e,t,r,a,n);if(i instanceof p)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():new p(s.r,s.g,s.b,s.a);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if(i instanceof W)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if("isTexture"in i)return function(e,t,r,a="texture",n){if(!e.hasValue(a)||!(a in r))return;let i=e=>Number("string"==typeof e?n?.getVariable(e)??0:e??0),s=e.getNode("rotation"),o=t?i(t[a]?.rotation):(s?.value??0)*I.RAD2DEG,l=i(r[a]?.rotation);if(s&&Math.abs(o-l)>1e-9)return{update:e=>{s.value=I.lerp(o,l,e)*I.DEG2RAD},start:()=>{s.value=o*I.DEG2RAD},end:()=>{s.value=l*I.DEG2RAD}};let u=function(e){let t=e.getNode("mat");if("function"==typeof t?.updateMatrix)return t;let r=e.getValue("mat");return"function"==typeof r?.updateMatrix?r:void 0}(e);if(!u)return;let d=t?t[a]:u,c=r[a],h=[...d.repeat],p=[...d.offset],f=[...c.repeat],g=[...c.offset],m=d.rotation??0,b=c.rotation??0;return G.isEqual(h,f)&&G.isEqual(p,g)&&m===b?void 0:{update:e=>{u.repeat=G.lerp(h,f,e),u.offset=G.lerp(p,g,e),u.rotation=I.lerp(m,b,e),u.updateMatrix()},start:()=>{u.repeat=[...h],u.offset=[...p],u.rotation=m,u.updateMatrix()},end:()=>{u.repeat=[...f],u.offset=[...g],u.rotation=b,u.updateMatrix()}}}(e,t,r,a,n)}}}function Ae(e,t,r,a){let n=[],i=t.layers?d(t,a):e.transparent,s=d(r,a);n.push(function(e,t,r){let a=t||r;return{update:t=>{e.setTransparent(1===t?r:a)}}}(e,i,s)),function(e,t,r){let a=e.ensureRainbowNoiseCompiled;if("function"==typeof a)for(let n of[...e.layers]){if("rainbow"!==n.type)continue;let i=t.layers?.data(n.uuid),s=r.layers.data(n.uuid);(c(i?.noiseStrength)||c(s?.noiseStrength))&&a.call(e,n.uuid)}}(e,t,r);for(let i of e.layers){let e=t.layers?.data(i.uuid),s=r.layers.data(i.uuid);if(!s||"light"!==i.type&&(!(i.visible??1)||!(s.visible??1)))continue;let o=h[i.type]??[],l=i.getNames().filter(e=>!o.includes(e)&&!B.some(t=>e.includes(t)));for(let t of l)try{let r=je(i,e,s,t,a);r&&(Array.isArray(r)?n.push(...r):n.push(r))}catch(e){console.error(`lerpMaterial: unexpected material layer for ${t}`,e)}}return n}function Ve(e,t,r,a,n,i){let s=je(t,r,a,e,i);!s||(Array.isArray(s)?s.forEach(e=>e.update(n)):s.update(n))}new q,new T;var De=new q,Me=new T;var Ee=[["radial",R],["linear",k],["grid",x],["toObject",O],["randomnessObject",P]];function Re(e,t,r,a){if(!e)return{};let n=Se(["count"],t,r,a);void 0!==n.count&&(n.count=Math.trunc(n.count));for(let[i,s]of Ee){if(!e[i])continue;let o=Se(s,t[i],r[i],a);Object.keys(o).length&&(n[i]=o)}return n}function ke(e,t){if(e){void 0!==t.count&&(e.count=t.count);for(let[r]of Ee){let a=t[r];a&&we(e[r],a)}}}function xe(a,n,d,c,h){let p=[];return a.data.visible&&p.push(...function(e,t,r,a,n){let i,s,u,d,c,h,p,f=[];if(S(e)?(i=be("position",e,t,r,n),i&&f.push(i),u=he("rotation",e,t,r,n),u&&f.push(u),d=be("shear",e,t,r,n),d&&f.push(d)):(p={slide:t.pathSnapping?.slide??e.updatedPathSnapping?.slide??e.dataPatched.pathSnapping?.slide??0,offset:t.pathSnapping?.offset??e.updatedPathSnapping?.offset??e.dataPatched.pathSnapping?.offset??0},c=he("slide",p,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),c&&f.push(c),h=he("offset",p,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),h&&f.push(h),!c&&!h&&(i=ge("position",e,t,r,n),i&&f.push(i),s=ge("scale",e,t,r,n),s&&f.push(s),u=function(e,t,r,a,n){let i=t?.rotation?t.rotation.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*I.DEG2RAD):void 0,s=r.rotation?.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*I.DEG2RAD);if(!s)return;let o=i?(new q).fromArray(i):(new q).setFromEuler(e.rotation),l=(new q).fromArray(s);if(o.equals(l))return;let u=De.subVectors(l,o);if(a&&u.toArray().every(e=>Math.abs(e)<2*Math.PI)){let t=(new z).setFromEuler(Me.setFromVector3(o)),r=(new z).setFromEuler(Me.setFromVector3(l));return{update:a=>{!function(e,t,r,a){if(0===a)return r.copy(e);if(1===a)return r.copy(t);let n=e.w*t.w+e.x*t.x+e.y*t.y+e.z*t.z;if(n>=1)return r.copy(e);let i=1-n*n;if(i<=Number.EPSILON){let n=1-a;return r.w=n*e.w+a*t.w,r.x=n*e.x+a*t.x,r.y=n*e.y+a*t.y,r.z=n*e.z+a*t.z,r.normalize(),r}let s=Math.sqrt(i),o=Math.atan2(s,n),l=Math.sin((1-a)*o)/s,u=Math.sin(a*o)/s;r.w=e.w*l+t.w*u,r.x=e.x*l+t.x*u,r.y=e.y*l+t.y*u,r.z=e.z*l+t.z*u}(t,r,e.quaternion,a)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}return{update:t=>{De.lerpVectors(o,l,t),e.rotation.setFromVector3(De)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}(e,t,r,a,n),u&&f.push(u),d=function(e,t,r){let a=t.shear,n=r.shear;if(!n)return;let i=e.shearMatrix,s=a??[i.elements[4],i.elements[8],i.elements[1],i.elements[9],i.elements[2],i.elements[6]],o=n;return s.every((e,t)=>e===o[t])?void 0:{update:e=>{s.forEach((t,r)=>{let a=I.lerp(t,o[r],e);i.elements[V.INDEX_MAP[r]]=a})},start:()=>{s.forEach((e,t)=>{i.elements[V.INDEX_MAP[t]]=e})},end:()=>{o.forEach((e,t)=>{i.elements[V.INDEX_MAP[t]]=e})}}}(e,t,r),d&&f.push(d))),i||s||u||d||c||h){let r=S(e)?()=>{e.updateWorldMatrix(!0,!1,!0),e.resetBBoxNeedsUpdate()}:()=>{e.updateMatrix(),e.hasNonUniformScale&&(e.updateMatrixWorld(),e.updateMatrixWorldRigid()),e.parent?.matrixWorldFusedFalse&&(e.matrixWorld.multiplyMatrices(e.parent.matrixWorldFusedFalse,e.matrix),e.matrixWorldNeedsUpdate=!1),o(e)&&l(e.parent)&&e.invalidateDownstreamBooleanData(!0),e.updatePathSnapping(Object.assign({},t.pathSnapping,p))};f.push({update:r,start:r,end:r})}return f}(a,n,d,h,c.shared)),S(a)?p.push(...function(a,n,i,s,o){let l,u,d,c,h,p,f,g,m,b,y,v,w,S,j,A=[];if("width"in a&&(l=he("width",a,n,i,o),l&&A.push(l)),"height"in a&&(u=he("height",a,n,i,o),u&&A.push(u)),a instanceof e||a instanceof r){let t={...n.fill},r={...i.fill};void 0!==t.enabled&&t.enabled!==r.enabled&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.fill.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),d=ye("color",a.fill,t,r,o),d&&A.push(d)}if(a instanceof e){let t={...n.stroke},r={...i.stroke};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.stroke.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),c=ye("color",a.stroke,t,r,o),c&&A.push(c),h=he("thickness",a.stroke,t,r,o),h&&A.push(h)}if(a instanceof e){let t={...n.dropShadow},r={...i.dropShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.dropShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),p=ye("color",a.dropShadow,t,r,o),p&&A.push(p),f=he("blurRadius",a.dropShadow,t,r,o),f&&A.push(f),m=he("spread",a.dropShadow,t,r,o),m&&A.push(m),g=be("offset",a.dropShadow,t,r,o),g&&A.push(g)}if(a instanceof e){let t={...n.innerShadow},r={...i.innerShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.innerShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),b=ye("color",a.innerShadow,t,r,o),b&&A.push(b),y=he("blurRadius",a.innerShadow,t,r,o),y&&A.push(y),w=he("spread",a.innerShadow,t,r,o),w&&A.push(w),v=be("offset",a.innerShadow,t,r,o),v&&A.push(v)}if(a instanceof e||a instanceof r){let t={...n.backgroundBlur},r={...i.backgroundBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.backgroundBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),S=he("radius",a.backgroundBlur,t,r,o),S&&A.push(S)}if(a instanceof e){let t={...n.layerBlur},r={...i.layerBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.layerBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),j=he("radius",a.layerBlur,t,r,o),j&&A.push(j)}if(a instanceof r||a instanceof t){let e=pe("cornerRadius",a,n,i,o);e&&A.push(e)}return A}(a,n,d,0,c.shared)):(a.data.visible&&p.push(...function(e,t,r,a){let n=[];if(!("cloner"in r)||!e.cloner)return n;let i=e.cloner,s="cloner"in t?t.cloner:{},o=r.cloner;E.forEach(e=>{let t;t="count"===e?he("count",i.parameters,s,o,a.shared,!0):ve(e,i.parameters,s??{},o,a.shared),t&&n.push(t)});let l=function(e,t,r,a){if("radial"!==e.parameters.type)return;let n=t.radial,i=r.radial;if(!i)return;let s=e.parameters.radial,o=[];return R.forEach(e=>{let t=ve(e,s,n??{},i,a);t&&o.push(t)}),o}(i,s,o,a.shared);l?.length&&n.push(...l);let u=function(e,t,r,a){if("linear"!==e.parameters.type)return;let n=t.linear,i=r.linear;if(!i)return;let s=[],o=e.parameters.linear;return k.forEach(e=>{let t=ve(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);u?.length&&n.push(...u);let d=function(e,t,r,a){if("grid"!==e.parameters.type)return;let n=t.grid,i=r.grid;if(!i)return;let s=[],o=e.parameters.grid;return x.forEach(e=>{let t;t="count"===e?pe(e,o,n??{},i,a,!0):ve(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);d?.length&&n.push(...d);let c=function(e,t,r,a){if("toObject"!==e.parameters.type)return;let n=t.toObject,i=r.toObject;if(!i)return;let s=[],o=e.parameters.toObject;return O.forEach(e=>{let t;t="count"===e?he(e,o,n??{},i,a,!0):ve(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);c?.length&&n.push(...c);let h=function(e,t,r,a){if(!e.parameters.randomness)return;let n=t.randomnessObject,i=r.randomnessObject;if(!i)return;let s=[],o=e.parameters.randomnessObject;return P.forEach(e=>{let t=ve(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);return h?.length&&n.push(...h),n.length&&n.push({update:()=>{i.update(a)}}),n}(a,n,d,c)),a instanceof m?(a instanceof g&&a.data.visible&&p.push(...function(e,t,r,a){let n=[];if(!("geometry"in r)||v(e))return n;let i=e.geometry.userData.parameters,s="geometry"in t?t.geometry:{},o=r.geometry;if(e instanceof u){let t=function(e,t,r,a){if(void 0===r.scaleBaked)return;let n=(t.scaleBaked??e.appliedGeometrySize??e.data.geometry.scaleBaked).map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e),i=r.scaleBaked.map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e);if(j.isEqual(n,i))return;let s=[];return s.push({update:t=>{e.updateGeometryInteractions({scaleBaked:[I.lerp(n[0],i[0],t),I.lerp(n[1],i[1],t),I.lerp(n[2],i[2],t)]},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},start:()=>{e.updateGeometryInteractions({scaleBaked:n},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},end:()=>{e.updateGeometryInteractions({scaleBaked:i},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)}}),s}(e,s,o,a);t&&n.push(...t)}else{let t={},r=e.appliedGeometrySize;if(Object.assign(t,y(i,C),r?{width:r[0],height:r[1],depth:r[2]}:{},y(s,C)),C.forEach(e=>{let r=ve(e,t,s,o,a.shared);r&&n.push(r)}),w(e)){Object.assign(t,{extrusion:{...i.extrusion}});let e=function(e,t,r,a){if(!r.extrusion)return;let n=e.extrusion,i=t.extrusion??{},s=r.extrusion,o=[];return N.forEach(e=>{let t=ve(e,n,i,s,a);t&&o.push(t)}),o}(t,s,o,a.shared);e&&n.push(...e)}n.length&&n.push({update:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},start:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},end:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)}})}return n}(a,n,d,c)),a.data.visible&&!(a instanceof f&&a.materialOverride)&&p.push(...function(e,t,r,a){let n=[];if(Array.isArray(e.material)){if(!("materials"in r)||!r.materials)return n;let i="materials"in t&&t.materials?t.materials:[],s=r.materials;e.material.forEach((e,t)=>{if(!s[t])return;let r=i[t]??{},o=s[t];"string"==typeof r||"string"==typeof o||n.push(...Ae(e,r,o,a))})}else{if(!("material"in r)||!r.material)return n;let i="material"in t&&t.material?t.material:{},s=r.material;if("string"==typeof i||"string"==typeof s)return n;n.push(...Ae(e.material,i,s,a))}return n}(a,n,d,c.shared))):s.is(a)?a.data.visible&&p.push(...function(e,t,r,a){let n=[];if(void 0!==r.intensity){let i=he("intensity",e,t,r,a);i&&n.push(i)}if(void 0!==r.color){let i=function(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?"string"==typeof i?n.getColor(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.getColor(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:r=>{d.lerpColors(l,u,r),t[e]?.copy?.(d)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}("color",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared)):a instanceof i&&p.push(...function(e,t,r,a){let n=[],i="OrthographicCamera"===e.cameraType?t.orthographic?.zoom:t.perspective?.zoom,s="OrthographicCamera"===e.cameraType?r.orthographic?.zoom:r.perspective?.zoom;if(void 0!==s){let t=i??e.zoom,r=s;t!==r&&n.push({update:a=>{e.zoom=I.lerp(t,r,a),e.updateProjectionMatrix()},start:()=>{e.zoom=t,e.updateProjectionMatrix()},end:()=>{e.zoom=r,e.updateProjectionMatrix()}})}if(void 0!==r.targetOffset){let i=he("targetOffset",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared))),p.length?{update:e=>{p.forEach(t=>t.update(e))},start:e=>{p.forEach(t=>t.start?.(e))},end:e=>{p.forEach(t=>t.end?.(e))}}:void 0}var Oe={type:"beginState"};function Pe(e){if(5===e.easing){let{control1:t,control2:r}=e;return{easing:5,control1:t??M.defaultData.control1,control2:r??M.defaultData.control2}}if(6===e.easing){let{mass:t,stiffness:r,damping:a,velocity:n}=e;return{easing:6,mass:t??D.defaultData.mass,stiffness:r??D.defaultData.stiffness,damping:a??D.defaultData.damping,velocity:n??D.defaultData.velocity}}return{easing:e.easing}}function Be(e){return{delay:e.delay,delayDirection:e.delayDirection??"start-end",direction:e.direction??"normal",repeat:e.repeat}}var Ne={type:"completeState",isfromEntity:!1};function Ce(e,t){let r,a;if("string"==typeof t?(r=t,a=e.states?.[r]):null===t&&(r=null,a=e.data),void 0!==r&&void 0!==a)return{id:r,data:a}}var Ge=["position","rotation","scale","shear"],Ie=new Set;function Fe(e){if(e.length<2)return Ie;let t=new Set,[r,...a]=e;for(let e of Ge){let n=r[e];void 0!==n&&a.every(t=>b(t[e],n))&&t.add(e)}return t}var ze=class{constructor(e,t,r,a,n,i,s,o={},l=()=>Ie){var u;this.object=e,this.fromRef=t,this.toRef=r,this.data=a,this.sharedAssets=n,this.allowSlerp=i,this.page=s,this.hooks=o,this.inert=l,this.builtReversed=!1,this.startStateId=null,this.buildCallback=()=>{this.builtReversed=this.runner.isReversed,this.startStateId=S(this.object)?null:this.object.transitionState.state,this.callback=xe(this.object,{},function(e,t){if(0===t.size)return e;let r={...e};for(let e of t)delete r[e];return r}(this.end.data,this.inert()),{scene:this.page.scene,shared:this.sharedAssets},this.allowSlerp)},this.onChange=e=>{this.builtReversed!==this.runner.isReversed&&this.buildCallback(),this.callback&&(this.callback.update(e),this.object.requestRender()),this.writeState(e)},this.runner=new ue({duration:(u=a).duration,ease:Pe(u),...Be(u)},this.onChange,this.buildCallback),this.rebind()}rebind(){let{fromRef:e,toRef:t}=this;if(void 0===e){let e=Ce(this.object,this.object.currentState===t?this.object.prevState:this.object.currentState);if(!e)throw new Error("Missing property");this.from=e}else{let t=Ce(this.object,e);if(!t)throw new Error("Missing property");this.from=t}if(void 0===t)throw new Error("Missing property");let r=Ce(this.object,t);if(!r)throw new Error("Missing property");this.to=r,this.buildCallback()}refresh(){this.buildCallback()}get endpointData(){return[this.from.data,this.to.data]}get targetStateId(){return this.builtReversed?this.from.id:this.to.id}get start(){return this.builtReversed?this.to:this.from}get end(){return this.builtReversed?this.from:this.to}writeState(e){if(0===e||S(this.object))return;let t=1===e,r=e>.5?this.targetStateId:this.startStateId,a=this.object.transitionState;a.settled===t&&a.state===r||(this.object.transitionState={settled:t,state:r},this.object.reversibleToState=this.end.id,this.object.prevState!==this.object.currentState&&(this.object.prevState=this.object.currentState),this.object.currentState=r,this.object.dispatchEvent({type:"transitionState",settled:t,state:r}),this.object.dispatchEvent({type:t?"completeState":"beginState",state:r}),this.object.traverseEntity(e=>{e!==this.object&&e instanceof i&&e.dispatchEvent(t?Ne:Oe)}),t?this.hooks.onComplete?.(r):this.hooks.onBegin?.(r))}};export{oe as a,ue as b,Se as c,Re as d,ke as e,Ve as f,Oe as g,Pe as h,Be as i,Ne as j,Ce as k,Ie as l,Fe as m,ze as n};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"./runtime-chunk-FAESWIXG.js";import{a as r,b as i,c as s,d as o}from"./runtime-chunk-3AHB3XAD.js";import{ia as a}from"./runtime-chunk-WMPEU73G.js";import{h as n,o as h,p,q as c,r as m,s as d,t as l,v as u}from"./runtime-chunk-KARVJCBP.js";import{f}from"./runtime-chunk-RTLL6WIB.js";import{i as g}from"./runtime-chunk-2PT2WH66.js";import{K as y,ya as v}from"./runtime-chunk-KHCWX7UM.js";import{Ae as C,Ec as b,Fc as T,Oc as j,Rc as w,Tc as M,bd as P,dd as x,ud as A,ue as O,wd as _,we as S,xe as F}from"./runtime-chunk-BVVSZMXD.js";var D=new T,W=new S,V=class extends _{constructor(e){let t=new x,r=new A({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],s=[],o={},a=new M(15711266),n=new M(15711266),h=new M(2857471);function p(e,t,r){c(e,r),c(t,r)}function c(e,t){i.push(0,0,0),s.push(t.r,t.g,t.b),void 0===o[e]&&(o[e]=[]),o[e].push(i.length/3-1)}p("n1","n2",a),p("n2","n4",a),p("n4","n3",a),p("n3","n1",a),p("f1","f2",a),p("f2","f4",a),p("f4","f3",a),p("f3","f1",a),p("n1","f1",a),p("n2","f2",a),p("n3","f3",a),p("n4","f4",a),p("p","n1",n),p("p","n2",n),p("p","n3",n),p("p","n4",n),p("u1","u2",h),p("u2","u3",h),p("u3","u1",h),t.setAttribute("position",new P(i,3)),t.setAttribute("color",new P(s,3)),super(t,r),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let e=this.geometry,t=this.pointMap;W.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;U("n1",t,e,W,-1,-1,r),U("n2",t,e,W,1,-1,r),U("n3",t,e,W,-1,1,r),U("n4",t,e,W,1,1,r);let i=r;U("f1",t,e,W,-1,-1,i),U("f2",t,e,W,1,-1,i),U("f3",t,e,W,-1,1,i),U("f4",t,e,W,1,1,i);let s=i;U("u1",t,e,W,.35,1.1,s),U("u2",t,e,W,-.35,1.1,s),U("u3",t,e,W,0,1.55,s),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function U(e,t,r,i,s,o,a){D.set(s,o,a).unproject(i);let n=t[e];if(void 0!==n){let e=r.getAttribute("position");for(let t=0,r=n.length;t<r;t++)e.setXYZ(n[t],D.x,D.y,D.z)}}var B=class extends(r(V)){constructor(e){super(e),this.object=e,this.name=`CombinedCameraHelper: ${e.uuid}`}updateMatrixWorld(e){super.updateMatrixWorld(e),this.updateTarget()}updateTarget(){let e=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(e)}raycast(e,t){i(this.object,this.geometry,e,t,!0)}};function I(e){return 1-Math.pow(1-e,3)}var z=new T,E=new T,R=new b,H=new T,k=new T,q=new T,L=class extends(o(S,B)){constructor(e="",t={...v.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=y.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let e=this._projectionTransition;if(void 0===e)return;if(this.disposed)return void this._endProjectionTransition();e.raf=requestAnimationFrame(this._tickProjectionTransition);let t=L.projectionTransitionRequestRender??e.requestRender;this.updateProjectionMatrix(),t?.()},this.super_Entity(e,t),this.previousProjectionMatrix=new j,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new C(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new F(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(e){let t=L.projectionTransitionsEnabled;L.projectionTransitionsEnabled=!1;try{return e()}finally{L.projectionTransitionsEnabled=t}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(e){this.perspCamera.fov=e}get fov(){return this.perspCamera.fov}setNear(e,t){"PerspectiveCamera"===e?this.perspCamera.near=t:this.orthoCamera.near=t}setZoom(e,t){t>=0&&("PerspectiveCamera"===e?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}set cameraType(e){"PerspectiveCamera"===e?this.toPerspective():"OrthographicCamera"===e&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(e){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=e:this.orthoCamera.near=e}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(e){e>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}lookAt(e,t,r){"number"==typeof e&&(e=new T(e,t,r)),super.lookAt(e),this.getWorldPosition(z),this.targetOffset=z.distanceTo(e)}getTarget(e=new T){return this.getWorldDirection(E),this.getWorldPosition(z),E.multiplyScalar(this.targetOffset),e.copy(z).add(E),e}getDistanceToTarget(){let e=this.getTarget();return this.getWorldPosition(z),z.distanceTo(e)}updateUp(){this.getWorldQuaternion(R),H.set(0,0,1).applyQuaternion(R),k.copy(w.DEFAULT_UP),this.isUpVectorFlipped&&k.negate(),k.applyQuaternion(R),q.copy(w.DEFAULT_UP).projectOnPlane(H),this.angleOffsetFromUp=q.angleTo(k),this.angleOffsetFromUp*=q.cross(k).dot(H)>=0?1:-1}updateTransformState(e,t){let r=super.updateTransformState(e,t);return void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(e){let t=e.getWorldPosition(new T),r=e.getWorldDirection(new T).multiplyScalar(this.targetOffset);return{position:t.clone().add(r),target:t}}getViewToTarget(e){let t=this.getWorldDirection(new T).multiplyScalar(this.targetOffset);return{position:e.clone().sub(t),target:e}}getViewToObject(e){let t=new T;return e.getWorldPosition(t),this.getViewToTarget(t)}setViewplaneSize(e,t,r=!1){if(this.aspect=e/t,r){let r=e>t?this.aspect:1,i=e>t?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-e,this.right=.5*e,this.top=.5*t,this.bottom=.5*-t;this.updateProjectionMatrix()}copyViewPlaneSize(e){this.aspect=e.aspect,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let e=this._projectionTransition;if(void 0===e)return 1;let t=(performance.now()-e.start)/e.duration;return t>=1?1:t<=0?0:I(t)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return L.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=L.projectionTransitionMinAgeMs}_beginProjectionTransition(e){let t=this._projectionTransition;void 0===t&&(t={from:new j,blend:new j,blendInverse:new j,start:0,duration:L.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:e},this._projectionTransition=t),t.from.copy(this.projectionMatrix),t.start=performance.now(),t.duration=L.projectionTransitionDuration,t.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,e&&(t.requestRender=e),0!==t.raf&&cancelAnimationFrame(t.raf),t.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;let t=(performance.now()-e.start)/e.duration;if(t>=1)return void this._endProjectionTransition();let r=I(t),i=e.from.elements,s=this._activeSubCamera.projectionMatrix.elements,o=e.blend.elements,a=e.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*a),h=r*n/(r*n+(1-r)*Math.max(1e-6,s[15]-s[11]*a));for(let e=0;e<16;e++)o[e]=i[e]+(s[e]-i[e])*h;e.blendInverse.copy(e.blend).invert(),this.projectionMatrix=e.blend,this.projectionMatrixInverse=e.blendInverse}_endProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;0!==e.raf&&cancelAnimationFrame(e.raf),this._projectionTransition=void 0;let t=this._activeSubCamera;this.projectionMatrix=t.projectionMatrix,this.projectionMatrixInverse=t.projectionMatrixInverse}_syncProjectionTransition(e){let t=e._projectionTransition;if(void 0===t)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new j,blend:new j,blendInverse:new j,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(t.from),r.start=t.start,r.duration=t.duration,r.referenceDepth=t.referenceDepth,this._applyProjectionTransition()}setFocalLength(e){this.perspCamera.setFocalLength(e),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(e,t,r,i,s,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(e,t,r,i,s,o):this.orthoCamera.setViewOffset(e,t,r,i,s,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(e,t){return super.copy(e,t),this.parent=e.parent,this.orthoCamera.copy(e.orthoCamera),this.perspCamera.copy(e.perspCamera),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.far=e.far,this.view=null===e.view?null:Object.assign({},e.view),this._cameraType=e._cameraType,this.aspect=e.aspect,this.fov=e.fov,this.focus=e.focus,this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this.targetOffset=y.sanitizeTargetOffset(e.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(e),this}toCameraState(e=[]){let t={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return f(t,e)}updateCameraSubtype(e,t){let r="perspective"===e?"PerspectiveCamera":"OrthographicCamera";void 0!==t.zoom&&this.setZoom(r,t.zoom),void 0!==t.near&&this.setNear(r,t.near),void 0!==t.fov&&"PerspectiveCamera"===r&&(this.fov=t.fov)}updateState(e,t){this.updateCameraState(e,t)}updateCameraState(e,t){this.updateState_Entity(e,t),void 0!==e.far&&(this.far=e.far),void 0!==e.orthographic&&this.updateCameraSubtype("orthographic",e.orthographic),void 0!==e.perspective&&this.updateCameraSubtype("perspective",e.perspective),void 0!==e.type&&(e.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(t?.shared.requestRender),this.cameraType=e.type),void 0!==e.up&&this.up.fromArray(e.up.map(e=>"number"==typeof e?e:0)),void 0!==e.targetOffset&&(this.targetOffset=y.sanitizeTargetOffset(e.targetOffset)),void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&0===e.type&&this.updateCameraSubtype(e.path[0],e.props)}toState(e){return{...super.toState(e),...this.toCameraState(e),type:this.cameraType}}},G=L;G.projectionTransitionsEnabled=!1,G.projectionTransitionDuration=350,G.projectionTransitionMinAgeMs=1e3;var X=new j,N=new j,Z=new j,K=new j,Q=new j;function J(e){let t=!1;return e.scene.objects.traverse((e,r)=>{"BooleanGeometry"===r.geometry?.type&&(t=!0)}),t}function Y(e,t){let r=e.cloner;return void 0!==r&&r.parent===t?r:void 0}var $=new Float32Array(0);function ee(e,t,r,i){let s=16*(t.children.length+1);$.length<s&&($=new Float32Array(s));let o=0,a=e=>{e.toArray($,16*o),o++},n=!0!==t.parameters.hideBase;n&&a(i),Z.copy(e.matrix);for(let e of t.children)!g(e)||!1===e.playModeVisible||(K.copy(e.matrix).multiply(e.pivotMatrix),Q.multiplyMatrices(Z,K),(!n||!Q.equals(i))&&a(Q));try{return 0===o?0:l(r,$.subarray(0,16*o))}finally{d(r)}}var te,re=class extends a{constructor(e,t,r){super(e,t),this.data=t,this.meshSetAddresses=[],this.needsTransformForDownstream=!1,this.geometry=new x,this.onAfterRender=(e,t,r,i,s,o)=>{super.onAfterRender(e,t,r,i,s,o),this.recomputeBoolean()},this.geometry.userData.parameters={width:0,height:0,depth:0}}get booleanOp(){return this.data.geometry.operation}get phongAngle(){return this.data.geometry.phongAngle??45}get isLOD(){return this.recomputeBoolean(),!1}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&"geometry"===e.path[0]&&0===e.type&&void 0!==e.props.operation&&(this.freeBooleanPointer(),this.resetBBoxNeedsUpdate())}freeBooleanPointer(){super.freeBooleanPointer(),this.geometry.dispose()}recomputeBoolean(r,i=!0){if(-1!==this.booleanMeshSetAddress&&!r)return;for(let e=0;e<this.children.length;e++){let t=this.children[e];t instanceof re&&!0===t.dataPatched.visible&&t.recomputeBoolean(!0===r,i)}this.meshSetAddresses=[];for(let e=0;e<this.children.length;e++){let t=this.children[e];if(t instanceof u&&!0===t.dataPatched.visible&&t.geometry.attributes.position?.count>0&&t.geometry.drawRange.count>0&&0!==t.booleanMeshSetAddress){X.copy(t.matrix).multiply(t.pivotMatrix);try{let e=Y(t,this);if(-1===t.booleanMeshSetAddress){if((t.geometry.index??t.geometry.getAttribute("position")).count/3<15e5){let s=h(t.geometry,!0===r,i);t.booleanMeshSetAddress=void 0===e||-1===s?s:ee(t,e,s,X)}if(-1===t.booleanMeshSetAddress)return;void 0===e&&m(t.booleanMeshSetAddress,X),t.booleanMatrixInvOld.copy(X).invert(),t.booleanWasTransformed=!1}else t instanceof re&&!0===t.needsTransformForDownstream?(void 0===e?m(t.booleanMeshSetAddress,X):t.booleanMeshSetAddress=ee(t,e,t.booleanMeshSetAddress,X),t.needsTransformForDownstream=!1):!0===t.booleanWasTransformed&&(m(t.booleanMeshSetAddress,N.multiplyMatrices(X,t.booleanMatrixInvOld)),t.booleanMatrixInvOld.copy(X).invert(),t.booleanWasTransformed=!1)}catch(e){console.error(e),t.booleanMeshSetAddress=0,t.geometry.userData.booleanOperationDidFail=!0;continue}if(0===t.booleanMeshSetAddress)continue;this.meshSetAddresses.push(t.booleanMeshSetAddress),t.geometry.userData.booleanOperationDidFail=!1}}if(0===this.meshSetAddresses.length){if(0!==this.geometry.getAttribute("position")?.array.length){let e=this.geometry;e.dispose(),this.geometry=new x,this.geometry.userData=e.userData,this.geometry.boundingSphere=e.boundingSphere,this.geometry.setAttribute("position",new P([],3))}return void this.geometry.setDrawRange(0,0)}if(!0===r)return c(this.meshSetAddresses,this.booleanOp);let s=this.geometry;s.dispose(),this.geometry=new x,this.geometry.userData=s.userData,this.geometry.boundingSphere=s.boundingSphere;try{this.booleanMeshSetAddress=p(this.meshSetAddresses,this.booleanOp,this.geometry,this.phongAngle)}catch(e){this.booleanMeshSetAddress=0,this.geometry.userData.booleanOperationDidFail=!0,console.error(e)}this.booleanMatrixInvOld.copy(this.matrix).invert(),this.needsTransformForDownstream=!0,e(this),t(this)}dispose(){super.dispose(),this.geometry.dispose()}};(te||(te={})).is=function(e){return n.is(e)&&e instanceof O};var ie=(e,t)=>class extends(o(e,t)){updateState_Light(e,t){if(this.updateState_Entity(e,t),void 0!==e.color&&(this.color=t.shared.color(e.color)),void 0!==e.intensity&&(this.intensity=e.intensity*Math.PI),void 0!==e.depth){let t=this.shadow;t.camera.far=e.depth,t.needsUpdate=!0}void 0!==e.shadows&&(this.castShadow=e.shadows)}},se=e=>e instanceof u,oe=e=>null!==e&&e instanceof re,ae=e=>s.is(e);export{G as a,J as b,re as c,te as d,ie as e,se as f,oe as g,ae as h};
|
|
1
|
+
import{a as e,b as t}from"./runtime-chunk-HOOQDTK7.js";import{a as r,b as i,c as s,d as o}from"./runtime-chunk-ZFM73G2B.js";import{ia as a}from"./runtime-chunk-ZA3HZGIR.js";import{h as n,o as h,p,q as c,r as m,s as d,t as l,v as u}from"./runtime-chunk-WYIK4MJQ.js";import{f}from"./runtime-chunk-RTLL6WIB.js";import{i as g}from"./runtime-chunk-2PT2WH66.js";import{K as y,ya as v}from"./runtime-chunk-F6XTFQMZ.js";import{Ce as C,Gc as T,Hc as b,Qc as j,Tc as w,Vc as M,dd as P,fd as x,wd as O,we as A,yd as _,ye as S,ze as F}from"./runtime-chunk-KPOUV3HD.js";var D=new b,W=new S,V=class extends _{constructor(e){let t=new x,r=new O({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],s=[],o={},a=new M(15711266),n=new M(15711266),h=new M(2857471);function p(e,t,r){c(e,r),c(t,r)}function c(e,t){i.push(0,0,0),s.push(t.r,t.g,t.b),void 0===o[e]&&(o[e]=[]),o[e].push(i.length/3-1)}p("n1","n2",a),p("n2","n4",a),p("n4","n3",a),p("n3","n1",a),p("f1","f2",a),p("f2","f4",a),p("f4","f3",a),p("f3","f1",a),p("n1","f1",a),p("n2","f2",a),p("n3","f3",a),p("n4","f4",a),p("p","n1",n),p("p","n2",n),p("p","n3",n),p("p","n4",n),p("u1","u2",h),p("u2","u3",h),p("u3","u1",h),t.setAttribute("position",new P(i,3)),t.setAttribute("color",new P(s,3)),super(t,r),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let e=this.geometry,t=this.pointMap;W.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;U("n1",t,e,W,-1,-1,r),U("n2",t,e,W,1,-1,r),U("n3",t,e,W,-1,1,r),U("n4",t,e,W,1,1,r);let i=r;U("f1",t,e,W,-1,-1,i),U("f2",t,e,W,1,-1,i),U("f3",t,e,W,-1,1,i),U("f4",t,e,W,1,1,i);let s=i;U("u1",t,e,W,.35,1.1,s),U("u2",t,e,W,-.35,1.1,s),U("u3",t,e,W,0,1.55,s),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function U(e,t,r,i,s,o,a){D.set(s,o,a).unproject(i);let n=t[e];if(void 0!==n){let e=r.getAttribute("position");for(let t=0,r=n.length;t<r;t++)e.setXYZ(n[t],D.x,D.y,D.z)}}var I=class extends(r(V)){constructor(e){super(e),this.object=e,this.name=`CombinedCameraHelper: ${e.uuid}`}updateMatrixWorld(e){super.updateMatrixWorld(e),this.updateTarget()}updateTarget(){let e=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(e)}raycast(e,t){i(this.object,this.geometry,e,t,!0)}};function z(e){return 1-Math.pow(1-e,3)}var B=new b,H=new b,R=new T,k=new b,q=new b,E=new b,L=class extends(o(S,I)){constructor(e="",t={...v.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=y.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let e=this._projectionTransition;if(void 0===e)return;if(this.disposed)return void this._endProjectionTransition();e.raf=requestAnimationFrame(this._tickProjectionTransition);let t=L.projectionTransitionRequestRender??e.requestRender;this.updateProjectionMatrix(),t?.()},this.super_Entity(e,t),this.previousProjectionMatrix=new j,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new C(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new F(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(e){let t=L.projectionTransitionsEnabled;L.projectionTransitionsEnabled=!1;try{return e()}finally{L.projectionTransitionsEnabled=t}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(e){this.perspCamera.fov=e}get fov(){return this.perspCamera.fov}setNear(e,t){"PerspectiveCamera"===e?this.perspCamera.near=t:this.orthoCamera.near=t}setZoom(e,t){t>=0&&("PerspectiveCamera"===e?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}set cameraType(e){"PerspectiveCamera"===e?this.toPerspective():"OrthographicCamera"===e&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(e){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=e:this.orthoCamera.near=e}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(e){e>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}lookAt(e,t,r){"number"==typeof e&&(e=new b(e,t,r)),super.lookAt(e),this.getWorldPosition(B),this.targetOffset=B.distanceTo(e)}getTarget(e=new b){return this.getWorldDirection(H),this.getWorldPosition(B),H.multiplyScalar(this.targetOffset),e.copy(B).add(H),e}getDistanceToTarget(){let e=this.getTarget();return this.getWorldPosition(B),B.distanceTo(e)}updateUp(){this.getWorldQuaternion(R),k.set(0,0,1).applyQuaternion(R),q.copy(w.DEFAULT_UP),this.isUpVectorFlipped&&q.negate(),q.applyQuaternion(R),E.copy(w.DEFAULT_UP).projectOnPlane(k),this.angleOffsetFromUp=E.angleTo(q),this.angleOffsetFromUp*=E.cross(q).dot(k)>=0?1:-1}updateTransformState(e,t){let r=super.updateTransformState(e,t);return void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(e){let t=e.getWorldPosition(new b),r=e.getWorldDirection(new b).multiplyScalar(this.targetOffset);return{position:t.clone().add(r),target:t}}getViewToTarget(e){let t=this.getWorldDirection(new b).multiplyScalar(this.targetOffset);return{position:e.clone().sub(t),target:e}}getViewToObject(e){let t=new b;return e.getWorldPosition(t),this.getViewToTarget(t)}setViewplaneSize(e,t,r=!1){if(this.aspect=e/t,r){let r=e>t?this.aspect:1,i=e>t?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-e,this.right=.5*e,this.top=.5*t,this.bottom=.5*-t;this.updateProjectionMatrix()}copyViewPlaneSize(e){this.aspect=e.aspect,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let e=this._projectionTransition;if(void 0===e)return 1;let t=(performance.now()-e.start)/e.duration;return t>=1?1:t<=0?0:z(t)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return L.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=L.projectionTransitionMinAgeMs}_beginProjectionTransition(e){let t=this._projectionTransition;void 0===t&&(t={from:new j,blend:new j,blendInverse:new j,start:0,duration:L.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:e},this._projectionTransition=t),t.from.copy(this.projectionMatrix),t.start=performance.now(),t.duration=L.projectionTransitionDuration,t.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,e&&(t.requestRender=e),0!==t.raf&&cancelAnimationFrame(t.raf),t.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;let t=(performance.now()-e.start)/e.duration;if(t>=1)return void this._endProjectionTransition();let r=z(t),i=e.from.elements,s=this._activeSubCamera.projectionMatrix.elements,o=e.blend.elements,a=e.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*a),h=r*n/(r*n+(1-r)*Math.max(1e-6,s[15]-s[11]*a));for(let e=0;e<16;e++)o[e]=i[e]+(s[e]-i[e])*h;e.blendInverse.copy(e.blend).invert(),this.projectionMatrix=e.blend,this.projectionMatrixInverse=e.blendInverse}_endProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;0!==e.raf&&cancelAnimationFrame(e.raf),this._projectionTransition=void 0;let t=this._activeSubCamera;this.projectionMatrix=t.projectionMatrix,this.projectionMatrixInverse=t.projectionMatrixInverse}_syncProjectionTransition(e){let t=e._projectionTransition;if(void 0===t)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new j,blend:new j,blendInverse:new j,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(t.from),r.start=t.start,r.duration=t.duration,r.referenceDepth=t.referenceDepth,this._applyProjectionTransition()}setFocalLength(e){this.perspCamera.setFocalLength(e),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(e,t,r,i,s,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(e,t,r,i,s,o):this.orthoCamera.setViewOffset(e,t,r,i,s,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(e,t){return super.copy(e,t),this.parent=e.parent,this.orthoCamera.copy(e.orthoCamera),this.perspCamera.copy(e.perspCamera),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.far=e.far,this.view=null===e.view?null:Object.assign({},e.view),this._cameraType=e._cameraType,this.aspect=e.aspect,this.fov=e.fov,this.focus=e.focus,this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this.targetOffset=y.sanitizeTargetOffset(e.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(e),this}toCameraState(e=[]){let t={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return f(t,e)}updateCameraSubtype(e,t){let r="perspective"===e?"PerspectiveCamera":"OrthographicCamera";void 0!==t.zoom&&this.setZoom(r,t.zoom),void 0!==t.near&&this.setNear(r,t.near),void 0!==t.fov&&"PerspectiveCamera"===r&&(this.fov=t.fov)}updateState(e,t){this.updateCameraState(e,t)}updateCameraState(e,t){this.updateState_Entity(e,t),void 0!==e.far&&(this.far=e.far),void 0!==e.orthographic&&this.updateCameraSubtype("orthographic",e.orthographic),void 0!==e.perspective&&this.updateCameraSubtype("perspective",e.perspective),void 0!==e.type&&(e.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(t?.shared.requestRender),this.cameraType=e.type),void 0!==e.up&&this.up.fromArray(e.up.map(e=>"number"==typeof e?e:0)),void 0!==e.targetOffset&&(this.targetOffset=y.sanitizeTargetOffset(e.targetOffset)),void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&0===e.type&&this.updateCameraSubtype(e.path[0],e.props)}toState(e){return{...super.toState(e),...this.toCameraState(e),type:this.cameraType}}},G=L;G.projectionTransitionsEnabled=!1,G.projectionTransitionDuration=350,G.projectionTransitionMinAgeMs=1e3;var Q=new j,Z=new j,K=new j,N=new j,X=new j;function Y(e){let t=!1;return e.scene.objects.traverse((e,r)=>{"BooleanGeometry"===r.geometry?.type&&(t=!0)}),t}function J(e,t){let r=e.cloner;return void 0!==r&&r.parent===t?r:void 0}var $=new Float32Array(0);function ee(e,t,r,i){let s=16*(t.children.length+1);$.length<s&&($=new Float32Array(s));let o=0,a=e=>{e.toArray($,16*o),o++},n=!0!==t.parameters.hideBase;n&&a(i),K.copy(e.matrix);for(let e of t.children)!g(e)||!1===e.playModeVisible||(N.copy(e.matrix).multiply(e.pivotMatrix),X.multiplyMatrices(K,N),(!n||!X.equals(i))&&a(X));try{return 0===o?0:l(r,$.subarray(0,16*o))}finally{d(r)}}var te,re=class extends a{constructor(e,t,r){super(e,t),this.data=t,this.meshSetAddresses=[],this.needsTransformForDownstream=!1,this.geometry=new x,this.onAfterRender=(e,t,r,i,s,o)=>{super.onAfterRender(e,t,r,i,s,o),this.recomputeBoolean()},this.geometry.userData.parameters={width:0,height:0,depth:0}}get booleanOp(){return this.data.geometry.operation}get phongAngle(){return this.data.geometry.phongAngle??45}get isLOD(){return this.recomputeBoolean(),!1}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&"geometry"===e.path[0]&&0===e.type&&void 0!==e.props.operation&&(this.freeBooleanPointer(),this.resetBBoxNeedsUpdate())}freeBooleanPointer(){super.freeBooleanPointer(),this.geometry.dispose()}recomputeBoolean(r,i=!0){if(-1!==this.booleanMeshSetAddress&&!r)return;for(let e=0;e<this.children.length;e++){let t=this.children[e];t instanceof re&&!0===t.dataPatched.visible&&t.recomputeBoolean(!0===r,i)}this.meshSetAddresses=[];for(let e=0;e<this.children.length;e++){let t=this.children[e];if(t instanceof u&&!0===t.dataPatched.visible&&t.geometry.attributes.position?.count>0&&t.geometry.drawRange.count>0&&0!==t.booleanMeshSetAddress){Q.copy(t.matrix).multiply(t.pivotMatrix);try{let e=J(t,this);if(-1===t.booleanMeshSetAddress){if((t.geometry.index??t.geometry.getAttribute("position")).count/3<15e5){let s=h(t.geometry,!0===r,i);t.booleanMeshSetAddress=void 0===e||-1===s?s:ee(t,e,s,Q)}if(-1===t.booleanMeshSetAddress)return;void 0===e&&m(t.booleanMeshSetAddress,Q),t.booleanMatrixInvOld.copy(Q).invert(),t.booleanWasTransformed=!1}else t instanceof re&&!0===t.needsTransformForDownstream?(void 0===e?m(t.booleanMeshSetAddress,Q):t.booleanMeshSetAddress=ee(t,e,t.booleanMeshSetAddress,Q),t.needsTransformForDownstream=!1):!0===t.booleanWasTransformed&&(m(t.booleanMeshSetAddress,Z.multiplyMatrices(Q,t.booleanMatrixInvOld)),t.booleanMatrixInvOld.copy(Q).invert(),t.booleanWasTransformed=!1)}catch(e){console.error(e),t.booleanMeshSetAddress=0,t.geometry.userData.booleanOperationDidFail=!0;continue}if(0===t.booleanMeshSetAddress)continue;this.meshSetAddresses.push(t.booleanMeshSetAddress),t.geometry.userData.booleanOperationDidFail=!1}}if(0===this.meshSetAddresses.length){if(0!==this.geometry.getAttribute("position")?.array.length){let e=this.geometry;e.dispose(),this.geometry=new x,this.geometry.userData=e.userData,this.geometry.boundingSphere=e.boundingSphere,this.geometry.setAttribute("position",new P([],3))}return void this.geometry.setDrawRange(0,0)}if(!0===r)return c(this.meshSetAddresses,this.booleanOp);let s=this.geometry;s.dispose(),this.geometry=new x,this.geometry.userData=s.userData,this.geometry.boundingSphere=s.boundingSphere;try{this.booleanMeshSetAddress=p(this.meshSetAddresses,this.booleanOp,this.geometry,this.phongAngle)}catch(e){this.booleanMeshSetAddress=0,this.geometry.userData.booleanOperationDidFail=!0,console.error(e)}this.booleanMatrixInvOld.copy(this.matrix).invert(),this.needsTransformForDownstream=!0,e(this),t(this)}dispose(){super.dispose(),this.geometry.dispose()}};(te||(te={})).is=function(e){return n.is(e)&&e instanceof A};var ie=(e,t)=>class extends(o(e,t)){updateState_Light(e,t){if(this.updateState_Entity(e,t),void 0!==e.color&&(this.color=t.shared.color(e.color)),void 0!==e.intensity&&(this.intensity=e.intensity*Math.PI),void 0!==e.depth){let t=this.shadow;t.camera.far=e.depth,t.needsUpdate=!0}void 0!==e.shadows&&(this.castShadow=e.shadows)}},se=e=>e instanceof u,oe=e=>null!==e&&e instanceof re,ae=e=>s.is(e);export{G as a,Y as b,re as c,te as d,ie as e,se as f,oe as g,ae as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-TU4KDRKR.js";import{$ as o}from"./runtime-chunk-
|
|
1
|
+
import{a as e}from"./runtime-chunk-TU4KDRKR.js";import{$ as o}from"./runtime-chunk-ZA3HZGIR.js";import{Fc as n,Hc as t,Lc as r}from"./runtime-chunk-KPOUV3HD.js";function s(e){return!0===e?.depthPrepass}var i=!0;try{i="0"!==new URLSearchParams(window.location.search).get("dbgdepthprepass")}catch{}function a(e){return i&&e.transparent&&e.depthTest&&!e.wireframe&&!e.shapeBlend&&!function(e){let o=e?.layers;if(!o)return!1;for(let e of o)if("transmission"===e.data.type&&e.data.visible)return!0;return!1}(e.data)}var c={enabled:!1},l=new WeakMap;function u(e){if(!c.enabled)return e;let o=l.get(e);return o||(o={...e,bloom:{...e.bloom,kernelSize:0},depthOfField:{...e.depthOfField,enabled:!1}},l.set(e,o)),o}var f=new WeakSet;function p(e){if(!e.isPointLight&&!e.isSpotLight&&!e.isDirectionalLight)return!1;if(c.enabled){if(!0===e.castShadow)return e.castShadow=!1,f.add(e),!0}else if(f.has(e)&&(f.delete(e),!1===e.castShadow))return e.castShadow=!0,!0;return!1}function h(s,i){switch(s.type){case"cavity":return function(e,o){return{...d(e,o),ridge:e.ridge,valley:e.valley}}(s,i);case"dust":return function(n,t){return{...d(n,t),color:e(n.color,t),coverage:o(n.coverage,t)??.2,softness:o(n.softness,t)??.2,noiseStrength:o(n.noiseStrength,t)??.2,noiseScale:o(n.noiseScale,t)??1}}(s,i);case"fresnel":return function(o,n){let{bias:t,scale:r,intensity:s,factor:i,color:a}=o;return{...d(o,n),color:e(a,n),bias:t,scale:r,intensity:s,factor:i}}(s,i);case"gradient":return function(e,o){let{gradientType:t,smooth:s,colors:i,steps:a,angle:c,offset:l,morph:u}=e;return{...d(e,o),gradientType:t,smooth:s,colors:i.map(e=>new r(e[0],e[1],e[2],e[3])),num:i.length,steps:a,offset:new n(...l.map(e=>"number"==typeof e?e:0)),morph:new n(...u.map(e=>"number"==typeof e?e:0)),angle:c}}(s,i);case"depth":return function(e,o){let{gradientType:n,near:s,far:i,isVector:a,isWorldSpace:c,origin:l,direction:u,colors:f,steps:p,smooth:h}=e;return{...d(e,o),gradientType:n,near:s,far:i,isVector:a,isWorldSpace:c,origin:new t(...l),direction:u?new t(...u):new t(1,0,0),colors:f.map(e=>void 0!==e?new r(e[0],e[1],e[2],e[3]):new r(0,0,0,0)),steps:p.slice(0,f.length),smooth:h}}(s,i);case"normal":return function(e,o){let{cnormal:n}=e;return{...d(e,o),cnormal:new t(n[0],n[1],n[2])}}(s,i);case"noise":return function(o,r){return{...d(o,r),scale:o.scale,move:o.move,fA:new n(...o.fA.map(e=>"number"==typeof e?e:0)),fB:new n(...o.fB.map(e=>"number"==typeof e?e:0)),size:new t(...o.size),distortion:new n(...o.distortion.map(e=>"number"==typeof e?e:0)),colorA:e(o.colorA,r),colorB:e(o.colorB,r),colorC:e(o.colorC,r),colorD:e(o.colorD,r),noiseType:o.noiseType,voronoiStyle:o.voronoiStyle,highCut:o.highCut,lowCut:o.lowCut,smoothness:o.smoothness,seed:o.seed,quality:o.quality}}(s,i);case"rainbow":return function(e,o){return{...d(e,o),filmThickness:e.filmThickness,movement:e.movement,wavelengths:new t(...e.wavelengths),noiseStrength:e.noiseStrength,noiseScale:e.noiseScale,offset:new t(...e.offset)}}(s,i);case"toon":return function(o,n){return{...d(o,n),positioning:o.positioning,colors:o.colors.map(e=>new r(e[0],e[1],e[2],e[3])),num:o.colors.length,steps:o.steps,source:new t(...o.source),isWorldSpace:o.isWorldSpace,noiseStrength:o.noiseStrength,noiseScale:o.noiseScale,shadowColor:e(o.shadowColor,n),offset:new t(...o.offset)}}(s,i);case"outline":return function(o,n){return{...d(o,n),outlineColor:e(o.outlineColor,n),contourColor:e(o.contourColor,n),outlineWidth:o.outlineWidth,contourWidth:o.contourWidth,outlineThreshold:o.outlineThreshold,contourThreshold:o.contourThreshold,outlineSmoothing:o.outlineSmoothing,contourFrequency:o.contourFrequency,contourDirection:new t(...o.contourDirection),positionalLines:o.positionalLines,compensation:o.compensation}}(s,i);case"transmission":return function(o,n){return{...d(o,n),thickness:o.thickness,ior:o.ior,roughness:o.roughness,attenuationColor:void 0!==o.attenuationColor?e(o.attenuationColor,n):{r:1,g:1,b:1,a:1},attenuationDistance:o.attenuationDistance??0}}(s,i);case"reflection":return function(e,n){return{...d(e,n),blur:o(e.blur,n)??0,thickness:o(e.thickness,n)??.001,steps:o(e.steps,n)??60,stepSize:o(e.stepSize,n)??.005,tracingMode:e.tracingMode,mirror:e.mirror??0}}(s,i);case"pattern":return function(o,t){return{...d(o,t),style:o.style,projection:o.projection,axis:o.axis,blending:o.blending,offset:new n(...o.offset.map(e=>"number"==typeof e?e:0)),colorA:e(o.colorA,t),colorB:e(o.colorB,t),frequency:new n(...o.frequency.map(e=>"number"==typeof e?e:0)),size:o.size,variation:o.variation,smoothness:o.smoothness,zigzag:o.zigzag,rotation:o.rotation,vertical:new n(...o.vertical.map(e=>"number"==typeof e?e:0)),horizontal:new n(...o.horizontal.map(e=>"number"==typeof e?e:0)),sides:o.sides}}(s,i);case"vertexColor":return d(s,i);default:return function(o,n){return{...d(o,n),color:e(o.color,n)}}(s,i)}}function m(e){return{type:e.type}}function d(e,o){let{alpha:n,mode:t,isMask:r}=e,s="string"==typeof n?Number(o.getVariable(n)??100)/100:n;return{...m(e),alpha:s,mode:t,isMask:r}}export{s as a,a as b,c,u as d,p as e,h as f};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as t,d as e,e as a,f as n,r as o,x as i,z as r}from"./runtime-chunk-
|
|
1
|
+
import{E as t,d as e,e as a,f as n,r as o,x as i,z as r}from"./runtime-chunk-F6XTFQMZ.js";var d,l,s,u,c,p,f,y,A,h,g,D,m,b,w,B,v,S,k,E,j,O,C,V,x,I,P,R,T,H,z,G,M,N,Q,L,U,q,F,K,W,Y,X,Z,_,J,$,tt,et;(d||(d={})).defaultData={type:"SwitchCamera",name:"",targetCamera:"",delay:0,animate:!0,duration:1e3,easing:4,runMode:"Normal"},(l||(l={})).defaultData={type:"SceneTransition",name:"",target:"",delay:0,duration:1,transition:"none"},(s||(s={})).defaultData={type:"Link",name:"",url:null,context:"tab"},(u||(u={})).defaultData={type:"Destroy",name:"",objects:[],delay:0},(c||(c={})).defaultData={type:"Particles",name:"",emitterObjectId:"",delay:0,emission:"start",triggerAfter:"any"},(p||(p={})).defaultData={type:"Create",name:"",object:"",delay:0,creationSpeed:10,coordinateSystem:"world",dynamic:!0,destroy:"No",destroyAfterQuantity:5,lifetime:2,position:[0,0,0],rotation:[0,0,0],velocity:[1e3,0,0],hideBase:"No"},(f||(f={})).defaultData={type:"Reset",name:"",delay:0},(y||(y={})).defaultData={interaction:"play",delay:0,volume:.5,loop:1},(h=A||(A={})).pauseDefaultData={interaction:"pause",delay:0},h.stopDefaultData={interaction:"stop",delay:0},(D=g||(g={})).defaultData={type:"Audio",name:"",...y.defaultData},D.hasAudioByActions=t=>t.some(({data:t})=>"Audio"===t.type&&"play"===t.interaction&&t.audio),D.hasAudioByEvents=t=>D.getAudiosByEvents(t).length>0,D.getAudiosByActions=t=>{let e=[];return t.forEach(t=>{let a=t.data;"Audio"===a.type&&"play"===a.interaction&&a.audio&&e.push(t),"Conditional"===a.type&&(e.push(...D.getAudiosByActions(a.ifActions)),e.push(...D.getAudiosByActions(a.elseActions)))}),e},D.getAudiosByEvents=t=>{let e=[];return t.forEach(({data:t})=>{o.is(t)||"Collision"===t.type||"Start"===t.type||"Trigger"===t.type||"VariableChange"===t.type||"WEBHOOK"===t.type||"AIAssistantTrigger"===t.type?e.push(...D.getAudiosByActions(t.actions)):"Conditional"===t.type?(e.push(...D.getAudiosByActions(t.inActions)),e.push(...D.getAudiosByActions(t.outActions))):"GameControl"===t.type?Object.values(t.gameActions).forEach(t=>{e.push(...D.getAudiosByActions(t))}):"DragDrop"===t.type?(e.push(...D.getAudiosByActions(t.dragDropActions.drag)),e.push(...D.getAudiosByActions(t.dragDropActions.drop))):"Resize"===t.type?t.breakpoints.forEach(({data:t})=>{e.push(...D.getAudiosByActions(t.actions))}):"API"===t.type&&(e.push(...D.getAudiosByActions(t.successActions)),e.push(...D.getAudiosByActions(t.errorActions)))}),e},(m||(m={})).defaultData={interaction:"play",delay:0,volume:.5,loop:1/0},(t=>{t.pauseDefaultData={interaction:"pause",delay:0},t.stopDefaultData={interaction:"stop",delay:0}})(b||(b={})),(t=>{t.defaultData={type:"Video",name:"",triggerAfter:"autoplay",...m.defaultData},t.hasVideoByActions=t=>t.some(({data:t})=>"Video"===t.type&&"play"===t.interaction&&t.layerId),t.hasVideoByObject=e=>{if(e.events)for(let{data:a}of e.events)if((o.is(a)||"Start"===a.type)&&t.hasVideoByActions(a.actions))return!0},t.getVideosByActions=t=>{let e=[];return t.forEach(t=>{let a=t.data;"Video"===a.type&&"play"===a.interaction&&a.layerId&&e.push(t)}),e},t.getVideosByEvents=e=>{let a=[];return e.forEach(({data:e})=>{(o.is(e)||"Start"===e.type)&&a.push(...t.getVideosByActions(e.actions))}),a}})(w||(w={})),(B||(B={})).defaultData=function(t){return{state:t,repeat:0,delay:0,delayDirection:"start-once",direction:"normal",duration:1e3,easing:4}},(v||(v={})).defaultData=function(){return{tweens:new n,repeat:0,delay:0,delayDirection:"start-once",direction:"normal"}},(S||(S={})).defaultData=function(t){return{type:"Transition",name:"",runMode:"Once",object:t??null,...v.defaultData()}},(k||(k={})).defaultData=function(t){return{interaction:"play",timeline:t,repeat:0,delay:0,delayDirection:"start-once",direction:"normal",runMode:"Once"}},(t=>{t.pauseDefaultData={interaction:"pause",delay:0},t.stopDefaultData={interaction:"stop",delay:0}})(E||(E={})),(j||(j={})).defaultData=function(t){return{type:"TimelineAnimation",name:"",...k.defaultData(t)}},(O||(O={})).defaultData=function(t,e,a){return{interaction:"play",object:t,clipId:e,crop:a,crop2:a,repeat:-1,delay:0,delayDirection:"start-once",direction:"normal",runMode:"Normal"}},(t=>{t.pauseDefaultData={interaction:"pause",delay:0},t.stopDefaultData={interaction:"stop",delay:0}})(C||(C={})),(t=>{t.defaultData=function(t,e,a){return{type:"Animation",name:"",...O.defaultData(t,e,a)}},t.isPause=function(t){return"pause"===t.interaction||"stop"===t.interaction}})(V||(V={})),(x||(x={})).defaultData={type:"SetVariable",name:"",variableId:"",expression:[]},(I||(I={})).defaultData=()=>({type:"Conditional",name:"",ifActions:new n,elseActions:new n,condition:[]}),(P||(P={})).defaultData={type:"DynamicVariablePlay",name:"",variableId:"",mode:"PlayPause",delay:0,pauseDelay:0},(R||(R={})).defaultData={type:"ClearLocalStorage",name:"",target:"all"},(T||(T={})).defaultData={name:"",type:"UserAPI"},(H||(H={})).emptyImage={data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",name:"empty"},(z||(z={})).is=function(t){return!0},(M=G||(G={})).defaultData={position:[0,0],scale:[1,1],rotation:0,shear:[0,0]},M.merge=function(t,e){return{position:e?.position??t.position,rotation:e?.rotation??t.rotation,scale:e?.scale??t.scale,shear:e?.shear??t.shear}},M.diff=function(t,a){return e({position:r.isEqual(t.position,a.position)?void 0:a.position,rotation:t.rotation===a.rotation?void 0:a.rotation,scale:r.isEqual(t.scale,a.scale)?void 0:a.scale,shear:t.shear&&a.shear&&r.isEqual(t.shear,a.shear)?void 0:a.shear})},(N||(N={})).defaultData={horizontalConstraint:0,verticalConstraint:0},(Q||(Q={})).defaultData={direction:"row",wrap:"unwrap",align:"top-left",gap:10,rowGap:10,autoGap:!1,autoRowGap:!1,leftPadding:8,rightPadding:8,topPadding:8,bottomPadding:8},(L||(L={})).defaultData={opacity:1,fill:{color:t.fromHexAndA(i,1),enabled:!0},stroke:{color:t.from0to1([0,0,0,1]),thickness:1,enabled:!1,mode:"inside"},layerBlur:{radius:2,enabled:!1},backgroundBlur:{radius:2,enabled:!1},dropShadow:{offset:[10,10],blurRadius:10,color:t.from0to1([0,0,0,1]),enabled:!1,spread:0},innerShadow:{offset:[10,10],blurRadius:10,color:t.from0to1([0,0,0,1]),enabled:!1,spread:0}},(t=>{t.newEmpty=function(t,e){return{name:e}},t.patch=function(t,e){if(void 0===e)return t;let a={...t};return Object.assign(a,G.merge(a,e)),a=function(t,e){if(void 0===e)return t;let a={...t},n=["width","height","cornerRadius"];for(let t of n)t in a&&t in e&&void 0!==e[t]&&Object.assign(a,{[t]:e[t]});return a}(a,e),a=function(t,e){if(void 0===e)return t;let a={...t};return"fill"in a&&"fill"in e&&void 0!==e.fill&&Object.assign(a,{fill:{...a.fill,...e.fill}}),"stroke"in a&&"stroke"in e&&void 0!==e.stroke&&Object.assign(a,{stroke:{...a.stroke,...e.stroke}}),"layerBlur"in a&&"layerBlur"in e&&void 0!==e.layerBlur&&Object.assign(a,{layerBlur:{...a.layerBlur,...e.layerBlur}}),"backgroundBlur"in a&&"backgroundBlur"in e&&void 0!==e.backgroundBlur&&Object.assign(a,{backgroundBlur:{...a.backgroundBlur,...e.backgroundBlur}}),"dropShadow"in a&&"dropShadow"in e&&void 0!==e.dropShadow&&Object.assign(a,{dropShadow:{...a.dropShadow,...e.dropShadow}}),"innerShadow"in a&&"innerShadow"in e&&void 0!==e.innerShadow&&Object.assign(a,{innerShadow:{...a.innerShadow,...e.innerShadow}}),a}(a,e),a},t.toOps=function(t,e){let a,n=[];for(let[t,o]of Object.entries(e))"name"!==t&&(void 0===a&&(a={path:[],props:{},type:0},n.push(a)),a.props[t]=o);return n}})(U||(U={})),(q||(q={})).defaultData={...G.defaultData,...N.defaultData,states:new n,events:new n,visible:!0,raycastLock:!1},(F||(F={})).defaultData={...q.defaultData,...L.defaultData},(K||(K={})).defaultData={cornerRadius:[0,0,0,0]},(W||(W={})).defaultData={...F.defaultData,type:"ellipse2d",width:100,height:100,name:"Ellipse"},(Y||(Y={})).defaultData={...F.defaultData,...K.defaultData,type:"rectangle2d",width:100,height:100,name:"Rectangle"},(X||(X={})).defaultData={...F.defaultData,type:"text2d",width:100,height:100,fontSize:12,lineHeight:1.2,letterSpacing:0,text:{textValue:"Hello world"},horizontalAlign:1,verticalAlign:1,textTransform:1,font:"Roboto_regular",name:"Text"},(Z||(Z={})).defaultData={...F.defaultData,type:"path2d",path:"",name:"Path"},(_||(_={})).is=function(t){return"ellipse2d"===t.type||"rectangle2d"===t.type||"text2d"===t.type||"vector2d"===t.type||"path2d"===t.type},(J||(J={})).defaultData={...q.defaultData,name:"Group",type:"group2d"},($||($={})).defaultData=()=>({...q.defaultData,...K.defaultData,...L.defaultData,name:"Frame",type:"frame2d",clipped:!0,width:200,height:200,fill:{color:t.fromHexAndA(4737101,1),enabled:!0},stroke:{color:t.fromHexAndA(0,1),thickness:1,enabled:!1,mode:"inside"},backgroundBlur:{radius:2,enabled:!1},layerBlur:{radius:2,enabled:!1}}),(t=>{t.defaultData=function(t){switch(t){case"rectangle2d":case"vector2d":return{...Y.defaultData};case"ellipse2d":return{...W.defaultData};case"text2d":return{...X.defaultData};case"path2d":return{...Z.defaultData};case"frame2d":return{...$.defaultData()};case"group2d":return{...J.defaultData}}},t.getPivot=function(t){return"width"in t&&"height"in t?["number"==typeof t.width?.5*t.width:0,"number"==typeof t.height?.5*t.height:0]:[0,0]},t.isResizeable=function(t){return"rectangle2d"===t.type||"ellipse2d"===t.type||"text2d"===t.type||"frame2d"===t.type},t.isAutoLayoutable=function(t){return"frame2d"===t.type&&void 0!==t.autoLayout},t.hasCorners=function(t){return"rectangle2d"===t.type||"frame2d"===t.type}})(tt||(tt={})),(t=>{t.defaultData={name:"UI",type:"scene2d",objects:new a},t.emptyData=function(){return{type:"scene2d",objects:new a}}})(et||(et={}));export{V as a,H as b,U as c,Y as d,J as e,tt as f,et as g};
|
|
Binary file
|
|
Binary file
|