2023-04-03 03:32:13 +00:00
import { i as Ti } from "./ismobilejs.5c6954b9.js" ; import { E as Wt } from "./eventemitter3.dc5195d7.js" ; import "./earcut.b6f90e68.js" ; import { p as bi , f as Ii , r as Ri } from "./url.6dd57c6c.js" ; / * !
* @ pixi / settings - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / settings is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r u t = T i ( g l o b a l T h i s . n a v i g a t o r ) ; f u n c t i o n E i ( r ) { v a r t = ! 0 ; i f ( u t . t a b l e t | | u t . p h o n e ) { i f ( u t . a p p l e . d e v i c e ) { v a r e = n a v i g a t o r . u s e r A g e n t . m a t c h ( / O S ( \ d + ) _ ( \ d + ) ? / ) ; i f ( e ) { v a r i = p a r s e I n t ( e [ 1 ] , 1 0 ) ; i < 1 1 & & ( t = ! 1 ) } } i f ( u t . a n d r o i d . d e v i c e ) { v a r e = n a v i g a t o r . u s e r A g e n t . m a t c h ( / A n d r o i d \ s ( [ 0 - 9 . ] * ) / ) ; i f ( e ) { v a r i = p a r s e I n t ( e [ 1 ] , 1 0 ) ; i < 7 & & ( t = ! 1 ) } } } r e t u r n t ? r : 4 } f u n c t i o n w i ( ) { r e t u r n ! u t . a p p l e . d e v i c e } / * !
2023-04-03 03:32:13 +00:00
* @ pixi / constants - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / constants is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r n r ; ( f u n c t i o n ( r ) { r [ r . W E B G L _ L E G A C Y = 0 ] = " W E B G L _ L E G A C Y " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . W E B G L 2 = 2 ] = " W E B G L 2 " } ) ( n r | | ( n r = { } ) ) ; v a r s r ; ( f u n c t i o n ( r ) { r [ r . U N K N O W N = 0 ] = " U N K N O W N " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . C A N V A S = 2 ] = " C A N V A S " } ) ( s r | | ( s r = { } ) ) ; v a r a r ; ( f u n c t i o n ( r ) { r [ r . C O L O R = 1 6 3 8 4 ] = " C O L O R " , r [ r . D E P T H = 2 5 6 ] = " D E P T H " , r [ r . S T E N C I L = 1 0 2 4 ] = " S T E N C I L " } ) ( a r | | ( a r = { } ) ) ; v a r o r ; ( f u n c t i o n ( r ) { r [ r . N O R M A L = 0 ] = " N O R M A L " , r [ r . A D D = 1 ] = " A D D " , r [ r . M U L T I P L Y = 2 ] = " M U L T I P L Y " , r [ r . S C R E E N = 3 ] = " S C R E E N " , r [ r . O V E R L A Y = 4 ] = " O V E R L A Y " , r [ r . D A R K E N = 5 ] = " D A R K E N " , r [ r . L I G H T E N = 6 ] = " L I G H T E N " , r [ r . C O L O R _ D O D G E = 7 ] = " C O L O R _ D O D G E " , r [ r . C O L O R _ B U R N = 8 ] = " C O L O R _ B U R N " , r [ r . H A R D _ L I G H T = 9 ] = " H A R D _ L I G H T " , r [ r . S O F T _ L I G H T = 1 0 ] = " S O F T _ L I G H T " , r [ r . D I F F E R E N C E = 1 1 ] = " D I F F E R E N C E " , r [ r . E X C L U S I O N = 1 2 ] = " E X C L U S I O N " , r [ r . H U E = 1 3 ] = " H U E " , r [ r . S A T U R A T I O N = 1 4 ] = " S A T U R A T I O N " , r [ r . C O L O R = 1 5 ] = " C O L O R " , r [ r . L U M I N O S I T Y = 1 6 ] = " L U M I N O S I T Y " , r [ r . N O R M A L _ N P M = 1 7 ] = " N O R M A L _ N P M " , r [ r . A D D _ N P M = 1 8 ] = " A D D _ N P M " , r [ r . S C R E E N _ N P M = 1 9 ] = " S C R E E N _ N P M " , r [ r . N O N E = 2 0 ] = " N O N E " , r [ r . S R C _ O V E R = 0 ] = " S R C _ O V E R " , r [ r . S R C _ I N = 2 1 ] = " S R C _ I N " , r [ r . S R C _ O U T = 2 2 ] = " S R C _ O U T " , r [ r . S R C _ A T O P = 2 3 ] = " S R C _ A T O P " , r [ r . D S T _ O V E R = 2 4 ] = " D S T _ O V E R " , r [ r . D S T _ I N = 2 5 ] = " D S T _ I N " , r [ r . D S T _ O U T = 2 6 ] = " D S T _ O U T " , r [ r . D S T _ A T O P = 2 7 ] = " D S T _ A T O P " , r [ r . E R A S E = 2 6 ] = " E R A S E " , r [ r . S U B T R A C T = 2 8 ] = " S U B T R A C T " , r [ r . X O R = 2 9 ] = " X O R " } ) ( o r | | ( o r = { } ) ) ; v a r h r ; ( f u n c t i o n ( r ) { r [ r . P O I N T S = 0 ] = " P O I N T S " , r [ r . L I N E S = 1 ] = " L I N E S " , r [ r . L I N E _ L O O P = 2 ] = " L I N E _ L O O P " , r [ r . L I N E _ S T R I P = 3 ] = " L I N E _ S T R I P " , r [ r . T R I A N G L E S = 4 ] = " T R I A N G L E S " , r [ r . T R I A N G L E _ S T R I P = 5 ] = " T R I A N G L E _ S T R I P " , r [ r . T R I A N G L E _ F A N = 6 ] = " T R I A N G L E _ F A N " } ) ( h r | | ( h r = { } ) ) ; v a r u r ; ( f u n c t i o n ( r ) { r [ r . R G B A = 6 4 0 8 ] = " R G B A " , r [ r . R G B = 6 4 0 7 ] = " R G B " , r [ r . R G = 3 3 3 1 9 ] = " R G " , r [ r . R E D = 6 4 0 3 ] = " R E D " , r [ r . R G B A _ I N T E G E R = 3 6 2 4 9 ] = " R G B A _ I N T E G E R " , r [ r . R G B _ I N T E G E R = 3 6 2 4 8 ] = " R G B _ I N T E G E R " , r [ r . R G _ I N T E G E R = 3 3 3 2 0 ] = " R G _ I N T E G E R " , r [ r . R E D _ I N T E G E R = 3 6 2 4 4 ] = " R E D _ I N T E G E R " , r [ r . A L P H A = 6 4 0 6 ] = " A L P H A " , r [ r . L U M I N A N C E = 6 4 0 9 ] = " L U M I N A N C E " , r [ r . L U M I N A N C E _ A L P H A = 6 4 1 0 ] = " L U M I N A N C E _ A L P H A " , r [ r . D E P T H _ C O M P O N E N T = 6 4 0 2 ] = " D E P T H _ C O M P O N E N T " , r [ r . D E P T H _ S T E N C I L = 3 4 0 4 1 ] = " D E P T H _ S T E N C I L " } ) ( u r | | ( u r = { } ) ) ; v a r l r ; ( f u n c t i o n ( r ) { r [ r . T E X T U R E _ 2 D = 3 5 5 3 ] = " T E X T U R E _ 2 D " , r [ r . T E X T U R E _ C U B E _ M A P = 3 4 0 6 7 ] = " T E X T U R E _ C U B E _ M A P " , r [ r . T E X T U R E _ 2 D _ A R R A Y = 3 5 8 6 6 ] = " T E X T U R E _ 2 D _ A R R A Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X = 3 4 0 6 9 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X = 3 4 0 7 0 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y = 3 4 0 7 1 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y = 3 4 0 7 2 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z = 3 4 0 7 3 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z = 3 4 0 7 4 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z " } ) ( l r | | ( l r = { } ) ) ; v a r f r ; ( f u n c t i o n ( r ) { r [ r . U N S I G N E D _ B Y T E = 5 1 2 1 ] = " U N S I G N E D _ B Y T E " , r [ r . U N S I G N E D _ S H O R T = 5 1 2 3 ] = " U N S I G N E D _ S H O R T " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 = 3 3 6 3 5 ] = " U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 " , r [ r . U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 = 3 2 8 1 9 ] = " U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 = 3 2 8 2 0 ] = " U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 " , r [ r . U N S I G N E D _ I N T = 5 1 2 5 ] = " U N S I G N E D _ I N T " , r [ r . U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V = 3 5 8 9 9 ] = " U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V = 3 3 6 4 0 ] = " U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 4 _ 8 = 3 4 0 4 2 ] = " U N S I G N E D _ I N T _ 2 4 _ 8 " , r [ r . U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V = 3 5 9 0 2 ] = " U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V " , r [ r . B Y T E = 5 1 2 0 ] = " B Y T E " , r [ r . S H O R T = 5 1 2 2 ] = " S H O R T " , r [ r . I N T = 5 1 2 4 ] = " I N T " , r [ r . F L O A T = 5 1 2 6 ] = " F L O A T " , r [ r . F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V = 3 6 2 6 9 ] = " F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V " , r [ r . H A L F _ F L O A T = 3 6 1 9 3 ] = " H A L F _ F L O A T " } ) ( f r | | ( f r = { } ) ) ; v a r c r ; ( f u n c t i o n ( r ) { r [ r . F L O A T = 0 ] = " F L O A T " , r [ r . I N T = 1 ] = " I N T " , r [ r . U I N T = 2 ] = " U I N T " } ) ( c r | | ( c r = { } ) ) ; v a r l e ; ( f u n c t i o n ( r ) { r [ r . N E A R E S T = 0 ] = " N E A R E S T " , r [ r . L I N E A R = 1 ] = " L I N E A R " } ) ( l e | | ( l e = { } ) ) ; v a r f e ; ( f u n c t i o n ( r ) { r [ r . C L A M P = 3 3 0 7 1 ] = " C L A M P " , r [ r . R E P E A T = 1 0 4 9 7 ] = " R E P E A T " , r [ r . M I R R O R E D _ R E P E A T = 3 3 6 4 8 ] = " M I R R O R E D _ R E P E A T " } ) ( f e | | ( f e = { } ) ) ; v a r c e ; ( f u n c t i o n ( r ) { r [ r . O F F = 0 ] = " O F F " , r [ r . P O W 2 = 1 ] = " P O W 2 " , r [ r . O N = 2 ] = " O N " , r [ r . O N _ M A N U A L = 3 ] = " O N _ M A N U A L " } ) ( c e | | ( c e = { } ) ) ; v a r d r ; ( f u n c t i o n ( r ) { r [ r . N P M = 0 ] = " N P M " , r [ r . U N P A C K = 1 ] = " U N P A C K " , r [ r . P M A = 2 ] = " P M A " , r [ r . N O _ P R E M U L T I P L I E D _ A L P H A = 0 ] = " N O _ P R E M U L T I P L I E D _ A L P H A " , r [ r . P R E M U L T I P L Y _ O N _ U P L O A D = 1 ] = " P R E M U L T I P L Y _ O N _ U P L O A D " , r [ r . P R E M U L T I P L Y _ A L P H A = 2 ] = " P R E M U L T I P L Y _ A L P H A " , r [ r . P R E M U L T I P L I E D _ A L P H A = 2 ] = " P R E M U L T I P L I E D _ A L P H A " } ) ( d r | | ( d r = { } ) ) ; v a r p r ; ( f u n c t i o n ( r ) { r [ r . N O = 0 ] = " N O " , r [ r . Y E S = 1 ] = " Y E S " , r [ r . A U T O = 2 ] = " A U T O " , r [ r . B L E N D = 0 ] = " B L E N D " , r [ r . C L E A R = 1 ] = " C L E A R " , r [ r . B L
2023-04-03 03:32:13 +00:00
* @ pixi / constants - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / constants is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* / v a r J ; ( f u n c t i o n ( r ) { r [ r . W E B G L _ L E G A C Y = 0 ] = " W E B G L _ L E G A C Y " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . W E B G L 2 = 2 ] = " W E B G L 2 " } ) ( J | | ( J = { } ) ) ; v a r T t ; ( f u n c t i o n ( r ) { r [ r . U N K N O W N = 0 ] = " U N K N O W N " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . C A N V A S = 2 ] = " C A N V A S " } ) ( T t | | ( T t = { } ) ) ; v a r H t ; ( f u n c t i o n ( r ) { r [ r . C O L O R = 1 6 3 8 4 ] = " C O L O R " , r [ r . D E P T H = 2 5 6 ] = " D E P T H " , r [ r . S T E N C I L = 1 0 2 4 ] = " S T E N C I L " } ) ( H t | | ( H t = { } ) ) ; v a r g ; ( f u n c t i o n ( r ) { r [ r . N O R M A L = 0 ] = " N O R M A L " , r [ r . A D D = 1 ] = " A D D " , r [ r . M U L T I P L Y = 2 ] = " M U L T I P L Y " , r [ r . S C R E E N = 3 ] = " S C R E E N " , r [ r . O V E R L A Y = 4 ] = " O V E R L A Y " , r [ r . D A R K E N = 5 ] = " D A R K E N " , r [ r . L I G H T E N = 6 ] = " L I G H T E N " , r [ r . C O L O R _ D O D G E = 7 ] = " C O L O R _ D O D G E " , r [ r . C O L O R _ B U R N = 8 ] = " C O L O R _ B U R N " , r [ r . H A R D _ L I G H T = 9 ] = " H A R D _ L I G H T " , r [ r . S O F T _ L I G H T = 1 0 ] = " S O F T _ L I G H T " , r [ r . D I F F E R E N C E = 1 1 ] = " D I F F E R E N C E " , r [ r . E X C L U S I O N = 1 2 ] = " E X C L U S I O N " , r [ r . H U E = 1 3 ] = " H U E " , r [ r . S A T U R A T I O N = 1 4 ] = " S A T U R A T I O N " , r [ r . C O L O R = 1 5 ] = " C O L O R " , r [ r . L U M I N O S I T Y = 1 6 ] = " L U M I N O S I T Y " , r [ r . N O R M A L _ N P M = 1 7 ] = " N O R M A L _ N P M " , r [ r . A D D _ N P M = 1 8 ] = " A D D _ N P M " , r [ r . S C R E E N _ N P M = 1 9 ] = " S C R E E N _ N P M " , r [ r . N O N E = 2 0 ] = " N O N E " , r [ r . S R C _ O V E R = 0 ] = " S R C _ O V E R " , r [ r . S R C _ I N = 2 1 ] = " S R C _ I N " , r [ r . S R C _ O U T = 2 2 ] = " S R C _ O U T " , r [ r . S R C _ A T O P = 2 3 ] = " S R C _ A T O P " , r [ r . D S T _ O V E R = 2 4 ] = " D S T _ O V E R " , r [ r . D S T _ I N = 2 5 ] = " D S T _ I N " , r [ r . D S T _ O U T = 2 6 ] = " D S T _ O U T " , r [ r . D S T _ A T O P = 2 7 ] = " D S T _ A T O P " , r [ r . E R A S E = 2 6 ] = " E R A S E " , r [ r . S U B T R A C T = 2 8 ] = " S U B T R A C T " , r [ r . X O R = 2 9 ] = " X O R " } ) ( g | | ( g = { } ) ) ; v a r b t ; ( f u n c t i o n ( r ) { r [ r . P O I N T S = 0 ] = " P O I N T S " , r [ r . L I N E S = 1 ] = " L I N E S " , r [ r . L I N E _ L O O P = 2 ] = " L I N E _ L O O P " , r [ r . L I N E _ S T R I P = 3 ] = " L I N E _ S T R I P " , r [ r . T R I A N G L E S = 4 ] = " T R I A N G L E S " , r [ r . T R I A N G L E _ S T R I P = 5 ] = " T R I A N G L E _ S T R I P " , r [ r . T R I A N G L E _ F A N = 6 ] = " T R I A N G L E _ F A N " } ) ( b t | | ( b t = { } ) ) ; v a r _ ; ( f u n c t i o n ( r ) { r [ r . R G B A = 6 4 0 8 ] = " R G B A " , r [ r . R G B = 6 4 0 7 ] = " R G B " , r [ r . R G = 3 3 3 1 9 ] = " R G " , r [ r . R E D = 6 4 0 3 ] = " R E D " , r [ r . R G B A _ I N T E G E R = 3 6 2 4 9 ] = " R G B A _ I N T E G E R " , r [ r . R G B _ I N T E G E R = 3 6 2 4 8 ] = " R G B _ I N T E G E R " , r [ r . R G _ I N T E G E R = 3 3 3 2 0 ] = " R G _ I N T E G E R " , r [ r . R E D _ I N T E G E R = 3 6 2 4 4 ] = " R E D _ I N T E G E R " , r [ r . A L P H A = 6 4 0 6 ] = " A L P H A " , r [ r . L U M I N A N C E = 6 4 0 9 ] = " L U M I N A N C E " , r [ r . L U M I N A N C E _ A L P H A = 6 4 1 0 ] = " L U M I N A N C E _ A L P H A " , r [ r . D E P T H _ C O M P O N E N T = 6 4 0 2 ] = " D E P T H _ C O M P O N E N T " , r [ r . D E P T H _ S T E N C I L = 3 4 0 4 1 ] = " D E P T H _ S T E N C I L " } ) ( _ | | ( _ = { } ) ) ; v a r l t ; ( f u n c t i o n ( r ) { r [ r . T E X T U R E _ 2 D = 3 5 5 3 ] = " T E X T U R E _ 2 D " , r [ r . T E X T U R E _ C U B E _ M A P = 3 4 0 6 7 ] = " T E X T U R E _ C U B E _ M A P " , r [ r . T E X T U R E _ 2 D _ A R R A Y = 3 5 8 6 6 ] = " T E X T U R E _ 2 D _ A R R A Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X = 3 4 0 6 9 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X = 3 4 0 7 0 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y = 3 4 0 7 1 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y = 3 4 0 7 2 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z = 3 4 0 7 3 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z = 3 4 0 7 4 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z " } ) ( l t | | ( l t = { } ) ) ; v a r I ; ( f u n c t i o n ( r ) { r [ r . U N S I G N E D _ B Y T E = 5 1 2 1 ] = " U N S I G N E D _ B Y T E " , r [ r . U N S I G N E D _ S H O R T = 5 1 2 3 ] = " U N S I G N E D _ S H O R T " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 = 3 3 6 3 5 ] = " U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 " , r [ r . U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 = 3 2 8 1 9 ] = " U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 = 3 2 8 2 0 ] = " U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 " , r [ r . U N S I G N E D _ I N T = 5 1 2 5 ] = " U N S I G N E D _ I N T " , r [ r . U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V = 3 5 8 9 9 ] = " U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V = 3 3 6 4 0 ] = " U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 4 _ 8 = 3 4 0 4 2 ] = " U N S I G N E D _ I N T _ 2 4 _ 8 " , r [ r . U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V = 3 5 9 0 2 ] = " U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V " , r [ r . B Y T E = 5 1 2 0 ] = " B Y T E " , r [ r . S H O R T = 5 1 2 2 ] = " S H O R T " , r [ r . I N T = 5 1 2 4 ] = " I N T " , r [ r . F L O A T = 5 1 2 6 ] = " F L O A T " , r [ r . F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V = 3 6 2 6 9 ] = " F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V " , r [ r . H A L F _ F L O A T = 3 6 1 9 3 ] = " H A L F _ F L O A T " } ) ( I | | ( I = { } ) ) ; v a r V t ; ( f u n c t i o n ( r ) { r [ r . F L O A T = 0 ] = " F L O A T " , r [ r . I N T = 1 ] = " I N T " , r [ r . U I N T = 2 ] = " U I N T " } ) ( V t | | ( V t = { } ) ) ; v a r Y ; ( f u n c t i o n ( r ) { r [ r . N E A R E S T = 0 ] = " N E A R E S T " , r [ r . L I N E A R = 1 ] = " L I N E A R " } ) ( Y | | ( Y = { } ) ) ; v a r v e ; ( f u n c t i o n ( r ) { r [ r . C L A M P = 3 3 0 7 1 ] = " C L A M P " , r [ r . R E P E A T = 1 0 4 9 7 ] = " R E P E A T " , r [ r . M I R R O R E D _ R E P E A T = 3 3 6 4 8 ] = " M I R R O R E D _ R E P E A T " } ) ( v e | | ( v e = { } ) ) ; v a r f t ; ( f u n c t i o n ( r ) { r [ r . O F F = 0 ] = " O F F " , r [ r . P O W 2 = 1 ] = " P O W 2 " , r [ r . O N = 2 ] = " O N " , r [ r . O N _ M A N U A L = 3 ] = " O N _ M A N U A L " } ) ( f t | | ( f t = { } ) ) ; v a r t t ; ( f u n c t i o n ( r ) { r [ r . N P M = 0 ] = " N P M " , r [ r . U N P A C K = 1 ] = " U N P A C K " , r [ r . P M A = 2 ] = " P M A " , r [ r . N O _ P R E M U L T I P L I E D _ A L P H A = 0 ] = " N O _ P R E M U L T I P L I E D _ A L P H A " , r [ r . P R E M U L T I P L Y _ O N _ U P L O A D = 1 ] = " P R E M U L T I P L Y _ O N _ U P L O A D " , r [ r . P R E M U L T I P L Y _ A L P H A = 2 ] = " P R E M U L T I P L Y _ A L P H A " , r [ r . P R E M U L T I P L I E D _ A L P H A = 2 ] = " P R E M U L T I P L I E D _ A L P H A " } ) ( t t | | ( t t = { } ) ) ; v a r Q ; ( f u n c t i o n ( r ) { r [ r . N O = 0 ] = " N O " , r [ r . Y E S = 1 ] = " Y E S " , r [ r . A U T O = 2 ] = " A U T O " , r [ r . B L E N D = 0 ] = " B L E N D " , r [ r . C L E A R = 1 ] = " C L E A R " , r [ r . B L I T = 2 ] = " B L I T " } ) ( Q
* @ pixi / utils - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / utils is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* /var Ni={parse:bi,format:Ii,resolve:Ri};x.RETINA_PREFIX=/ @ ( [ 0 - 9 \ . ] + ) x / ; x . FAIL _IF _MAJOR _PERFORMANCE _CAVEAT = ! 1 ; var _r = ! 1 , yr = "6.3.2" ; function Ci ( r ) { var t ; if ( ! _r ) { if ( navigator . userAgent . toLowerCase ( ) . indexOf ( "chrome" ) > - 1 ) { var e = [ `
2022-07-14 13:04:39 +00:00
% c % c % c PixiJS ` +yr+" - \u 2730 "+r+ ` \u2730 % c % c http : //www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665
2023-04-03 03:32:13 +00:00
` ,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,e)}else globalThis.console&&globalThis.console.log("PixiJS "+yr+" - "+r+" - http://www.pixijs.com/");_r=!0}}var Yt;function Ai(){return typeof Yt=="undefined"&&(Yt=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!!(i&&i.getContextAttributes().stencil);if(i){var s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,n}catch{return!1}}()),Yt}function Pi(r,t){return t===void 0&&(t=[]),t[0]=(r>>16&255)/255,t[1]=(r>>8&255)/255,t[2]=(r&255)/255,t}function Ui(r){var t=r.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function Fi(){for(var r=[],t=[],e=0;e<32;e++)r[e]=e,t[e]=e;r[g.NORMAL_NPM]=g.NORMAL,r[g.ADD_NPM]=g.ADD,r[g.SCREEN_NPM]=g.SCREEN,t[g.NORMAL]=g.NORMAL_NPM,t[g.ADD]=g.ADD_NPM,t[g.SCREEN]=g.SCREEN_NPM;var i=[];return i.push(t),i.push(r),i}var Li=Fi();function Oi(r,t){if(t===1)return(t*255<<24)+r;if(t===0)return 0;var e=r>>16&255,i=r>>8&255,n=r&255;return e=e*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(t*255<<24)+(e<<16)+(i<<8)+n}function ti(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Array?"Float32Array":r instanceof Uint32Array?"Uint32Array":"Int32Array";if(r.BYTES_PER_ELEMENT===2){if(r instanceof Uint16Array)return"Uint16Array"}else if(r.BYTES_PER_ELEMENT===1&&r instanceof Uint8Array)return"Uint8Array";return null}function jt(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function gr(r){return!(r&r-1)&&!!r}function xr(r){var t=(r>65535?1:0)<<4;r>>>=t;var e=(r>255?1:0)<<3;return r>>>=e,t|=e,e=(r>15?1:0)<<2,r>>>=e,t|=e,e=(r>3?1:0)<<1,r>>>=e,t|=e,t|r>>1}function Xt(r,t,e){var i=r.length,n;if(!(t>=i||e===0)){e=t+e>i?i-t:e;var s=i-e;for(n=t;n<s;++n)r[n]=r[n+e];r.length=s}}function At(r){return r===0?0:r<0?-1:1}var Si=0;function It(){return++Si}var Tr={};function Rt(r,t,e){if(e===void 0&&(e=3),!Tr[t]){var i=new Error().stack;typeof i=="undefined"?console.warn("PixiJS Deprecation Warning: ",t+ `
2022-07-14 13:04:39 +00:00
Deprecated since v ` +r):(i=i.split( `
` ).splice(e).join( `
` ),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+ `
Deprecated since v ` +r),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+ `
2023-04-03 03:32:13 +00:00
Deprecated since v ` +r),console.warn(i))),Tr[t]=!0}}var br={}, $ =Object.create(null),rt=Object.create(null);(function(){function r(t,e,i){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=i||x.RESOLUTION,this.resize(t,e)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),r})();var Pt;function Gi(r,t){if(t===void 0&&(t=globalThis.location),r.indexOf("data:")===0)return"";t=t||globalThis.location,Pt||(Pt=document.createElement("a")),Pt.href=r;var e=Ni.parse(Pt.href),i=!e.port&&t.port===""||e.port===t.port;return e.hostname!==t.hostname||!i||e.protocol!==t.protocol?"anonymous":""}function Ir(r,t){var e=x.RETINA_PREFIX.exec(r);return e?parseFloat(e[1]):t!==void 0?t:1}/*!
* @ pixi / runner - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / runner is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /var S=function(){function r(t){this.items=[],this._name=t,this._aliasCount=0}return r.prototype.emit=function(t,e,i,n,s,a,o,h){if(arguments.length>8)throw new Error("max arguments reached");var u=this,l=u.name,f=u.items;this._aliasCount++;for(var c=0,d=f.length;c<d;c++)f[c][l](t,e,i,n,s,a,o,h);return f===this.items&&this._aliasCount--,this},r.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},r.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},r.prototype.remove=function(t){var e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},r.prototype.contains=function(t){return this.items.indexOf(t)!==-1},r.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},r.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(r.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),r}();Object.defineProperties(S.prototype,{dispatch:{value:S.prototype.emit},run:{value:S.prototype.emit}});/ * !
2023-04-03 03:32:13 +00:00
* @ pixi / ticker - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / ticker is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* / x . T A R G E T _ F P M S = . 0 6 ; v a r E t ; ( f u n c t i o n ( r ) { r [ r . I N T E R A C T I O N = 5 0 ] = " I N T E R A C T I O N " , r [ r . H I G H = 2 5 ] = " H I G H " , r [ r . N O R M A L = 0 ] = " N O R M A L " , r [ r . L O W = - 2 5 ] = " L O W " , r [ r . U T I L I T Y = - 5 0 ] = " U T I L I T Y " } ) ( E t | | ( E t = { } ) ) ; v a r K t = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i , n ) { e = = = v o i d 0 & & ( e = n u l l ) , i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = ! 1 ) , t h i s . n e x t = n u l l , t h i s . p r e v i o u s = n u l l , t h i s . _ d e s t r o y e d = ! 1 , t h i s . f n = t , t h i s . c o n t e x t = e , t h i s . p r i o r i t y = i , t h i s . o n c e = n } r e t u r n r . p r o t o t y p e . m a t c h = f u n c t i o n ( t , e ) { r e t u r n e = = = v o i d 0 & & ( e = n u l l ) , t h i s . f n = = = t & & t h i s . c o n t e x t = = = e } , r . p r o t o t y p e . e m i t = f u n c t i o n ( t ) { t h i s . f n & & ( t h i s . c o n t e x t ? t h i s . f n . c a l l ( t h i s . c o n t e x t , t ) : t h i s . f n ( t ) ) ; v a r e = t h i s . n e x t ; r e t u r n t h i s . o n c e & & t h i s . d e s t r o y ( ! 0 ) , t h i s . _ d e s t r o y e d & & ( t h i s . n e x t = n u l l ) , e } , r . p r o t o t y p e . c o n n e c t = f u n c t i o n ( t ) { t h i s . p r e v i o u s = t , t . n e x t & & ( t . n e x t . p r e v i o u s = t h i s ) , t h i s . n e x t = t . n e x t , t . n e x t = t h i s } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( t ) { t = = = v o i d 0 & & ( t = ! 1 ) , t h i s . _ d e s t r o y e d = ! 0 , t h i s . f n = n u l l , t h i s . c o n t e x t = n u l l , t h i s . p r e v i o u s & & ( t h i s . p r e v i o u s . n e x t = t h i s . n e x t ) , t h i s . n e x t & & ( t h i s . n e x t . p r e v i o u s = t h i s . p r e v i o u s ) ; v a r e = t h i s . n e x t ; r e t u r n t h i s . n e x t = t ? n u l l : e , t h i s . p r e v i o u s = n u l l , e } , r } ( ) , q = f u n c t i o n ( ) { f u n c t i o n r ( ) { v a r t = t h i s ; t h i s . a u t o S t a r t = ! 1 , t h i s . d e l t a T i m e = 1 , t h i s . l a s t T i m e = - 1 , t h i s . s p e e d = 1 , t h i s . s t a r t e d = ! 1 , t h i s . _ r e q u e s t I d = n u l l , t h i s . _ m a x E l a p s e d M S = 1 0 0 , t h i s . _ m i n E l a p s e d M S = 0 , t h i s . _ p r o t e c t e d = ! 1 , t h i s . _ l a s t F r a m e = - 1 , t h i s . _ h e a d = n e w K t ( n u l l , n u l l , 1 / 0 ) , t h i s . d e l t a M S = 1 / x . T A R G E T _ F P M S , t h i s . e l a p s e d M S = 1 / x . T A R G E T _ F P M S , t h i s . _ t i c k = f u n c t i o n ( e ) { t . _ r e q u e s t I d = n u l l , t . s t a r t e d & & ( t . u p d a t e ( e ) , t . s t a r t e d & & t . _ r e q u e s t I d = = = n u l l & & t . _ h e a d . n e x t & & ( t . _ r e q u e s t I d = r e q u e s t A n i m a t i o n F r a m e ( t . _ t i c k ) ) ) } } r e t u r n r . p r o t o t y p e . _ r e q u e s t I f N e e d e d = f u n c t i o n ( ) { t h i s . _ r e q u e s t I d = = = n u l l & & t h i s . _ h e a d . n e x t & & ( t h i s . l a s t T i m e = p e r f o r m a n c e . n o w ( ) , t h i s . _ l a s t F r a m e = t h i s . l a s t T i m e , t h i s . _ r e q u e s t I d = r e q u e s t A n i m a t i o n F r a m e ( t h i s . _ t i c k ) ) } , r . p r o t o t y p e . _ c a n c e l I f N e e d e d = f u n c t i o n ( ) { t h i s . _ r e q u e s t I d ! = = n u l l & & ( c a n c e l A n i m a t i o n F r a m e ( t h i s . _ r e q u e s t I d ) , t h i s . _ r e q u e s t I d = n u l l ) } , r . p r o t o t y p e . _ s t a r t I f P o s s i b l e = f u n c t i o n ( ) { t h i s . s t a r t e d ? t h i s . _ r e q u e s t I f N e e d e d ( ) : t h i s . a u t o S t a r t & & t h i s . s t a r t ( ) } , r . p r o t o t y p e . a d d = f u n c t i o n ( t , e , i ) { r e t u r n i = = = v o i d 0 & & ( i = E t . N O R M A L ) , t h i s . _ a d d L i s t e n e r ( n e w K t ( t , e , i ) ) } , r . p r o t o t y p e . a d d O n c e = f u n c t i o n ( t , e , i ) { r e t u r n i = = = v o i d 0 & & ( i = E t . N O R M A L ) , t h i s . _ a d d L i s t e n e r ( n e w K t ( t , e , i , ! 0 ) ) } , r . p r o t o t y p e . _ a d d L i s t e n e r = f u n c t i o n ( t ) { v a r e = t h i s . _ h e a d . n e x t , i = t h i s . _ h e a d ; i f ( ! e ) t . c o n n e c t ( i ) ; e l s e { f o r ( ; e ; ) { i f ( t . p r i o r i t y > e . p r i o r i t y ) { t . c o n n e c t ( i ) ; b r e a k } i = e , e = e . n e x t } t . p r e v i o u s | | t . c o n n e c t ( i ) } r e t u r n t h i s . _ s t a r t I f P o s s i b l e ( ) , t h i s } , r . p r o t o t y p e . r e m o v e = f u n c t i o n ( t , e ) { f o r ( v a r i = t h i s . _ h e a d . n e x t ; i ; ) i . m a t c h ( t , e ) ? i = i . d e s t r o y ( ) : i = i . n e x t ; r e t u r n t h i s . _ h e a d . n e x t | | t h i s . _ c a n c e l I f N e e d e d ( ) , t h i s } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " c o u n t " , { g e t : f u n c t i o n ( ) { i f ( ! t h i s . _ h e a d ) r e t u r n 0 ; f o r ( v a r t = 0 , e = t h i s . _ h e a d ; e = e . n e x t ; ) t + + ; r e t u r n t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . s t a r t = f u n c t i o n ( ) { t h i s . s t a r t e d | | ( t h i s . s t a r t e d = ! 0 , t h i s . _ r e q u e s t I f N e e d e d ( ) ) } , r . p r o t o t y p e . s t o p = f u n c t i o n ( ) { t h i s . s t a r t e d & & ( t h i s . s t a r t e d = ! 1 , t h i s . _ c a n c e l I f N e e d e d ( ) ) } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( ) { i f ( ! t h i s . _ p r o t e c t e d ) { t h i s . s t o p ( ) ; f o r ( v a r t = t h i s . _ h e a d . n e x t ; t ; ) t = t . d e s t r o y ( ! 0 ) ; t h i s . _ h e a d . d e s t r o y ( ) , t h i s . _ h e a d = n u l l } } , r . p r o t o t y p e . u p d a t e = f u n c t i o n ( t ) { t = = = v o i d 0 & & ( t = p e r f o r m a n c e . n o w ( ) ) ; v a r e ; i f ( t > t h i s . l a s t T i m e ) { i f ( e = t h i s . e l a p s e d M S = t - t h i s . l a s t T i m e , e > t h i s . _ m a x E l a p s e d M S & & ( e = t h i s . _ m a x E l a p s e d M S ) , e * = t h i s . s p e e d , t h i s . _ m i n E l a p s e d M S ) { v a r i = t - t h i s . _ l a s t F r a m e | 0 ; i f ( i < t h i s . _ m i n E l a p s e d M S ) r e t u r n ; t h i s . _ l a s t F r a m e = t - i % t h i s . _ m i n E l a p s e d M S } t h i s . d e l t a M S = e , t h i s . d e l t a T i m e = t h i s . d e l t a M S * x . T A R G E T _ F P M S ; f o r ( v a r n = t h i s . _ h e a d , s = n . n e x t ; s ; ) s = s . e m i t ( t h i s . d e l t a T i m e ) ; n . n e x t | | t h i s . _ c a n c e l I f N e e d e d ( ) } e l s e t h i s . d e l t a T i m e = t h i s . d e l t a M S = t h i s . e l a p s e d M S = 0 ; t h i s . l a s t T i m e = t } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " F P S " , { g e t : f u n c t i o n ( ) { r e t u r n 1 e 3 / t h i s . e l a p s e d M S } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " m i n F P S " , { g e t : f u n c t i o n ( ) { r e t u r n 1 e 3 / t h i s . _ m a x E l a p s e d M S } , s e t : f u n c t i o n ( t ) { v a r e = M a t h . m i n ( t h i s . m a x F P S , t ) , i = M a t h . m i n ( M a t h . m a x ( 0 , e ) / 1 e 3 , x . T A R G E T _ F P M S ) ; t h i s . _ m a x E l a p s e d M S = 1 / i } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " m a x F P S " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ m i n E l a p s e d M S ? M a t h . r o u n d ( 1 e 3 / t h i s . _ m i n E l a p s e d M S ) : 0 } , s e t : f u n c t i o n ( t ) { i f ( t = = = 0 ) t h i s . _ m i n E l a p s e d M S = 0 ; e l s e { v a r e = M a t h . m a x ( t h i s . m i n F P S , t ) ; t h i s . _ m i n E l a p s e d M S = 1 / ( e /
* @ pixi / math - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / math is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* / v a r B i = M a t h . P I * 2 , M i = 1 8 0 / M a t h . P I , k i = M a t h . P I / 1 8 0 , _ e ; ( f u n c t i o n ( r ) { r [ r . P O L Y = 0 ] = " P O L Y " , r [ r . R E C T = 1 ] = " R E C T " , r [ r . C I R C = 2 ] = " C I R C " , r [ r . E L I P = 3 ] = " E L I P " , r [ r . R R E C = 4 ] = " R R E C " } ) ( _ e | | ( _ e = { } ) ) ; v a r P = f u n c t i o n ( ) { f u n c t i o n r ( t , e ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , t h i s . x = 0 , t h i s . y = 0 , t h i s . x = t , t h i s . y = e } r e t u r n r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { r e t u r n n e w r ( t h i s . x , t h i s . y ) } , r . p r o t o t y p e . c o p y F r o m = f u n c t i o n ( t ) { r e t u r n t h i s . s e t ( t . x , t . y ) , t h i s } , r . p r o t o t y p e . c o p y T o = f u n c t i o n ( t ) { r e t u r n t . s e t ( t h i s . x , t h i s . y ) , t } , r . p r o t o t y p e . e q u a l s = f u n c t i o n ( t ) { r e t u r n t . x = = = t h i s . x & & t . y = = = t h i s . y } , r . p r o t o t y p e . s e t = f u n c t i o n ( t , e ) { r e t u r n t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = t ) , t h i s . x = t , t h i s . y = e , t h i s } , r . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " [ @ p i x i / m a t h : P o i n t x = " + t h i s . x + " y = " + t h i s . y + " ] " } , r } ( ) , U t = [ n e w P , n e w P , n e w P , n e w P ] , U = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i , n ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = 0 ) , t h i s . x = N u m b e r ( t ) , t h i s . y = N u m b e r ( e ) , t h i s . w i d t h = N u m b e r ( i ) , t h i s . h e i g h t = N u m b e r ( n ) , t h i s . t y p e = _ e . R E C T } r e t u r n O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " l e f t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . x } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " r i g h t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . x + t h i s . w i d t h } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " t o p " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . y } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " b o t t o m " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . y + t h i s . h e i g h t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r , " E M P T Y " , { g e t : f u n c t i o n ( ) { r e t u r n n e w r ( 0 , 0 , 0 , 0 ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { r e t u r n n e w r ( t h i s . x , t h i s . y , t h i s . w i d t h , t h i s . h e i g h t ) } , r . p r o t o t y p e . c o p y F r o m = f u n c t i o n ( t ) { r e t u r n t h i s . x = t . x , t h i s . y = t . y , t h i s . w i d t h = t . w i d t h , t h i s . h e i g h t = t . h e i g h t , t h i s } , r . p r o t o t y p e . c o p y T o = f u n c t i o n ( t ) { r e t u r n t . x = t h i s . x , t . y = t h i s . y , t . w i d t h = t h i s . w i d t h , t . h e i g h t = t h i s . h e i g h t , t } , r . p r o t o t y p e . c o n t a i n s = f u n c t i o n ( t , e ) { r e t u r n t h i s . w i d t h < = 0 | | t h i s . h e i g h t < = 0 ? ! 1 : t > = t h i s . x & & t < t h i s . x + t h i s . w i d t h & & e > = t h i s . y & & e < t h i s . y + t h i s . h e i g h t } , r . p r o t o t y p e . i n t e r s e c t s = f u n c t i o n ( t , e ) { i f ( ! e ) { v a r i = t h i s . x < t . x ? t . x : t h i s . x , n = t h i s . r i g h t > t . r i g h t ? t . r i g h t : t h i s . r i g h t ; i f ( n < = i ) r e t u r n ! 1 ; v a r s = t h i s . y < t . y ? t . y : t h i s . y , a = t h i s . b o t t o m > t . b o t t o m ? t . b o t t o m : t h i s . b o t t o m ; r e t u r n a > s } v a r o = t h i s . l e f t , h = t h i s . r i g h t , u = t h i s . t o p , l = t h i s . b o t t o m ; i f ( h < = o | | l < = u ) r e t u r n ! 1 ; v a r f = U t [ 0 ] . s e t ( t . l e f t , t . t o p ) , c = U t [ 1 ] . s e t ( t . l e f t , t . b o t t o m ) , d = U t [ 2 ] . s e t ( t . r i g h t , t . t o p ) , p = U t [ 3 ] . s e t ( t . r i g h t , t . b o t t o m ) ; i f ( d . x < = f . x | | c . y < = f . y ) r e t u r n ! 1 ; v a r m = M a t h . s i g n ( e . a * e . d - e . b * e . c ) ; i f ( m = = = 0 | | ( e . a p p l y ( f , f ) , e . a p p l y ( c , c ) , e . a p p l y ( d , d ) , e . a p p l y ( p , p ) , M a t h . m a x ( f . x , c . x , d . x , p . x ) < = o | | M a t h . m i n ( f . x , c . x , d . x , p . x ) > = h | | M a t h . m a x ( f . y , c . y , d . y , p . y ) < = u | | M a t h . m i n ( f . y , c . y , d . y , p . y ) > = l ) ) r e t u r n ! 1 ; v a r v = m * ( c . y - f . y ) , y = m * ( f . x - c . x ) , R = v * o + y * u , C = v * h + y * u , M = v * o + y * l , k = v * h + y * l ; i f ( M a t h . m a x ( R , C , M , k ) < = v * f . x + y * f . y | | M a t h . m i n ( R , C , M , k ) > = v * p . x + y * p . y ) r e t u r n ! 1 ; v a r B = m * ( f . y - d . y ) , T = m * ( d . x - f . x ) , b = B * o + T * u , G = B * h + T * u , r r = B * o + T * l , i r = B * h + T * l ; r e t u r n ! ( M a t h . m a x ( b , G , r r , i r ) < = B * f . x + T * f . y | | M a t h . m i n ( b , G , r r , i r ) > = B * p . x + T * p . y ) } , r . p r o t o t y p e . p a d = f u n c t i o n ( t , e ) { r e t u r n t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = t ) , t h i s . x - = t , t h i s . y - = e , t h i s . w i d t h + = t * 2 , t h i s . h e i g h t + = e * 2 , t h i s } , r . p r o t o t y p e . f i t = f u n c t i o n ( t ) { v a r e = M a t h . m a x ( t h i s . x , t . x ) , i = M a t h . m i n ( t h i s . x + t h i s . w i d t h , t . x + t . w i d t h ) , n = M a t h . m a x ( t h i s . y , t . y ) , s = M a t h . m i n ( t h i s . y + t h i s . h e i g h t , t . y + t . h e i g h t ) ; r e t u r n t h i s . x = e , t h i s . w i d t h = M a t h . m a x ( i - e , 0 ) , t h i s . y = n , t h i s . h e i g h t = M a t h . m a x ( s - n , 0 ) , t h i s } , r . p r o t o t y p e . c e i l = f u n c t i o n ( t , e ) { t = = = v o i d 0 & & ( t = 1 ) , e = = = v o i d 0 & & ( e = . 0 0 1 ) ; v a r i = M a t h . c e i l ( ( t h i s . x + t h i s . w i d t h - e ) * t ) / t , n = M a t h . c e i l ( ( t h i s . y + t h i s . h e i g h t - e ) * t ) / t ; r e t u r n t h i s . x = M a t h . f l o o r ( ( t h i s . x + e ) * t ) / t , t h i s . y = M a t h . f l o o r ( ( t h i s . y + e ) * t ) / t , t h i s . w i d t h = i - t h i s . x , t h i s . h e i g h t = n - t h i s . y , t h i s } , r . p r o t o t y p e . e n l a r g e = f u n c t i o n ( t ) { v a r e = M a t h . m i n ( t h i s . x , t . x ) , i = M a t h . m a x ( t h i s . x + t h i s . w i d t h , t . x + t . w i d t h ) , n = M a t h . m i n ( t h i s . y , t . y ) , s = M a t h . m a x ( t h i s . y + t h i s . h e i g h t , t . y + t . h e i g h t ) ; r e t u r n t h i s . x = e , t h i s . w i d t h = i - e , t h i s . y = n , t h i s . h e i g h t = s - n , t h i s } , r . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " [ @ p i x i / m a t h : R e c t a n g l e x = " + t h i s . x + " y = " + t h i s . y + " w i d t h = " + t h i s . w i d t h + " h e i g h t = " + t h i s . h e i g h t + " ] " } , r } ( ) , g t = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i , n ) { i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = 0 ) , t h i s . _ x = i , t h i s . _ y = n , t h i s . c b = t , t h i s . s c o p e = e } r e t u r n r . p r o t o t y p e . c l o n e = f u n c t i o n ( t , e ) { r e t u r n t = = = v o i d 0 & & (
* @ pixi / core - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / core is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* /x.PREFER_ENV=ut.any?J.WEBGL:J.WEBGL2;x.STRICT_TEXTURE_CACHE=!1;var ge=[];function ri(r,t){if(!r)return null;var e="";if(typeof r=="string"){var i=/ \ . ( \ w { 3 , 4 } ) ( ? : $ | \ ? | # ) / i . exec ( r ) ; i && ( e = i [ 1 ] . toLowerCase ( ) ) } for ( var n = ge . length - 1 ; n >= 0 ; -- n ) { var s = ge [ n ] ; if ( s . test && s . test ( r , e ) ) return new s ( r , t ) } throw new Error ( "Unrecognized source type to auto-detect Resource" ) } / * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2022-07-14 13:04:39 +00:00
Copyright ( c ) Microsoft Corporation . All rights reserved .
Licensed under the Apache License , Version 2.0 ( the "License" ) ; you may not use
this file except in compliance with the License . You may obtain a copy of the
License at http : //www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN * AS IS * BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND , EITHER EXPRESS OR IMPLIED , INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE , FITNESS FOR A PARTICULAR PURPOSE ,
MERCHANTABLITY OR NON - INFRINGEMENT .
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License .
2023-04-03 03:32:13 +00:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r x e = f u n c t i o n ( r , t ) { r e t u r n x e = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , x e ( r , t ) } ; f u n c t i o n N ( r , t ) { x e ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r T e = f u n c t i o n ( ) { r e t u r n T e = O b j e c t . a s s i g n | | f u n c t i o n ( t ) { f o r ( v a r e = a r g u m e n t s , i , n = 1 , s = a r g u m e n t s . l e n g t h ; n < s ; n + + ) { i = e [ n ] ; f o r ( v a r a i n i ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( i , a ) & & ( t [ a ] = i [ a ] ) } r e t u r n t } , T e . a p p l y ( t h i s , a r g u m e n t s ) } ; f u n c t i o n V i ( r , t ) { v a r e = { } ; f o r ( v a r i i n r ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( r , i ) & & t . i n d e x O f ( i ) < 0 & & ( e [ i ] = r [ i ] ) ; i f ( r ! = n u l l & & t y p e o f O b j e c t . g e t O w n P r o p e r t y S y m b o l s = = " f u n c t i o n " ) f o r ( v a r n = 0 , i = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( r ) ; n < i . l e n g t h ; n + + ) t . i n d e x O f ( i [ n ] ) < 0 & & ( e [ i [ n ] ] = r [ i [ n ] ] ) ; r e t u r n e } v a r w t = f u n c t i o n ( ) { f u n c t i o n r ( t , e ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , t h i s . _ w i d t h = t , t h i s . _ h e i g h t = e , t h i s . d e s t r o y e d = ! 1 , t h i s . i n t e r n a l = ! 1 , t h i s . o n R e s i z e = n e w S ( " s e t R e a l S i z e " ) , t h i s . o n U p d a t e = n e w S ( " u p d a t e " ) , t h i s . o n E r r o r = n e w S ( " o n E r r o r " ) } r e t u r n r . p r o t o t y p e . b i n d = f u n c t i o n ( t ) { t h i s . o n R e s i z e . a d d ( t ) , t h i s . o n U p d a t e . a d d ( t ) , t h i s . o n E r r o r . a d d ( t ) , ( t h i s . _ w i d t h | | t h i s . _ h e i g h t ) & & t h i s . o n R e s i z e . e m i t ( t h i s . _ w i d t h , t h i s . _ h e i g h t ) } , r . p r o t o t y p e . u n b i n d = f u n c t i o n ( t ) { t h i s . o n R e s i z e . r e m o v e ( t ) , t h i s . o n U p d a t e . r e m o v e ( t ) , t h i s . o n E r r o r . r e m o v e ( t ) } , r . p r o t o t y p e . r e s i z e = f u n c t i o n ( t , e ) { ( t ! = = t h i s . _ w i d t h | | e ! = = t h i s . _ h e i g h t ) & & ( t h i s . _ w i d t h = t , t h i s . _ h e i g h t = e , t h i s . o n R e s i z e . e m i t ( t , e ) ) } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " v a l i d " , { g e t : f u n c t i o n ( ) { r e t u r n ! ! t h i s . _ w i d t h & & ! ! t h i s . _ h e i g h t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . u p d a t e = f u n c t i o n ( ) { t h i s . d e s t r o y e d | | t h i s . o n U p d a t e . e m i t ( ) } , r . p r o t o t y p e . l o a d = f u n c t i o n ( ) { r e t u r n P r o m i s e . r e s o l v e ( t h i s ) } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " w i d t h " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w i d t h } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " h e i g h t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ h e i g h t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . s t y l e = f u n c t i o n ( t , e , i ) { r e t u r n ! 1 } , r . p r o t o t y p e . d i s p o s e = f u n c t i o n ( ) { } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( ) { t h i s . d e s t r o y e d | | ( t h i s . d e s t r o y e d = ! 0 , t h i s . d i s p o s e ( ) , t h i s . o n E r r o r . r e m o v e A l l ( ) , t h i s . o n E r r o r = n u l l , t h i s . o n R e s i z e . r e m o v e A l l ( ) , t h i s . o n R e s i z e = n u l l , t h i s . o n U p d a t e . r e m o v e A l l ( ) , t h i s . o n U p d a t e = n u l l ) } , r . t e s t = f u n c t i o n ( t , e ) { r e t u r n ! 1 } , r } ( ) , N e = f u n c t i o n ( r ) { N ( t , r ) ; f u n c t i o n t ( e , i ) { v a r n = t h i s , s = i | | { } , a = s . w i d t h , o = s . h e i g h t ; i f ( ! a | | ! o ) t h r o w n e w E r r o r ( " B u f f e r R e s o u r c e w i d t h o r h e i g h t i n v a l i d " ) ; r e t u r n n = r . c a l l ( t h i s , a , o ) | | t h i s , n . d a t a = e , n } r e t u r n t . p r o t o t y p e . u p l o a d = f u n c t i o n ( e , i , n ) { v a r s = e . g l ; s . p i x e l S t o r e i ( s . U N P A C K _ P R E M U L T I P L Y _ A L P H A _ W E B G L , i . a l p h a M o d e = = = t t . U N P A C K ) ; v a r a = i . r e a l W i d t h , o = i . r e a l H e i g h t ; r e t u r n n . w i d t h = = = a & & n . h e i g h t = = = o ? s . t e x S u b I m a g e 2 D ( i . t a r g e t , 0 , 0 , 0 , a , o , i . f o r m a t , n . t y p e , t h i s . d a t a ) : ( n . w i d t h = a , n . h e i g h t = o , s . t e x I m a g e 2 D ( i . t a r g e t , 0 , n . i n t e r n a l F o r m a t , a , o , 0 , i . f o r m a t , n . t y p e , t h i s . d a t a ) ) , ! 0 } , t . p r o t o t y p e . d i s p o s e = f u n c t i o n ( ) { t h i s . d a t a = n u l l } , t . t e s t = f u n c t i o n ( e ) { r e t u r n e i n s t a n c e o f F l o a t 3 2 A r r a y | | e i n s t a n c e o f U i n t 8 A r r a y | | e i n s t a n c e o f U i n t 3 2 A r r a y } , t } ( w t ) , j i = { s c a l e M o d e : Y . N E A R E S T , f o r m a t : _ . R G B A , a l p h a M o d e : t t . N P M } , L = f u n c t i o n ( r ) { N ( t , r ) ; f u n c t i o n t ( e , i ) { e = = = v o i d 0 & & ( e = n u l l ) , i = = = v o i d 0 & & ( i = n u l l ) ; v a r n = r . c a l l ( t h i s ) | | t h i s ; i = i | | { } ; v a r s = i . a l p h a M o d e , a = i . m i p m a p , o = i . a n i s o t r o p i c L e v e l , h = i . s c a l e M o d e , u = i . w i d t h , l = i . h e i g h t , f = i . w r a p M o d e , c = i . f o r m a t , d = i . t y p e , p = i . t a r g e t , m = i . r e s o l u t i o n , v = i . r e s o u r c e O p t i o n s ; r e t u r n e & & ! ( e i n s t a n c e o f w t ) & & ( e = r i ( e , v ) , e . i n t e r n a l = ! 0 ) , n . r e s o l u t i o n = m | | x . R E S O L U T I O N , n . w i d t h = M a t h . r o u n d ( ( u | | 0 ) * n . r e s o l u t i o n ) / n . r e s o l u t i o n , n . h e i g h t = M a t h . r o u n d ( ( l | | 0 ) * n . r e s o l u t i o n ) / n . r e s o l u t i o n , n . _ m i p m a p = a ! = = v o i d 0 ? a : x . M I P M A P _ T E X T U R E S , n . a n i s o t r o p i c L e v e l = o ! = = v o i d 0 ? o : x . A N I S O T R O P I C _ L E V E L , n . _ w r a p M o d e = f | | x . W R A P _ M O D E , n . _ s c a l e M o d e = h ! = = v o i d 0 ? h : x . S C A L E _ M O D E , n . f o r m a t = c | | _ . R G B A , n . t y p e = d | | I . U N S I G N E D _ B Y T E , n . t a r g e t = p | | l t . T E X T U R E _ 2 D , n . a l p h a M o d e = s ! = = v o i d 0 ? s : t t . U N P A C K , n . u i d = I t ( ) , n . t o u c h e d = 0 , n . i s P o w e r O f T w o = ! 1 , n . _ r e f r e s h P O T ( ) , n . _ g l T e x t u r e s = { } , n . d i r t y I d = 0 , n . d i r t y S t y l e I d = 0 , n . c a c h e I d = n u l l , n . v a l i d = u > 0 & & l > 0 , n . t e x t u r e C a c h e I d s = [ ] , n . d e s t r o y e d = ! 1 , n . r e s o u r c e = n u l l , n . _ b a t c h E n a b l e d = 0 , n . _ b a t c h L o c a t i o n = 0 , n . p a r e n t T e x t u r e A r r a y = n u l l , n . s e t R e s o u r c e ( e ) , n } r e t u r n
2022-07-14 13:04:39 +00:00
` ).map(function(u,l){return l+": "+u}),i=r.getShaderInfoLog(t),n=i.split( `
` ),s={},a=n.map(function(u){return parseFloat(u.replace(/^ERROR \: 0 \: ([ \d ]+) \: .* $ /," $ 1"))}).filter(function(u){return u&&!s[u]?(s[u]=!0,!0):!1}),o=[""];a.forEach(function(u){e[u-1]="%c"+e[u-1]+"%c",o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var h=e.join( `
2023-04-03 03:32:13 +00:00
` );o[0]=h,console.error(i),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,o),console.groupEnd()}function vn(r,t,e,i){r.getProgramParameter(t,r.LINK_STATUS)||(r.getShaderParameter(e,r.COMPILE_STATUS)||Ar(r,e),r.getShaderParameter(i,r.COMPILE_STATUS)||Ar(r,i),console.error("PixiJS Error: Could not initialize shader."),r.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",r.getProgramInfoLog(t)))}function Qt(r){for(var t=new Array(r),e=0;e<t.length;e++)t[e]=!1;return t}function ui(r,t){switch(r){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return Qt(2*t);case"bvec3":return Qt(3*t);case"bvec4":return Qt(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var li={},vt=li;function mn(){if(vt===li||vt&&vt.isContextLost()){var r=document.createElement("canvas"),t=void 0;x.PREFER_ENV>=J.WEBGL2&&(t=r.getContext("webgl2",{})),t||(t=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),vt=t}return vt}var St;function _n(){if(!St){St=D.MEDIUM;var r=mn();if(r&&r.getShaderPrecisionFormat){var t=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);St=t.precision?D.HIGH:D.MEDIUM}}return St}function Pr(r,t,e){if(r.substring(0,9)!=="precision"){var i=t;return t===D.HIGH&&e!==D.HIGH&&(i=D.MEDIUM),"precision "+i+ ` float ;
` +r}else if(e!==D.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}var yn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fi(r){return yn[r]}var Gt=null,Ur={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function ci(r,t){if(!Gt){var e=Object.keys(Ur);Gt={};for(var i=0;i<e.length;++i){var n=e[i];Gt[r[n]]=Ur[n]}}return Gt[t]}var pt=[{test:function(r){return r.type==="float"&&r.size===1},code:function(r){return `
2022-07-14 13:04:39 +00:00
if ( uv [ "`+r+'" ] !== ud [ "'+r+`" ] . value )
{
ud [ "`+r+'" ] . value = uv [ "'+r+`" ]
gl . uniform1f ( ud [ "`+r+'" ] . location , uv [ "'+r+`" ] )
}
` }},{test:function(r){return(r.type==="sampler2D"||r.type==="samplerCube"||r.type==="sampler2DArray")&&r.size===1&&!r.isArray},code:function(r){return ` t = syncData . textureCount ++ ;
renderer . texture . bind ( uv [ "`+r+`" ] , t ) ;
if ( ud [ "`+r+`" ] . value !== t )
{
ud [ "`+r+`" ] . value = t ;
gl . uniform1i ( ud [ "`+r+`" ] . location , t ) ;
; // eslint-disable-line max-len
} ` }},{test:function(r,t){return r.type==="mat3"&&r.size===1&&t.a!==void 0},code:function(r){return `
gl . uniformMatrix3fv ( ud [ "`+r+'" ] . location , false , uv [ "'+r+`" ] . toArray ( true ) ) ;
` },codeUbo:function(r){return `
var ` +r+"_matrix = uv."+r+ ` . toArray ( true ) ;
data [ offset ] = ` +r+ ` _matrix [ 0 ] ;
data [ offset + 1 ] = ` +r+ ` _matrix [ 1 ] ;
data [ offset + 2 ] = ` +r+ ` _matrix [ 2 ] ;
data [ offset + 4 ] = ` +r+ ` _matrix [ 3 ] ;
data [ offset + 5 ] = ` +r+ ` _matrix [ 4 ] ;
data [ offset + 6 ] = ` +r+ ` _matrix [ 5 ] ;
data [ offset + 8 ] = ` +r+ ` _matrix [ 6 ] ;
data [ offset + 9 ] = ` +r+ ` _matrix [ 7 ] ;
data [ offset + 10 ] = ` +r+ ` _matrix [ 8 ] ;
` }},{test:function(r,t){return r.type==="vec2"&&r.size===1&&t.x!==void 0},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v . x || cv [ 1 ] !== v . y )
{
cv [ 0 ] = v . x ;
cv [ 1 ] = v . y ;
gl . uniform2f ( ud [ "`+r+`" ] . location , v . x , v . y ) ;
} ` },codeUbo:function(r){return `
v = uv . ` +r+ ` ;
data [ offset ] = v . x ;
data [ offset + 1 ] = v . y ;
` }},{test:function(r){return r.type==="vec2"&&r.size===1},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2f ( ud [ "`+r+`" ] . location , v [ 0 ] , v [ 1 ] ) ;
}
` }},{test:function(r,t){return r.type==="vec4"&&r.size===1&&t.width!==void 0},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v . x || cv [ 1 ] !== v . y || cv [ 2 ] !== v . width || cv [ 3 ] !== v . height )
{
cv [ 0 ] = v . x ;
cv [ 1 ] = v . y ;
cv [ 2 ] = v . width ;
cv [ 3 ] = v . height ;
gl . uniform4f ( ud [ "`+r+`" ] . location , v . x , v . y , v . width , v . height )
} ` },codeUbo:function(r){return `
v = uv . ` +r+ ` ;
data [ offset ] = v . x ;
data [ offset + 1 ] = v . y ;
data [ offset + 2 ] = v . width ;
data [ offset + 3 ] = v . height ;
` }},{test:function(r){return r.type==="vec4"&&r.size===1},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4f ( ud [ "`+r+`" ] . location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] )
} ` }}],gn={float: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1f ( location , v ) ;
} ` ,vec2: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2f ( location , v [ 0 ] , v [ 1 ] )
} ` ,vec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3f ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] )
} ` ,vec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4f ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,int: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` ,ivec2: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2i ( location , v [ 0 ] , v [ 1 ] ) ;
} ` ,ivec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] ) ;
} ` ,ivec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,uint: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1ui ( location , v ) ;
} ` ,uvec2: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2ui ( location , v [ 0 ] , v [ 1 ] ) ;
} ` ,uvec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3ui ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] ) ;
} ` ,uvec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4ui ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,bool: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` ,bvec2: `
if ( cv [ 0 ] != v [ 0 ] || cv [ 1 ] != v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2i ( location , v [ 0 ] , v [ 1 ] ) ;
} ` ,bvec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] ) ;
} ` ,bvec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"gl.uniform1i(location, v)",samplerCube:"gl.uniform1i(location, v)",sampler2DArray:"gl.uniform1i(location, v)"},xn={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function Tn(r,t){var e,i=[ `
var v = null ;
var cv = null ;
var cu = null ;
var t = 0 ;
var gl = renderer . gl ;
` ];for(var n in r.uniforms){var s=t[n];if(!s){!((e=r.uniforms[n])===null||e===void 0)&&e.group&&(r.uniforms[n].ubo?i.push( `
renderer . shader . syncUniformBufferGroup ( uv . ` +n+", '"+n+ ` ' ) ;
` ):i.push( `
renderer . shader . syncUniformGroup ( uv . ` +n+ ` , syncData ) ;
` ));continue}for(var a=r.uniforms[n],o=!1,h=0;h<pt.length;h++)if(pt[h].test(s,a)){i.push(pt[h].code(n,a)),o=!0;break}if(!o){var u=s.size===1?gn:xn,l=u[s.type].replace("location",'ud["'+n+'"].location');i.push( `
cu = ud [ "`+n+`" ] ;
cv = cu . value ;
v = uv [ "`+n+`" ] ;
` +l+";")}}return new Function("ud","uv","renderer","syncData",i.join( `
` ))}var bn=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join( `
` );function In(r){for(var t="",e=0;e<r;++e)e>0&&(t+= `
else ` ),e<r-1&&(t+="if(test == "+e+".0){}");return t}function Rn(r,t){if(r===0)throw new Error("Invalid value of ` 0 ` passed to ` checkMaxIfStatementsInShader ` ");for(var e=t.createShader(t.FRAGMENT_SHADER);;){var i=bn.replace(/%forloop%/gi,In(r));if(t.shaderSource(e,i),t.compileShader(e),!t.getShaderParameter(e,t.COMPILE_STATUS))r=r/2|0;else break}return r}var mt;function En(){if(typeof mt=="boolean")return mt;try{var r=new Function("param1","param2","param3","return param1[param2] === param3;");mt=r({a:"b"},"a","b")===!0}catch{mt=!1}return mt}var wn= ` varying vec2 vTextureCoord ;
uniform sampler2D uSampler ;
void main ( void ) {
gl _FragColor *= texture2D ( uSampler , vTextureCoord ) ;
} ` ,Nn= ` attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
uniform mat3 projectionMatrix ;
varying vec2 vTextureCoord ;
void main ( void ) {
gl _Position = vec4 ( ( projectionMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = aTextureCoord ;
}
2023-04-03 03:32:13 +00:00
` ,Cn=0,Bt={},Pe=function(){function r(t,e,i){i===void 0&&(i="pixi-shader"),this.id=Cn++,this.vertexSrc=t||r.defaultVertexSrc,this.fragmentSrc=e||r.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(i=i.replace(/ \s +/g,"-"),Bt[i]?(Bt[i]++,i+="-"+Bt[i]):Bt[i]=1,this.vertexSrc="#define SHADER_NAME "+i+ `
2022-07-14 13:04:39 +00:00
` +this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+ `
` +this.fragmentSrc,this.vertexSrc=Pr(this.vertexSrc,x.PRECISION_VERTEX,D.HIGH),this.fragmentSrc=Pr(this.fragmentSrc,x.PRECISION_FRAGMENT,_n())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(r,"defaultVertexSrc",{get:function(){return Nn},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultFragmentSrc",{get:function(){return wn},enumerable:!1,configurable:!0}),r.from=function(t,e,i){var n=t+e,s=br[n];return s||(br[n]=s=new r(t,e,i)),s},r}(),di=function(){function r(t,e){this.uniformBindCount=0,this.program=t,e?e instanceof dt?this.uniformGroup=e:this.uniformGroup=new dt(e):this.uniformGroup=new dt({})}return r.prototype.checkUniformExists=function(t,e){if(e.uniforms[t])return!0;for(var i in e.uniforms){var n=e.uniforms[i];if(n.group&&this.checkUniformExists(t,n))return!0}return!1},r.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(r.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),r.from=function(t,e,i){var n=Pe.from(t,e);return new r(n,i)},r}(),te=0,ee=1,re=2,ie=3,ne=4,se=5,Ue=function(){function r(){this.data=0,this.blendMode=g.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(r.prototype,"blend",{get:function(){return!!(this.data&1<<te)},set:function(t){!!(this.data&1<<te)!==t&&(this.data^=1<<te)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"offsets",{get:function(){return!!(this.data&1<<ee)},set:function(t){!!(this.data&1<<ee)!==t&&(this.data^=1<<ee)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"culling",{get:function(){return!!(this.data&1<<re)},set:function(t){!!(this.data&1<<re)!==t&&(this.data^=1<<re)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"depthTest",{get:function(){return!!(this.data&1<<ie)},set:function(t){!!(this.data&1<<ie)!==t&&(this.data^=1<<ie)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"depthMask",{get:function(){return!!(this.data&1<<se)},set:function(t){!!(this.data&1<<se)!==t&&(this.data^=1<<se)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<ne)},set:function(t){!!(this.data&1<<ne)!==t&&(this.data^=1<<ne)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blend=t!==g.NONE,this._blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(t){this.offsets=!!t,this._polygonOffset=t},enumerable:!1,configurable:!0}),r.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},r.for2d=function(){var t=new r;return t.depthTest=!1,t.blend=!0,t},r}(),An= ` attribute vec2 aVertexPosition ;
uniform mat3 projectionMatrix ;
varying vec2 vTextureCoord ;
uniform vec4 inputSize ;
uniform vec4 outputFrame ;
vec4 filterVertexPosition ( void )
{
vec2 position = aVertexPosition * max ( outputFrame . zw , vec2 ( 0. ) ) + outputFrame . xy ;
return vec4 ( ( projectionMatrix * vec3 ( position , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
}
vec2 filterTextureCoord ( void )
{
return aVertexPosition * ( outputFrame . zw * inputSize . zw ) ;
}
void main ( void )
{
gl _Position = filterVertexPosition ( ) ;
vTextureCoord = filterTextureCoord ( ) ;
}
` ,Pn= ` varying vec2 vTextureCoord ;
uniform sampler2D uSampler ;
void main ( void ) {
gl _FragColor = texture2D ( uSampler , vTextureCoord ) ;
}
` ,Un=function(r){N(t,r);function t(e,i,n){var s=this,a=Pe.from(e||t.defaultVertexSrc,i||t.defaultFragmentSrc);return s=r.call(this,a,n)||this,s.padding=0,s.resolution=x.FILTER_RESOLUTION,s.multisample=x.FILTER_MULTISAMPLE,s.enabled=!0,s.autoFit=!0,s.state=new Ue,s}return t.prototype.apply=function(e,i,n,s,a){e.applyFilter(this,i,n,s)},Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultVertexSrc",{get:function(){return An},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return Pn},enumerable:!1,configurable:!0}),t}(di),Fn= ` attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
uniform mat3 projectionMatrix ;
uniform mat3 otherMatrix ;
varying vec2 vMaskCoord ;
varying vec2 vTextureCoord ;
void main ( void )
{
gl _Position = vec4 ( ( projectionMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = aTextureCoord ;
vMaskCoord = ( otherMatrix * vec3 ( aTextureCoord , 1.0 ) ) . xy ;
}
` ,Ln= ` varying vec2 vMaskCoord ;
varying vec2 vTextureCoord ;
uniform sampler2D uSampler ;
uniform sampler2D mask ;
uniform float alpha ;
uniform float npmAlpha ;
uniform vec4 maskClamp ;
void main ( void )
{
float clip = step ( 3.5 ,
step ( maskClamp . x , vMaskCoord . x ) +
step ( maskClamp . y , vMaskCoord . y ) +
step ( vMaskCoord . x , maskClamp . z ) +
step ( vMaskCoord . y , maskClamp . w ) ) ;
vec4 original = texture2D ( uSampler , vTextureCoord ) ;
vec4 masky = texture2D ( mask , vMaskCoord ) ;
float alphaMul = 1.0 - npmAlpha * ( 1.0 - masky . a ) ;
original *= ( alphaMul * masky . r * alpha * clip ) ;
gl _FragColor = original ;
}
2023-04-03 03:32:13 +00:00
` ,Fr=new H,On=function(){function r(t,e){this._texture=t,this.mapCoord=new H,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof e=="undefined"?.5:e,this.isSimple=!1}return Object.defineProperty(r.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),r.prototype.multiplyUvs=function(t,e){e===void 0&&(e=t);for(var i=this.mapCoord,n=0;n<t.length;n+=2){var s=t[n],a=t[n+1];e[n]=s*i.a+a*i.c+i.tx,e[n+1]=s*i.b+a*i.d+i.ty}return e},r.prototype.update=function(t){var e=this._texture;if(!e||!e.valid||!t&&this._textureID===e._updateID)return!1;this._textureID=e._updateID,this._updateID++;var i=e._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var n=e.orig,s=e.trim;s&&(Fr.set(n.width/s.width,0,0,n.height/s.height,-s.x/s.width,-s.y/s.height),this.mapCoord.append(Fr));var a=e.baseTexture,o=this.uClampFrame,h=this.clampMargin/a.resolution,u=this.clampOffset;return o[0]=(e._frame.x+h+u)/a.width,o[1]=(e._frame.y+h+u)/a.height,o[2]=(e._frame.x+e._frame.width-h+u)/a.width,o[3]=(e._frame.y+e._frame.height-h+u)/a.height,this.uClampOffset[0]=u/a.realWidth,this.uClampOffset[1]=u/a.realHeight,this.isSimple=e._frame.width===a.width&&e._frame.height===a.height&&e.rotate===0,!0},r}(),Sn=function(r){N(t,r);function t(e,i,n){var s=this,a=null;return typeof e!="string"&&i===void 0&&n===void 0&&(a=e,e=void 0,i=void 0,n=void 0),s=r.call(this,e||Fn,i||Ln,n)||this,s.maskSprite=a,s.maskMatrix=new H,s}return Object.defineProperty(t.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),t.prototype.apply=function(e,i,n,s){var a=this._maskSprite,o=a._texture;!o.valid||(o.uvMatrix||(o.uvMatrix=new On(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,a).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=a.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,i,n,s))},t}(Un),Gn=function(){function r(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return r.prototype.setMaskStack=function(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)},r.prototype.push=function(t,e){var i=e;if(!i.isMaskData){var n=this.maskDataPool.pop()||new pn;n.pooled=!0,n.maskObject=e,i=n}var s=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(i.copyCountersOrReset(s),i.autoDetect&&this.detect(i),i._target=t,i.type!==O.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case O.SCISSOR:this.renderer.scissor.push(i);break;case O.STENCIL:this.renderer.stencil.push(i);break;case O.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break}i.type===O.SPRITE&&this.maskStack.push(i)},r.prototype.pop=function(t){var e=this.maskStack.pop();if(!(!e||e._target!==t)){if(e.enabled)switch(e.type){case O.SCISSOR:this.renderer.scissor.pop();break;case O.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case O.SPRITE:this.popSpriteMask(e);break}if(e.reset(),e.pooled&&this.maskDataPool.push(e),this.maskStack.length!==0){var i=this.maskStack[this.maskStack.length-1];i.type===O.SPRITE&&i._filters&&(i._filters[0].maskSprite=i.maskObject)}}},r.prototype.detect=function(t){var e=t.maskObject;e.isSprite?t.type=O.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=O.SCISSOR:t.type=O.STENCIL},r.prototype.pushSpriteMask=function(t){var e,i,n=t.maskObject,s=t._target,a=t._filters;a||(a=this.alphaMaskPool[this.alphaMaskIndex],a||(a=this.alphaMaskPool[this.alphaMaskIndex]=[new Sn]));var o=this.renderer,h=o.renderTexture,u,l;if(h.current){var f=h.current;u=t.resolution||f.resolution,l=(e=t.multisample)!==null&&e!==void 0?e:f.multisample}else u=t.resolution||o.resolution,l=(i
2022-07-14 13:04:39 +00:00
data [ offset ] = v ;
` ,vec2: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
` ,vec3: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 2 ] = v [ 2 ] ;
` ,vec4: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 2 ] = v [ 2 ] ;
data [ offset + 3 ] = v [ 3 ] ;
` ,mat2: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 4 ] = v [ 2 ] ;
data [ offset + 5 ] = v [ 3 ] ;
` ,mat3: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 2 ] = v [ 2 ] ;
data [ offset + 4 ] = v [ 3 ] ;
data [ offset + 5 ] = v [ 4 ] ;
data [ offset + 6 ] = v [ 5 ] ;
data [ offset + 8 ] = v [ 6 ] ;
data [ offset + 9 ] = v [ 7 ] ;
data [ offset + 10 ] = v [ 8 ] ;
` ,mat4: `
for ( var i = 0 ; i < 16 ; i ++ )
{
data [ offset + i ] = v [ i ] ;
}
` },vi={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function jn(r){for(var t=r.map(function(h){return{data:h,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,s=0;s<t.length;s++){var a=t[s];if(e=vi[a.data.type],a.data.size>1&&(e=Math.max(e,16)*a.data.size),a.dataLen=e,i%e!==0&&i<16){var o=i%e%16;i+=o,n+=o}i+e>16?(n=Math.ceil(n/16)*16,a.offset=n,n+=e,i=e):(a.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:t,size:n}}function Dn(r,t){var e=[];for(var i in r)t[i]&&e.push(t[i]);return e.sort(function(n,s){return n.index-s.index}),e}function zn(r,t){if(!r.autoManage)return{size:0,syncFunc:Hn};for(var e=Dn(r.uniforms,t),i=jn(e),n=i.uboElements,s=i.size,a=[ `
var v = null ;
var v2 = null ;
var cv = null ;
var t = 0 ;
var gl = renderer . gl
var index = 0 ;
var data = buffer . data ;
` ],o=0;o<n.length;o++){for(var h=n[o],u=r.uniforms[h.data.name],l=h.data.name,f=!1,c=0;c<pt.length;c++){var d=pt[c];if(d.codeUbo&&d.test(h.data,u)){a.push("offset = "+h.offset/4+";",pt[c].codeUbo(h.data.name,u)),f=!0;break}}if(!f)if(h.data.size>1){var p=fi(h.data.type),m=Math.max(vi[h.data.type]/16,1),v=p/m,y=(4-v%4)%4;a.push( `
cv = ud . ` +l+ ` . value ;
v = uv . ` +l+ ` ;
offset = ` +h.offset/4+ ` ;
t = 0 ;
for ( var i = 0 ; i < ` +h.data.size*m+ ` ; i ++ )
{
for ( var j = 0 ; j < ` +v+ ` ; j ++ )
{
data [ offset ++ ] = v [ t ++ ] ;
}
offset += ` +y+ ` ;
}
` )}else{var R=Vn[h.data.type];a.push( `
cv = ud . ` +l+ ` . value ;
v = uv . ` +l+ ` ;
offset = ` +h.offset/4+ ` ;
` +R+ ` ;
` )}}return a.push( `
renderer . buffer . update ( buffer ) ;
` ),{size:s,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join( `
2023-04-03 03:32:13 +00:00
` ))}}var Wn=function(){function r(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return r.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},r}();function $ n(r,t){for(var e={},i=t.getProgramParameter(r,t.ACTIVE_ATTRIBUTES),n=0;n<i;n++){var s=t.getActiveAttrib(r,n);if(s.name.indexOf("gl_")!==0){var a=ci(t,s.type),o={type:a,name:s.name,size:fi(a),location:t.getAttribLocation(r,s.name)};e[s.name]=o}}return e}function qn(r,t){for(var e={},i=t.getProgramParameter(r,t.ACTIVE_UNIFORMS),n=0;n<i;n++){var s=t.getActiveUniform(r,n),a=s.name.replace(/ \[ .*? \] $ /,""),o=!!s.name.match(/ \[ .*? \] $ /),h=ci(t,s.type);e[a]={name:a,index:n,type:h,size:s.size,isArray:o,value:ui(h,s.size)}}return e}function Yn(r,t){var e=Cr(r,r.VERTEX_SHADER,t.vertexSrc),i=Cr(r,r.FRAGMENT_SHADER,t.fragmentSrc),n=r.createProgram();if(r.attachShader(n,e),r.attachShader(n,i),r.linkProgram(n),r.getProgramParameter(n,r.LINK_STATUS)||vn(r,n,e,i),t.attributeData= $ n(n,r),t.uniformData=qn(n,r),!/^[ \t ]*#[ \t ]*version[ \t ]+300[ \t ]+es[ \t ]* $ /m.test(t.vertexSrc)){var s=Object.keys(t.attributeData);s.sort(function(l,f){return l>f?1:-1});for(var a=0;a<s.length;a++)t.attributeData[s[a]].location=a,r.bindAttribLocation(n,a,s[a]);r.linkProgram(n)}r.deleteShader(e),r.deleteShader(i);var o={};for(var a in t.uniformData){var h=t.uniformData[a];o[a]={location:r.getUniformLocation(n,a),value:ui(h.type,h.size)}}var u=new Wn(n,o);return u}var Kn=0,Mt={textureCount:0,uboCount:0},Zn=function(){function r(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Kn++}return r.prototype.systemCheck=function(){if(!En())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},r.prototype.contextChange=function(t){this.gl=t,this.reset()},r.prototype.bind=function(t,e){t.uniforms.globals=this.renderer.globalUniforms;var i=t.program,n=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==i&&(this.program=i,this.gl.useProgram(n.program)),e||(Mt.textureCount=0,Mt.uboCount=0,this.syncUniformGroup(t.uniformGroup,Mt)),n},r.prototype.setUniforms=function(t){var e=this.shader.program,i=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(i.uniformData,t,this.renderer)},r.prototype.syncUniformGroup=function(t,e){var i=this.getGlProgram();(!t.static||t.dirtyId!==i.uniformDirtyGroups[t.id])&&(i.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,i,e))},r.prototype.syncUniforms=function(t,e,i){var n=t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t);n(e.uniformData,t.uniforms,this.renderer,i)},r.prototype.createSyncGroups=function(t){var e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=Tn(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]},r.prototype.syncUniformBufferGroup=function(t,e){var i=this.getGlProgram();if(!t.static||t.dirtyId!==0||!i.uniformGroups[t.id]){t.dirtyId=0;var n=i.uniformGroups[t.id]||this.createSyncBufferGroup(t,i,e);t.buffer.update(),n(i.uniformData,t.uniforms,this.renderer,Mt,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,i.uniformBufferBindings[e])},r.prototype.createSyncBufferGroup=function(t,e,i){var n=this.renderer.gl;this.renderer.buffer.bind(t.buffer);var s=this.gl.getUniformBlockIndex(e.program,i);e.uniformBufferBindings[i]=this.shader.uniformBindCount,n.uniformBlockBinding(e.program,s,this.shader.uniformBindCount),this.shader.uniformBindCount++;var a=this.getSignature(t,this.shader.program.uniformData,"ubo"),o=this._uboCache[a];if(o||(o=this._uboCache[a]=zn(t,this.shader.program.uniformData)),t.autoManage){var h=new Float32Array(o.size/4);t.buffer.update(h)}return e.uniformGroups[t.id]=o.syncFunc,e.uniformGroups[t.id]},r.prototype.getSignature=function(t,e,i
2022-07-14 13:04:39 +00:00
` ,e+= `
` ;for(var i=0;i<t;i++)i>0&&(e+= `
else ` ),i<t-1&&(e+="if(vTextureId < "+i+".5)"),e+= `
{ ` ,e+= `
color = texture2D ( uSamplers [ ` +i+"], vTextureCoord);",e+= `
} ` ;return e+= `
` ,e+= `
` ,e},r}(),gs=function(r){N(t,r);function t(e){e===void 0&&(e=!1);var i=r.call(this)||this;return i._buffer=new X(null,e,!1),i._indexBuffer=new X(null,e,!0),i.addAttribute("aVertexPosition",i._buffer,2,!1,I.FLOAT).addAttribute("aTextureCoord",i._buffer,2,!1,I.FLOAT).addAttribute("aColor",i._buffer,4,!0,I.UNSIGNED_BYTE).addAttribute("aTextureId",i._buffer,1,!0,I.FLOAT).addIndex(i._indexBuffer),i}return t}(Ae),Or= ` precision highp float ;
attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
attribute vec4 aColor ;
attribute float aTextureId ;
uniform mat3 projectionMatrix ;
uniform mat3 translationMatrix ;
uniform vec4 tint ;
varying vec2 vTextureCoord ;
varying vec4 vColor ;
varying float vTextureId ;
void main ( void ) {
gl _Position = vec4 ( ( projectionMatrix * translationMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = aTextureCoord ;
vTextureId = aTextureId ;
vColor = aColor * tint ;
}
` ,Sr= ` varying vec2 vTextureCoord ;
varying vec4 vColor ;
varying float vTextureId ;
uniform sampler2D uSamplers [ % count % ] ;
void main ( void ) {
vec4 color ;
% forloop %
gl _FragColor = color * vColor ;
}
2023-04-03 03:32:13 +00:00
` ,xs=function(){function r(){}return r.create=function(t){var e=Object.assign({vertex:Or,fragment:Sr,geometryClass:gs,vertexSize:6},t),i=e.vertex,n=e.fragment,s=e.vertexSize,a=e.geometryClass;return function(o){N(h,o);function h(u){var l=o.call(this,u)||this;return l.shaderGenerator=new ys(i,n),l.geometryClass=a,l.vertexSize=s,l}return h}(_s)},Object.defineProperty(r,"defaultVertexSrc",{get:function(){return Or},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultFragmentTemplate",{get:function(){return Sr},enumerable:!1,configurable:!0}),r}(),js=xs.create();/*!
* @ pixi / display - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / display is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / x . S O R T A B L E _ C H I L D R E N = ! 1 ; v a r I e = f u n c t i o n ( ) { f u n c t i o n r ( ) { t h i s . m i n X = 1 / 0 , t h i s . m i n Y = 1 / 0 , t h i s . m a x X = - 1 / 0 , t h i s . m a x Y = - 1 / 0 , t h i s . r e c t = n u l l , t h i s . u p d a t e I D = - 1 } r e t u r n r . p r o t o t y p e . i s E m p t y = f u n c t i o n ( ) { r e t u r n t h i s . m i n X > t h i s . m a x X | | t h i s . m i n Y > t h i s . m a x Y } , r . p r o t o t y p e . c l e a r = f u n c t i o n ( ) { t h i s . m i n X = 1 / 0 , t h i s . m i n Y = 1 / 0 , t h i s . m a x X = - 1 / 0 , t h i s . m a x Y = - 1 / 0 } , r . p r o t o t y p e . g e t R e c t a n g l e = f u n c t i o n ( t ) { r e t u r n t h i s . m i n X > t h i s . m a x X | | t h i s . m i n Y > t h i s . m a x Y ? U . E M P T Y : ( t = t | | n e w U ( 0 , 0 , 1 , 1 ) , t . x = t h i s . m i n X , t . y = t h i s . m i n Y , t . w i d t h = t h i s . m a x X - t h i s . m i n X , t . h e i g h t = t h i s . m a x Y - t h i s . m i n Y , t ) } , r . p r o t o t y p e . a d d P o i n t = f u n c t i o n ( t ) { t h i s . m i n X = M a t h . m i n ( t h i s . m i n X , t . x ) , t h i s . m a x X = M a t h . m a x ( t h i s . m a x X , t . x ) , t h i s . m i n Y = M a t h . m i n ( t h i s . m i n Y , t . y ) , t h i s . m a x Y = M a t h . m a x ( t h i s . m a x Y , t . y ) } , r . p r o t o t y p e . a d d P o i n t M a t r i x = f u n c t i o n ( t , e ) { v a r i = t . a , n = t . b , s = t . c , a = t . d , o = t . t x , h = t . t y , u = i * e . x + s * e . y + o , l = n * e . x + a * e . y + h ; t h i s . m i n X = M a t h . m i n ( t h i s . m i n X , u ) , t h i s . m a x X = M a t h . m a x ( t h i s . m a x X , u ) , t h i s . m i n Y = M a t h . m i n ( t h i s . m i n Y , l ) , t h i s . m a x Y = M a t h . m a x ( t h i s . m a x Y , l ) } , r . p r o t o t y p e . a d d Q u a d = f u n c t i o n ( t ) { v a r e = t h i s . m i n X , i = t h i s . m i n Y , n = t h i s . m a x X , s = t h i s . m a x Y , a = t [ 0 ] , o = t [ 1 ] ; e = a < e ? a : e , i = o < i ? o : i , n = a > n ? a : n , s = o > s ? o : s , a = t [ 2 ] , o = t [ 3 ] , e = a < e ? a : e , i = o < i ? o : i , n = a > n ? a : n , s = o > s ? o : s , a = t [ 4 ] , o = t [ 5 ] , e = a < e ? a : e , i = o < i ? o : i , n = a > n ? a : n , s = o > s ? o : s , a = t [ 6 ] , o = t [ 7 ] , e = a < e ? a : e , i = o < i ? o : i , n = a > n ? a : n , s = o > s ? o : s , t h i s . m i n X = e , t h i s . m i n Y = i , t h i s . m a x X = n , t h i s . m a x Y = s } , r . p r o t o t y p e . a d d F r a m e = f u n c t i o n ( t , e , i , n , s ) { t h i s . a d d F r a m e M a t r i x ( t . w o r l d T r a n s f o r m , e , i , n , s ) } , r . p r o t o t y p e . a d d F r a m e M a t r i x = f u n c t i o n ( t , e , i , n , s ) { v a r a = t . a , o = t . b , h = t . c , u = t . d , l = t . t x , f = t . t y , c = t h i s . m i n X , d = t h i s . m i n Y , p = t h i s . m a x X , m = t h i s . m a x Y , v = a * e + h * i + l , y = o * e + u * i + f ; c = v < c ? v : c , d = y < d ? y : d , p = v > p ? v : p , m = y > m ? y : m , v = a * n + h * i + l , y = o * n + u * i + f , c = v < c ? v : c , d = y < d ? y : d , p = v > p ? v : p , m = y > m ? y : m , v = a * e + h * s + l , y = o * e + u * s + f , c = v < c ? v : c , d = y < d ? y : d , p = v > p ? v : p , m = y > m ? y : m , v = a * n + h * s + l , y = o * n + u * s + f , c = v < c ? v : c , d = y < d ? y : d , p = v > p ? v : p , m = y > m ? y : m , t h i s . m i n X = c , t h i s . m i n Y = d , t h i s . m a x X = p , t h i s . m a x Y = m } , r . p r o t o t y p e . a d d V e r t e x D a t a = f u n c t i o n ( t , e , i ) { f o r ( v a r n = t h i s . m i n X , s = t h i s . m i n Y , a = t h i s . m a x X , o = t h i s . m a x Y , h = e ; h < i ; h + = 2 ) { v a r u = t [ h ] , l = t [ h + 1 ] ; n = u < n ? u : n , s = l < s ? l : s , a = u > a ? u : a , o = l > o ? l : o } t h i s . m i n X = n , t h i s . m i n Y = s , t h i s . m a x X = a , t h i s . m a x Y = o } , r . p r o t o t y p e . a d d V e r t i c e s = f u n c t i o n ( t , e , i , n ) { t h i s . a d d V e r t i c e s M a t r i x ( t . w o r l d T r a n s f o r m , e , i , n ) } , r . p r o t o t y p e . a d d V e r t i c e s M a t r i x = f u n c t i o n ( t , e , i , n , s , a ) { s = = = v o i d 0 & & ( s = 0 ) , a = = = v o i d 0 & & ( a = s ) ; f o r ( v a r o = t . a , h = t . b , u = t . c , l = t . d , f = t . t x , c = t . t y , d = t h i s . m i n X , p = t h i s . m i n Y , m = t h i s . m a x X , v = t h i s . m a x Y , y = i ; y < n ; y + = 2 ) { v a r R = e [ y ] , C = e [ y + 1 ] , M = o * R + u * C + f , k = l * C + h * R + c ; d = M a t h . m i n ( d , M - s ) , m = M a t h . m a x ( m , M + s ) , p = M a t h . m i n ( p , k - a ) , v = M a t h . m a x ( v , k + a ) } t h i s . m i n X = d , t h i s . m i n Y = p , t h i s . m a x X = m , t h i s . m a x Y = v } , r . p r o t o t y p e . a d d B o u n d s = f u n c t i o n ( t ) { v a r e = t h i s . m i n X , i = t h i s . m i n Y , n = t h i s . m a x X , s = t h i s . m a x Y ; t h i s . m i n X = t . m i n X < e ? t . m i n X : e , t h i s . m i n Y = t . m i n Y < i ? t . m i n Y : i , t h i s . m a x X = t . m a x X > n ? t . m a x X : n , t h i s . m a x Y = t . m a x Y > s ? t . m a x Y : s } , r . p r o t o t y p e . a d d B o u n d s M a s k = f u n c t i o n ( t , e ) { v a r i = t . m i n X > e . m i n X ? t . m i n X : e . m i n X , n = t . m i n Y > e . m i n Y ? t . m i n Y : e . m i n Y , s = t . m a x X < e . m a x X ? t . m a x X : e . m a x X , a = t . m a x Y < e . m a x Y ? t . m a x Y : e . m a x Y ; i f ( i < = s & & n < = a ) { v a r o = t h i s . m i n X , h = t h i s . m i n Y , u = t h i s . m a x X , l = t h i s . m a x Y ; t h i s . m i n X = i < o ? i : o , t h i s . m i n Y = n < h ? n : h , t h i s . m a x X = s > u ? s : u , t h i s . m a x Y = a > l ? a : l } } , r . p r o t o t y p e . a d d B o u n d s M a t r i x = f u n c t i o n ( t , e ) { t h i s . a d d F r a m e M a t r i x ( e , t . m i n X , t . m i n Y , t . m a x X , t . m a x Y ) } , r . p r o t o t y p e . a d d B o u n d s A r e a = f u n c t i o n ( t , e ) { v a r i = t . m i n X > e . x ? t . m i n X : e . x , n = t . m i n Y > e . y ? t . m i n Y : e . y , s = t . m a x X < e . x + e . w i d t h ? t . m a x X : e . x + e . w i d t h , a = t . m a x Y < e . y + e . h e i g h t ? t . m a x Y : e . y + e . h e i g h t ; i f ( i < = s & & n < = a ) { v a r o = t h i s . m i n X , h = t h i s . m i n Y , u = t h i s . m a x X , l = t h i s . m a x Y ; t h i s . m i n X = i < o ? i : o , t h i s . m i n Y = n < h ? n : h , t h i s . m a x X = s > u ? s : u , t h i s . m a x Y = a > l ? a : l } } , r . p r o t o t y p e . p a d = f u n c t i o n ( t , e ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = t ) , t h i s . i s E m p t y ( ) | | ( t h i s . m i n X - = t , t h i s . m a x X + = t , t h i s . m i n Y - = e , t h i s . m a x Y + = e ) } , r . p r o t o t y p e . a d d F r a m e P a d = f u n c t i o n ( t , e , i , n , s , a ) { t - = s , e - = a , i + = s , n + = a , t h i s . m i n X = t h i s . m i n X < t ? t h i s . m i n X : t , t h i s . m a x X = t h i s . m a x X > i ? t h i s . m a x X : i , t h i s . m i n Y = t h i s . m i n Y < e ? t h i s . m i n Y : e , t h i s . m a x Y = t h i s . m a x Y > n ? t h i s . m a x Y : n } , r } ( ) ; / * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation . All rights reserved .
Licensed under the Apache License , Version 2.0 ( the "License" ) ; you may not use
this file except in compliance with the License . You may obtain a copy of the
License at http : //www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN * AS IS * BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND , EITHER EXPRESS OR IMPLIED , INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE , FITNESS FOR A PARTICULAR PURPOSE ,
MERCHANTABLITY OR NON - INFRINGEMENT .
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License .
2023-04-03 03:32:13 +00:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r R e = f u n c t i o n ( r , t ) { r e t u r n R e = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , R e ( r , t ) } ; f u n c t i o n F e ( r , t ) { R e ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r D t = f u n c t i o n ( r ) { F e ( t , r ) ; f u n c t i o n t ( ) { v a r e = r . c a l l ( t h i s ) | | t h i s ; r e t u r n e . t e m p D i s p l a y O b j e c t P a r e n t = n u l l , e . t r a n s f o r m = n e w H i , e . a l p h a = 1 , e . v i s i b l e = ! 0 , e . r e n d e r a b l e = ! 0 , e . c u l l a b l e = ! 1 , e . c u l l A r e a = n u l l , e . p a r e n t = n u l l , e . w o r l d A l p h a = 1 , e . _ l a s t S o r t e d I n d e x = 0 , e . _ z I n d e x = 0 , e . f i l t e r A r e a = n u l l , e . f i l t e r s = n u l l , e . _ e n a b l e d F i l t e r s = n u l l , e . _ b o u n d s = n e w I e , e . _ l o c a l B o u n d s = n u l l , e . _ b o u n d s I D = 0 , e . _ b o u n d s R e c t = n u l l , e . _ l o c a l B o u n d s R e c t = n u l l , e . _ m a s k = n u l l , e . _ m a s k R e f C o u n t = 0 , e . _ d e s t r o y e d = ! 1 , e . i s S p r i t e = ! 1 , e . i s M a s k = ! 1 , e } r e t u r n t . m i x i n = f u n c t i o n ( e ) { f o r ( v a r i = O b j e c t . k e y s ( e ) , n = 0 ; n < i . l e n g t h ; + + n ) { v a r s = i [ n ] ; O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , s , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( e , s ) ) } } , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " d e s t r o y e d " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d e s t r o y e d } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , t . p r o t o t y p e . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m = f u n c t i o n ( ) { t h i s . p a r e n t ? ( t h i s . p a r e n t . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . t r a n s f o r m . u p d a t e T r a n s f o r m ( t h i s . p a r e n t . t r a n s f o r m ) ) : t h i s . t r a n s f o r m . u p d a t e T r a n s f o r m ( t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t . t r a n s f o r m ) } , t . p r o t o t y p e . u p d a t e T r a n s f o r m = f u n c t i o n ( ) { t h i s . _ b o u n d s I D + + , t h i s . t r a n s f o r m . u p d a t e T r a n s f o r m ( t h i s . p a r e n t . t r a n s f o r m ) , t h i s . w o r l d A l p h a = t h i s . a l p h a * t h i s . p a r e n t . w o r l d A l p h a } , t . p r o t o t y p e . g e t B o u n d s = f u n c t i o n ( e , i ) { r e t u r n e | | ( t h i s . p a r e n t ? ( t h i s . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . u p d a t e T r a n s f o r m ( ) ) : ( t h i s . p a r e n t = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t , t h i s . u p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t = n u l l ) ) , t h i s . _ b o u n d s . u p d a t e I D ! = = t h i s . _ b o u n d s I D & & ( t h i s . c a l c u l a t e B o u n d s ( ) , t h i s . _ b o u n d s . u p d a t e I D = t h i s . _ b o u n d s I D ) , i | | ( t h i s . _ b o u n d s R e c t | | ( t h i s . _ b o u n d s R e c t = n e w U ) , i = t h i s . _ b o u n d s R e c t ) , t h i s . _ b o u n d s . g e t R e c t a n g l e ( i ) } , t . p r o t o t y p e . g e t L o c a l B o u n d s = f u n c t i o n ( e ) { e | | ( t h i s . _ l o c a l B o u n d s R e c t | | ( t h i s . _ l o c a l B o u n d s R e c t = n e w U ) , e = t h i s . _ l o c a l B o u n d s R e c t ) , t h i s . _ l o c a l B o u n d s | | ( t h i s . _ l o c a l B o u n d s = n e w I e ) ; v a r i = t h i s . t r a n s f o r m , n = t h i s . p a r e n t ; t h i s . p a r e n t = n u l l , t h i s . t r a n s f o r m = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t . t r a n s f o r m ; v a r s = t h i s . _ b o u n d s , a = t h i s . _ b o u n d s I D ; t h i s . _ b o u n d s = t h i s . _ l o c a l B o u n d s ; v a r o = t h i s . g e t B o u n d s ( ! 1 , e ) ; r e t u r n t h i s . p a r e n t = n , t h i s . t r a n s f o r m = i , t h i s . _ b o u n d s = s , t h i s . _ b o u n d s . u p d a t e I D + = t h i s . _ b o u n d s I D - a , o } , t . p r o t o t y p e . t o G l o b a l = f u n c t i o n ( e , i , n ) { r e t u r n n = = = v o i d 0 & & ( n = ! 1 ) , n | | ( t h i s . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t ? t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) : ( t h i s . p a r e n t = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t , t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t = n u l l ) ) , t h i s . w o r l d T r a n s f o r m . a p p l y ( e , i ) } , t . p r o t o t y p e . t o L o c a l = f u n c t i o n ( e , i , n , s ) { r e t u r n i & & ( e = i . t o G l o b a l ( e , n , s ) ) , s | | ( t h i s . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t ? t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) : ( t h i s . p a r e n t = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t , t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t = n u l l ) ) , t h i s . w o r l d T r a n s f o r m . a p p l y I n v e r s e ( e , n ) } , t . p r o t o t y p e . s e t P a r e n t = f u n c t i o n ( e ) { i f ( ! e | | ! e . a d d C h i l d ) t h r o w n e w E r r o r ( " s e t P a r e n t : A r g u m e n t m u s t b e a C o n t a i n e r " ) ; r e t u r n e . a d d C h i l d ( t h i s ) , e } , t . p r o t o t y p e . s e t T r a n s f o r m = f u n c t i o n ( e , i , n , s , a , o , h , u , l ) { r e t u r n e = = = v o i d 0 & & ( e = 0 ) , i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = 1 ) , s = = = v o i d 0 & & ( s = 1 ) , a = = = v o i d 0 & & ( a = 0 ) , o = = = v o i d 0 & & ( o = 0 ) , h = = = v o i d 0 & & ( h = 0 ) , u = = = v o i d 0 & & ( u = 0 ) , l = = = v o i d 0 & & ( l = 0 ) , t h i s . p o s i t i o n . x = e , t h i s . p o s i t i o n . y = i , t h i s . s c a l e . x = n | | 1 , t h i s . s c a l e . y = s | | 1 , t h i s . r o t a t i o n = a , t h i s . s k e w . x = o , t h i s . s k e w . y = h , t h i s . p i v o t . x = u , t h i s . p i v o t . y = l , t h i s } , t . p r o t o t y p e . d e s t r o y = f u n c t i o n ( e ) { t h i s . p a r e n t & & t h i s . p a r e n t . r e m o v e C h i l d ( t h i s ) , t h i s . e m i t ( " d e s t r o y e d " ) , t h i s . r e m o v e A l l L i s t e n e r s ( ) , t h i s . t r a n s f o r m = n u l l , t h i s . p a r e n t = n u l l , t h i s . _ b o u n d s = n u l l , t h i s . m a s k = n u l l , t h i s . c u l l A r e a = n u l l , t h i s . f i l t e r s = n u l l , t h i s . f i l t e r A r e a = n u l l , t h i s . h i t A r e a = n u l l , t h i s . i n t e r a c t i v e = ! 1 , t h i s . i n t e r a c t i v e C h i l d r e n = ! 1 , t h i s . _ d e s t r o y e d = ! 0 } , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " _ t e m p D i s p l a y O b j e c t P a r e n t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . t e m p D i s p l a y O b j e c t P a r e n t = = = n u l l & & ( t h i s . t e m p D i s p l a y O b j e c t P a r e n t = n e w T s ) , t h i s . t e m p D i s p l a y O b j e c t P a r e n t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , t . p r o t o t y p e . e n a b l e T e m p P a r e n
* @ pixi / constants - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / constants is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* / v a r G r ; ( f u n c t i o n ( r ) { r [ r . W E B G L _ L E G A C Y = 0 ] = " W E B G L _ L E G A C Y " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . W E B G L 2 = 2 ] = " W E B G L 2 " } ) ( G r | | ( G r = { } ) ) ; v a r B r ; ( f u n c t i o n ( r ) { r [ r . U N K N O W N = 0 ] = " U N K N O W N " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . C A N V A S = 2 ] = " C A N V A S " } ) ( B r | | ( B r = { } ) ) ; v a r M r ; ( f u n c t i o n ( r ) { r [ r . C O L O R = 1 6 3 8 4 ] = " C O L O R " , r [ r . D E P T H = 2 5 6 ] = " D E P T H " , r [ r . S T E N C I L = 1 0 2 4 ] = " S T E N C I L " } ) ( M r | | ( M r = { } ) ) ; v a r k r ; ( f u n c t i o n ( r ) { r [ r . N O R M A L = 0 ] = " N O R M A L " , r [ r . A D D = 1 ] = " A D D " , r [ r . M U L T I P L Y = 2 ] = " M U L T I P L Y " , r [ r . S C R E E N = 3 ] = " S C R E E N " , r [ r . O V E R L A Y = 4 ] = " O V E R L A Y " , r [ r . D A R K E N = 5 ] = " D A R K E N " , r [ r . L I G H T E N = 6 ] = " L I G H T E N " , r [ r . C O L O R _ D O D G E = 7 ] = " C O L O R _ D O D G E " , r [ r . C O L O R _ B U R N = 8 ] = " C O L O R _ B U R N " , r [ r . H A R D _ L I G H T = 9 ] = " H A R D _ L I G H T " , r [ r . S O F T _ L I G H T = 1 0 ] = " S O F T _ L I G H T " , r [ r . D I F F E R E N C E = 1 1 ] = " D I F F E R E N C E " , r [ r . E X C L U S I O N = 1 2 ] = " E X C L U S I O N " , r [ r . H U E = 1 3 ] = " H U E " , r [ r . S A T U R A T I O N = 1 4 ] = " S A T U R A T I O N " , r [ r . C O L O R = 1 5 ] = " C O L O R " , r [ r . L U M I N O S I T Y = 1 6 ] = " L U M I N O S I T Y " , r [ r . N O R M A L _ N P M = 1 7 ] = " N O R M A L _ N P M " , r [ r . A D D _ N P M = 1 8 ] = " A D D _ N P M " , r [ r . S C R E E N _ N P M = 1 9 ] = " S C R E E N _ N P M " , r [ r . N O N E = 2 0 ] = " N O N E " , r [ r . S R C _ O V E R = 0 ] = " S R C _ O V E R " , r [ r . S R C _ I N = 2 1 ] = " S R C _ I N " , r [ r . S R C _ O U T = 2 2 ] = " S R C _ O U T " , r [ r . S R C _ A T O P = 2 3 ] = " S R C _ A T O P " , r [ r . D S T _ O V E R = 2 4 ] = " D S T _ O V E R " , r [ r . D S T _ I N = 2 5 ] = " D S T _ I N " , r [ r . D S T _ O U T = 2 6 ] = " D S T _ O U T " , r [ r . D S T _ A T O P = 2 7 ] = " D S T _ A T O P " , r [ r . E R A S E = 2 6 ] = " E R A S E " , r [ r . S U B T R A C T = 2 8 ] = " S U B T R A C T " , r [ r . X O R = 2 9 ] = " X O R " } ) ( k r | | ( k r = { } ) ) ; v a r X r ; ( f u n c t i o n ( r ) { r [ r . P O I N T S = 0 ] = " P O I N T S " , r [ r . L I N E S = 1 ] = " L I N E S " , r [ r . L I N E _ L O O P = 2 ] = " L I N E _ L O O P " , r [ r . L I N E _ S T R I P = 3 ] = " L I N E _ S T R I P " , r [ r . T R I A N G L E S = 4 ] = " T R I A N G L E S " , r [ r . T R I A N G L E _ S T R I P = 5 ] = " T R I A N G L E _ S T R I P " , r [ r . T R I A N G L E _ F A N = 6 ] = " T R I A N G L E _ F A N " } ) ( X r | | ( X r = { } ) ) ; v a r H r ; ( f u n c t i o n ( r ) { r [ r . R G B A = 6 4 0 8 ] = " R G B A " , r [ r . R G B = 6 4 0 7 ] = " R G B " , r [ r . R G = 3 3 3 1 9 ] = " R G " , r [ r . R E D = 6 4 0 3 ] = " R E D " , r [ r . R G B A _ I N T E G E R = 3 6 2 4 9 ] = " R G B A _ I N T E G E R " , r [ r . R G B _ I N T E G E R = 3 6 2 4 8 ] = " R G B _ I N T E G E R " , r [ r . R G _ I N T E G E R = 3 3 3 2 0 ] = " R G _ I N T E G E R " , r [ r . R E D _ I N T E G E R = 3 6 2 4 4 ] = " R E D _ I N T E G E R " , r [ r . A L P H A = 6 4 0 6 ] = " A L P H A " , r [ r . L U M I N A N C E = 6 4 0 9 ] = " L U M I N A N C E " , r [ r . L U M I N A N C E _ A L P H A = 6 4 1 0 ] = " L U M I N A N C E _ A L P H A " , r [ r . D E P T H _ C O M P O N E N T = 6 4 0 2 ] = " D E P T H _ C O M P O N E N T " , r [ r . D E P T H _ S T E N C I L = 3 4 0 4 1 ] = " D E P T H _ S T E N C I L " } ) ( H r | | ( H r = { } ) ) ; v a r V r ; ( f u n c t i o n ( r ) { r [ r . T E X T U R E _ 2 D = 3 5 5 3 ] = " T E X T U R E _ 2 D " , r [ r . T E X T U R E _ C U B E _ M A P = 3 4 0 6 7 ] = " T E X T U R E _ C U B E _ M A P " , r [ r . T E X T U R E _ 2 D _ A R R A Y = 3 5 8 6 6 ] = " T E X T U R E _ 2 D _ A R R A Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X = 3 4 0 6 9 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X = 3 4 0 7 0 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y = 3 4 0 7 1 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y = 3 4 0 7 2 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z = 3 4 0 7 3 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z = 3 4 0 7 4 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z " } ) ( V r | | ( V r = { } ) ) ; v a r j r ; ( f u n c t i o n ( r ) { r [ r . U N S I G N E D _ B Y T E = 5 1 2 1 ] = " U N S I G N E D _ B Y T E " , r [ r . U N S I G N E D _ S H O R T = 5 1 2 3 ] = " U N S I G N E D _ S H O R T " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 = 3 3 6 3 5 ] = " U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 " , r [ r . U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 = 3 2 8 1 9 ] = " U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 = 3 2 8 2 0 ] = " U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 " , r [ r . U N S I G N E D _ I N T = 5 1 2 5 ] = " U N S I G N E D _ I N T " , r [ r . U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V = 3 5 8 9 9 ] = " U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V = 3 3 6 4 0 ] = " U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 4 _ 8 = 3 4 0 4 2 ] = " U N S I G N E D _ I N T _ 2 4 _ 8 " , r [ r . U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V = 3 5 9 0 2 ] = " U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V " , r [ r . B Y T E = 5 1 2 0 ] = " B Y T E " , r [ r . S H O R T = 5 1 2 2 ] = " S H O R T " , r [ r . I N T = 5 1 2 4 ] = " I N T " , r [ r . F L O A T = 5 1 2 6 ] = " F L O A T " , r [ r . F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V = 3 6 2 6 9 ] = " F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V " , r [ r . H A L F _ F L O A T = 3 6 1 9 3 ] = " H A L F _ F L O A T " } ) ( j r | | ( j r = { } ) ) ; v a r D r ; ( f u n c t i o n ( r ) { r [ r . F L O A T = 0 ] = " F L O A T " , r [ r . I N T = 1 ] = " I N T " , r [ r . U I N T = 2 ] = " U I N T " } ) ( D r | | ( D r = { } ) ) ; v a r z r ; ( f u n c t i o n ( r ) { r [ r . N E A R E S T = 0 ] = " N E A R E S T " , r [ r . L I N E A R = 1 ] = " L I N E A R " } ) ( z r | | ( z r = { } ) ) ; v a r W r ; ( f u n c t i o n ( r ) { r [ r . C L A M P = 3 3 0 7 1 ] = " C L A M P " , r [ r . R E P E A T = 1 0 4 9 7 ] = " R E P E A T " , r [ r . M I R R O R E D _ R E P E A T = 3 3 6 4 8 ] = " M I R R O R E D _ R E P E A T " } ) ( W r | | ( W r = { } ) ) ; v a r $ r ; ( f u n c t i o n ( r ) { r [ r . O F F = 0 ] = " O F F " , r [ r . P O W 2 = 1 ] = " P O W 2 " , r [ r . O N = 2 ] = " O N " , r [ r . O N _ M A N U A L = 3 ] = " O N _ M A N U A L " } ) ( $ r | | ( $ r = { } ) ) ; v a r q r ; ( f u n c t i o n ( r ) { r [ r . N P M = 0 ] = " N P M " , r [ r . U N P A C K = 1 ] = " U N P A C K " , r [ r . P M A = 2 ] = " P M A " , r [ r . N O _ P R E M U L T I P L I E D _ A L P H A = 0 ] = " N O _ P R E M U L T I P L I E D _ A L P H A " , r [ r . P R E M U L T I P L Y _ O N _ U P L O A D = 1 ] = " P R E M U L T I P L Y _ O N _ U P L O A D " , r [ r . P R E M U L T I P L Y _ A L P H A = 2 ] = " P R E M U L T I P L Y _ A L P H A " , r [ r . P R E M U L T I P L I E D _ A L P H A = 2 ] = " P R E M U L T I P L I E D _ A L P H A " } ) ( q r | | ( q r = { } ) ) ; v a r Y r ; ( f u n c t i o n ( r ) { r [ r . N O = 0 ] = " N O " , r [ r . Y E S = 1 ] = " Y E S " , r [ r . A U T O = 2 ] = " A U T O " , r [ r . B L E N D = 0 ] = " B L E N D " , r [ r . C L E A R = 1 ] = " C L E A R " , r [ r . B L
* @ pixi / sprite - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / sprite is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation . All rights reserved .
Licensed under the Apache License , Version 2.0 ( the "License" ) ; you may not use
this file except in compliance with the License . You may obtain a copy of the
License at http : //www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN * AS IS * BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND , EITHER EXPRESS OR IMPLIED , INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE , FITNESS FOR A PARTICULAR PURPOSE ,
MERCHANTABLITY OR NON - INFRINGEMENT .
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License .
2023-04-03 03:32:13 +00:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r w e = f u n c t i o n ( r , t ) { r e t u r n w e = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , w e ( r , t ) } ; f u n c t i o n I s ( r , t ) { w e ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r y t = n e w P , R s = n e w U i n t 1 6 A r r a y ( [ 0 , 1 , 2 , 0 , 2 , 3 ] ) , E s = f u n c t i o n ( r ) { I s ( t , r ) ; f u n c t i o n t ( e ) { v a r i = r . c a l l ( t h i s ) | | t h i s ; r e t u r n i . _ a n c h o r = n e w g t ( i . _ o n A n c h o r U p d a t e , i , e ? e . d e f a u l t A n c h o r . x : 0 , e ? e . d e f a u l t A n c h o r . y : 0 ) , i . _ t e x t u r e = n u l l , i . _ w i d t h = 0 , i . _ h e i g h t = 0 , i . _ t i n t = n u l l , i . _ t i n t R G B = n u l l , i . t i n t = 1 6 7 7 7 2 1 5 , i . b l e n d M o d e = g . N O R M A L , i . _ c a c h e d T i n t = 1 6 7 7 7 2 1 5 , i . u v s = n u l l , i . t e x t u r e = e | | K . E M P T Y , i . v e r t e x D a t a = n e w F l o a t 3 2 A r r a y ( 8 ) , i . v e r t e x T r i m m e d D a t a = n u l l , i . _ t r a n s f o r m I D = - 1 , i . _ t e x t u r e I D = - 1 , i . _ t r a n s f o r m T r i m m e d I D = - 1 , i . _ t e x t u r e T r i m m e d I D = - 1 , i . i n d i c e s = R s , i . p l u g i n N a m e = " b a t c h " , i . i s S p r i t e = ! 0 , i . _ r o u n d P i x e l s = x . R O U N D _ P I X E L S , i } r e t u r n t . p r o t o t y p e . _ o n T e x t u r e U p d a t e = f u n c t i o n ( ) { t h i s . _ t e x t u r e I D = - 1 , t h i s . _ t e x t u r e T r i m m e d I D = - 1 , t h i s . _ c a c h e d T i n t = 1 6 7 7 7 2 1 5 , t h i s . _ w i d t h & & ( t h i s . s c a l e . x = A t ( t h i s . s c a l e . x ) * t h i s . _ w i d t h / t h i s . _ t e x t u r e . o r i g . w i d t h ) , t h i s . _ h e i g h t & & ( t h i s . s c a l e . y = A t ( t h i s . s c a l e . y ) * t h i s . _ h e i g h t / t h i s . _ t e x t u r e . o r i g . h e i g h t ) } , t . p r o t o t y p e . _ o n A n c h o r U p d a t e = f u n c t i o n ( ) { t h i s . _ t r a n s f o r m I D = - 1 , t h i s . _ t r a n s f o r m T r i m m e d I D = - 1 } , t . p r o t o t y p e . c a l c u l a t e V e r t i c e s = f u n c t i o n ( ) { v a r e = t h i s . _ t e x t u r e ; i f ( ! ( t h i s . _ t r a n s f o r m I D = = = t h i s . t r a n s f o r m . _ w o r l d I D & & t h i s . _ t e x t u r e I D = = = e . _ u p d a t e I D ) ) { t h i s . _ t e x t u r e I D ! = = e . _ u p d a t e I D & & ( t h i s . u v s = t h i s . _ t e x t u r e . _ u v s . u v s F l o a t 3 2 ) , t h i s . _ t r a n s f o r m I D = t h i s . t r a n s f o r m . _ w o r l d I D , t h i s . _ t e x t u r e I D = e . _ u p d a t e I D ; v a r i = t h i s . t r a n s f o r m . w o r l d T r a n s f o r m , n = i . a , s = i . b , a = i . c , o = i . d , h = i . t x , u = i . t y , l = t h i s . v e r t e x D a t a , f = e . t r i m , c = e . o r i g , d = t h i s . _ a n c h o r , p = 0 , m = 0 , v = 0 , y = 0 ; i f ( f ? ( m = f . x - d . _ x * c . w i d t h , p = m + f . w i d t h , y = f . y - d . _ y * c . h e i g h t , v = y + f . h e i g h t ) : ( m = - d . _ x * c . w i d t h , p = m + c . w i d t h , y = - d . _ y * c . h e i g h t , v = y + c . h e i g h t ) , l [ 0 ] = n * m + a * y + h , l [ 1 ] = o * y + s * m + u , l [ 2 ] = n * p + a * y + h , l [ 3 ] = o * y + s * p + u , l [ 4 ] = n * p + a * v + h , l [ 5 ] = o * v + s * p + u , l [ 6 ] = n * m + a * v + h , l [ 7 ] = o * v + s * m + u , t h i s . _ r o u n d P i x e l s ) f o r ( v a r R = x . R E S O L U T I O N , C = 0 ; C < l . l e n g t h ; + + C ) l [ C ] = M a t h . r o u n d ( ( l [ C ] * R | 0 ) / R ) } } , t . p r o t o t y p e . c a l c u l a t e T r i m m e d V e r t i c e s = f u n c t i o n ( ) { i f ( ! t h i s . v e r t e x T r i m m e d D a t a ) t h i s . v e r t e x T r i m m e d D a t a = n e w F l o a t 3 2 A r r a y ( 8 ) ; e l s e i f ( t h i s . _ t r a n s f o r m T r i m m e d I D = = = t h i s . t r a n s f o r m . _ w o r l d I D & & t h i s . _ t e x t u r e T r i m m e d I D = = = t h i s . _ t e x t u r e . _ u p d a t e I D ) r e t u r n ; t h i s . _ t r a n s f o r m T r i m m e d I D = t h i s . t r a n s f o r m . _ w o r l d I D , t h i s . _ t e x t u r e T r i m m e d I D = t h i s . _ t e x t u r e . _ u p d a t e I D ; v a r e = t h i s . _ t e x t u r e , i = t h i s . v e r t e x T r i m m e d D a t a , n = e . o r i g , s = t h i s . _ a n c h o r , a = t h i s . t r a n s f o r m . w o r l d T r a n s f o r m , o = a . a , h = a . b , u = a . c , l = a . d , f = a . t x , c = a . t y , d = - s . _ x * n . w i d t h , p = d + n . w i d t h , m = - s . _ y * n . h e i g h t , v = m + n . h e i g h t ; i [ 0 ] = o * d + u * m + f , i [ 1 ] = l * m + h * d + c , i [ 2 ] = o * p + u * m + f , i [ 3 ] = l * m + h * p + c , i [ 4 ] = o * p + u * v + f , i [ 5 ] = l * v + h * p + c , i [ 6 ] = o * d + u * v + f , i [ 7 ] = l * v + h * d + c } , t . p r o t o t y p e . _ r e n d e r = f u n c t i o n ( e ) { t h i s . c a l c u l a t e V e r t i c e s ( ) , e . b a t c h . s e t O b j e c t R e n d e r e r ( e . p l u g i n s [ t h i s . p l u g i n N a m e ] ) , e . p l u g i n s [ t h i s . p l u g i n N a m e ] . r e n d e r ( t h i s ) } , t . p r o t o t y p e . _ c a l c u l a t e B o u n d s = f u n c t i o n ( ) { v a r e = t h i s . _ t e x t u r e . t r i m , i = t h i s . _ t e x t u r e . o r i g ; ! e | | e . w i d t h = = = i . w i d t h & & e . h e i g h t = = = i . h e i g h t ? ( t h i s . c a l c u l a t e V e r t i c e s ( ) , t h i s . _ b o u n d s . a d d Q u a d ( t h i s . v e r t e x D a t a ) ) : ( t h i s . c a l c u l a t e T r i m m e d V e r t i c e s ( ) , t h i s . _ b o u n d s . a d d Q u a d ( t h i s . v e r t e x T r i m m e d D a t a ) ) } , t . p r o t o t y p e . g e t L o c a l B o u n d s = f u n c t i o n ( e ) { r e t u r n t h i s . c h i l d r e n . l e n g t h = = = 0 ? ( t h i s . _ l o c a l B o u n d s | | ( t h i s . _ l o c a l B o u n d s = n e w I e ) , t h i s . _ l o c a l B o u n d s . m i n X = t h i s . _ t e x t u r e . o r i g . w i d t h * - t h i s . _ a n c h o r . _ x , t h i s . _ l o c a l B o u n d s . m i n Y = t h i s . _ t e x t u r e . o r i g . h e i g h t * - t h i s . _ a n c h o r . _ y , t h i s . _ l o c a l B o u n d s . m a x X = t h i s . _ t e x t u r e . o r i g . w i d t h * ( 1 - t h i s . _ a n c h o r . _ x ) , t h i s . _ l o c a l B o u n d s . m a x Y = t h i s . _ t e x t u r e . o r i g . h e i g h t * ( 1 - t h i s . _ a n c h o r . _ y ) , e | | ( t h i s . _ l o c a l B o u n d s R e c t | | ( t h i s . _ l o c a l B o u n d s R e c t = n e w U ) , e = t h i s . _ l o c a l B o u n d s R e c t ) , t h i s . _ l o c a l B o u n d s . g e t R e c t a n g l e ( e ) ) : r . p r o t o t y p e . g e t L o c a l B o u n d s . c a l l ( t h i s , e ) } , t . p r o t o t y p e . c o n t a i n s P o i n t = f u n c t i o n ( e ) { t h i s . w o r l d T r a n s f o r m . a p p l y I n v e r s e ( e , y t ) ; v a r i = t h i s . _ t e x t u r e . o r i g . w i d t h , n = t h i s . _ t e x t u r e . o r i g . h e i g h t , s = - i * t h i s . a n c h o r . x , a = 0 ; r e t u r n y t . x > = s & & y t . x < s + i & & ( a = - n * t h i s . a n c h o r . y , y t . y > = a & & y t . y < a + n ) } , t . p r o t o t y p e . d e s t r o y = f u n c t i o n ( e ) { r . p r o t o t y p e . d e s t r o y . c a l l ( t h i s , e ) , t h i s . _ t e x t u r e . o f f ( " u p d a t e " , t h i s . _ o n T e x t u r e U p d a t e , t h i s ) , t h i s . _ a n c h o r = n u
2022-07-14 13:04:39 +00:00
* @ pixi / particle - emitter - v5 . 0.7
* Compiled Fri , 27 May 2022 02 : 00 : 12 UTC
*
* @ pixi / particle - emitter is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* / c l a s s z { c o n s t r u c t o r ( t , e , i ) { t h i s . v a l u e = t , t h i s . t i m e = e , t h i s . n e x t = n u l l , t h i s . i s S t e p p e d = ! 1 , i ? t h i s . e a s e = t y p e o f i = = " f u n c t i o n " ? i : y i ( i ) : t h i s . e a s e = n u l l } s t a t i c c r e a t e L i s t ( t ) { i f ( " l i s t " i n t ) { c o n s t i = t . l i s t ; l e t n ; c o n s t { v a l u e : s , t i m e : a } = i [ 0 ] , o = n = n e w z ( t y p e o f s = = " s t r i n g " ? k t ( s ) : s , a , t . e a s e ) ; i f ( i . l e n g t h > 2 | | i . l e n g t h = = = 2 & & i [ 1 ] . v a l u e ! = = s ) f o r ( l e t h = 1 ; h < i . l e n g t h ; + + h ) { c o n s t { v a l u e : u , t i m e : l } = i [ h ] ; n . n e x t = n e w z ( t y p e o f u = = " s t r i n g " ? k t ( u ) : u , l ) , n = n . n e x t } r e t u r n o . i s S t e p p e d = ! ! t . i s S t e p p e d , o } c o n s t e = n e w z ( t y p e o f t . s t a r t = = " s t r i n g " ? k t ( t . s t a r t ) : t . s t a r t , 0 ) ; r e t u r n t . e n d ! = = t . s t a r t & & ( e . n e x t = n e w z ( t y p e o f t . e n d = = " s t r i n g " ? k t ( t . e n d ) : t . e n d , 1 ) ) , e } } l e t N t = K . f r o m ; c o n s t j = M a t h . P I / 1 8 0 ; f u n c t i o n Z ( r , t ) { i f ( ! r ) r e t u r n ; c o n s t e = M a t h . s i n ( r ) , i = M a t h . c o s ( r ) , n = t . x * i - t . y * e , s = t . x * e + t . y * i ; t . x = n , t . y = s } f u n c t i o n $ t ( r , t , e ) { r e t u r n r < < 1 6 | t < < 8 | e } f u n c t i o n m i ( r ) { r e t u r n M a t h . s q r t ( r . x * r . x + r . y * r . y ) } f u n c t i o n w s ( r ) { c o n s t t = 1 / m i ( r ) ; r . x * = t , r . y * = t } f u n c t i o n _ i ( r , t ) { r . x * = t , r . y * = t } f u n c t i o n k t ( r , t ) { t | | ( t = { } ) , r . c h a r A t ( 0 ) = = = " # " ? r = r . s u b s t r ( 1 ) : r . i n d e x O f ( " 0 x " ) = = = 0 & & ( r = r . s u b s t r ( 2 ) ) ; l e t e ; r e t u r n r . l e n g t h = = = 8 & & ( e = r . s u b s t r ( 0 , 2 ) , r = r . s u b s t r ( 2 ) ) , t . r = p a r s e I n t ( r . s u b s t r ( 0 , 2 ) , 1 6 ) , t . g = p a r s e I n t ( r . s u b s t r ( 2 , 2 ) , 1 6 ) , t . b = p a r s e I n t ( r . s u b s t r ( 4 , 2 ) , 1 6 ) , e & & ( t . a = p a r s e I n t ( e , 1 6 ) ) , t } f u n c t i o n y i ( r ) { c o n s t t = r . l e n g t h , e = 1 / t ; r e t u r n f u n c t i o n ( i ) { c o n s t n = t * i | 0 , s = ( i - n * e ) * t , a = r [ n ] | | r [ t - 1 ] ; r e t u r n a . s + s * ( 2 * ( 1 - s ) * ( a . c p - a . s ) + s * ( a . e - a . s ) ) } } f u n c t i o n N s ( r ) { r e t u r n r ? ( r = r . t o U p p e r C a s e ( ) . r e p l a c e ( / / g , " _ " ) , g [ r ] | | g . N O R M A L ) : g . N O R M A L } c l a s s h e e x t e n d s E s { c o n s t r u c t o r ( t ) { s u p e r ( ) , t h i s . p r e v C h i l d = t h i s . n e x t C h i l d = n u l l , t h i s . e m i t t e r = t , t h i s . c o n f i g = { } , t h i s . a n c h o r . x = t h i s . a n c h o r . y = . 5 , t h i s . m a x L i f e = 0 , t h i s . a g e = 0 , t h i s . a g e P e r c e n t = 0 , t h i s . o n e O v e r L i f e = 0 , t h i s . n e x t = n u l l , t h i s . p r e v = n u l l , t h i s . i n i t = t h i s . i n i t , t h i s . k i l l = t h i s . k i l l } i n i t ( t ) { t h i s . m a x L i f e = t , t h i s . a g e = t h i s . a g e P e r c e n t = 0 , t h i s . r o t a t i o n = 0 , t h i s . p o s i t i o n . x = t h i s . p o s i t i o n . y = 0 , t h i s . s c a l e . x = t h i s . s c a l e . y = 1 , t h i s . t i n t = 1 6 7 7 7 2 1 5 , t h i s . a l p h a = 1 , t h i s . o n e O v e r L i f e = 1 / t h i s . m a x L i f e , t h i s . v i s i b l e = ! 0 } k i l l ( ) { t h i s . e m i t t e r . r e c y c l e ( t h i s ) } d e s t r o y ( ) { t h i s . p a r e n t & & t h i s . p a r e n t . r e m o v e C h i l d ( t h i s ) , t h i s . e m i t t e r = t h i s . n e x t = t h i s . p r e v = n u l l , s u p e r . d e s t r o y ( ) } } v a r w ; ( f u n c t i o n ( r ) { r [ r . S p a w n = 0 ] = " S p a w n " , r [ r . N o r m a l = 2 ] = " N o r m a l " , r [ r . L a t e = 5 ] = " L a t e " } ) ( w | | ( w = { } ) ) ; c o n s t u e = q . s h a r e d , n t = S y m b o l ( " P o s i t i o n p a r t i c l e p e r e m i t t e r p o s i t i o n " ) ; c l a s s E { c o n s t r u c t o r ( t , e ) { t h i s . i n i t B e h a v i o r s = [ ] , t h i s . u p d a t e B e h a v i o r s = [ ] , t h i s . r e c y c l e B e h a v i o r s = [ ] , t h i s . m i n L i f e t i m e = 0 , t h i s . m a x L i f e t i m e = 0 , t h i s . c u s t o m E a s e = n u l l , t h i s . _ f r e q u e n c y = 1 , t h i s . s p a w n C h a n c e = 1 , t h i s . m a x P a r t i c l e s = 1 e 3 , t h i s . e m i t t e r L i f e t i m e = - 1 , t h i s . s p a w n P o s = n e w P , t h i s . p a r t i c l e s P e r W a v e = 1 , t h i s . r o t a t i o n = 0 , t h i s . o w n e r P o s = n e w P , t h i s . _ p r e v E m i t t e r P o s = n e w P , t h i s . _ p r e v P o s I s V a l i d = ! 1 , t h i s . _ p o s C h a n g e d = ! 1 , t h i s . _ p a r e n t = n u l l , t h i s . a d d A t B a c k = ! 1 , t h i s . p a r t i c l e C o u n t = 0 , t h i s . _ e m i t = ! 1 , t h i s . _ s p a w n T i m e r = 0 , t h i s . _ e m i t t e r L i f e = - 1 , t h i s . _ a c t i v e P a r t i c l e s F i r s t = n u l l , t h i s . _ a c t i v e P a r t i c l e s L a s t = n u l l , t h i s . _ p o o l F i r s t = n u l l , t h i s . _ o r i g C o n f i g = n u l l , t h i s . _ a u t o U p d a t e = ! 1 , t h i s . _ d e s t r o y W h e n C o m p l e t e = ! 1 , t h i s . _ c o m p l e t e C a l l b a c k = n u l l , t h i s . p a r e n t = t , e & & t h i s . i n i t ( e ) , t h i s . r e c y c l e = t h i s . r e c y c l e , t h i s . u p d a t e = t h i s . u p d a t e , t h i s . r o t a t e = t h i s . r o t a t e , t h i s . u p d a t e S p a w n P o s = t h i s . u p d a t e S p a w n P o s , t h i s . u p d a t e O w n e r P o s = t h i s . u p d a t e O w n e r P o s } s t a t i c r e g i s t e r B e h a v i o r ( t ) { E . k n o w n B e h a v i o r s [ t . t y p e ] = t } g e t f r e q u e n c y ( ) { r e t u r n t h i s . _ f r e q u e n c y } s e t f r e q u e n c y ( t ) { t y p e o f t = = " n u m b e r " & & t > 0 ? t h i s . _ f r e q u e n c y = t : t h i s . _ f r e q u e n c y = 1 } g e t p a r e n t ( ) { r e t u r n t h i s . _ p a r e n t } s e t p a r e n t ( t ) { t h i s . c l e a n u p ( ) , t h i s . _ p a r e n t = t } i n i t ( t ) { i f ( ! t ) r e t u r n ; t h i s . c l e a n u p ( ) , t h i s . _ o r i g C o n f i g = t , t h i s . m i n L i f e t i m e = t . l i f e t i m e . m i n , t h i s . m a x L i f e t i m e = t . l i f e t i m e . m a x , t . e a s e ? t h i s . c u s t o m E a s e = t y p e o f t . e a s e = = " f u n c t i o n " ? t . e a s e : y i ( t . e a s e ) : t h i s . c u s t o m E a s e = n u l l , t h i s . p a r t i c l e s P e r W a v e = 1 , t . p a r t i c l e s P e r W a v e & & t . p a r t i c l e s P e r W a v e > 1 & & ( t h i s . p a r t i c l e s P e r W a v e = t . p a r t i c l e s P e r W a v e ) , t h i s . f r e q u e n c y = t . f r e q u e n c y , t h i s . s p a w n C h a n c e = t y p e o f t . s p a w n C h a n c e = = " n u m b e r " & & t . s p a w n C h a n c e > 0 ? t . s p a w n C h a n c e : 1 , t h i s . e m i t t e r L i f e t i m e = t . e m i t t e r L i f e t i m e | | - 1 , t h i s . m a x P a r t i c l e s = t . m a x P a r t i c l e s > 0 ? t . m a x P a r t i c l e s : 1 e 3 , t h i s . a d d A t B a c k = ! ! t . a d d A t B a c k , t h i s . r o t a t i o n = 0 , t h i s . o w n e r P o s . s e t ( 0 ) , t . p o s ? t h i s . s p a w n P o s . c o p y F r o m ( t . p o s ) : t h i s . s p a w n P o s . s e t ( 0 ) , t h i s . _ p r e v E m i t t e r P o s . c o p y F r o m ( t h i s . s p a w n P o s ) , t h i s . _ p r e v P o s I s V a l i d = ! 1 , t h i s . _ s p a w n T i m e r = 0 , t h i s . e m i t = t . e m i t = = = v o i d 0 ? ! 0 : ! ! t . e m i t , t h i s . a u t o U p
* @ pixi / app - v6 . 3.2
* Compiled Wed , 04 May 2022 17 : 49 : 13 UTC
2022-07-14 13:04:39 +00:00
*
* @ pixi / app is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
2023-04-03 03:32:13 +00:00
* / v a r G s = f u n c t i o n ( ) { f u n c t i o n r ( t ) { v a r e = t h i s ; t h i s . s t a g e = n e w z t , t = O b j e c t . a s s i g n ( { f o r c e C a n v a s : ! 1 } , t ) , t h i s . r e n d e r e r = d s ( t ) , r . _ p l u g i n s . f o r E a c h ( f u n c t i o n ( i ) { i . i n i t . c a l l ( e , t ) } ) } r e t u r n r . r e g i s t e r P l u g i n = f u n c t i o n ( t ) { r . _ p l u g i n s . p u s h ( t ) } , r . p r o t o t y p e . r e n d e r = f u n c t i o n ( ) { t h i s . r e n d e r e r . r e n d e r ( t h i s . s t a g e ) } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " v i e w " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . r e n d e r e r . v i e w } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " s c r e e n " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . r e n d e r e r . s c r e e n } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( t , e ) { v a r i = t h i s , n = r . _ p l u g i n s . s l i c e ( 0 ) ; n . r e v e r s e ( ) , n . f o r E a c h ( f u n c t i o n ( s ) { s . d e s t r o y . c a l l ( i ) } ) , t h i s . s t a g e . d e s t r o y ( e ) , t h i s . s t a g e = n u l l , t h i s . r e n d e r e r . d e s t r o y ( t ) , t h i s . r e n d e r e r = n u l l } , r . _ p l u g i n s = [ ] , r } ( ) , B s = f u n c t i o n ( ) { f u n c t i o n r ( ) { } r e t u r n r . i n i t = f u n c t i o n ( t ) { v a r e = t h i s ; O b j e c t . d e f i n e P r o p e r t y ( t h i s , " r e s i z e T o " , { s e t : f u n c t i o n ( i ) { g l o b a l T h i s . r e m o v e E v e n t L i s t e n e r ( " r e s i z e " , t h i s . q u e u e R e s i z e ) , t h i s . _ r e s i z e T o = i , i & & ( g l o b a l T h i s . a d d E v e n t L i s t e n e r ( " r e s i z e " , t h i s . q u e u e R e s i z e ) , t h i s . r e s i z e ( ) ) } , g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ r e s i z e T o } } ) , t h i s . q u e u e R e s i z e = f u n c t i o n ( ) { ! e . _ r e s i z e T o | | ( e . c a n c e l R e s i z e ( ) , e . _ r e s i z e I d = r e q u e s t A n i m a t i o n F r a m e ( f u n c t i o n ( ) { r e t u r n e . r e s i z e ( ) } ) ) } , t h i s . c a n c e l R e s i z e = f u n c t i o n ( ) { e . _ r e s i z e I d & & ( c a n c e l A n i m a t i o n F r a m e ( e . _ r e s i z e I d ) , e . _ r e s i z e I d = n u l l ) } , t h i s . r e s i z e = f u n c t i o n ( ) { i f ( ! ! e . _ r e s i z e T o ) { e . c a n c e l R e s i z e ( ) ; v a r i , n ; i f ( e . _ r e s i z e T o = = = g l o b a l T h i s . w i n d o w ) i = g l o b a l T h i s . i n n e r W i d t h , n = g l o b a l T h i s . i n n e r H e i g h t ; e l s e { v a r s = e . _ r e s i z e T o , a = s . c l i e n t W i d t h , o = s . c l i e n t H e i g h t ; i = a , n = o } e . r e n d e r e r . r e s i z e ( i , n ) } } , t h i s . _ r e s i z e I d = n u l l , t h i s . _ r e s i z e T o = n u l l , t h i s . r e s i z e T o = t . r e s i z e T o | | n u l l } , r . d e s t r o y = f u n c t i o n ( ) { g l o b a l T h i s . r e m o v e E v e n t L i s t e n e r ( " r e s i z e " , t h i s . q u e u e R e s i z e ) , t h i s . c a n c e l R e s i z e ( ) , t h i s . c a n c e l R e s i z e = n u l l , t h i s . q u e u e R e s i z e = n u l l , t h i s . r e s i z e T o = n u l l , t h i s . r e s i z e = n u l l } , r } ( ) ; G s . r e g i s t e r P l u g i n ( B s ) ; e x p o r t { G s a s A , j s a s B , E , c s a s R , V s a s T , D s a s u } ;