@pieai/swimmer-ui-kit 2.13.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 +69 -4
- 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 +363 -1919
- package/dist/index.js +839 -9118
- 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 +714 -664
- 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-WwyGKGPL.js +0 -450
package/dist/liquid-presence.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as e, h as t, l as n, n as r, p as i, t as a, v as o, x as s, y as c } from "./reducedMotion-B8kv-v64.js";
|
|
3
|
+
import { useCallback as l, useEffect as u, useId as d, useLayoutEffect as f, useRef as p, useState as m } from "react";
|
|
4
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
5
|
+
import { createPortal as v } from "react-dom";
|
|
6
|
+
import { FloatingPortal as y, autoUpdate as b, computePosition as x, flip as S, hide as C, offset as w, shift as T, size as E } from "@floating-ui/react";
|
|
7
|
+
//#region src/liquid/material/light.ts
|
|
8
|
+
var D = "var(--liquid-presence-from, var(--game-ui-cta-from))", O = "var(--liquid-presence-to, var(--game-ui-cta-to))", k = [
|
|
9
|
+
[0, `color-mix(in srgb, ${D}, white 30%)`],
|
|
10
|
+
[.16, `color-mix(in srgb, ${D}, white 15%)`],
|
|
11
|
+
[.5, `color-mix(in srgb, ${D}, ${O})`],
|
|
12
|
+
[1, `color-mix(in srgb, ${O}, black 5%)`]
|
|
13
|
+
];
|
|
14
|
+
function A(e, t, n) {
|
|
7
15
|
return Number.isFinite(e) ? Math.max(t, Math.min(n, e)) : t;
|
|
8
16
|
}
|
|
9
|
-
function
|
|
17
|
+
function j(e) {
|
|
10
18
|
return !!(e && [
|
|
11
19
|
e.x,
|
|
12
20
|
e.y,
|
|
@@ -14,23 +22,23 @@ function E(e) {
|
|
|
14
22
|
e.height
|
|
15
23
|
].every(Number.isFinite) && e.width > 0 && e.height > 0);
|
|
16
24
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
25
|
+
function ee(e, t) {
|
|
26
|
+
return j(e) && e.x + e.width > t.x && e.y + e.height > t.y && e.x < t.x + t.width && e.y < t.y + t.height;
|
|
19
27
|
}
|
|
20
|
-
function
|
|
28
|
+
function te(e) {
|
|
21
29
|
return {
|
|
22
30
|
x: e.x + e.width / 2,
|
|
23
31
|
y: e.y + e.height / 2
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
|
-
function
|
|
34
|
+
function M(e, t) {
|
|
27
35
|
let n = Math.hypot(t.x - e.x, t.y - e.y) || 1;
|
|
28
36
|
return {
|
|
29
37
|
x: (t.x - e.x) / n,
|
|
30
38
|
y: (t.y - e.y) / n
|
|
31
39
|
};
|
|
32
40
|
}
|
|
33
|
-
function
|
|
41
|
+
function ne(e, t) {
|
|
34
42
|
let n = Math.max(e.x, t.x), r = Math.max(e.y, t.y);
|
|
35
43
|
return {
|
|
36
44
|
x: n,
|
|
@@ -39,19 +47,19 @@ function A(e, t) {
|
|
|
39
47
|
height: Math.max(0, Math.min(e.y + e.height, t.y + t.height) - r)
|
|
40
48
|
};
|
|
41
49
|
}
|
|
42
|
-
function
|
|
43
|
-
let n = e.y + e.height + 88 < t.y + t.height, r = n ? "bottom" : "top", i = Math.max(t.x + 18, e.x), a = Math.min(t.x + t.width - 18, e.x + e.width), o =
|
|
50
|
+
function re(e, t) {
|
|
51
|
+
let n = e.y + e.height + 88 < t.y + t.height, r = n ? "bottom" : "top", i = Math.max(t.x + 18, e.x), a = Math.min(t.x + t.width - 18, e.x + e.width), o = A(Math.max(0, a - i) * .58, 36, 84);
|
|
44
52
|
return {
|
|
45
|
-
x:
|
|
46
|
-
y:
|
|
53
|
+
x: A((i + a) / 2, t.x + o / 2 + 8, t.x + t.width - o / 2 - 8),
|
|
54
|
+
y: A(n ? e.y + e.height + 10 : e.y - 10, t.y + 18, t.y + t.height - 18),
|
|
47
55
|
side: r,
|
|
48
56
|
width: o
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
|
-
function
|
|
52
|
-
let i =
|
|
53
|
-
x:
|
|
54
|
-
y:
|
|
59
|
+
function N(e, t, n, r) {
|
|
60
|
+
let i = A(n, 0, 1), a = M(e, t), o = Math.min(86, Math.hypot(t.x - e.x, t.y - e.y) * .2), s = {
|
|
61
|
+
x: A((e.x + t.x) / 2 + a.y * o, r.x + 16, r.x + r.width - 16),
|
|
62
|
+
y: A((e.y + t.y) / 2 - a.x * o, r.y + 16, r.y + r.height - 16)
|
|
55
63
|
}, c = 2 * (1 - i) * (s.x - e.x) + 2 * i * (t.x - s.x), l = 2 * (1 - i) * (s.y - e.y) + 2 * i * (t.y - s.y);
|
|
56
64
|
return {
|
|
57
65
|
x: (1 - i) ** 2 * e.x + 2 * (1 - i) * i * s.x + i ** 2 * t.x,
|
|
@@ -59,71 +67,366 @@ function j(e, t, n, r) {
|
|
|
59
67
|
angle: Math.atan2(l, c) * 180 / Math.PI
|
|
60
68
|
};
|
|
61
69
|
}
|
|
62
|
-
function
|
|
63
|
-
let o =
|
|
64
|
-
return
|
|
70
|
+
function P(t = 0, n = 0, r = 0, i = 1, a = 0) {
|
|
71
|
+
let o = A(a, 0, 1), s = 66 * Math.sqrt(1 - .075 * A(r, 0, 1)) - o * 2.4;
|
|
72
|
+
return e(80 - s, 80 - s, s * 2, s * 2, [
|
|
65
73
|
s,
|
|
66
74
|
s,
|
|
67
75
|
s,
|
|
68
76
|
s
|
|
69
77
|
], {
|
|
70
|
-
amplitude: (3.5 + o * 9 +
|
|
78
|
+
amplitude: (3.5 + o * 9 + A(n, 0, 1) * 9) * A(i, .15, 1.25),
|
|
71
79
|
lobes: 3,
|
|
72
80
|
seed: 17,
|
|
73
|
-
phase:
|
|
81
|
+
phase: t
|
|
74
82
|
});
|
|
75
83
|
}
|
|
76
|
-
function
|
|
77
|
-
let
|
|
78
|
-
return
|
|
84
|
+
function F(t, n, r = 20) {
|
|
85
|
+
let i = A(n, 0, 1), a = A(r, 6, 48), o = a + (t - a) * i, s = a + (8 - a) * i;
|
|
86
|
+
return e(-o / 2, -s / 2, o, s, [
|
|
79
87
|
s / 2,
|
|
80
88
|
s / 2,
|
|
81
89
|
s / 2,
|
|
82
90
|
s / 2
|
|
83
91
|
], {
|
|
84
92
|
amplitude: 2.2,
|
|
85
|
-
phase:
|
|
93
|
+
phase: i * Math.PI,
|
|
86
94
|
seed: 17,
|
|
87
95
|
lobes: 3
|
|
88
96
|
});
|
|
89
97
|
}
|
|
90
98
|
//#endregion
|
|
91
|
-
//#region src/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
//#region src/presence/LiquidReveal/geometry.ts
|
|
100
|
+
function I(t, r, i, a = 0, o = 1) {
|
|
101
|
+
let s = Math.max(44, t), c = Math.max(44, r), l = Math.min(28, (s - 12) / 2, (c - 12) / 2), u = e(6, 6, s - 12, c - 12, [
|
|
102
|
+
l,
|
|
103
|
+
l,
|
|
104
|
+
l,
|
|
105
|
+
l
|
|
106
|
+
], {
|
|
107
|
+
amplitude: (i ? 8 : 11) * Math.min(1.25, Math.max(.25, Number.isFinite(o) ? o : 1)),
|
|
108
|
+
lobes: 3,
|
|
109
|
+
seed: 17,
|
|
110
|
+
phase: a
|
|
111
|
+
}), d = Math.max(0, l - 2.5);
|
|
112
|
+
return {
|
|
113
|
+
outline: u,
|
|
114
|
+
ribbon: `${u} ${n(8.5, 8.5, s - 17, c - 17, [
|
|
115
|
+
d,
|
|
116
|
+
d,
|
|
117
|
+
d,
|
|
118
|
+
d
|
|
119
|
+
])}`
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/liquid/ambientClock.ts
|
|
124
|
+
var L = /* @__PURE__ */ new Map(), R, z, B = !1;
|
|
125
|
+
function V() {
|
|
126
|
+
if (B || z !== void 0 || (clearTimeout(R), R = void 0, !L.size)) return;
|
|
127
|
+
let e = Math.min(...[...L.values()].map((e) => e.at));
|
|
128
|
+
R = setTimeout(() => {
|
|
129
|
+
R = void 0, z = requestAnimationFrame((e) => {
|
|
130
|
+
z = void 0, B = !0;
|
|
99
131
|
try {
|
|
100
|
-
for (let [t, n] of [...
|
|
132
|
+
for (let [t, n] of [...L]) n.at > e + 1 || !L.has(t) || (L.delete(t), n.paint(e));
|
|
101
133
|
} finally {
|
|
102
|
-
|
|
134
|
+
B = !1, V();
|
|
103
135
|
}
|
|
104
136
|
});
|
|
105
137
|
}, Math.max(0, e - performance.now()));
|
|
106
138
|
}
|
|
107
|
-
function
|
|
139
|
+
function ie(e, t = 1e3 / 12) {
|
|
108
140
|
let n = Symbol();
|
|
109
|
-
return
|
|
141
|
+
return L.set(n, {
|
|
110
142
|
at: performance.now() + t,
|
|
111
143
|
paint: e
|
|
112
|
-
}),
|
|
113
|
-
|
|
144
|
+
}), V(), () => {
|
|
145
|
+
L.delete(n), !L.size && z !== void 0 && (cancelAnimationFrame(z), z = void 0), V();
|
|
114
146
|
};
|
|
115
147
|
}
|
|
116
148
|
//#endregion
|
|
117
|
-
//#region src/
|
|
118
|
-
|
|
119
|
-
|
|
149
|
+
//#region src/presence/LiquidReveal/useAmbient.ts
|
|
150
|
+
function H(e, t, n, r, i, a = 1, l = 1) {
|
|
151
|
+
let d = p(0);
|
|
152
|
+
return u(() => {
|
|
153
|
+
let u = e.current;
|
|
154
|
+
if (!u || !t || !n || !r) {
|
|
155
|
+
u && (u.dataset.revealAmbient = "static");
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
let f = !0, p = !0, m = performance.now(), h = () => {}, g = u.querySelector("[data-reveal-outline]"), _ = u.querySelector("[data-reveal-body]"), v = u.querySelector("[data-reveal-ribbon]"), y = (n + 24) * (r + 24), b = (e) => {
|
|
159
|
+
if (!f || !p || document.hidden) return;
|
|
160
|
+
let t = Math.min(160, Math.max(0, e - m));
|
|
161
|
+
m = e;
|
|
162
|
+
let x = document.querySelector("dialog:modal"), S = x && !x.contains(u) || ["drawing", "preparing"].includes(u.dataset.revealMotion ?? ""), C = o();
|
|
163
|
+
if (S || C.activeGroups > 0 || !s(y)) {
|
|
164
|
+
u.dataset.revealAmbient = "paused", h = ie(b, 250);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
try {
|
|
168
|
+
d.current += t * Math.PI * 2 * l / 1e4;
|
|
169
|
+
let e = I(n, r, i, d.current, a);
|
|
170
|
+
g?.setAttribute("d", e.outline), _?.setAttribute("d", e.outline), v?.setAttribute("d", e.ribbon), u.dataset.revealAmbient = "flowing";
|
|
171
|
+
} finally {
|
|
172
|
+
c();
|
|
173
|
+
}
|
|
174
|
+
h = ie(b);
|
|
175
|
+
}, x = () => {
|
|
176
|
+
h(), m = performance.now(), u.dataset.revealAmbient = "paused", p && !document.hidden && (h = ie(b));
|
|
177
|
+
}, S = typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
|
|
178
|
+
p = e[0]?.isIntersecting ?? !1, x();
|
|
179
|
+
});
|
|
180
|
+
return S?.observe(u), document.addEventListener("visibilitychange", x), x(), () => {
|
|
181
|
+
f = !1, h(), S?.disconnect(), document.removeEventListener("visibilitychange", x), u.dataset.revealAmbient = "static";
|
|
182
|
+
};
|
|
183
|
+
}, [
|
|
184
|
+
e,
|
|
185
|
+
t,
|
|
186
|
+
n,
|
|
187
|
+
r,
|
|
188
|
+
i,
|
|
189
|
+
a,
|
|
190
|
+
l
|
|
191
|
+
]), d;
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/presence/LiquidReveal/entranceGeometry.ts
|
|
195
|
+
var U = (e) => {
|
|
196
|
+
let t = Math.min(1, Math.max(0, e));
|
|
197
|
+
return t * t * t * (10 + t * (-15 + 6 * t));
|
|
198
|
+
};
|
|
199
|
+
function W(t, n, r, i, a, o, s = 1) {
|
|
200
|
+
let c = I(t, n, r, 0, s).outline;
|
|
201
|
+
return Array.from({ length: 49 }, (l, u) => {
|
|
202
|
+
let d = u / 48, f = U((d - .08) / .34), p = N(i, a, f, o), m = U((d - .39) / .46), h = U((d - .47) / .46), g = U((d - .3) / .14) * (1 - m), _ = 8 + 20 * U(d / .15) + 10 * g, v = 1 + Math.sin(f * Math.PI) * .35, y = a.x - i.x, b = a.y - i.y, x = Math.abs(y) > Math.abs(b), S = _ * (x ? v : 1 / Math.sqrt(v)), C = _ * (x ? 1 / Math.sqrt(v) : v), w = S + (t - 12 - S) * m, T = C + (n - 12 - C) * h, E = (p.x - S / 2) * (1 - m) + 6 * m, D = (p.y - C / 2) * (1 - h) + 6 * h, O = Math.min(w / 2, T / 2, 28 + 12 * (1 - h));
|
|
203
|
+
return {
|
|
204
|
+
d: `path("${d >= .95 ? c : e(E, D, w, T, [
|
|
205
|
+
O,
|
|
206
|
+
O,
|
|
207
|
+
O,
|
|
208
|
+
O
|
|
209
|
+
], {
|
|
210
|
+
amplitude: 1.2 + ((r ? 8 : 11) * s - 1.2) * h,
|
|
211
|
+
seed: 17,
|
|
212
|
+
lobes: 3,
|
|
213
|
+
phase: 0
|
|
214
|
+
})}")`,
|
|
215
|
+
offset: d
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/presence/LiquidReveal/useEntrance.ts
|
|
221
|
+
function G(e, t, n, r, i, a, o, l, u = 1) {
|
|
222
|
+
let d = p(null);
|
|
223
|
+
f(() => {
|
|
224
|
+
let f = e.current;
|
|
225
|
+
if (!f) return;
|
|
226
|
+
if (!t || a || f.contains(document.activeElement) || window.matchMedia("(forced-colors: active)").matches) {
|
|
227
|
+
d.current = n, f.dataset.revealMotion = "static";
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (d.current === n || (f.dataset.revealMotion = "preparing", !r || !i)) return;
|
|
231
|
+
let p = !0, m = !1, h = !1, g = 0, _ = 0, v = [], y = () => {
|
|
232
|
+
v.forEach((e) => e.cancel()), v.length = 0, m && c(), m = !1, f.dataset.revealMotion = h ? "settled" : "static";
|
|
233
|
+
}, b = () => {
|
|
234
|
+
if (!p) return;
|
|
235
|
+
if (getComputedStyle(f).visibility === "hidden") {
|
|
236
|
+
if (++_ < 12) {
|
|
237
|
+
g = requestAnimationFrame(b);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
y();
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
let e = t.current?.getBoundingClientRect(), a = f.getBoundingClientRect(), c = f.querySelector("[data-reveal-body]"), x = f.querySelector("[data-reveal-material]"), S = f.querySelector(".game-ui-liquid-reveal-content");
|
|
244
|
+
if (d.current = n, f.contains(document.activeElement) || !e || !j(e) || document.hidden || typeof f.animate != "function" || !s((r + 24) * (i + 24))) {
|
|
245
|
+
y();
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
m = !0, h = !0, f.dataset.revealMotion = "drawing";
|
|
249
|
+
let C = a.width / r || 1, w = a.height / i || 1, T = {
|
|
250
|
+
x: (e.x + e.width / 2 - a.x) / C,
|
|
251
|
+
y: (e.y + e.height / 2 - a.y) / w
|
|
252
|
+
}, E = {
|
|
253
|
+
x: Math.min(r - 28, Math.max(28, T.x)),
|
|
254
|
+
y: T.y > i / 2 ? i - 28 : 28
|
|
255
|
+
}, D = {
|
|
256
|
+
x: -a.x / C,
|
|
257
|
+
y: -a.y / w,
|
|
258
|
+
width: innerWidth / C,
|
|
259
|
+
height: innerHeight / w
|
|
260
|
+
};
|
|
261
|
+
if (o && c && CSS.supports("d", "path(\"M0 0L1 1Z\")")) {
|
|
262
|
+
let e = W(r, i, l, T, E, D, u);
|
|
263
|
+
v.push(c.animate(e, {
|
|
264
|
+
duration: 720,
|
|
265
|
+
fill: "both",
|
|
266
|
+
easing: "linear"
|
|
267
|
+
})), x && v.push(x.animate([
|
|
268
|
+
{ opacity: 0 },
|
|
269
|
+
{
|
|
270
|
+
opacity: 0,
|
|
271
|
+
offset: .93
|
|
272
|
+
},
|
|
273
|
+
{ opacity: 1 }
|
|
274
|
+
], {
|
|
275
|
+
duration: 720,
|
|
276
|
+
fill: "both"
|
|
277
|
+
})), S && v.push(S.animate([
|
|
278
|
+
{ opacity: 0 },
|
|
279
|
+
{
|
|
280
|
+
opacity: 0,
|
|
281
|
+
offset: .78
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
opacity: 1,
|
|
285
|
+
offset: .98
|
|
286
|
+
},
|
|
287
|
+
{ opacity: 1 }
|
|
288
|
+
], {
|
|
289
|
+
duration: 720,
|
|
290
|
+
fill: "both"
|
|
291
|
+
}));
|
|
292
|
+
} else x && v.push(x.animate([{ opacity: .2 }, { opacity: 1 }], { duration: 180 }));
|
|
293
|
+
let O = t.current?.querySelector(".game-ui-liquid-presence > svg");
|
|
294
|
+
O && v.push(O.animate([
|
|
295
|
+
{ transform: "scale(1)" },
|
|
296
|
+
{
|
|
297
|
+
transform: "scale(1.05, .9)",
|
|
298
|
+
offset: .22
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
transform: "scale(.96, 1.04)",
|
|
302
|
+
offset: .5
|
|
303
|
+
},
|
|
304
|
+
{ transform: "scale(1)" }
|
|
305
|
+
], {
|
|
306
|
+
duration: 440,
|
|
307
|
+
easing: "ease-in-out"
|
|
308
|
+
})), Promise.all(v.map((e) => e.finished)).then(y, y);
|
|
309
|
+
};
|
|
310
|
+
g = requestAnimationFrame(b);
|
|
311
|
+
let x = () => {
|
|
312
|
+
cancelAnimationFrame(g), y();
|
|
313
|
+
}, S = () => {
|
|
314
|
+
document.hidden && x();
|
|
315
|
+
};
|
|
316
|
+
return f.addEventListener("focusin", x), f.addEventListener("pointerdown", x, !0), document.addEventListener("visibilitychange", S), window.addEventListener("resize", x), window.addEventListener("scroll", x, !0), () => {
|
|
317
|
+
p = !1, x(), f.removeEventListener("focusin", x), f.removeEventListener("pointerdown", x, !0), document.removeEventListener("visibilitychange", S), window.removeEventListener("resize", x), window.removeEventListener("scroll", x, !0);
|
|
318
|
+
};
|
|
319
|
+
}, [
|
|
320
|
+
e,
|
|
321
|
+
t,
|
|
322
|
+
n,
|
|
323
|
+
r,
|
|
324
|
+
i,
|
|
325
|
+
a,
|
|
326
|
+
o,
|
|
327
|
+
l,
|
|
328
|
+
u
|
|
329
|
+
]);
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/presence/LiquidReveal/LiquidReveal.tsx
|
|
333
|
+
function K({ children: e, source: n, revealKey: r = "initial", variant: s = "content", reducedMotion: c, idleMotion: l = "still", colorFrom: u, colorTo: h, motionIntensity: v = 1, motionSpeed: y = 1, className: b = "" }) {
|
|
334
|
+
let x = a() || c === !0, S = A(v, .25, 1.25), C = A(y, .5, 1.5), w = p(null), [T, E] = m({
|
|
335
|
+
width: 0,
|
|
336
|
+
height: 0
|
|
337
|
+
}), D = `liquid-reveal-${d().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
338
|
+
f(() => {
|
|
339
|
+
let e = w.current;
|
|
340
|
+
if (!e) return;
|
|
341
|
+
let t = () => {
|
|
342
|
+
let t = e.clientWidth, n = e.clientHeight;
|
|
343
|
+
E((e) => e.width === t && e.height === n ? e : {
|
|
344
|
+
width: t,
|
|
345
|
+
height: n
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
t();
|
|
349
|
+
let n = new ResizeObserver(t);
|
|
350
|
+
return n.observe(e), () => n.disconnect();
|
|
351
|
+
}, []), G(w, n, r, T.width, T.height, x, !0, s === "input", S);
|
|
352
|
+
let O = Math.max(44, T.width), j = Math.max(44, T.height), ee = H(w, !x && l === "breathe", T.width, T.height, s === "input", S, C), te = I(O, j, s === "input", ee.current, S), M = (O + 24) * (j + 24) <= o().maxFilterArea;
|
|
353
|
+
return /* @__PURE__ */ _("div", {
|
|
354
|
+
ref: w,
|
|
355
|
+
className: `game-ui-liquid-reveal ${b}`,
|
|
356
|
+
style: {
|
|
357
|
+
...u ? { "--liquid-presence-from": u } : {},
|
|
358
|
+
...h ? { "--liquid-presence-to": h } : {}
|
|
359
|
+
},
|
|
360
|
+
"data-reveal-variant": s,
|
|
361
|
+
"data-reveal-surface": "material",
|
|
362
|
+
"data-reveal-filter": M ? "volume" : "flat",
|
|
363
|
+
children: [/* @__PURE__ */ g("div", {
|
|
364
|
+
className: "game-ui-liquid-reveal-content",
|
|
365
|
+
children: e
|
|
366
|
+
}), T.width > 0 && /* @__PURE__ */ _("svg", {
|
|
367
|
+
className: "game-ui-liquid-reveal-ink",
|
|
368
|
+
width: O,
|
|
369
|
+
height: j,
|
|
370
|
+
viewBox: `0 0 ${O} ${j}`,
|
|
371
|
+
"aria-hidden": "true",
|
|
372
|
+
focusable: "false",
|
|
373
|
+
children: [
|
|
374
|
+
/* @__PURE__ */ _("defs", { children: [/* @__PURE__ */ g("linearGradient", {
|
|
375
|
+
id: `${D}-fill`,
|
|
376
|
+
x1: "0",
|
|
377
|
+
y1: "0",
|
|
378
|
+
x2: "0",
|
|
379
|
+
y2: "1",
|
|
380
|
+
children: k.map(([e, t]) => /* @__PURE__ */ g("stop", {
|
|
381
|
+
offset: e,
|
|
382
|
+
style: { stopColor: t }
|
|
383
|
+
}, e))
|
|
384
|
+
}), /* @__PURE__ */ g("filter", {
|
|
385
|
+
id: `${D}-finish`,
|
|
386
|
+
x: "-12",
|
|
387
|
+
y: "-12",
|
|
388
|
+
width: O + 24,
|
|
389
|
+
height: j + 24,
|
|
390
|
+
filterUnits: "userSpaceOnUse",
|
|
391
|
+
colorInterpolationFilters: "sRGB",
|
|
392
|
+
children: /* @__PURE__ */ g(i, {
|
|
393
|
+
blur: t.blur,
|
|
394
|
+
contrast: t.contrast,
|
|
395
|
+
gloss: t.gloss,
|
|
396
|
+
shadows: [],
|
|
397
|
+
stroke: null,
|
|
398
|
+
waviness: 0
|
|
399
|
+
})
|
|
400
|
+
})] }),
|
|
401
|
+
/* @__PURE__ */ g("path", {
|
|
402
|
+
"data-reveal-body": "",
|
|
403
|
+
d: te.outline,
|
|
404
|
+
fill: `url(#${D}-fill)`
|
|
405
|
+
}),
|
|
406
|
+
/* @__PURE__ */ g("g", {
|
|
407
|
+
"data-reveal-material": "",
|
|
408
|
+
filter: M ? `url(#${D}-finish)` : void 0,
|
|
409
|
+
children: /* @__PURE__ */ g("path", {
|
|
410
|
+
"data-reveal-outline": "",
|
|
411
|
+
d: te.outline,
|
|
412
|
+
fill: `url(#${D}-fill)`
|
|
413
|
+
})
|
|
414
|
+
})
|
|
415
|
+
]
|
|
416
|
+
})]
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region src/presence/motion.ts
|
|
421
|
+
var q = r("cubic-bezier(0.45, 0, 0.2, 1)");
|
|
422
|
+
function ae(e) {
|
|
120
423
|
let { source: t, destination: n, viewport: r, returning: i = !1, from: a, origin: o } = e, s = o?.seat == null ? 0 : 180;
|
|
121
424
|
if (s && e.elapsed < s) return {
|
|
122
425
|
...o,
|
|
123
426
|
phase: "gather",
|
|
124
|
-
seat: o.seat * (1 -
|
|
427
|
+
seat: o.seat * (1 - q(A(e.elapsed / s, 0, 1)))
|
|
125
428
|
};
|
|
126
|
-
let c = Math.max(0, e.elapsed - s), l =
|
|
429
|
+
let c = Math.max(0, e.elapsed - s), l = te(t), u = M(l, n), d = Math.atan2(u.y, u.x) * 180 / Math.PI, f = t.width / 160, p = {
|
|
127
430
|
x: l.x + u.x * 112 * f,
|
|
128
431
|
y: l.y + u.y * 112 * f
|
|
129
432
|
}, m = {
|
|
@@ -138,7 +441,7 @@ function ne(e) {
|
|
|
138
441
|
};
|
|
139
442
|
if (i) {
|
|
140
443
|
if (o?.bud) {
|
|
141
|
-
let e =
|
|
444
|
+
let e = q(A(c / 320, 0, 1)), t = o.bud.x + (80 - o.bud.x) * e, n = o.bud.y + (80 - o.bud.y) * e;
|
|
142
445
|
return {
|
|
143
446
|
...m,
|
|
144
447
|
phase: e < 1 ? "merge" : "still",
|
|
@@ -154,9 +457,9 @@ function ne(e) {
|
|
|
154
457
|
} : null
|
|
155
458
|
};
|
|
156
459
|
}
|
|
157
|
-
let e =
|
|
460
|
+
let e = A(c / 620, 0, 1);
|
|
158
461
|
if (e < 1) {
|
|
159
|
-
let t =
|
|
462
|
+
let t = N(a ?? n, p, q(e), r);
|
|
160
463
|
return {
|
|
161
464
|
...m,
|
|
162
465
|
phase: "return",
|
|
@@ -166,11 +469,11 @@ function ne(e) {
|
|
|
166
469
|
stretch: 1 + .3 * Math.sin(e * Math.PI)
|
|
167
470
|
};
|
|
168
471
|
}
|
|
169
|
-
let t =
|
|
472
|
+
let t = A((c - 620) / 420, 0, 1), i = 112 - 78 * q(t);
|
|
170
473
|
return {
|
|
171
474
|
...m,
|
|
172
475
|
phase: t < 1 ? "merge" : "still",
|
|
173
|
-
separation: 1 -
|
|
476
|
+
separation: 1 - q(t),
|
|
174
477
|
point: {
|
|
175
478
|
x: l.x + u.x * i * f,
|
|
176
479
|
y: l.y + u.y * i * f
|
|
@@ -178,13 +481,13 @@ function ne(e) {
|
|
|
178
481
|
bud: t < 1 ? {
|
|
179
482
|
x: 80 + u.x * i,
|
|
180
483
|
y: 80 + u.y * i,
|
|
181
|
-
radius: 16 * (1 - .65 *
|
|
484
|
+
radius: 16 * (1 - .65 * q(t))
|
|
182
485
|
} : null
|
|
183
486
|
};
|
|
184
487
|
}
|
|
185
488
|
let h = o?.phase === "split" ? o.bud : null, g = h ? o.separation : 0, _ = h ? Math.max(180, 460 * (1 - g)) : a ? 0 : 460;
|
|
186
489
|
if (c < _) {
|
|
187
|
-
let e =
|
|
490
|
+
let e = q(c / _), t = 42 + 70 * e, n = h ? h.x + (80 + u.x * 112 - h.x) * e : 80 + u.x * t, r = h ? h.y + (80 + u.y * 112 - h.y) * e : 80 + u.y * t, i = h?.radius ?? 16 * .55;
|
|
188
491
|
return {
|
|
189
492
|
...m,
|
|
190
493
|
phase: "split",
|
|
@@ -200,9 +503,9 @@ function ne(e) {
|
|
|
200
503
|
}
|
|
201
504
|
};
|
|
202
505
|
}
|
|
203
|
-
let v = a ?? p, y = 560 + Math.min(260, Math.hypot(n.x - v.x, n.y - v.y) * .26), b =
|
|
506
|
+
let v = a ?? p, y = 560 + Math.min(260, Math.hypot(n.x - v.x, n.y - v.y) * .26), b = A((c - _) / y, 0, 1);
|
|
204
507
|
if (b < 1) {
|
|
205
|
-
let e =
|
|
508
|
+
let e = N(v, n, q(b), r);
|
|
206
509
|
return {
|
|
207
510
|
...m,
|
|
208
511
|
phase: "flight",
|
|
@@ -212,54 +515,54 @@ function ne(e) {
|
|
|
212
515
|
stretch: 1 + .35 * Math.sin(b * Math.PI)
|
|
213
516
|
};
|
|
214
517
|
}
|
|
215
|
-
let x =
|
|
518
|
+
let x = A((c - _ - y) / 380, 0, 1);
|
|
216
519
|
return {
|
|
217
520
|
...m,
|
|
218
521
|
phase: x < 1 ? "land" : "dock",
|
|
219
522
|
separation: 1,
|
|
220
523
|
point: n,
|
|
221
|
-
seat:
|
|
524
|
+
seat: q(x)
|
|
222
525
|
};
|
|
223
526
|
}
|
|
224
527
|
//#endregion
|
|
225
|
-
//#region src/
|
|
226
|
-
function
|
|
528
|
+
//#region src/presence/paint.ts
|
|
529
|
+
function J(e, t) {
|
|
227
530
|
e.toggleAttribute("hidden", !t);
|
|
228
531
|
let n = e.style, r = t ? "" : "none";
|
|
229
532
|
n.display !== r && (n.display = r);
|
|
230
533
|
}
|
|
231
|
-
var
|
|
534
|
+
var Y = (e, t, n) => {
|
|
232
535
|
let r = String(n);
|
|
233
536
|
e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
234
537
|
};
|
|
235
|
-
function
|
|
538
|
+
function oe(e, t, n) {
|
|
236
539
|
let r = e.overlay.getBoundingClientRect(), i = r.width / (e.overlay.clientWidth || r.width || 1) || 1, a = r.height / (e.overlay.clientHeight || r.height || 1) || 1;
|
|
237
540
|
return {
|
|
238
541
|
x: (t - r.x) / i,
|
|
239
542
|
y: (n - r.y) / a
|
|
240
543
|
};
|
|
241
544
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
545
|
+
function se(e, t, n, r, i = 0, a = 1, o = !1, s = 0) {
|
|
546
|
+
Y(e.source, "data-liquid-phase", t.phase), Y(e.overlay, "data-liquid-phase", t.phase), Y(e.body, "d", P(r, i, t.separation, a, s));
|
|
244
547
|
let c = t.bud ? Math.sin(t.separation * Math.PI) * .045 : 0;
|
|
245
|
-
|
|
548
|
+
Y(e.body, "transform", `translate(${((t.bud?.x ?? 80) - 80) * c} ${((t.bud?.y ?? 80) - 80) * c})`), J(e.bud, !!t.bud), t.bud && (Y(e.bud, "cx", t.bud.x), Y(e.bud, "cy", t.bud.y), Y(e.bud, "r", t.bud.radius));
|
|
246
549
|
let l = t.phase === "flight" || t.phase === "return";
|
|
247
|
-
|
|
248
|
-
let u =
|
|
550
|
+
J(e.flight, l);
|
|
551
|
+
let u = oe(e, t.point.x, t.point.y);
|
|
249
552
|
if (l) {
|
|
250
553
|
let n = t.diameter / 32;
|
|
251
|
-
e.flight.style.transform = `translate(${u.x - 48}px, ${u.y - 36}px)`,
|
|
554
|
+
e.flight.style.transform = `translate(${u.x - 48}px, ${u.y - 36}px)`, Y(e.flightBody, "transform", `rotate(${t.angle}) scale(${n * t.stretch} ${n / Math.sqrt(t.stretch)})`), Y(e.trail, "opacity", Math.min(.8, (t.stretch - 1) * 3));
|
|
252
555
|
}
|
|
253
|
-
|
|
556
|
+
J(e.seat, t.seat !== null), t.seat !== null && (e.seat.style.transform = `translate(${u.x - 56}px, ${u.y - 28}px)`, Y(e.seatBody, "d", F(t.seatWidth ?? n, t.seat, t.diameter))), J(e.label, o || t.phase !== "gather" && t.seat !== null && t.seat > .45);
|
|
254
557
|
}
|
|
255
|
-
function
|
|
558
|
+
function ce(e, t, n, r) {
|
|
256
559
|
e.satellites.forEach((e, i) => {
|
|
257
|
-
if (
|
|
560
|
+
if (J(e, n), !n) return;
|
|
258
561
|
let a = t * .7 + i * Math.PI * 2 / 3, o = 63 + Math.max(0, Math.sin(t * 1.6 + i * 2)) * (16 + r * 12);
|
|
259
|
-
|
|
562
|
+
Y(e, "cx", 80 + Math.cos(a) * o), Y(e, "cy", 80 + Math.sin(a) * o), Y(e, "r", 7 + i * 1.5);
|
|
260
563
|
});
|
|
261
564
|
}
|
|
262
|
-
function
|
|
565
|
+
function X() {
|
|
263
566
|
let e = window.visualViewport;
|
|
264
567
|
return {
|
|
265
568
|
x: e?.offsetLeft ?? 0,
|
|
@@ -269,24 +572,24 @@ function H() {
|
|
|
269
572
|
};
|
|
270
573
|
}
|
|
271
574
|
//#endregion
|
|
272
|
-
//#region src/
|
|
273
|
-
function
|
|
575
|
+
//#region src/presence/tracking.ts
|
|
576
|
+
function le(e) {
|
|
274
577
|
try {
|
|
275
578
|
let t = e.contextElement;
|
|
276
579
|
if (t && t.ownerDocument !== document || t && (!t.isConnected || t.closest("[hidden], [inert]")) || t && getComputedStyle(t).visibility === "hidden") return null;
|
|
277
580
|
let n = document.querySelector("dialog:modal");
|
|
278
581
|
if (n && (!t || !n.contains(t))) return null;
|
|
279
582
|
let r = e.getRect();
|
|
280
|
-
return
|
|
583
|
+
return j(r) && ee(r, X()) ? r : null;
|
|
281
584
|
} catch {
|
|
282
585
|
return null;
|
|
283
586
|
}
|
|
284
587
|
}
|
|
285
|
-
function
|
|
588
|
+
function ue(e, t, n, r) {
|
|
286
589
|
let i = t.contextElement, a = {
|
|
287
590
|
...i ? { contextElement: i } : {},
|
|
288
591
|
getBoundingClientRect: () => {
|
|
289
|
-
let e =
|
|
592
|
+
let e = le(t) ?? {
|
|
290
593
|
x: 0,
|
|
291
594
|
y: 0,
|
|
292
595
|
width: 0,
|
|
@@ -323,7 +626,7 @@ function se(e, t, n, r) {
|
|
|
323
626
|
attributeFilter: ["open", "inert"]
|
|
324
627
|
});
|
|
325
628
|
let l = () => {}, u = !1, d = /* @__PURE__ */ new Map(), f = (e) => {
|
|
326
|
-
l(), u = e, l =
|
|
629
|
+
l(), u = e, l = b(i ?? a, n, r, { animationFrame: !i || e });
|
|
327
630
|
}, p = (e) => {
|
|
328
631
|
if (!(e.target instanceof Element) || !o.has(e.target)) return;
|
|
329
632
|
let t = "propertyName" in e ? String(e.propertyName) : "animationName" in e ? String(e.animationName) : e.type, n = d.get(e.target) ?? /* @__PURE__ */ new Set();
|
|
@@ -343,36 +646,36 @@ function se(e, t, n, r) {
|
|
|
343
646
|
};
|
|
344
647
|
}
|
|
345
648
|
//#endregion
|
|
346
|
-
//#region src/
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
let n =
|
|
649
|
+
//#region src/presence/shared/panelObstacles.ts
|
|
650
|
+
var Z = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Set();
|
|
651
|
+
function de(e, t) {
|
|
652
|
+
let n = Z.get(e), r = t && j(t) ? {
|
|
350
653
|
x: t.x,
|
|
351
654
|
y: t.y,
|
|
352
655
|
width: t.width,
|
|
353
656
|
height: t.height
|
|
354
657
|
} : null;
|
|
355
658
|
if (!(!n && !r || n && r && n.x === r.x && n.y === r.y && n.width === r.width && n.height === r.height)) {
|
|
356
|
-
r ?
|
|
357
|
-
for (let e of [...
|
|
659
|
+
r ? Z.set(e, r) : Z.delete(e);
|
|
660
|
+
for (let e of [...Q]) try {
|
|
358
661
|
e();
|
|
359
662
|
} catch {}
|
|
360
663
|
}
|
|
361
664
|
}
|
|
362
|
-
function
|
|
363
|
-
return [...
|
|
665
|
+
function fe(e) {
|
|
666
|
+
return [...Z].filter(([t]) => t.isConnected && !t.contains(e) && !e.contains(t)).map(([, e]) => e);
|
|
364
667
|
}
|
|
365
|
-
function
|
|
366
|
-
return
|
|
367
|
-
|
|
668
|
+
function pe(e) {
|
|
669
|
+
return Q.add(e), () => {
|
|
670
|
+
Q.delete(e);
|
|
368
671
|
};
|
|
369
672
|
}
|
|
370
|
-
function
|
|
673
|
+
function me(e, t, n, r) {
|
|
371
674
|
let { width: i, height: a } = t;
|
|
372
675
|
if (!Number.isFinite(i + a) || i <= 0 || a <= 0) return null;
|
|
373
676
|
let o = n.x + 12, s = n.y + 12, c = n.x + n.width - i - 12, l = n.y + n.height - a - 12;
|
|
374
677
|
if (c < o || l < s) return null;
|
|
375
|
-
let u = r.filter(
|
|
678
|
+
let u = r.filter(j), d = [
|
|
376
679
|
e.x,
|
|
377
680
|
o,
|
|
378
681
|
c
|
|
@@ -395,67 +698,67 @@ function ue(e, t, n, r) {
|
|
|
395
698
|
return p;
|
|
396
699
|
}
|
|
397
700
|
//#endregion
|
|
398
|
-
//#region src/
|
|
399
|
-
function
|
|
400
|
-
let
|
|
401
|
-
|
|
402
|
-
let
|
|
403
|
-
|
|
404
|
-
let
|
|
405
|
-
if (!
|
|
406
|
-
let
|
|
407
|
-
source:
|
|
408
|
-
overlay:
|
|
409
|
-
body:
|
|
410
|
-
bud:
|
|
411
|
-
satellites: [...
|
|
412
|
-
flight:
|
|
413
|
-
flightBody:
|
|
414
|
-
trail:
|
|
415
|
-
seat:
|
|
416
|
-
seatBody:
|
|
417
|
-
label:
|
|
418
|
-
},
|
|
419
|
-
|
|
420
|
-
let
|
|
701
|
+
//#region src/presence/LiquidPresence/useMotion.ts
|
|
702
|
+
function $(e, t, n, r) {
|
|
703
|
+
let i = p(n);
|
|
704
|
+
i.current = n;
|
|
705
|
+
let a = !!n.guideContent, l = p(null), d = p(null), f = p(null), m = p(0), h = p(+(n.idleMotion === "breathe")), g = p(() => {});
|
|
706
|
+
u(() => {
|
|
707
|
+
let n = e.current, r = t.current;
|
|
708
|
+
if (!n || !r) return;
|
|
709
|
+
let a = {
|
|
710
|
+
source: n,
|
|
711
|
+
overlay: r,
|
|
712
|
+
body: n.querySelector("[data-presence-body]"),
|
|
713
|
+
bud: n.querySelector("[data-presence-bud]"),
|
|
714
|
+
satellites: [...n.querySelectorAll("[data-presence-satellite]")],
|
|
715
|
+
flight: r.querySelector(".game-ui-liquid-presence-flight"),
|
|
716
|
+
flightBody: r.querySelector("[data-presence-flight-body]"),
|
|
717
|
+
trail: r.querySelector("[data-presence-trail]"),
|
|
718
|
+
seat: r.querySelector(".game-ui-liquid-presence-seat"),
|
|
719
|
+
seatBody: r.querySelector("[data-presence-seat-body]"),
|
|
720
|
+
label: r.querySelector(".game-ui-liquid-presence-label")
|
|
721
|
+
}, u = i.current.target ?? null;
|
|
722
|
+
u || (d.current = null), u?.key === d.current && (u = null);
|
|
723
|
+
let p = l.current, _ = !u && !!(p && p.phase !== "still"), v = p && [
|
|
421
724
|
"flight",
|
|
422
725
|
"dock",
|
|
423
726
|
"land",
|
|
424
727
|
"gather",
|
|
425
728
|
"return"
|
|
426
|
-
].includes(
|
|
427
|
-
|
|
428
|
-
},
|
|
429
|
-
if (
|
|
430
|
-
|
|
729
|
+
].includes(p.phase) ? p.point : void 0, y = p?.point ?? te(n.getBoundingClientRect()), b = p?.seatWidth ?? 48, C = p ?? void 0, D = n.getBoundingClientRect(), O = performance.now(), k = null, j = () => {}, M = !0, N = !1, P = !1, F = !0, I = 0, L = m.current, R = performance.now(), z = 0, B = 0, V = null, H = () => {}, U, W = () => {
|
|
730
|
+
N && c(), N = !1;
|
|
731
|
+
}, G = (e) => {
|
|
732
|
+
if (u) {
|
|
733
|
+
d.current = u.key, u = null, _ = !!(l.current && l.current.phase !== "still"), C = l.current ?? void 0, v = l.current?.point, y = v ?? y, O = performance.now(), H(), clearTimeout(U), B++, J(a.label, !1);
|
|
431
734
|
try {
|
|
432
|
-
|
|
735
|
+
i.current.onDismiss?.(e);
|
|
433
736
|
} catch {}
|
|
434
737
|
$();
|
|
435
738
|
}
|
|
436
|
-
},
|
|
437
|
-
if (!
|
|
438
|
-
let e =
|
|
439
|
-
|
|
739
|
+
}, K = () => {
|
|
740
|
+
if (!u) return null;
|
|
741
|
+
let e = a.label.style.pointerEvents;
|
|
742
|
+
i.current.guideContent && (a.label.style.pointerEvents = "none");
|
|
440
743
|
try {
|
|
441
|
-
return
|
|
744
|
+
return le(i.current.target?.key === u.key ? i.current.target : u);
|
|
442
745
|
} finally {
|
|
443
|
-
|
|
746
|
+
a.label.style.pointerEvents = e;
|
|
444
747
|
}
|
|
445
|
-
},
|
|
446
|
-
if (!
|
|
447
|
-
let e =
|
|
748
|
+
}, q = () => {
|
|
749
|
+
if (!u) return;
|
|
750
|
+
let e = K();
|
|
448
751
|
if (!e) {
|
|
449
|
-
|
|
752
|
+
G("unavailable");
|
|
450
753
|
return;
|
|
451
754
|
}
|
|
452
|
-
let t =
|
|
453
|
-
|
|
755
|
+
let t = re(e, X()), n = ne(e, X()), r = (e) => A(e === "top" ? n.y - 10 : n.y + n.height + 10, X().y + 18, X().y + X().height - 18);
|
|
756
|
+
y = {
|
|
454
757
|
x: t.x,
|
|
455
|
-
y: r(
|
|
456
|
-
},
|
|
457
|
-
let
|
|
458
|
-
...
|
|
758
|
+
y: r(V ?? t.side)
|
|
759
|
+
}, b = t.width;
|
|
760
|
+
let o = {
|
|
761
|
+
...u.contextElement ? { contextElement: u.contextElement } : {},
|
|
459
762
|
getBoundingClientRect: () => ({
|
|
460
763
|
...n,
|
|
461
764
|
top: n.y,
|
|
@@ -463,296 +766,277 @@ function K(e, i, a, o) {
|
|
|
463
766
|
bottom: n.y + n.height,
|
|
464
767
|
right: n.x + n.width
|
|
465
768
|
})
|
|
466
|
-
},
|
|
467
|
-
|
|
769
|
+
}, s = ++B, c = i.current.guideSize === "expanded";
|
|
770
|
+
c || (a.label.style.maxHeight = ""), i.current.guideContent && !a.label.style.transform && (a.label.style.visibility = "hidden", J(a.label, !0)), x(o, a.label, {
|
|
468
771
|
strategy: "absolute",
|
|
469
|
-
placement:
|
|
772
|
+
placement: c && X().width >= 900 ? "right" : t.side,
|
|
470
773
|
middleware: [
|
|
471
|
-
|
|
472
|
-
|
|
774
|
+
w(26),
|
|
775
|
+
S({
|
|
473
776
|
padding: 16,
|
|
474
|
-
...
|
|
777
|
+
...c && X().width >= 900 ? { fallbackPlacements: [
|
|
475
778
|
"left",
|
|
476
779
|
"bottom",
|
|
477
780
|
"top"
|
|
478
781
|
] } : {}
|
|
479
782
|
}),
|
|
480
|
-
|
|
783
|
+
T({
|
|
481
784
|
padding: 16,
|
|
482
|
-
crossAxis: !
|
|
785
|
+
crossAxis: !c
|
|
483
786
|
}),
|
|
484
|
-
...
|
|
787
|
+
...c ? [E({
|
|
485
788
|
padding: 16,
|
|
486
789
|
apply({ availableHeight: e, elements: t }) {
|
|
487
|
-
let n = `${Math.max(0, Math.min(560,
|
|
790
|
+
let n = `${Math.max(0, Math.min(560, X().height * .65, e))}px`;
|
|
488
791
|
t.floating.style.maxHeight !== n && (t.floating.style.maxHeight = n);
|
|
489
792
|
}
|
|
490
793
|
})] : []
|
|
491
794
|
]
|
|
492
795
|
}).then(({ x: e, y: i, placement: o }) => {
|
|
493
|
-
if (
|
|
494
|
-
let
|
|
495
|
-
if (
|
|
496
|
-
let t =
|
|
796
|
+
if (M && s === B) {
|
|
797
|
+
let s = fe(a.label);
|
|
798
|
+
if (s.length && a.label.offsetWidth && a.label.offsetHeight) {
|
|
799
|
+
let t = me({
|
|
497
800
|
x: e,
|
|
498
801
|
y: i
|
|
499
802
|
}, {
|
|
500
|
-
width:
|
|
501
|
-
height:
|
|
502
|
-
},
|
|
803
|
+
width: a.label.offsetWidth,
|
|
804
|
+
height: a.label.offsetHeight
|
|
805
|
+
}, X(), [...s, n]);
|
|
503
806
|
if (!t) {
|
|
504
|
-
|
|
807
|
+
a.label.style.visibility = "hidden";
|
|
505
808
|
return;
|
|
506
809
|
}
|
|
507
810
|
e = t.x, i = t.y;
|
|
508
811
|
}
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
812
|
+
a.label.style.transform = `translate(${e}px, ${i}px)`, a.label.style.visibility = "", V = o.startsWith("top") ? "top" : o.startsWith("bottom") ? "bottom" : t.side;
|
|
813
|
+
let c = r(V);
|
|
814
|
+
y.y !== c && (y = {
|
|
512
815
|
x: t.x,
|
|
513
|
-
y:
|
|
816
|
+
y: c
|
|
514
817
|
}, $());
|
|
515
818
|
}
|
|
516
819
|
}).catch(() => {});
|
|
517
|
-
},
|
|
820
|
+
}, Y = () => [
|
|
518
821
|
"connecting",
|
|
519
822
|
"listening",
|
|
520
823
|
"thinking",
|
|
521
824
|
"speaking",
|
|
522
825
|
"working"
|
|
523
|
-
].includes(
|
|
524
|
-
if (
|
|
826
|
+
].includes(i.current.activity ?? "idle"), oe = () => i.current.idleMotion === "breathe" && (i.current.activity ?? "idle") === "idle", Z = () => {
|
|
827
|
+
if (P = !1, i.current.reducedMotion || i.current.activity === "disabled" || document.hidden || !F || !ee(n.getBoundingClientRect(), X())) return !1;
|
|
525
828
|
let e = document.querySelector("dialog:modal");
|
|
526
|
-
if (e && !e.contains(
|
|
527
|
-
let
|
|
528
|
-
if (
|
|
529
|
-
let
|
|
530
|
-
return
|
|
829
|
+
if (e && !e.contains(n)) return !1;
|
|
830
|
+
let t = u?.contextElement?.closest("dialog") ?? null;
|
|
831
|
+
if (u && n.closest("dialog") !== t) return !1;
|
|
832
|
+
let r = 13184 + (n.getBoundingClientRect().width * 2) ** 2, a = o();
|
|
833
|
+
return a.maxAnimatedGroups === 0 || r > a.maxFilterArea ? (W(), !1) : !(u || _ || Y()) && oe() && !N && a.activeGroups > 0 ? (P = !0, !1) : (N ||= s(r), N);
|
|
531
834
|
};
|
|
532
|
-
function
|
|
533
|
-
if (!
|
|
534
|
-
let t =
|
|
535
|
-
if (!
|
|
536
|
-
_ = !1,
|
|
835
|
+
function Q(e) {
|
|
836
|
+
if (!M || document.hidden) return;
|
|
837
|
+
let t = a.source.getBoundingClientRect();
|
|
838
|
+
if (!a.source.isConnected || a.source.closest("[hidden], [inert]") || t.width <= 0 || t.height <= 0) {
|
|
839
|
+
_ = !1, l.current = null, G("unavailable"), J(a.label, !1), J(a.flight, !1), J(a.seat, !1), W();
|
|
537
840
|
return;
|
|
538
841
|
}
|
|
539
|
-
if (
|
|
540
|
-
|
|
842
|
+
if (u && !K()) {
|
|
843
|
+
G("unavailable");
|
|
541
844
|
return;
|
|
542
845
|
}
|
|
543
|
-
let n =
|
|
544
|
-
elapsed: e -
|
|
545
|
-
source: _ ? t :
|
|
546
|
-
destination:
|
|
547
|
-
viewport:
|
|
846
|
+
let n = Z(), r = ae({
|
|
847
|
+
elapsed: e - O,
|
|
848
|
+
source: _ ? t : D,
|
|
849
|
+
destination: y,
|
|
850
|
+
viewport: X(),
|
|
548
851
|
returning: _,
|
|
549
852
|
...v ? { from: v } : {},
|
|
550
|
-
...
|
|
853
|
+
...C ? { origin: C } : {}
|
|
551
854
|
});
|
|
552
|
-
!
|
|
855
|
+
!u && !_ && (r = {
|
|
553
856
|
...r,
|
|
554
857
|
phase: "still",
|
|
555
858
|
separation: 0,
|
|
556
859
|
bud: null,
|
|
557
860
|
seat: null
|
|
558
|
-
}), (!n ||
|
|
861
|
+
}), (!n || u && f.current === u.key) && (r = {
|
|
559
862
|
...r,
|
|
560
|
-
phase:
|
|
561
|
-
point:
|
|
863
|
+
phase: u ? "dock" : "still",
|
|
864
|
+
point: y,
|
|
562
865
|
bud: null,
|
|
563
|
-
seat:
|
|
564
|
-
separation: +!!
|
|
565
|
-
}), _ && r.phase === "still" && (_ = !1),
|
|
566
|
-
let
|
|
567
|
-
|
|
568
|
-
let
|
|
569
|
-
|
|
570
|
-
let g =
|
|
571
|
-
n && (
|
|
572
|
-
let
|
|
573
|
-
|
|
574
|
-
let
|
|
575
|
-
|
|
866
|
+
seat: u ? 1 : null,
|
|
867
|
+
separation: +!!u
|
|
868
|
+
}), _ && r.phase === "still" && (_ = !1), u && r.phase === "dock" && (f.current = u.key);
|
|
869
|
+
let o = !["still", "dock"].includes(r.phase), s = i.current.levelRef?.current, c = !o && oe(), d = Math.max(0, Math.min(160, e - R));
|
|
870
|
+
R = e;
|
|
871
|
+
let p = typeof s == "number" ? A(s, 0, 1) : 0;
|
|
872
|
+
z += (p - z) * (1 - Math.exp(-d / (p > z ? 65 : 140)));
|
|
873
|
+
let g = A(i.current.motionSpeed ?? 1, .5, 1.5), x = A(i.current.motionIntensity ?? 1, .25, 1.25);
|
|
874
|
+
n && (o || Y() || c) && (L += d * (c ? 84e-5 : .00105) * g), m.current = L, n && (o || Y() || c) && (h.current += (+!!c - h.current) * (1 - Math.exp(-d / 500)));
|
|
875
|
+
let S = n && Y() && !o ? .14 + z * .75 : o ? .2 : 0, w = a.label.hasAttribute("hidden");
|
|
876
|
+
se(a, r, b, L, S, x, !!(i.current.guideContent && u), h.current), ce(a, L, n && i.current.splashes !== !1 && i.current.activity === "speaking" && r.phase === "still", z);
|
|
877
|
+
let T = n && (o || Y()) ? "animated" : n && c ? "ambient" : "static";
|
|
878
|
+
a.source.dataset.liquidMotion !== T && (a.source.dataset.liquidMotion = T), l.current = {
|
|
576
879
|
...r,
|
|
577
|
-
seatWidth: r.phase === "gather" ?
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
},
|
|
880
|
+
seatWidth: r.phase === "gather" ? C?.seatWidth ?? b : b
|
|
881
|
+
}, u && w && !a.label.hasAttribute("hidden") && q(), n && (o || Y()) ? k = requestAnimationFrame(de) : (W(), c && (n || P) && (j = ie(() => {
|
|
882
|
+
j = () => {}, M && !document.hidden && F && de(performance.now());
|
|
883
|
+
}, P ? 250 : 1e3 / 12)));
|
|
581
884
|
}
|
|
582
|
-
function
|
|
583
|
-
if (
|
|
584
|
-
|
|
885
|
+
function de(e) {
|
|
886
|
+
if (k = null, !M || document.hidden) {
|
|
887
|
+
W();
|
|
585
888
|
return;
|
|
586
889
|
}
|
|
587
|
-
if ((
|
|
588
|
-
|
|
890
|
+
if ((l.current?.phase === "still" || l.current?.phase === "dock") && e - I < 32) {
|
|
891
|
+
k = requestAnimationFrame(de);
|
|
589
892
|
return;
|
|
590
893
|
}
|
|
591
|
-
|
|
894
|
+
I = e, Q(e);
|
|
592
895
|
}
|
|
593
896
|
function $() {
|
|
594
|
-
!
|
|
897
|
+
!M || k !== null || document.hidden || (j(), j = () => {}, Q(performance.now()));
|
|
595
898
|
}
|
|
596
899
|
g.current = $;
|
|
597
900
|
let he = () => {
|
|
598
|
-
if (
|
|
599
|
-
let e =
|
|
600
|
-
|
|
901
|
+
if (H(), H = () => {}, !u || document.hidden) return;
|
|
902
|
+
let e = ue(a.source, u, a.label, () => {
|
|
903
|
+
q(), $();
|
|
601
904
|
});
|
|
602
|
-
|
|
905
|
+
H = e, u || e();
|
|
603
906
|
};
|
|
604
|
-
|
|
907
|
+
u && (q(), u && (he(), u && !i.current.guideContent && (U = setTimeout(() => G("expired"), 12e3))));
|
|
605
908
|
let ge = (e) => {
|
|
606
|
-
if (e.key === "Escape" && !e.isComposing &&
|
|
607
|
-
if (
|
|
909
|
+
if (e.key === "Escape" && !e.isComposing && u) {
|
|
910
|
+
if (i.current.guideContent && e.target instanceof Node && a.label.contains(e.target)) return;
|
|
608
911
|
let t = document.querySelector("dialog:modal");
|
|
609
|
-
if (t && !t.contains(
|
|
610
|
-
|
|
912
|
+
if (t && !t.contains(a.label)) return;
|
|
913
|
+
i.current.guideContent && e.preventDefault(), G("dismissed");
|
|
611
914
|
}
|
|
612
915
|
}, _e = (e) => {
|
|
613
|
-
|
|
916
|
+
i.current.dismissOnTargetClick !== !1 && u?.contextElement && e.target instanceof Node && u.contextElement.contains(e.target) && G("dismissed");
|
|
614
917
|
}, ve = () => {
|
|
615
|
-
document.hidden ? (
|
|
918
|
+
document.hidden ? (j(), j = () => {}, k !== null && cancelAnimationFrame(k), k = null, H(), B++, W()) : (R = performance.now(), he(), $());
|
|
616
919
|
}, ye = typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
|
|
617
|
-
|
|
920
|
+
F = e[0]?.isIntersecting ?? !0, F || (j(), j = () => {}, k !== null && cancelAnimationFrame(k), k = null, W()), $();
|
|
618
921
|
});
|
|
619
|
-
ye?.observe(
|
|
620
|
-
let be =
|
|
621
|
-
|
|
922
|
+
ye?.observe(n), document.addEventListener("keydown", ge, !0), document.addEventListener("click", _e), document.addEventListener("visibilitychange", ve), document.addEventListener("close", $, !0), document.addEventListener("toggle", $, !0);
|
|
923
|
+
let be = pe(() => {
|
|
924
|
+
q(), $();
|
|
622
925
|
});
|
|
623
926
|
return $(), () => {
|
|
624
|
-
|
|
927
|
+
M = !1, g.current = () => {}, B++, k !== null && cancelAnimationFrame(k), clearTimeout(U), j(), H(), be(), ye?.disconnect(), W(), document.removeEventListener("keydown", ge, !0), document.removeEventListener("click", _e), document.removeEventListener("visibilitychange", ve), document.removeEventListener("close", $, !0), document.removeEventListener("toggle", $, !0);
|
|
625
928
|
};
|
|
626
929
|
}, [
|
|
627
930
|
e,
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
]),
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
931
|
+
t,
|
|
932
|
+
r,
|
|
933
|
+
n.target?.key,
|
|
934
|
+
n.reducedMotion,
|
|
935
|
+
n.size,
|
|
936
|
+
n.guideSize,
|
|
937
|
+
a
|
|
938
|
+
]), u(() => g.current(), [
|
|
939
|
+
n.activity,
|
|
940
|
+
n.idleMotion,
|
|
941
|
+
n.motionSpeed,
|
|
942
|
+
n.motionIntensity,
|
|
943
|
+
n.splashes
|
|
641
944
|
]);
|
|
642
945
|
}
|
|
643
946
|
//#endregion
|
|
644
|
-
//#region src/LiquidPresence.tsx
|
|
645
|
-
function
|
|
646
|
-
let n =
|
|
647
|
-
|
|
648
|
-
let
|
|
649
|
-
|
|
650
|
-
}, [
|
|
651
|
-
let e =
|
|
947
|
+
//#region src/presence/LiquidPresence/LiquidPresence.tsx
|
|
948
|
+
function he(e) {
|
|
949
|
+
let n = a() || e.reducedMotion === !0, r = A(e.size ?? 64, 32, 224), o = `presence-${d().replace(/[^a-zA-Z0-9_-]/g, "")}`, s = p(null), c = p(null), [l, f] = m(null);
|
|
950
|
+
u(() => {
|
|
951
|
+
let t = e.target?.contextElement?.closest("dialog");
|
|
952
|
+
f(t ?? s.current?.closest("dialog") ?? document.body);
|
|
953
|
+
}, [e.target?.contextElement]), u(() => {
|
|
954
|
+
let e = s.current, t = c.current;
|
|
652
955
|
if (!e || !t) return;
|
|
653
|
-
let n =
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
"--game-ui-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
"--game-ui-font-body",
|
|
661
|
-
"--game-ui-radius-control",
|
|
662
|
-
"--game-ui-shadow-button",
|
|
663
|
-
"--game-ui-surface-raised",
|
|
664
|
-
"--game-ui-text-muted",
|
|
665
|
-
"--game-ui-border-subtle",
|
|
666
|
-
"--game-ui-border-ink",
|
|
667
|
-
"--game-ui-disabled",
|
|
668
|
-
"--game-ui-button-lip-ink",
|
|
669
|
-
"--game-ui-accent",
|
|
670
|
-
"--game-ui-accent-bright",
|
|
671
|
-
"--game-ui-accent-contrast"
|
|
672
|
-
], r = () => {
|
|
673
|
-
let r = getComputedStyle(e);
|
|
674
|
-
for (let e of n) {
|
|
675
|
-
let n = r.getPropertyValue(e).trim();
|
|
676
|
-
t.style.getPropertyValue(e) !== n && t.style.setProperty(e, n);
|
|
956
|
+
let n = () => {
|
|
957
|
+
let n = getComputedStyle(e), r = e.closest("[data-game-ui-style]")?.getAttribute("data-game-ui-style"), i = e.closest("[data-game-ui-theme]")?.getAttribute("data-game-ui-theme");
|
|
958
|
+
r ? t.setAttribute("data-game-ui-style", r) : t.removeAttribute("data-game-ui-style"), i ? t.setAttribute("data-game-ui-theme", i) : t.removeAttribute("data-game-ui-theme");
|
|
959
|
+
let a = [...n].filter((e) => e.startsWith("--game-ui-") || e.startsWith("--liquid-presence-"));
|
|
960
|
+
for (let e of a) {
|
|
961
|
+
let r = n.getPropertyValue(e).trim();
|
|
962
|
+
t.style.getPropertyValue(e) !== r && t.style.setProperty(e, r);
|
|
677
963
|
}
|
|
678
|
-
},
|
|
679
|
-
for (let t = e; t; t = t.parentElement)
|
|
964
|
+
}, r = new MutationObserver(n);
|
|
965
|
+
for (let t = e; t; t = t.parentElement) r.observe(t, {
|
|
680
966
|
attributes: !0,
|
|
681
967
|
attributeFilter: [
|
|
682
968
|
"class",
|
|
683
969
|
"style",
|
|
684
970
|
"data-game-ui-theme",
|
|
971
|
+
"data-game-ui-style",
|
|
685
972
|
"data-activity"
|
|
686
973
|
]
|
|
687
974
|
});
|
|
688
|
-
return
|
|
689
|
-
|
|
975
|
+
return n(), window.addEventListener("resize", n, { passive: !0 }), () => {
|
|
976
|
+
r.disconnect(), window.removeEventListener("resize", n);
|
|
690
977
|
};
|
|
691
|
-
}, [
|
|
692
|
-
...
|
|
978
|
+
}, [l]), $(s, c, {
|
|
979
|
+
...e,
|
|
693
980
|
size: r,
|
|
694
981
|
reducedMotion: n
|
|
695
|
-
},
|
|
696
|
-
let
|
|
982
|
+
}, l);
|
|
983
|
+
let y = {
|
|
697
984
|
width: r,
|
|
698
985
|
height: r,
|
|
699
|
-
...
|
|
700
|
-
...
|
|
701
|
-
...["error", "unknown"].includes(
|
|
986
|
+
...e.colorFrom ? { "--liquid-presence-from": e.colorFrom } : {},
|
|
987
|
+
...e.colorTo ? { "--liquid-presence-to": e.colorTo } : {},
|
|
988
|
+
...["error", "unknown"].includes(e.activity ?? "") ? {
|
|
702
989
|
"--liquid-presence-from": "var(--game-ui-warning)",
|
|
703
990
|
"--liquid-presence-to": "var(--game-ui-warning)"
|
|
704
991
|
} : {}
|
|
705
|
-
},
|
|
706
|
-
id: `${
|
|
992
|
+
}, b = (e, n) => /* @__PURE__ */ _("defs", { children: [/* @__PURE__ */ g("linearGradient", {
|
|
993
|
+
id: `${o}-${e}-fill`,
|
|
707
994
|
gradientUnits: "userSpaceOnUse",
|
|
708
|
-
x1:
|
|
995
|
+
x1: 0,
|
|
709
996
|
y1: e === "core" ? 16 : -18,
|
|
710
|
-
x2:
|
|
997
|
+
x2: 0,
|
|
711
998
|
y2: e === "core" ? 146 : 18,
|
|
712
|
-
children: [/* @__PURE__ */
|
|
713
|
-
offset:
|
|
714
|
-
stopColor:
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
})]
|
|
719
|
-
}), /* @__PURE__ */ m("filter", {
|
|
720
|
-
id: `${i}-${e}-goo`,
|
|
999
|
+
children: k.map(([e, t]) => /* @__PURE__ */ g("stop", {
|
|
1000
|
+
offset: e,
|
|
1001
|
+
style: { stopColor: t }
|
|
1002
|
+
}, e))
|
|
1003
|
+
}), /* @__PURE__ */ g("filter", {
|
|
1004
|
+
id: `${o}-${e}-goo`,
|
|
721
1005
|
filterUnits: "userSpaceOnUse",
|
|
722
|
-
...
|
|
1006
|
+
...n,
|
|
723
1007
|
colorInterpolationFilters: "sRGB",
|
|
724
|
-
children: /* @__PURE__ */
|
|
725
|
-
blur:
|
|
726
|
-
contrast:
|
|
727
|
-
gloss:
|
|
1008
|
+
children: /* @__PURE__ */ g(i, {
|
|
1009
|
+
blur: t.blur,
|
|
1010
|
+
contrast: t.contrast,
|
|
1011
|
+
gloss: t.gloss,
|
|
728
1012
|
shadows: [],
|
|
729
1013
|
stroke: null,
|
|
730
1014
|
waviness: 0
|
|
731
1015
|
})
|
|
732
1016
|
})] });
|
|
733
|
-
return /* @__PURE__ */ h
|
|
734
|
-
ref:
|
|
735
|
-
className: `game-ui-liquid-presence ${
|
|
736
|
-
style:
|
|
737
|
-
"data-activity":
|
|
1017
|
+
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("span", {
|
|
1018
|
+
ref: s,
|
|
1019
|
+
className: `game-ui-liquid-presence ${e.className ?? ""}`,
|
|
1020
|
+
style: y,
|
|
1021
|
+
"data-activity": e.activity ?? "idle",
|
|
738
1022
|
"aria-hidden": "true",
|
|
739
|
-
children: /* @__PURE__ */
|
|
1023
|
+
children: /* @__PURE__ */ _("svg", {
|
|
740
1024
|
viewBox: "0 0 160 160",
|
|
741
1025
|
focusable: "false",
|
|
742
|
-
children: [
|
|
1026
|
+
children: [b("core", {
|
|
743
1027
|
x: -80,
|
|
744
1028
|
y: -80,
|
|
745
1029
|
width: 320,
|
|
746
1030
|
height: 320
|
|
747
|
-
}), /* @__PURE__ */
|
|
748
|
-
fill: `url(#${
|
|
749
|
-
filter: `url(#${
|
|
1031
|
+
}), /* @__PURE__ */ _("g", {
|
|
1032
|
+
fill: `url(#${o}-core-fill)`,
|
|
1033
|
+
filter: `url(#${o}-core-goo)`,
|
|
750
1034
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
1035
|
+
/* @__PURE__ */ g("path", {
|
|
752
1036
|
"data-presence-body": "",
|
|
753
|
-
d:
|
|
1037
|
+
d: P()
|
|
754
1038
|
}),
|
|
755
|
-
/* @__PURE__ */
|
|
1039
|
+
/* @__PURE__ */ g("circle", {
|
|
756
1040
|
"data-presence-bud": "",
|
|
757
1041
|
cx: "80",
|
|
758
1042
|
cy: "80",
|
|
@@ -763,7 +1047,7 @@ function q(t) {
|
|
|
763
1047
|
0,
|
|
764
1048
|
1,
|
|
765
1049
|
2
|
|
766
|
-
].map((e) => /* @__PURE__ */
|
|
1050
|
+
].map((e) => /* @__PURE__ */ g("circle", {
|
|
767
1051
|
"data-presence-satellite": "",
|
|
768
1052
|
cx: "80",
|
|
769
1053
|
cy: "80",
|
|
@@ -773,39 +1057,39 @@ function q(t) {
|
|
|
773
1057
|
]
|
|
774
1058
|
})]
|
|
775
1059
|
})
|
|
776
|
-
}),
|
|
777
|
-
ref:
|
|
1060
|
+
}), l && v(/* @__PURE__ */ _("div", {
|
|
1061
|
+
ref: c,
|
|
778
1062
|
className: "game-ui-liquid-presence-overlay",
|
|
779
1063
|
style: {
|
|
780
|
-
...
|
|
1064
|
+
...y,
|
|
781
1065
|
width: void 0,
|
|
782
1066
|
height: void 0
|
|
783
1067
|
},
|
|
784
1068
|
"data-presence-overlay": "",
|
|
785
1069
|
children: [
|
|
786
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ _("svg", {
|
|
787
1071
|
className: "game-ui-liquid-presence-flight",
|
|
788
1072
|
viewBox: "-48 -36 96 72",
|
|
789
1073
|
"aria-hidden": "true",
|
|
790
1074
|
focusable: "false",
|
|
791
1075
|
style: { display: "none" },
|
|
792
|
-
children: [
|
|
1076
|
+
children: [b("flight", {
|
|
793
1077
|
x: -48,
|
|
794
1078
|
y: -36,
|
|
795
1079
|
width: 96,
|
|
796
1080
|
height: 72
|
|
797
|
-
}), /* @__PURE__ */
|
|
798
|
-
fill: `url(#${
|
|
799
|
-
filter: `url(#${
|
|
800
|
-
children: /* @__PURE__ */
|
|
1081
|
+
}), /* @__PURE__ */ g("g", {
|
|
1082
|
+
fill: `url(#${o}-flight-fill)`,
|
|
1083
|
+
filter: `url(#${o}-flight-goo)`,
|
|
1084
|
+
children: /* @__PURE__ */ _("g", {
|
|
801
1085
|
"data-presence-flight-body": "",
|
|
802
|
-
children: [/* @__PURE__ */
|
|
1086
|
+
children: [/* @__PURE__ */ g("circle", { r: "16" }), /* @__PURE__ */ _("g", {
|
|
803
1087
|
"data-presence-trail": "",
|
|
804
|
-
children: [/* @__PURE__ */
|
|
1088
|
+
children: [/* @__PURE__ */ g("circle", {
|
|
805
1089
|
cx: "-27",
|
|
806
1090
|
cy: "5",
|
|
807
1091
|
r: "4.5"
|
|
808
|
-
}), /* @__PURE__ */
|
|
1092
|
+
}), /* @__PURE__ */ g("circle", {
|
|
809
1093
|
cx: "-36",
|
|
810
1094
|
cy: "8",
|
|
811
1095
|
r: "2.5"
|
|
@@ -814,361 +1098,61 @@ function q(t) {
|
|
|
814
1098
|
})
|
|
815
1099
|
})]
|
|
816
1100
|
}),
|
|
817
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ _("svg", {
|
|
818
1102
|
className: "game-ui-liquid-presence-seat",
|
|
819
1103
|
viewBox: "-56 -28 112 56",
|
|
820
1104
|
"aria-hidden": "true",
|
|
821
1105
|
focusable: "false",
|
|
822
1106
|
style: { display: "none" },
|
|
823
|
-
children: [
|
|
1107
|
+
children: [b("seat", {
|
|
824
1108
|
x: -56,
|
|
825
1109
|
y: -28,
|
|
826
1110
|
width: 112,
|
|
827
1111
|
height: 56
|
|
828
|
-
}), /* @__PURE__ */
|
|
1112
|
+
}), /* @__PURE__ */ g("path", {
|
|
829
1113
|
"data-presence-seat-body": "",
|
|
830
|
-
d:
|
|
831
|
-
fill: `url(#${
|
|
832
|
-
filter: `url(#${
|
|
1114
|
+
d: F(48, 1),
|
|
1115
|
+
fill: `url(#${o}-seat-fill)`,
|
|
1116
|
+
filter: `url(#${o}-seat-goo)`
|
|
833
1117
|
})]
|
|
834
1118
|
}),
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
className: `game-ui-liquid-presence-label${
|
|
837
|
-
role:
|
|
838
|
-
"aria-atomic": !
|
|
839
|
-
onClick:
|
|
840
|
-
onPointerDown:
|
|
841
|
-
onKeyDown:
|
|
1119
|
+
/* @__PURE__ */ g("div", {
|
|
1120
|
+
className: `game-ui-liquid-presence-label${e.guideContent ? " game-ui-liquid-presence-label--guide" : ""}${e.guideContent && e.guideSize === "expanded" ? " game-ui-liquid-presence-label--expanded" : ""}`,
|
|
1121
|
+
role: e.guideContent ? void 0 : "status",
|
|
1122
|
+
"aria-atomic": !e.guideContent || void 0,
|
|
1123
|
+
onClick: e.guideContent ? (e) => e.stopPropagation() : void 0,
|
|
1124
|
+
onPointerDown: e.guideContent ? (e) => e.stopPropagation() : void 0,
|
|
1125
|
+
onKeyDown: e.guideContent ? (e) => {
|
|
842
1126
|
e.stopPropagation(), e.key === "Escape" && e.preventDefault();
|
|
843
1127
|
} : void 0,
|
|
844
1128
|
hidden: !0,
|
|
845
|
-
children:
|
|
1129
|
+
children: e.guideContent ? /* @__PURE__ */ g(K, {
|
|
1130
|
+
reducedMotion: n,
|
|
1131
|
+
children: e.guideContent
|
|
1132
|
+
}) : e.target?.label.slice(0, 240)
|
|
846
1133
|
})
|
|
847
1134
|
]
|
|
848
|
-
}),
|
|
1135
|
+
}), l)] });
|
|
849
1136
|
}
|
|
850
1137
|
//#endregion
|
|
851
|
-
//#region src/
|
|
852
|
-
function
|
|
853
|
-
let
|
|
854
|
-
l,
|
|
855
|
-
l,
|
|
856
|
-
l,
|
|
857
|
-
l
|
|
858
|
-
], {
|
|
859
|
-
amplitude: (n ? 8 : 11) * Math.min(1.25, Math.max(.25, Number.isFinite(o) ? o : 1)),
|
|
860
|
-
lobes: 3,
|
|
861
|
-
seed: 17,
|
|
862
|
-
phase: r
|
|
863
|
-
}), d = Math.max(0, l - 2.5);
|
|
864
|
-
return {
|
|
865
|
-
outline: u,
|
|
866
|
-
ribbon: `${u} ${a(8.5, 8.5, s - 17, c - 17, [
|
|
867
|
-
d,
|
|
868
|
-
d,
|
|
869
|
-
d,
|
|
870
|
-
d
|
|
871
|
-
])}`
|
|
872
|
-
};
|
|
873
|
-
}
|
|
874
|
-
//#endregion
|
|
875
|
-
//#region src/useLiquidRevealAmbient.ts
|
|
876
|
-
function Y(e, i, a, o, s, l = 1, u = 1) {
|
|
877
|
-
let f = d(0);
|
|
878
|
-
return c(() => {
|
|
879
|
-
let c = e.current;
|
|
880
|
-
if (!c || !i || !a || !o) {
|
|
881
|
-
c && (c.dataset.revealAmbient = "static");
|
|
882
|
-
return;
|
|
883
|
-
}
|
|
884
|
-
let d = !0, p = !0, m = performance.now(), h = () => {}, g = c.querySelector("[data-reveal-outline]"), _ = c.querySelector("[data-reveal-body]"), v = c.querySelector("[data-reveal-ribbon]"), y = (a + 24) * (o + 24), b = (e) => {
|
|
885
|
-
if (!d || !p || document.hidden) return;
|
|
886
|
-
let i = Math.min(160, Math.max(0, e - m));
|
|
887
|
-
m = e;
|
|
888
|
-
let x = document.querySelector("dialog:modal"), S = x && !x.contains(c) || ["drawing", "preparing"].includes(c.dataset.revealMotion ?? ""), C = r();
|
|
889
|
-
if (S || C.activeGroups > 0 || !t(y)) {
|
|
890
|
-
c.dataset.revealAmbient = "paused", h = te(b, 250);
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
try {
|
|
894
|
-
f.current += i * Math.PI * 2 * u / 1e4;
|
|
895
|
-
let e = J(a, o, s, f.current, l);
|
|
896
|
-
g?.setAttribute("d", e.outline), _?.setAttribute("d", e.outline), v?.setAttribute("d", e.ribbon), c.dataset.revealAmbient = "flowing";
|
|
897
|
-
} finally {
|
|
898
|
-
n();
|
|
899
|
-
}
|
|
900
|
-
h = te(b);
|
|
901
|
-
}, x = () => {
|
|
902
|
-
h(), m = performance.now(), c.dataset.revealAmbient = "paused", p && !document.hidden && (h = te(b));
|
|
903
|
-
}, S = typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
|
|
904
|
-
p = e[0]?.isIntersecting ?? !1, x();
|
|
905
|
-
});
|
|
906
|
-
return S?.observe(c), document.addEventListener("visibilitychange", x), x(), () => {
|
|
907
|
-
d = !1, h(), S?.disconnect(), document.removeEventListener("visibilitychange", x), c.dataset.revealAmbient = "static";
|
|
908
|
-
};
|
|
909
|
-
}, [
|
|
910
|
-
e,
|
|
911
|
-
i,
|
|
912
|
-
a,
|
|
913
|
-
o,
|
|
914
|
-
s,
|
|
915
|
-
l,
|
|
916
|
-
u
|
|
917
|
-
]), f;
|
|
918
|
-
}
|
|
919
|
-
//#endregion
|
|
920
|
-
//#region src/liquidRevealEntranceGeometry.ts
|
|
921
|
-
var X = (e) => {
|
|
922
|
-
let t = Math.min(1, Math.max(0, e));
|
|
923
|
-
return t * t * t * (10 + t * (-15 + 6 * t));
|
|
924
|
-
};
|
|
925
|
-
function Z(e, t, n, r, a, o, s = 1) {
|
|
926
|
-
let c = J(e, t, n, 0, s).outline;
|
|
927
|
-
return Array.from({ length: 49 }, (l, u) => {
|
|
928
|
-
let d = u / 48, f = X((d - .08) / .34), p = j(r, a, f, o), m = X((d - .39) / .46), h = X((d - .47) / .46), g = X((d - .3) / .14) * (1 - m), _ = 8 + 20 * X(d / .15) + 10 * g, v = 1 + Math.sin(f * Math.PI) * .35, y = a.x - r.x, b = a.y - r.y, x = Math.abs(y) > Math.abs(b), S = _ * (x ? v : 1 / Math.sqrt(v)), C = _ * (x ? 1 / Math.sqrt(v) : v), w = S + (e - 12 - S) * m, T = C + (t - 12 - C) * h, E = (p.x - S / 2) * (1 - m) + 6 * m, D = (p.y - C / 2) * (1 - h) + 6 * h, O = Math.min(w / 2, T / 2, 28 + 12 * (1 - h));
|
|
929
|
-
return {
|
|
930
|
-
d: `path("${d >= .95 ? c : i(E, D, w, T, [
|
|
931
|
-
O,
|
|
932
|
-
O,
|
|
933
|
-
O,
|
|
934
|
-
O
|
|
935
|
-
], {
|
|
936
|
-
amplitude: 1.2 + ((n ? 8 : 11) * s - 1.2) * h,
|
|
937
|
-
seed: 17,
|
|
938
|
-
lobes: 3,
|
|
939
|
-
phase: 0
|
|
940
|
-
})}")`,
|
|
941
|
-
offset: d
|
|
942
|
-
};
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
//#endregion
|
|
946
|
-
//#region src/useLiquidRevealEntrance.ts
|
|
947
|
-
function Q(e, r, i, a, o, s, c, l, f = 1) {
|
|
948
|
-
let p = d(null);
|
|
949
|
-
u(() => {
|
|
950
|
-
let u = e.current;
|
|
951
|
-
if (!u) return;
|
|
952
|
-
if (!r || s || u.contains(document.activeElement) || window.matchMedia("(forced-colors: active)").matches) {
|
|
953
|
-
p.current = i, u.dataset.revealMotion = "static";
|
|
954
|
-
return;
|
|
955
|
-
}
|
|
956
|
-
if (p.current === i || (u.dataset.revealMotion = "preparing", !a || !o)) return;
|
|
957
|
-
let d = !0, m = !1, h = !1, g = 0, _ = 0, v = [], y = () => {
|
|
958
|
-
v.forEach((e) => e.cancel()), v.length = 0, m && n(), m = !1, u.dataset.revealMotion = h ? "settled" : "static";
|
|
959
|
-
}, b = () => {
|
|
960
|
-
if (!d) return;
|
|
961
|
-
if (getComputedStyle(u).visibility === "hidden") {
|
|
962
|
-
if (++_ < 12) {
|
|
963
|
-
g = requestAnimationFrame(b);
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
y();
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
|
-
let e = r.current?.getBoundingClientRect(), n = u.getBoundingClientRect(), s = u.querySelector("[data-reveal-body]"), x = u.querySelector("[data-reveal-material]"), S = u.querySelector(".game-ui-liquid-reveal-content");
|
|
970
|
-
if (p.current = i, u.contains(document.activeElement) || !e || !E(e) || document.hidden || typeof u.animate != "function" || !t((a + 24) * (o + 24))) {
|
|
971
|
-
y();
|
|
972
|
-
return;
|
|
973
|
-
}
|
|
974
|
-
m = !0, h = !0, u.dataset.revealMotion = "drawing";
|
|
975
|
-
let C = n.width / a || 1, w = n.height / o || 1, T = {
|
|
976
|
-
x: (e.x + e.width / 2 - n.x) / C,
|
|
977
|
-
y: (e.y + e.height / 2 - n.y) / w
|
|
978
|
-
}, D = {
|
|
979
|
-
x: Math.min(a - 28, Math.max(28, T.x)),
|
|
980
|
-
y: T.y > o / 2 ? o - 28 : 28
|
|
981
|
-
}, O = {
|
|
982
|
-
x: -n.x / C,
|
|
983
|
-
y: -n.y / w,
|
|
984
|
-
width: innerWidth / C,
|
|
985
|
-
height: innerHeight / w
|
|
986
|
-
};
|
|
987
|
-
if (c && s && CSS.supports("d", "path(\"M0 0L1 1Z\")")) {
|
|
988
|
-
let e = Z(a, o, l, T, D, O, f);
|
|
989
|
-
v.push(s.animate(e, {
|
|
990
|
-
duration: 720,
|
|
991
|
-
fill: "both",
|
|
992
|
-
easing: "linear"
|
|
993
|
-
})), x && v.push(x.animate([
|
|
994
|
-
{ opacity: 0 },
|
|
995
|
-
{
|
|
996
|
-
opacity: 0,
|
|
997
|
-
offset: .93
|
|
998
|
-
},
|
|
999
|
-
{ opacity: 1 }
|
|
1000
|
-
], {
|
|
1001
|
-
duration: 720,
|
|
1002
|
-
fill: "both"
|
|
1003
|
-
})), S && v.push(S.animate([
|
|
1004
|
-
{ opacity: 0 },
|
|
1005
|
-
{
|
|
1006
|
-
opacity: 0,
|
|
1007
|
-
offset: .78
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
opacity: 1,
|
|
1011
|
-
offset: .98
|
|
1012
|
-
},
|
|
1013
|
-
{ opacity: 1 }
|
|
1014
|
-
], {
|
|
1015
|
-
duration: 720,
|
|
1016
|
-
fill: "both"
|
|
1017
|
-
}));
|
|
1018
|
-
} else x && v.push(x.animate([{ opacity: .2 }, { opacity: 1 }], { duration: 180 }));
|
|
1019
|
-
let k = r.current?.querySelector(".game-ui-liquid-presence > svg");
|
|
1020
|
-
k && v.push(k.animate([
|
|
1021
|
-
{ transform: "scale(1)" },
|
|
1022
|
-
{
|
|
1023
|
-
transform: "scale(1.05, .9)",
|
|
1024
|
-
offset: .22
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
transform: "scale(.96, 1.04)",
|
|
1028
|
-
offset: .5
|
|
1029
|
-
},
|
|
1030
|
-
{ transform: "scale(1)" }
|
|
1031
|
-
], {
|
|
1032
|
-
duration: 440,
|
|
1033
|
-
easing: "ease-in-out"
|
|
1034
|
-
})), Promise.all(v.map((e) => e.finished)).then(y, y);
|
|
1035
|
-
};
|
|
1036
|
-
g = requestAnimationFrame(b);
|
|
1037
|
-
let x = () => {
|
|
1038
|
-
cancelAnimationFrame(g), y();
|
|
1039
|
-
}, S = () => {
|
|
1040
|
-
document.hidden && x();
|
|
1041
|
-
};
|
|
1042
|
-
return u.addEventListener("focusin", x), u.addEventListener("pointerdown", x, !0), document.addEventListener("visibilitychange", S), window.addEventListener("resize", x), window.addEventListener("scroll", x, !0), () => {
|
|
1043
|
-
d = !1, x(), u.removeEventListener("focusin", x), u.removeEventListener("pointerdown", x, !0), document.removeEventListener("visibilitychange", S), window.removeEventListener("resize", x), window.removeEventListener("scroll", x, !0);
|
|
1044
|
-
};
|
|
1045
|
-
}, [
|
|
1046
|
-
e,
|
|
1047
|
-
r,
|
|
1048
|
-
i,
|
|
1049
|
-
a,
|
|
1050
|
-
o,
|
|
1051
|
-
s,
|
|
1052
|
-
c,
|
|
1053
|
-
l,
|
|
1054
|
-
f
|
|
1055
|
-
]);
|
|
1056
|
-
}
|
|
1057
|
-
//#endregion
|
|
1058
|
-
//#region src/LiquidReveal.tsx
|
|
1059
|
-
function de({ children: t, source: n, revealKey: i = "initial", variant: a = "content", surface: o = "dark", reducedMotion: c, idleMotion: p = "still", colorFrom: g, colorTo: _, motionIntensity: v = 1, motionSpeed: y = 1, className: b = "" }) {
|
|
1060
|
-
let x = e() || c === !0, S = T(v, .25, 1.25), C = T(y, .5, 1.5), w = d(null), [E, D] = f({
|
|
1061
|
-
width: 0,
|
|
1062
|
-
height: 0
|
|
1063
|
-
}), O = `liquid-reveal-${l().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
1064
|
-
u(() => {
|
|
1065
|
-
let e = w.current;
|
|
1066
|
-
if (!e) return;
|
|
1067
|
-
let t = () => {
|
|
1068
|
-
let t = e.clientWidth, n = e.clientHeight;
|
|
1069
|
-
D((e) => e.width === t && e.height === n ? e : {
|
|
1070
|
-
width: t,
|
|
1071
|
-
height: n
|
|
1072
|
-
});
|
|
1073
|
-
};
|
|
1074
|
-
t();
|
|
1075
|
-
let n = new ResizeObserver(t);
|
|
1076
|
-
return n.observe(e), () => n.disconnect();
|
|
1077
|
-
}, []), Q(w, n, i, E.width, E.height, x, o === "material", a === "input", S);
|
|
1078
|
-
let k = Math.max(44, E.width), A = Math.max(44, E.height), ee = Y(w, !x && p === "breathe", E.width, E.height, a === "input", S, C), j = J(k, A, a === "input", ee.current, S), M = (k + 24) * (A + 24) <= r().maxFilterArea;
|
|
1079
|
-
return /* @__PURE__ */ h("div", {
|
|
1080
|
-
ref: w,
|
|
1081
|
-
className: `game-ui-liquid-reveal ${b}`,
|
|
1082
|
-
style: {
|
|
1083
|
-
...g ? { "--liquid-presence-from": g } : {},
|
|
1084
|
-
..._ ? { "--liquid-presence-to": _ } : {}
|
|
1085
|
-
},
|
|
1086
|
-
"data-reveal-variant": a,
|
|
1087
|
-
"data-reveal-surface": o,
|
|
1088
|
-
"data-reveal-filter": M ? "volume" : "flat",
|
|
1089
|
-
children: [/* @__PURE__ */ m("div", {
|
|
1090
|
-
className: "game-ui-liquid-reveal-content",
|
|
1091
|
-
children: t
|
|
1092
|
-
}), E.width > 0 && /* @__PURE__ */ h("svg", {
|
|
1093
|
-
className: "game-ui-liquid-reveal-ink",
|
|
1094
|
-
width: k,
|
|
1095
|
-
height: A,
|
|
1096
|
-
viewBox: `0 0 ${k} ${A}`,
|
|
1097
|
-
"aria-hidden": "true",
|
|
1098
|
-
focusable: "false",
|
|
1099
|
-
children: [
|
|
1100
|
-
/* @__PURE__ */ h("defs", { children: [/* @__PURE__ */ h("linearGradient", {
|
|
1101
|
-
id: `${O}-fill`,
|
|
1102
|
-
x1: "0",
|
|
1103
|
-
y1: "0",
|
|
1104
|
-
x2: "1",
|
|
1105
|
-
y2: "1",
|
|
1106
|
-
children: [/* @__PURE__ */ m("stop", {
|
|
1107
|
-
offset: "0",
|
|
1108
|
-
stopColor: "var(--liquid-presence-from, var(--game-ui-secondary))"
|
|
1109
|
-
}), /* @__PURE__ */ m("stop", {
|
|
1110
|
-
offset: "1",
|
|
1111
|
-
stopColor: "var(--liquid-presence-to, var(--game-ui-secondary))"
|
|
1112
|
-
})]
|
|
1113
|
-
}), /* @__PURE__ */ m("filter", {
|
|
1114
|
-
id: `${O}-finish`,
|
|
1115
|
-
x: "-12",
|
|
1116
|
-
y: "-12",
|
|
1117
|
-
width: k + 24,
|
|
1118
|
-
height: A + 24,
|
|
1119
|
-
filterUnits: "userSpaceOnUse",
|
|
1120
|
-
colorInterpolationFilters: "sRGB",
|
|
1121
|
-
children: /* @__PURE__ */ m(s, {
|
|
1122
|
-
blur: 1.2,
|
|
1123
|
-
contrast: 18,
|
|
1124
|
-
gloss: 3.5,
|
|
1125
|
-
shadows: [],
|
|
1126
|
-
stroke: null,
|
|
1127
|
-
waviness: 0
|
|
1128
|
-
})
|
|
1129
|
-
})] }),
|
|
1130
|
-
o === "material" && /* @__PURE__ */ m("path", {
|
|
1131
|
-
"data-reveal-body": "",
|
|
1132
|
-
d: j.outline,
|
|
1133
|
-
fill: `url(#${O}-fill)`
|
|
1134
|
-
}),
|
|
1135
|
-
/* @__PURE__ */ h("g", {
|
|
1136
|
-
"data-reveal-material": "",
|
|
1137
|
-
filter: M ? `url(#${O}-finish)` : void 0,
|
|
1138
|
-
children: [/* @__PURE__ */ m("path", {
|
|
1139
|
-
"data-reveal-ribbon": "",
|
|
1140
|
-
d: j.ribbon,
|
|
1141
|
-
fillRule: "evenodd",
|
|
1142
|
-
fill: `url(#${O}-fill)`
|
|
1143
|
-
}), /* @__PURE__ */ m("path", {
|
|
1144
|
-
"data-reveal-outline": "",
|
|
1145
|
-
d: j.outline,
|
|
1146
|
-
pathLength: "1",
|
|
1147
|
-
fill: "none",
|
|
1148
|
-
stroke: `url(#${O}-fill)`,
|
|
1149
|
-
strokeWidth: "1.2",
|
|
1150
|
-
strokeLinecap: "round"
|
|
1151
|
-
})]
|
|
1152
|
-
})
|
|
1153
|
-
]
|
|
1154
|
-
})]
|
|
1155
|
-
});
|
|
1156
|
-
}
|
|
1157
|
-
//#endregion
|
|
1158
|
-
//#region src/LiquidAnchor.tsx
|
|
1159
|
-
function fe({ source: e, children: t, placement: n = "top-end", onBoundsChange: r }) {
|
|
1160
|
-
let [i, a] = f(null), o = d(r);
|
|
1138
|
+
//#region src/presence/LiquidAnchor/LiquidAnchor.tsx
|
|
1139
|
+
function ge({ source: e, children: t, placement: n = "top-end", onBoundsChange: r }) {
|
|
1140
|
+
let [i, a] = m(null), o = p(r);
|
|
1161
1141
|
o.current = r;
|
|
1162
|
-
let [s, c] =
|
|
1163
|
-
return
|
|
1142
|
+
let [s, c] = m(null);
|
|
1143
|
+
return f(() => {
|
|
1164
1144
|
c(e.current?.closest("dialog") ?? document.body);
|
|
1165
|
-
}, [e]),
|
|
1145
|
+
}, [e]), f(() => {
|
|
1166
1146
|
let t = e.current, r = i;
|
|
1167
1147
|
if (!t || !r) return;
|
|
1168
1148
|
let a = (e) => {
|
|
1169
|
-
|
|
1149
|
+
de(r, e), o.current?.(e);
|
|
1170
1150
|
}, s = !0, c = 0, l = null, u = null, d = () => {
|
|
1171
1151
|
let e = getComputedStyle(t);
|
|
1152
|
+
for (let e of ["data-game-ui-theme", "data-game-ui-style"]) {
|
|
1153
|
+
let n = t.closest(`[${e}]`)?.getAttribute(e);
|
|
1154
|
+
n ? r.setAttribute(e, n) : r.removeAttribute(e);
|
|
1155
|
+
}
|
|
1172
1156
|
for (let t of Array.from(e)) if (t.startsWith("--game-ui-") || t.startsWith("--liquid-presence-")) {
|
|
1173
1157
|
let n = e.getPropertyValue(t);
|
|
1174
1158
|
r.style.getPropertyValue(t) !== n && r.style.setProperty(t, n);
|
|
@@ -1192,23 +1176,23 @@ function fe({ source: e, children: t, placement: n = "top-end", onBoundsChange:
|
|
|
1192
1176
|
r.style.visibility = "hidden", a(null);
|
|
1193
1177
|
return;
|
|
1194
1178
|
}
|
|
1195
|
-
|
|
1179
|
+
x(t, r, {
|
|
1196
1180
|
strategy: "fixed",
|
|
1197
1181
|
placement: n,
|
|
1198
1182
|
middleware: [
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1183
|
+
w(14),
|
|
1184
|
+
S({ padding: 12 }),
|
|
1185
|
+
T({
|
|
1202
1186
|
padding: 12,
|
|
1203
1187
|
crossAxis: !0
|
|
1204
1188
|
}),
|
|
1205
|
-
|
|
1189
|
+
E({
|
|
1206
1190
|
padding: 12,
|
|
1207
1191
|
apply({ availableHeight: e, availableWidth: t }) {
|
|
1208
1192
|
r.dataset.liquidCompact = e < 500 ? "true" : "false", r.style.setProperty("--liquid-outlet-height", `${Math.max(0, e)}px`), r.style.maxWidth = `${Math.max(0, t)}px`;
|
|
1209
1193
|
}
|
|
1210
1194
|
}),
|
|
1211
|
-
|
|
1195
|
+
C({ strategy: "referenceHidden" })
|
|
1212
1196
|
]
|
|
1213
1197
|
}).then(({ x: t, y: n, middlewareData: i }) => {
|
|
1214
1198
|
if (!s || e !== c) return;
|
|
@@ -1229,7 +1213,7 @@ function fe({ source: e, children: t, placement: n = "top-end", onBoundsChange:
|
|
|
1229
1213
|
});
|
|
1230
1214
|
};
|
|
1231
1215
|
d();
|
|
1232
|
-
let p =
|
|
1216
|
+
let p = b(t, r, f), m = new MutationObserver(() => {
|
|
1233
1217
|
d(), f();
|
|
1234
1218
|
});
|
|
1235
1219
|
for (let e = t; e; e = e.parentElement) m.observe(e, {
|
|
@@ -1238,6 +1222,7 @@ function fe({ source: e, children: t, placement: n = "top-end", onBoundsChange:
|
|
|
1238
1222
|
"class",
|
|
1239
1223
|
"style",
|
|
1240
1224
|
"data-game-ui-theme",
|
|
1225
|
+
"data-game-ui-style",
|
|
1241
1226
|
"hidden",
|
|
1242
1227
|
"inert",
|
|
1243
1228
|
"aria-hidden"
|
|
@@ -1258,10 +1243,10 @@ function fe({ source: e, children: t, placement: n = "top-end", onBoundsChange:
|
|
|
1258
1243
|
i,
|
|
1259
1244
|
n,
|
|
1260
1245
|
e
|
|
1261
|
-
]), s ? /* @__PURE__ */
|
|
1246
|
+
]), s ? /* @__PURE__ */ g(y, {
|
|
1262
1247
|
root: s,
|
|
1263
1248
|
preserveTabOrder: !1,
|
|
1264
|
-
children: /* @__PURE__ */
|
|
1249
|
+
children: /* @__PURE__ */ g("div", {
|
|
1265
1250
|
ref: a,
|
|
1266
1251
|
className: "game-ui-liquid-anchor",
|
|
1267
1252
|
style: {
|
|
@@ -1275,4 +1260,69 @@ function fe({ source: e, children: t, placement: n = "top-end", onBoundsChange:
|
|
|
1275
1260
|
}) : null;
|
|
1276
1261
|
}
|
|
1277
1262
|
//#endregion
|
|
1278
|
-
|
|
1263
|
+
//#region src/presence/LiquidPopover/LiquidPopover.tsx
|
|
1264
|
+
function _e({ open: e, ...t }) {
|
|
1265
|
+
return e ? /* @__PURE__ */ g(ve, { ...t }) : null;
|
|
1266
|
+
}
|
|
1267
|
+
function ve({ source: e, onOpenChange: t, title: n, children: r, width: i = 440, placement: a = "bottom-end" }) {
|
|
1268
|
+
let o = d(), s = p(null), c = p(null), u = p(!1), h = p(t);
|
|
1269
|
+
h.current = t;
|
|
1270
|
+
let v = l((t) => {
|
|
1271
|
+
s.current = t;
|
|
1272
|
+
let n = e.current;
|
|
1273
|
+
if (t) return () => {
|
|
1274
|
+
s.current = null, requestAnimationFrame(() => {
|
|
1275
|
+
!t.isConnected && n?.isConnected && n.focus({ preventScroll: !0 });
|
|
1276
|
+
});
|
|
1277
|
+
};
|
|
1278
|
+
}, [e]), [y, b] = m(!1);
|
|
1279
|
+
f(() => {
|
|
1280
|
+
let e = matchMedia("(max-width: 767px)"), t = () => b(e.matches);
|
|
1281
|
+
return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
1282
|
+
}, []), f(() => {
|
|
1283
|
+
u.current = !1;
|
|
1284
|
+
let t = (t) => {
|
|
1285
|
+
let n = t.composedPath();
|
|
1286
|
+
s.current && !n.includes(s.current) && (!e.current || !n.includes(e.current)) && h.current(!1);
|
|
1287
|
+
}, n = (e) => {
|
|
1288
|
+
if (e.key !== "Escape" || e.defaultPrevented || e.isComposing) return;
|
|
1289
|
+
let t = document.querySelector("dialog:modal");
|
|
1290
|
+
t && !t.contains(s.current) || (e.preventDefault(), h.current(!1));
|
|
1291
|
+
};
|
|
1292
|
+
return document.addEventListener("pointerdown", t), document.addEventListener("keydown", n), () => {
|
|
1293
|
+
document.removeEventListener("pointerdown", t), document.removeEventListener("keydown", n);
|
|
1294
|
+
};
|
|
1295
|
+
}, [e]);
|
|
1296
|
+
let x = y ? "top" : a;
|
|
1297
|
+
return /* @__PURE__ */ g(ge, {
|
|
1298
|
+
source: e,
|
|
1299
|
+
placement: x,
|
|
1300
|
+
onBoundsChange: (e) => {
|
|
1301
|
+
e && !u.current && c.current && (c.current.focus({ preventScroll: !0 }), u.current = document.activeElement === c.current);
|
|
1302
|
+
},
|
|
1303
|
+
children: /* @__PURE__ */ g("div", {
|
|
1304
|
+
ref: v,
|
|
1305
|
+
className: "game-ui-liquid-popover",
|
|
1306
|
+
role: "dialog",
|
|
1307
|
+
"aria-modal": "false",
|
|
1308
|
+
"aria-labelledby": `${o}-title`,
|
|
1309
|
+
"data-popover-placement": x,
|
|
1310
|
+
style: { "--game-ui-popover-width": `${Number.isFinite(i) ? Math.max(24, i) : 440}px` },
|
|
1311
|
+
children: /* @__PURE__ */ g(K, {
|
|
1312
|
+
source: e,
|
|
1313
|
+
revealKey: o,
|
|
1314
|
+
children: /* @__PURE__ */ _("div", {
|
|
1315
|
+
className: "game-ui-liquid-popover-content",
|
|
1316
|
+
children: [/* @__PURE__ */ g("h2", {
|
|
1317
|
+
ref: c,
|
|
1318
|
+
id: `${o}-title`,
|
|
1319
|
+
tabIndex: -1,
|
|
1320
|
+
children: n
|
|
1321
|
+
}), r]
|
|
1322
|
+
})
|
|
1323
|
+
})
|
|
1324
|
+
})
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
//#endregion
|
|
1328
|
+
export { ge as LiquidAnchor, _e as LiquidPopover, he as LiquidPresence, K as LiquidReveal };
|