@kolkrabbi/design-editor 0.1.0 → 0.2.0
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/README.md +3 -1
- package/dist/BufferResource-CKQMSOM4.js +265 -0
- package/dist/CanvasPool-ilDNHrRx.js +30 -0
- package/dist/CanvasRenderer-CDbc3nH9.js +3396 -0
- package/dist/Geometry-D3fkwmax.js +3724 -0
- package/dist/{OrbitControls-BAhLQ5d8.js → OrbitControls-CE3qSrHQ.js} +10260 -9043
- package/dist/RenderTargetSystem-umK0aqrs.js +2394 -0
- package/dist/WebGLRenderer-DVKPZbKc.js +2145 -0
- package/dist/WebGPURenderer-DHSBocAL.js +1656 -0
- package/dist/browserAll-CJ593myQ.js +983 -0
- package/dist/canvasUtils-CXoNqK7T.js +168 -0
- package/dist/defaultFilter.vert-C9efGgir.js +888 -0
- package/dist/design-editor.css +2 -2
- package/dist/design-editor.js +40809 -26749
- package/dist/getTextureBatchBindGroup-ChWkOJ3t.js +19 -0
- package/dist/{host-IfZgcJFg.js → host-6EhdLf5-.js} +506 -559
- package/dist/{host-Cidlc8xP.js → host-DPFYZP9I.js} +134 -88
- package/dist/init-4Y6mtayI.js +441 -0
- package/dist/phase-D3rwI6OO.js +1719 -0
- package/dist/pipeline-DfTD40M-.js +4825 -0
- package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
- package/dist/src-zDOFeQWX.js +4314 -0
- package/dist/webworkerAll-wTH3MKcZ.js +2 -0
- package/package.json +26 -21
- package/dist/favicon/favicon.svg +0 -12
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Black.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-BlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Bold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-BoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlack.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Dark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-DarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Fine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-FineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Light.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-LightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Medium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-MediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlack.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-Regular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-RegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlack.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlack.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlack.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlack.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlackItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDarkItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Bold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-BoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Dark.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Fine.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-FineItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Light.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Medium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Regular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-RegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMedium.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMediumItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-Regular.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-RegularItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLight.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLightItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBold.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBoldItalic.woff2 +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Black.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Bold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlack.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLight.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMedium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegularItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Dark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-DarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Fine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-FineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Light.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-LightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Medium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-MediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlack.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLight.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMedium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegularItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Regular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-RegularItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlack.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLight.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMedium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegularItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlack.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLight.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMedium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegularItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlack.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLight.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMedium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegularItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlack.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlackItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBold.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBoldItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDark.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDarkItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFine.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFineItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLight.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLightItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMedium.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMediumItalic.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegular.ttf +0 -0
- package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegularItalic.ttf +0 -0
- package/dist/fonts/TG/TGGullhamrarVF.ttf +0 -0
- package/dist/fonts/TG/TGMalromurRomanVF.ttf +0 -0
- package/dist/fonts/TG/TGRotVF.ttf +0 -0
- package/dist/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
- package/dist/meshPalettes-BJODHYrY.js +0 -892
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
import { B as e, E as t, K as n, L as r, N as i, O as a, R as o, V as s, _ as c, g as l, h as u, it as d, rt as f, w as p, x as m, y as h, z as g } from "./Geometry-D3fkwmax.js";
|
|
2
|
+
import { r as _ } from "./canvasUtils-CXoNqK7T.js";
|
|
3
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/assets/loader/parsers/LoaderParser.mjs
|
|
4
|
+
var v = /* @__PURE__ */ ((e) => (e[e.Low = 0] = "Low", e[e.Normal = 1] = "Normal", e[e.High = 2] = "High", e))(v || {});
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/path.mjs
|
|
7
|
+
function y(e) {
|
|
8
|
+
if (typeof e != "string") throw TypeError(`Path must be a string. Received ${JSON.stringify(e)}`);
|
|
9
|
+
}
|
|
10
|
+
function b(e) {
|
|
11
|
+
return e.split("?")[0].split("#")[0];
|
|
12
|
+
}
|
|
13
|
+
function x(e) {
|
|
14
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
15
|
+
}
|
|
16
|
+
function S(e, t, n) {
|
|
17
|
+
return e.replace(new RegExp(x(t), "g"), n);
|
|
18
|
+
}
|
|
19
|
+
function C(e, t) {
|
|
20
|
+
let n = "", r = 0, i = -1, a = 0, o = -1;
|
|
21
|
+
for (let s = 0; s <= e.length; ++s) {
|
|
22
|
+
if (s < e.length) o = e.charCodeAt(s);
|
|
23
|
+
else if (o === 47) break;
|
|
24
|
+
else o = 47;
|
|
25
|
+
if (o === 47) {
|
|
26
|
+
if (i !== s - 1 && a !== 1) {
|
|
27
|
+
if (i !== s - 1 && a === 2) {
|
|
28
|
+
if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
|
|
29
|
+
if (n.length > 2) {
|
|
30
|
+
let e = n.lastIndexOf("/");
|
|
31
|
+
if (e !== n.length - 1) {
|
|
32
|
+
e === -1 ? (n = "", r = 0) : (n = n.slice(0, e), r = n.length - 1 - n.lastIndexOf("/")), i = s, a = 0;
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
} else if (n.length === 2 || n.length === 1) {
|
|
36
|
+
n = "", r = 0, i = s, a = 0;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
|
|
41
|
+
} else n.length > 0 ? n += `/${e.slice(i + 1, s)}` : n = e.slice(i + 1, s), r = s - i - 1;
|
|
42
|
+
}
|
|
43
|
+
i = s, a = 0;
|
|
44
|
+
} else o === 46 && a !== -1 ? ++a : a = -1;
|
|
45
|
+
}
|
|
46
|
+
return n;
|
|
47
|
+
}
|
|
48
|
+
var w = {
|
|
49
|
+
toPosix(e) {
|
|
50
|
+
return S(e, "\\", "/");
|
|
51
|
+
},
|
|
52
|
+
isUrl(e) {
|
|
53
|
+
return /^https?:/.test(this.toPosix(e));
|
|
54
|
+
},
|
|
55
|
+
isDataUrl(e) {
|
|
56
|
+
return /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e);
|
|
57
|
+
},
|
|
58
|
+
isBlobUrl(e) {
|
|
59
|
+
return e.startsWith("blob:");
|
|
60
|
+
},
|
|
61
|
+
hasProtocol(e) {
|
|
62
|
+
return /^[^/:]+:/.test(this.toPosix(e));
|
|
63
|
+
},
|
|
64
|
+
getProtocol(e) {
|
|
65
|
+
y(e), e = this.toPosix(e);
|
|
66
|
+
let t = /^file:\/\/\//.exec(e);
|
|
67
|
+
if (t) return t[0];
|
|
68
|
+
let n = /^[^/:]+:\/{0,2}/.exec(e);
|
|
69
|
+
return n ? n[0] : "";
|
|
70
|
+
},
|
|
71
|
+
toAbsolute(e, t, n) {
|
|
72
|
+
if (y(e), this.isDataUrl(e) || this.isBlobUrl(e)) return e;
|
|
73
|
+
let r = b(this.toPosix(t ?? c.get().getBaseUrl())), i = b(this.toPosix(n ?? this.rootname(r)));
|
|
74
|
+
return e = this.toPosix(e), e.startsWith("/") ? w.join(i, e.slice(1)) : this.isAbsolute(e) ? e : this.join(r, e);
|
|
75
|
+
},
|
|
76
|
+
normalize(e) {
|
|
77
|
+
if (y(e), e.length === 0) return ".";
|
|
78
|
+
if (this.isDataUrl(e) || this.isBlobUrl(e)) return e;
|
|
79
|
+
e = this.toPosix(e);
|
|
80
|
+
let t = "", n = e.startsWith("/");
|
|
81
|
+
this.hasProtocol(e) && (t = this.rootname(e), e = e.slice(t.length));
|
|
82
|
+
let r = e.endsWith("/");
|
|
83
|
+
return e = C(e, !1), e.length > 0 && r && (e += "/"), n ? `/${e}` : t + e;
|
|
84
|
+
},
|
|
85
|
+
isAbsolute(e) {
|
|
86
|
+
return y(e), e = this.toPosix(e), this.hasProtocol(e) ? !0 : e.startsWith("/");
|
|
87
|
+
},
|
|
88
|
+
join(...e) {
|
|
89
|
+
if (e.length === 0) return ".";
|
|
90
|
+
let t;
|
|
91
|
+
for (let n = 0; n < e.length; ++n) {
|
|
92
|
+
let r = e[n];
|
|
93
|
+
if (y(r), r.length > 0) {
|
|
94
|
+
if (t === void 0) t = r;
|
|
95
|
+
else {
|
|
96
|
+
let i = e[n - 1] ?? "";
|
|
97
|
+
this.joinExtensions.includes(this.extname(i).toLowerCase()) ? t += `/../${r}` : t += `/${r}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return t === void 0 ? "." : this.normalize(t);
|
|
102
|
+
},
|
|
103
|
+
dirname(e) {
|
|
104
|
+
if (y(e), e.length === 0) return ".";
|
|
105
|
+
e = this.toPosix(e);
|
|
106
|
+
let t = e.charCodeAt(0), n = t === 47, r = -1, i = !0, a = this.getProtocol(e), o = e;
|
|
107
|
+
e = e.slice(a.length);
|
|
108
|
+
for (let n = e.length - 1; n >= 1; --n) if (t = e.charCodeAt(n), t === 47) {
|
|
109
|
+
if (!i) {
|
|
110
|
+
r = n;
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
} else i = !1;
|
|
114
|
+
return r === -1 ? n ? "/" : this.isUrl(o) ? a + e : a : n && r === 1 ? "//" : a + e.slice(0, r);
|
|
115
|
+
},
|
|
116
|
+
rootname(e) {
|
|
117
|
+
y(e), e = this.toPosix(e);
|
|
118
|
+
let t = "";
|
|
119
|
+
if (t = e.startsWith("/") ? "/" : this.getProtocol(e), this.isUrl(e)) {
|
|
120
|
+
let n = e.indexOf("/", t.length);
|
|
121
|
+
t = n === -1 ? e : e.slice(0, n), t.endsWith("/") || (t += "/");
|
|
122
|
+
}
|
|
123
|
+
return t;
|
|
124
|
+
},
|
|
125
|
+
basename(e, t) {
|
|
126
|
+
y(e), t && y(t), e = b(this.toPosix(e));
|
|
127
|
+
let n = 0, r = -1, i = !0, a;
|
|
128
|
+
if (t !== void 0 && t.length > 0 && t.length <= e.length) {
|
|
129
|
+
if (t.length === e.length && t === e) return "";
|
|
130
|
+
let o = t.length - 1, s = -1;
|
|
131
|
+
for (a = e.length - 1; a >= 0; --a) {
|
|
132
|
+
let c = e.charCodeAt(a);
|
|
133
|
+
if (c === 47) {
|
|
134
|
+
if (!i) {
|
|
135
|
+
n = a + 1;
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
} else s === -1 && (i = !1, s = a + 1), o >= 0 && (c === t.charCodeAt(o) ? --o === -1 && (r = a) : (o = -1, r = s));
|
|
139
|
+
}
|
|
140
|
+
return n === r ? r = s : r === -1 && (r = e.length), e.slice(n, r);
|
|
141
|
+
}
|
|
142
|
+
for (a = e.length - 1; a >= 0; --a) if (e.charCodeAt(a) === 47) {
|
|
143
|
+
if (!i) {
|
|
144
|
+
n = a + 1;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
} else r === -1 && (i = !1, r = a + 1);
|
|
148
|
+
return r === -1 ? "" : e.slice(n, r);
|
|
149
|
+
},
|
|
150
|
+
extname(e) {
|
|
151
|
+
y(e), e = b(this.toPosix(e));
|
|
152
|
+
let t = -1, n = 0, r = -1, i = !0, a = 0;
|
|
153
|
+
for (let o = e.length - 1; o >= 0; --o) {
|
|
154
|
+
let s = e.charCodeAt(o);
|
|
155
|
+
if (s === 47) {
|
|
156
|
+
if (!i) {
|
|
157
|
+
n = o + 1;
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
r === -1 && (i = !1, r = o + 1), s === 46 ? t === -1 ? t = o : a !== 1 && (a = 1) : t !== -1 && (a = -1);
|
|
163
|
+
}
|
|
164
|
+
return t === -1 || r === -1 || a === 0 || a === 1 && t === r - 1 && t === n + 1 ? "" : e.slice(t, r);
|
|
165
|
+
},
|
|
166
|
+
parse(e) {
|
|
167
|
+
y(e);
|
|
168
|
+
let t = {
|
|
169
|
+
root: "",
|
|
170
|
+
dir: "",
|
|
171
|
+
base: "",
|
|
172
|
+
ext: "",
|
|
173
|
+
name: ""
|
|
174
|
+
};
|
|
175
|
+
if (e.length === 0) return t;
|
|
176
|
+
e = b(this.toPosix(e));
|
|
177
|
+
let n = e.charCodeAt(0), r = this.isAbsolute(e), i;
|
|
178
|
+
t.root = this.rootname(e), i = r || this.hasProtocol(e) ? 1 : 0;
|
|
179
|
+
let a = -1, o = 0, s = -1, c = !0, l = e.length - 1, u = 0;
|
|
180
|
+
for (; l >= i; --l) {
|
|
181
|
+
if (n = e.charCodeAt(l), n === 47) {
|
|
182
|
+
if (!c) {
|
|
183
|
+
o = l + 1;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
s === -1 && (c = !1, s = l + 1), n === 46 ? a === -1 ? a = l : u !== 1 && (u = 1) : a !== -1 && (u = -1);
|
|
189
|
+
}
|
|
190
|
+
return a === -1 || s === -1 || u === 0 || u === 1 && a === s - 1 && a === o + 1 ? s !== -1 && (t.base = t.name = o === 0 && r ? e.slice(1, s) : e.slice(o, s)) : (o === 0 && r ? (t.name = e.slice(1, a), t.base = e.slice(1, s)) : (t.name = e.slice(o, a), t.base = e.slice(o, s)), t.ext = e.slice(a, s)), t.dir = this.dirname(e), t;
|
|
191
|
+
},
|
|
192
|
+
sep: "/",
|
|
193
|
+
delimiter: ":",
|
|
194
|
+
joinExtensions: [".html"]
|
|
195
|
+
}, T = (e, t, n = !1) => (Array.isArray(e) || (e = [e]), t ? e.map((e) => typeof e == "string" || n ? t(e) : e) : e);
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/assets/utils/createStringVariations.mjs
|
|
198
|
+
function E(e, t, n, r, i) {
|
|
199
|
+
let a = t[n];
|
|
200
|
+
for (let o = 0; o < a.length; o++) {
|
|
201
|
+
let s = a[o];
|
|
202
|
+
n < t.length - 1 ? E(e.replace(r[n], s), t, n + 1, r, i) : i.push(e.replace(r[n], s));
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function D(e) {
|
|
206
|
+
let t = e.match(/\{(.*?)\}/g), n = [];
|
|
207
|
+
if (t) {
|
|
208
|
+
let r = [];
|
|
209
|
+
t.forEach((e) => {
|
|
210
|
+
let t = e.substring(1, e.length - 1).split(",");
|
|
211
|
+
r.push(t);
|
|
212
|
+
}), E(e, r, 0, t, n);
|
|
213
|
+
} else n.push(e);
|
|
214
|
+
return n;
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/assets/utils/isSingleItem.mjs
|
|
218
|
+
var O = (e) => !Array.isArray(e), k = class {
|
|
219
|
+
constructor() {
|
|
220
|
+
this._defaultBundleIdentifierOptions = {
|
|
221
|
+
connector: "-",
|
|
222
|
+
createBundleAssetId: (e, t) => `${e}${this._bundleIdConnector}${t}`,
|
|
223
|
+
extractAssetIdFromBundle: (e, t) => t.replace(`${e}${this._bundleIdConnector}`, "")
|
|
224
|
+
}, this._bundleIdConnector = this._defaultBundleIdentifierOptions.connector, this._createBundleAssetId = this._defaultBundleIdentifierOptions.createBundleAssetId, this._extractAssetIdFromBundle = this._defaultBundleIdentifierOptions.extractAssetIdFromBundle, this._assetMap = {}, this._preferredOrder = [], this._parsers = [], this._resolverHash = {}, this._bundles = {};
|
|
225
|
+
}
|
|
226
|
+
setBundleIdentifier(e) {
|
|
227
|
+
if (this._bundleIdConnector = e.connector ?? this._bundleIdConnector, this._createBundleAssetId = e.createBundleAssetId ?? this._createBundleAssetId, this._extractAssetIdFromBundle = e.extractAssetIdFromBundle ?? this._extractAssetIdFromBundle, this._extractAssetIdFromBundle("foo", this._createBundleAssetId("foo", "bar")) !== "bar") throw Error("[Resolver] GenerateBundleAssetId are not working correctly");
|
|
228
|
+
}
|
|
229
|
+
prefer(...e) {
|
|
230
|
+
e.forEach((e) => {
|
|
231
|
+
this._preferredOrder.push(e), e.priority ||= Object.keys(e.params);
|
|
232
|
+
}), this._resolverHash = {};
|
|
233
|
+
}
|
|
234
|
+
set basePath(e) {
|
|
235
|
+
this._basePath = e;
|
|
236
|
+
}
|
|
237
|
+
get basePath() {
|
|
238
|
+
return this._basePath;
|
|
239
|
+
}
|
|
240
|
+
set rootPath(e) {
|
|
241
|
+
this._rootPath = e;
|
|
242
|
+
}
|
|
243
|
+
get rootPath() {
|
|
244
|
+
return this._rootPath;
|
|
245
|
+
}
|
|
246
|
+
get parsers() {
|
|
247
|
+
return this._parsers;
|
|
248
|
+
}
|
|
249
|
+
reset() {
|
|
250
|
+
this.setBundleIdentifier(this._defaultBundleIdentifierOptions), this._assetMap = {}, this._preferredOrder = [], this._resolverHash = {}, this._rootPath = null, this._basePath = null, this._manifest = null, this._bundles = {}, this._defaultSearchParams = null;
|
|
251
|
+
}
|
|
252
|
+
setDefaultSearchParams(e) {
|
|
253
|
+
if (typeof e == "string") this._defaultSearchParams = e;
|
|
254
|
+
else {
|
|
255
|
+
let t = e;
|
|
256
|
+
this._defaultSearchParams = Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
getAlias(e) {
|
|
260
|
+
let { alias: t, src: n } = e;
|
|
261
|
+
return T(t || n, (e) => typeof e == "string" ? e : Array.isArray(e) ? e.map((e) => e?.src ?? e) : e?.src ? e.src : e, !0);
|
|
262
|
+
}
|
|
263
|
+
removeAlias(e, t) {
|
|
264
|
+
this._assetMap[e] && (t && t !== this._resolverHash[e] || (delete this._resolverHash[e], delete this._assetMap[e]));
|
|
265
|
+
}
|
|
266
|
+
addManifest(e) {
|
|
267
|
+
this._manifest && n("[Resolver] Manifest already exists, this will be overwritten"), this._manifest = e, e.bundles.forEach((e) => {
|
|
268
|
+
this.addBundle(e.name, e.assets);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
addBundle(e, t) {
|
|
272
|
+
let n = [], r = t;
|
|
273
|
+
Array.isArray(t) || (r = Object.entries(t).map(([e, t]) => typeof t == "string" || Array.isArray(t) ? {
|
|
274
|
+
alias: e,
|
|
275
|
+
src: t
|
|
276
|
+
} : {
|
|
277
|
+
alias: e,
|
|
278
|
+
...t
|
|
279
|
+
})), r.forEach((t) => {
|
|
280
|
+
let r = t.src, i = t.alias, a;
|
|
281
|
+
if (typeof i == "string") {
|
|
282
|
+
let t = this._createBundleAssetId(e, i);
|
|
283
|
+
n.push(t), a = [i, t];
|
|
284
|
+
} else {
|
|
285
|
+
let t = i.map((t) => this._createBundleAssetId(e, t));
|
|
286
|
+
n.push(...t), a = [...i, ...t];
|
|
287
|
+
}
|
|
288
|
+
this.add({
|
|
289
|
+
...t,
|
|
290
|
+
alias: a,
|
|
291
|
+
src: r
|
|
292
|
+
});
|
|
293
|
+
}), this._bundles[e] = n;
|
|
294
|
+
}
|
|
295
|
+
add(e) {
|
|
296
|
+
let t = [];
|
|
297
|
+
Array.isArray(e) ? t.push(...e) : t.push(e);
|
|
298
|
+
let r = (e) => {
|
|
299
|
+
this.hasKey(e) && n(`[Resolver] already has key: ${e} overwriting`);
|
|
300
|
+
};
|
|
301
|
+
T(t).forEach((e) => {
|
|
302
|
+
let { src: t } = e, { data: n, format: i, loadParser: a, parser: o } = e, s = T(t).map((e) => typeof e == "string" ? D(e) : Array.isArray(e) ? e : [e]), c = this.getAlias(e);
|
|
303
|
+
Array.isArray(c) ? c.forEach(r) : r(c);
|
|
304
|
+
let l = [], u = (e) => ({
|
|
305
|
+
src: e,
|
|
306
|
+
...this._parsers.find((t) => t.test(e))?.parse(e)
|
|
307
|
+
});
|
|
308
|
+
s.forEach((t) => {
|
|
309
|
+
t.forEach((t) => {
|
|
310
|
+
let r = {};
|
|
311
|
+
if (typeof t == "object" ? (n = t.data ?? n, i = t.format ?? i, (t.loadParser || t.parser) && (a = t.loadParser ?? a, o = t.parser ?? o), r = {
|
|
312
|
+
...u(t.src),
|
|
313
|
+
...t
|
|
314
|
+
}) : r = u(t), !c) throw Error(`[Resolver] alias is undefined for this asset: ${r.src}`);
|
|
315
|
+
r = this._buildResolvedAsset(r, {
|
|
316
|
+
aliases: c,
|
|
317
|
+
data: n,
|
|
318
|
+
format: i,
|
|
319
|
+
loadParser: a,
|
|
320
|
+
parser: o,
|
|
321
|
+
progressSize: e.progressSize
|
|
322
|
+
}), l.push(r);
|
|
323
|
+
});
|
|
324
|
+
}), c.forEach((e) => {
|
|
325
|
+
this._assetMap[e] = l;
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
resolveBundle(e) {
|
|
330
|
+
let t = O(e);
|
|
331
|
+
e = T(e);
|
|
332
|
+
let n = {};
|
|
333
|
+
return e.forEach((e) => {
|
|
334
|
+
let t = this._bundles[e];
|
|
335
|
+
if (t) {
|
|
336
|
+
let r = this.resolve(t), i = {};
|
|
337
|
+
for (let t in r) {
|
|
338
|
+
let n = r[t];
|
|
339
|
+
i[this._extractAssetIdFromBundle(e, t)] = n;
|
|
340
|
+
}
|
|
341
|
+
n[e] = i;
|
|
342
|
+
}
|
|
343
|
+
}), t ? n[e[0]] : n;
|
|
344
|
+
}
|
|
345
|
+
resolveUrl(e) {
|
|
346
|
+
let t = this.resolve(e);
|
|
347
|
+
if (typeof e != "string") {
|
|
348
|
+
let e = {};
|
|
349
|
+
for (let n in t) e[n] = t[n].src;
|
|
350
|
+
return e;
|
|
351
|
+
}
|
|
352
|
+
return t.src;
|
|
353
|
+
}
|
|
354
|
+
resolve(e) {
|
|
355
|
+
let t = O(e);
|
|
356
|
+
e = T(e);
|
|
357
|
+
let n = {};
|
|
358
|
+
return e.forEach((e) => {
|
|
359
|
+
if (!this._resolverHash[e]) {
|
|
360
|
+
if (this._assetMap[e]) {
|
|
361
|
+
let t = this._assetMap[e], n = this._getPreferredOrder(t);
|
|
362
|
+
n?.priority.forEach((e) => {
|
|
363
|
+
n.params[e].forEach((n) => {
|
|
364
|
+
let r = t.filter((t) => t[e] ? t[e] === n : !1);
|
|
365
|
+
r.length && (t = r);
|
|
366
|
+
});
|
|
367
|
+
}), this._resolverHash[e] = t[0];
|
|
368
|
+
} else this._resolverHash[e] = this._buildResolvedAsset({
|
|
369
|
+
alias: [e],
|
|
370
|
+
src: e
|
|
371
|
+
}, {});
|
|
372
|
+
}
|
|
373
|
+
n[e] = this._resolverHash[e];
|
|
374
|
+
}), t ? n[e[0]] : n;
|
|
375
|
+
}
|
|
376
|
+
hasKey(e) {
|
|
377
|
+
return !!this._assetMap[e];
|
|
378
|
+
}
|
|
379
|
+
hasBundle(e) {
|
|
380
|
+
return !!this._bundles[e];
|
|
381
|
+
}
|
|
382
|
+
_getPreferredOrder(e) {
|
|
383
|
+
for (let t = 0; t < e.length; t++) {
|
|
384
|
+
let n = e[t], r = this._preferredOrder.find((e) => e.params.format.includes(n.format));
|
|
385
|
+
if (r) return r;
|
|
386
|
+
}
|
|
387
|
+
return this._preferredOrder[0];
|
|
388
|
+
}
|
|
389
|
+
_appendDefaultSearchParams(e) {
|
|
390
|
+
return this._defaultSearchParams ? `${e}${/\?/.test(e) ? "&" : "?"}${this._defaultSearchParams}` : e;
|
|
391
|
+
}
|
|
392
|
+
_buildResolvedAsset(e, t) {
|
|
393
|
+
let { aliases: n, data: r, loadParser: i, parser: a, format: o, progressSize: s } = t;
|
|
394
|
+
return (this._basePath || this._rootPath) && (e.src = w.toAbsolute(e.src, this._basePath, this._rootPath)), e.alias = n ?? e.alias ?? [e.src], e.src = this._appendDefaultSearchParams(e.src), e.data = {
|
|
395
|
+
...r || {},
|
|
396
|
+
...e.data
|
|
397
|
+
}, e.loadParser = i ?? e.loadParser, e.parser = a ?? e.parser, e.format = o ?? e.format ?? A(e.src), s !== void 0 && (e.progressSize = s), e;
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
k.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
401
|
+
function A(e) {
|
|
402
|
+
return e.split(".").pop().split("?").shift().split("#").shift();
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/assets/utils/copySearchParams.mjs
|
|
406
|
+
var j = (e, t) => {
|
|
407
|
+
let n = t.split("?")[1];
|
|
408
|
+
return n && (e += `?${n}`), e;
|
|
409
|
+
}, M = class e {
|
|
410
|
+
constructor(e, t) {
|
|
411
|
+
this.linkedSheets = [];
|
|
412
|
+
let n = e;
|
|
413
|
+
e?.source instanceof a && (n = {
|
|
414
|
+
texture: e,
|
|
415
|
+
data: t
|
|
416
|
+
});
|
|
417
|
+
let { texture: r, data: i, cachePrefix: o = "" } = n;
|
|
418
|
+
this.cachePrefix = o, this._texture = r instanceof p ? r : null, this.textureSource = r.source, this.textures = {}, this.animations = {}, this.data = i;
|
|
419
|
+
let s = parseFloat(i.meta.scale);
|
|
420
|
+
s ? (this.resolution = s, r.source.resolution = this.resolution) : this.resolution = r.source._resolution, this._frames = this.data.frames, this._frameKeys = Object.keys(this._frames), this._batchIndex = 0, this._callback = null;
|
|
421
|
+
}
|
|
422
|
+
parse() {
|
|
423
|
+
return new Promise((t) => {
|
|
424
|
+
this._callback = t, this._batchIndex = 0, this._frameKeys.length <= e.BATCH_SIZE ? (this._processFrames(0), this._processAnimations(), this._parseComplete()) : this._nextBatch();
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
parseSync() {
|
|
428
|
+
return this._processFrames(0, !0), this._processAnimations(), this.textures;
|
|
429
|
+
}
|
|
430
|
+
_processFrames(t, n = !1) {
|
|
431
|
+
let r = t, i = n ? Infinity : e.BATCH_SIZE;
|
|
432
|
+
for (; r - t < i && r < this._frameKeys.length;) {
|
|
433
|
+
let e = this._frameKeys[r], t = this._frames[e], n = t.frame;
|
|
434
|
+
if (n) {
|
|
435
|
+
let r = null, i = null, a = t.trimmed !== !1 && t.sourceSize ? t.sourceSize : t.frame, o = new s(0, 0, Math.floor(a.w) / this.resolution, Math.floor(a.h) / this.resolution);
|
|
436
|
+
r = t.rotated ? new s(Math.floor(n.x) / this.resolution, Math.floor(n.y) / this.resolution, Math.floor(n.h) / this.resolution, Math.floor(n.w) / this.resolution) : new s(Math.floor(n.x) / this.resolution, Math.floor(n.y) / this.resolution, Math.floor(n.w) / this.resolution, Math.floor(n.h) / this.resolution), t.trimmed !== !1 && t.spriteSourceSize && (i = new s(Math.floor(t.spriteSourceSize.x) / this.resolution, Math.floor(t.spriteSourceSize.y) / this.resolution, Math.floor(n.w) / this.resolution, Math.floor(n.h) / this.resolution)), this.textures[e] = new p({
|
|
437
|
+
source: this.textureSource,
|
|
438
|
+
frame: r,
|
|
439
|
+
orig: o,
|
|
440
|
+
trim: i,
|
|
441
|
+
rotate: t.rotated ? 2 : 0,
|
|
442
|
+
defaultAnchor: t.anchor,
|
|
443
|
+
defaultBorders: t.borders,
|
|
444
|
+
label: e.toString()
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
r++;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
_processAnimations() {
|
|
451
|
+
let e = this.data.animations || {};
|
|
452
|
+
for (let t in e) {
|
|
453
|
+
this.animations[t] = [];
|
|
454
|
+
for (let n = 0; n < e[t].length; n++) {
|
|
455
|
+
let r = e[t][n];
|
|
456
|
+
this.animations[t].push(this.textures[r]);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
_parseComplete() {
|
|
461
|
+
let e = this._callback;
|
|
462
|
+
this._callback = null, this._batchIndex = 0, e.call(this, this.textures);
|
|
463
|
+
}
|
|
464
|
+
_nextBatch() {
|
|
465
|
+
this._processFrames(this._batchIndex * e.BATCH_SIZE), this._batchIndex++, setTimeout(() => {
|
|
466
|
+
this._batchIndex * e.BATCH_SIZE < this._frameKeys.length ? this._nextBatch() : (this._processAnimations(), this._parseComplete());
|
|
467
|
+
}, 0);
|
|
468
|
+
}
|
|
469
|
+
destroy(e = !1) {
|
|
470
|
+
for (let e in this.textures) this.textures[e].destroy();
|
|
471
|
+
this._frames = null, this._frameKeys = null, this.data = null, this.textures = null, e && (this._texture?.destroy(), this.textureSource.destroy()), this._texture = null, this.textureSource = null, this.linkedSheets = [];
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
M.BATCH_SIZE = 1e3;
|
|
475
|
+
var N = M, P = [
|
|
476
|
+
"jpg",
|
|
477
|
+
"png",
|
|
478
|
+
"jpeg",
|
|
479
|
+
"avif",
|
|
480
|
+
"webp",
|
|
481
|
+
"basis",
|
|
482
|
+
"etc2",
|
|
483
|
+
"bc7",
|
|
484
|
+
"bc6h",
|
|
485
|
+
"bc5",
|
|
486
|
+
"bc4",
|
|
487
|
+
"bc3",
|
|
488
|
+
"bc2",
|
|
489
|
+
"bc1",
|
|
490
|
+
"eac",
|
|
491
|
+
"astc"
|
|
492
|
+
];
|
|
493
|
+
function F(e, t, n) {
|
|
494
|
+
let r = {};
|
|
495
|
+
if (e.forEach((e) => {
|
|
496
|
+
r[e] = t;
|
|
497
|
+
}), Object.keys(t.textures).forEach((e) => {
|
|
498
|
+
r[`${t.cachePrefix}${e}`] = t.textures[e];
|
|
499
|
+
}), !n) {
|
|
500
|
+
let n = w.dirname(e[0]);
|
|
501
|
+
t.linkedSheets.forEach((e, i) => {
|
|
502
|
+
let a = F([`${n}/${t.data.meta.related_multi_packs[i]}`], e, !0);
|
|
503
|
+
Object.assign(r, a);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
return r;
|
|
507
|
+
}
|
|
508
|
+
var I = {
|
|
509
|
+
extension: f.Asset,
|
|
510
|
+
cache: {
|
|
511
|
+
test: (e) => e instanceof N,
|
|
512
|
+
getCacheableAssets: (e, t) => F(e, t, !1)
|
|
513
|
+
},
|
|
514
|
+
resolver: {
|
|
515
|
+
extension: {
|
|
516
|
+
type: f.ResolveParser,
|
|
517
|
+
name: "resolveSpritesheet"
|
|
518
|
+
},
|
|
519
|
+
test: (e) => {
|
|
520
|
+
let t = e.split("?")[0].split("."), n = t.pop(), r = t.pop();
|
|
521
|
+
return n === "json" && P.includes(r);
|
|
522
|
+
},
|
|
523
|
+
parse: (e) => {
|
|
524
|
+
let t = e.split(".");
|
|
525
|
+
return {
|
|
526
|
+
resolution: parseFloat(k.RETINA_PREFIX.exec(e)?.[1] ?? "1"),
|
|
527
|
+
format: t[t.length - 2],
|
|
528
|
+
src: e
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
loader: {
|
|
533
|
+
name: "spritesheetLoader",
|
|
534
|
+
id: "spritesheet",
|
|
535
|
+
extension: {
|
|
536
|
+
type: f.LoadParser,
|
|
537
|
+
priority: v.Normal,
|
|
538
|
+
name: "spritesheetLoader"
|
|
539
|
+
},
|
|
540
|
+
async testParse(e, t) {
|
|
541
|
+
return w.extname(t.src).toLowerCase() === ".json" && !!e.frames;
|
|
542
|
+
},
|
|
543
|
+
async parse(e, t, n) {
|
|
544
|
+
let { texture: r, imageFilename: i, textureOptions: a, cachePrefix: o } = t?.data ?? {}, s = w.dirname(t.src);
|
|
545
|
+
s && s.lastIndexOf("/") !== s.length - 1 && (s += "/");
|
|
546
|
+
let c;
|
|
547
|
+
if (r instanceof p) c = r;
|
|
548
|
+
else {
|
|
549
|
+
let r = j(s + (i ?? e.meta.image), t.src);
|
|
550
|
+
c = (await n.load([{
|
|
551
|
+
src: r,
|
|
552
|
+
data: a
|
|
553
|
+
}]))[r];
|
|
554
|
+
}
|
|
555
|
+
let l = new N({
|
|
556
|
+
texture: c.source,
|
|
557
|
+
data: e,
|
|
558
|
+
cachePrefix: o
|
|
559
|
+
});
|
|
560
|
+
await l.parse();
|
|
561
|
+
let u = e?.meta?.related_multi_packs;
|
|
562
|
+
if (Array.isArray(u)) {
|
|
563
|
+
let e = [];
|
|
564
|
+
for (let r of u) {
|
|
565
|
+
if (typeof r != "string") continue;
|
|
566
|
+
let i = s + r;
|
|
567
|
+
t.data?.ignoreMultiPack || (i = j(i, t.src), e.push(n.load({
|
|
568
|
+
src: i,
|
|
569
|
+
data: {
|
|
570
|
+
textureOptions: a,
|
|
571
|
+
ignoreMultiPack: !0
|
|
572
|
+
}
|
|
573
|
+
})));
|
|
574
|
+
}
|
|
575
|
+
let r = await Promise.all(e);
|
|
576
|
+
l.linkedSheets = r, r.forEach((e) => {
|
|
577
|
+
e.linkedSheets = [l].concat(l.linkedSheets.filter((t) => t !== e));
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
return l;
|
|
581
|
+
},
|
|
582
|
+
async unload(e, t, n) {
|
|
583
|
+
await n.unload(e.textureSource._sourceOrigin), e.destroy(!1);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/spritesheet/init.mjs
|
|
589
|
+
d.add(I);
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/mask/utils/addMaskBounds.mjs
|
|
592
|
+
var L = new e();
|
|
593
|
+
function R(e, t, n) {
|
|
594
|
+
let i = L;
|
|
595
|
+
e.measurable = !0, r(e, n, i), t.addBoundsMask(i), e.measurable = !1;
|
|
596
|
+
}
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/mask/utils/addMaskLocalBounds.mjs
|
|
599
|
+
function z(e, t, n) {
|
|
600
|
+
let r = o.get();
|
|
601
|
+
e.measurable = !0;
|
|
602
|
+
let a = g.get().identity(), s = B(e, n, a);
|
|
603
|
+
i(e, r, s), e.measurable = !1, t.addBoundsMask(r), g.return(a), o.return(r);
|
|
604
|
+
}
|
|
605
|
+
function B(e, t, r) {
|
|
606
|
+
return e ? (e !== t && (B(e.parent, t, r), e.updateLocalTransform(), r.append(e.localTransform)), r) : (n("Mask bounds, renderable is not inside the root container"), r);
|
|
607
|
+
}
|
|
608
|
+
//#endregion
|
|
609
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/mask/alpha/AlphaMask.mjs
|
|
610
|
+
var V = class {
|
|
611
|
+
constructor(e) {
|
|
612
|
+
this.priority = 0, this.inverse = !1, this.channel = "red", this.pipe = "alphaMask", e?.mask && this.init(e.mask);
|
|
613
|
+
}
|
|
614
|
+
init(e) {
|
|
615
|
+
this.mask = e, this.renderMaskToTexture = !(e instanceof l), this.mask.renderable = this.renderMaskToTexture, this.mask.includeInBuild = !this.renderMaskToTexture, this.mask.measurable = !1;
|
|
616
|
+
}
|
|
617
|
+
reset() {
|
|
618
|
+
this.mask !== null && (this.mask.measurable = !0, this.mask = null);
|
|
619
|
+
}
|
|
620
|
+
addBounds(e, t) {
|
|
621
|
+
this.inverse || R(this.mask, e, t);
|
|
622
|
+
}
|
|
623
|
+
addLocalBounds(e, t) {
|
|
624
|
+
z(this.mask, e, t);
|
|
625
|
+
}
|
|
626
|
+
containsPoint(e, t) {
|
|
627
|
+
let n = this.mask;
|
|
628
|
+
return t(n, e);
|
|
629
|
+
}
|
|
630
|
+
destroy() {
|
|
631
|
+
this.reset();
|
|
632
|
+
}
|
|
633
|
+
static test(e) {
|
|
634
|
+
return e instanceof l;
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
V.extension = f.MaskEffect;
|
|
638
|
+
//#endregion
|
|
639
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/mask/color/ColorMask.mjs
|
|
640
|
+
var H = class {
|
|
641
|
+
constructor(e) {
|
|
642
|
+
this.priority = 0, this.pipe = "colorMask", e?.mask && this.init(e.mask);
|
|
643
|
+
}
|
|
644
|
+
init(e) {
|
|
645
|
+
this.mask = e;
|
|
646
|
+
}
|
|
647
|
+
destroy() {}
|
|
648
|
+
static test(e) {
|
|
649
|
+
return typeof e == "number";
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
H.extension = f.MaskEffect;
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/mask/stencil/StencilMask.mjs
|
|
655
|
+
var U = class {
|
|
656
|
+
constructor(e) {
|
|
657
|
+
this.priority = 0, this.pipe = "stencilMask", e?.mask && this.init(e.mask);
|
|
658
|
+
}
|
|
659
|
+
init(e) {
|
|
660
|
+
this.mask = e, this.mask.includeInBuild = !1, this.mask.measurable = !1;
|
|
661
|
+
}
|
|
662
|
+
reset() {
|
|
663
|
+
this.mask !== null && (this.mask.measurable = !0, this.mask.includeInBuild = !0, this.mask = null);
|
|
664
|
+
}
|
|
665
|
+
addBounds(e, t) {
|
|
666
|
+
R(this.mask, e, t);
|
|
667
|
+
}
|
|
668
|
+
addLocalBounds(e, t) {
|
|
669
|
+
z(this.mask, e, t);
|
|
670
|
+
}
|
|
671
|
+
containsPoint(e, t) {
|
|
672
|
+
let n = this.mask;
|
|
673
|
+
return t(n, e);
|
|
674
|
+
}
|
|
675
|
+
destroy() {
|
|
676
|
+
this.reset();
|
|
677
|
+
}
|
|
678
|
+
static test(e) {
|
|
679
|
+
return e instanceof m;
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
U.extension = f.MaskEffect;
|
|
683
|
+
//#endregion
|
|
684
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/browser/detectVideoAlphaMode.mjs
|
|
685
|
+
var W;
|
|
686
|
+
async function G() {
|
|
687
|
+
return W ??= (async () => {
|
|
688
|
+
let e = c.get().createCanvas(1, 1).getContext("webgl");
|
|
689
|
+
if (!e) return "premultiply-alpha-on-upload";
|
|
690
|
+
let t = await new Promise((e) => {
|
|
691
|
+
let t = document.createElement("video");
|
|
692
|
+
t.onloadeddata = () => e(t), t.onerror = () => e(null), t.autoplay = !1, t.crossOrigin = "anonymous", t.preload = "auto", t.src = "data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=", t.load();
|
|
693
|
+
});
|
|
694
|
+
if (!t) return "premultiply-alpha-on-upload";
|
|
695
|
+
let n = e.createTexture();
|
|
696
|
+
e.bindTexture(e.TEXTURE_2D, n);
|
|
697
|
+
let r = e.createFramebuffer();
|
|
698
|
+
e.bindFramebuffer(e.FRAMEBUFFER, r), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, n, 0), e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL, e.NONE), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, t);
|
|
699
|
+
let i = /* @__PURE__ */ new Uint8Array(4);
|
|
700
|
+
return e.readPixels(0, 0, 1, 1, e.RGBA, e.UNSIGNED_BYTE, i), e.deleteFramebuffer(r), e.deleteTexture(n), e.getExtension("WEBGL_lose_context")?.loseContext(), i[0] <= i[3] ? "premultiplied-alpha" : "premultiply-alpha-on-upload";
|
|
701
|
+
})(), W;
|
|
702
|
+
}
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/VideoSource.mjs
|
|
705
|
+
var K = class e extends a {
|
|
706
|
+
constructor(t) {
|
|
707
|
+
super(t), this.isReady = !1, this.uploadMethodId = "video", t = {
|
|
708
|
+
...e.defaultOptions,
|
|
709
|
+
...t
|
|
710
|
+
}, this._autoUpdate = !0, this._isConnectedToTicker = !1, this._updateFPS = t.updateFPS || 0, this._msToNextUpdate = 0, this.autoPlay = t.autoPlay !== !1, this.alphaMode = t.alphaMode ?? "premultiply-alpha-on-upload", this._videoFrameRequestCallback = this._videoFrameRequestCallback.bind(this), this._videoFrameRequestCallbackHandle = null, this._load = null, this._resolve = null, this._reject = null, this._onCanPlay = this._onCanPlay.bind(this), this._onCanPlayThrough = this._onCanPlayThrough.bind(this), this._onError = this._onError.bind(this), this._onPlayStart = this._onPlayStart.bind(this), this._onPlayStop = this._onPlayStop.bind(this), this._onSeeked = this._onSeeked.bind(this), this._onLoadedMetadata = this._onLoadedMetadata.bind(this), t.autoLoad !== !1 && this.load();
|
|
711
|
+
}
|
|
712
|
+
updateFrame() {
|
|
713
|
+
if (!this.destroyed) {
|
|
714
|
+
if (this._updateFPS) {
|
|
715
|
+
let e = h.shared.elapsedMS * this.resource.playbackRate;
|
|
716
|
+
this._msToNextUpdate = Math.floor(this._msToNextUpdate - e);
|
|
717
|
+
}
|
|
718
|
+
(!this._updateFPS || this._msToNextUpdate <= 0) && (this._msToNextUpdate = this._updateFPS ? Math.floor(1e3 / this._updateFPS) : 0), this.isValid && this.update();
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
_videoFrameRequestCallback() {
|
|
722
|
+
this.updateFrame(), this._videoFrameRequestCallbackHandle = this.destroyed ? null : this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback);
|
|
723
|
+
}
|
|
724
|
+
get isValid() {
|
|
725
|
+
return !!this.resource.videoWidth && !!this.resource.videoHeight;
|
|
726
|
+
}
|
|
727
|
+
async load() {
|
|
728
|
+
if (this._load) return this._load;
|
|
729
|
+
let e = this.resource, t = this.options;
|
|
730
|
+
return (e.readyState === e.HAVE_ENOUGH_DATA || e.readyState === e.HAVE_FUTURE_DATA) && e.width && e.height && (e.complete = !0), e.addEventListener("play", this._onPlayStart), e.addEventListener("pause", this._onPlayStop), e.addEventListener("seeked", this._onSeeked), this._isSourceReady() ? this._mediaReady() : (t.preload || e.addEventListener("canplay", this._onCanPlay), e.addEventListener("canplaythrough", this._onCanPlayThrough), e.addEventListener("error", this._onError, !0)), this.isValid || e.addEventListener("loadedmetadata", this._onLoadedMetadata), this.alphaMode = await G(), this._load = new Promise((n, r) => {
|
|
731
|
+
this.isValid ? n(this) : (this._resolve = n, this._reject = r, t.preloadTimeoutMs !== void 0 && (this._preloadTimeout = setTimeout(() => {
|
|
732
|
+
this._onError(new ErrorEvent(`Preload exceeded timeout of ${t.preloadTimeoutMs}ms`));
|
|
733
|
+
})), e.load());
|
|
734
|
+
}), this._load;
|
|
735
|
+
}
|
|
736
|
+
_onError(e) {
|
|
737
|
+
this.resource.removeEventListener("error", this._onError, !0), this.emit("error", e), this._reject && (this._reject(e), this._reject = null, this._resolve = null);
|
|
738
|
+
}
|
|
739
|
+
_isSourcePlaying() {
|
|
740
|
+
let e = this.resource;
|
|
741
|
+
return !e.paused && !e.ended;
|
|
742
|
+
}
|
|
743
|
+
_isSourceReady() {
|
|
744
|
+
return this.resource.readyState > 2;
|
|
745
|
+
}
|
|
746
|
+
_onPlayStart() {
|
|
747
|
+
this._configureAutoUpdate();
|
|
748
|
+
}
|
|
749
|
+
_onPlayStop() {
|
|
750
|
+
this._configureAutoUpdate();
|
|
751
|
+
}
|
|
752
|
+
_onSeeked() {
|
|
753
|
+
this._autoUpdate && !this._isSourcePlaying() && (this._msToNextUpdate = 0, this.updateFrame(), this._msToNextUpdate = 0);
|
|
754
|
+
}
|
|
755
|
+
_onLoadedMetadata() {
|
|
756
|
+
this.isValid && this._mediaReady();
|
|
757
|
+
}
|
|
758
|
+
_onCanPlay() {
|
|
759
|
+
this.resource.removeEventListener("canplay", this._onCanPlay), this._mediaReady();
|
|
760
|
+
}
|
|
761
|
+
_onCanPlayThrough() {
|
|
762
|
+
this.resource.removeEventListener("canplaythrough", this._onCanPlayThrough), this._preloadTimeout &&= (clearTimeout(this._preloadTimeout), void 0), this._mediaReady();
|
|
763
|
+
}
|
|
764
|
+
_mediaReady() {
|
|
765
|
+
let e = this.resource;
|
|
766
|
+
this.isValid && (this.isReady = !0, this.resize(e.videoWidth, e.videoHeight)), this._msToNextUpdate = 0, this.updateFrame(), this._msToNextUpdate = 0, this._resolve && this.isValid && (this._resolve(this), this._resolve = null, this._reject = null), this._isSourcePlaying() ? this._onPlayStart() : this.autoPlay && this.resource.play();
|
|
767
|
+
}
|
|
768
|
+
destroy() {
|
|
769
|
+
this._configureAutoUpdate();
|
|
770
|
+
let e = this.resource;
|
|
771
|
+
e && (e.removeEventListener("play", this._onPlayStart), e.removeEventListener("pause", this._onPlayStop), e.removeEventListener("seeked", this._onSeeked), e.removeEventListener("canplay", this._onCanPlay), e.removeEventListener("canplaythrough", this._onCanPlayThrough), e.removeEventListener("loadedmetadata", this._onLoadedMetadata), e.removeEventListener("error", this._onError, !0), e.pause(), e.src = "", e.load()), super.destroy();
|
|
772
|
+
}
|
|
773
|
+
get autoUpdate() {
|
|
774
|
+
return this._autoUpdate;
|
|
775
|
+
}
|
|
776
|
+
set autoUpdate(e) {
|
|
777
|
+
e !== this._autoUpdate && (this._autoUpdate = e, this._configureAutoUpdate());
|
|
778
|
+
}
|
|
779
|
+
get updateFPS() {
|
|
780
|
+
return this._updateFPS;
|
|
781
|
+
}
|
|
782
|
+
set updateFPS(e) {
|
|
783
|
+
e !== this._updateFPS && (this._updateFPS = e, this._configureAutoUpdate());
|
|
784
|
+
}
|
|
785
|
+
_configureAutoUpdate() {
|
|
786
|
+
this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.resource.requestVideoFrameCallback ? (this._isConnectedToTicker && (h.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0), this._videoFrameRequestCallbackHandle === null && (this._videoFrameRequestCallbackHandle = this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || (h.shared.add(this.updateFrame, this), this._isConnectedToTicker = !0, this._msToNextUpdate = 0)) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker && (h.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0));
|
|
787
|
+
}
|
|
788
|
+
static test(e) {
|
|
789
|
+
return globalThis.HTMLVideoElement && e instanceof HTMLVideoElement;
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
K.extension = f.TextureSource, K.defaultOptions = {
|
|
793
|
+
...a.defaultOptions,
|
|
794
|
+
autoLoad: !0,
|
|
795
|
+
autoPlay: !0,
|
|
796
|
+
updateFPS: 0,
|
|
797
|
+
crossorigin: !0,
|
|
798
|
+
loop: !1,
|
|
799
|
+
muted: !0,
|
|
800
|
+
playsinline: !0,
|
|
801
|
+
preload: !1
|
|
802
|
+
}, K.MIME_TYPES = {
|
|
803
|
+
ogv: "video/ogg",
|
|
804
|
+
mov: "video/quicktime",
|
|
805
|
+
m4v: "video/mp4"
|
|
806
|
+
};
|
|
807
|
+
var q = K, J = new class {
|
|
808
|
+
constructor() {
|
|
809
|
+
this._parsers = [], this._cache = /* @__PURE__ */ new Map(), this._cacheMap = /* @__PURE__ */ new Map();
|
|
810
|
+
}
|
|
811
|
+
reset() {
|
|
812
|
+
this._cacheMap.clear(), this._cache.clear();
|
|
813
|
+
}
|
|
814
|
+
has(e) {
|
|
815
|
+
return this._cache.has(e);
|
|
816
|
+
}
|
|
817
|
+
get(e) {
|
|
818
|
+
let t = this._cache.get(e);
|
|
819
|
+
return t || n(`[Assets] Asset id ${e} was not found in the Cache`), t;
|
|
820
|
+
}
|
|
821
|
+
set(e, t) {
|
|
822
|
+
let r = T(e), i;
|
|
823
|
+
for (let e = 0; e < this.parsers.length; e++) {
|
|
824
|
+
let n = this.parsers[e];
|
|
825
|
+
if (n.test(t)) {
|
|
826
|
+
i = n.getCacheableAssets(r, t);
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
let a = new Map(Object.entries(i || {}));
|
|
831
|
+
i || r.forEach((e) => {
|
|
832
|
+
a.set(e, t);
|
|
833
|
+
});
|
|
834
|
+
let o = [...a.keys()], s = {
|
|
835
|
+
cacheKeys: o,
|
|
836
|
+
keys: r
|
|
837
|
+
};
|
|
838
|
+
r.forEach((e) => {
|
|
839
|
+
this._cacheMap.set(e, s);
|
|
840
|
+
}), o.forEach((e) => {
|
|
841
|
+
let r = i ? i[e] : t;
|
|
842
|
+
this._cache.has(e) && this._cache.get(e) !== r && n("[Cache] already has key:", e), this._cache.set(e, a.get(e));
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
remove(e) {
|
|
846
|
+
if (!this._cacheMap.has(e)) {
|
|
847
|
+
n(`[Assets] Asset id ${e} was not found in the Cache`);
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
let t = this._cacheMap.get(e);
|
|
851
|
+
t.cacheKeys.forEach((e) => {
|
|
852
|
+
this._cache.delete(e);
|
|
853
|
+
}), t.keys.forEach((e) => {
|
|
854
|
+
this._cacheMap.delete(e);
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
get parsers() {
|
|
858
|
+
return this._parsers;
|
|
859
|
+
}
|
|
860
|
+
}(), Y = [];
|
|
861
|
+
d.handleByList(f.TextureSource, Y);
|
|
862
|
+
function X(e = {}) {
|
|
863
|
+
let t = e && e.resource, n = t ? e.resource : e, r = t ? e : { resource: e };
|
|
864
|
+
for (let e = 0; e < Y.length; e++) {
|
|
865
|
+
let t = Y[e];
|
|
866
|
+
if (t.test(n)) return new t(r);
|
|
867
|
+
}
|
|
868
|
+
throw Error(`Could not find a source type for resource: ${r.resource}`);
|
|
869
|
+
}
|
|
870
|
+
function Z(e = {}, t = !1) {
|
|
871
|
+
let n = e && e.resource, r = n ? e.resource : e, i = n ? e : { resource: e };
|
|
872
|
+
if (!t && J.has(r)) return J.get(r);
|
|
873
|
+
let a = new p({ source: X(i) });
|
|
874
|
+
return a.on("destroy", () => {
|
|
875
|
+
J.has(r) && J.remove(r);
|
|
876
|
+
}), t || J.set(r, a), a;
|
|
877
|
+
}
|
|
878
|
+
function Q(e, t = !1) {
|
|
879
|
+
return typeof e == "string" ? J.get(e) : e instanceof a ? new p({ source: e }) : Z(e, t);
|
|
880
|
+
}
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/init.mjs
|
|
883
|
+
p.from = Q, a.from = X, d.add(V, H, U, q, _, u, t);
|
|
884
|
+
//#endregion
|
|
885
|
+
//#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/filters/defaults/defaultFilter.vert.mjs
|
|
886
|
+
var $ = "in vec2 aPosition;\nout vec2 vTextureCoord;\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n";
|
|
887
|
+
//#endregion
|
|
888
|
+
export { $ as t };
|