@pieai/swimmer-ui-kit 2.14.0 → 3.0.0-rc.1
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/CHANGELOG.md +47 -1
- package/LICENSE +17 -20
- package/NOTICE +69 -36
- package/README.md +51 -162
- package/bin/lib/retired-theme.d.mts +2 -0
- package/bin/lib/retired-theme.mjs +58 -0
- package/bin/swimmer-ui-check.mjs +91 -16
- package/dist/GameStageTile-BcFCu22b.js +1554 -0
- package/dist/LiquidGroup-BXw1tv9H.js +1291 -0
- package/dist/fonts/zh/400-1f000.woff2 +0 -0
- package/dist/fonts/zh/400-1f200.woff2 +0 -0
- package/dist/fonts/zh/400-20000.woff2 +0 -0
- package/dist/fonts/zh/400-20600.woff2 +0 -0
- package/dist/fonts/zh/400-20c00.woff2 +0 -0
- package/dist/fonts/zh/400-21200.woff2 +0 -0
- package/dist/fonts/zh/400-21400.woff2 +0 -0
- package/dist/fonts/zh/400-22800.woff2 +0 -0
- package/dist/fonts/zh/400-23400.woff2 +0 -0
- package/dist/fonts/zh/400-23c00.woff2 +0 -0
- package/dist/fonts/zh/400-23e00.woff2 +0 -0
- package/dist/fonts/zh/400-24000.woff2 +0 -0
- package/dist/fonts/zh/400-24200.woff2 +0 -0
- package/dist/fonts/zh/400-24800.woff2 +0 -0
- package/dist/fonts/zh/400-24a00.woff2 +0 -0
- package/dist/fonts/zh/400-25400.woff2 +0 -0
- package/dist/fonts/zh/400-25a00.woff2 +0 -0
- package/dist/fonts/zh/400-25e00.woff2 +0 -0
- package/dist/fonts/zh/400-26200.woff2 +0 -0
- package/dist/fonts/zh/400-26400.woff2 +0 -0
- package/dist/fonts/zh/400-26600.woff2 +0 -0
- package/dist/fonts/zh/400-26800.woff2 +0 -0
- package/dist/fonts/zh/400-26a00.woff2 +0 -0
- package/dist/fonts/zh/400-26c00.woff2 +0 -0
- package/dist/fonts/zh/400-27800.woff2 +0 -0
- package/dist/fonts/zh/400-27e00.woff2 +0 -0
- package/dist/fonts/zh/400-28400.woff2 +0 -0
- package/dist/fonts/zh/400-28600.woff2 +0 -0
- package/dist/fonts/zh/400-28a00.woff2 +0 -0
- package/dist/fonts/zh/400-28c00.woff2 +0 -0
- package/dist/fonts/zh/400-28e00.woff2 +0 -0
- package/dist/fonts/zh/400-29600.woff2 +0 -0
- package/dist/fonts/zh/400-29800.woff2 +0 -0
- package/dist/fonts/zh/400-29e00.woff2 +0 -0
- package/dist/fonts/zh/400-2a600.woff2 +0 -0
- package/dist/fonts/zh/400-2a800.woff2 +0 -0
- package/dist/fonts/zh/400-2aa00.woff2 +0 -0
- package/dist/fonts/zh/400-2ae00.woff2 +0 -0
- package/dist/fonts/zh/400-2b000.woff2 +0 -0
- package/dist/fonts/zh/400-2b200.woff2 +0 -0
- package/dist/fonts/zh/400-2b400.woff2 +0 -0
- package/dist/fonts/zh/400-2b600.woff2 +0 -0
- package/dist/fonts/zh/400-2b800.woff2 +0 -0
- package/dist/fonts/zh/400-2ba00.woff2 +0 -0
- package/dist/fonts/zh/400-2bc00.woff2 +0 -0
- package/dist/fonts/zh/400-2be00.woff2 +0 -0
- package/dist/fonts/zh/400-2c000.woff2 +0 -0
- package/dist/fonts/zh/400-2c200.woff2 +0 -0
- package/dist/fonts/zh/400-2c400.woff2 +0 -0
- package/dist/fonts/zh/400-2c600.woff2 +0 -0
- package/dist/fonts/zh/400-2c800.woff2 +0 -0
- package/dist/fonts/zh/400-2ca00.woff2 +0 -0
- package/dist/fonts/zh/400-2cc00.woff2 +0 -0
- package/dist/fonts/zh/400-2ce00.woff2 +0 -0
- package/dist/fonts/zh/400-2d400.woff2 +0 -0
- package/dist/fonts/zh/400-2e00.woff2 +0 -0
- package/dist/fonts/zh/400-2f800.woff2 +0 -0
- package/dist/fonts/zh/400-3000.woff2 +0 -0
- package/dist/fonts/zh/400-3200.woff2 +0 -0
- package/dist/fonts/zh/400-3400.woff2 +0 -0
- package/dist/fonts/zh/400-3600.woff2 +0 -0
- package/dist/fonts/zh/400-3800.woff2 +0 -0
- package/dist/fonts/zh/400-3a00.woff2 +0 -0
- package/dist/fonts/zh/400-3c00.woff2 +0 -0
- package/dist/fonts/zh/400-3e00.woff2 +0 -0
- package/dist/fonts/zh/400-4000.woff2 +0 -0
- package/dist/fonts/zh/400-4200.woff2 +0 -0
- package/dist/fonts/zh/400-4400.woff2 +0 -0
- package/dist/fonts/zh/400-4600.woff2 +0 -0
- package/dist/fonts/zh/400-4800.woff2 +0 -0
- package/dist/fonts/zh/400-4a00.woff2 +0 -0
- package/dist/fonts/zh/400-4c00.woff2 +0 -0
- package/dist/fonts/zh/400-4e00.woff2 +0 -0
- package/dist/fonts/zh/400-5000.woff2 +0 -0
- package/dist/fonts/zh/400-5200.woff2 +0 -0
- package/dist/fonts/zh/400-5400.woff2 +0 -0
- package/dist/fonts/zh/400-5600.woff2 +0 -0
- package/dist/fonts/zh/400-5800.woff2 +0 -0
- package/dist/fonts/zh/400-5a00.woff2 +0 -0
- package/dist/fonts/zh/400-5c00.woff2 +0 -0
- package/dist/fonts/zh/400-5e00.woff2 +0 -0
- package/dist/fonts/zh/400-6000.woff2 +0 -0
- package/dist/fonts/zh/400-6200.woff2 +0 -0
- package/dist/fonts/zh/400-6400.woff2 +0 -0
- package/dist/fonts/zh/400-6600.woff2 +0 -0
- package/dist/fonts/zh/400-6800.woff2 +0 -0
- package/dist/fonts/zh/400-6a00.woff2 +0 -0
- package/dist/fonts/zh/400-6c00.woff2 +0 -0
- package/dist/fonts/zh/400-6e00.woff2 +0 -0
- package/dist/fonts/zh/400-7000.woff2 +0 -0
- package/dist/fonts/zh/400-7200.woff2 +0 -0
- package/dist/fonts/zh/400-7400.woff2 +0 -0
- package/dist/fonts/zh/400-7600.woff2 +0 -0
- package/dist/fonts/zh/400-7800.woff2 +0 -0
- package/dist/fonts/zh/400-7a00.woff2 +0 -0
- package/dist/fonts/zh/400-7c00.woff2 +0 -0
- package/dist/fonts/zh/400-7e00.woff2 +0 -0
- package/dist/fonts/zh/400-8000.woff2 +0 -0
- package/dist/fonts/zh/400-8200.woff2 +0 -0
- package/dist/fonts/zh/400-8400.woff2 +0 -0
- package/dist/fonts/zh/400-8600.woff2 +0 -0
- package/dist/fonts/zh/400-8800.woff2 +0 -0
- package/dist/fonts/zh/400-8a00.woff2 +0 -0
- package/dist/fonts/zh/400-8c00.woff2 +0 -0
- package/dist/fonts/zh/400-8e00.woff2 +0 -0
- package/dist/fonts/zh/400-9000.woff2 +0 -0
- package/dist/fonts/zh/400-9200.woff2 +0 -0
- package/dist/fonts/zh/400-9400.woff2 +0 -0
- package/dist/fonts/zh/400-9600.woff2 +0 -0
- package/dist/fonts/zh/400-9800.woff2 +0 -0
- package/dist/fonts/zh/400-9a00.woff2 +0 -0
- package/dist/fonts/zh/400-9c00.woff2 +0 -0
- package/dist/fonts/zh/400-9e00.woff2 +0 -0
- package/dist/fonts/zh/400-f800.woff2 +0 -0
- package/dist/fonts/zh/400-fa00.woff2 +0 -0
- package/dist/fonts/zh/400-fe00.woff2 +0 -0
- package/dist/fonts/zh/500-1f000.woff2 +0 -0
- package/dist/fonts/zh/500-1f200.woff2 +0 -0
- package/dist/fonts/zh/500-20000.woff2 +0 -0
- package/dist/fonts/zh/500-20600.woff2 +0 -0
- package/dist/fonts/zh/500-20c00.woff2 +0 -0
- package/dist/fonts/zh/500-21200.woff2 +0 -0
- package/dist/fonts/zh/500-21400.woff2 +0 -0
- package/dist/fonts/zh/500-22800.woff2 +0 -0
- package/dist/fonts/zh/500-23400.woff2 +0 -0
- package/dist/fonts/zh/500-23c00.woff2 +0 -0
- package/dist/fonts/zh/500-23e00.woff2 +0 -0
- package/dist/fonts/zh/500-24000.woff2 +0 -0
- package/dist/fonts/zh/500-24200.woff2 +0 -0
- package/dist/fonts/zh/500-24800.woff2 +0 -0
- package/dist/fonts/zh/500-24a00.woff2 +0 -0
- package/dist/fonts/zh/500-25400.woff2 +0 -0
- package/dist/fonts/zh/500-25a00.woff2 +0 -0
- package/dist/fonts/zh/500-25e00.woff2 +0 -0
- package/dist/fonts/zh/500-26200.woff2 +0 -0
- package/dist/fonts/zh/500-26400.woff2 +0 -0
- package/dist/fonts/zh/500-26600.woff2 +0 -0
- package/dist/fonts/zh/500-26800.woff2 +0 -0
- package/dist/fonts/zh/500-26a00.woff2 +0 -0
- package/dist/fonts/zh/500-26c00.woff2 +0 -0
- package/dist/fonts/zh/500-27800.woff2 +0 -0
- package/dist/fonts/zh/500-27e00.woff2 +0 -0
- package/dist/fonts/zh/500-28400.woff2 +0 -0
- package/dist/fonts/zh/500-28600.woff2 +0 -0
- package/dist/fonts/zh/500-28a00.woff2 +0 -0
- package/dist/fonts/zh/500-28c00.woff2 +0 -0
- package/dist/fonts/zh/500-28e00.woff2 +0 -0
- package/dist/fonts/zh/500-29600.woff2 +0 -0
- package/dist/fonts/zh/500-29800.woff2 +0 -0
- package/dist/fonts/zh/500-29e00.woff2 +0 -0
- package/dist/fonts/zh/500-2a600.woff2 +0 -0
- package/dist/fonts/zh/500-2a800.woff2 +0 -0
- package/dist/fonts/zh/500-2aa00.woff2 +0 -0
- package/dist/fonts/zh/500-2ae00.woff2 +0 -0
- package/dist/fonts/zh/500-2b000.woff2 +0 -0
- package/dist/fonts/zh/500-2b200.woff2 +0 -0
- package/dist/fonts/zh/500-2b400.woff2 +0 -0
- package/dist/fonts/zh/500-2b600.woff2 +0 -0
- package/dist/fonts/zh/500-2b800.woff2 +0 -0
- package/dist/fonts/zh/500-2ba00.woff2 +0 -0
- package/dist/fonts/zh/500-2bc00.woff2 +0 -0
- package/dist/fonts/zh/500-2be00.woff2 +0 -0
- package/dist/fonts/zh/500-2c000.woff2 +0 -0
- package/dist/fonts/zh/500-2c200.woff2 +0 -0
- package/dist/fonts/zh/500-2c400.woff2 +0 -0
- package/dist/fonts/zh/500-2c600.woff2 +0 -0
- package/dist/fonts/zh/500-2c800.woff2 +0 -0
- package/dist/fonts/zh/500-2ca00.woff2 +0 -0
- package/dist/fonts/zh/500-2cc00.woff2 +0 -0
- package/dist/fonts/zh/500-2ce00.woff2 +0 -0
- package/dist/fonts/zh/500-2d400.woff2 +0 -0
- package/dist/fonts/zh/500-2e00.woff2 +0 -0
- package/dist/fonts/zh/500-2f800.woff2 +0 -0
- package/dist/fonts/zh/500-3000.woff2 +0 -0
- package/dist/fonts/zh/500-3200.woff2 +0 -0
- package/dist/fonts/zh/500-3400.woff2 +0 -0
- package/dist/fonts/zh/500-3600.woff2 +0 -0
- package/dist/fonts/zh/500-3800.woff2 +0 -0
- package/dist/fonts/zh/500-3a00.woff2 +0 -0
- package/dist/fonts/zh/500-3c00.woff2 +0 -0
- package/dist/fonts/zh/500-3e00.woff2 +0 -0
- package/dist/fonts/zh/500-4000.woff2 +0 -0
- package/dist/fonts/zh/500-4200.woff2 +0 -0
- package/dist/fonts/zh/500-4400.woff2 +0 -0
- package/dist/fonts/zh/500-4600.woff2 +0 -0
- package/dist/fonts/zh/500-4800.woff2 +0 -0
- package/dist/fonts/zh/500-4a00.woff2 +0 -0
- package/dist/fonts/zh/500-4c00.woff2 +0 -0
- package/dist/fonts/zh/500-4e00.woff2 +0 -0
- package/dist/fonts/zh/500-5000.woff2 +0 -0
- package/dist/fonts/zh/500-5200.woff2 +0 -0
- package/dist/fonts/zh/500-5400.woff2 +0 -0
- package/dist/fonts/zh/500-5600.woff2 +0 -0
- package/dist/fonts/zh/500-5800.woff2 +0 -0
- package/dist/fonts/zh/500-5a00.woff2 +0 -0
- package/dist/fonts/zh/500-5c00.woff2 +0 -0
- package/dist/fonts/zh/500-5e00.woff2 +0 -0
- package/dist/fonts/zh/500-6000.woff2 +0 -0
- package/dist/fonts/zh/500-6200.woff2 +0 -0
- package/dist/fonts/zh/500-6400.woff2 +0 -0
- package/dist/fonts/zh/500-6600.woff2 +0 -0
- package/dist/fonts/zh/500-6800.woff2 +0 -0
- package/dist/fonts/zh/500-6a00.woff2 +0 -0
- package/dist/fonts/zh/500-6c00.woff2 +0 -0
- package/dist/fonts/zh/500-6e00.woff2 +0 -0
- package/dist/fonts/zh/500-7000.woff2 +0 -0
- package/dist/fonts/zh/500-7200.woff2 +0 -0
- package/dist/fonts/zh/500-7400.woff2 +0 -0
- package/dist/fonts/zh/500-7600.woff2 +0 -0
- package/dist/fonts/zh/500-7800.woff2 +0 -0
- package/dist/fonts/zh/500-7a00.woff2 +0 -0
- package/dist/fonts/zh/500-7c00.woff2 +0 -0
- package/dist/fonts/zh/500-7e00.woff2 +0 -0
- package/dist/fonts/zh/500-8000.woff2 +0 -0
- package/dist/fonts/zh/500-8200.woff2 +0 -0
- package/dist/fonts/zh/500-8400.woff2 +0 -0
- package/dist/fonts/zh/500-8600.woff2 +0 -0
- package/dist/fonts/zh/500-8800.woff2 +0 -0
- package/dist/fonts/zh/500-8a00.woff2 +0 -0
- package/dist/fonts/zh/500-8c00.woff2 +0 -0
- package/dist/fonts/zh/500-8e00.woff2 +0 -0
- package/dist/fonts/zh/500-9000.woff2 +0 -0
- package/dist/fonts/zh/500-9200.woff2 +0 -0
- package/dist/fonts/zh/500-9400.woff2 +0 -0
- package/dist/fonts/zh/500-9600.woff2 +0 -0
- package/dist/fonts/zh/500-9800.woff2 +0 -0
- package/dist/fonts/zh/500-9a00.woff2 +0 -0
- package/dist/fonts/zh/500-9c00.woff2 +0 -0
- package/dist/fonts/zh/500-9e00.woff2 +0 -0
- package/dist/fonts/zh/500-f800.woff2 +0 -0
- package/dist/fonts/zh/500-fa00.woff2 +0 -0
- package/dist/fonts/zh/500-fe00.woff2 +0 -0
- package/dist/fonts/zh/700-1f000.woff2 +0 -0
- package/dist/fonts/zh/700-1f200.woff2 +0 -0
- package/dist/fonts/zh/700-20000.woff2 +0 -0
- package/dist/fonts/zh/700-20600.woff2 +0 -0
- package/dist/fonts/zh/700-20c00.woff2 +0 -0
- package/dist/fonts/zh/700-21200.woff2 +0 -0
- package/dist/fonts/zh/700-21400.woff2 +0 -0
- package/dist/fonts/zh/700-22800.woff2 +0 -0
- package/dist/fonts/zh/700-23400.woff2 +0 -0
- package/dist/fonts/zh/700-23c00.woff2 +0 -0
- package/dist/fonts/zh/700-23e00.woff2 +0 -0
- package/dist/fonts/zh/700-24000.woff2 +0 -0
- package/dist/fonts/zh/700-24200.woff2 +0 -0
- package/dist/fonts/zh/700-24800.woff2 +0 -0
- package/dist/fonts/zh/700-24a00.woff2 +0 -0
- package/dist/fonts/zh/700-25400.woff2 +0 -0
- package/dist/fonts/zh/700-25a00.woff2 +0 -0
- package/dist/fonts/zh/700-25e00.woff2 +0 -0
- package/dist/fonts/zh/700-26200.woff2 +0 -0
- package/dist/fonts/zh/700-26400.woff2 +0 -0
- package/dist/fonts/zh/700-26600.woff2 +0 -0
- package/dist/fonts/zh/700-26800.woff2 +0 -0
- package/dist/fonts/zh/700-26a00.woff2 +0 -0
- package/dist/fonts/zh/700-26c00.woff2 +0 -0
- package/dist/fonts/zh/700-27800.woff2 +0 -0
- package/dist/fonts/zh/700-27e00.woff2 +0 -0
- package/dist/fonts/zh/700-28400.woff2 +0 -0
- package/dist/fonts/zh/700-28600.woff2 +0 -0
- package/dist/fonts/zh/700-28a00.woff2 +0 -0
- package/dist/fonts/zh/700-28c00.woff2 +0 -0
- package/dist/fonts/zh/700-28e00.woff2 +0 -0
- package/dist/fonts/zh/700-29600.woff2 +0 -0
- package/dist/fonts/zh/700-29800.woff2 +0 -0
- package/dist/fonts/zh/700-29e00.woff2 +0 -0
- package/dist/fonts/zh/700-2a600.woff2 +0 -0
- package/dist/fonts/zh/700-2a800.woff2 +0 -0
- package/dist/fonts/zh/700-2aa00.woff2 +0 -0
- package/dist/fonts/zh/700-2ae00.woff2 +0 -0
- package/dist/fonts/zh/700-2b000.woff2 +0 -0
- package/dist/fonts/zh/700-2b200.woff2 +0 -0
- package/dist/fonts/zh/700-2b400.woff2 +0 -0
- package/dist/fonts/zh/700-2b600.woff2 +0 -0
- package/dist/fonts/zh/700-2b800.woff2 +0 -0
- package/dist/fonts/zh/700-2ba00.woff2 +0 -0
- package/dist/fonts/zh/700-2bc00.woff2 +0 -0
- package/dist/fonts/zh/700-2be00.woff2 +0 -0
- package/dist/fonts/zh/700-2c000.woff2 +0 -0
- package/dist/fonts/zh/700-2c200.woff2 +0 -0
- package/dist/fonts/zh/700-2c400.woff2 +0 -0
- package/dist/fonts/zh/700-2c600.woff2 +0 -0
- package/dist/fonts/zh/700-2c800.woff2 +0 -0
- package/dist/fonts/zh/700-2ca00.woff2 +0 -0
- package/dist/fonts/zh/700-2cc00.woff2 +0 -0
- package/dist/fonts/zh/700-2ce00.woff2 +0 -0
- package/dist/fonts/zh/700-2d400.woff2 +0 -0
- package/dist/fonts/zh/700-2e00.woff2 +0 -0
- package/dist/fonts/zh/700-2f800.woff2 +0 -0
- package/dist/fonts/zh/700-3000.woff2 +0 -0
- package/dist/fonts/zh/700-3200.woff2 +0 -0
- package/dist/fonts/zh/700-3400.woff2 +0 -0
- package/dist/fonts/zh/700-3600.woff2 +0 -0
- package/dist/fonts/zh/700-3800.woff2 +0 -0
- package/dist/fonts/zh/700-3a00.woff2 +0 -0
- package/dist/fonts/zh/700-3c00.woff2 +0 -0
- package/dist/fonts/zh/700-3e00.woff2 +0 -0
- package/dist/fonts/zh/700-4000.woff2 +0 -0
- package/dist/fonts/zh/700-4200.woff2 +0 -0
- package/dist/fonts/zh/700-4400.woff2 +0 -0
- package/dist/fonts/zh/700-4600.woff2 +0 -0
- package/dist/fonts/zh/700-4800.woff2 +0 -0
- package/dist/fonts/zh/700-4a00.woff2 +0 -0
- package/dist/fonts/zh/700-4c00.woff2 +0 -0
- package/dist/fonts/zh/700-4e00.woff2 +0 -0
- package/dist/fonts/zh/700-5000.woff2 +0 -0
- package/dist/fonts/zh/700-5200.woff2 +0 -0
- package/dist/fonts/zh/700-5400.woff2 +0 -0
- package/dist/fonts/zh/700-5600.woff2 +0 -0
- package/dist/fonts/zh/700-5800.woff2 +0 -0
- package/dist/fonts/zh/700-5a00.woff2 +0 -0
- package/dist/fonts/zh/700-5c00.woff2 +0 -0
- package/dist/fonts/zh/700-5e00.woff2 +0 -0
- package/dist/fonts/zh/700-6000.woff2 +0 -0
- package/dist/fonts/zh/700-6200.woff2 +0 -0
- package/dist/fonts/zh/700-6400.woff2 +0 -0
- package/dist/fonts/zh/700-6600.woff2 +0 -0
- package/dist/fonts/zh/700-6800.woff2 +0 -0
- package/dist/fonts/zh/700-6a00.woff2 +0 -0
- package/dist/fonts/zh/700-6c00.woff2 +0 -0
- package/dist/fonts/zh/700-6e00.woff2 +0 -0
- package/dist/fonts/zh/700-7000.woff2 +0 -0
- package/dist/fonts/zh/700-7200.woff2 +0 -0
- package/dist/fonts/zh/700-7400.woff2 +0 -0
- package/dist/fonts/zh/700-7600.woff2 +0 -0
- package/dist/fonts/zh/700-7800.woff2 +0 -0
- package/dist/fonts/zh/700-7a00.woff2 +0 -0
- package/dist/fonts/zh/700-7c00.woff2 +0 -0
- package/dist/fonts/zh/700-7e00.woff2 +0 -0
- package/dist/fonts/zh/700-8000.woff2 +0 -0
- package/dist/fonts/zh/700-8200.woff2 +0 -0
- package/dist/fonts/zh/700-8400.woff2 +0 -0
- package/dist/fonts/zh/700-8600.woff2 +0 -0
- package/dist/fonts/zh/700-8800.woff2 +0 -0
- package/dist/fonts/zh/700-8a00.woff2 +0 -0
- package/dist/fonts/zh/700-8c00.woff2 +0 -0
- package/dist/fonts/zh/700-8e00.woff2 +0 -0
- package/dist/fonts/zh/700-9000.woff2 +0 -0
- package/dist/fonts/zh/700-9200.woff2 +0 -0
- package/dist/fonts/zh/700-9400.woff2 +0 -0
- package/dist/fonts/zh/700-9600.woff2 +0 -0
- package/dist/fonts/zh/700-9800.woff2 +0 -0
- package/dist/fonts/zh/700-9a00.woff2 +0 -0
- package/dist/fonts/zh/700-9c00.woff2 +0 -0
- package/dist/fonts/zh/700-9e00.woff2 +0 -0
- package/dist/fonts/zh/700-f800.woff2 +0 -0
- package/dist/fonts/zh/700-fa00.woff2 +0 -0
- package/dist/fonts/zh/700-fe00.woff2 +0 -0
- package/dist/fonts/zh/900-1f000.woff2 +0 -0
- package/dist/fonts/zh/900-1f200.woff2 +0 -0
- package/dist/fonts/zh/900-20000.woff2 +0 -0
- package/dist/fonts/zh/900-20600.woff2 +0 -0
- package/dist/fonts/zh/900-20c00.woff2 +0 -0
- package/dist/fonts/zh/900-21200.woff2 +0 -0
- package/dist/fonts/zh/900-21400.woff2 +0 -0
- package/dist/fonts/zh/900-22800.woff2 +0 -0
- package/dist/fonts/zh/900-23400.woff2 +0 -0
- package/dist/fonts/zh/900-23c00.woff2 +0 -0
- package/dist/fonts/zh/900-23e00.woff2 +0 -0
- package/dist/fonts/zh/900-24000.woff2 +0 -0
- package/dist/fonts/zh/900-24200.woff2 +0 -0
- package/dist/fonts/zh/900-24800.woff2 +0 -0
- package/dist/fonts/zh/900-24a00.woff2 +0 -0
- package/dist/fonts/zh/900-25400.woff2 +0 -0
- package/dist/fonts/zh/900-25a00.woff2 +0 -0
- package/dist/fonts/zh/900-25e00.woff2 +0 -0
- package/dist/fonts/zh/900-26200.woff2 +0 -0
- package/dist/fonts/zh/900-26400.woff2 +0 -0
- package/dist/fonts/zh/900-26600.woff2 +0 -0
- package/dist/fonts/zh/900-26800.woff2 +0 -0
- package/dist/fonts/zh/900-26a00.woff2 +0 -0
- package/dist/fonts/zh/900-26c00.woff2 +0 -0
- package/dist/fonts/zh/900-27800.woff2 +0 -0
- package/dist/fonts/zh/900-27e00.woff2 +0 -0
- package/dist/fonts/zh/900-28400.woff2 +0 -0
- package/dist/fonts/zh/900-28600.woff2 +0 -0
- package/dist/fonts/zh/900-28a00.woff2 +0 -0
- package/dist/fonts/zh/900-28c00.woff2 +0 -0
- package/dist/fonts/zh/900-28e00.woff2 +0 -0
- package/dist/fonts/zh/900-29600.woff2 +0 -0
- package/dist/fonts/zh/900-29800.woff2 +0 -0
- package/dist/fonts/zh/900-29e00.woff2 +0 -0
- package/dist/fonts/zh/900-2a600.woff2 +0 -0
- package/dist/fonts/zh/900-2a800.woff2 +0 -0
- package/dist/fonts/zh/900-2aa00.woff2 +0 -0
- package/dist/fonts/zh/900-2ae00.woff2 +0 -0
- package/dist/fonts/zh/900-2b000.woff2 +0 -0
- package/dist/fonts/zh/900-2b200.woff2 +0 -0
- package/dist/fonts/zh/900-2b400.woff2 +0 -0
- package/dist/fonts/zh/900-2b600.woff2 +0 -0
- package/dist/fonts/zh/900-2b800.woff2 +0 -0
- package/dist/fonts/zh/900-2ba00.woff2 +0 -0
- package/dist/fonts/zh/900-2bc00.woff2 +0 -0
- package/dist/fonts/zh/900-2be00.woff2 +0 -0
- package/dist/fonts/zh/900-2c000.woff2 +0 -0
- package/dist/fonts/zh/900-2c200.woff2 +0 -0
- package/dist/fonts/zh/900-2c400.woff2 +0 -0
- package/dist/fonts/zh/900-2c600.woff2 +0 -0
- package/dist/fonts/zh/900-2c800.woff2 +0 -0
- package/dist/fonts/zh/900-2ca00.woff2 +0 -0
- package/dist/fonts/zh/900-2cc00.woff2 +0 -0
- package/dist/fonts/zh/900-2ce00.woff2 +0 -0
- package/dist/fonts/zh/900-2d400.woff2 +0 -0
- package/dist/fonts/zh/900-2e00.woff2 +0 -0
- package/dist/fonts/zh/900-2f800.woff2 +0 -0
- package/dist/fonts/zh/900-3000.woff2 +0 -0
- package/dist/fonts/zh/900-3200.woff2 +0 -0
- package/dist/fonts/zh/900-3400.woff2 +0 -0
- package/dist/fonts/zh/900-3600.woff2 +0 -0
- package/dist/fonts/zh/900-3800.woff2 +0 -0
- package/dist/fonts/zh/900-3a00.woff2 +0 -0
- package/dist/fonts/zh/900-3c00.woff2 +0 -0
- package/dist/fonts/zh/900-3e00.woff2 +0 -0
- package/dist/fonts/zh/900-4000.woff2 +0 -0
- package/dist/fonts/zh/900-4200.woff2 +0 -0
- package/dist/fonts/zh/900-4400.woff2 +0 -0
- package/dist/fonts/zh/900-4600.woff2 +0 -0
- package/dist/fonts/zh/900-4800.woff2 +0 -0
- package/dist/fonts/zh/900-4a00.woff2 +0 -0
- package/dist/fonts/zh/900-4c00.woff2 +0 -0
- package/dist/fonts/zh/900-4e00.woff2 +0 -0
- package/dist/fonts/zh/900-5000.woff2 +0 -0
- package/dist/fonts/zh/900-5200.woff2 +0 -0
- package/dist/fonts/zh/900-5400.woff2 +0 -0
- package/dist/fonts/zh/900-5600.woff2 +0 -0
- package/dist/fonts/zh/900-5800.woff2 +0 -0
- package/dist/fonts/zh/900-5a00.woff2 +0 -0
- package/dist/fonts/zh/900-5c00.woff2 +0 -0
- package/dist/fonts/zh/900-5e00.woff2 +0 -0
- package/dist/fonts/zh/900-6000.woff2 +0 -0
- package/dist/fonts/zh/900-6200.woff2 +0 -0
- package/dist/fonts/zh/900-6400.woff2 +0 -0
- package/dist/fonts/zh/900-6600.woff2 +0 -0
- package/dist/fonts/zh/900-6800.woff2 +0 -0
- package/dist/fonts/zh/900-6a00.woff2 +0 -0
- package/dist/fonts/zh/900-6c00.woff2 +0 -0
- package/dist/fonts/zh/900-6e00.woff2 +0 -0
- package/dist/fonts/zh/900-7000.woff2 +0 -0
- package/dist/fonts/zh/900-7200.woff2 +0 -0
- package/dist/fonts/zh/900-7400.woff2 +0 -0
- package/dist/fonts/zh/900-7600.woff2 +0 -0
- package/dist/fonts/zh/900-7800.woff2 +0 -0
- package/dist/fonts/zh/900-7a00.woff2 +0 -0
- package/dist/fonts/zh/900-7c00.woff2 +0 -0
- package/dist/fonts/zh/900-7e00.woff2 +0 -0
- package/dist/fonts/zh/900-8000.woff2 +0 -0
- package/dist/fonts/zh/900-8200.woff2 +0 -0
- package/dist/fonts/zh/900-8400.woff2 +0 -0
- package/dist/fonts/zh/900-8600.woff2 +0 -0
- package/dist/fonts/zh/900-8800.woff2 +0 -0
- package/dist/fonts/zh/900-8a00.woff2 +0 -0
- package/dist/fonts/zh/900-8c00.woff2 +0 -0
- package/dist/fonts/zh/900-8e00.woff2 +0 -0
- package/dist/fonts/zh/900-9000.woff2 +0 -0
- package/dist/fonts/zh/900-9200.woff2 +0 -0
- package/dist/fonts/zh/900-9400.woff2 +0 -0
- package/dist/fonts/zh/900-9600.woff2 +0 -0
- package/dist/fonts/zh/900-9800.woff2 +0 -0
- package/dist/fonts/zh/900-9a00.woff2 +0 -0
- package/dist/fonts/zh/900-9c00.woff2 +0 -0
- package/dist/fonts/zh/900-9e00.woff2 +0 -0
- package/dist/fonts/zh/900-f800.woff2 +0 -0
- package/dist/fonts/zh/900-fa00.woff2 +0 -0
- package/dist/fonts/zh/900-fe00.woff2 +0 -0
- package/dist/fonts/zh/OFL.txt +98 -0
- package/dist/fonts/zh/font-faces.css +4176 -0
- package/dist/fonts/zh/manifest.json +3728 -0
- package/dist/fonts.css +1 -1
- package/dist/icon-paths.d.ts +247 -0
- package/dist/icon-paths.js +2 -0
- package/dist/index.d.ts +353 -1941
- package/dist/index.js +839 -9147
- package/dist/liquid-effects.d.ts +350 -0
- package/dist/liquid-effects.js +1318 -0
- package/dist/liquid-presence.css +1 -1
- package/dist/liquid-presence.d.ts +15 -3
- package/dist/liquid-presence.js +694 -662
- package/dist/paths-B7D0h7Mh.js +255 -0
- package/dist/preview.css +1 -1
- package/dist/preview.d.ts +24 -0
- package/dist/preview.js +1993 -0
- package/dist/reducedMotion-B8kv-v64.js +473 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +5 -3
- package/donors-individual.md +21 -2
- package/package.json +25 -9
- package/bin/swimmer-ui-assets.mjs +0 -83
- package/dist/assets/game/ui/clay/asset-manifest.json +0 -2823
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-blue-large-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-blue-large-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-brown-large-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-brown-large-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-green-large-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-green-large-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-purple-large-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-purple-large-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-red-large-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/buttons/button-red-large-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/catalog/common-icons-contact-sheet-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/catalog/component-candidates-contact-sheet-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/catalog/function-icons-contact-sheet-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/catalog/phase03-clay-ui-catalog.json +0 -3476
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/alert-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/bar-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/best-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/check-off-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/check-on-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/count-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/direction-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/gauge-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/hot-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/label-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/label-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/loading-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/mission-badge-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/new-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/page-arrow-next-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/page-arrow-prev-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/pagenavigation-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/radiobtn-off-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/radiobtn-on-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/ribbon-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/ribbon-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/slidebar-dim-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/stage-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/switch-off-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/switch-on-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/tab-n-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/tab-s-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/top-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/common/user-info-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/language/button-close-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/language/check-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/language/language-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/popup/popup-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/btn-blue-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/btn-brown-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/btn-brown-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/btn-facebook-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/btn-green-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/button-close-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/common-popup-title-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/language-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/radio-btn-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/slidebar-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/switch-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/settings/switch-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/components/stage-lock/stage-lock-badge-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/checkbox-checked-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/anvil-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/arrow-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/bomb-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/candle-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/chicken-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/crown-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/energy-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/envelope-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/gem-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/gift-blue-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/gift-red-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/gold-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/hammer-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/horner-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/horseshoes-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/key-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/laurel-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/letter-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/lock-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/lucky-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/medal-bronze-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/medal-gold-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/medal-silver-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/mission-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/pickax-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/poition-red-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/poiton-purple-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/purplegem-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/sandglass-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/scroll-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/setting-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/shield-a-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/shield-b-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/shield-c-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/shield-d-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/shop-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/skull-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/soulgem-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/sword-a-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/sword-b-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/talaria-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/target-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/timer-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/treasure-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/common/trophy-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/account-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/add-friend-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/add-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/align-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/alram-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/appstore-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/arrow-down-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/arrow-next-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/arrow-prev-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/arrow-up-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/arrow-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/asterisk-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/attachment-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/ax-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/back-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bad-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/badge-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bank-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/basket-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/battle-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bin-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/binoculars-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bitcoin-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/block-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bluetooth-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bomb-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/book-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bookmark-add-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bookmark-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bottom-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/brain-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bug-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/bulb-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/calendar-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/call-reject-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/call-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/camera-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/cancel-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/card-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/cart-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/category-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/chat-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/check-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/cloud-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/cny-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/coffee-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/compass-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/confirm-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/contact-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/control-next-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/control-pause-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/control-play-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/control-prev-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/control-stop-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/control-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/copy-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/coupon-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/crop-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/crown-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/defense-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/delete-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/dislike-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/document-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/dollar-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/down-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/download-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/dynamite-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/earth-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/eat-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/emoji-good-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/emoji-soso-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/energy-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/exit-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/expand-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/export-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/facebook-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/feather-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/filter-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/fingerprint-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/fire-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/firm-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/fix-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/flag-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/flask-01-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/flask-02-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/flask-03-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/folder-open-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/folder-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/game-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/gem-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/gender-fale-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/gender-female-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/gift-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/globe-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/gmail-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/gold-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/googleplay-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/graduation-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/graph-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/hammer-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/hand-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/hashtag-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/headset-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/heart-empty-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/heart-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/helmet-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/hide-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/home-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/key-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/knowledge-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/left-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/like-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/link-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/list-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/location-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/lock-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/magnetic-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mail-read-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mail-unread-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/map-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mark-caution-1-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mark-caution-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mark-info-1-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mark-info-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mark-question-1-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mark-question-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/medal-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/media-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/megaphone-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/menu-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/message-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/minus-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/mobile-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/money-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/more-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/music-1-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/music-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/newpaper-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/next-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/notification-off-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/notification-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/paper-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/pc-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/pen-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/pencil-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/percent-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/photo-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/pick-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/piechart-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/pinterest-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/pinwheel-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/planet-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/player-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/plus-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/preferense-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/prev-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/printer-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/quit-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/random-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/ranking-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/record-off-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/record-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/refresh-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/reload-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/remove-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/reset-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/right-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/ring-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/safe-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/sandglass-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/scan-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/screwdriver-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/search-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/send-1-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/send-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/service-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/setting-1-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/setting-2-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/share-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/shop-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/shopping-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/show-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/sign-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/siren-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/skull-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/skype-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/sort-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/sparkle-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/speedmeter-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/star-circle-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/star-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/stopwatch-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/support-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/sword-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/tag-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/target-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/tent-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/text-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/thumbnails-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/thunder-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/time-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/toolbox-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/top-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/treasure-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/trophy-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/twitter-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/ufo-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/unlock-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/up-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/upload-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/user-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/video-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/volume-mute-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/volume-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/wallet-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/warning-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/water-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/wifi-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/youtube-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/zoom-in-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/function/zoom-out-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-add-friend-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-card-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-check-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-game-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-refresh-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-target-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/icons/icon-user-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-entered-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-entered-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-error-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-error-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-required-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-required-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-typing-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/inputs/input-typing-v2.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/panels/popup-frame-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/panels/settings-frame-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/screens/00_title-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/screens/01_login-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/screens/03_stage-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/screens/04_stageready-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/screens/05_complete-v1.png +0 -0
- package/dist/assets/game/ui/clay/phase03-clay-kit/screens/06_lose-v1.png +0 -0
- package/dist/liquidGooeySpring-r7c1S2ZB.js +0 -461
|
@@ -0,0 +1,1318 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as e, c as t, f as n, n as r, o as i, r as a, s as o } from "./LiquidGroup-BXw1tv9H.js";
|
|
3
|
+
import { l as s, v as c, x as l, y as u } from "./reducedMotion-B8kv-v64.js";
|
|
4
|
+
import { createContext as d, forwardRef as f, useCallback as p, useContext as m, useEffect as h, useId as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
5
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
6
|
+
//#region src/liquid-effects/melt/options.ts
|
|
7
|
+
var w = {
|
|
8
|
+
blur: 7,
|
|
9
|
+
contrast: 40,
|
|
10
|
+
reach: .8,
|
|
11
|
+
fade: 17,
|
|
12
|
+
warp: 0,
|
|
13
|
+
mix: 1,
|
|
14
|
+
mixBlur: 8,
|
|
15
|
+
gravity: 1.9,
|
|
16
|
+
waviness: 12
|
|
17
|
+
}, T = {
|
|
18
|
+
blur: 8,
|
|
19
|
+
warp: 26,
|
|
20
|
+
pull: 4,
|
|
21
|
+
range: 49,
|
|
22
|
+
zone: 18,
|
|
23
|
+
mix: .7,
|
|
24
|
+
gravity: 60,
|
|
25
|
+
taper: 1,
|
|
26
|
+
warpFreq: 1.7,
|
|
27
|
+
flowSpeed: 22,
|
|
28
|
+
warpStyle: "fractalNoise",
|
|
29
|
+
detail: 2,
|
|
30
|
+
active: !0,
|
|
31
|
+
releaseMs: 110,
|
|
32
|
+
fadeMs: 110,
|
|
33
|
+
strength: 1,
|
|
34
|
+
sink: .8,
|
|
35
|
+
seamBlur: 12.8
|
|
36
|
+
};
|
|
37
|
+
function E(e, t = 0, n = 1) {
|
|
38
|
+
return Math.min(n, Math.max(t, e));
|
|
39
|
+
}
|
|
40
|
+
function D(e, t) {
|
|
41
|
+
return e !== void 0 && Number.isFinite(e) ? e : t;
|
|
42
|
+
}
|
|
43
|
+
function O(e, t, r) {
|
|
44
|
+
let i = e?.ownerDocument.defaultView;
|
|
45
|
+
if (!i) return r;
|
|
46
|
+
let a = n[t], o = /^var\((--[\w-]+)\)$/.exec(a)?.[1];
|
|
47
|
+
if (!o) return r;
|
|
48
|
+
let s = Number.parseFloat(i.getComputedStyle(e).getPropertyValue(o));
|
|
49
|
+
return Number.isFinite(s) ? s : r;
|
|
50
|
+
}
|
|
51
|
+
function k(e, t = {}) {
|
|
52
|
+
let n = (n, r) => D(t[n], O(e, r, w[n]));
|
|
53
|
+
return {
|
|
54
|
+
blur: Math.max(0, n("blur", "meltBlur")),
|
|
55
|
+
contrast: Math.max(1, n("contrast", "meltContrast")),
|
|
56
|
+
reach: Math.max(0, n("reach", "meltReach")),
|
|
57
|
+
fade: Math.max(0, n("fade", "meltFade")),
|
|
58
|
+
warp: Math.max(0, n("warp", "meltWarp")),
|
|
59
|
+
mix: E(n("mix", "meltMix")),
|
|
60
|
+
mixBlur: Math.max(0, n("mixBlur", "meltMixBlur")),
|
|
61
|
+
gravity: Math.max(0, n("gravity", "meltGravity")),
|
|
62
|
+
waviness: Math.max(0, n("waviness", "meltWaviness"))
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function A(e, t) {
|
|
66
|
+
let n = typeof t == "object" && t ? t : {}, r = (t, r, i) => {
|
|
67
|
+
let a = n[t];
|
|
68
|
+
return D(typeof a == "number" ? a : void 0, O(e, r, i));
|
|
69
|
+
}, i = E(typeof t == "number" ? t : r("strength", "dissolveStrength", T.strength));
|
|
70
|
+
return {
|
|
71
|
+
blur: Math.max(0, r("blur", "dissolveBlur", T.blur)),
|
|
72
|
+
warp: Math.max(0, r("warp", "dissolveWarp", T.warp)),
|
|
73
|
+
pull: Math.max(0, r("pull", "dissolvePull", T.pull)),
|
|
74
|
+
range: Math.max(1, r("range", "dissolveRange", T.range)),
|
|
75
|
+
zone: Math.max(1, r("zone", "dissolveZone", T.zone)),
|
|
76
|
+
mix: E(r("mix", "dissolveMix", T.mix)),
|
|
77
|
+
gravity: Math.max(0, r("gravity", "dissolveGravity", T.gravity)),
|
|
78
|
+
taper: E(r("taper", "dissolveTaper", T.taper)),
|
|
79
|
+
warpFreq: Math.max(.2, r("warpFreq", "dissolveWarpFreq", T.warpFreq)),
|
|
80
|
+
flowSpeed: Math.max(0, r("flowSpeed", "dissolveFlowSpeed", T.flowSpeed)),
|
|
81
|
+
warpStyle: n.warpStyle ?? T.warpStyle,
|
|
82
|
+
detail: Math.max(1, Math.round(r("detail", "dissolveDetail", T.detail))),
|
|
83
|
+
active: n.active ?? T.active,
|
|
84
|
+
releaseMs: Math.max(40, r("releaseMs", "dissolveReleaseMs", T.releaseMs)),
|
|
85
|
+
fadeMs: Math.max(40, r("fadeMs", "dissolveFadeMs", T.fadeMs)),
|
|
86
|
+
strength: i,
|
|
87
|
+
sink: Math.max(.01, r("sink", "dissolveSink", T.sink)),
|
|
88
|
+
seamBlur: Math.max(0, r("seamBlur", "dissolveSeamBlur", T.seamBlur))
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/liquid-effects/melt/registry.ts
|
|
93
|
+
function j(e) {
|
|
94
|
+
return e ? e instanceof HTMLImageElement ? e : e.querySelector("img") : null;
|
|
95
|
+
}
|
|
96
|
+
function M(e) {
|
|
97
|
+
return e && (e.currentSrc || e.src) || null;
|
|
98
|
+
}
|
|
99
|
+
function N(e) {
|
|
100
|
+
return {
|
|
101
|
+
maskImage: e.style.getPropertyValue("mask-image"),
|
|
102
|
+
maskPriority: e.style.getPropertyPriority("mask-image"),
|
|
103
|
+
webkitMaskImage: e.style.getPropertyValue("-webkit-mask-image"),
|
|
104
|
+
webkitMaskPriority: e.style.getPropertyPriority("-webkit-mask-image")
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function P(e) {
|
|
108
|
+
let t = e.image, n = e.previousMask;
|
|
109
|
+
!t || !n || (n.maskImage ? t.style.setProperty("mask-image", n.maskImage, n.maskPriority) : t.style.removeProperty("mask-image"), n.webkitMaskImage ? t.style.setProperty("-webkit-mask-image", n.webkitMaskImage, n.webkitMaskPriority) : t.style.removeProperty("-webkit-mask-image"));
|
|
110
|
+
}
|
|
111
|
+
function F() {
|
|
112
|
+
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = 0, i = () => n.forEach((e) => e());
|
|
113
|
+
return {
|
|
114
|
+
registerMelt(t) {
|
|
115
|
+
let n = {
|
|
116
|
+
...t,
|
|
117
|
+
id: `image-melt-${++r}`,
|
|
118
|
+
painted: !1,
|
|
119
|
+
previousOpacity: t.target.style.opacity
|
|
120
|
+
};
|
|
121
|
+
return e.add(n), i(), () => {
|
|
122
|
+
n.target.style.opacity = n.previousOpacity, n.painted = !1, e.delete(n), i();
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
registerDissolve(e) {
|
|
126
|
+
let n = {
|
|
127
|
+
...e,
|
|
128
|
+
id: `dissolve-${++r}`,
|
|
129
|
+
previousMask: e.image ? N(e.image) : null
|
|
130
|
+
};
|
|
131
|
+
return t.add(n), i(), {
|
|
132
|
+
update(e) {
|
|
133
|
+
let t = j(n.el);
|
|
134
|
+
t !== n.image && (P(n), n.image = t, n.previousMask = t ? N(t) : null), n.opts = A(n.el, e), i();
|
|
135
|
+
},
|
|
136
|
+
unregister() {
|
|
137
|
+
P(n), t.delete(n), i();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
subscribe(e) {
|
|
142
|
+
return n.add(e), () => n.delete(e);
|
|
143
|
+
},
|
|
144
|
+
entries: () => [...e],
|
|
145
|
+
dissolveEntries: () => [...t]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function I(e, t, n) {
|
|
149
|
+
let r = j(t);
|
|
150
|
+
return r || console.warn("[swimmer-ui] `dissolve` needs an <img> inside the item; text and other DOM content stay unchanged."), e.registerDissolve({
|
|
151
|
+
el: t,
|
|
152
|
+
image: r,
|
|
153
|
+
opts: A(t, n)
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/liquid-effects/melt/types.ts
|
|
158
|
+
var L = {
|
|
159
|
+
width: 0,
|
|
160
|
+
height: 0,
|
|
161
|
+
melt: null,
|
|
162
|
+
dissolves: []
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/liquid-effects/melt/geometry.ts
|
|
166
|
+
function R(e, t = 2) {
|
|
167
|
+
let n = 10 ** t;
|
|
168
|
+
return Math.round(e * n) / n;
|
|
169
|
+
}
|
|
170
|
+
function z(e) {
|
|
171
|
+
let t = E(e);
|
|
172
|
+
return t * t * (3 - 2 * t);
|
|
173
|
+
}
|
|
174
|
+
function B(e, t) {
|
|
175
|
+
let n = Math.max(t.x - (e.x + e.w), e.x - (t.x + t.w), 0), r = Math.max(t.y - (e.y + e.h), e.y - (t.y + t.h), 0);
|
|
176
|
+
return Math.hypot(n, r);
|
|
177
|
+
}
|
|
178
|
+
function V(e, t) {
|
|
179
|
+
return {
|
|
180
|
+
x: e.x + e.w < t.x ? (e.x + e.w + t.x) / 2 : t.x + t.w < e.x ? (t.x + t.w + e.x) / 2 : (Math.max(e.x, t.x) + Math.min(e.x + e.w, t.x + t.w)) / 2,
|
|
181
|
+
y: e.y + e.h < t.y ? (e.y + e.h + t.y) / 2 : t.y + t.h < e.y ? (t.y + t.h + e.y) / 2 : (Math.max(e.y, t.y) + Math.min(e.y + e.h, t.y + t.h)) / 2
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function H(e, t, n) {
|
|
185
|
+
let r = e.ownerDocument.defaultView?.getComputedStyle(e).borderTopLeftRadius ?? "";
|
|
186
|
+
return Math.max(0, Math.min(Number.parseFloat(r) || 0, t / 2, n / 2));
|
|
187
|
+
}
|
|
188
|
+
function U(e) {
|
|
189
|
+
return e.getBoundingClientRect();
|
|
190
|
+
}
|
|
191
|
+
function W(e, t) {
|
|
192
|
+
let n = e.getBoundingClientRect();
|
|
193
|
+
return {
|
|
194
|
+
x: n.left - t.left,
|
|
195
|
+
y: n.top - t.top,
|
|
196
|
+
w: n.width,
|
|
197
|
+
h: n.height
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function G(e, t) {
|
|
201
|
+
let n = W(e, t);
|
|
202
|
+
return {
|
|
203
|
+
...n,
|
|
204
|
+
r: H(e, n.w, n.h)
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function K(e) {
|
|
208
|
+
return `${R(e.x)}:${R(e.y)}:${R(e.w)}:${R(e.h)}`;
|
|
209
|
+
}
|
|
210
|
+
function q(e, t, n) {
|
|
211
|
+
let r = Math.max(1, e.offsetWidth || e.getBoundingClientRect().width), i = Math.max(1, e.offsetHeight || e.getBoundingClientRect().height), a = t ? Math.max(24, t.blur * 3, t.fade * 2, t.warp + t.waviness, t.mixBlur * 2, t.gravity * .5) : 0, o = n ? Math.max(24, n.blur * 3, n.warp + n.zone, n.gravity * .5, n.seamBlur * 3) : 0, s = Math.ceil(Math.max(a, o, 24));
|
|
212
|
+
return (r + s * 2) * (i + s * 2);
|
|
213
|
+
}
|
|
214
|
+
function J(e) {
|
|
215
|
+
let t = e[0]?.opts;
|
|
216
|
+
return t ? e.slice(1).reduce((e, t) => ({
|
|
217
|
+
...e,
|
|
218
|
+
blur: Math.max(e.blur, t.opts.blur),
|
|
219
|
+
warp: Math.max(e.warp, t.opts.warp),
|
|
220
|
+
zone: Math.max(e.zone, t.opts.zone),
|
|
221
|
+
gravity: Math.max(e.gravity, t.opts.gravity),
|
|
222
|
+
seamBlur: Math.max(e.seamBlur, t.opts.seamBlur)
|
|
223
|
+
}), { ...t }) : null;
|
|
224
|
+
}
|
|
225
|
+
function ee(e, t, n, r, i, a, o, s, c) {
|
|
226
|
+
let l = Math.atan2(r, n) * 180 / Math.PI, u = Math.max(0, (s - 1) * Math.max(8, 2 * i)), d = Math.min(2.2, (Math.max(0, o) + u) / Math.max(8, 2 * i)) * (.5 + c), f = 1 + d, p = 1 / (1 + d * .35), m = e - n * (i + a), h = t - r * (i + a);
|
|
227
|
+
return `translate(${R(m)} ${R(h)}) rotate(${R(l)}) scale(${R(f, 3)} ${R(p, 3)}) rotate(${-R(l)}) translate(${R(-m)} ${R(-h)})`;
|
|
228
|
+
}
|
|
229
|
+
function te(e, t, n, r, i, a) {
|
|
230
|
+
let o = t - e.x, s = n - e.y;
|
|
231
|
+
if (Math.hypot(Math.max(e.x - t, t - (e.x + e.w), 0), Math.max(e.y - n, n - (e.y + e.h), 0)) > r + 2) return null;
|
|
232
|
+
let c = Math.min(e.w, e.h) / 2, l = Math.min(Math.max(r, a * .75), c), u = R(Math.max(0, 1 - Math.min(i, a) * 2.2), 2), d = R((1 + 2 * u) / 3, 2), f = Math.max(Math.hypot(o, s), Math.hypot(o - e.w, s), Math.hypot(o, s - e.h), Math.hypot(o - e.w, s - e.h)) + 2;
|
|
233
|
+
return `radial-gradient(circle at ${R(o)}px ${R(s)}px, rgba(255,255,255,${u}) ${R(l * .2)}px, rgba(255,255,255,${d}) ${R(l * .45)}px, #fff ${R(l * .78)}px, #fff ${R(f)}px)`;
|
|
234
|
+
}
|
|
235
|
+
function ne(e) {
|
|
236
|
+
if (e < .002) return "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1";
|
|
237
|
+
let t = R(1 + 4 * e, 3);
|
|
238
|
+
return `0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${t} 0 0 0 ${R(1 - t * (.38 + .12 * e), 3)}`;
|
|
239
|
+
}
|
|
240
|
+
function Y(e) {
|
|
241
|
+
return e.replace(/[^a-zA-Z0-9_-]/g, "");
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/liquid-effects/melt/runtime.ts
|
|
245
|
+
var re = class {
|
|
246
|
+
registry;
|
|
247
|
+
getGroup;
|
|
248
|
+
onState;
|
|
249
|
+
motions = /* @__PURE__ */ new Map();
|
|
250
|
+
observed = /* @__PURE__ */ new Set();
|
|
251
|
+
removeListeners = [];
|
|
252
|
+
resizeObserver = null;
|
|
253
|
+
mutationObserver = null;
|
|
254
|
+
awake = !1;
|
|
255
|
+
raf = 0;
|
|
256
|
+
disposed = !1;
|
|
257
|
+
lastNow = 0;
|
|
258
|
+
lastActivity = 0;
|
|
259
|
+
lastStateKey = "";
|
|
260
|
+
meltProximity = 0;
|
|
261
|
+
meltPairKey = "";
|
|
262
|
+
claimed = !1;
|
|
263
|
+
budgetWarningEmitted = !1;
|
|
264
|
+
constructor(e) {
|
|
265
|
+
this.registry = e.registry, this.getGroup = e.getGroup, this.onState = e.onState;
|
|
266
|
+
}
|
|
267
|
+
invalidate = () => {
|
|
268
|
+
this.disposed || (this.lastActivity = this.now(), this.ensureObservers(), this.wake());
|
|
269
|
+
};
|
|
270
|
+
wake() {
|
|
271
|
+
this.disposed || this.awake || this.registry.entries().length === 0 && this.registry.dissolveEntries().length === 0 || (this.awake = !0, this.raf = requestAnimationFrame(this.loop));
|
|
272
|
+
}
|
|
273
|
+
dispose() {
|
|
274
|
+
if (!this.disposed) {
|
|
275
|
+
this.disposed = !0, this.raf && cancelAnimationFrame(this.raf), this.raf = 0, this.awake = !1, this.resizeObserver?.disconnect(), this.mutationObserver?.disconnect(), this.removeListeners.forEach((e) => e()), this.removeListeners.length = 0;
|
|
276
|
+
for (let e of this.registry.entries()) this.setMeltPainted(e, !1);
|
|
277
|
+
for (let e of this.registry.dissolveEntries()) P(e);
|
|
278
|
+
this.releaseClaim(), this.observed.clear();
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
now() {
|
|
282
|
+
return performance.now();
|
|
283
|
+
}
|
|
284
|
+
ensureObservers() {
|
|
285
|
+
let e = this.getGroup();
|
|
286
|
+
if (!e) return;
|
|
287
|
+
!this.resizeObserver && typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(() => this.invalidate()), this.resizeObserver.observe(e));
|
|
288
|
+
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
289
|
+
e && (t.add(e), this.observed.has(e) || this.resizeObserver?.observe(e));
|
|
290
|
+
};
|
|
291
|
+
for (let e of this.registry.entries()) n(e.el), n(e.target), n(j(e.target));
|
|
292
|
+
for (let e of this.registry.dissolveEntries()) n(e.el), n(e.image);
|
|
293
|
+
for (let e of this.observed) t.has(e) || this.resizeObserver?.unobserve(e);
|
|
294
|
+
this.observed.clear(), t.forEach((e) => this.observed.add(e)), !this.mutationObserver && typeof MutationObserver < "u" && (this.mutationObserver = new MutationObserver((e) => {
|
|
295
|
+
e.some((e) => e.attributeName === "src" || !this.isOwnMutation(e.target)) && this.invalidate();
|
|
296
|
+
}), this.mutationObserver.observe(e, {
|
|
297
|
+
attributes: !0,
|
|
298
|
+
attributeFilter: [
|
|
299
|
+
"class",
|
|
300
|
+
"style",
|
|
301
|
+
"src"
|
|
302
|
+
],
|
|
303
|
+
childList: !0,
|
|
304
|
+
subtree: !0
|
|
305
|
+
}));
|
|
306
|
+
let r = e.ownerDocument.defaultView;
|
|
307
|
+
if (r && this.removeListeners.length === 0) {
|
|
308
|
+
let t = () => this.invalidate();
|
|
309
|
+
r.addEventListener("scroll", t, {
|
|
310
|
+
capture: !0,
|
|
311
|
+
passive: !0
|
|
312
|
+
}), this.removeListeners.push(() => r.removeEventListener("scroll", t, !0));
|
|
313
|
+
for (let n of [
|
|
314
|
+
"transitionrun",
|
|
315
|
+
"animationstart",
|
|
316
|
+
"pointerdown"
|
|
317
|
+
]) e.addEventListener(n, t, !0), this.removeListeners.push(() => e.removeEventListener(n, t, !0));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
isOwnMutation(e) {
|
|
321
|
+
return e instanceof Element && !!(e.closest("[data-liquid-gooey-image-melt]") || e instanceof HTMLImageElement && this.registry.dissolveEntries().some((t) => t.image === e) || this.registry.entries().some((t) => t.target === e));
|
|
322
|
+
}
|
|
323
|
+
setMeltPainted(e, t) {
|
|
324
|
+
e.painted !== t && (e.painted = t, e.target.style.opacity = t ? "0" : e.previousOpacity);
|
|
325
|
+
}
|
|
326
|
+
releaseClaim() {
|
|
327
|
+
this.claimed &&= (u(), !1);
|
|
328
|
+
}
|
|
329
|
+
ensureClaim(e, t, n) {
|
|
330
|
+
if (this.claimed) return !0;
|
|
331
|
+
if (!l(q(e, t, n))) {
|
|
332
|
+
if (!this.budgetWarningEmitted) {
|
|
333
|
+
this.budgetWarningEmitted = !0;
|
|
334
|
+
let e = c(), t = e.activeGroups >= e.maxAnimatedGroups ? "the active-group limit is reached" : "the filter-area limit is exceeded";
|
|
335
|
+
console.warn(`LiquidGroup: the Melt/dissolve image filter budget is insufficient (${t}); degrading to crisp imagery for this group.`);
|
|
336
|
+
}
|
|
337
|
+
return !1;
|
|
338
|
+
}
|
|
339
|
+
return this.claimed = !0, !0;
|
|
340
|
+
}
|
|
341
|
+
loop = (e) => {
|
|
342
|
+
if (this.raf = 0, this.disposed) return;
|
|
343
|
+
let t = this.registry.entries(), n = this.registry.dissolveEntries();
|
|
344
|
+
if (t.length === 0 && n.length === 0) {
|
|
345
|
+
this.awake = !1, this.lastNow = 0, this.lastActivity = 0, this.meltPairKey = "", this.meltProximity = 0, this.lastStateKey && (this.lastStateKey = "", this.onState(L)), this.releaseClaim();
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
let r = this.getGroup();
|
|
349
|
+
if (!r) {
|
|
350
|
+
this.raf = requestAnimationFrame(this.loop);
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
let i = this.lastNow ? Math.min(.25, Math.max(1 / 240, (e - this.lastNow) / 1e3)) : 1 / 60;
|
|
354
|
+
this.lastNow = e;
|
|
355
|
+
let a = U(r), o = /* @__PURE__ */ new Map();
|
|
356
|
+
for (let e of r.querySelectorAll(".game-ui-liquid-item")) e.closest(".game-ui-liquid-group") === r && o.set(e, W(e, a));
|
|
357
|
+
let s = t.slice(0, 2), c = s.map((e) => {
|
|
358
|
+
let t = o.get(e.el) ?? W(e.el, a), n = M(j(e.target));
|
|
359
|
+
return n && (e.src = n), {
|
|
360
|
+
...t,
|
|
361
|
+
r: H(e.target, t.w, t.h)
|
|
362
|
+
};
|
|
363
|
+
}), l = s.length === 2 && c.every((e) => e.w > 0 && e.h > 0), u = l ? s[0]?.opts ?? null : null, d = l ? `${s[0]?.id}|${s[1]?.id}` : "";
|
|
364
|
+
d !== this.meltPairKey && (this.meltPairKey = d, this.meltProximity = 0);
|
|
365
|
+
let f = l && c[0] && c[1] ? z(1 - B(c[0], c[1]) / Math.max(8, u.blur * 2.6)) : 0;
|
|
366
|
+
this.meltProximity += (f - this.meltProximity) * (1 - Math.exp(-14 * i)), Math.abs(this.meltProximity - f) < .004 && (this.meltProximity = f);
|
|
367
|
+
let p = this.computeDissolves(n, o, a, i), m = l, h = p.visuals.length > 0, g = m || h, _ = J(n);
|
|
368
|
+
if (g && !this.ensureClaim(r, u, _)) {
|
|
369
|
+
for (let e of t) this.setMeltPainted(e, !1);
|
|
370
|
+
for (let e of n) P(e);
|
|
371
|
+
this.onState(L), this.lastStateKey = "", this.awake = !1, this.lastNow = 0;
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
if (m) for (let [e, n] of t.entries()) this.setMeltPainted(n, e < 2);
|
|
375
|
+
else {
|
|
376
|
+
for (let e of t) this.setMeltPainted(e, !1);
|
|
377
|
+
this.releaseClaim();
|
|
378
|
+
}
|
|
379
|
+
let v = {
|
|
380
|
+
width: Math.max(1, Math.round(r.offsetWidth || a.width)),
|
|
381
|
+
height: Math.max(1, Math.round(r.offsetHeight || a.height)),
|
|
382
|
+
melt: m && c[0] && c[1] && s[0] && s[1] ? {
|
|
383
|
+
a: c[0],
|
|
384
|
+
b: c[1],
|
|
385
|
+
srcA: s[0].src,
|
|
386
|
+
srcB: s[1].src,
|
|
387
|
+
opts: s[0].opts,
|
|
388
|
+
prox: E(this.meltProximity)
|
|
389
|
+
} : null,
|
|
390
|
+
dissolves: p.visuals
|
|
391
|
+
}, y = this.renderStateKey(v), b = y !== this.lastStateKey;
|
|
392
|
+
b && (this.lastStateKey = y, this.onState(v), this.lastActivity = e), b || p.pending || e - this.lastActivity < 500 ? (this.awake = !0, this.raf = requestAnimationFrame(this.loop)) : (this.awake = !1, this.lastNow = 0);
|
|
393
|
+
};
|
|
394
|
+
renderStateKey(e) {
|
|
395
|
+
let t = e.melt ? `${e.melt.srcA}|${e.melt.srcB}|${K(e.melt.a)}|${K(e.melt.b)}|${R(e.melt.prox, 3)}` : "", n = e.dissolves.map((e) => `${e.id}|${e.src}|${e.neighborSrc ?? ""}|${K(e.image)}|${R(e.cx)}|${R(e.cy)}|${R(e.d, 2)}|${R(e.opacity, 3)}|${R(e.phase, 3)}|${e.mask ?? ""}`).join(";");
|
|
396
|
+
return `${e.width}x${e.height}|${t}|${n}`;
|
|
397
|
+
}
|
|
398
|
+
computeDissolves(e, t, n, r) {
|
|
399
|
+
let i = [], a = !1, o = [...t.entries()];
|
|
400
|
+
for (let s of e) {
|
|
401
|
+
let e = t.get(s.el), c = s.image;
|
|
402
|
+
if (!e || !c) {
|
|
403
|
+
s.image && P(s);
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
let l = this.motions.get(s.id) ?? {
|
|
407
|
+
fade: 0,
|
|
408
|
+
release: null,
|
|
409
|
+
opacity: 1,
|
|
410
|
+
phase: 0,
|
|
411
|
+
previous: null,
|
|
412
|
+
contact: null,
|
|
413
|
+
axis: null
|
|
414
|
+
};
|
|
415
|
+
this.motions.set(s.id, l);
|
|
416
|
+
let u = Infinity, d = null, f = null;
|
|
417
|
+
for (let [t, n] of o) {
|
|
418
|
+
if (t === s.el) continue;
|
|
419
|
+
let r = B(e, n);
|
|
420
|
+
r < u && (u = r, d = n, f = t);
|
|
421
|
+
}
|
|
422
|
+
let p = 0, m = 0;
|
|
423
|
+
if (d && u === 0) {
|
|
424
|
+
let t = Math.min(e.x + e.w, d.x + d.w) - Math.max(e.x, d.x), n = Math.min(e.y + e.h, d.y + d.h) - Math.max(e.y, d.y), r = Math.max(1, Math.min(e.w, e.h, d.w, d.h));
|
|
425
|
+
p = Math.max(0, Math.min(t, n)) / r, m = Math.max(0, Math.max(t, n));
|
|
426
|
+
}
|
|
427
|
+
let h = 0;
|
|
428
|
+
if (d && u < s.opts.range && s.opts.active) {
|
|
429
|
+
let e = z((1 - u / s.opts.range) / .65), t = z((p - s.opts.sink * .2) / Math.max(.01, s.opts.sink * .8));
|
|
430
|
+
h = e ** 1.25 * s.opts.strength * (1 - t);
|
|
431
|
+
}
|
|
432
|
+
if (h >= l.fade) l.fade += (h - l.fade) * Math.min(1, r * 16), l.release = null;
|
|
433
|
+
else if (h > .02) l.fade += (h - l.fade) * Math.min(1, r * 6), l.release = null;
|
|
434
|
+
else if (l.fade > .001 || l.release) {
|
|
435
|
+
l.release ||= {
|
|
436
|
+
from: l.fade,
|
|
437
|
+
elapsed: 0
|
|
438
|
+
}, l.release.elapsed += r * 1e3;
|
|
439
|
+
let e = Math.max(s.opts.releaseMs, s.opts.fadeMs), t = Math.min(1, l.release.elapsed / e);
|
|
440
|
+
l.fade = l.release.from * (1 - t) ** 2;
|
|
441
|
+
} else l.fade = 0;
|
|
442
|
+
if (l.fade <= .001) {
|
|
443
|
+
l.fade = 0, P(s);
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
let g = d ?? l.contact;
|
|
447
|
+
if (!g) continue;
|
|
448
|
+
let _ = V(e, g);
|
|
449
|
+
l.contact = { ...g };
|
|
450
|
+
let v = z(l.release ? l.release.from * (.55 + .45 * (1 - Math.min(1, l.release.elapsed / Math.max(40, s.opts.fadeMs)))) : l.fade), y = l.release ? Math.min(1, l.release.elapsed / Math.max(40, s.opts.fadeMs)) : 0;
|
|
451
|
+
l.opacity = l.release ? (1 - y) ** 2 : l.opacity + (1 - l.opacity) * Math.min(1, r * 16);
|
|
452
|
+
let b = Math.min(Math.min(e.w, e.h) * .9, s.opts.zone * (.7 + .6 * v)), x = l.previous, S = x ? Math.hypot(e.x - x.x, e.y - x.y) / Math.max(.001, r) : 0;
|
|
453
|
+
l.previous = {
|
|
454
|
+
x: e.x,
|
|
455
|
+
y: e.y
|
|
456
|
+
}, l.phase += Math.min(r, 1 / 24) * s.opts.flowSpeed * .12 * Math.min(1, S / 40);
|
|
457
|
+
let C = (g.x + g.w / 2 - _.x) / Math.max(.001, Math.hypot(g.x + g.w / 2 - _.x, g.y + g.h / 2 - _.y)), w = (g.y + g.h / 2 - _.y) / Math.max(.001, Math.hypot(g.x + g.w / 2 - _.x, g.y + g.h / 2 - _.y)), T = 1 + Math.min(1.8, u / Math.max(8, 2 * b)), E = G(c, n), D = d && u < Math.max(10, s.opts.blur * 2.5) ? z(1 - u / Math.max(10, s.opts.blur * 2.5)) : l.fade, O = te(E, _.x, _.y, b, l.fade, Math.max(D, m * .75));
|
|
458
|
+
O ? (c.style.setProperty("mask-image", O), c.style.setProperty("-webkit-mask-image", O)) : P(s);
|
|
459
|
+
let k = Math.atan2(w, C) * 180 / Math.PI, A = {
|
|
460
|
+
id: s.id,
|
|
461
|
+
src: M(c) ?? c.src,
|
|
462
|
+
neighborSrc: f ? M(j(f)) : null,
|
|
463
|
+
image: E,
|
|
464
|
+
cx: _.x,
|
|
465
|
+
cy: _.y,
|
|
466
|
+
d: b,
|
|
467
|
+
opacity: l.opacity,
|
|
468
|
+
phase: l.phase,
|
|
469
|
+
structure: v,
|
|
470
|
+
angle: k,
|
|
471
|
+
gravityX: C,
|
|
472
|
+
gravityY: w,
|
|
473
|
+
elongation: T,
|
|
474
|
+
mix: s.opts.mix,
|
|
475
|
+
seamBlur: s.opts.seamBlur,
|
|
476
|
+
options: s.opts,
|
|
477
|
+
mask: O
|
|
478
|
+
};
|
|
479
|
+
i.push(A), a = a || !!l.release || Math.abs(h - l.fade) > .004 || l.previous === null;
|
|
480
|
+
}
|
|
481
|
+
return {
|
|
482
|
+
visuals: i,
|
|
483
|
+
pending: a
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/liquid-effects/melt/MeltPair.tsx
|
|
489
|
+
function ie({ a: e, b: t, srcA: n, srcB: r, opts: i, width: a, height: o, prox: s }) {
|
|
490
|
+
let c = `lgm-${Y(g())}`, { blur: l, contrast: u, reach: d, fade: f, warp: p, mix: m, mixBlur: h, gravity: _, waviness: v } = i, y = {
|
|
491
|
+
x: e.x + e.w / 2,
|
|
492
|
+
y: e.y + e.h / 2
|
|
493
|
+
}, b = {
|
|
494
|
+
x: t.x + t.w / 2,
|
|
495
|
+
y: t.y + t.h / 2
|
|
496
|
+
}, w = Math.hypot(e.w, e.h) / 2 * d * s, T = Math.hypot(t.w, t.h) / 2 * d * s, E = {
|
|
497
|
+
x: (y.x + b.x) / 2,
|
|
498
|
+
y: (y.y + b.y) / 2
|
|
499
|
+
}, D = b.x - y.x, O = b.y - y.y, k = Math.max(.001, Math.hypot(D, O)), A = -O / k, j = D / k, M = Math.max(0, (e.w + t.w) / 2 - Math.abs(D)), N = Math.max(0, (e.h + t.h) / 2 - Math.abs(O)), P = .5 * (M * Math.abs(A) + N * Math.abs(j)) * s, F = Math.round(Math.atan2(j, A) * 180 / Math.PI), I = Math.round(m * s * 100) / 100, L = Math.round((2 + (l - 2) * s) * 10) / 10, R = Math.round(p * s * 10) / 10, z = Math.round(L * 2.5 * 10) / 10, B = Math.round((.4 + (2 + l * .8) * s) * 10) / 10, V = `translate(${e.x}, ${e.y})`, H = `translate(${t.x}, ${t.y})`;
|
|
500
|
+
return /* @__PURE__ */ C("svg", {
|
|
501
|
+
"aria-hidden": "true",
|
|
502
|
+
focusable: "false",
|
|
503
|
+
"data-gooey-imagemelt": "",
|
|
504
|
+
width: a,
|
|
505
|
+
height: o,
|
|
506
|
+
viewBox: `0 0 ${a} ${o}`,
|
|
507
|
+
style: {
|
|
508
|
+
position: "absolute",
|
|
509
|
+
inset: 0,
|
|
510
|
+
overflow: "visible",
|
|
511
|
+
pointerEvents: "none"
|
|
512
|
+
},
|
|
513
|
+
children: [
|
|
514
|
+
/* @__PURE__ */ C("defs", { children: [
|
|
515
|
+
/* @__PURE__ */ S("pattern", {
|
|
516
|
+
id: `${c}-pa`,
|
|
517
|
+
patternUnits: "userSpaceOnUse",
|
|
518
|
+
width: e.w,
|
|
519
|
+
height: e.h,
|
|
520
|
+
children: /* @__PURE__ */ S("image", {
|
|
521
|
+
href: n,
|
|
522
|
+
width: e.w,
|
|
523
|
+
height: e.h,
|
|
524
|
+
preserveAspectRatio: "xMidYMid slice"
|
|
525
|
+
})
|
|
526
|
+
}),
|
|
527
|
+
/* @__PURE__ */ S("pattern", {
|
|
528
|
+
id: `${c}-pb`,
|
|
529
|
+
patternUnits: "userSpaceOnUse",
|
|
530
|
+
width: t.w,
|
|
531
|
+
height: t.h,
|
|
532
|
+
children: /* @__PURE__ */ S("image", {
|
|
533
|
+
href: r,
|
|
534
|
+
width: t.w,
|
|
535
|
+
height: t.h,
|
|
536
|
+
preserveAspectRatio: "xMidYMid slice"
|
|
537
|
+
})
|
|
538
|
+
}),
|
|
539
|
+
/* @__PURE__ */ C("filter", {
|
|
540
|
+
id: `${c}-goo`,
|
|
541
|
+
x: "-15%",
|
|
542
|
+
y: "-15%",
|
|
543
|
+
width: "130%",
|
|
544
|
+
height: "130%",
|
|
545
|
+
colorInterpolationFilters: "sRGB",
|
|
546
|
+
children: [
|
|
547
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
548
|
+
in: "SourceGraphic",
|
|
549
|
+
stdDeviation: L,
|
|
550
|
+
result: "b"
|
|
551
|
+
}),
|
|
552
|
+
/* @__PURE__ */ S("feColorMatrix", {
|
|
553
|
+
in: "b",
|
|
554
|
+
type: "matrix",
|
|
555
|
+
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${u} ${Math.round((.5 - 5 / 12 * u) * 100) / 100}`,
|
|
556
|
+
result: "goo"
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
559
|
+
in: "SourceGraphic",
|
|
560
|
+
stdDeviation: z,
|
|
561
|
+
result: "bc"
|
|
562
|
+
}),
|
|
563
|
+
/* @__PURE__ */ S("feComposite", {
|
|
564
|
+
in: "bc",
|
|
565
|
+
in2: "goo",
|
|
566
|
+
operator: "in",
|
|
567
|
+
result: "mix"
|
|
568
|
+
}),
|
|
569
|
+
/* @__PURE__ */ S("feTurbulence", {
|
|
570
|
+
type: "fractalNoise",
|
|
571
|
+
baseFrequency: (2 + v * 1.2) / 1e3,
|
|
572
|
+
numOctaves: "2",
|
|
573
|
+
seed: "4",
|
|
574
|
+
result: "wn"
|
|
575
|
+
}),
|
|
576
|
+
/* @__PURE__ */ S("feDisplacementMap", {
|
|
577
|
+
in: "mix",
|
|
578
|
+
in2: "wn",
|
|
579
|
+
scale: R,
|
|
580
|
+
xChannelSelector: "R",
|
|
581
|
+
yChannelSelector: "G",
|
|
582
|
+
result: "warped"
|
|
583
|
+
}),
|
|
584
|
+
/* @__PURE__ */ S("feComposite", {
|
|
585
|
+
in: "warped",
|
|
586
|
+
in2: "warped",
|
|
587
|
+
operator: "over",
|
|
588
|
+
result: "s1"
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ S("feComposite", {
|
|
591
|
+
in: "s1",
|
|
592
|
+
in2: "s1",
|
|
593
|
+
operator: "over",
|
|
594
|
+
result: "s2"
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ S("feComposite", {
|
|
597
|
+
in: "s2",
|
|
598
|
+
in2: "s2",
|
|
599
|
+
operator: "over",
|
|
600
|
+
result: "solid"
|
|
601
|
+
}),
|
|
602
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
603
|
+
in: "solid",
|
|
604
|
+
stdDeviation: "0.6"
|
|
605
|
+
})
|
|
606
|
+
]
|
|
607
|
+
}),
|
|
608
|
+
/* @__PURE__ */ S("filter", {
|
|
609
|
+
id: `${c}-soft`,
|
|
610
|
+
x: "-60%",
|
|
611
|
+
y: "-60%",
|
|
612
|
+
width: "220%",
|
|
613
|
+
height: "220%",
|
|
614
|
+
children: /* @__PURE__ */ S("feGaussianBlur", { stdDeviation: f })
|
|
615
|
+
}),
|
|
616
|
+
I > .01 ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("filter", {
|
|
617
|
+
id: `${c}-marble`,
|
|
618
|
+
x: "-25%",
|
|
619
|
+
y: "-25%",
|
|
620
|
+
width: "150%",
|
|
621
|
+
height: "150%",
|
|
622
|
+
colorInterpolationFilters: "sRGB",
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
625
|
+
in: "SourceGraphic",
|
|
626
|
+
stdDeviation: h,
|
|
627
|
+
result: "c"
|
|
628
|
+
}),
|
|
629
|
+
/* @__PURE__ */ S("feTurbulence", {
|
|
630
|
+
type: "fractalNoise",
|
|
631
|
+
baseFrequency: "0.011",
|
|
632
|
+
numOctaves: "2",
|
|
633
|
+
seed: "5",
|
|
634
|
+
result: "n1"
|
|
635
|
+
}),
|
|
636
|
+
/* @__PURE__ */ S("feDisplacementMap", {
|
|
637
|
+
in: "c",
|
|
638
|
+
in2: "n1",
|
|
639
|
+
scale: I * 90,
|
|
640
|
+
xChannelSelector: "R",
|
|
641
|
+
yChannelSelector: "G",
|
|
642
|
+
result: "d1"
|
|
643
|
+
}),
|
|
644
|
+
/* @__PURE__ */ S("feTurbulence", {
|
|
645
|
+
type: "fractalNoise",
|
|
646
|
+
baseFrequency: "0.019",
|
|
647
|
+
numOctaves: "2",
|
|
648
|
+
seed: "11",
|
|
649
|
+
result: "n2"
|
|
650
|
+
}),
|
|
651
|
+
/* @__PURE__ */ S("feDisplacementMap", {
|
|
652
|
+
in: "d1",
|
|
653
|
+
in2: "n2",
|
|
654
|
+
scale: I * 50,
|
|
655
|
+
xChannelSelector: "R",
|
|
656
|
+
yChannelSelector: "G",
|
|
657
|
+
result: "d2"
|
|
658
|
+
}),
|
|
659
|
+
/* @__PURE__ */ S("feComposite", {
|
|
660
|
+
in: "d2",
|
|
661
|
+
in2: "d2",
|
|
662
|
+
operator: "over",
|
|
663
|
+
result: "m1"
|
|
664
|
+
}),
|
|
665
|
+
/* @__PURE__ */ S("feComposite", {
|
|
666
|
+
in: "m1",
|
|
667
|
+
in2: "m1",
|
|
668
|
+
operator: "over",
|
|
669
|
+
result: "m2"
|
|
670
|
+
}),
|
|
671
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
672
|
+
in: "m2",
|
|
673
|
+
stdDeviation: "0.6",
|
|
674
|
+
result: "marble"
|
|
675
|
+
}),
|
|
676
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
677
|
+
in: "SourceGraphic",
|
|
678
|
+
stdDeviation: L,
|
|
679
|
+
result: "mb"
|
|
680
|
+
}),
|
|
681
|
+
/* @__PURE__ */ S("feColorMatrix", {
|
|
682
|
+
in: "mb",
|
|
683
|
+
type: "matrix",
|
|
684
|
+
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${u} ${Math.round((.5 - 5 / 12 * u) * 100) / 100}`,
|
|
685
|
+
result: "mg"
|
|
686
|
+
}),
|
|
687
|
+
/* @__PURE__ */ S("feTurbulence", {
|
|
688
|
+
type: "fractalNoise",
|
|
689
|
+
baseFrequency: (2 + v * 1.2) / 1e3,
|
|
690
|
+
numOctaves: "2",
|
|
691
|
+
seed: "4",
|
|
692
|
+
result: "mwn"
|
|
693
|
+
}),
|
|
694
|
+
/* @__PURE__ */ S("feDisplacementMap", {
|
|
695
|
+
in: "mg",
|
|
696
|
+
in2: "mwn",
|
|
697
|
+
scale: R,
|
|
698
|
+
xChannelSelector: "R",
|
|
699
|
+
yChannelSelector: "G",
|
|
700
|
+
result: "mshape"
|
|
701
|
+
}),
|
|
702
|
+
/* @__PURE__ */ S("feComposite", {
|
|
703
|
+
in: "marble",
|
|
704
|
+
in2: "mshape",
|
|
705
|
+
operator: "in"
|
|
706
|
+
})
|
|
707
|
+
]
|
|
708
|
+
}), /* @__PURE__ */ S("mask", {
|
|
709
|
+
id: `${c}-marblemask`,
|
|
710
|
+
maskUnits: "userSpaceOnUse",
|
|
711
|
+
x: "0",
|
|
712
|
+
y: "0",
|
|
713
|
+
width: a,
|
|
714
|
+
height: o,
|
|
715
|
+
children: /* @__PURE__ */ S("g", {
|
|
716
|
+
filter: `url(#${c}-soft)`,
|
|
717
|
+
children: /* @__PURE__ */ S("ellipse", {
|
|
718
|
+
cx: E.x,
|
|
719
|
+
cy: E.y,
|
|
720
|
+
rx: (w + T) / 2 + P,
|
|
721
|
+
ry: (w + T) / 2 * _,
|
|
722
|
+
transform: `rotate(${F}, ${E.x}, ${E.y})`,
|
|
723
|
+
fill: "#fff"
|
|
724
|
+
})
|
|
725
|
+
})
|
|
726
|
+
})] }) : null,
|
|
727
|
+
/* @__PURE__ */ S("filter", {
|
|
728
|
+
id: `${c}-edge`,
|
|
729
|
+
x: "-40%",
|
|
730
|
+
y: "-40%",
|
|
731
|
+
width: "180%",
|
|
732
|
+
height: "180%",
|
|
733
|
+
children: /* @__PURE__ */ S("feGaussianBlur", { stdDeviation: B })
|
|
734
|
+
}),
|
|
735
|
+
/* @__PURE__ */ C("mask", {
|
|
736
|
+
id: `${c}-ma`,
|
|
737
|
+
maskUnits: "userSpaceOnUse",
|
|
738
|
+
x: "0",
|
|
739
|
+
y: "0",
|
|
740
|
+
width: a,
|
|
741
|
+
height: o,
|
|
742
|
+
children: [/* @__PURE__ */ S("g", {
|
|
743
|
+
filter: `url(#${c}-edge)`,
|
|
744
|
+
children: /* @__PURE__ */ S("g", {
|
|
745
|
+
transform: V,
|
|
746
|
+
children: /* @__PURE__ */ S("rect", {
|
|
747
|
+
width: e.w,
|
|
748
|
+
height: e.h,
|
|
749
|
+
rx: e.r,
|
|
750
|
+
fill: "#fff"
|
|
751
|
+
})
|
|
752
|
+
})
|
|
753
|
+
}), /* @__PURE__ */ S("g", {
|
|
754
|
+
filter: `url(#${c}-soft)`,
|
|
755
|
+
children: /* @__PURE__ */ S("ellipse", {
|
|
756
|
+
cx: E.x,
|
|
757
|
+
cy: E.y,
|
|
758
|
+
rx: T + P,
|
|
759
|
+
ry: T,
|
|
760
|
+
transform: `rotate(${F}, ${E.x}, ${E.y})`,
|
|
761
|
+
fill: "#000"
|
|
762
|
+
})
|
|
763
|
+
})]
|
|
764
|
+
}),
|
|
765
|
+
/* @__PURE__ */ C("mask", {
|
|
766
|
+
id: `${c}-mb`,
|
|
767
|
+
maskUnits: "userSpaceOnUse",
|
|
768
|
+
x: "0",
|
|
769
|
+
y: "0",
|
|
770
|
+
width: a,
|
|
771
|
+
height: o,
|
|
772
|
+
children: [/* @__PURE__ */ S("g", {
|
|
773
|
+
filter: `url(#${c}-edge)`,
|
|
774
|
+
children: /* @__PURE__ */ S("g", {
|
|
775
|
+
transform: H,
|
|
776
|
+
children: /* @__PURE__ */ S("rect", {
|
|
777
|
+
width: t.w,
|
|
778
|
+
height: t.h,
|
|
779
|
+
rx: t.r,
|
|
780
|
+
fill: "#fff"
|
|
781
|
+
})
|
|
782
|
+
})
|
|
783
|
+
}), /* @__PURE__ */ S("g", {
|
|
784
|
+
filter: `url(#${c}-soft)`,
|
|
785
|
+
children: /* @__PURE__ */ S("ellipse", {
|
|
786
|
+
cx: E.x,
|
|
787
|
+
cy: E.y,
|
|
788
|
+
rx: w + P,
|
|
789
|
+
ry: w,
|
|
790
|
+
transform: `rotate(${F}, ${E.x}, ${E.y})`,
|
|
791
|
+
fill: "#000"
|
|
792
|
+
})
|
|
793
|
+
})]
|
|
794
|
+
})
|
|
795
|
+
] }),
|
|
796
|
+
/* @__PURE__ */ C("g", {
|
|
797
|
+
filter: `url(#${c}-goo)`,
|
|
798
|
+
children: [/* @__PURE__ */ S("g", {
|
|
799
|
+
transform: V,
|
|
800
|
+
children: /* @__PURE__ */ S("rect", {
|
|
801
|
+
width: e.w,
|
|
802
|
+
height: e.h,
|
|
803
|
+
rx: e.r,
|
|
804
|
+
fill: `url(#${c}-pa)`
|
|
805
|
+
})
|
|
806
|
+
}), /* @__PURE__ */ S("g", {
|
|
807
|
+
transform: H,
|
|
808
|
+
children: /* @__PURE__ */ S("rect", {
|
|
809
|
+
width: t.w,
|
|
810
|
+
height: t.h,
|
|
811
|
+
rx: t.r,
|
|
812
|
+
fill: `url(#${c}-pb)`
|
|
813
|
+
})
|
|
814
|
+
})]
|
|
815
|
+
}),
|
|
816
|
+
I > .01 ? /* @__PURE__ */ S("g", {
|
|
817
|
+
mask: `url(#${c}-marblemask)`,
|
|
818
|
+
children: /* @__PURE__ */ C("g", {
|
|
819
|
+
filter: `url(#${c}-marble)`,
|
|
820
|
+
children: [/* @__PURE__ */ S("g", {
|
|
821
|
+
transform: V,
|
|
822
|
+
children: /* @__PURE__ */ S("rect", {
|
|
823
|
+
width: e.w,
|
|
824
|
+
height: e.h,
|
|
825
|
+
rx: e.r,
|
|
826
|
+
fill: `url(#${c}-pa)`
|
|
827
|
+
})
|
|
828
|
+
}), /* @__PURE__ */ S("g", {
|
|
829
|
+
transform: H,
|
|
830
|
+
children: /* @__PURE__ */ S("rect", {
|
|
831
|
+
width: t.w,
|
|
832
|
+
height: t.h,
|
|
833
|
+
rx: t.r,
|
|
834
|
+
fill: `url(#${c}-pb)`
|
|
835
|
+
})
|
|
836
|
+
})]
|
|
837
|
+
})
|
|
838
|
+
}) : null,
|
|
839
|
+
/* @__PURE__ */ S("g", {
|
|
840
|
+
mask: `url(#${c}-ma)`,
|
|
841
|
+
children: /* @__PURE__ */ S("g", {
|
|
842
|
+
transform: V,
|
|
843
|
+
children: /* @__PURE__ */ S("rect", {
|
|
844
|
+
width: e.w,
|
|
845
|
+
height: e.h,
|
|
846
|
+
rx: e.r,
|
|
847
|
+
fill: `url(#${c}-pa)`
|
|
848
|
+
})
|
|
849
|
+
})
|
|
850
|
+
}),
|
|
851
|
+
/* @__PURE__ */ S("g", {
|
|
852
|
+
mask: `url(#${c}-mb)`,
|
|
853
|
+
children: /* @__PURE__ */ S("g", {
|
|
854
|
+
transform: H,
|
|
855
|
+
children: /* @__PURE__ */ S("rect", {
|
|
856
|
+
width: t.w,
|
|
857
|
+
height: t.h,
|
|
858
|
+
rx: t.r,
|
|
859
|
+
fill: `url(#${c}-pb)`
|
|
860
|
+
})
|
|
861
|
+
})
|
|
862
|
+
})
|
|
863
|
+
]
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region src/liquid-effects/melt/DissolveLayers.tsx
|
|
868
|
+
function ae({ visuals: e }) {
|
|
869
|
+
let t = `lgd-${Y(g())}`;
|
|
870
|
+
return /* @__PURE__ */ S(x, { children: e.map((e) => {
|
|
871
|
+
let n = `${t}-${Y(e.id)}`, r = `${n}-pattern`, i = `${n}-mask`, a = n + "-neighbor", o = e.image, s = e.elongation > 1.001 ? `translate(${R(e.cx)} ${R(e.cy)}) rotate(${R(e.angle)}) scale(${R(e.elongation, 3)} 1) rotate(${-R(e.angle)}) translate(${R(-e.cx)} ${R(-e.cy)})` : void 0, c = e.d * e.elongation + e.options.blur * 2.5 + e.options.warp + e.options.gravity * .5 + 8, l = Math.min(.3, Math.max(.01, e.options.warpFreq / (e.options.zone * 1.1))), u = ee(e.cx, e.cy, e.gravityX, e.gravityY, e.d, e.options.pull * e.structure, e.options.gravity * e.structure, e.elongation, e.options.taper);
|
|
872
|
+
return /* @__PURE__ */ C("g", {
|
|
873
|
+
"data-liquid-gooey-dissolve": "",
|
|
874
|
+
children: [
|
|
875
|
+
/* @__PURE__ */ C("defs", { children: [
|
|
876
|
+
/* @__PURE__ */ S("pattern", {
|
|
877
|
+
id: r,
|
|
878
|
+
patternUnits: "userSpaceOnUse",
|
|
879
|
+
x: o.x,
|
|
880
|
+
y: o.y,
|
|
881
|
+
width: o.w,
|
|
882
|
+
height: o.h,
|
|
883
|
+
children: /* @__PURE__ */ S("image", {
|
|
884
|
+
href: e.src,
|
|
885
|
+
width: o.w,
|
|
886
|
+
height: o.h,
|
|
887
|
+
preserveAspectRatio: "xMidYMid slice"
|
|
888
|
+
})
|
|
889
|
+
}),
|
|
890
|
+
e.neighborSrc ? /* @__PURE__ */ S("pattern", {
|
|
891
|
+
id: a,
|
|
892
|
+
patternUnits: "userSpaceOnUse",
|
|
893
|
+
x: o.x,
|
|
894
|
+
y: o.y,
|
|
895
|
+
width: o.w,
|
|
896
|
+
height: o.h,
|
|
897
|
+
children: /* @__PURE__ */ S("image", {
|
|
898
|
+
href: e.neighborSrc,
|
|
899
|
+
width: o.w,
|
|
900
|
+
height: o.h,
|
|
901
|
+
preserveAspectRatio: "xMidYMid slice"
|
|
902
|
+
})
|
|
903
|
+
}) : null,
|
|
904
|
+
/* @__PURE__ */ C("radialGradient", {
|
|
905
|
+
id: `${n}-gradient`,
|
|
906
|
+
children: [
|
|
907
|
+
/* @__PURE__ */ S("stop", {
|
|
908
|
+
offset: "0%",
|
|
909
|
+
stopColor: "#fff"
|
|
910
|
+
}),
|
|
911
|
+
/* @__PURE__ */ S("stop", {
|
|
912
|
+
offset: "55%",
|
|
913
|
+
stopColor: "#fff"
|
|
914
|
+
}),
|
|
915
|
+
/* @__PURE__ */ S("stop", {
|
|
916
|
+
offset: "78%",
|
|
917
|
+
stopColor: "#fff",
|
|
918
|
+
stopOpacity: "0.55"
|
|
919
|
+
}),
|
|
920
|
+
/* @__PURE__ */ S("stop", {
|
|
921
|
+
offset: "100%",
|
|
922
|
+
stopColor: "#fff",
|
|
923
|
+
stopOpacity: "0"
|
|
924
|
+
})
|
|
925
|
+
]
|
|
926
|
+
}),
|
|
927
|
+
/* @__PURE__ */ S("mask", {
|
|
928
|
+
id: i,
|
|
929
|
+
maskUnits: "userSpaceOnUse",
|
|
930
|
+
x: "0",
|
|
931
|
+
y: "0",
|
|
932
|
+
width: "100%",
|
|
933
|
+
height: "100%",
|
|
934
|
+
children: /* @__PURE__ */ S("circle", {
|
|
935
|
+
cx: e.cx,
|
|
936
|
+
cy: e.cy,
|
|
937
|
+
r: e.d * e.elongation,
|
|
938
|
+
fill: `url(#${n}-gradient)`,
|
|
939
|
+
transform: s
|
|
940
|
+
})
|
|
941
|
+
}),
|
|
942
|
+
e.seamBlur > 0 ? /* @__PURE__ */ S("filter", {
|
|
943
|
+
id: `${n}-seam`,
|
|
944
|
+
filterUnits: "userSpaceOnUse",
|
|
945
|
+
x: e.cx - c,
|
|
946
|
+
y: e.cy - c,
|
|
947
|
+
width: c * 2,
|
|
948
|
+
height: c * 2,
|
|
949
|
+
colorInterpolationFilters: "sRGB",
|
|
950
|
+
children: /* @__PURE__ */ S("feGaussianBlur", { stdDeviation: e.seamBlur * e.structure })
|
|
951
|
+
}) : null,
|
|
952
|
+
[
|
|
953
|
+
0,
|
|
954
|
+
1,
|
|
955
|
+
2
|
|
956
|
+
].map((t) => {
|
|
957
|
+
let r = t / 2, i = e.options.blur * (.15 + .85 * r ** 1.4) * e.structure, a = e.options.warp * (.45 + .55 * r) * e.structure, o = e.mix * e.structure * (.15 + .85 * r), s = e.phase * (.7 + .3 * r), u = e.gravityX * Math.sin(s + r * 1.7) * 3 - e.gravityY * Math.cos(s * 1.31 + r) * 1.5, d = e.gravityY * Math.cos(s + r * 1.3) * 2 + e.gravityX * Math.sin(s * 1.17 + r) * 1.1;
|
|
958
|
+
return /* @__PURE__ */ C("filter", {
|
|
959
|
+
id: `${n}-filter-${t}`,
|
|
960
|
+
filterUnits: "userSpaceOnUse",
|
|
961
|
+
x: e.cx - c,
|
|
962
|
+
y: e.cy - c,
|
|
963
|
+
width: c * 2,
|
|
964
|
+
height: c * 2,
|
|
965
|
+
colorInterpolationFilters: "sRGB",
|
|
966
|
+
children: [
|
|
967
|
+
/* @__PURE__ */ S("feTurbulence", {
|
|
968
|
+
type: e.options.warpStyle,
|
|
969
|
+
baseFrequency: `${(l * (t === 0 ? .35 : 1.6)).toFixed(4)} ${(l * (t === 0 ? 1.6 : .35)).toFixed(4)}`,
|
|
970
|
+
numOctaves: e.options.detail,
|
|
971
|
+
seed: "17",
|
|
972
|
+
result: "noise"
|
|
973
|
+
}),
|
|
974
|
+
/* @__PURE__ */ S("feDisplacementMap", {
|
|
975
|
+
in: "SourceGraphic",
|
|
976
|
+
in2: "noise",
|
|
977
|
+
scale: a,
|
|
978
|
+
xChannelSelector: "R",
|
|
979
|
+
yChannelSelector: "G",
|
|
980
|
+
result: "warped"
|
|
981
|
+
}),
|
|
982
|
+
/* @__PURE__ */ S("feGaussianBlur", {
|
|
983
|
+
in: "warped",
|
|
984
|
+
stdDeviation: i,
|
|
985
|
+
result: "soft"
|
|
986
|
+
}),
|
|
987
|
+
/* @__PURE__ */ S("feColorMatrix", {
|
|
988
|
+
in: "soft",
|
|
989
|
+
type: "saturate",
|
|
990
|
+
values: "1.2",
|
|
991
|
+
result: "col"
|
|
992
|
+
}),
|
|
993
|
+
/* @__PURE__ */ S("feTurbulence", {
|
|
994
|
+
type: e.options.warpStyle,
|
|
995
|
+
baseFrequency: l.toFixed(4),
|
|
996
|
+
numOctaves: e.options.detail,
|
|
997
|
+
seed: "19",
|
|
998
|
+
result: "erosion-noise"
|
|
999
|
+
}),
|
|
1000
|
+
/* @__PURE__ */ S("feColorMatrix", {
|
|
1001
|
+
in: "erosion-noise",
|
|
1002
|
+
type: "matrix",
|
|
1003
|
+
values: ne(o),
|
|
1004
|
+
result: "erosion"
|
|
1005
|
+
}),
|
|
1006
|
+
/* @__PURE__ */ S("feComposite", {
|
|
1007
|
+
in: "col",
|
|
1008
|
+
in2: "erosion",
|
|
1009
|
+
operator: "in"
|
|
1010
|
+
}),
|
|
1011
|
+
/* @__PURE__ */ S("feOffset", {
|
|
1012
|
+
dx: u,
|
|
1013
|
+
dy: d
|
|
1014
|
+
})
|
|
1015
|
+
]
|
|
1016
|
+
}, t);
|
|
1017
|
+
})
|
|
1018
|
+
] }),
|
|
1019
|
+
e.seamBlur > 0 ? /* @__PURE__ */ S("g", {
|
|
1020
|
+
mask: `url(#${i})`,
|
|
1021
|
+
opacity: e.opacity * .55,
|
|
1022
|
+
children: /* @__PURE__ */ S("g", {
|
|
1023
|
+
filter: `url(#${n}-seam)`,
|
|
1024
|
+
children: /* @__PURE__ */ S("rect", {
|
|
1025
|
+
x: o.x,
|
|
1026
|
+
y: o.y,
|
|
1027
|
+
width: o.w,
|
|
1028
|
+
height: o.h,
|
|
1029
|
+
rx: o.r,
|
|
1030
|
+
fill: `url(#${r})`
|
|
1031
|
+
})
|
|
1032
|
+
})
|
|
1033
|
+
}) : null,
|
|
1034
|
+
[
|
|
1035
|
+
0,
|
|
1036
|
+
1,
|
|
1037
|
+
2
|
|
1038
|
+
].map((t) => /* @__PURE__ */ S("g", {
|
|
1039
|
+
mask: `url(#${i})`,
|
|
1040
|
+
opacity: e.opacity,
|
|
1041
|
+
children: /* @__PURE__ */ S("g", {
|
|
1042
|
+
filter: `url(#${n}-filter-${t})`,
|
|
1043
|
+
children: /* @__PURE__ */ S("g", {
|
|
1044
|
+
transform: u,
|
|
1045
|
+
children: /* @__PURE__ */ S("rect", {
|
|
1046
|
+
x: o.x,
|
|
1047
|
+
y: o.y,
|
|
1048
|
+
width: o.w,
|
|
1049
|
+
height: o.h,
|
|
1050
|
+
rx: o.r,
|
|
1051
|
+
fill: `url(#${r})`
|
|
1052
|
+
})
|
|
1053
|
+
})
|
|
1054
|
+
})
|
|
1055
|
+
}, t)),
|
|
1056
|
+
e.neighborSrc && e.mix > 0 ? /* @__PURE__ */ S("g", {
|
|
1057
|
+
mask: "url(#" + i + ")",
|
|
1058
|
+
opacity: e.opacity * Math.min(.55, e.mix * .55),
|
|
1059
|
+
children: /* @__PURE__ */ S("g", {
|
|
1060
|
+
filter: "url(#" + n + "-filter-1)",
|
|
1061
|
+
children: /* @__PURE__ */ S("rect", {
|
|
1062
|
+
x: o.x,
|
|
1063
|
+
y: o.y,
|
|
1064
|
+
width: o.w,
|
|
1065
|
+
height: o.h,
|
|
1066
|
+
rx: o.r,
|
|
1067
|
+
fill: "url(#" + a + ")"
|
|
1068
|
+
})
|
|
1069
|
+
})
|
|
1070
|
+
}) : null
|
|
1071
|
+
]
|
|
1072
|
+
}, e.id);
|
|
1073
|
+
}) });
|
|
1074
|
+
}
|
|
1075
|
+
//#endregion
|
|
1076
|
+
//#region src/liquid-effects/melt/ImageMeltLayer.tsx
|
|
1077
|
+
function oe({ registry: e, getGroup: t }) {
|
|
1078
|
+
let [n, r] = b(L);
|
|
1079
|
+
return _(() => {
|
|
1080
|
+
let n = new re({
|
|
1081
|
+
registry: e,
|
|
1082
|
+
getGroup: t,
|
|
1083
|
+
onState: r
|
|
1084
|
+
}), i = e.subscribe(n.invalidate);
|
|
1085
|
+
return n.invalidate(), () => {
|
|
1086
|
+
i(), n.dispose();
|
|
1087
|
+
};
|
|
1088
|
+
}, [e]), !n.melt && n.dissolves.length === 0 ? null : /* @__PURE__ */ C("svg", {
|
|
1089
|
+
"aria-hidden": "true",
|
|
1090
|
+
focusable: "false",
|
|
1091
|
+
"data-liquid-gooey-image-melt": "",
|
|
1092
|
+
width: n.width,
|
|
1093
|
+
height: n.height,
|
|
1094
|
+
viewBox: `0 0 ${n.width} ${n.height}`,
|
|
1095
|
+
style: {
|
|
1096
|
+
position: "absolute",
|
|
1097
|
+
inset: 0,
|
|
1098
|
+
zIndex: 1,
|
|
1099
|
+
overflow: "visible",
|
|
1100
|
+
pointerEvents: "none"
|
|
1101
|
+
},
|
|
1102
|
+
children: [n.melt ? /* @__PURE__ */ S(ie, {
|
|
1103
|
+
...n.melt,
|
|
1104
|
+
width: n.width,
|
|
1105
|
+
height: n.height
|
|
1106
|
+
}) : null, n.dissolves.length > 0 ? /* @__PURE__ */ S(ae, { visuals: n.dissolves }) : null]
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region src/liquid-effects/LiquidEffectsGroup/context.ts
|
|
1111
|
+
var X = d(null);
|
|
1112
|
+
function Z() {
|
|
1113
|
+
let e = m(X);
|
|
1114
|
+
if (!e) throw Error("LiquidEffectsGroup.Item requires a LiquidEffectsGroup parent.");
|
|
1115
|
+
return e;
|
|
1116
|
+
}
|
|
1117
|
+
//#endregion
|
|
1118
|
+
//#region src/liquid-effects/bend/physics.ts
|
|
1119
|
+
function Q(n, r) {
|
|
1120
|
+
return {
|
|
1121
|
+
vertical: e(i(r?.vertical, t(n, "bendVertical", .6))),
|
|
1122
|
+
horizontal: e(i(r?.horizontal, t(n, "bendHorizontal", .35))),
|
|
1123
|
+
velocityVertical: Math.max(0, t(n, "bendVelocityVertical", .05)),
|
|
1124
|
+
velocityHorizontal: Math.max(0, t(n, "bendVelocityHorizontal", .09)),
|
|
1125
|
+
smoothing: Math.max(0, t(n, "bendSmoothing", 9)),
|
|
1126
|
+
activeThreshold: Math.max(0, t(n, "bendActiveThreshold", .5)),
|
|
1127
|
+
verticalCap: Math.max(0, t(n, "bendVerticalCap", .5)),
|
|
1128
|
+
horizontalCap: Math.max(0, t(n, "bendHorizontalCap", .9)),
|
|
1129
|
+
radiusMin: Math.max(0, t(n, "bendRadiusMin", .2)),
|
|
1130
|
+
radiusMax: Math.max(0, t(n, "bendRadiusMax", 3)),
|
|
1131
|
+
leadingCapFactor: Math.max(0, t(n, "bendLeadingCapFactor", .8)),
|
|
1132
|
+
trailingCapFactor: Math.max(0, t(n, "bendTrailingCapFactor", 1.6))
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
function se(e, t, n, r, i, a) {
|
|
1136
|
+
let o = Math.min(Math.max(0, n), e / 2, t / 2), s = Math.round(r * 2 * 10) / 10, c = Math.max(o * a.radiusMin, Math.min(o * a.radiusMax, i > 0 ? o - a.leadingCapFactor * i : o + a.trailingCapFactor * -i)), l = Math.max(o * a.radiusMin, Math.min(o * a.radiusMax, i > 0 ? o + a.trailingCapFactor * i : o - a.leadingCapFactor * -i)), u = .5523, d = (e) => Math.round(e * 10) / 10;
|
|
1137
|
+
return `M ${d(l)} 0 Q ${d(e / 2)} ${d(s)} ${d(e - c)} 0 C ${d(e - c + u * c)} 0 ${d(e)} ${d(o - u * o)} ${d(e)} ${d(o)} L ${d(e)} ${d(t - o)} C ${d(e)} ${d(t - o + u * o)} ${d(e - c + u * c)} ${d(t)} ${d(e - c)} ${d(t)} Q ${d(e / 2)} ${d(t + r * 2)} ${d(l)} ${d(t)} C ${d(l - u * l)} ${d(t)} 0 ${d(t - o + u * o)} 0 ${d(t - o)} L 0 ${d(o)} C 0 ${d(o - u * o)} ${d(l - u * l)} 0 ${d(l)} 0 Z`;
|
|
1138
|
+
}
|
|
1139
|
+
function ce(e) {
|
|
1140
|
+
return {
|
|
1141
|
+
cx: e.cx,
|
|
1142
|
+
cy: e.cy,
|
|
1143
|
+
previousCx: e.cx,
|
|
1144
|
+
previousCy: e.cy,
|
|
1145
|
+
vcx: 0,
|
|
1146
|
+
vcy: 0,
|
|
1147
|
+
bendY: 0,
|
|
1148
|
+
bendX: 0,
|
|
1149
|
+
initialized: !1
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
function le(e, t) {
|
|
1153
|
+
e.cx = t.cx, e.cy = t.cy, e.previousCx = t.cx, e.previousCy = t.cy, e.vcx = 0, e.vcy = 0, e.bendY = 0, e.bendX = 0, e.initialized = !0;
|
|
1154
|
+
}
|
|
1155
|
+
function ue(e, t) {
|
|
1156
|
+
return Math.min(e.w, e.h) * t.verticalCap * 2 * t.vertical;
|
|
1157
|
+
}
|
|
1158
|
+
function de(e, t, n, r, a) {
|
|
1159
|
+
let c = Math.max(1 / 240, i(r, 1 / 60));
|
|
1160
|
+
e.initialized ||= (e.previousCx = t.cx, e.previousCy = t.cy, !0);
|
|
1161
|
+
let l = (t.cx - e.previousCx) / c, u = (t.cy - e.previousCy) / c;
|
|
1162
|
+
e.previousCx = t.cx, e.previousCy = t.cy, e.vcx = e.vcx * .7 + l * .3, e.vcy = e.vcy * .7 + u * .3, e.cx = t.cx, e.cy = t.cy;
|
|
1163
|
+
let d = Math.min(n.w, n.h), f = d * a.verticalCap, p = Math.max(-f, Math.min(f, e.vcy * a.velocityVertical)) * a.vertical, m = d * a.horizontalCap, h = Math.max(-m, Math.min(m, e.vcx * a.velocityHorizontal)) * a.horizontal;
|
|
1164
|
+
e.bendY += (p - e.bendY) * Math.min(1, c * a.smoothing), e.bendX += (h - e.bendX) * Math.min(1, c * a.smoothing);
|
|
1165
|
+
let g = Math.abs(e.bendY) > a.activeThreshold || Math.abs(e.bendX) > a.activeThreshold, _ = Math.min(...n.r), v = g ? se(n.w, n.h, _, e.bendY, e.bendX, a) : s(-n.w / 2, -n.h / 2, n.w, n.h, n.r), y = g ? `translate(${o(e.cx - n.w / 2)} ${o(e.cy - n.h / 2)}) scale(${o(t.scale)})` : `translate(${o(e.cx)} ${o(e.cy)}) scale(${o(t.scale)})`, b = Math.round(e.bendX * 10) / 10, x = Math.round(e.bendY * 10) / 10;
|
|
1166
|
+
return {
|
|
1167
|
+
path: v,
|
|
1168
|
+
transform: y,
|
|
1169
|
+
bendX: b,
|
|
1170
|
+
bendY: x,
|
|
1171
|
+
moving: Math.abs(e.vcx) > 1 || Math.abs(e.vcy) > 1 || Math.abs(e.bendX) > a.activeThreshold * .1 || Math.abs(e.bendY) > a.activeThreshold * .1,
|
|
1172
|
+
fingerprint: `${v}|${y}|${b},${x}`
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
//#endregion
|
|
1176
|
+
//#region src/liquid-effects/bend/deformation.ts
|
|
1177
|
+
function fe(e) {
|
|
1178
|
+
let t = null, n = null;
|
|
1179
|
+
return {
|
|
1180
|
+
padding: (t, n) => ue(n, Q(t, e)),
|
|
1181
|
+
paint: ({ group: r, host: i, target: a, box: o, dt: s, snap: c }) => {
|
|
1182
|
+
t ??= ce(a), c && le(t, a);
|
|
1183
|
+
let l = de(t, a, o, c ? 0 : s, Q(r, e)), u = Math.round((Number.isFinite(l.bendX) ? l.bendX : 0) * 10) / 10, d = Math.round((Number.isFinite(l.bendY) ? l.bendY : 0) * 10) / 10, f = `${u},${d}`;
|
|
1184
|
+
return n !== f && (i.style.setProperty("--lg-bend-x", `${u}px`), i.style.setProperty("--lg-bend-y", `${d}px`), i.style.setProperty("--lg-bend-xn", String(u)), i.style.setProperty("--lg-bend-yn", String(d)), n = f), l;
|
|
1185
|
+
},
|
|
1186
|
+
reset: (e) => {
|
|
1187
|
+
if (t = null, n !== null) for (let t of [
|
|
1188
|
+
"--lg-bend-x",
|
|
1189
|
+
"--lg-bend-y",
|
|
1190
|
+
"--lg-bend-xn",
|
|
1191
|
+
"--lg-bend-yn"
|
|
1192
|
+
]) e.style.removeProperty(t);
|
|
1193
|
+
n = null;
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region src/liquid-effects/melt/ImageMeltItem.tsx
|
|
1199
|
+
function pe({ src: e, options: t = {}, registry: n, children: r, forwardedRef: i, className: a, style: o, ...s }) {
|
|
1200
|
+
let c = y(null), l = JSON.stringify(t), u = y(!1), d = (e) => {
|
|
1201
|
+
c.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
|
|
1202
|
+
};
|
|
1203
|
+
return _(() => {
|
|
1204
|
+
let r = c.current, i = r?.firstElementChild, a = j(i), o = e ?? M(a);
|
|
1205
|
+
if (!r || !i || !a || !o) {
|
|
1206
|
+
u.current || (u.current = !0, console.warn("[swimmer-ui] effect=\"melt\" needs an image: pass melt={{ src }} or put an <img> inside the item."));
|
|
1207
|
+
return;
|
|
1208
|
+
}
|
|
1209
|
+
return n.registerMelt({
|
|
1210
|
+
el: r,
|
|
1211
|
+
target: a,
|
|
1212
|
+
src: o,
|
|
1213
|
+
opts: k(r, t)
|
|
1214
|
+
});
|
|
1215
|
+
}, [
|
|
1216
|
+
l,
|
|
1217
|
+
n,
|
|
1218
|
+
e
|
|
1219
|
+
]), /* @__PURE__ */ S("div", {
|
|
1220
|
+
...s,
|
|
1221
|
+
ref: d,
|
|
1222
|
+
className: a ? `game-ui-liquid-item ${a}` : "game-ui-liquid-item",
|
|
1223
|
+
style: o,
|
|
1224
|
+
children: r
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region src/liquid-effects/melt/hostProps.ts
|
|
1229
|
+
function me(e) {
|
|
1230
|
+
let t = { ...e };
|
|
1231
|
+
for (let e of [
|
|
1232
|
+
"children",
|
|
1233
|
+
"effect",
|
|
1234
|
+
"melt",
|
|
1235
|
+
"dissolve",
|
|
1236
|
+
"x",
|
|
1237
|
+
"y",
|
|
1238
|
+
"scale",
|
|
1239
|
+
"scaleY",
|
|
1240
|
+
"transition",
|
|
1241
|
+
"delay",
|
|
1242
|
+
"radius",
|
|
1243
|
+
"blob",
|
|
1244
|
+
"morph",
|
|
1245
|
+
"bend",
|
|
1246
|
+
"observe"
|
|
1247
|
+
]) delete t[e];
|
|
1248
|
+
return t;
|
|
1249
|
+
}
|
|
1250
|
+
//#endregion
|
|
1251
|
+
//#region src/liquid-effects/LiquidEffectsGroup/LiquidEffectsItem.tsx
|
|
1252
|
+
var he = f(function({ effect: e, bend: t, dissolve: n, melt: r, ...i }, o) {
|
|
1253
|
+
let s = Z(), c = y(null), l = y(null), u = p((e) => {
|
|
1254
|
+
c.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
1255
|
+
}, [o]), d = t?.horizontal, f = t?.vertical, m = v(() => e === "bend" ? fe({
|
|
1256
|
+
...d === void 0 ? {} : { horizontal: d },
|
|
1257
|
+
...f === void 0 ? {} : { vertical: f }
|
|
1258
|
+
}) : void 0, [
|
|
1259
|
+
e,
|
|
1260
|
+
d,
|
|
1261
|
+
f
|
|
1262
|
+
]), g = JSON.stringify(n ?? null), b = n !== void 0 && n !== !1;
|
|
1263
|
+
return _(() => () => {
|
|
1264
|
+
l.current?.unregister(), l.current = null;
|
|
1265
|
+
}, [s]), _(() => {
|
|
1266
|
+
if (e === "move" || !b) {
|
|
1267
|
+
l.current?.unregister(), l.current = null;
|
|
1268
|
+
return;
|
|
1269
|
+
}
|
|
1270
|
+
c.current && (l.current ? l.current.update(n) : l.current = I(s, c.current, n));
|
|
1271
|
+
}, [
|
|
1272
|
+
g,
|
|
1273
|
+
e,
|
|
1274
|
+
s
|
|
1275
|
+
]), h(() => {
|
|
1276
|
+
let t = e;
|
|
1277
|
+
t === "move" && console.warn("[swimmer-ui] effect=\"move\" is not an item effect. Use <LiquidGroup motion=\"follow\"> for selection and progress."), t === "move" && b && console.warn("[swimmer-ui] dissolve is ignored for effect=\"move\" because Move intentionally lags the measured image rect.");
|
|
1278
|
+
}, [e, b]), /* @__PURE__ */ S(a, {
|
|
1279
|
+
...i,
|
|
1280
|
+
ref: u,
|
|
1281
|
+
...e === "morph" ? { effect: e } : {},
|
|
1282
|
+
...m ? {
|
|
1283
|
+
deformation: m,
|
|
1284
|
+
observe: !0
|
|
1285
|
+
} : {},
|
|
1286
|
+
suppressMorph: b
|
|
1287
|
+
});
|
|
1288
|
+
}), $ = f(function(e, t) {
|
|
1289
|
+
let n = Z();
|
|
1290
|
+
if (e.effect !== "melt") return /* @__PURE__ */ S(he, {
|
|
1291
|
+
...e,
|
|
1292
|
+
ref: t
|
|
1293
|
+
});
|
|
1294
|
+
let { src: r, ...i } = e.melt ?? {};
|
|
1295
|
+
return /* @__PURE__ */ S(pe, {
|
|
1296
|
+
...me(e),
|
|
1297
|
+
registry: n,
|
|
1298
|
+
options: i,
|
|
1299
|
+
...r === void 0 ? {} : { src: r },
|
|
1300
|
+
forwardedRef: t,
|
|
1301
|
+
children: e.children
|
|
1302
|
+
});
|
|
1303
|
+
}), ge = f(function(e, t) {
|
|
1304
|
+
let n = v(() => F(), []);
|
|
1305
|
+
return /* @__PURE__ */ S(X.Provider, {
|
|
1306
|
+
value: n,
|
|
1307
|
+
children: /* @__PURE__ */ S(r, {
|
|
1308
|
+
...e,
|
|
1309
|
+
ref: t,
|
|
1310
|
+
auxiliary: (e) => /* @__PURE__ */ S(oe, {
|
|
1311
|
+
registry: n,
|
|
1312
|
+
getGroup: e
|
|
1313
|
+
})
|
|
1314
|
+
})
|
|
1315
|
+
});
|
|
1316
|
+
}), _e = Object.assign(ge, { Item: $ });
|
|
1317
|
+
//#endregion
|
|
1318
|
+
export { _e as LiquidEffectsGroup, $ as LiquidEffectsItem };
|